joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c2400
Capabilities:
Enumerate gui resources

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push 0x4c2430
push ecx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
mov ax, word [esp]
pop ecx
ret

Function at 0x4c2cc0
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
lea eax, [esp]
push esi
push eax
push 4
push 0
mov esi, ecx
push 0x4c2c50
push 0
push 0
mov dword [esi], 0
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 8], eax
je 0x4c2d03
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop ecx
ret

Function at 0x4c2d10
Capabilities:
Terminate thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x4c2d8b
push ebp
lea ecx, [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push ecx
push eax
mov dword [esi + 0xc], 1
mov dword [esp + 0x18], ebx
call edi
test eax, eax
je 0x4c2d78
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esp + 0x10], 0x103
jne 0x4c2d78
inc ebx
cmp ebx, 0xa
ja 0x4c2d6c
mov edx, dword [esi + 8]
push 0x64
push edx
call ebp
mov ecx, dword [esi + 8]
lea eax, [esp + 0x10]
push eax
push ecx
call edi
test eax, eax
jne 0x4c2d43
jmp 0x4c2d78
mov edx, dword [esi + 8]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [esi + 8], 0
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x4c2db0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x53a21b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 8], esi
mov dword [esi + 0x20], 0x5504f8
mov dword [esi + 0x24], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], edi
mov dword [esp + 0x14], edi
call fcn.004c2270
mov edx, dword [eax]
push 0x2393
mov ecx, eax
call dword [edx + 0x14]
mov dword [esi + 0x38], eax
call fcn.004c2270
mov edx, dword [eax]
push 0x2392
mov ecx, eax
call dword [edx + 0x14]
mov dword [esi + 0x3c], eax
call fcn.004c2270
mov edx, dword [eax]
push 0x2391
mov ecx, eax
call dword [edx + 0x14]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x14], edi
mov dword [esi + 0x34], eax
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x4c36a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x53a2c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x598d50]
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [esp + 0x24], esi
call fcn.004c2270
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push 0x23cb
push ecx
mov ecx, eax
call dword [edx + 4]
mov edx, dword [0x598d50]
mov ebp, 1
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x10]
push ebp
lea ecx, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0x30], 1
call fcn.0050a945
mov edx, dword [edi + 0x68]
add esp, 0xc
mov eax, dword [edx + 0x80]
cmp eax, esi
mov dword [esp + 0x18], eax
jle 0x4c3774
push ebx
mov ecx, dword [edi + 0x68]
push esi
call fcn.00494be0
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.004745b0
mov eax, dword [eax]
mov edx, dword [esp + 0x10]
push eax
push edx
call fcn.004625b8
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
sete bl
call fcn.00511eeb
test bl, bl
je 0x4c376c
mov eax, ebp
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push eax
push ecx
inc ebp
call fcn.0050a945
add esp, 0xc
xor esi, esi
jmp 0x4c376d
inc esi
cmp esi, dword [esp + 0x1c]
jl 0x4c371b
pop ebx
lea edx, [esp + 0xc]
lea ecx, [edi + 0x60]
push edx
call fcn.00512024
push 0
mov ecx, edi
call fcn.0051077f
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call fcn.00511eeb
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00511eeb
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4c4be0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x53a41a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov ecx, dword [esp + 0x20]
push esi
call fcn.0047e420
mov esi, eax
test esi, esi
mov dword [esp + 8], esi
je 0x4c4d89
mov eax, dword [esi + 0x80]
push ebp
xor ebp, ebp
mov dword [esp + 0x10], eax
test eax, eax
jle 0x4c4d54
push ebx
mov ebx, dword [esp + 0x3c]
push edi
push ebp
mov ecx, esi
call fcn.00494be0
mov edi, eax
mov eax, dword [edi + 0x188]
test eax, eax
je 0x4c4d45
mov eax, dword [edi + 0x118]
test eax, eax
je 0x4c4d45
push 0x164
call fcn.00511c2c
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
xor eax, eax
cmp esi, eax
mov dword [esp + 0x28], eax
je 0x4c4c84
mov ecx, esi
call fcn.004c6230
mov dword [esi], 0x5555f0
mov dword [esi + 0x1c], 0x555594
mov eax, esi
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push 1
push edx
mov edx, dword [esp + 0x40]
mov ecx, dword [ecx + 0xe0]
push 0x59f374
push edx
push eax
mov dword [esp + 0x3c], 0xffffffff
call fcn.00478db0
mov esi, eax
push ebx
mov ecx, esi
mov eax, dword [esi]
mov dword [esi + 0x78], ebp
call dword [eax + 0x5c]
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call fcn.004745b0
push 0
lea edx, [esp + 0x44]
push eax
push edx
mov dword [esp + 0x34], 1
call fcn.004c4690
add esp, 0xc
mov eax, dword [eax]
mov ecx, esi
push eax
mov byte [esp + 0x2c], 2
call fcn.00475fb0
lea ecx, [esp + 0x40]
mov byte [esp + 0x28], 1
call fcn.00511eeb
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.00511eeb
push 8
mov ecx, esi
call fcn.004860b0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xdc]
cmp dword [esi + 0x9c], eax
je 0x4c4d36
push 1
mov ecx, esi
mov dword [esi + 0x9c], eax
call fcn.00475ce0
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
inc eax
xor ebx, ebx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x18]
inc ebp
cmp ebp, eax
jl 0x4c4c2b
pop edi
pop ebx
mov eax, dword [esp + 0x34]
pop ebp
test eax, eax
je 0x4c4d89
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x4c4d89
mov ecx, dword [esp + 0x24]
push 0
push 0xffffffffffffffff
push 0
mov ecx, dword [ecx + 0xe0]
push 0x88b9
push 1
call fcn.00478a40
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0x5c]
mov ecx, dword [esp + 0x14]
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x4c76d0
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
test eax, eax
mov eax, dword [esi + 4]
je 0x4c7708
test eax, eax
jne 0x4c771a
push edi
call fcn.005269f5
mov edi, dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push edi
push 0x4c7a10
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [esi + 4], eax
pop edi
pop esi
ret 4
test eax, eax
je 0x4c771a
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [esi + 4], 0
pop esi
ret 4
Function at 0x4c9446
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x53a88e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
xor eax, eax
mov dword [esi + 8], 0x5565d4
mov dword [esp + 0x10], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x2c], 0x5565c8
push 1
mov byte [esp + 0x14], 2
mov dword [esi], 0x5565c4
mov dword [esi + 0x1c], eax
mov dword [esi + 4], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x40], eax
call fcn.004c9950
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4d6300
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x18]
push esi
cmp ebx, 0x112
push edi
mov esi, ecx
ja 0x4d6400
cmp ebx, 0x112
je 0x4d6357
cmp ebx, 5
je 0x4d6330
cmp ebx, 0x47
jne 0x4d6508
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x158]
cmp eax, ecx
jne 0x4d6508
mov ecx, dword [esi - 0x20]
push 0
push 0x2fbf
push 0x113
push ecx
jmp 0x4d6502
lea edi, [esi - 0x3c]
mov ecx, edi
call fcn.004878a0
test eax, eax
je 0x4d6508
push 0x47fb30
mov ecx, 0x5a4cac
call fcn.00527f3c
mov ecx, dword [eax + 4]
test ecx, ecx
jg 0x4d6508
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x4d6508
mov ecx, edi
call fcn.0047e450
test eax, eax
jne 0x4d6508
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
and eax, 0xfff0
cmp eax, 0xf100
jne 0x4d6508
cmp dword [ebp], 0
jne 0x4d6508
mov edx, dword [edi]
push 0x12
mov ecx, edi
call dword [edx + 0x160]
test eax, eax
je 0x4d63df
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x14
mov ecx, edi
call fcn.0047e420
test eax, eax
je 0x4d63f4
push 0
push edi
mov ecx, eax
call fcn.004859c0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x14
cmp ebx, 0x220
jb 0x4d6508
cmp ebx, 0x222
jbe 0x4d64f2
cmp ebx, 0x230
jne 0x4d6508
mov eax, dword [esi - 0x3c]
lea edi, [esi - 0x3c]
mov ecx, edi
call dword [eax + 0xdc]
test eax, eax
mov ecx, edi
je 0x4d64c7
call fcn.0047e450
test eax, eax
je 0x4d646e
mov ecx, edi
call fcn.0047e330
mov ecx, dword [eax + 0x1c]
push 0
push ecx
call dword [sym.imp.USER32.dll_SetMenu]
mov edx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword [edx], 0
mov eax, 1
pop ebx
ret 0x14
mov eax, dword [esi + 0x94]
mov ebx, dword [esp + 0x1c]
test ah, 4
jne 0x4d649b
mov eax, dword [ebx]
test eax, eax
jne 0x4d6493
mov ecx, dword [esi + 0x15c]
test ecx, ecx
je 0x4d649b
test eax, eax
jne 0x4d6493
mov eax, ecx
push eax
mov ecx, edi
call fcn.004d62a0
mov ecx, edi
call fcn.0047e330
mov eax, dword [eax + 0x1c]
push 0
push eax
call dword [sym.imp.USER32.dll_SetMenu]
mov ecx, edi
call fcn.004d5430
pop edi
pop esi
mov dword [ebx], 0
pop ebp
mov eax, 1
pop ebx
ret 0x14
call fcn.0047e330
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call fcn.00512c4f
test eax, eax
jne 0x4d6508
mov edx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword [edx], eax
mov eax, 1
pop ebx
ret 0x14
mov eax, dword [esi - 0x20]
push 0
push 0x2fbf
push 0x113
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push ecx
push ebp
push edx
push ebx
push eax
mov ecx, esi
call fcn.0047d620
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
Function at 0x4d9b50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x53b507
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x598d50]
push ebx
push esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov esi, dword [esp + 0x34]
mov ebx, 1
mov dword [esp + 0x28], ebx
fld qword [esi]
call fcn.00462bd4
test eax, eax
jne 0x4d9bc0
lea ecx, [esp + 0x34]
push 0x59f6a0
push ecx
mov ecx, esi
call fcn.0045b2eb
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 2
call fcn.00512024
mov byte [esp + 0x28], bl
lea ecx, [esp + 0x34]
jmp 0x4d9c41
mov edx, dword [esi]
mov eax, dword [esi + 4]
fld qword [esi]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
call fcn.00462bd4
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
fild qword [esp + 0x10]
fcomp qword [esp + 0x18]
fnstsw ax
test ah, 0x40
je 0x4d9c19
lea ecx, [esp + 0x34]
push 0x59f694
push ecx
mov ecx, esi
call fcn.0045b2eb
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 3
call fcn.00512024
mov byte [esp + 0x28], bl
lea ecx, [esp + 0x34]
jmp 0x4d9c41
lea edx, [esp + 0x34]
push 0x59f680
push edx
mov ecx, esi
call fcn.0045b2eb
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 4
call fcn.00512024
mov byte [esp + 0x28], bl
lea ecx, [esp + 0x34]
call fcn.00511eeb
mov esi, dword [esp + 0x30]
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.00511c60
mov dword [esp + 0xc], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.00511eeb
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4dc6c0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x53b793
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x558b30
mov eax, dword [esi + 0x28]
mov dword [esp + 0x10], 1
test eax, eax
jne 0x4dc70a
mov eax, dword [esi + 0x40]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4dc70a
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x4dc70a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esi + 0x40]
call fcn.00511eeb
lea ecx, [esi + 0x3c]
mov byte [esp + 0x10], 0
call fcn.00511eeb
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
call fcn.004d9eb0
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4dde40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x53b838
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
mov ebp, ecx
push esi
mov dword [ebp + 8], 0
call fcn.00515dce
mov esi, dword [esp + 0x48]
test esi, esi
je 0x4ddee7
push edi
mov edi, dword [esp + 0x48]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
pop edi
je 0x4ddee7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4ddee7
cmp ebx, 0xa
jb 0x4ddee7
push 0
push ebx
push eax
lea ecx, [esp + 0x18]
call fcn.0051ccdc
lea eax, [esp + 0xc]
mov ecx, ebp
push eax
mov dword [esp + 0x40], 0
call fcn.004ddf00
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x3c], 0xffffffff
call fcn.0051cd55
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 8
mov ecx, dword [esp + 0x34]
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 8

