joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a671990
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 - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4a671aa9
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetFilePointer_1
mov esi, dword [ebp - 0xc]
cmp byte [ebp + 8], 0
je 0x4a6719da
mov dword [ebp - 0x10], 0x600
jmp 0x4a6719e1
mov dword [ebp - 0x10], 0x800
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.4a60801c
test esi, esi
jbe 0x4a671a8b
cmp esi, dword [ebp - 0x10]
jae 0x4a671a07
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, esi
call fcn.4a60801c
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.4a607a64
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x4a671a34
mov eax, dword [ebp - 4]
call fcn.4a607a64
cmp eax, dword [ebp - 0x14]
je 0x4a671a38
xor ebx, ebx
jmp 0x4a671a8b
cmp byte [ebp + 8], 0
je 0x4a671a57
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.4a624270
mov edx, dword [ebp - 0x18]
mov eax, edi
call fcn.4a670d84
mov ebx, eax
jmp 0x4a671a63
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.4a670d84
mov ebx, eax
test bl, bl
je 0x4a671a8b
sub esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
sub eax, esi
imul eax, eax, 0x3e8
xor edx, edx
div dword [ebp - 0xc]
mov edx, eax
mov eax, edi
call fcn.4a6712d4
test esi, esi
ja 0x4a6719f6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a671ab0
lea eax, [ebp - 0x18]
call fcn.4a6075ac
lea eax, [ebp - 4]
call fcn.4a6075ac
ret
Function at 0x4a677444
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
mov eax, dword [ebp - 4]
call fcn.4a60766c
xor eax, eax
push ebp
push 0x4a677587
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.4a612278
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.4a607990
cmp dword [ebp - 4], 0
je 0x4a67755d
mov eax, dword [ebp - 4]
call fcn.4a607a58
mov edx, dword [ebp - 4]
cmp word [edx + eax*2 - 2], 0x5c
jne 0x4a6774b1
mov eax, dword [ebp - 4]
call fcn.4a607a58
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 1
call fcn.4a6085f4
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4a6774fd
mov eax, dword [ebp - 4]
call fcn.4a60824c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x4a6774f9
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.4a677444
pop ecx
test al, al
je 0x4a6774f5
push 0
mov eax, dword [ebp - 4]
call fcn.4a60824c
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x4a6774f9
xor ebx, ebx
jmp 0x4a67755f
mov bl, 1
jmp 0x4a67755f
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, 0
call fcn.4a608094
mov eax, dword [ebp - 0xc]
call fcn.4a607ee8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x4a677559
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.4a677444
pop ecx
test al, al
je 0x4a677555
push 0
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
mov ecx, 0
call fcn.4a608094
mov eax, dword [ebp - 0x10]
call fcn.4a607ee8
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x4a677559
xor ebx, ebx
jmp 0x4a67755f
mov bl, 1
jmp 0x4a67755f
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a67758e
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.4a607618
lea eax, [ebp - 8]
mov edx, 2
call fcn.4a6075e8
ret
Function at 0x4a67a098
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, 0xfffffd6c
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x290], ecx
mov dword [ebp - 0x294], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov byte [ebp - 9], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x4a67a2b2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x70]
mov edx, 0x44
call fcn.4a60df34
mov dword [ebp - 0x70], 0x44
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4a67a14b
test ebx, ebx
jne 0x4a67a0ff
call sub.kernel32.dll_GetCommandLineW_1
mov edx, eax
lea eax, [ebp - 4]
call fcn.4a6082a4
jmp 0x4a67a109
lea eax, [ebp - 4]
mov edx, ebx
call fcn.4a607990
lea eax, [ebp - 0x28a]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x28a]
push eax
push 0
push 4
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.4a60824c
push eax
push 0
call sub.kernel32.dll_CreateProcessW
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x4a67a1b4
test ebx, ebx
jne 0x4a67a165
call sub.kernel32.dll_GetCommandLineA
mov edx, eax
lea eax, [ebp - 8]
mov ecx, 0
call fcn.4a607c04
jmp 0x4a67a174
lea eax, [ebp - 8]
mov edx, ebx
mov ecx, 0
call fcn.4a608094
lea eax, [ebp - 0x28a]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x28a]
push eax
push 0
push 4
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.4a607ee8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4a67a265
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x18]
call fcn.4a652f90
lea eax, [ebp - 0x294]
push eax
mov cl, 0x30
mov edx, 1
mov eax, dword [ebp - 0x78]
call fcn.4a6109bc
mov ecx, dword [ebp - 0x294]
lea eax, [ebp - 0x290]
mov edx, 0x4a67a2cc
call fcn.4a607d1c
mov eax, dword [ebp - 0x290]
call fcn.4a607ee8
push eax
push 0x58
push 0
push 4
lea eax, [ebp - 0x18]
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 0x4a67a25c
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 - 0x80]
push eax
push esi
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_DuplicateHandle
lea edx, [ebx + 8]
mov eax, 0x4a6cb578
mov ecx, 0x50
call fcn.4a604a4c
mov eax, dword [ebp - 0x7c]
push eax
call sub.kernel32.dll_ResumeThread
cmp byte [ebp - 9], 0
je 0x4a67a27a
push 2
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_TerminateProcess
jmp 0x4a67a284
mov eax, 2
call fcn.4a607404
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a67a2b9
lea eax, [ebp - 0x294]
mov edx, 2
call fcn.4a607618
lea eax, [ebp - 8]
call fcn.4a6075ac
lea eax, [ebp - 4]
call fcn.4a607588
ret
Function at 0x4a68404c
Capabilities:
Create pipe
Create thread

