joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445390
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Read file via mapping
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x7c], eax
xor eax, eax
push ebp
push 0x4454b0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x64]
mov edx, 0x44
call fcn.0040a358
mov dword [ebp - 0x64], 0x44
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
call sub.KERNEL32.DLL_GetCommandLineW
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessW
test eax, eax
je 0x445488
lea edx, [ebp - 0x20]
lea eax, [ebp - 0xc]
call fcn.00430c78
lea eax, [ebp - 0x7c]
push eax
mov cl, 0x30
mov edx, 1
mov eax, dword [ebp - 0x6c]
call fcn.0040d96c
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
mov edx, 0x4454cc
call fcn.00405c6c
mov eax, dword [ebp - 0x78]
call fcn.00405ee4
push eax
push 0x58
push 0
push 4
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
call sub.KERNEL32.DLL_CreateFileMappingA
mov esi, eax
push 0
push 0
push 0
push 0xf001f
push esi
call sub.KERNEL32.DLL_MapViewOfFile
mov ebx, eax
test ebx, ebx
je 0x44547f
call sub.KERNEL32.DLL_GetCurrentProcessId
mov dword [ebx], eax
push 2
push 0
push 0
lea eax, [ebx + 4]
push eax
mov eax, dword [ebp - 0x74]
push eax
push esi
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.KERNEL32.DLL_DuplicateHandle
lea edx, [ebx + 8]
mov eax, 0x5494d8
mov ecx, 0x50
call fcn.00403290
mov eax, dword [ebp - 0x70]
push eax
call sub.KERNEL32.DLL_ResumeThread
push 2
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.KERNEL32.DLL_TerminateProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4454b7
lea eax, [ebp - 0x7c]
mov edx, 2
call fcn.0040584c
ret
Function at 0x44ca54
Capabilities:
Create pipe
Create thread

Disassembly:
push 0
push 0
push 0x549ce4
push 0x549ce0
call sub.KERNEL32.DLL_CreatePipe
test eax, eax
je 0x44cab8
push 0x549cd8
push 0
push 0
push 0x44c9f8
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x549cdc], eax
cmp dword [0x549cdc], 0
je 0x44cab8
push 0
push 0
push 0
mov ecx, 0x44cac8
mov edx, dword [0x549cdc]
mov eax, dword [0x549cd8]
call fcn.0043104c
push 2
mov eax, dword [0x549cdc]
push eax
call sub.KERNEL32.DLL_SetThreadPriority
ret

Function at 0x44cacc
Capabilities:
Resume thread
Terminate thread
Write file on windows

Disassembly:
add esp, 0xffffffc4
cmp dword [0x549cd8], 0xffffffff
je 0x44cb89
mov eax, dword [0x549cdc]
push eax
call sub.KERNEL32.DLL_ResumeThread
xor eax, eax
call fcn.00431778
test al, al
jne 0x44cb36
lea eax, [esp + 4]
mov edx, 0x38
call fcn.0040a358
push 0
lea eax, [esp + 4]
push eax
push 0x38
lea eax, [esp + 0x10]
push eax
mov eax, dword [0x549ce4]
push eax
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [0x549ce4]
push eax
call sub.KERNEL32.DLL_CloseHandle
push 0x1f4
mov eax, dword [0x549cdc]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
jmp 0x44cb41
mov eax, dword [0x549ce4]
push eax
call sub.KERNEL32.DLL_CloseHandle
push 0x32
mov eax, dword [0x549cdc]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
test eax, eax
je 0x44cb5f
push 0
mov eax, dword [0x549cdc]
push eax
call sub.KERNEL32.DLL_TerminateThread
mov eax, dword [0x549cdc]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [0x549ce0]
push eax
call sub.KERNEL32.DLL_CloseHandle
push 0
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [0x549cd8]
call fcn.0043104c
add esp, 0x3c
ret
Function at 0x44d9ac
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
push 0x1001
push 0x800
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x44d9e4
mov eax, ebx
mov edx, esp
mov ecx, 0x105
push 0
call fcn.00405b60
jmp 0x44d9eb
mov eax, ebx
call fcn.00405828
add esp, 0x108
pop ebx
ret