Function at 0x4e4170
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push esi
mov esi, dword [ecx + 0x60]
test esi, esi
push edi
mov dword [esp + 8], ecx
je 0x4e4206
mov edi, dword [esi + 0x34]
xor eax, eax
mov al, byte [esp + 0x11]
cmp al, 2
jne 0x4e4206
test edi, edi
je 0x4e4206
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x20]
push ebp
lea ecx, [esi + 4]
push ebx
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x4e41b2
mov eax, dword [edi + 0x2c]
jmp 0x4e41d7
mov edx, dword [esi + 0x34]
mov ecx, ebp
mov eax, dword [edx + 0x58]
test eax, eax
jne 0x4e41c0
mov ecx, ebx
mov eax, dword [esi + 0x1c]
add eax, ecx
mov ecx, dword [edi + 0x40]
cmp eax, ecx
jl 0x4e41d5
mov edx, dword [edi + 0x3c]
add ecx, edx
cmp eax, ecx
jl 0x4e41d7
mov eax, ecx
mov esi, dword [esp + 0x10]
push eax
mov ecx, esi
call fcn.004e40e0
mov eax, dword [esp + 0x18]
pop ebp
cmp eax, 0x202
pop ebx
je 0x4e41fd
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x4e4206
push 0
mov ecx, esi
call fcn.004e3ff0
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x4e5bb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x53c0ef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], 0
push ecx
lea eax, [esp + 0x30]
mov ebx, 1
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
mov dword [esp + 0x28], ebx
call fcn.00511c60
push ecx
mov byte [esp + 0x28], 2
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x59d4d0
call fcn.00511f59
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
push ecx
mov ecx, esi
call fcn.004e62f0
mov edx, dword [esp + 8]
mov byte [esp + 0x20], 3
mov eax, dword [edx - 8]
test eax, eax
je 0x4e5c32
lea eax, [esp + 8]
lea ecx, [esp + 0x2c]
push eax
call fcn.00512024
push 0x5f
push 0x2e
lea ecx, [esp + 0x34]
call fcn.0050a250
push 0x5f
push 0x5c
lea ecx, [esp + 0x34]
call fcn.0050a250
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.00511c60
mov dword [esp + 0xc], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x20], bl
call fcn.00511eeb
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 0
call fcn.00511eeb
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 8
Function at 0x4e5f70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x53c178
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x4e5fa0
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4e5fa0
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0xc]
push eax
call fcn.00511f59
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x18], 0
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4e5fcf
push 0x59f76c
lea ecx, [esp + 0x10]
call fcn.00512074
push 0x5f
push 0x2e
lea ecx, [esp + 0x14]
call fcn.0050a250
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov ecx, esi
mov dword [esi + 4], ebx
mov dword [esi + 0x10], edx
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
call fcn.004e5b10
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 4]
push 0x59f760
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4e6056
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4e602f
push ebx
mov ecx, esi
call fcn.004e5ec0
mov edi, eax
test edi, edi
jne 0x4e6056
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.00511eeb
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
mov edx, dword [esi + 4]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4e608c
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.00511eeb
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esi + 8]
mov dword [esp + 0x18], 0xffffffff
shr eax, 1
lea edx, [ecx + eax*2]
lea ecx, [esp + 0xc]
mov dword [esi + 0xc], edx
call fcn.00511eeb
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x4e61c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x53c1d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push ecx
lea eax, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
mov dword [esp + 0x30], 1
call fcn.00511c60
push ecx
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x34], 2
call fcn.00511c60
lea eax, [esp + 0x10]
mov ecx, esi
push eax
mov byte [esp + 0x34], 1
call fcn.004e6390
mov eax, dword [esp + 8]
xor ebx, ebx
cmp dword [eax - 8], ebx
jne 0x4e6269
lea ecx, [esp + 8]
mov byte [esp + 0x28], 1
call fcn.00511eeb
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call fcn.00511eeb
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0xffffffff
call fcn.00511eeb
or eax, 0xffffffff
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop esi
pop ebx
add esp, 0x24
ret 8
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
push edx
push ecx
push 0x59f780
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
call fcn.005075ce
mov eax, dword [esp + 0x28]
xor edx, edx
mov dh, byte [esp + 0x20]
and eax, 0xff
mov dl, byte [esp + 0x24]
add esp, 0x14
shl edx, 8
or edx, eax
lea ecx, [esp + 8]
mov esi, edx
mov byte [esp + 0x28], 1
call fcn.00511eeb
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call fcn.00511eeb
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0xffffffff
call fcn.00511eeb
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 8
Function at 0x4ef9e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
mov edx, dword [esp + 0x18]
push 0xffffffffffffffff
push 0x53c770
push eax
mov dword fs:[0], esp
sub esp, 0x20
cmp edx, 0xfffffffe
push esi
push edi
jne 0x4efb52
mov ecx, 0x55
mov eax, 0xaa
mov word [esp + 0x18], cx
mov word [esp + 0x1c], cx
mov word [esp + 0x20], cx
mov word [esp + 0x24], cx
push ebx
lea ecx, [esp + 0xc]
mov word [esp + 0x1e], ax
mov word [esp + 0x22], ax
mov word [esp + 0x26], ax
mov word [esp + 0x2a], ax
call fcn.004598b9
mov dword [esp + 0xc], 0x545e38
lea eax, [esp + 0x1c]
mov dword [esp + 0x34], 0
push eax
push 1
push 1
push 8
push 8
call dword [sym.imp.GDI32.dll_CreateBitmap]
push eax
lea ecx, [esp + 0x10]
call fcn.00515d77
lea ecx, [esp + 0x14]
call fcn.004598b9
mov dword [esp + 0x14], 0x53eea0
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
neg eax
sbb eax, eax
mov byte [esp + 0x34], 1
and eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
push eax
lea ecx, [esp + 0x18]
call fcn.00515d77
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.0051531d
push 0xf
mov edi, eax
call fcn.0049a6c0
mov ecx, eax
call fcn.0049af50
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x2c]
push 0x14
call fcn.0049a6c0
mov ecx, eax
call fcn.0049af50
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x30]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x40]
sub eax, edx
sub ecx, ebx
push 0xf00021
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.GDI32.dll_PatBlt]
push edi
mov ecx, esi
call fcn.0051531d
mov esi, 0x53eeb0
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 2
call fcn.00515dce
mov dword [esp + 0xc], esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 3
call fcn.00515dce
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x20
mov eax, dword [esp + 0x54]
cmp eax, 2
je 0x4efb63
test eax, eax
je 0x4efb63
xor esi, esi
jmp 0x4efb68
mov esi, 1
test eax, eax
je 0x4efb79
cmp eax, 1
je 0x4efb79
mov eax, edx
mov edx, dword [esp + 0x50]
jmp 0x4efb7d
mov eax, dword [esp + 0x50]
mov ecx, dword [ecx + 0x204]
mov edi, dword [ecx + 0x7c]
test edi, edi
je 0x4efb90
mov ecx, edx
mov edx, eax
mov eax, ecx
xor ecx, ecx
test esi, esi
sete cl
push ecx
push eax
mov eax, dword [esp + 0x40]
push edx
lea edx, [esp + 0x48]
push edx
push eax
call fcn.004bf2f0
mov ecx, eax
call fcn.004bf5d0
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x20