joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44aaf0
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x1c]
lea edi, [esi + 0x178]
mov dword [esi + 0x17c], eax
mov ecx, dword [0x5a1db4]
lea eax, [esi + 0x5c]
mov edx, dword [ecx + 0x1c]
lea ecx, [esi + 0x184]
push eax
push ecx
mov dword [edi], edx
call fcn.00433470
mov edx, dword [esi + 0x16c]
mov eax, dword [esi + 0x170]
lea ecx, [esp + 0x10]
mov dword [esi + 0x180], 0
push ecx
push 4
push edi
push 0x44abc0
push 0
push 0
mov dword [esi + 0x290], esi
mov dword [esi + 0x49c], edx
mov dword [esi + 0x4a0], eax
call fcn.00461973
mov edi, eax
add esp, 0x20
test edi, edi
jne 0x44ab6a
pop edi
pop esi
pop ecx
ret
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 2
push 0
add esi, 0x4a4
push 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call esi
push eax
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
push edi
jne 0x44aba4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
pop ecx
ret
Function at 0x44ca90
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
call fcn.0044c9f0
test eax, eax
jne 0x44ca9e
pop edi
pop esi
ret
call fcn.005269f5
mov edi, dword [esp + 0xc]
mov eax, dword [eax + 8]
push 0
push eax
mov ecx, dword [edi + 0x1c]
push 0
push ecx
push 0
push 0
push 0
push 0
push 0x40000000
push 0x5a17b0
push 0x5967fc
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x44cadb
pop edi
pop esi
ret
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
push 0xffffffffffffffeb
push esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, esi
pop edi
pop esi
ret

Function at 0x44d2c0
Capabilities:
Terminate thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x4a0]
test eax, eax
je 0x44d2dd
push 0
mov dword [eax + 8], 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x49c]
test eax, eax
je 0x44d32b
lea ecx, [esp + 4]
mov dword [esp + 4], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 4], 0x103
jne 0x44d314
mov edx, dword [esi + 0x49c]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x49c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x49c], 0
mov eax, dword [esi + 0x4a0]
test eax, eax
je 0x44d348
push eax
call fcn.0046185f
add esp, 4
mov dword [esi + 0x4a0], 0
pop esi
pop ecx
ret

Function at 0x44e130
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
push ebx
push esi
push edi
mov esi, ecx
push 0x118
call fcn.00461c33
mov edi, eax
mov ecx, 0x46
xor eax, eax
mov dword [esi + 0x74], edi
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x1c]
mov dword [eax + 4], ecx
mov eax, dword [0x5a1db4]
mov edx, dword [esi + 0x74]
mov ecx, dword [eax + 0x1c]
mov dword [edx], ecx
mov edx, dword [esi + 0x74]
mov dword [edx + 8], 0
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x60]
mov dword [eax + 0x110], ecx
mov edx, dword [esi + 0x74]
mov eax, dword [esi + 0x64]
lea ecx, [esp + 0x10]
mov dword [edx + 0x114], eax
mov edx, dword [esi + 0x74]
push ecx
push 4
push edx
push 0x44e2e0
push 0
push 0
call fcn.00461973
add esp, 0x1c
mov edi, eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
lea eax, [esi + 0x70]
push 0
push eax
call ebx
push eax
push edi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x44e1e0
push eax
push 0x579dc0
push 0x579da4
mov ecx, esi
call fcn.0050fb08
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x4500f0
Capabilities:
Create directory

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
mov esi, dword [esp + 0x218]
xor ebx, ebx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4501d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4501d7
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov byte [esp + 0x114], bl
mov byte [esp + 0x10], bl
lea ecx, [esp + 0x10]
mov al, byte [esi]
cmp al, 0x5c
je 0x450154
cmp al, bl
je 0x450154
mov byte [ecx], al
mov al, byte [esi + 1]
inc ecx
inc esi
cmp al, 0x5c
jne 0x450145
lea eax, [esp + 0x10]
mov byte [ecx], bl
push eax
call edi
cmp eax, 1
jl 0x4501d7
lea ecx, [esp + 0x10]
lea edx, [esp + 0x114]
push ecx
push edx
call ebp
lea eax, [esp + 0x114]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x450191
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4501c3
cmp byte [esi], bl
je 0x4501d7
lea ecx, [esp + 0x10]
push ecx
call edi
cmp eax, 1
jl 0x4501d7
cmp byte [esi], 0x5c
jne 0x4501b6
lea edx, [esp + 0x114]
push 0x5909e8
push edx
call ebp
inc esi
mov byte [esp + 0x10], bl
lea ecx, [esp + 0x10]
jmp 0x45013f
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x208
ret
Function at 0x452100
Capabilities:
Enumerate network shares