Function at 0x44dcf4
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
xor edx, edx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x68], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x44ddee
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x44ddfc
push 0x44de28
call sub.KERNEL32.DLL_GetModuleHandleW
push eax
call fcn.00409694
test eax, eax
je 0x44dd3b
mov dword [ebp - 0x60], 0x40
lea edx, [ebp - 0x60]
push edx
call eax
jmp 0x44dd61
mov dword [ebp - 0x20], 0x20
lea eax, [ebp - 0x20]
push eax
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
push 0
push 0x100000
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
add eax, 0x80000
adc edx, 0
call fcn.004077a8
push edx
push eax
lea ecx, [ebp - 0x64]
mov dl, 0x30
mov eax, 1
call fcn.0040d918
push dword [ebp - 0x64]
push 0x44de50
push 0
push 0x100000
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
add eax, 0x80000
adc edx, 0
call fcn.004077a8
push edx
push eax
lea ecx, [ebp - 0x68]
mov dl, 0x30
mov eax, 1
call fcn.0040d918
push dword [ebp - 0x68]
push 0x44de60
mov eax, ebx
mov edx, 4
call fcn.00405d38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ddf5
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.0040584c
ret
Function at 0x44e178
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x44e2c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea eax, [ebp - 4]
call fcn.00405828
xor eax, eax
push ebp
push 0x44e2a0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 4]
mov ecx, ebx
mov edx, esi
call fcn.00405960
push 0
mov edx, edi
lea eax, [ebp - 8]
mov ecx, ebx
call fcn.00405960
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405a38
call fcn.00405bbc
cmp ebx, eax
jne 0x44e296
lea eax, [ebp - 8]
xor edx, edx
call fcn.00405a38
call fcn.00405bbc
cmp ebx, eax
jne 0x44e296
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00405ecc
je 0x44e296
lea eax, [ebp - 0x10]
push eax
push 0x40
push ebx
push esi
call sub.KERNEL32.DLL_VirtualProtect
test eax, eax
je 0x44e296
mov edx, esi
mov eax, edi
mov ecx, ebx
call fcn.00403290
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
push ebx
push esi
call sub.KERNEL32.DLL_VirtualProtect
mov eax, dword [0x555cf4]
call fcn.00407c50
mov ebx, eax
lea eax, [ebx + 1]
push eax
mov eax, 0x555cf4
mov ecx, 1
mov edx, dword [0x44e154]
call fcn.00407e18
add esp, 4
lea edi, [ebx + ebx*2]
mov eax, dword [0x555cf4]
mov dword [eax + edi*4], esi
mov eax, dword [0x555cf4]
lea eax, [eax + edi*4 + 4]
mov edx, dword [ebp - 4]
call fcn.0040587c
mov eax, dword [0x555cf4]
lea eax, [eax + edi*4 + 8]
mov edx, dword [ebp - 8]
call fcn.0040587c
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x44e2aa
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e2cc
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040584c
ret
Function at 0x44e2d8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44e3cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x555cf4]
call fcn.00407c58
test eax, eax
jl 0x44e3b9
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
lea eax, [eax + eax*2]
mov edx, dword [0x555cf4]
lea ebx, [edx + eax*4]
xor eax, eax
push ebp
push 0x44e3a3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebx + 8]
call fcn.00405bbc
mov ecx, eax
mov edx, dword [ebx]
lea eax, [ebp - 4]
call fcn.00405960
mov eax, dword [ebp - 4]
mov edx, dword [ebx + 8]
call fcn.00405ecc
jne 0x44e399
lea eax, [ebp - 0xc]
push eax
push 0x40
mov eax, dword [ebx + 4]
call fcn.00405bbc
push eax
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_VirtualProtect
test eax, eax
je 0x44e399
mov eax, dword [ebx + 4]
call fcn.00405bbc
mov ecx, eax
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
call fcn.00403290
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebx + 4]
call fcn.00405bbc
push eax
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_VirtualProtect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x44e3ad
inc dword [ebp - 8]
dec dword [ebp - 0x10]
jne 0x44e311
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e3d6
lea eax, [ebp - 4]
call fcn.00405828
ret
Function at 0x44e6ec
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x44e824
push dword fs:[eax]
mov dword fs:[eax], esp
cmp bl, 0x5c
je 0x44e809
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x44e764
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
mov edx, ebx
mov ecx, 0
call fcn.00405acc
lea eax, [ebp - 0x2c]
mov edx, 0x44e840
call fcn.00405bf0
mov eax, dword [ebp - 0x2c]
call fcn.00405ee4
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call eax
jmp 0x44e7c5
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
mov edx, ebx
mov ecx, 0
call fcn.00405acc
lea eax, [ebp - 0x30]
mov edx, 0x44e840
call fcn.00405bf0
mov eax, dword [ebp - 0x30]
call fcn.00405ee4
push eax
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
test eax, eax
je 0x44e7c5
mov eax, dword [ebp - 0x24]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x20]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x1c]
xor edx, edx
call fcn.00407760
call fcn.00407760
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 0x44e850
lea eax, [ebp - 0x38]
mov edx, ebx
mov ecx, 0
call fcn.00405acc
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.0040bf7c
push dword [ebp - 0x34]
push 0x44e860
push dword [ebp - 4]
push dword [ebp - 8]
lea eax, [ebp - 0x3c]
call fcn.0040e1e8
push dword [ebp - 0x3c]
mov eax, esi
mov edx, 4
call fcn.00405d38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e82b
lea eax, [ebp - 0x3c]
mov edx, 5
call fcn.0040584c
ret
Function at 0x4512c0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
call sub.KERNEL32.DLL_GetCurrentThreadId
cmp esi, eax
je 0x4512ea
push edi
call sub.KERNEL32.DLL_SuspendThread
mov esi, eax
cmp esi, 0xffffffff
je 0x4512ea
push edi
call sub.KERNEL32.DLL_ResumeThread
test esi, esi
setg bl
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x45512c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00405ed4
mov eax, dword [ebp - 8]
call fcn.00405ed4
xor eax, eax
push ebp
push 0x455255
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [edi], 0
jne 0x455228
mov eax, dword [ebp - 4]
call fcn.00405ee4
push eax
call sub.KERNEL32.DLL_GetModuleHandleA
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.004174ac
mov dword [edi], eax
test esi, esi
je 0x45519c
cmp word [esi], 0x25ff
jne 0x45519c
mov eax, esi
add eax, 2
mov eax, dword [eax]
mov ebx, dword [eax]
jmp 0x45519e
xor ebx, ebx
push 0
call sub.KERNEL32.DLL_GetModuleHandleW
cmp eax, dword [0x554b20]
je 0x4551b6
cmp byte [0x5494a4], 0
je 0x4551cd
lea eax, [ebp - 0x14]
call fcn.00430cec
mov eax, dword [ebp - 0x14]
mov edx, dword [edi]
mov ecx, dword [ebp + 8]
call fcn.00430fbc
jmp 0x4551dc
mov edx, dword [edi]
mov ecx, dword [ebp + 8]
mov eax, dword [0x554b20]
call fcn.00430f24
test ebx, ebx
je 0x4551eb
mov eax, esi
add eax, 2
mov eax, dword [eax]
cmp ebx, dword [eax]
je 0x4551ef
xor eax, eax
jmp 0x4551f1
mov al, 1
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x45522c
add esi, 2
mov ebx, dword [esi]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push ebx
call sub.KERNEL32.DLL_VirtualProtect
test eax, eax
je 0x45522c
mov eax, dword [ebp + 8]
mov dword [ebx], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 4
push ebx
call sub.KERNEL32.DLL_VirtualProtect
jmp 0x45522c
mov byte [ebp - 9], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45525c
lea eax, [ebp - 0x14]
mov edx, dword [0x430cc0]
call fcn.00407f38
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040584c
ret
Function at 0x45526c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x455341
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
je 0x455325
test esi, esi
je 0x4552ad
cmp word [esi], 0x25ff
jne 0x4552ad
mov eax, esi
add eax, 2
mov eax, dword [eax]
mov ebx, dword [eax]
jmp 0x4552af
xor ebx, ebx
push 0
call sub.KERNEL32.DLL_GetModuleHandleW
cmp eax, dword [0x554b20]
je 0x4552c7
cmp byte [0x5494a4], 0
je 0x4552de
lea eax, [ebp - 0xc]
call fcn.00430cec
mov eax, dword [ebp - 0xc]
mov ecx, edi
mov edx, dword [ebp - 4]
call fcn.00430fbc
jmp 0x4552ed
mov ecx, edi
mov edx, dword [ebp - 4]
mov eax, dword [0x554b20]
call fcn.00430f24
test ebx, ebx
je 0x455325
mov eax, esi
add eax, 2
mov eax, dword [eax]
cmp ebx, dword [eax]
jne 0x455325
add esi, 2
mov ebx, dword [esi]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push ebx
call sub.KERNEL32.DLL_VirtualProtect
test eax, eax
je 0x455325
mov dword [ebx], edi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
push 4
push ebx
call sub.KERNEL32.DLL_VirtualProtect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455348
lea eax, [ebp - 0xc]
mov edx, dword [0x430cc0]
call fcn.00407f38
ret
Function at 0x455b08
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
mov dword [ebp - 0x44], ecx
mov edi, edx
mov ebx, eax
lea eax, [ebp - 0x40]
mov edx, dword [0x418b44]
call fcn.00407048
xor eax, eax
push ebp
push 0x455bc8
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x45], 0
lea edx, [ebp - 0x40]
mov eax, ebx
call fcn.0041de4c
cmp byte [ebp - 0x40], 0
je 0x455bac
mov eax, dword [ebp - 0x20]
call fcn.00407c58
test eax, eax
jl 0x455bac
inc eax
xor esi, esi
mov edx, esi
add edx, edx
add edx, edx
add edx, edx
sub edx, esi
mov ecx, dword [ebp - 0x20]
lea ebx, [ecx + edx*4]
cmp byte [ebx + 0x10], 0
je 0x455ba8
cmp edi, dword [ebx + 0xc]
jne 0x455ba8
lea eax, [ebp - 0x4c]
push eax
push 0x40
push 4
mov eax, dword [ebx + 0x14]
push eax
call sub.KERNEL32.DLL_VirtualProtect
test eax, eax
je 0x455bac
mov edx, dword [ebp - 0x44]
sub edx, dword [ebx + 8]
mov eax, dword [ebx + 0x14]
mov dword [eax], edx
lea edx, [ebp - 0x4c]
push edx
mov edx, dword [ebp - 0x4c]
push edx
push 4
push eax
call sub.KERNEL32.DLL_VirtualProtect
mov byte [ebp - 0x45], 1
jmp 0x455bac
inc esi
dec eax
jne 0x455b57
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455bcf
lea eax, [ebp - 0x40]
mov edx, dword [0x418b44]
call fcn.00407120
ret

