joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a440
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x59c00f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push 0x5f7a9c
push 0x5f7a90
mov eax, dword [esi + 0xc]
mov dword [esp + 0x10], 0
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x47a49f
mov esi, dword [esp + 0x1c]
push 0x6021f0
mov ecx, esi
call fcn.0056bf8b
mov eax, esi
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
mov ecx, dword [esi + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x47a4c9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x5f7a80
push eax
call fcn.00565463
mov esi, eax
add esp, 8
test esi, esi
jne 0x47a4ed
mov esi, dword [esp + 0x1c]
push 0x6021f0
mov ecx, esi
call fcn.0056bf8b
mov eax, esi
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
push 0x5d
push esi
call fcn.0056518d
sub eax, esi
add esi, 0xc
sar eax, 1
sub eax, 6
lea edx, [esp + 0xc]
push eax
push esi
push edx
call fcn.0047a560
add esp, 0x14
mov esi, dword [esp + 0x1c]
lea eax, [esp + 4]
push 0x5f7a78
push eax
push esi
mov dword [esp + 0x20], 1
call fcn.0056c1b2
lea ecx, [esp + 4]
mov dword [esp + 8], 1
mov byte [esp + 0x14], 0
call fcn.0056bf1d
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x47eaa0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x59c4a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0056fcc1
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
xor edi, edi
lea edx, [esi + 0x5c]
push edi
push edi
push edi
push edi
push edx
mov dword [esp + 0x2c], edi
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ecx
mov dword [esi], method.COleControlContainer.virtual_0
mov dword [esi + 0x8c], 3
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0x24], 0xffffffff
call dword [sym.imp.USER32.dll_SetRect]
mov ebx, 1
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x34], edi
call fcn.004c2220
mov edx, dword [eax]
push 0x26f4
mov ecx, eax
call dword [edx + 0x18]
mov dword [esi + 0x74], eax
call fcn.004c2220
mov edx, dword [eax]
push 0x254f
mov ecx, eax
call dword [edx + 0x18]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x30], eax
mov dword [esi + 0x94], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x88], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4817e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x59c647
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], method.COleControlContainer.virtual_0
mov ecx, dword [esi + 0xc0]
mov dword [esp + 0x14], 5
test ecx, ecx
je 0x48181c
call fcn.0058b7fc
lea ecx, [esi + 0x30]
mov dword [esp + 8], ecx
mov dword [ecx], vtable.CGdiObject.0
mov byte [esp + 0x14], 6
call fcn.0057463f
lea ecx, [esi + 0x2c]
mov byte [esp + 0x14], 3
call fcn.0056bf1d
lea ecx, [esi + 0x24]
mov byte [esp + 0x14], 2
call fcn.0056bf1d
lea ecx, [esi + 0x20]
mov byte [esp + 0x14], 1
call fcn.0056bf1d
lea ecx, [esi + 0x1c]
mov byte [esp + 0x14], 0
call fcn.0056bf1d
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.0056fcdb
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x496900
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x59daa3
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.0056fcc1
xor edi, edi
mov dword [esi + 0x20], 0x5b7d58
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], 0x5b82c0
call fcn.0058ec1c
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 0x49e460
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 + 0xe4]
push eax
call fcn.00497d50
mov ebx, eax
mov eax, dword [esi + 0xb8]
cmp eax, 0xffffffff
je 0x49e4c4
cmp dword [esi + 0xe8], 5
jne 0x49e4c4
cmp dword [esi + 0xe0], 1
jne 0x49e4c4
test ebx, ebx
je 0x49e4a3
cmp dword [ebx + 0x7c], eax
je 0x49e4c4
cmp eax, dword [esi + 0xb4]
jne 0x49e4b9
mov edx, dword [esi]
push 0
push 0xffffffffffffffff
mov ecx, esi
call dword [edx + 0xc4]
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.0049e850
test ebx, ebx
mov ecx, esi
je 0x49e5ae
call fcn.004a0870
test eax, eax
jne 0x49e57c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x128]
test eax, eax
je 0x49e57c
push esi
push 0x5fa440
call fcn.005701f1
add esp, 8
test eax, eax
je 0x49e57c
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x49e57c
mov ecx, esi
call fcn.004a0840
mov edi, eax
test edi, edi
je 0x49e57c
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x49e57c
mov ecx, dword [edi + 0x70]
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x49e57c
push 1
mov ecx, edi
call fcn.00444dc0
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.0049e850
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 + 0x100]
push 0
mov ecx, edi
call fcn.00444dc0
mov edx, dword [edi]
push 0
mov ecx, edi
call dword [edx + 0x54]
mov ecx, edi
call fcn.004440b0
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov ecx, esi
call fcn.004a0870
test eax, eax
je 0x49e595
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x128]
test eax, eax
je 0x49e5b3
mov eax, dword [esp + 0x18]
mov edx, dword [ebx]
push ebp
push eax
push 0
mov ecx, ebx
call dword [edx + 0xcc]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
call fcn.0056c987
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x4a1f66
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x59df3e
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], 0x5b8e14
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], 0x5b8e08
push 1
mov byte [esp + 0x14], 2
mov dword [esi], 0x5b8e04
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.004a2650
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4a3180
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 0x4a322e
mov edi, dword [esi + 0x34]
xor eax, eax
mov al, byte [esp + 0x11]
cmp al, 2
jne 0x4a322e
test edi, edi
je 0x4a322e
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 0x4a31da
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
call dword [edx + 0x24]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x4a31da
mov eax, dword [edi + 0x2c]
jmp 0x4a31ff
mov eax, dword [esi + 0x34]
mov ecx, dword [eax + 0x58]
test ecx, ecx
mov ecx, ebp
jne 0x4a31e8
mov ecx, ebx
mov eax, dword [esi + 0x1c]
add eax, ecx
mov ecx, dword [edi + 0x40]
cmp eax, ecx
jl 0x4a31fd
mov edx, dword [edi + 0x3c]
add ecx, edx
cmp eax, ecx
jl 0x4a31ff
mov eax, ecx
mov esi, dword [esp + 0x10]
push eax
mov ecx, esi
call fcn.004a30b0
mov eax, dword [esp + 0x18]
pop ebp
cmp eax, 0x202
pop ebx
je 0x4a3225
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x4a322e
push 0
mov ecx, esi
call fcn.004a3030
pop edi
pop esi
pop ecx
ret 0xc