Disassembly:
push ecx
mov byte [0x4a6cbe64], 0
push 0
push 0
push 0x4a6cbe74
push 0x4a6cbe70
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x4a6840d9
push 0
push 0
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x4a6cbe78], eax
mov dword [esp], 1
push 0
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [0x4a6cbe70]
push eax
call sub.kernel32.dll_SetNamedPipeHandleState
push 0x4a6cbe68
push 0
push 0
push 0x4a683edc
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4a6cbe6c], eax
cmp dword [0x4a6cbe6c], 0
je 0x4a6840d9
mov edx, 0x4a6840e8
mov eax, dword [0x4a6cbe68]
call fcn.4a653b94
push 2
mov eax, dword [0x4a6cbe6c]
push eax
call sub.kernel32.dll_SetThreadPriority
pop edx
ret

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

Disassembly:
add esp, 0xffffff6c
cmp dword [0x4a6cbe68], 0xffffffff
je 0x4a684265
mov byte [0x4a6cbe64], 1
mov eax, dword [0x4a6cbe6c]
push eax
call sub.kernel32.dll_ResumeThread
xor eax, eax
call fcn.4a6540b4
test al, al
jne 0x4a6841a3
lea eax, [esp + 4]
mov edx, 0x90
call fcn.4a60df34
push 0
lea eax, [esp + 4]
push eax
push 0x90
lea eax, [esp + 0x10]
push eax
mov eax, dword [0x4a6cbe74]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [0x4a6cbe74]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0x1f4
mov eax, dword [0x4a6cbe6c]
push eax
call sub.kernel32.dll_WaitForSingleObject
jmp 0x4a6841ae
mov eax, dword [0x4a6cbe74]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp dword [0x4a6cbe78], 0
je 0x4a6841c2
mov eax, dword [0x4a6cbe78]
push eax
call sub.kernel32.dll_SetEvent
cmp dword [0x4a6cbe70], 0
je 0x4a6841dd
mov eax, dword [0x4a6cbe70]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [0x4a6cbe70], eax
push 0x32
mov eax, dword [0x4a6cbe6c]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x4a68420f
push 0
mov eax, dword [0x4a6cbe6c]
push eax
call sub.kernel32.dll_TerminateThread
cmp dword [0x4a6cbe7c], 0
je 0x4a68420f
mov eax, dword [0x4a6cbe7c]
push eax
call sub.kernel32.dll_LocalFree_1
cmp dword [0x4a6cbe78], 0
je 0x4a684235
mov eax, dword [0x4a6cbe78]
push eax
call sub.kernel32.dll_SetEvent
mov eax, dword [0x4a6cbe78]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [0x4a6cbe78], eax
xor eax, eax
mov dword [0x4a6cbe7c], eax
mov eax, dword [0x4a6cbe6c]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [0x4a6cbe68]
call fcn.4a653908
mov dword [0x4a6cbe68], 0xffffffff
add esp, 0x94
ret
Function at 0x4a6852c4
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 0x4a685387
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.4a607588
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4a68532c
push 0x104
lea eax, [ebp - 0x20a]
push eax
push 0x1001
push 0x800
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4a68536e
mov eax, ebx
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.4a6082f8
jmp 0x4a68536e
push 0x104
lea eax, [ebp - 0x20a]
push eax
push 0x1001
push 0x800
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x4a68536e
lea eax, [ebp - 0x210]
lea edx, [ebp - 0x20a]
mov ecx, 0
call fcn.4a607c04
mov edx, dword [ebp - 0x210]
mov eax, ebx
call fcn.4a608314
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a68538e
lea eax, [ebp - 0x210]
call fcn.4a6075ac
ret

