joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a020
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.004247d0
test eax, eax
je 0x42a10f
mov ecx, edi
call fcn.004247d0
mov ecx, eax
call fcn.00421e30
test eax, eax
jne 0x42a10f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42a10f
mov eax, dword [0x57ec48]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x42a082
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.004247d0
mov ecx, eax
call fcn.00422060
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x42a10f
cmp ebx, eax
jne 0x42a10f
cmp dword [esp + 0x10], eax
jne 0x42a0f5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x42cd50
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x462a68
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x42cd89
inc eax
mov dword [esi + 0x10], eax
jmp 0x42ce9c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x42cd9d
mov eax, 0xffffffc7
jmp 0x42ce9e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x42cdae
cmp dword [esi + 8], eax
jne 0x42cd9d
cmp dword [esi + 8], eax
jne 0x42cdc7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x42cdc7
mov eax, 0xffffffc7
jmp 0x42ce9e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x42cddb
push eax
mov ecx, ebx
call fcn.0042c580
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00401640
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x42ce0c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00401660
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042bcf0
test eax, eax
mov dword [esp + 0x38], eax
je 0x42ce3f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x555678
call fcn.00401840
mov eax, dword [esp + 0x38]
jmp 0x42ce9e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0042cbb0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x42ce83
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0042cbd0
mov esi, eax
test esi, esi
jne 0x42ceb3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0042cbb0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x42ce55
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x555678
call fcn.00401840
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x555678
call fcn.00401840
mov eax, esi
jmp 0x42ce9e

Function at 0x42ff70
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x42ffd0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x42ffd0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x42ffd0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x42ffd0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x430010
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x435f10
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x463098
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0045c3e2
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004358b0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0045c310
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00458bd4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00458bd4
push 1
push 0
push 0
mov ecx, esi
call fcn.00458b7c
push 1
push 0
push 1
mov ecx, esi
call fcn.00458b7c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0045c454
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x436090
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4630b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0045c3e2
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004358b0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0045c310
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x436154
cmp dword [esp + 0x40], 1
jne 0x436152
cmp ecx, eax
jge 0x436154
mov eax, ecx
cmp eax, 0xc8
jge 0x436160
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00435f10
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0045c454
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4368d0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x463123
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00456ff5
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0045c68a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0045dba6
test eax, eax
je 0x4369ec
mov ecx, dword [esp + 0x3c]
call fcn.0045c6b7
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4369b0
push edi
mov ecx, esi
call fcn.00459d23
mov ecx, esi
call fcn.00436b50
cmp dword [esp + 0x38], 1
jne 0x4369e5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00459e5e
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x439420
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x439453
push esi
call fcn.0043c530
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43944c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4394d9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4394c2
mov eax, dword [esi + 8]
test eax, eax
je 0x439477
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4394be
cmp eax, 2
je 0x4394c2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43946a
cmp eax, 3
je 0x43949d
cmp eax, 1
jne 0x43946a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43946a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43946a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00439500
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4394e8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00439500
add esp, 4
pop esi
ret

Function at 0x457dea
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x457e22
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00455e9e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00455e76
jmp 0x457e2e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4594d8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45951a
call fcn.0045ef8c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45951a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x459511
xor eax, eax
jmp 0x459522
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00459528
pop edi
pop esi
pop ebx
ret 4

Function at 0x45f4bc
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x45f4ea
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x45f508
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0045f422
jmp 0x45f508
mov eax, dword [esi + 0x14]
test eax, eax
je 0x45f508
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0045f422
test edi, edi
mov eax, edi
jne 0x45f4f2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402800
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x40282f
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403400
jmp 0x40284d
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402730
mov edi, eax
test ebx, ebx
je 0x40284d
cmp dword [esi], 0
je 0x40284d
dec ebx
jmp 0x402836
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x405e10
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405e49
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403400
jmp 0x405e52
mov eax, ebx
mov edx, esi
call fcn.004033b4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405e5c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405e7d
mov al, byte [esp]
jmp 0x405e7f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40e1c0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403320
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x40e221
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x40e221
cmp byte [ebp - 0x102], 0
je 0x40e221
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.0040347c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40f454
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x24], 0
je 0x40f4d5
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x40f486
add word [ebp - 6], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x40f498
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x40f4a4
add word [ebp - 6], 0x8000
xor ebx, ebx
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.0040f32c
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40f4c9
push ebp
mov eax, dword [ebp - 4]
call fcn.0040f3c8
pop ecx
mov ebx, eax
cmp bl, 2
je 0x40f4a4
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x416ca4
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x416caa
ret
Function at 0x41cd1c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x42a64c
cmp dword [edi], 0
jne 0x41cd98
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x42a648]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x429544
mov ecx, 2
call fcn.004026f0
mov edx, 0x41ccf4
lea eax, [esi + 5]
call fcn.0041cd14
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041cd14
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41cd6d
mov dword [0x42a648], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41ce9c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41ceec]
test si, 4
je 0x41ceb0
or bl, 1
test si, 8
je 0x41ceba
or bl, 4
test si, 1
je 0x41cec4
or bl, 8
test si, 2
je 0x41cece
or bl, 0x10
test si, 0x10
je 0x41ced8
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41cee7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x41cef0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41cf28]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41cf09
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41cf18
or bl, 4
test esi, 0x20000000
je 0x41cf23
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x420db8
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x42a624]
cmp byte [eax + 0x7f], 0
jne 0x420e0b
cmp dword [0x42a650], 0
jne 0x420de7
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, 0x420d74
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x42a650], eax
cmp dword [0x42a654], 0
jne 0x420e0b
push esp
push 0
push 0
push 0x420d24
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x42a654], eax
pop edx
ret