Disassembly:
push 0xffffffffffffffff
push 0x53416b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
mov eax, dword [0x598d50]
push ebx
push ebp
push esi
or esi, 0xffffffff
push edi
mov dword [esp + 0x18], 0x7d00
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
xor ecx, ecx
mov dword [esp + 0x140], 0
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x148]
mov dword [esp + 0x24], ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], ecx
push eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], 0x14
push ecx
push ecx
push ecx
push 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x38], edx
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
je 0x45218a
mov dword [esp + 0x140], esi
jmp 0x4522c5
mov ecx, dword [esp + 0x18]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
mov ebx, eax
push edx
lea eax, [esp + 0x18]
push ebx
push eax
push ecx
call sub.MPR.dll_WNetEnumResourceA
mov ebp, eax
test ebp, ebp
jne 0x452275
mov eax, dword [esp + 0x14]
xor edi, edi
test eax, eax
jbe 0x45227d
lea esi, [ebx + 0x14]
mov eax, dword [esi - 4]
test eax, eax
je 0x452214
mov edx, dword [esi]
lea ecx, [esp + 0x10]
push edx
call fcn.00512074
lea ecx, [esp + 0x10]
call fcn.0051240d
mov eax, dword [esp + 0x14c]
lea ecx, [esp + 0x10]
push eax
call fcn.0050a5bf
cmp eax, 0xffffffff
je 0x452263
mov ecx, dword [esi - 4]
lea edx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x34]
mov dword [esp + 0x2c], eax
jmp 0x452255
mov ecx, dword [esi]
push ecx
lea ecx, [esp + 0x14]
call fcn.00512074
lea ecx, [esp + 0x10]
call fcn.0051240d
mov edx, dword [esp + 0x14c]
lea ecx, [esp + 0x10]
push edx
call fcn.0050a5bf
cmp eax, 0xffffffff
je 0x452263
mov eax, dword [esi]
lea ecx, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x34]
mov dword [esp + 0x2c], edx
lea eax, [esp + 0x20]
push eax
call sub.MPR.dll_WNetDisconnectDialog1A
test eax, eax
jne 0x452291
mov eax, dword [esp + 0x14]
inc edi
add esi, 0x20
cmp edi, eax
jb 0x4521c9
jmp 0x45227d
cmp ebp, 0x103
jne 0x4522a9
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp ebp, 0x103
je 0x4522b0
jmp 0x45218a
lea ecx, [esp + 0x10]
mov dword [esp + 0x140], 0xffffffff
call fcn.00511eeb
xor eax, eax
jmp 0x4522d3
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x1c]
push ecx
call sub.MPR.dll_WNetCloseEnum
mov dword [esp + 0x140], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00511eeb
mov eax, 1
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x134
ret
Function at 0x478060
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5366d3
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.005116fb
xor edi, edi
mov dword [esi + 0x20], 0x54ffb0
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], 0x5501f8
call fcn.0052b047
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 0x47c0d0
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 + 0xe0]
push eax
call fcn.00479490
mov ebx, eax
mov eax, dword [esi + 0xb4]
cmp eax, 0xffffffff
je 0x47c134
cmp dword [esi + 0xe4], 5
jne 0x47c134
cmp dword [esi + 0xdc], 1
jne 0x47c134
test ebx, ebx
je 0x47c113
cmp dword [ebx + 0x7c], eax
je 0x47c134
cmp eax, dword [esi + 0xb0]
jne 0x47c129
mov edx, dword [esi]
push 0
push 0xffffffffffffffff
mov ecx, esi
call dword [edx + 0xc4]
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.0047c4a0
test ebx, ebx
mov ecx, esi
je 0x47c21e
call fcn.0047e450
test eax, eax
jne 0x47c1ec
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x47c1ec
push esi
push 0x59d118
call fcn.00512d0a
add esp, 8
test eax, eax
je 0x47c1ec
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x47c1ec
mov ecx, esi
call fcn.0047e420
mov edi, eax
test edi, edi
je 0x47c1ec
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x47c1ec
mov ecx, dword [edi + 0x70]
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x47c1ec
push 1
mov ecx, edi
call fcn.00484930
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.0047c4a0
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.00484930
push 0
mov ecx, edi
call fcn.00482270
mov ecx, edi
call fcn.00483c60
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov ecx, esi
call fcn.0047e450
test eax, eax
je 0x47c205
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x120]
test eax, eax
je 0x47c223
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx]
push ebp
push ecx
push 0
mov ecx, ebx
call dword [eax + 0xe0]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
call fcn.0050e2a0
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x47fed0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x536ab2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004c6c10
mov edi, dword [sym.imp.USER32.dll_RegisterWindowMessageA]
xor eax, eax
xor ebx, ebx
xor ecx, ecx
mov dword [esi + 0x1c], eax
push 0x59cf0c
mov dword [esp + 0x20], ebx
mov dword [esi], 0x5508c8
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 1
mov dword [esi + 0x20], ecx
mov dword [esi + 8], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x48], ebx
call edi
push 0x59cef0
mov dword [esi + 0x4c], eax
call edi
push 0x40
mov dword [esi + 0x50], eax
mov dword [esi + 0x44], ebx
call fcn.00511c2c
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x1c], 1
je 0x47ff74
mov ecx, eax
call fcn.00478060
jmp 0x47ff76
xor eax, eax
push 0x14
push 0xf060
mov ecx, esi
mov byte [esp + 0x24], bl
mov dword [esi + 0x28], eax
call fcn.0047fdc0
push 9
push 0xf030
mov ecx, esi
call fcn.0047fdc0
push 9
push 0xf120
mov ecx, esi
call fcn.0047fdc0
push 8
push 0xf020
mov ecx, esi
call fcn.0047fdc0
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x482bb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x536d0e
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.0050df0e
mov eax, dword [0x598d50]
lea edi, [esi + 0x3c]
mov dword [esp + 0x14], 0
mov dword [edi], eax
mov edx, dword [0x598d50]
lea ecx, [esi + 0x40]
mov dword [ecx], edx
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push edx
mov byte [esp + 0x18], 2
mov dword [esi], 0x550bb8
mov dword [esi + 0x44], eax
call fcn.00512074
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x48], ecx
mov ecx, edi
mov dword [esi + 0x54], eax
mov dword [esi + 0x4c], edx
call fcn.00511e76
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [esi + 0x58], ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x50], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x1c
Function at 0x483c90
Capabilities:
Log keystrokes

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x70]
cmp dword [eax + 0x58], 2
je 0x483de4
mov ecx, dword [esp + 0x14]
cmp ecx, 0x60
jb 0x483cbc
cmp ecx, 0x69
ja 0x483cbc
mov edx, dword [eax + 0x78]
test edx, edx
je 0x483de4
push 2
push ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
test eax, eax
je 0x483de4
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x50]
mov ebp, eax
push ebp
call fcn.00481fc0
mov esi, eax
mov eax, dword [edi + 0x80]
add esp, 4
neg esi
sbb esi, esi
xor ebx, ebx
and esi, ebp
test eax, eax
jle 0x483d32
push ebx
mov ecx, edi
call fcn.00494be0
mov ebp, eax
mov eax, dword [ebp + 0xc4]
test eax, eax
jne 0x483d30
mov ecx, dword [edi + 0x70]
test byte [ecx + 0x58], 1
je 0x483d23
test esi, esi
jne 0x483d23
push ebp
call fcn.00481fc0
add esp, 4
test eax, eax
je 0x483d23
mov esi, ebp
mov eax, dword [edi + 0x80]
inc ebx
cmp ebx, eax
jl 0x483cf3
jmp 0x483d32
mov esi, ebp
test esi, esi
je 0x483de4
push esi
call fcn.00481fc0
add esp, 4
test eax, eax
je 0x483de4
mov ebx, dword [esp + 0x14]
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x160]
test eax, eax
je 0x483d6a
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
lea eax, [esp + 0x14]
mov ecx, edi
push eax
push ebx
push esi
call fcn.00483a30
mov ebp, eax
test ebp, ebp
je 0x483de4
mov esi, dword [ebp + 0xf8]
mov ebx, dword [ebp + 0x7c]
mov eax, dword [esi + 0xc4]
test eax, eax
jne 0x483d98
mov ecx, edi
call fcn.00483c60
push 1
mov ecx, edi
call fcn.00483860
mov dword [edi + 0x40], 1
mov edx, dword [esi]
push 1
push 0
push 1
mov ecx, esi
call dword [edx + 0xbc]
mov eax, dword [esi]
push 1
push ebx
mov ecx, esi
call dword [eax + 0xc4]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x483dd8
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0xa8]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
Function at 0x483df0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
cmp dword [edi + 4], 0x104
jne 0x483eac
mov eax, dword [edi + 0xc]
shr eax, 0x10
test ah, 0x20
je 0x483eac
call fcn.00483920
mov ecx, dword [eax + 4]
test ecx, ecx
jg 0x483eac
push 0
mov ecx, esi
call fcn.00483920
mov ecx, eax
call fcn.004c9f40
test eax, eax
jne 0x483eac
mov ecx, esi
call fcn.00483920
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x483e50
mov eax, dword [eax + 0x1c]
push eax
call fcn.004c9bf0
add esp, 4
test eax, eax
je 0x483eac
cmp dword [edi + 8], 0x12
jne 0x483e77
push 1
mov ecx, esi
call fcn.00483860
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret 4
mov eax, dword [esi + 0x20]
test eax, eax
je 0x483e8b
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
jne 0x483eac
mov eax, dword [edi + 8]
test eax, eax
je 0x483eac
push eax
mov ecx, esi
call fcn.00483c90
test eax, eax
je 0x483eac
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20
ret 4
mov eax, dword [edi + 4]
cmp eax, 0x105
je 0x483ebd
cmp eax, 0x101
jne 0x483eed
mov eax, dword [esi + 0xc0]
test eax, eax
je 0x483eed
mov eax, dword [esi + 0xac]
test eax, eax
je 0x483eed
push 0
mov ecx, esi
call fcn.00483920
mov ecx, eax
call fcn.004c9f40
test eax, eax
jne 0x483eed
push eax
mov ecx, esi
call fcn.00483860
mov eax, dword [edi + 4]
cmp eax, 0x7b
je 0x483efc
cmp eax, 0x105
jne 0x483f3e
push 0
mov ecx, esi
call fcn.00483920
mov ecx, eax
call fcn.004c9f40
test eax, eax
je 0x483f3e
push 0x47fad0
mov ecx, 0x5a4c98
call fcn.00527f3c
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
push ecx
push edx
push 0x7b
mov ecx, eax
call fcn.004c7950
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20
ret 4
cmp dword [edi + 4], 0x20a
jne 0x483ffb
push 0x47fad0
mov ecx, 0x5a4c98
call fcn.00527f3c
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jle 0x483f8d
push 0x47fad0
mov ecx, 0x5a4c98
call fcn.00527f3c
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
push ecx
push edx
push 0x20a
mov ecx, eax
call fcn.004c7950
pop edi
pop esi
pop ebx
add esp, 0x20
ret 4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x50]
lea ecx, [esp + 0xc]
mov ebx, eax
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
test ebx, ebx
je 0x483ffb
cmp dword [ebx + 0xdc], 3
jne 0x483ffb
mov edx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], edx
call fcn.004be660
mov ecx, dword [esp + 0x1c]
push ecx
push ebp
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
pop ebp
je 0x483ffb
mov edx, dword [edi + 8]
xor eax, eax
shr edx, 0x10
test dx, dx
setle al
push eax
mov ecx, ebx
call fcn.004d1420
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20
ret 4
mov eax, dword [edi + 4]
cmp eax, 0x100
jb 0x483e6c
cmp eax, 0x108
ja 0x483e6c
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x484021
mov eax, dword [eax + 0x1c]
push edi
push eax
mov ecx, esi
call fcn.00482500
mov ecx, eax
call fcn.00488cc0
test eax, eax
je 0x483e6c
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20
ret 4
Function at 0x486390
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
mov ebx, ecx
push esi
mov ecx, dword [ebx + 0xe0]
call fcn.004790b0
call fcn.005269f5
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
and eax, 0xffff
push 0xf1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x4863c8
pop esi
pop ebx
pop ecx
ret 8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4863da
pop esi
pop ebx
pop ecx
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4863ed
pop esi
pop ebx
pop ecx
ret 8
xor ecx, ecx
push ebp
mov cx, word [esi + 6]
push edi
shl ecx, 2
push ecx
call fcn.00511c2c
xor edi, edi
add esp, 4
cmp word [esi + 6], di
mov dword [esp + 0x10], eax
jbe 0x486431
mov ebp, eax
mov ecx, esi
call fcn.004864c0
xor edx, edx
add ebp, 4
mov dx, word [eax + edi*2]
xor eax, eax
mov dword [ebp - 4], edx
mov ax, word [esi + 6]
inc edi
cmp edi, eax
jl 0x48640f
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov cx, word [esi + 6]
push ecx
push eax
mov ecx, ebx
call fcn.00486140
mov ebp, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4864a2
mov ecx, ebx
call fcn.0047eeb0
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.00493370
test eax, eax
jne 0x48647f
xor ebp, ebp
mov ax, word [esi + 2]
cmp ax, 0x10
je 0x4864a2
and eax, 0xffff
mov ecx, eax
xor eax, eax
mov ax, word [esi + 4]
mov dword [ebx + 0xf0], ecx
mov dword [ebx + 0xf4], eax
mov eax, dword [esp + 0x10]
push eax
call fcn.00511c55
add esp, 4
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret 8
Function at 0x489210
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 2
push ebx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
test al, al
jne 0x48923b
xor eax, eax
lea esp, [ebp - 0x11c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push eax
call fcn.004894b0
mov cl, byte [ebp + 8]
add esp, 4
cmp cl, bl
mov byte [ebp - 1], al
je 0x489375
cmp al, bl
je 0x489375
mov esi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push 0
push 0
call esi
mov edi, eax
cmp edi, 1
mov dword [ebp - 0x10], edi
jbe 0x489366
lea eax, [edi*4]
add eax, 3
and al, 0xfc
call fcn.00461830
mov eax, esp
push eax
push edi
mov dword [ebp - 8], eax
call esi
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
jne 0x4892af
lea esp, [ebp - 0x11c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
mov dword [ebp - 0xc], 0
jbe 0x489366
mov esi, dword [ebp - 8]
mov edi, dword [sym.imp.USER32.dll_ToAsciiEx]
jmp 0x4892cc
mov ebx, dword [ebp + 0xc]
mov edx, dword [esi]
lea eax, [ebp - 8]
push edx
push 0
lea ecx, [ebp - 0x110]
push eax
push ecx
push 0
push ebx
mov dword [ebp - 8], 0
call edi
cmp eax, 1
jne 0x489307
mov eax, dword [ebp - 8]
mov cl, byte [ebp + 8]
cmp cl, al
je 0x489375
push eax
call fcn.004894b0
mov cl, byte [ebp - 1]
add esp, 4
cmp cl, al
je 0x489375
mov bl, byte [ebp - 0x100]
mov byte [ebp - 0x100], 0x81
mov edx, dword [esi]
lea eax, [ebp - 8]
push edx
mov edx, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 0x110]
push eax
push ecx
push 0
push edx
call edi
cmp eax, 1
jne 0x48934b
mov eax, dword [ebp - 8]
mov cl, byte [ebp + 8]
cmp cl, al
je 0x489375
push eax
call fcn.004894b0
mov cl, byte [ebp - 1]
add esp, 4
cmp cl, al
je 0x489375
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
inc eax
add esi, 4
cmp eax, ecx
mov byte [ebp - 0x100], bl
mov dword [ebp - 0xc], eax
jb 0x4892c9
xor eax, eax
lea esp, [ebp - 0x11c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea esp, [ebp - 0x11c]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret