joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c5780
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push esi
cmp ebx, 0x112
push edi
mov esi, ecx
ja 0x4c58cf
cmp ebx, 0x112
je 0x4c582b
mov eax, ebx
sub eax, 2
je 0x4c57f4
sub eax, 3
je 0x4c57b7
sub eax, 0x42
jne 0x4c57d5
cmp ebp, dword [esi + 0x124]
jne 0x4c57d5
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 + 0x20]
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
push ebx
push ebp
mov ecx, esi
call fcn.004cad60
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
mov eax, dword [esi + 0x128]
test eax, eax
je 0x4c57d5
lea ecx, [esi - 0x3c]
call fcn.004cba60
test eax, eax
je 0x4c580d
mov eax, dword [eax + 0x1c]
cmp ebp, eax
jne 0x4c57d5
mov ecx, dword [esi + 0x128]
push ecx
push ebp
call dword [sym.imp.USER32.dll_SetMenu]
mov dword [esi + 0x128], 0
jmp 0x4c57d5
lea edi, [esi - 0x3c]
mov ecx, edi
call fcn.004c7df0
test eax, eax
je 0x4c57d5
push 0x4774a0
mov ecx, 0x5c2a6c
call fcn.005917bb
mov ecx, dword [eax + 4]
test ecx, ecx
jg 0x4c57d5
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x4c57d5
mov ecx, edi
call fcn.004cbb80
test eax, eax
jne 0x4c57d5
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
and eax, 0xfff0
cmp eax, 0xf100
jne 0x4c57d5
mov ecx, dword [esp + 0x20]
cmp dword [ecx], 0
jne 0x4c57d5
mov edx, dword [edi]
push 0x12
mov ecx, edi
call dword [edx + 0x170]
test eax, eax
je 0x4c58ae
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x14
mov ecx, edi
call fcn.004cbb50
test eax, eax
je 0x4c58c3
push 0
push edi
mov ecx, eax
call fcn.00477380
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x14
cmp ebx, 0x220
jb 0x4c57d5
cmp ebx, 0x222
jbe 0x4c57bf
cmp ebx, 0x230
jne 0x4c57d5
mov eax, dword [esi - 0x3c]
lea edi, [esi - 0x3c]
mov ecx, edi
call dword [eax + 0xdc]
test eax, eax
mov ecx, edi
je 0x4c5993
call fcn.004cbb80
test eax, eax
je 0x4c593d
mov ecx, edi
call fcn.004cba60
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 + 0x58]
mov ebx, dword [esp + 0x1c]
test ah, 4
jne 0x4c5967
mov eax, dword [ebx]
test eax, eax
jne 0x4c595f
mov ecx, dword [esi + 0x128]
test ecx, ecx
je 0x4c5967
test eax, eax
jne 0x4c595f
mov eax, ecx
push eax
mov ecx, edi
call fcn.004c5720
mov ecx, edi
call fcn.004cba60
mov eax, dword [eax + 0x1c]
push 0
push eax
call dword [sym.imp.USER32.dll_SetMenu]
mov ecx, edi
call fcn.004c4870
pop edi
pop esi
mov dword [ebx], 0
pop ebp
mov eax, 1
pop ebx
ret 0x14
call fcn.004cba60
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call fcn.0057ccae
test eax, eax
jne 0x4c57d5
mov edx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword [edx], eax
mov eax, 1
pop ebx
ret 0x14
Function at 0x4c6820
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x10]
mov ecx, dword [ebx + 0xa4]
push edi
and esi, 0xffff
call fcn.004ce3f0
test esi, esi
jne 0x4c6848
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 8
call fcn.0058f8dd
mov edi, dword [eax + 0xc]
test edi, edi
jne 0x4c685d
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 8
push 0xf1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x4c6875
pop edi
pop esi
pop ebx
pop ecx
ret 8
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4c6888
pop edi
pop esi
pop ebx
pop ecx
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4c689c
pop edi
pop esi
pop ebx
pop ecx
ret 8
xor eax, eax
push ebp
mov ax, word [esi + 6]
shl eax, 2
push eax
call fcn.00576f33
xor edi, edi
add esp, 4
cmp word [esi + 6], di
mov dword [esp + 0x10], eax
jbe 0x4c68df
mov ebp, eax
mov ecx, esi
call fcn.004c6970
xor ecx, ecx
xor edx, edx
mov cx, word [eax + edi*2]
inc edi
mov dword [ebp], ecx
mov dx, word [esi + 6]
add ebp, 4
cmp edi, edx
jl 0x4c68bd
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov cx, word [esi + 6]
push ecx
push eax
mov ecx, ebx
call fcn.004c65c0
mov ebp, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4c6950
mov ecx, ebx
call fcn.004cc570
xor edi, edi
xor edx, edx
mov di, word [esi + 4]
mov dx, word [esi + 2]
mov ecx, dword [esp + 0x10]
push 0
push edi
push edx
xor edx, edx
mov dx, word [esi + 6]
push edx
mov edx, dword [esp + 0x28]
push ecx
push edx
mov ecx, eax
call fcn.00489cc0
test eax, eax
jne 0x4c692d
xor ebp, ebp
mov ax, word [esi + 2]
cmp ax, 0x10
je 0x4c6950
and eax, 0xffff
mov ecx, eax
xor eax, eax
mov ax, word [esi + 4]
mov dword [ebx + 0xb4], ecx
mov dword [ebx + 0xb8], eax
mov eax, dword [esp + 0x10]
push eax
call fcn.00576f5c
add esp, 4
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret 8
Function at 0x4c9850
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, ecx
push edi
push ebp
mov ecx, dword [esi + 0xa4]
push eax
call fcn.004ce7f0
mov ebx, eax
mov eax, dword [esi + 0x78]
cmp eax, 0xffffffff
je 0x4c98ae
cmp dword [esi + 0xa8], 5
jne 0x4c98ae
cmp dword [esi + 0xa0], 1
jne 0x4c98ae
test ebx, ebx
je 0x4c9890
cmp dword [ebx + 0x3c], eax
je 0x4c98ae
cmp eax, dword [esi + 0x74]
jne 0x4c98a3
mov edx, dword [esi]
push 0
push 0xffffffffffffffff
mov ecx, esi
call dword [edx + 0xc4]
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.004c9c10
test ebx, ebx
mov ecx, esi
je 0x4c997d
call fcn.004cbb80
test eax, eax
jne 0x4c9966
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x130]
test eax, eax
je 0x4c9966
push esi
push 0x4082c8
call fcn.0057cb97
add esp, 8
test eax, eax
je 0x4c9966
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x4c9966
mov ecx, esi
call fcn.004cbb50
mov edi, eax
test edi, edi
je 0x4c9966
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x4c9966
mov ecx, dword [edi + 0x70]
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x4c9966
push 1
mov ecx, edi
call fcn.00476440
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.004c9c10
mov edx, dword [esi]
push 0
push 0xffffffffffffffff
mov ecx, esi
call dword [edx + 0xc4]
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx]
push ebp
push ecx
mov ecx, ebx
call dword [eax + pe_nt_image_headers32]
push 0
mov ecx, edi
call fcn.00476440
mov edx, dword [edi]
push 0
mov ecx, edi
call dword [edx + 0x54]
mov ecx, edi
call fcn.00475730
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx]
push ebp
push ecx
mov ecx, ebx
call dword [eax + 0xec]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
call fcn.00577407
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x4cd380
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a05c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.0057a87a
xor edi, edi
mov dword [esi + 0x20], 0x428548
mov dword [esp + 0x14], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], edi
mov ecx, esi
mov byte [esp + 0x14], 1
mov dword [esi], 0x4284d8
call fcn.00594b7d
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x1c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4d3fb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a0acb
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], 0x422348
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.0048af70
mov edx, dword [eax]
push 0x2393
mov ecx, eax
call dword [edx + 0x18]
mov dword [esi + 0x38], eax
call fcn.0048af70
mov edx, dword [eax]
push 0x2392
mov ecx, eax
call dword [edx + 0x18]
mov dword [esi + 0x3c], eax
call fcn.0048af70
mov edx, dword [eax]
push 0x2391
mov ecx, eax
call dword [edx + 0x18]
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 0x4d4910
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5a0b70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x4051a4]
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [esp + 0x24], esi
call fcn.0048af70
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push 0x23cb
push ecx
mov ecx, eax
call dword [edx + 8]
mov edx, dword [0x4051a4]
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.0057482f
mov edx, dword [edi + 0x68]
add esp, 0xc
mov eax, dword [edx + 0x80]
cmp eax, esi
mov dword [esp + 0x18], eax
jle 0x4d49e8
push ebx
mov ecx, dword [edi + 0x68]
push esi
call fcn.004ecbc0
test eax, eax
je 0x4d49e0
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.00474a80
mov eax, dword [eax]
mov edx, dword [esp + 0x10]
push eax
push edx
call fcn.005623e8
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
sete bl
call fcn.0057b019
test bl, bl
je 0x4d49e0
mov eax, ebp
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push eax
push ecx
inc ebp
call fcn.0057482f
add esp, 0xc
xor esi, esi
jmp 0x4d49e1
inc esi
cmp esi, dword [esp + 0x1c]
jl 0x4d498b
pop ebx
lea edx, [esp + 0xc]
lea ecx, [edi + 0x60]
push edx
call fcn.0057b152
push 0
mov ecx, edi
call fcn.0057990b
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call fcn.0057b019
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.0057b019
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4d7b56
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5a0d1e
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], 0x4291a8
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], 0x42919c
push 1
mov byte [esp + 0x14], 2
mov dword [esi], 0x429198
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.004d8240
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4d8a30
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 0x4d8a68
test eax, eax
jne 0x4d8a7a
push edi
call fcn.0058f8dd
mov edi, dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push edi
push 0x4d8d70
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [esi + 4], eax
pop edi
pop esi
ret 4
test eax, eax
je 0x4d8a7a
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [esi + 4], 0
pop esi
ret 4
Function at 0x4e1e90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a14b7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x4051a4]
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.00560520
test eax, eax
jne 0x4e1f00
lea ecx, [esp + 0x34]
push 0x408858
push ecx
mov ecx, esi
call fcn.004600b2
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 2
call fcn.0057b152
mov byte [esp + 0x28], bl
lea ecx, [esp + 0x34]
jmp 0x4e1f81
mov edx, dword [esi]
mov eax, dword [esi + 4]
fld qword [esi]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
call fcn.00560520
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
fild qword [esp + 0x10]
fcomp qword [esp + 0x18]
fnstsw ax
test ah, 0x40
je 0x4e1f59
lea ecx, [esp + 0x34]
push 0x40884c
push ecx
mov ecx, esi
call fcn.004600b2
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 3
call fcn.0057b152
mov byte [esp + 0x28], bl
lea ecx, [esp + 0x34]
jmp 0x4e1f81
lea edx, [esp + 0x34]
push 0x408838
push edx
mov ecx, esi
call fcn.004600b2
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 4
call fcn.0057b152
mov byte [esp + 0x28], bl
lea ecx, [esp + 0x34]
call fcn.0057b019
mov esi, dword [esp + 0x30]
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.0057ad8e
mov dword [esp + 0xc], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.0057b019
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4e4ae0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5a1753
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], 0x42b244
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x10], 1
test eax, eax
jne 0x4e4b2a
mov eax, dword [esi + 0x44]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4e4b2a
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x4e4b2a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esi + 0x44]
call fcn.0057b019
lea ecx, [esi + 0x40]
mov byte [esp + 0x10], 0
call fcn.0057b019
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
call fcn.004e2200
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4fc480
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a2e48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, ecx
push 1
lea ecx, [esp + 8]
call fcn.004fa430
mov ecx, dword [esp + 0x48]
lea eax, [esp + 4]
push 0
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x48]
sub esp, 0x10
mov edx, esp
mov dword [esp + 0x4c], 0
mov dword [edx], eax
mov eax, dword [esp + 0x5c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov ecx, esi
call fcn.004fc680
lea ecx, [esp + 4]
mov dword [esp + 0x30], 0xffffffff
call fcn.004f9db0
mov ecx, dword [esp + 0x28]
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret 0x14

Function at 0x4fe540
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a31b8
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.0057f25a
mov esi, dword [esp + 0x48]
test esi, esi
je 0x4fe5e7
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 0x4fe5e7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4fe5e7
cmp ebx, 0xa
jb 0x4fe5e7
push 0
push ebx
push eax
lea ecx, [esp + 0x18]
call fcn.00586de7
lea eax, [esp + 0xc]
mov ecx, ebp
push eax
mov dword [esp + 0x40], 0
call fcn.004fe600
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x3c], 0xffffffff
call fcn.00586e60
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 0x500270
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a335f
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.0057ad8e
push ecx
mov byte [esp + 0x28], 2
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x406728
call fcn.0057b087
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
push ecx
mov ecx, esi
call fcn.00500c00
mov edx, dword [esp + 8]
mov byte [esp + 0x20], 3
mov eax, dword [edx - 8]
test eax, eax
je 0x5002f2
lea eax, [esp + 8]
lea ecx, [esp + 0x2c]
push eax
call fcn.0057b152
push 0x5f
push 0x2e
lea ecx, [esp + 0x34]
call fcn.0057413a
push 0x5f
push 0x5c
lea ecx, [esp + 0x34]
call fcn.0057413a
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.0057ad8e
mov dword [esp + 0xc], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x20], bl
call fcn.0057b019
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 0
call fcn.0057b019
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 8

Function at 0x500450
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a33a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0xc]
lea eax, [edi + 0x30]
push eax
call fcn.0049e000
mov eax, dword [edi + 0x20]
mov dword [esp + 0x1c], 0
test eax, eax
jne 0x5004b0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0049e020
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 4
mov esi, dword [esp + 0x24]
test esi, esi
jne 0x5004df
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0049e020
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 4
lea ecx, [esp + 0x10]
lea ebx, [edi + 0x68]
push ecx
push esi
mov ecx, ebx
mov dword [esp + 0x18], 0
call fcn.00576c38
test eax, eax
jne 0x50054a
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push esi
call fcn.0057b087
mov ecx, edi
call fcn.00500350
test eax, eax
mov dword [esp + 0x10], eax
jne 0x50053e
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0049e020
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 4
push esi
mov ecx, ebx
mov edi, eax
call fcn.00576c7c
mov dword [eax], edi
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0049e020
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret 4
Function at 0x500670
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x5a33e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x20]
cmp eax, edi
je 0x5006a1
cmp dword [esi + 0x2c], edi
je 0x5006a1
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebp, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push ebp
call fcn.0057b087
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], edi
cmp dword [eax - 8], edi
jne 0x5006ca
push 0x4094c8
lea ecx, [esp + 0x14]
call fcn.0057b1a2
push 0x5f
push 0x2e
lea ecx, [esp + 0x18]
call fcn.0057413a
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
mov dword [esi + 0x2c], ecx
mov ecx, esi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], edi
mov dword [esi + 0x24], edi
call fcn.005001d0
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x20]
push 0x4094bc
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x50071a
test ebp, ebp
jne 0x50071a
push ebx
mov ecx, esi
call fcn.005005c0
mov edi, eax
xor ebx, ebx
test edi, edi
je 0x500751
mov ecx, dword [esi + 0x20]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x500751
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esi + 0x20]
push edi
push edx
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esi + 0x24]
mov ebx, 1
add eax, ecx
mov dword [esi + 0x28], eax
mov ecx, dword [esi + 0x64]
test ecx, ecx
je 0x500768
push 0
push 0
push 0
push 0x294f
call fcn.00553bb0
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0057b019
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x500870
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a3440
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.0057ad8e
push ecx
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x34], 2
call fcn.0057ad8e
lea eax, [esp + 0x10]
mov ecx, esi
push eax
mov byte [esp + 0x34], 1
call fcn.00500ca0
mov eax, dword [esp + 8]
xor ebx, ebx
cmp dword [eax - 8], ebx
jne 0x50091a
lea ecx, [esp + 8]
mov byte [esp + 0x28], 1
call fcn.0057b019
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call fcn.0057b019
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0xffffffff
call fcn.0057b019
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop esi
pop ebx
add esp, 0x24
ret 0xc
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
push edx
push ecx
push 0x4094dc
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
call fcn.0056489f
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.0057b019
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call fcn.0057b019
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0xffffffff
call fcn.0057b019
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 0xc
Function at 0x513620
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 0x5136cf
mov eax, dword [esp + 0x10]
mov edi, dword [esi + 0x34]
shr eax, 8
cmp al, 2
jne 0x5136cf
test edi, edi
je 0x5136cf
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x1c]
push ebx
lea ecx, [esi + 4]
push ebp
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x51367b
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
call dword [edx + 0x24]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x51367b
mov eax, dword [edi + 0x2c]
jmp 0x5136a0
mov eax, dword [esi + 0x34]
mov ecx, dword [eax + 0x58]
test ecx, ecx
mov ecx, ebx
jne 0x513689
mov ecx, ebp
mov eax, dword [esi + 0x1c]
add eax, ecx
mov ecx, dword [edi + 0x40]
cmp eax, ecx
jl 0x51369e
mov edx, dword [edi + 0x3c]
add ecx, edx
cmp eax, ecx
jl 0x5136a0
mov eax, ecx
mov esi, dword [esp + 0x10]
push eax
mov ecx, esi
call fcn.00513550
mov eax, dword [esp + 0x18]
pop ebp
cmp eax, 0x202
pop ebx
je 0x5136c6
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x5136cf
push 0
mov ecx, esi
call fcn.005134d0
pop edi
pop esi
pop ecx
ret 0xc