Function at 0x4a685738
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 0x4a685836
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4a685844
push 0x4a685870
call sub.kernel32.dll_GetModuleHandleW_1
push eax
call fcn.4a60d6e0
test eax, eax
je 0x4a68577f
mov dword [ebp - 0x60], 0x40
lea edx, [ebp - 0x60]
push edx
call eax
jmp 0x4a6857a5
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.4a608db8
push edx
push eax
lea ecx, [ebp - 0x64]
mov dx, 0x30
mov eax, 1
call fcn.4a610b4c
push dword [ebp - 0x64]
push 0x4a685898
push 0
push 0x100000
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
add eax, 0x80000
adc edx, 0
call fcn.4a608db8
push edx
push eax
lea ecx, [ebp - 0x68]
mov dx, 0x30
mov eax, 1
call fcn.4a610b4c
push dword [ebp - 0x68]
push 0x4a6858a8
mov eax, ebx
mov edx, 4
call fcn.4a6084c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a68583d
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.4a6075e8
ret
Function at 0x4a685c58
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 0x4a685dbc
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea eax, [ebp - 4]
call fcn.4a6075ac
push 0x4a6d516c
call sub.kernel32.dll_EnterCriticalSection_1
xor eax, eax
push ebp
push 0x4a685d8d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 4]
mov ecx, ebx
mov edx, esi
call fcn.4a607744
push 0
mov edx, edi
lea eax, [ebp - 8]
mov ecx, ebx
call fcn.4a607744
mov eax, dword [ebp - 4]
call fcn.4a607a64
cmp ebx, eax
jne 0x4a685d83
mov eax, dword [ebp - 8]
call fcn.4a607a64
cmp ebx, eax
jne 0x4a685d83
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.4a607e68
je 0x4a685d83
lea eax, [ebp - 0x10]
push eax
push 0x40
push ebx
push esi
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a685d83
mov edx, esi
mov eax, edi
mov ecx, ebx
call fcn.4a604a4c
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 [0x4a6d5184]
call fcn.4a608f2c
mov ebx, eax
lea eax, [ebx + 1]
push eax
mov eax, 0x4a6d5184
mov ecx, 1
mov edx, dword [0x4a685c2c]
call fcn.4a609150
add esp, 4
mov edi, ebx
add edi, edi
mov eax, dword [0x4a6d5184]
mov dword [eax + edi*8], esi
mov eax, dword [0x4a6d5184]
lea eax, [eax + edi*8 + 4]
mov edx, dword [ebp - 4]
call fcn.4a6079e4
mov eax, dword [0x4a6d5184]
lea eax, [eax + edi*8 + 8]
mov edx, dword [ebp - 8]
call fcn.4a6079e4
mov eax, dword [0x4a6d5184]
mov edx, dword [ebp + 8]
mov dword [eax + edi*8 + 0xc], edx
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a685d97
push 0x4a6d516c
call sub.kernel32.dll_LeaveCriticalSection_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a685dc3
lea eax, [ebp - 8]
mov edx, 2
call fcn.4a607618
ret
Function at 0x4a685dd0
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 0x4a685efe
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4a6d516c
call sub.kernel32.dll_EnterCriticalSection_1
mov eax, dword [0x4a6d5184]
call fcn.4a608f38
test eax, eax
jl 0x4a685ecf
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
add eax, eax
mov edx, dword [0x4a6d5184]
lea ebx, [edx + eax*8]
xor eax, eax
push ebp
push 0x4a685eb9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 8]
call fcn.4a607a64
mov edx, eax
mov eax, dword [ebx]
call fcn.4a6178d4
test al, al
jne 0x4a685eaf
push 0
mov eax, dword [ebx + 8]
call fcn.4a607a64
mov ecx, eax
mov edx, dword [ebx]
lea eax, [ebp - 4]
call fcn.4a607744
mov eax, dword [ebp - 4]
mov edx, dword [ebx + 8]
call fcn.4a607e68
jne 0x4a685eaf
lea eax, [ebp - 0xc]
push eax
push 0x40
mov eax, dword [ebx + 4]
call fcn.4a607a64
push eax
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a685eaf
mov eax, dword [ebx + 4]
call fcn.4a607a64
mov ecx, eax
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
call fcn.4a604a4c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebx + 4]
call fcn.4a607a64
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 0x4a685ec3
inc dword [ebp - 8]
dec dword [ebp - 0x10]
jne 0x4a685e13
push 0x4a6d516c
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 0x4a685f05
lea eax, [ebp - 4]
call fcn.4a6075ac
ret
Function at 0x4a6863d4
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 0x4a686514
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, 0x4a686530
call fcn.4a607e68
je 0x4a6864e1
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x4a686449
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
mov ecx, 0x4a686540
mov edx, ebx
call fcn.4a607d1c
mov eax, dword [ebp - 0x2c]
call fcn.4a607ee8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call eax
jmp 0x4a68649d
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, 0x4a686540
mov edx, ebx
call fcn.4a607d1c
mov eax, dword [ebp - 0x30]
call fcn.4a607ee8
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x4a68649d
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.4a608d94
call fcn.4a608d94
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 0x4a686550
mov edi, dword [0x4a6ce7a4]
mov edi, dword [edi]
lea edx, [ebp - 0x38]
mov eax, ebx
call edi
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
call fcn.4a608314
push dword [ebp - 0x34]
push 0x4a686560
push dword [ebp - 4]
push dword [ebp - 8]
lea eax, [ebp - 0x3c]
call fcn.4a6116d4
push dword [ebp - 0x3c]
mov eax, esi
mov edx, 4
call fcn.4a6084c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a68651b
lea eax, [ebp - 0x3c]
call fcn.4a607588
lea eax, [ebp - 0x38]
call fcn.4a6075ac
lea eax, [ebp - 0x34]
call fcn.4a607588
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.4a607618
ret
Function at 0x4a6895f0
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 0x4a68961a
push edi
call sub.kernel32.dll_SuspendThread
mov esi, eax
cmp esi, 0xffffffff
je 0x4a68961a
push edi
call sub.kernel32.dll_ResumeThread
test esi, esi
setg bl
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4a68dfbc
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 - 0x10], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x4a68e0cc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [edi], 0
jne 0x4a68e0ac
mov eax, ebx
call fcn.4a607ee8
push eax
call sub.kernel32.dll_GetModuleHandleA
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.4a616b94
mov dword [edi], eax
test esi, esi
je 0x4a68e01a
cmp word [esi], 0x25ff
jne 0x4a68e01a
mov eax, esi
add eax, 2
mov eax, dword [eax]
mov ebx, dword [eax]
jmp 0x4a68e01c
xor ebx, ebx
cmp byte [ebp + 8], 0
jne 0x4a68e03a
push 0
call sub.kernel32.dll_GetModuleHandleW_1
cmp eax, dword [0x4a6cb51c]
je 0x4a68e03a
cmp byte [0x4a6cb528], 0
je 0x4a68e051
lea eax, [ebp - 0x10]
call fcn.4a6531f0
mov eax, dword [ebp - 0x10]
mov edx, dword [edi]
mov ecx, dword [ebp + 0xc]
call fcn.4a653640
jmp 0x4a68e060
mov edx, dword [edi]
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x4a6cb51c]
call fcn.4a653588
test ebx, ebx
je 0x4a68e06f
mov eax, esi
add eax, 2
mov eax, dword [eax]
cmp ebx, dword [eax]
je 0x4a68e073
xor eax, eax
jmp 0x4a68e075
mov al, 1
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
je 0x4a68e0b0
add esi, 2
mov ebx, dword [esi]
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a68e0b0
mov eax, dword [ebp + 0xc]
mov dword [ebx], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
jmp 0x4a68e0b0
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a68e0d3
lea eax, [ebp - 0x10]
mov edx, dword [0x4a6531c0]
call fcn.4a609274
ret
Function at 0x4a68e0e0
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 0x4a68e1bb
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
je 0x4a68e19f
test esi, esi
je 0x4a68e121
cmp word [esi], 0x25ff
jne 0x4a68e121
mov eax, esi
add eax, 2
mov eax, dword [eax]
mov ebx, dword [eax]
jmp 0x4a68e123
xor ebx, ebx
cmp byte [ebp + 8], 0
jne 0x4a68e141
push 0
call sub.kernel32.dll_GetModuleHandleW_1
cmp eax, dword [0x4a6cb51c]
je 0x4a68e141
cmp byte [0x4a6cb528], 0
je 0x4a68e158
lea eax, [ebp - 0xc]
call fcn.4a6531f0
mov eax, dword [ebp - 0xc]
mov ecx, edi
mov edx, dword [ebp - 4]
call fcn.4a653640
jmp 0x4a68e167
mov ecx, edi
mov edx, dword [ebp - 4]
mov eax, dword [0x4a6cb51c]
call fcn.4a653588
test ebx, ebx
je 0x4a68e19f
mov eax, esi
add eax, 2
mov eax, dword [eax]
cmp ebx, dword [eax]
jne 0x4a68e19f
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 0x4a68e19f
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 0x4a68e1c2
lea eax, [ebp - 0xc]
mov edx, dword [0x4a6531c0]
call fcn.4a609274
ret
Function at 0x4a68e9e8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], edx
mov ebx, eax
lea eax, [ebp - 0x40]
mov edx, dword [0x4a617d78]
call fcn.4a60888c
xor eax, eax
push ebp
push 0x4a68eb58
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x49], 0
mov eax, dword [ebp + 0x14]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
lea edx, [ebp - 0x40]
mov eax, ebx
call fcn.4a61d2d0
cmp byte [ebp - 0x40], 0
je 0x4a68eb3c
mov eax, dword [ebp - 0x20]
call fcn.4a608f38
test eax, eax
jl 0x4a68eb3c
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]
mov ecx, dword [ebx + 0xc]
cmp ecx, dword [ebp - 0x44]
jne 0x4a68eb34
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + edx*4 + 4]
cmp byte [eax], 0xe8
jne 0x4a68ead6
lea eax, [ebp - 0x50]
push eax
push 0x40
push 4
mov eax, dword [ebx + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a68eb3c
mov edx, dword [ebp + 0x14]
mov eax, dword [ebx + 0x14]
mov dword [edx], eax
mov edx, dword [ebp + 0x14]
mov edx, dword [edx]
mov edx, dword [edx]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], edx
mov edx, dword [ebp - 0x48]
sub edx, dword [ebx + 8]
mov dword [eax], edx
lea edx, [ebp - 0x50]
push edx
mov edx, dword [ebp - 0x50]
push edx
push 4
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [ebp + 0x18]
mov edx, dword [ebx + 0xc]
mov dword [eax], edx
mov byte [ebp - 0x49], 1
jmp 0x4a68eb3c
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + edx*4 + 4]
cmp word [eax], 0x15ff
jne 0x4a68eb3c
lea eax, [ebp - 0x50]
push eax
push 0x40
push 4
mov eax, dword [ebx + 0x18]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a68eb3c
mov eax, dword [ebx + 0x18]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
mov edx, dword [edx]
mov ecx, dword [ebp + 8]
mov dword [ecx], edx
mov edx, dword [ebp - 0x48]
mov dword [eax], edx
lea edx, [ebp - 0x50]
push edx
mov edx, dword [ebp - 0x50]
push edx
push 4
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [ebp + 0x18]
mov edx, dword [ebx + 0xc]
mov dword [eax], edx
mov byte [ebp - 0x49], 1
jmp 0x4a68eb3c
inc esi
dec eax
jne 0x4a68ea5b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a68eb5f
lea eax, [ebp - 0x40]
mov edx, dword [0x4a617d78]
call fcn.4a608964
ret