Function at 0x4a6c40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
call fcn.004a5d60
mov ecx, eax
jmp fcn.004a6cd0
Function at 0x4b43d0
Capabilities:
Get system information on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x24
mov edx, dword [esp + 0x38]
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x38]
push esi
push edi
mov edi, dword [esp + 0x38]
mov dword [ebx + 4], eax
mov dword [ebx + 0x40], ecx
or ecx, 0xffffffff
xor eax, eax
mov dword [ebx + 8], 0
mov dword [ebx + 0x44], edx
mov dword [ebx], 0x5b9494
lea edx, [ebx + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebx + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x3c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x605a6c]
test eax, eax
jne 0x4b4455
call fcn.0056cb17
mov dword [0x605a6c], eax
mov ecx, dword [0x605a68]
test ecx, ecx
jne 0x4b4474
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x18]
mov dword [0x605a68], ecx
mov eax, dword [ebx + 0x40]
cmp eax, ecx
jbe 0x4b4486
cmp byte [eax], 0x68
jne 0x4b4486
mov edx, dword [eax + 1]
mov dword [ebx + 0x40], edx
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x24
ret 0x14

Function at 0x4b9490
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x59ead8
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.0057463f
mov esi, dword [esp + 0x48]
test esi, esi
je 0x4b9537
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 0x4b9537
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4b9537
cmp ebx, 0xa
jb 0x4b9537
push 0
push ebx
push eax
lea ecx, [esp + 0x18]
call fcn.0057bb18
lea eax, [esp + 0xc]
mov ecx, ebp
push eax
mov dword [esp + 0x40], 0
call fcn.004b9550
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x3c], 0xffffffff
call fcn.0057bb66
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 0x4beb00
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 0x4bec00
cmp ebx, 0x112
je 0x4beb57
cmp ebx, 5
je 0x4beb30
cmp ebx, 0x47
jne 0x4bed08
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x160]
cmp eax, ecx
jne 0x4bed08
mov ecx, dword [esi - 0x20]
push 0
push 0x2fbf
push 0x113
push ecx
jmp 0x4bed02
lea edi, [esi - 0x3c]
mov ecx, edi
call fcn.004c1100
test eax, eax
je 0x4bed08
push 0x435160
mov ecx, 0x605504
call fcn.005898a6
mov ecx, dword [eax + 4]
test ecx, ecx
jg 0x4bed08
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x4bed08
mov ecx, edi
call fcn.004a0870
test eax, eax
jne 0x4bed08
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
and eax, 0xfff0
cmp eax, 0xf100
jne 0x4bed08
cmp dword [ebp], 0
jne 0x4bed08
mov edx, dword [edi]
push 0x12
mov ecx, edi
call dword [edx + 0x16c]
test eax, eax
je 0x4bebdf
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x14
mov ecx, edi
call fcn.004a0840
test eax, eax
je 0x4bebf4
push 0
push edi
mov ecx, eax
call fcn.00445a70
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x14
cmp ebx, 0x220
jb 0x4bed08
cmp ebx, 0x222
jbe 0x4becf2
cmp ebx, 0x230
jne 0x4bed08
mov eax, dword [esi - 0x3c]
lea edi, [esi - 0x3c]
mov ecx, edi
call dword [eax + 0xdc]
test eax, eax
mov ecx, edi
je 0x4becc7
call fcn.004a0870
test eax, eax
je 0x4bec6e
mov ecx, edi
call fcn.004a0750
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 + 0x98]
mov ebx, dword [esp + 0x1c]
test ah, 4
jne 0x4bec9b
mov eax, dword [ebx]
test eax, eax
jne 0x4bec93
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x4bec9b
test eax, eax
jne 0x4bec93
mov eax, ecx
push eax
mov ecx, edi
call fcn.004beaa0
mov ecx, edi
call fcn.004a0750
mov eax, dword [eax + 0x1c]
push 0
push eax
call dword [sym.imp.USER32.dll_SetMenu]
mov ecx, edi
call fcn.004bdc30
pop edi
pop esi
mov dword [ebx], 0
pop ebp
mov eax, 1
pop ebx
ret 0x14
call fcn.004a0750
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call fcn.00572380
test eax, eax
jne 0x4bed08
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.0049fa30
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
Function at 0x4bfb50
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 + 0xe4]
push edi
and esi, 0xffff
call fcn.00497960
test esi, esi
jne 0x4bfb78
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 8
call fcn.005885ac
mov edi, dword [eax + 0xc]
test edi, edi
jne 0x4bfb8d
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 0x4bfba5
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 0x4bfbb8
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 0x4bfbcc
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.0056bc5e
xor edi, edi
add esp, 4
cmp word [esi + 6], di
mov dword [esp + 0x10], eax
jbe 0x4bfc0f
mov ebp, eax
mov ecx, esi
call fcn.004bfca0
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 0x4bfbed
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov cx, word [esi + 6]
push ecx
push eax
mov ecx, ebx
call fcn.004bf900
mov ebp, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4bfc80
mov ecx, ebx
call fcn.004a1290
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.004400b0
test eax, eax
jne 0x4bfc5d
xor ebp, ebp
mov ax, word [esi + 2]
cmp ax, 0x10
je 0x4bfc80
and eax, 0xffff
mov ecx, eax
xor eax, eax
mov ax, word [esi + 4]
mov dword [ebx + 0xf4], ecx
mov dword [ebx + 0xf8], eax
mov eax, dword [esp + 0x10]
push eax
call fcn.0056bc87
add esp, 4
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret 8

Function at 0x4c24a0
Capabilities:
Enumerate gui resources

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push 0x4c24d0
push ecx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
mov ax, word [esp]
pop ecx
ret
Function at 0x4c2ee0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
mov dword [esp + 8], ecx
push esi
mov ecx, dword [esp + 0x1c]
push edi
call fcn.0056bea8
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov eax, edi
push 6
shr eax, 4
inc eax
and eax, 0xffff
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
jne 0x4c2f1d
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4c2f31
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4c2f46
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4c2f65
cmp esi, eax
jae 0x4c2f69
xor ecx, ecx
dec edi
mov cx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x4c2f55
cmp esi, eax
jb 0x4c2f73
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc
xor ebx, ebx
mov bx, word [esi]
test ebx, ebx
jne 0x4c2f86
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x4c2f96
mov ebp, dword [eax + 4]
jmp 0x4c2f98
xor ebp, ebp
push 0
push 0
push 0
lea edi, [esi + 2]
push 0
push ebx
push edi
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [esp + 0x20]
mov esi, eax
push esi
call fcn.0056c3c4
push 0
push 0
push esi
push eax
push ebx
push edi
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [esp + 0x20]
push esi
call fcn.0056c39c
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x4c4a00
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x59f5b7
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
mov ebx, dword [esp + 0x138]
push ebp
push esi
cmp ebx, 0x60
push edi
jb 0x4c4a49
cmp ebx, 0x69
ja 0x4c4a49
movsx eax, byte [esp + 0x140]
add ebx, 0xffffffd0
xor ecx, ecx
cmp eax, ebx
sete cl
mov eax, ecx
jmp 0x4c4c39
push 2
push ebx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
test al, al
je 0x4c4c10
mov edx, dword [esp + 0x140]
push edx
call fcn.004c4d90
mov cl, byte [esp + 0x144]
add esp, 4
cmp cl, bl
mov byte [esp + 0x13], al
je 0x4c4c34
cmp al, bl
je 0x4c4c34
mov ebp, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
xor esi, esi
push esi
push esi
call ebp
mov edi, eax
cmp edi, 1
jbe 0x4c4c10
xor ebx, ebx
mov dword [esp + 0x18], 0x5bacb8
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
cmp edi, esi
mov dword [esp + 0x138], esi
jne 0x4c4acb
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
jmp 0x4c4af2
lea eax, [edi*4]
push eax
call fcn.0056bc5e
add esp, 4
mov dword [esp + 0x1c], eax
push edi
push eax
call fcn.004ef3b0
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
push ebx
push edi
call ebp
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
jne 0x4c4b1d
mov dword [esp + 0x18], method.CCommandLineInfo.virtual_0
mov dword [esp + 0x138], 1
jmp 0x4c4c03
cmp edi, esi
mov dword [esp + 0x2c], esi
jbe 0x4c4bf0
mov ebp, dword [sym.imp.USER32.dll_ToAsciiEx]
mov esi, ebx
mov dword [esp + 0x14], 0
mov edx, dword [esi]
push edx
mov edx, dword [esp + 0x148]
lea eax, [esp + 0x18]
push 0
lea ecx, [esp + 0x38]
push eax
push ecx
push 0
push edx
call ebp
cmp eax, 1
jne 0x4c4b81
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x140]
cmp cl, al
je 0x4c4c14
push eax
call fcn.004c4d90
mov cl, byte [esp + 0x17]
add esp, 4
cmp cl, al
je 0x4c4c14
mov bl, byte [esp + 0x40]
mov byte [esp + 0x40], 0x81
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x148]
push 0
lea edx, [esp + 0x38]
push ecx
push edx
push 0
push eax
call ebp
cmp eax, 1
jne 0x4c4bd2
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x140]
cmp cl, al
je 0x4c4c52
push eax
call fcn.004c4d90
mov cl, byte [esp + 0x17]
add esp, 4
cmp cl, al
je 0x4c4c52
mov eax, dword [esp + 0x2c]
add esi, 4
inc eax
mov byte [esp + 0x40], bl
mov ebx, dword [esp + 0x1c]
cmp eax, edi
mov dword [esp + 0x2c], eax
jb 0x4c4b31
xor esi, esi
mov dword [esp + 0x18], method.CCommandLineInfo.virtual_0
mov dword [esp + 0x138], 4
cmp ebx, esi
je 0x4c4c10
push ebx
call fcn.0056bc87
add esp, 4
xor eax, eax
jmp 0x4c4c39
mov dword [esp + 0x18], method.CCommandLineInfo.virtual_0
test ebx, ebx
mov dword [esp + 0x138], 2
je 0x4c4c34
push ebx
call fcn.0056bc87
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret
mov dword [esp + 0x18], method.CCommandLineInfo.virtual_0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x138], 3
test eax, eax
je 0x4c4c34
push eax
jmp 0x4c4c2c
Function at 0x4c5df0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x59f7db
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], 0x5b38b0
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.004c2220
mov edx, dword [eax]
push 0x2393
mov ecx, eax
call dword [edx + 0x18]
mov dword [esi + 0x38], eax
call fcn.004c2220
mov edx, dword [eax]
push 0x2392
mov ecx, eax
call dword [edx + 0x18]
mov dword [esi + 0x3c], eax
call fcn.004c2220
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 0x4c6720
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x59f880
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x5f2228]
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [esp + 0x24], esi
call fcn.004c2220
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push 0x23cb
push ecx
mov ecx, eax
call dword [edx + 8]
mov edx, dword [0x5f2228]
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.00568f1c
mov edx, dword [edi + 0x68]
add esp, 0xc
mov eax, dword [edx + 0x80]
cmp eax, esi
mov dword [esp + 0x18], eax
jle 0x4c67f8
push ebx
mov ecx, dword [edi + 0x68]
push esi
call fcn.004449e0
test eax, eax
je 0x4c67f0
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.00443410
mov eax, dword [eax]
mov edx, dword [esp + 0x10]
push eax
push edx
call fcn.00425064
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
sete bl
call fcn.0056bf1d
test bl, bl
je 0x4c67f0
mov eax, ebp
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push eax
push ecx
inc ebp
call fcn.00568f1c
add esp, 0xc
xor esi, esi
jmp 0x4c67f1
inc esi
cmp esi, dword [esp + 0x1c]
jl 0x4c679b
pop ebx
lea edx, [esp + 0xc]
lea ecx, [edi + 0x60]
push edx
call fcn.0056c056
push 0
mov ecx, edi
call fcn.0056edec
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call fcn.0056bf1d
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.0056bf1d
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret