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

Disassembly:
push 0x24
mov eax, 0x5a2626
call fcn.005748e9
mov edi, ecx
mov dword [ebp - 0x24], edi
mov ebx, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
mov dword [ebp - 0x18], ebx
call fcn.0044bcbd
cmp dword [edi + 0x84], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
je 0x4182ba
call fcn.0044bcbd
push 5
push dword [edi + 0x84]
mov ebx, dword [eax + 0xc]
push ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4182ce
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp - 0x18]
mov esi, eax
test esi, esi
je 0x4182ca
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x18], eax
test ebx, ebx
jne 0x4182d6
or eax, 0xffffffff
jmp 0x418428
mov ecx, edi
call fcn.0041885e
mov ebx, eax
mov dword [ebp - 0x2c], ebx
call fcn.0041f2c9
xor esi, esi
and dword [ebp - 0x1c], esi
and dword [ebp - 0x28], esi
mov dword [ebp - 0x14], esi
test ebx, ebx
je 0x418362
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x418362
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x418362
push esi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x14], 1
call fcn.00408eb0
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x41835f
mov ecx, dword [esi]
mov esi, dword [ecx + 0x150]
mov ecx, esi
call dword [0x5b4a78]
mov ecx, dword [ebp - 0x1c]
call esi
test eax, eax
je 0x41835f
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.004171ba
test eax, eax
je 0x41835f
push 0
mov ecx, esi
call fcn.00416adc
mov dword [ebp - 0x28], 1
mov esi, dword [ebp - 0x14]
and dword [ebp - 4], 0
push edi
call fcn.0041ef94
push ebx
call fcn.0042068b
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.004181fe
test eax, eax
jne 0x4183ab
cmp dword [edi + 0x9c], eax
jne 0x4183ab
call fcn.0044bcbd
push ebx
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
call fcn.0042068b
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.004181fe
and dword [edi + 0x9c], 0
jmp 0x4183d6
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 0
je 0x4183ea
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.00416adc
test esi, esi
je 0x4183f7
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x41840d
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 0x20]
jne 0x41840d
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [edi]
mov esi, dword [eax + 0x60]
mov ecx, esi
call dword [0x5b4a78]
mov ecx, edi
call esi
mov ecx, edi
call fcn.00418815
mov eax, dword [edi + 0x68]
call fcn.0057484e
ret
Function at 0x42061e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x42065d
call fcn.0044bcbd
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42065d
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x420665
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.004d4f5a
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x42104f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x4210db
cmp dword [esi + 0x20], 0
je 0x4210db
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4210db
cmp dword [ebp + 8], 0
je 0x4210db
xor edi, edi
mov ebx, edi
call fcn.0044bcbd
push str.AFX_DIALOG_LAYOUT
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
test eax, eax
je 0x4210bf
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4210db
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.004daf6f
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4210d7
mov ecx, esi
call fcn.00420dec
mov eax, edi
jmp 0x4210dd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4259af
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.00582be8
pop ecx
test eax, eax
jne 0x4259f1
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00406430
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4259b7
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret

Function at 0x425b80
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 1
mov eax, dword [esi]
push 1
mov edi, dword [eax + 0xe0]
mov ecx, edi
je 0x425bbb
push 0
call dword [0x5b4a78]
mov ecx, esi
call edi
test eax, eax
je 0x425bb7
xor eax, eax
inc eax
jmp 0x425bce
xor eax, eax
jmp 0x425bce
push dword [esi + 0x24]
call dword [0x5b4a78]
mov ecx, esi
call edi
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
leave
ret
Function at 0x44180c
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 0x441825
call fcn.0044bcbd
mov esi, dword [eax + 0xc]
push 0x5b9634
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x441867
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x441867
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x441867
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00441870
jmp 0x441869
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x448626
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 0x4486c5
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x4486c1
mov eax, dword [eax + 0x20]
test eax, eax
je 0x4486c1
cmp dword [ebx], eax
jne 0x4486c1
mov eax, dword [ebx + 4]
sub eax, 1
je 0x44869b
sub eax, 1
je 0x44866b
sub eax, 1
jne 0x4486c1
mov edi, 0x428e
jmp 0x4486a0
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4486a0
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [0x5b4a78]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x4486a0
add edi, 3
jmp 0x4486a0
mov edi, 0x3ea0
push edi
mov ecx, 0x617d20
call fcn.00406600
test eax, eax
je 0x4486c5
mov eax, dword [0x617d20]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x4486ba
call fcn.00419500
int3
Function at 0x4743ef
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 0x47454d
push esi
push edi
push 0x5cab3c
call fcn.00443cf4
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], eax
je 0x474488
mov edi, dword [ebx + 0x168]
jmp 0x474474
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 0x474474
push esi
call fcn.0042068b
push eax
push 0x60f76c
call fcn.00443c55
mov dword [ebp - 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x474474
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1a0]
mov ecx, esi
call dword [0x5b4a78]
mov ecx, dword [ebp - 0xc]
call esi
test eax, eax
jle 0x474474
push 4
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_ShowWindow]
test edi, edi
jne 0x474423
lea ecx, [ebx + 0x164]
call fcn.00413e3f
jmp 0x47454b
mov eax, dword [ebx + 0xcc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x47454b
lea eax, [ebx + 0xc8]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.004111b1
mov edi, dword [eax]
test edi, edi
jne 0x4744b4
xor esi, esi
jmp 0x4744b7
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 0x47453b
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x47453b
cmp dword [ebp - 0x10], 0
jne 0x474510
push edi
push 0x60f76c
call fcn.00443c55
mov edi, eax
pop ecx
pop ecx
mov ecx, dword [edi]
mov esi, dword [ecx + 0x1a8]
mov ecx, esi
call dword [0x5b4a78]
mov ecx, edi
call esi
push eax
push 0x5bbf00
call fcn.00443c55
pop ecx
pop ecx
test eax, eax
je 0x47453b
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.0047357f
test eax, eax
jne 0x47453b
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.00471451
cmp dword [ebp - 0xc], 0
lea eax, [ebx + 0xc8]
jne 0x47449f
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4a7e50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov ecx, 0x104
mov eax, dword [esi + 4]
cmp eax, ecx
ja 0x4a7fd7
je 0x4a7ffe
sub eax, 0xa1
je 0x4a7ffe
sub eax, 1
je 0x4a7ffe
dec eax
sub eax, 1
je 0x4a7ffe
sub eax, 1
je 0x4a7ffe
dec eax
sub eax, 1
je 0x4a7ffe
sub eax, 1
je 0x4a7ffe
sub eax, 0x58
jne 0x4a803c
cmp dword [edi + 0xc0], 0xffffffff
je 0x4a7ffe
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4a7ffe
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x4a7f2c
sub eax, 1
jne 0x4a7ffe
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x4a7f1b
mov eax, ebx
cdq
idiv ecx
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x5b4a78]
mov ecx, edi
call esi
test eax, eax
jne 0x4a7f78
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x4a7ef1
jmp 0x4a8056
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x4a8056
mov eax, ebx
cdq
idiv dword [edi + 0xbc]
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x5b4a78]
mov ecx, edi
call esi
test eax, eax
jne 0x4a7f78
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x4a7f43
jmp 0x4a8056
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x5b4a78]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x5b4a78]
mov ecx, edi
call esi
mov ecx, eax
call fcn.0041758e
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x5b4a78]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x4a8056
sub eax, 0x200
je 0x4a7ffe
sub eax, 1
je 0x4a7ffe
sub eax, 1
je 0x4a7ffe
dec eax
sub eax, 1
je 0x4a7ffe
sub eax, 1
je 0x4a7ffe
dec eax
sub eax, 1
je 0x4a7ffe
sub eax, 1
jne 0x4a803c
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x4a801d
cmp dword [eax + 0x20], ebx
je 0x4a801d
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [edi + 0xf8]
test eax, eax
je 0x4a803c
cmp dword [eax + 0x20], ebx
je 0x4a803c
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esi + 4], 0x203
jne 0x4a805b
lea eax, [edi + 0x2250]
test eax, eax
je 0x4a8052
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x4a805b
xor eax, eax
inc eax
jmp 0x4a8063
push esi
mov ecx, edi
call fcn.004fdafb
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4b3cc6
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x5aace7
call fcn.005748e9
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 0x4b3dbd
cmp edi, dword [ebx + 0xc]
jge 0x4b3dbd
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x4b3d1d
cmp edi, dword [esi + 8]
jl 0x4b3dab
cmp dword [ebp + 0xc], 0
je 0x4b3dab
xor edi, edi
jmp 0x4b3d4f
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.004b38d8
mov esi, eax
test esi, esi
je 0x4b3d37
mov dword [esi], vtable.CThreadData.0
jmp 0x4b3d39
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.00419861
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x4b3d6b
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4b3d77
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x4b3de4
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.005789a0
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 0x4b3dbd
cmp edi, dword [esi + 8]
jge 0x4b3dbd
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0057484e
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0041951a
int3
Function at 0x4b5659
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x60fe80]
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 [0x618180]
mov dword [ebp - 0x20], ebx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
test eax, eax
jne 0x4b56b2
push 0x5b6b30
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4b56d7
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 [0x618180], eax
jmp 0x4b56bb
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x4b56d7
mov eax, dword [ebp - 0x18]
mov ecx, esi
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [0x5b4a78]
call esi
jmp 0x4b5819
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.004b59d0
lea eax, [ebp - 0x14]
push eax
call fcn.00581ab2
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.00582553
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.004b59d0
lea eax, [ebp - 0x14]
push eax
call fcn.00581ab2
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.00582553
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.004b59d0
lea eax, [ebp - 0x14]
push eax
call fcn.00581ab2
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.00582553
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.004b59d0
lea eax, [ebp - 0x14]
push eax
call fcn.00581ab2
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.00582553
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push 7
push eax
add edi, esi
inc dword [ebx]
push 0x800
call fcn.004b59d0
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.00581ab2
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.00582553
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.005742be
leave
ret
Function at 0x4b7139
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x234
mov eax, 0x5ab005
call fcn.005748b3
mov ebx, ecx
mov dword [ebp - 0x224], ebx
and dword [ebp - 0x228], 0
call fcn.0044bcbd
push 0
mov ecx, dword [eax + 4]
call fcn.00412219
mov edi, eax
xor eax, eax
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
mov eax, dword [ebx]
mov byte [ebp - 4], 1
mov esi, dword [eax + 0x20]
lea eax, [ebp - 0x21c]
push eax
mov ecx, esi
call dword [0x5b4a78]
mov ecx, ebx
call esi
push 0x2001f
lea ecx, [ebp - 0x234]
push dword [eax]
push edi
call fcn.004b6eea
mov ecx, dword [ebp - 0x21c]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.00406a20
test esi, esi
jne 0x4b732b
xor ebx, ebx
lea eax, [ebp - 0x113]
push 0x103
push ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.005789a0
mov edi, dword [ebp - 0x234]
lea eax, [ebp - 0x21c]
add esp, 0xc
mov dword [ebp - 0x21c], 0x104
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push eax
lea eax, [ebp - 0x114]
push eax
push ecx
jmp 0x4b72c7
push 0x103
lea eax, [ebp - 0x217]
mov dword [ebp - 0x21c], 0x104
push 0
push eax
inc ebx
mov byte [ebp - 0x218], 0
call fcn.005789a0
add esp, 0xc
mov dword [ebp - 0x220], 0x104
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x234]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.004b70da
test eax, eax
jne 0x4b72b2
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x114]
push eax
lea ecx, [ecx + 4]
call fcn.004b5f93
mov esi, eax
lea eax, [ebp - 0x218]
push eax
call fcn.00581e50
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.004067b0
mov dword [ebp - 0x228], 1
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x4b721f
test edi, edi
je 0x4b72e9
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x234], edi
mov ebx, dword [ebp - 0x224]
and dword [ebp - 0x230], 0
mov eax, dword [ebx]
mov esi, dword [eax + 0x20]
lea eax, [ebp - 0x220]
push eax
mov ecx, esi
call dword [0x5b4a78]
mov ecx, ebx
call esi
lea ecx, [ebp - 0x240]
push dword [eax]
call fcn.004b67e4
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.00406a20
jmp 0x4b7331
mov edi, dword [ebp - 0x234]
test edi, edi
je 0x4b733c
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x240]
call fcn.004121db
mov eax, dword [ebp - 0x228]
call fcn.00574862
ret
Function at 0x4baa6c
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x60fe80]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x60]
cmp eax, 9
ja 0x4baa98
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4baac3
cmp dword [0x6172f4], 0
jne 0x4baac3
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x4baabf
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x4baabf
push edi
call fcn.00589913
pop ecx
jmp 0x4bab38
mov eax, edi
jmp 0x4bab38
xor eax, eax
mov word [ebp - 0x10c], ax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x4bab47
push esi
call fcn.0041dc99
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 0
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push esi
push 1
lea ecx, [ebp - 0x10c]
push ecx
lea ecx, [ebp - 0x104]
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_ToAsciiEx]
mov al, byte [ebp - 0x10c]
mov byte [ebp - 0x108], al
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 0x107], 0
call dword [sym.imp.USER32.dll_CharUpperA]
movsx eax, byte [ebp - 0x108]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.005742be
leave
ret 4
call fcn.00419500
int3
Function at 0x4d3c74
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x4d3c9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4d3ca4
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
leave
ret
lea ecx, [esi + 0xc]
call fcn.00406e10
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004dd3fb
int3

Function at 0x4d3d51
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi], ebx
je 0x4d3d98
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x4d3da7
push str.MoveFileTransactedA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4d3da7
push dword [esi]
mov ecx, edi
push 2
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x5b4a78]
call edi
jmp 0x4d3da9
cmp dword [esi + 4], ebx
je 0x4d3da7
pop edi
pop esi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_MoveFileA]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4d3fde
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x4d3fef
xor eax, eax
jmp 0x4d400b
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 0x4d4010
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
lea ecx, [esi + 0xc]
call fcn.00406e10
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004dd3fb
int3

Function at 0x4d40eb
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 [0x5b4a78]
mov ecx, edi
call esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4d411e
pop edi
pop esi
pop ebp
ret 8
lea ecx, [edi + 0xc]
call fcn.00406e10
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004dd3fb
int3

Function at 0x4d41f2
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 0x4d421d
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 0x4d4223
cmp dword [ebp - 4], esi
jne 0x4d423a
pop edi
pop esi
leave
ret 8
lea ecx, [edi + 0xc]
call fcn.00406e10
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004dd3fb
lea ecx, [edi + 0xc]
call fcn.00406e10
push eax
push 0xffffffffffffffff
push 0xd
call fcn.004dd051
int3