Function at 0x420e10
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x42a650], 0
je 0x420e24
mov eax, dword [0x42a650]
push eax
call sub.user32.dll_UnhookWindowsHookEx
xor eax, eax
mov dword [0x42a650], eax
cmp dword [0x42a654], 0
je 0x420e41
push 0
mov eax, dword [0x42a654]
push eax
call sub.kernel32.dll_TerminateThread
xor eax, eax
mov dword [0x42a654], eax
ret
Function at 0x420ee0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x420ef7
add esp, 0xfffffff0
call fcn.00402c6c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0040d320
mov dl, 1
mov eax, 0x407a60
call fcn.00402a6c
mov dword [ebx + 0x70], eax
mov dl, 1
mov eax, 0x407a60
call fcn.00402a6c
mov dword [ebx + 0x80], eax
xor eax, eax
mov dword [ebx + 0x40], eax
xor eax, eax
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x3c], 0x80000018
mov dword [ebx + 0x54], 0x1f4
mov dword [ebx + 0x58], 0x32
mov dword [ebx + 0x5c], 0x9c4
mov byte [ebx + 0x64], 0
mov byte [ebx + 0x7d], 1
mov dl, 1
mov eax, 0x416b9c
call fcn.0041b3a0
mov esi, eax
mov dword [ebx + 0x78], esi
push 0x421038
mov eax, dword [0x42a014]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041b72c
mov eax, dword [ebx + 0x78]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x4222e8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x42a014]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.00405964
test eax, eax
je 0x420fd4
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00405878
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.00405944
test eax, eax
je 0x420fe8
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x6c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040347c
cmp byte [0x42a034], 0
jne 0x421018
mov eax, ebx
call fcn.004210c8
mov byte [ebx + 0x39], 1
mov byte [ebx + 0x3a], 1
cmp byte [ebp - 1], 0
je 0x421030
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x421ad0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x7e], 0
je 0x421b02
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x20]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403400
jmp 0x421b0c
mov eax, esi
mov edx, dword [ebx + 0x6c]
call fcn.004033b4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4224c0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x60]
test esi, esi
je 0x4224f8
mov eax, esi
call fcn.004153fc
test al, al
je 0x4224f8
mov eax, dword [ebx + 0x60]
call fcn.00415264
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4224f8
push 0
mov eax, dword [ebx + 0x60]
call fcn.00415264
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x426e64
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x108], edx
mov esi, eax
xor eax, eax
push ebp
push 0x427066
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
cmp dword [esi + 0x28], 0
jne 0x42704d
mov eax, dword [esi + 0x20]
call fcn.00403494
test eax, eax
jne 0x426eba
mov eax, dword [esi + 0x24]
call fcn.00403494
test eax, eax
jne 0x426eba
mov eax, esi
call fcn.00427104
jmp 0x42704d
mov eax, dword [0x42a624]
call fcn.0040d8e0
mov edx, eax
dec edx
mov eax, dword [0x42a668]
call fcn.0040d8f0
cmp dword [esi + 0x90], 0
jne 0x426f08
lea eax, [ebp - 0x101]
mov edx, dword [esi + 0x20]
call fcn.00405900
push 0x3ec
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x42a668]
mov eax, dword [eax + 0x34]
push eax
call sub.user32.dll_DdeCreateStringHandleA
mov dword [esi + 0x90], eax
cmp dword [esi + 0x94], 0
jne 0x426f3f
lea eax, [ebp - 0x101]
mov edx, dword [esi + 0x24]
call fcn.00405900
push 0x3ec
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x42a668]
mov eax, dword [eax + 0x34]
push eax
call sub.user32.dll_DdeCreateStringHandleA
mov dword [esi + 0x94], eax
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x90]
mov eax, esi
call fcn.00427144
mov ebx, eax
test bl, bl
jne 0x427002
mov eax, dword [esi + 0x20]
call fcn.00403494
test eax, eax
jne 0x426f7b
mov eax, dword [esi + 0xac]
call fcn.00403494
test eax, eax
je 0x427002
mov eax, dword [esi + 0xac]
call fcn.00403494
test eax, eax
je 0x426f9d
lea eax, [ebp - 0x101]
mov edx, dword [esi + 0xac]
call fcn.00405900
jmp 0x426fda
mov edx, dword [esi + 0x20]
lea eax, [ebp - 0x108]
call fcn.004033b4
lea eax, [ebp - 0x108]
mov edx, 0x427080
call fcn.0040349c
lea eax, [ebp - 0x108]
mov edx, dword [esi + 0x24]
call fcn.0040349c
mov edx, dword [ebp - 0x108]
lea eax, [ebp - 0x101]
call fcn.00405900
push 7
lea eax, [ebp - 0x101]
push eax
call sub.kernel32.dll_WinExec
cmp eax, 0x20
jl 0x427002
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x90]
mov eax, esi
call fcn.00427144
mov ebx, eax
test bl, bl
jne 0x42700f
mov eax, esi
call fcn.00427104
jmp 0x42704d
mov eax, dword [esi + 0x48]
test eax, eax
je 0x42701e
mov dword [esi + 0x98], eax
jmp 0x427028
mov dword [esi + 0x98], 1
mov eax, esi
call fcn.004271bc
test al, al
je 0x42704d
mov eax, esi
mov bx, 0xfff5
call fcn.00402b3c
xor ecx, ecx
xor edx, edx
mov eax, esi
call fcn.00427264
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42706d
lea eax, [ebp - 0x108]
call fcn.00403320
ret