joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441a7c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff8c
mov esi, edx
mov ebx, eax
mov byte [esp], 1
mov eax, esi
call fcn.00404c58
mov ebp, eax
mov eax, esi
call fcn.00404a58
mov edi, eax
mov dword [esp + 4], 0x400
cmp dword [ebx + 8], 0
je 0x441bc6
mov eax, dword [esp + 4]
cmp eax, dword [ebx + 0x68]
jbe 0x441bc6
mov eax, dword [ebx + 0x68]
mov dword [esp + 4], eax
jmp 0x441bc6
cmp edi, dword [esp + 4]
jbe 0x441ad4
mov esi, dword [esp + 4]
jmp 0x441ad6
mov esi, edi
cmp dword [ebx + 8], 0
je 0x441baf
mov edx, dword [ebx + 0x78]
add edx, dword [ebx + 0x60]
mov eax, ebp
mov ecx, esi
call fcn.00402978
push 3
mov eax, dword [ebx + 0x78]
mov dword [esp + 0x48], eax
mov edx, eax
add edx, dword [ebx + 0x60]
mov dword [esp + 0x4c], edx
add edx, esi
mov dword [esp + 0x50], edx
xor eax, eax
mov dword [esp + 0x54], eax
lea eax, [esp + 0x48]
push eax
push 3
mov eax, dword [ebx + 0x60]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], esi
mov eax, dword [ebx + 0x64]
mov dword [esp + 0x68], eax
xor eax, eax
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x60]
push eax
push 3
mov dword [esp + 0x78], 7
mov dword [esp + 0x7c], 1
mov dword [esp + 0x80], 6
xor eax, eax
mov dword [esp + 0x84], eax
lea eax, [esp + 0x78]
push eax
push 3
lea ecx, [esp + 0x30]
lea edx, [esp + 0x24]
mov eax, ebx
call fcn.00441764
push 0
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [ebx + 0x54]
push eax
mov eax, dword [ebx + 8]
call dword [eax + 0x64]
test eax, eax
jne 0x441ba4
push 0
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x24]
add eax, dword [esp + 0x30]
push eax
mov eax, dword [ebx + 0x78]
push eax
mov eax, dword [ebx + 0x50]
push eax
call sub.wsock32.dll_send
test eax, eax
jg 0x441ba8
xor eax, eax
jmp 0x441baa
mov al, 1
mov byte [esp], al
jmp 0x441bc2
push 0
push esi
push ebp
mov eax, dword [ebx + 0x50]
push eax
call sub.wsock32.dll_send
test eax, eax
setg byte [esp]
add ebp, esi
sub edi, esi
cmp byte [esp], 0
je 0x441bd4
test edi, edi
ja 0x441ac8
mov al, byte [esp]
add esp, 0x74
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x442800
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdcc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x442a57
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetFilePointer_1
mov al, byte [edi + 0x8f]
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x442a13
cmp byte [0x52fe54], 0
jne 0x44288a
mov eax, ebx
call fcn.00431328
test al, al
je 0x4428c7
push 0x442a74
lea edx, [ebp - 0x220]
mov eax, ebx
call fcn.0040bec8
mov eax, dword [ebp - 0x220]
lea edx, [ebp - 0x21c]
call fcn.0041c514
push dword [ebp - 0x21c]
push 0x442a88
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404b18
jmp 0x4428d1
lea eax, [ebp - 0x14]
mov edx, ebx
call fcn.00404a20
push 0x442a94
lea eax, [ebp - 0x228]
mov edx, dword [0x5307dc]
call fcn.00404990
push dword [ebp - 0x228]
push 0x442aa0
push 0x442aac
lea edx, [ebp - 0x230]
mov eax, ebx
call fcn.00440708
mov edx, dword [ebp - 0x230]
lea eax, [ebp - 0x22c]
call fcn.00404a20
push dword [ebp - 0x22c]
push 0x442ac4
push dword [ebp - 0x14]
push 0x442ad8
push 0x442aa0
push 0x442ae4
push 0x442aa0
push 0x442b10
push dword [ebp - 0x14]
push 0x442ad8
push 0x442aa0
push 0x442aa0
lea eax, [ebp - 0x224]
mov edx, 0x10
call fcn.00404b18
mov edx, dword [ebp - 0x224]
mov eax, edi
call fcn.00441a7c
mov esi, dword [ebp - 8]
test esi, esi
jbe 0x442a13
cmp esi, 0xff
jbe 0x442985
mov ebx, 0xff
jmp 0x442987
mov ebx, esi
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x215]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x4429a7
cmp ebx, dword [ebp - 0x10]
je 0x4429b9
mov edx, 0x442aa0
mov eax, edi
call fcn.00441a7c
mov byte [ebp - 9], 0
jmp 0x442a13
lea ecx, [ebp - 0x234]
lea eax, [ebp - 0x215]
mov edx, ebx
call fcn.0041c3e4
lea eax, [ebp - 0x234]
mov edx, 0x442aa0
call fcn.00404a60
mov edx, dword [ebp - 0x234]
mov eax, edi
call fcn.00441a7c
sub esi, ebx
cmp dword [ebp + 8], 0
je 0x442a0b
mov eax, dword [ebp - 8]
sub eax, esi
imul eax, eax, 0x3e8
xor edx, edx
div dword [ebp - 8]
mov edx, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x18]
test esi, esi
ja 0x442976
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x24]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x442a5e
lea eax, [ebp - 0x234]
call fcn.00404788
lea eax, [ebp - 0x230]
call fcn.00404f44
lea eax, [ebp - 0x22c]
mov edx, 5
call fcn.004047ac
lea eax, [ebp - 0x14]
call fcn.00404788
ret
Function at 0x444878
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x44498a
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetFilePointer_1
mov esi, dword [ebp - 8]
cmp byte [ebp + 8], 0
je 0x4448c2
mov dword [ebp - 0xc], 0x600
jmp 0x4448c9
mov dword [ebp - 0xc], 0x800
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00404de8
test esi, esi
jbe 0x44496f
cmp esi, dword [ebp - 0xc]
jae 0x4448eb
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.00404de8
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404a58
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x444918
mov eax, dword [ebp - 0x14]
call fcn.00404a58
cmp eax, dword [ebp - 0x10]
je 0x44491c
xor ebx, ebx
jmp 0x44496f
cmp byte [ebp + 8], 0
je 0x44493b
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.0041c514
mov edx, dword [ebp - 0x18]
mov eax, edi
call fcn.00443d2c
mov ebx, eax
jmp 0x444947
mov edx, dword [ebp - 0x14]
mov eax, edi
call fcn.00443d2c
mov ebx, eax
test bl, bl
je 0x44496f
sub esi, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
sub eax, esi
imul eax, eax, 0x3e8
xor edx, edx
div dword [ebp - 8]
mov edx, eax
mov eax, edi
call fcn.004441e8
test esi, esi
ja 0x4448dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x444991
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004047ac
ret
Function at 0x449684
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.004054b0
xor eax, eax
push ebp
push 0x4497c3
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040c11c
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.00404fa4
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.00405220
je 0x449799
mov eax, dword [ebp - 4]
call fcn.00405108
mov edx, dword [ebp - 4]
cmp word [edx + eax*2 - 2], 0x5c
jne 0x4496f7
mov eax, dword [ebp - 4]
call fcn.00405108
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 1
call fcn.004052f0
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x449743
mov eax, dword [ebp - 4]
call fcn.004050f8
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x44973f
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00449684
pop ecx
test al, al
je 0x44973b
push 0
mov eax, dword [ebp - 4]
call fcn.004050f8
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x44973f
xor ebx, ebx
jmp 0x44979b
mov bl, 1
jmp 0x44979b
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404a20
mov eax, dword [ebp - 0xc]
call fcn.00404c58
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x449795
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00449684
pop ecx
test al, al
je 0x449791
push 0
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00404a20
mov eax, dword [ebp - 0x10]
call fcn.00404c58
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x449795
xor ebx, ebx
jmp 0x44979b
mov bl, 1
jmp 0x44979b
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4497ca
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004047ac
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404f5c
ret
Function at 0x44bfec
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Get common file path
Read file via mapping
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd70
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x28c], edx
mov dword [ebp - 0x290], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x44c1f5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c]
mov edx, 0x44
call fcn.00408314
mov dword [ebp - 0x6c], 0x44
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x44c0a3
mov eax, ebx
xor edx, edx
call fcn.00405220
jne 0x44c057
call sub.kernel32.dll_GetCommandLineW
mov edx, eax
lea eax, [ebp - 4]
call fcn.0040506c
jmp 0x44c061
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404fa4
lea eax, [ebp - 0x286]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x286]
push eax
push 0
push 4
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004050f8
push eax
push 0
call sub.kernel32.dll_CreateProcessW
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x44c109
mov eax, ebx
xor edx, edx
call fcn.00405220
jne 0x44c0bf
call sub.kernel32.dll_GetCommandLineA_1
mov edx, eax
lea eax, [ebp - 8]
call fcn.00404990
jmp 0x44c0c9
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404a20
lea eax, [ebp - 0x286]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x286]
push eax
push 0
push 4
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00404c58
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x44c1ba
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x14]
call fcn.00430e20
lea eax, [ebp - 0x290]
push eax
mov cl, 0x30
mov edx, 1
mov eax, dword [ebp - 0x74]
call fcn.0040ab60
mov ecx, dword [ebp - 0x290]
lea eax, [ebp - 0x28c]
mov edx, 0x44c20c
call fcn.00404aa4
mov eax, dword [ebp - 0x28c]
call fcn.00404c58
push eax
push 0x58
push 0
push 4
lea eax, [ebp - 0x14]
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 0x44c1b1
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 - 0x7c]
push eax
push esi
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_DuplicateHandle
lea edx, [ebx + 8]
mov eax, 0x52ff54
mov ecx, 0x50
call fcn.00402978
mov eax, dword [ebp - 0x78]
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 0x44c1fc
lea eax, [ebp - 0x290]
mov edx, 2
call fcn.004047ac
lea eax, [ebp - 8]
call fcn.00404788
lea eax, [ebp - 4]
call fcn.00404f44
ret
Function at 0x454ec8
Capabilities:
Create pipe
Create thread