Function at 0x456360
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405ed4
lea eax, [ebp - 0xc]
mov edx, dword [0x456240]
call fcn.00407048
xor eax, eax
push ebp
push 0x456412
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x456420
call sub.user32.dll_FindWindowW
mov ebx, eax
test ebx, ebx
je 0x4563e6
lea eax, [ebp - 0x10]
push eax
push 0
push ebx
call sub.user32.dll_GetWindowThreadProcessId
mov cl, 0x30
mov edx, 1
call fcn.0040d96c
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 0x456444
call fcn.00405c6c
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004058d8
lea eax, [ebp - 0xc]
push eax
push 0x45626c
call sub.user32.dll_EnumWindows
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456419
lea eax, [ebp - 0x10]
call fcn.00405828
lea eax, [ebp - 0xc]
mov edx, dword [0x456240]
call fcn.00407120
lea eax, [ebp - 4]
call fcn.00405828
ret
Function at 0x456480
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x45654e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.0040d96c
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x456568
call fcn.00405c6c
mov eax, dword [ebp - 4]
call fcn.00405ee4
push eax
push 0
push 4
call sub.KERNEL32.DLL_OpenFileMappingA
mov ebx, eax
test ebx, ebx
je 0x456533
push 0
push 0
push 0
push 4
push ebx
call sub.KERNEL32.DLL_MapViewOfFile
mov esi, eax
test esi, esi
je 0x45652d
mov eax, dword [esi + 4]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [esi]
push eax
push 0
push 0x100000
call sub.KERNEL32.DLL_OpenProcess
mov edi, eax
test edi, edi
je 0x456515
push 0xffffffffffffffff
push edi
call sub.KERNEL32.DLL_WaitForSingleObject
push edi
call sub.KERNEL32.DLL_CloseHandle
mov edx, 0x5494d8
lea eax, [esi + 8]
mov ecx, 0x50
call fcn.00403290
push esi
call sub.KERNEL32.DLL_UnmapViewOfFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456555
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040584c
ret
Function at 0x456658
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x124], edx
mov dword [ebp - 0x120], edx
mov dword [ebp - 4], edx
xor edx, edx
push ebp
push 0x45680a
push dword fs:[edx]
mov dword fs:[edx], esp
xor ebx, ebx
push 0x104
lea edx, [ebp - 0x119]
push edx
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x119]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x456769
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.DLL_CreateFileMappingW
mov edi, eax
test edi, edi
je 0x456763
push 0
push 0
push 0
push 4
push edi
call sub.KERNEL32.DLL_MapViewOfFile
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x45675d
mov eax, dword [ebp - 8]
call fcn.004171e4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x456754
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x58], 0
je 0x456754
mov eax, dword [ebp - 0xc]
add eax, 0x58
mov dword [ebp - 0x10], eax
push 0
push esi
call sub.KERNEL32.DLL_GetFileSize
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 8]
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.004565fc
mov ecx, eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
sub edx, eax
sub edx, 4
mov eax, dword [ebp - 0x10]
add eax, 4
call fcn.004565fc
add eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
cmp eax, dword [edx + 0x58]
je 0x456754
mov bl, 1
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
push edi
call sub.KERNEL32.DLL_CloseHandle
push esi
call sub.KERNEL32.DLL_CloseHandle
test bl, bl
je 0x4567de
push 0x10
push 0
lea edx, [ebp - 0x120]
mov eax, dword [0x549bdc]
mov ecx, dword [eax]
call dword [ecx + 0x248]
mov eax, dword [ebp - 0x120]
call fcn.00405ee4
push eax
push 0
call sub.user32.dll_MessageBoxA
push 0
call sub.KERNEL32.DLL_GetModuleHandleW
cmp eax, dword [0x554b20]
je 0x4567d7
mov eax, 0x549bdc
call fcn.00408714
lea eax, [ebp - 0x124]
mov edx, dword [ebp - 4]
call fcn.004068ac
mov ecx, dword [ebp - 0x124]
mov dl, 1
mov eax, dword [0x40b738]
call fcn.0040b7b0
call fcn.00405030
jmp 0x4567de
push 0
call sub.KERNEL32.DLL_ExitProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456811
lea eax, [ebp - 0x124]
call fcn.00406680
lea eax, [ebp - 0x120]
call fcn.00405828
lea eax, [ebp - 4]
call fcn.00405828
ret
Function at 0x456994
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x456aa1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov ecx, 0x456ab0
mov edx, 0x456abc
mov eax, esi
call fcn.00417850
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405a38
call fcn.00405bbc
cmp eax, 0x14
jne 0x456a8b
cmp esi, dword [0x554b20]
sete al
mov edx, dword [ebp - 4]
test byte [edx + 3], 0x80
sete dl
cmp al, dl
jne 0x456a8b
mov eax, esi
call fcn.004171e4
mov ebx, eax
lea eax, [ebp - 8]
push eax
push 0x40
push 0xe0
lea eax, [ebx + 0x18]
push eax
call sub.KERNEL32.DLL_VirtualProtect
cmp esi, dword [0x554b20]
jne 0x456a3f
mov eax, 0x42fc4c
mov edx, dword [ebp - 4]
sub eax, dword [edx]
sub eax, esi
mov dword [ebx + 0x2c], eax
mov eax, 0x54943c
mov edx, dword [ebp - 4]
sub eax, dword [edx + 4]
sub eax, esi
mov dword [ebx + 0x30], eax
jmp 0x456a5a
mov eax, dword [ebp - 4]
mov eax, dword [eax]
and eax, 0x7fffffff
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
and eax, 0x7fffffff
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov dword [ebx + 0x24], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
push 0xe0
lea eax, [ebx + 0x18]
push eax
call sub.KERNEL32.DLL_VirtualProtect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456aa8
lea eax, [ebp - 4]
call fcn.00405828
ret