joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a51a2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x4a51b3
xor eax, eax
jmp 0x4a51cf
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a51d4
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
lea ecx, [esi + 0xc]
call fcn.0040f6a0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.0054221c
int3

Function at 0x4a5272
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
push 0
push dword [ebp + 0xc]
mov eax, dword [edi]
push dword [ebp + 8]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x617acc]
mov ecx, edi
call esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4a52a5
pop edi
pop esi
pop ebp
ret 8
lea ecx, [edi + 0xc]
call fcn.0040f6a0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.0054221c
int3

Function at 0x4a537a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
je 0x4a53a5
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4a53ab
cmp dword [ebp - 4], esi
jne 0x4a53c2
pop edi
pop esi
leave
ret 8
lea ecx, [edi + 0xc]
call fcn.0040f6a0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.0054221c
lea ecx, [edi + 0xc]
call fcn.0040f6a0
push eax
push 0xffffffffffffffff
push 0xd
call fcn.00541e72
int3

Function at 0x4a57c8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0048d58f
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4a5804
call fcn.004a59e5
mov dword [esi + 0xc], 1
jmp 0x4a5809
call fcn.004a59e5
cmp dword [esi], 0
je 0x4a5854
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x4a582f
push edi
call fcn.004435a0
lea ecx, [edi + 1]
push ecx
jmp 0x4a583e
push 0xff
call fcn.004118f0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00436fa0
pop edi
jmp 0x4a5878
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4a5878
push dword [esi]
push dword [ebp - 4]
call fcn.004a82c3
pop esi
leave
ret 0xc
Function at 0x4a593c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004a59e5
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4a5984
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004435a0
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00436fa0
jmp 0x4a598f
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004a82c3
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4a6dc4
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov edx, ecx
xor eax, eax
mov ecx, dword [ebp + 8]
inc eax
push edi
xor edi, edi
mov dword [ebp - 8], edx
inc edi
mov dword [ebp - 4], eax
lea ebx, [ecx + 0xc]
cmp dword [ecx + 8], edi
jle 0x4a6e40
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4a6e05
mov eax, dword [edx + 0x10]
cmp dword [eax + edi*8 + 4], esi
je 0x4a6e05
mov eax, dword [ebx]
cmp dword [eax + edi*4], 0
je 0x4a6e33
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4a6e36
mov eax, dword [ebx]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4a6e2d
mov eax, dword [eax]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x617acc]
mov ecx, dword [ebp - 0xc]
call esi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx]
and dword [eax + edi*4], 0
mov eax, dword [ebp - 4]
inc edi
cmp edi, dword [ecx + 8]
jl 0x4a6de9
test eax, eax
je 0x4a6e87
lea esi, [edx + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
mov edi, dword [ebp + 8]
add ecx, 0x14
push edi
call fcn.004a70b8
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x617acc]
mov ecx, edi
call esi
mov eax, dword [ebp - 8]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4a710a
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x6085ab
call fcn.005cae1d
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x1c]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x4a7201
cmp edi, dword [ebx + 0xc]
jge 0x4a7201
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x4a7161
cmp edi, dword [esi + 8]
jl 0x4a71ef
cmp dword [ebp + 0xc], 0
je 0x4a71ef
xor edi, edi
jmp 0x4a7193
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.004a6bb7
mov esi, eax
test esi, esi
je 0x4a717b
mov dword [esi], vtable.CThreadData.0
jmp 0x4a717d
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [esi + eax], ecx
mov dword [ebx + 0x14], esi
push 4
push dword [ebx + 0xc]
call fcn.00482fdc
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x4a71af
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4a71bb
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x4a7228
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push edi
push eax
call fcn.005d0030
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4a7201
cmp edi, dword [esi + 8]
jge 0x4a7201
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.005cad82
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004833fc
int3
Function at 0x4aa14d
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x6a3000]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [0x6afc10]
mov dword [ebp - 0x20], ebx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
test eax, eax
jne 0x4aa1a6
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4aa1cb
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x6afc10], eax
jmp 0x4aa1af
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x4aa1cb
mov eax, dword [ebp - 0x18]
mov ecx, esi
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [0x617acc]
call esi
jmp 0x4aa30d
and dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ebx, ax
lea eax, [ebp - 0x14]
push 7
push eax
push ebx
call fcn.004aa5ac
lea eax, [ebp - 0x14]
push eax
call fcn.005ddf98
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.005e3664
mov eax, dword [ebp - 0x20]
lea edi, [esi + 1]
push 7
and ebx, 0x3ff
inc dword [eax]
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.004aa5ac
lea eax, [ebp - 0x14]
push eax
call fcn.005ddf98
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx + edi*2]
push ecx
call fcn.005e3664
mov eax, dword [ebp - 0x20]
add esp, 0x38
add edi, esi
inc dword [eax]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ebx, ax
lea eax, [ebp - 0x14]
push 7
push eax
push ebx
call fcn.004aa5ac
lea eax, [ebp - 0x14]
push eax
call fcn.005ddf98
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.005e3664
mov eax, dword [ebp - 0x20]
add edi, esi
push 7
and ebx, 0x3ff
inc dword [eax]
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.004aa5ac
lea eax, [ebp - 0x14]
push eax
call fcn.005ddf98
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.005e3664
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push 7
push eax
add edi, esi
inc dword [ebx]
push 0x800
call fcn.004aa5ac
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.005ddf98
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.005e3664
mov ecx, dword [ebp - 0x1c]
lea eax, [edi + esi]
add esp, 0x10
xor edx, edx
inc dword [ebx]
mov word [ecx + eax*2 + 2], dx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005ca888
leave
ret
Function at 0x4abf21
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 4], ebx
test byte [edi + 4], 1
mov esi, dword [edi + 0xc]
jne 0x4abf77
push 5
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4abf50
call fcn.00484ca5
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4abf65
call fcn.00484ca5
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4abf77
call fcn.00484ca5
call fcn.004a4868
cmp dword [eax + 0x3c], 0
je 0x4abf8c
push esi
mov ecx, ebx
call fcn.004ab653
mov esi, eax
push dword [ebp + 0xc]
push esi
call fcn.004ac176
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4abfb5
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4abfc1
mov esi, ebx
mov dword [eax + 0x88], ebx
or dword [edi + 4], 1
mov dword [edi + 0xc], esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4b1fd2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x4b1feb
call fcn.004a4868
mov esi, dword [eax + 0xc]
push 0x61f9f8
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4b202d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4b202d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4b202d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004b2036
jmp 0x4b202f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4cf9f8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0xe4]
test ecx, ecx
je 0x4cfb56
push esi
push edi
push 0x62ccf8
call fcn.004a2c25
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], eax
je 0x4cfa91
mov edi, dword [ebx + 0x168]
jmp 0x4cfa7d
mov esi, dword [edi + 8]
mov edi, dword [edi]
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4cfa7d
push esi
call fcn.0048809a
push eax
push 0x6a25b8
call fcn.004a2b86
mov dword [ebp - 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x4cfa7d
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1a0]
mov ecx, esi
call dword [0x617acc]
mov ecx, dword [ebp - 0xc]
call esi
test eax, eax
jle 0x4cfa7d
push 4
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_ShowWindow]
test edi, edi
jne 0x4cfa2c
lea ecx, [ebx + 0x164]
call fcn.00498b89
jmp 0x4cfb54
mov eax, dword [ebx + 0xcc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4cfb54
lea eax, [ebx + 0xc8]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.00488302
mov edi, dword [eax]
test edi, edi
jne 0x4cfabd
xor esi, esi
jmp 0x4cfac0
mov esi, dword [edi + 0x20]
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4cfb44
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4cfb44
cmp dword [ebp - 0x10], 0
jne 0x4cfb19
push edi
push 0x6a25b8
call fcn.004a2b86
mov edi, eax
pop ecx
pop ecx
mov ecx, dword [edi]
mov esi, dword [ecx + 0x1a8]
mov ecx, esi
call dword [0x617acc]
mov ecx, edi
call esi
push eax
push 0x622f80
call fcn.004a2b86
pop ecx
pop ecx
test eax, eax
je 0x4cfb44
mov esi, dword [ebp - 4]
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
lea eax, [ebp - 8]
lea esi, [ebx + 0x164]
push eax
mov ecx, esi
call fcn.004ceb71
test eax, eax
jne 0x4cfb44
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.004cccdd
cmp dword [ebp - 0xc], 0
lea eax, [ebx + 0xc8]
jne 0x4cfaa8
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x50ce64
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
mov esi, dword [eax + 0x1b8]
mov ecx, esi
call dword [0x617acc]
mov ecx, edi
call esi
mov ecx, dword [0x6a2624]
test al, 0x80
push 0xffffffffffffffff
pop eax
cmovne ecx, eax
mov eax, dword [edi]
mov esi, dword [eax + 0x2b4]
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, esi
call dword [0x617acc]
mov ecx, edi
call esi
push dword [ebp - 4]
mov esi, eax
push 0x6a2784
mov dword [ebp - 0xc], esi
call fcn.004a2b86
mov ebx, eax
pop ecx
pop ecx
cmp ebx, edi
je 0x50cf79
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x50cf79
test ebx, ebx
je 0x50cf09
mov eax, dword [ebx]
push 0
mov esi, dword [eax + 0x228]
mov ecx, esi
call dword [0x617acc]
mov ecx, ebx
call esi
push eax
push 0x6a29d4
call fcn.004a2b86
mov esi, dword [ebp - 0xc]
pop ecx
pop ecx
jmp 0x50cf0b
xor eax, eax
mov dword [ebp - 8], eax
cmp esi, 2
jne 0x50cf82
test eax, eax
je 0x50cf5b
mov eax, dword [edi]
mov esi, dword [eax + 0x1c0]
mov ecx, esi
call dword [0x617acc]
mov ecx, edi
call esi
test al, 0x40
je 0x50cf79
cmp dword [ebp - 4], 0
je 0x50cf5b
mov ebx, dword [ebp - 8]
push edi
mov eax, dword [ebx]
mov esi, dword [eax + 0x24c]
mov ecx, esi
call dword [0x617acc]
mov ecx, ebx
call esi
mov ecx, dword [ebp + 8]
neg eax
sbb eax, eax
inc eax
mov dword [ecx], eax
mov eax, edi
jmp 0x50cf7b
mov eax, dword [edi]
push 5
push 0
push ebx
mov esi, dword [eax + 0x1f8]
mov ecx, esi
call dword [0x617acc]
mov ecx, edi
call esi
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
cmp esi, 3
jne 0x50cf79
test ebx, ebx
je 0x50cf79
mov eax, dword [ebx]
push edi
mov esi, dword [eax + 0x184]
mov ecx, esi
call dword [0x617acc]
mov ecx, ebx
call esi
test eax, eax
je 0x50cf79
mov eax, dword [edi]
mov esi, dword [eax + 0x18c]
mov ecx, esi
call dword [0x617acc]
mov ecx, edi
call esi
test eax, eax
je 0x50cf79
mov eax, dword [edi]
push 0
mov esi, dword [eax + 0x240]
mov ecx, esi
call dword [0x617acc]
mov ecx, edi
call esi
mov eax, dword [edi]
push 0
push 1
push 5
mov esi, dword [eax + 0x34c]
mov ecx, esi
push ebx
call dword [0x617acc]
mov ecx, edi
call esi
mov ecx, dword [ebp + 8]
xor edx, edx
test eax, eax
setne dl
mov dword [ecx], edx
jmp 0x50cf7b
Function at 0x50f308
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
push edi
test ebx, ebx
je 0x50f3a7
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x50f3a3
mov eax, dword [eax + 0x20]
test eax, eax
je 0x50f3a3
cmp dword [ebx], eax
jne 0x50f3a3
mov eax, dword [ebx + 4]
sub eax, 1
je 0x50f37d
sub eax, 1
je 0x50f34d
sub eax, 1
jne 0x50f3a3
mov edi, 0x428e
jmp 0x50f382
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x50f382
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [0x617acc]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x50f382
add edi, 3
jmp 0x50f382
mov edi, 0x3ea0
push edi
mov ecx, 0x6b115c
call fcn.004100f0
test eax, eax
je 0x50f3a7
mov eax, dword [0x6b115c]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x50f39c
call fcn.004833e2
int3
Function at 0x523d68
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x6a3000]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x60]
cmp eax, 9
ja 0x523d94
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x523dbf
cmp dword [0x6afecc], 0
jne 0x523dbf
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x523dbb
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x523dbb
push edi
call fcn.005e513e
pop ecx
jmp 0x523e36
mov eax, edi
jmp 0x523e36
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.005d0030
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x523e45
push esi
call fcn.00490179
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 0
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push esi
push 1
push 2
lea ecx, [ebp - 0x108]
push ecx
lea ecx, [ebp - 0x104]
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
xor eax, eax
mov word [ebp - 0x106], ax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
movzx eax, word [ebp - 0x108]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.005ca888
leave
ret 4
call fcn.004833e2
int3
Function at 0x547442
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x547587
mov ecx, 0x6a2940
call fcn.004a6f63
mov esi, eax
test esi, esi
je 0x54757c
mov ebx, dword [ebp + 8]
xor eax, eax
cmp word [esi + 8], ax
jne 0x547547
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x547508
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, 0x3ff
and ax, cx
add ecx, 0xfffffffd
cmp ax, 0x11
jne 0x5474d2
push 0x62e8d0
call fcn.005475c5
pop ecx
mov ecx, 0x3fc
test eax, eax
je 0x5474d2
cmp dword [ebp + 0x10], 0
lea eax, [ecx - 0xe]
push 0xfc11
cmovne eax, ecx
push eax
push 5
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x5474ec
mov ecx, 0x3fc
cmp dword [ebp + 0x10], 0
mov eax, 0x3ee
push 5
cmovne eax, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x547508
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x54750b
push edi
push ebx
push eax
call fcn.004aca96
add esp, 0xc
jmp 0x54750b
mov edi, dword [ebp + 0xc]
mov eax, dword [ebx]
push 2
mov eax, dword [eax - 0xc]
inc eax
push eax
call fcn.00482fdc
pop ecx
pop ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
je 0x547581
mov eax, dword [ebx]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.004a18d0
mov ax, word [edi]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
mov edi, dword [esi + 4]
test edi, edi
je 0x547555
push edi
call fcn.005ddf98
pop ecx
push eax
push edi
mov ecx, ebx
call fcn.00412520
mov eax, dword [ebp + 0xc]
mov edx, 0xffff
movzx ecx, word [esi + 8]
pop edi
pop esi
mov word [eax], cx
xor eax, eax
cmp cx, dx
pop ebx
setne al
pop ebp
ret 0xc
call fcn.004833e2
call fcn.004833fc
int3
Function at 0x548423
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xddc
mov eax, dword [0x6a3000]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test edx, edx
je 0x54864a
test ebx, ebx
je 0x54864a
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
xor edi, edi
movlpd qword [ebp - 0x644], xmm0
movlpd qword [ebp - 0x63c], xmm0
movlpd qword [ebp - 0x634], xmm0
movlpd qword [ebp - 0x874], xmm0
movlpd qword [ebp - 0x86c], xmm0
movlpd qword [ebp - 0x864], xmm0
sub eax, edi
je 0x548613
sub eax, 1
je 0x5484a6
sub eax, 1
je 0x548577
sub eax, 1
jne 0x548646
lea eax, [ebp - 0x20c]
push eax
push dword [edx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x54860e
push edi
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.005425f1
test eax, eax
je 0x54860e
lea eax, [ebp - 0x414]
push eax
push dword [ebx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x548609
push edi
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.005425f1
test eax, eax
je 0x548609
xor edx, edx
inc edx
cmp dword [ebp + 0x10], edx
jne 0x5485d2
test byte [ebp - 0x624], 0x10
jne 0x54860e
test byte [ebp - 0x854], 0x10
jne 0x548570
mov ecx, dword [ebp - 0x858]
mov eax, dword [ebp - 0x85c]
cmp dword [ebp - 0x628], ecx
ja 0x548570
jb 0x54860e
cmp dword [ebp - 0x62c], eax
jb 0x54860e
cmp dword [ebp - 0x628], ecx
jb 0x548646
ja 0x548570
cmp dword [ebp - 0x62c], eax
jbe 0x548646
mov edi, edx
jmp 0x548646
mov esi, 0x408
lea eax, [ebp - 0xddc]
push esi
push 0x2b4
push eax
push edi
push dword [edx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x548646
push esi
push 0x2b4
lea eax, [ebp - 0xb28]
push eax
push edi
push dword [ebx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x548646
lea eax, [ebp - 0x914]
push eax
lea eax, [ebp - 0xbc8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edi, eax
jmp 0x548646
mov ecx, dword [ebp - 0x868]
mov eax, dword [ebp - 0x86c]
cmp dword [ebp - 0x638], ecx
jg 0x548570
jl 0x54860e
cmp dword [ebp - 0x63c], eax
jb 0x54860e
cmp dword [ebp - 0x638], ecx
jl 0x548646
jg 0x548570
cmp dword [ebp - 0x63c], eax
jmp 0x54856a
xor edi, edi
inc edi
jmp 0x548646
or edi, 0xffffffff
jmp 0x548646
mov ecx, dword [edx]
push dword [ebx + 8]
push dword [edx + 8]
mov eax, dword [ecx]
push edi
push ecx
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x617acc]
call esi
test eax, eax
jns 0x548643
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005ca888
leave
ret 0xc
movsx edi, ax
mov eax, edi
jmp 0x548632
call fcn.004833e2
int3