Disassembly:
push 0
push 0
push 0x530840
push 0x53083c
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x454f20
push 0x530834
push 0
push 0
push 0x454e4c
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x530838], eax
cmp dword [0x530838], 0
je 0x454f20
mov edx, 0x454f28
mov eax, dword [0x530834]
call fcn.00431814
push 2
mov eax, dword [0x530838]
push eax
call sub.kernel32.dll_SetThreadPriority
ret

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

Disassembly:
add esp, 0xffffff6c
cmp dword [0x530834], 0xffffffff
je 0x45504a
mov eax, dword [0x530838]
push eax
call sub.kernel32.dll_ResumeThread
xor eax, eax
call fcn.00431d0c
test al, al
jne 0x454fdc
lea eax, [esp + 4]
mov edx, 0x90
call fcn.00408314
push 0
lea eax, [esp + 4]
push eax
push 0x90
lea eax, [esp + 0x10]
push eax
mov eax, dword [0x530840]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [0x530840]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0x1f4
mov eax, dword [0x530838]
push eax
call sub.kernel32.dll_WaitForSingleObject
jmp 0x454fe7
mov eax, dword [0x530840]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [0x53083c]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0x32
mov eax, dword [0x530838]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x455024
push 0
mov eax, dword [0x530838]
push eax
call sub.kernel32.dll_TerminateThread
cmp dword [0x530844], 0
je 0x455024
mov eax, dword [0x530844]
push eax
call sub.kernel32.dll_LocalFree_1
xor eax, eax
mov dword [0x530844], eax
mov eax, dword [0x530838]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [0x530834]
call fcn.00431580
add esp, 0x94
ret
Function at 0x455d54
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
xor edx, edx
mov dword [ebp - 0x210], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x455e12
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404f44
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x455dbc
push 0x104
lea eax, [ebp - 0x20a]
push eax
push 0x1001
push 0x800
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x455df9
mov eax, ebx
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.004050cc
jmp 0x455df9
push 0x104
lea eax, [ebp - 0x20a]
push eax
push 0x1001
push 0x800
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x455df9
lea eax, [ebp - 0x210]
lea edx, [ebp - 0x20a]
call fcn.00404990
mov edx, dword [ebp - 0x210]
mov eax, ebx
call fcn.004050e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455e19
lea eax, [ebp - 0x210]
call fcn.00404788
ret

Function at 0x456198
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 0x456296
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4562a4
push 0x4562bc
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
test eax, eax
je 0x4561df
mov dword [ebp - 0x60], 0x40
lea edx, [ebp - 0x60]
push edx
call eax
jmp 0x456205
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.00405ab8
push edx
push eax
lea ecx, [ebp - 0x64]
mov dx, 0x30
mov eax, 1
call fcn.0040ace8
push dword [ebp - 0x64]
push 0x4562d0
push 0
push 0x100000
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
add eax, 0x80000
adc edx, 0
call fcn.00405ab8
push edx
push eax
lea ecx, [ebp - 0x68]
mov dx, 0x30
mov eax, 1
call fcn.0040ace8
push dword [ebp - 0x68]
push 0x4562d8
mov eax, ebx
mov edx, 4
call fcn.004051d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45629d
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.00404f5c
ret
Function at 0x45660c
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 - 8], ebx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x45676c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
call fcn.00404788
push 0x5358c4
call sub.kernel32.dll_EnterCriticalSection_1
xor eax, eax
push ebp
push 0x45673d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov ecx, ebx
mov edx, esi
call fcn.00404878
mov edx, edi
lea eax, [ebp - 0xc]
mov ecx, ebx
call fcn.00404878
mov eax, dword [ebp - 8]
call fcn.00404a58
cmp ebx, eax
jne 0x456733
mov eax, dword [ebp - 0xc]
call fcn.00404a58
cmp ebx, eax
jne 0x456733
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.00404ba4
je 0x456733
lea eax, [ebp - 0x10]
push eax
push 0x40
push ebx
push esi
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x456733
mov edx, esi
mov eax, edi
mov ecx, ebx
call fcn.00402978
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 [0x5358dc]
call fcn.00405edc
mov ebx, eax
lea eax, [ebx + 1]
push eax
mov eax, 0x5358dc
mov ecx, 1
mov edx, dword [0x4565e8]
call fcn.00406098
add esp, 4
mov edi, ebx
add edi, edi
mov eax, dword [0x5358dc]
mov dword [eax + edi*8], esi
mov eax, dword [0x5358dc]
lea eax, [eax + edi*8 + 4]
mov edx, dword [ebp - 8]
call fcn.004047dc
mov eax, dword [0x5358dc]
lea eax, [eax + edi*8 + 8]
mov edx, dword [ebp - 0xc]
call fcn.004047dc
mov eax, dword [0x5358dc]
mov edx, dword [ebp + 8]
mov dword [eax + edi*8 + 0xc], edx
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x456747
push 0x5358c4
call sub.kernel32.dll_LeaveCriticalSection_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456773
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004047ac
ret
Function at 0x456780
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 - 8], eax
xor eax, eax
push ebp
push 0x4568ac
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5358c4
call sub.kernel32.dll_EnterCriticalSection_1
mov eax, dword [0x5358dc]
call fcn.00405ee4
test eax, eax
jl 0x45687d
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add eax, eax
mov edx, dword [0x5358dc]
lea ebx, [edx + eax*8]
xor eax, eax
push ebp
push 0x456867
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 8]
call fcn.00404a58
mov edx, eax
mov eax, dword [ebx]
call fcn.00410958
test al, al
jne 0x45685d
mov eax, dword [ebx + 8]
call fcn.00404a58
mov ecx, eax
mov edx, dword [ebx]
lea eax, [ebp - 8]
call fcn.00404878
mov eax, dword [ebp - 8]
mov edx, dword [ebx + 8]
call fcn.00404ba4
jne 0x45685d
lea eax, [ebp - 0xc]
push eax
push 0x40
mov eax, dword [ebx + 4]
call fcn.00404a58
push eax
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x45685d
mov eax, dword [ebx + 4]
call fcn.00404a58
mov ecx, eax
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
call fcn.00402978
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebx + 4]
call fcn.00404a58
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 0x456871
inc dword [ebp - 4]
dec dword [ebp - 0x10]
jne 0x4567c3
push 0x5358c4
call sub.kernel32.dll_LeaveCriticalSection_1
push 0
push 0
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4568b3
lea eax, [ebp - 8]
call fcn.00404788
ret
Function at 0x456cb4
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x456df4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, 0x456e0c
call fcn.00404ba4
je 0x456dc1
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x456d29
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
mov ecx, 0x456e18
mov edx, ebx
call fcn.00404aa4
mov eax, dword [ebp - 0x2c]
call fcn.00404c58
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call eax
jmp 0x456d7d
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 ecx, 0x456e18
mov edx, ebx
call fcn.00404aa4
mov eax, dword [ebp - 0x30]
call fcn.00404c58
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x456d7d
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.00405a94
call fcn.00405a94
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 0x456e20
mov edi, dword [0x5334d4]
mov edi, dword [edi]
lea edx, [ebp - 0x38]
mov eax, ebx
call edi
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
call fcn.004050e8
push dword [ebp - 0x34]
push 0x456e28
push dword [ebp - 4]
push dword [ebp - 8]
lea eax, [ebp - 0x3c]
call fcn.0040b684
push dword [ebp - 0x3c]
mov eax, esi
mov edx, 4
call fcn.004051d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456dfb
lea eax, [ebp - 0x3c]
call fcn.00404f44
lea eax, [ebp - 0x38]
call fcn.00404788
lea eax, [ebp - 0x34]
call fcn.00404f44
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.004047ac
ret
Function at 0x459bb8
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_1
cmp esi, eax
je 0x459be2
push edi
call sub.kernel32.dll_SuspendThread
mov esi, eax
cmp esi, 0xffffffff
je 0x459be2
push edi
call sub.kernel32.dll_ResumeThread
test esi, esi
setg bl
mov eax, ebx
pop edi
pop esi
pop ebx
ret