joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a584220
Capabilities:
Create pipe
Create thread

Disassembly:
push ecx
mov byte [0x4a5e8e64], 0
push 0
push 0
push 0x4a5e8e74
push 0x4a5e8e70
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x4a5842ad
push 0
push 0
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x4a5e8e78], eax
mov dword [esp], 1
push 0
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [0x4a5e8e70]
push eax
call sub.kernel32.dll_SetNamedPipeHandleState
push 0x4a5e8e68
push 0
push 0
push 0x4a5840b0
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4a5e8e6c], eax
cmp dword [0x4a5e8e6c], 0
je 0x4a5842ad
mov edx, 0x4a5842bc
mov eax, dword [0x4a5e8e68]
call fcn.4a553d68
push 2
mov eax, dword [0x4a5e8e6c]
push eax
call sub.kernel32.dll_SetThreadPriority
pop edx
ret

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

Disassembly:
add esp, 0xffffff6c
cmp dword [0x4a5e8e68], 0xffffffff
je 0x4a584439
mov byte [0x4a5e8e64], 1
mov eax, dword [0x4a5e8e6c]
push eax
call sub.kernel32.dll_ResumeThread
xor eax, eax
call fcn.4a554288
test al, al
jne 0x4a584377
lea eax, [esp + 4]
mov edx, 0x90
call fcn.4a50e138
push 0
lea eax, [esp + 4]
push eax
push 0x90
lea eax, [esp + 0x10]
push eax
mov eax, dword [0x4a5e8e74]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [0x4a5e8e74]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0x1f4
mov eax, dword [0x4a5e8e6c]
push eax
call sub.kernel32.dll_WaitForSingleObject
jmp 0x4a584382
mov eax, dword [0x4a5e8e74]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp dword [0x4a5e8e78], 0
je 0x4a584396
mov eax, dword [0x4a5e8e78]
push eax
call sub.kernel32.dll_SetEvent
cmp dword [0x4a5e8e70], 0
je 0x4a5843b1
mov eax, dword [0x4a5e8e70]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [0x4a5e8e70], eax
push 0x32
mov eax, dword [0x4a5e8e6c]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x4a5843e3
push 0
mov eax, dword [0x4a5e8e6c]
push eax
call sub.kernel32.dll_TerminateThread
cmp dword [0x4a5e8e7c], 0
je 0x4a5843e3
mov eax, dword [0x4a5e8e7c]
push eax
call sub.kernel32.dll_LocalFree_1
cmp dword [0x4a5e8e78], 0
je 0x4a584409
mov eax, dword [0x4a5e8e78]
push eax
call sub.kernel32.dll_SetEvent
mov eax, dword [0x4a5e8e78]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [0x4a5e8e78], eax
xor eax, eax
mov dword [0x4a5e8e7c], eax
mov eax, dword [0x4a5e8e6c]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [0x4a5e8e68]
call fcn.4a553adc
mov dword [0x4a5e8e68], 0xffffffff
add esp, 0x94
ret
Function at 0x4a5852d0
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 0x4a585393
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.4a507618
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4a585338
push 0x104
lea eax, [ebp - 0x20a]
push eax
push 0x1001
push 0x800
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4a58537a
mov eax, ebx
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.4a5083a4
jmp 0x4a58537a
push 0x104
lea eax, [ebp - 0x20a]
push eax
push 0x1001
push 0x800
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x4a58537a
lea eax, [ebp - 0x210]
lea edx, [ebp - 0x20a]
mov ecx, 0
call fcn.4a507c94
mov edx, dword [ebp - 0x210]
mov eax, ebx
call fcn.4a5083c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a58539a
lea eax, [ebp - 0x210]
call fcn.4a50763c
ret

Function at 0x4a585744
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 0x4a585842
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4a585850
push 0x4a58587c
call sub.kernel32.dll_GetModuleHandleW_1
push eax
call fcn.4a50d92c
test eax, eax
je 0x4a58578b
mov dword [ebp - 0x60], 0x40
lea edx, [ebp - 0x60]
push edx
call eax
jmp 0x4a5857b1
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.4a508e64
push edx
push eax
lea ecx, [ebp - 0x64]
mov dx, 0x30
mov eax, 1
call fcn.4a511034
push dword [ebp - 0x64]
push 0x4a5858a4
push 0
push 0x100000
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
add eax, 0x80000
adc edx, 0
call fcn.4a508e64
push edx
push eax
lea ecx, [ebp - 0x68]
mov dx, 0x30
mov eax, 1
call fcn.4a511034
push dword [ebp - 0x68]
push 0x4a5858b4
mov eax, ebx
mov edx, 4
call fcn.4a508570
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a585849
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.4a507678
ret
Function at 0x4a585c64
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 0x4a585dc8
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea eax, [ebp - 4]
call fcn.4a50763c
push 0x4a5f416c
call sub.kernel32.dll_EnterCriticalSection_1
xor eax, eax
push ebp
push 0x4a585d99
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 4]
mov ecx, ebx
mov edx, esi
call fcn.4a5077d4
push 0
mov edx, edi
lea eax, [ebp - 8]
mov ecx, ebx
call fcn.4a5077d4
mov eax, dword [ebp - 4]
call fcn.4a507af4
cmp ebx, eax
jne 0x4a585d8f
mov eax, dword [ebp - 8]
call fcn.4a507af4
cmp ebx, eax
jne 0x4a585d8f
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.4a507ef8
je 0x4a585d8f
lea eax, [ebp - 0x10]
push eax
push 0x40
push ebx
push esi
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a585d8f
mov edx, esi
mov eax, edi
mov ecx, ebx
call fcn.4a504a94
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 [0x4a5f4184]
call fcn.4a509254
mov ebx, eax
lea eax, [ebx + 1]
push eax
mov eax, 0x4a5f4184
mov ecx, 1
mov edx, dword [0x4a585c38]
call fcn.4a509478
add esp, 4
mov edi, ebx
add edi, edi
mov eax, dword [0x4a5f4184]
mov dword [eax + edi*8], esi
mov eax, dword [0x4a5f4184]
lea eax, [eax + edi*8 + 4]
mov edx, dword [ebp - 4]
call fcn.4a507a74
mov eax, dword [0x4a5f4184]
lea eax, [eax + edi*8 + 8]
mov edx, dword [ebp - 8]
call fcn.4a507a74
mov eax, dword [0x4a5f4184]
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 0x4a585da3
push 0x4a5f416c
call sub.kernel32.dll_LeaveCriticalSection_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a585dcf
lea eax, [ebp - 8]
mov edx, 2
call fcn.4a5076a8
ret
Function at 0x4a585ddc
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 0x4a585f0a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4a5f416c
call sub.kernel32.dll_EnterCriticalSection_1
mov eax, dword [0x4a5f4184]
call fcn.4a509260
test eax, eax
jl 0x4a585edb
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
add eax, eax
mov edx, dword [0x4a5f4184]
lea ebx, [edx + eax*8]
xor eax, eax
push ebp
push 0x4a585ec5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 8]
call fcn.4a507af4
mov edx, eax
mov eax, dword [ebx]
call fcn.4a5179f0
test al, al
jne 0x4a585ebb
push 0
mov eax, dword [ebx + 8]
call fcn.4a507af4
mov ecx, eax
mov edx, dword [ebx]
lea eax, [ebp - 4]
call fcn.4a5077d4
mov eax, dword [ebp - 4]
mov edx, dword [ebx + 8]
call fcn.4a507ef8
jne 0x4a585ebb
lea eax, [ebp - 0xc]
push eax
push 0x40
mov eax, dword [ebx + 4]
call fcn.4a507af4
push eax
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a585ebb
mov eax, dword [ebx + 4]
call fcn.4a507af4
mov ecx, eax
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
call fcn.4a504a94
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebx + 4]
call fcn.4a507af4
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 0x4a585ecf
inc dword [ebp - 8]
dec dword [ebp - 0x10]
jne 0x4a585e1f
push 0x4a5f416c
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 0x4a585f11
lea eax, [ebp - 4]
call fcn.4a50763c
ret
Function at 0x4a5863e0
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 0x4a586520
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, 0x4a58653c
call fcn.4a507ef8
je 0x4a5864ed
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x4a586455
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
mov ecx, 0x4a58654c
mov edx, ebx
call fcn.4a507dac
mov eax, dword [ebp - 0x2c]
call fcn.4a507f78
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call eax
jmp 0x4a5864a9
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, 0x4a58654c
mov edx, ebx
call fcn.4a507dac
mov eax, dword [ebp - 0x30]
call fcn.4a507f78
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x4a5864a9
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.4a508e40
call fcn.4a508e40
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 0x4a58655c
mov edi, dword [0x4a5ed59c]
mov edi, dword [edi]
lea edx, [ebp - 0x38]
mov eax, ebx
call edi
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
call fcn.4a5083c0
push dword [ebp - 0x34]
push 0x4a58656c
push dword [ebp - 4]
push dword [ebp - 8]
lea eax, [ebp - 0x3c]
call fcn.4a5119e0
push dword [ebp - 0x3c]
mov eax, esi
mov edx, 4
call fcn.4a508570
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a586527
lea eax, [ebp - 0x3c]
call fcn.4a507618
lea eax, [ebp - 0x38]
call fcn.4a50763c
lea eax, [ebp - 0x34]
call fcn.4a507618
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.4a5076a8
ret
Function at 0x4a5895fc
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 0x4a589626
push edi
call sub.kernel32.dll_SuspendThread
mov esi, eax
cmp esi, 0xffffffff
je 0x4a589626
push edi
call sub.kernel32.dll_ResumeThread
test esi, esi
setg bl
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4a58dfc8
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 0x4a58e0d8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [edi], 0
jne 0x4a58e0b8
mov eax, ebx
call fcn.4a507f78
push eax
call sub.kernel32.dll_GetModuleHandleA
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.4a516cb0
mov dword [edi], eax
test esi, esi
je 0x4a58e026
cmp word [esi], 0x25ff
jne 0x4a58e026
mov eax, esi
add eax, 2
mov eax, dword [eax]
mov ebx, dword [eax]
jmp 0x4a58e028
xor ebx, ebx
cmp byte [ebp + 8], 0
jne 0x4a58e046
push 0
call sub.kernel32.dll_GetModuleHandleW_1
cmp eax, dword [0x4a5e851c]
je 0x4a58e046
cmp byte [0x4a5e8528], 0
je 0x4a58e05d
lea eax, [ebp - 0x10]
call fcn.4a5533c4
mov eax, dword [ebp - 0x10]
mov edx, dword [edi]
mov ecx, dword [ebp + 0xc]
call fcn.4a553814
jmp 0x4a58e06c
mov edx, dword [edi]
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x4a5e851c]
call fcn.4a55375c
test ebx, ebx
je 0x4a58e07b
mov eax, esi
add eax, 2
mov eax, dword [eax]
cmp ebx, dword [eax]
je 0x4a58e07f
xor eax, eax
jmp 0x4a58e081
mov al, 1
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
je 0x4a58e0bc
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 0x4a58e0bc
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 0x4a58e0bc
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a58e0df
lea eax, [ebp - 0x10]
mov edx, dword [0x4a553394]
call fcn.4a50959c
ret
Function at 0x4a58e0ec
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 0x4a58e1c7
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
je 0x4a58e1ab
test esi, esi
je 0x4a58e12d
cmp word [esi], 0x25ff
jne 0x4a58e12d
mov eax, esi
add eax, 2
mov eax, dword [eax]
mov ebx, dword [eax]
jmp 0x4a58e12f
xor ebx, ebx
cmp byte [ebp + 8], 0
jne 0x4a58e14d
push 0
call sub.kernel32.dll_GetModuleHandleW_1
cmp eax, dword [0x4a5e851c]
je 0x4a58e14d
cmp byte [0x4a5e8528], 0
je 0x4a58e164
lea eax, [ebp - 0xc]
call fcn.4a5533c4
mov eax, dword [ebp - 0xc]
mov ecx, edi
mov edx, dword [ebp - 4]
call fcn.4a553814
jmp 0x4a58e173
mov ecx, edi
mov edx, dword [ebp - 4]
mov eax, dword [0x4a5e851c]
call fcn.4a55375c
test ebx, ebx
je 0x4a58e1ab
mov eax, esi
add eax, 2
mov eax, dword [eax]
cmp ebx, dword [eax]
jne 0x4a58e1ab
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 0x4a58e1ab
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 0x4a58e1ce
lea eax, [ebp - 0xc]
mov edx, dword [0x4a553394]
call fcn.4a50959c
ret
Function at 0x4a58e9f4
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 [0x4a517e94]
call fcn.4a508938
xor eax, eax
push ebp
push 0x4a58eb64
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.4a51d3ec
cmp byte [ebp - 0x40], 0
je 0x4a58eb48
mov eax, dword [ebp - 0x20]
call fcn.4a509260
test eax, eax
jl 0x4a58eb48
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 0x4a58eb40
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + edx*4 + 4]
cmp byte [eax], 0xe8
jne 0x4a58eae2
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 0x4a58eb48
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 0x4a58eb48
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + edx*4 + 4]
cmp word [eax], 0x15ff
jne 0x4a58eb48
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 0x4a58eb48
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 0x4a58eb48
inc esi
dec eax
jne 0x4a58ea67
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a58eb6b
lea eax, [ebp - 0x40]
mov edx, dword [0x4a517e94]
call fcn.4a508a10
ret
Function at 0x4a58edd4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov byte [0x4a5e8ec8], 0
cmp dword [0x4a5e8ecc], 0
je 0x4a58ee1b
push esp
push 0x40
push 4
mov eax, dword [0x4a5e8ecc]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a58ee71
mov eax, dword [0x4a5e8ecc]
mov edx, dword [0x4a5e8ed0]
mov dword [eax], edx
push esp
mov eax, dword [esp + 4]
push eax
push 4
mov eax, dword [0x4a5e8ecc]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x4a58ee71
cmp dword [0x4a5e8ed4], 0
je 0x4a58ee5a
push esp
push 0x40
push 4
mov eax, dword [0x4a5e8ed4]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a58ee71
mov eax, dword [0x4a5e8ed4]
mov edx, dword [0x4a5e8ed8]
mov dword [eax], edx
push esp
mov eax, dword [esp + 4]
push eax
push 4
mov eax, dword [0x4a5e8ed4]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x4a58ee71
push 0
mov ecx, 0x4a58e710
mov eax, sub.kernel32.dll_CreateThread_1
mov edx, dword [0x4a5e8ec0]
call fcn.4a58e0ec
push 0
mov ecx, 0x4a58e9c8
mov edx, dword [0x4a5e8ec4]
xor eax, eax
call fcn.4a58e0ec
push 0
push 0
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
pop edx
ret

Function at 0x4a58f490
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov esi, eax
lea eax, [ebp - 8]
mov edx, dword [0x4a58f328]
call fcn.4a508938
xor eax, eax
push ebp
push 0x4a58f56f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x4a58f57c
call sub.user32.dll_FindWindowA
mov ebx, eax
test ebx, ebx
je 0x4a58f546
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
call sub.user32.dll_GetWindowThreadProcessId
mov cl, 0x30
mov edx, 1
call fcn.4a510ea4
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov edx, 0x4a58f594
call fcn.4a507dac
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.4a512318
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.4a507abc
lea eax, [ebp - 4]
mov edx, 0x4a58f5bc
call fcn.4a507d54
mov eax, dword [ebp - 4]
call fcn.4a507af4
cmp eax, 0x104
jge 0x4a58f538
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, 0x104
call fcn.4a5080ac
lea eax, [ebp - 8]
push eax
push 0x4a58f398
call sub.user32.dll_EnumWindows
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a58f576
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.4a5076a8
lea eax, [ebp - 8]
mov edx, dword [0x4a58f328]
call fcn.4a508a10
ret
Function at 0x4a58fe8c
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 0x4a58ff61
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.4a510ea4
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x4a58ff7c
call fcn.4a507dac
mov eax, dword [ebp - 4]
call fcn.4a507f78
push eax
push 0
push 4
call sub.kernel32.dll_OpenFileMappingA
mov ebx, eax
test ebx, ebx
je 0x4a58ff46
mov byte [0x4a5e846c], 1
push 0
push 0
push 0
push 4
push ebx
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
test esi, esi
je 0x4a58ff40
mov eax, dword [esi + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esi]
push eax
push 0
push 0x100000
call sub.kernel32.dll_OpenProcess
mov edi, eax
test edi, edi
je 0x4a58ff28
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
push edi
call sub.kernel32.dll_CloseHandle_1
mov edx, 0x4a5e8578
lea eax, [esi + 8]
mov ecx, 0x50
call fcn.4a504a94
push esi
call sub.kernel32.dll_UnmapViewOfFile
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a58ff68
lea eax, [ebp - 8]
mov edx, 2
call fcn.4a5076a8
ret
Function at 0x4a59049c
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 ebx, eax
xor eax, eax
push ebp
push 0x4a590615
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov edx, 0x4a590624
mov ecx, 0x4a590638
mov eax, ebx
call fcn.4a517238
mov eax, dword [ebp - 4]
call fcn.4a507af4
cmp eax, 0x14
jne 0x4a5905ff
cmp ebx, dword [0x4a5e851c]
sete al
mov edx, dword [ebp - 4]
test byte [edx + 3], 0x80
sete dl
cmp al, dl
jne 0x4a5905ff
mov eax, ebx
call fcn.4a5169c4
mov esi, eax
cmp word [esi + 0x18], 0x20b
jne 0x4a590572
lea eax, [ebp - 8]
push eax
push 0x40
push 0xf0
lea eax, [esi + 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
cmp ebx, dword [0x4a5e851c]
jne 0x4a590538
mov eax, 0x4a551ae8
mov edx, dword [ebp - 4]
sub eax, dword [edx]
sub eax, ebx
mov dword [esi + 0x2c], eax
jmp 0x4a590545
mov eax, dword [ebp - 4]
mov eax, dword [eax]
and eax, 0x7fffffff
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov dword [esi + 0x1c], edx
mov edx, dword [eax + 0xc]
mov dword [esi + 0x20], edx
mov eax, dword [eax + 0x10]
mov dword [esi + 0x24], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
push 0xf0
lea eax, [esi + 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x4a5905f0
lea eax, [ebp - 8]
push eax
push 0x40
push 0xe0
lea eax, [esi + 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
cmp ebx, dword [0x4a5e851c]
jne 0x4a5905ac
mov edx, 0x4a551ae8
mov eax, dword [ebp - 4]
sub edx, dword [eax]
sub edx, ebx
mov dword [esi + 0x2c], edx
mov edx, 0x4a5e8494
sub edx, dword [eax + 4]
sub edx, ebx
mov dword [esi + 0x30], edx
jmp 0x4a5905c5
mov eax, dword [ebp - 4]
mov edx, dword [eax]
and edx, 0x7fffffff
mov dword [esi + 0x2c], edx
mov eax, dword [eax + 4]
and eax, 0x7fffffff
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov dword [esi + 0x1c], edx
mov edx, dword [eax + 0xc]
mov dword [esi + 0x20], edx
mov eax, dword [eax + 0x10]
mov dword [esi + 0x24], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
push 0xe0
lea eax, [esi + 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
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 0x4a59061c
lea eax, [ebp - 4]
call fcn.4a50763c
ret