joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003cdb0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10083313
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.10076dc0
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.1007c475
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.1007d991
test eax, eax
je 0x1003cecc
mov ecx, dword [esp + 0x3c]
call fcn.1007c4a2
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 0x1003ce90
push edi
mov ecx, esi
call fcn.10079aea
mov ecx, esi
call fcn.1003d030
cmp dword [esp + 0x38], 1
jne 0x1003cec5
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.10079c25
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 0x1003f8f0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x1003f923
push esi
call fcn.100429e0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x1003f91c
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 0x1003f9a9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x1003f992
mov eax, dword [esi + 8]
test eax, eax
je 0x1003f947
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 0x1003f98e
cmp eax, 2
je 0x1003f992
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1003f93a
cmp eax, 3
je 0x1003f96d
cmp eax, 1
jne 0x1003f93a
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 0x1003f93a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x1003f93a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.1003f9d0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x1003f9b8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.1003f9d0
add esp, 4
pop esi
ret

Function at 0x1004ada0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x1004ae06
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x1004ae06
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x1004ade7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x1004b190
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x1004b1c8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x1004b220
Capabilities:
Connect to http server

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10083690
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, ecx
call fcn.1004b400
mov ecx, ebx
call fcn.1004b190
test eax, eax
jne 0x1004b25d
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x14
mov eax, dword [ebx + 4]
push esi
lea esi, [ebx + 4]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x1004b2a3
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push 0
neg ecx
sbb ecx, ecx
and ecx, 0x8000000
push ecx
mov ecx, dword [esp + 0x3c]
push 1
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [ebx]
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebx + 0x10], eax
jmp 0x1004b3d5
push ebp
push edi
push esi
lea ecx, [esp + 0x1c]
call fcn.10075583
push 0x3a
mov ecx, esi
mov dword [esp + 0x2c], 0
mov ebp, 0x15
call fcn.100734d8
mov edi, eax
test edi, edi
jl 0x1004b320
lea ecx, [esp + 0x1c]
push edi
push ecx
mov ecx, esi
call fcn.10073460
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 1
call fcn.100758fb
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 0
call fcn.1007580e
mov edx, dword [esi]
mov ecx, esi
mov eax, dword [edx - 8]
sub eax, edi
dec eax
push eax
lea eax, [esp + 0x20]
push eax
call fcn.100733e4
mov eax, dword [eax]
push eax
call fcn.10064c18
add esp, 4
lea ecx, [esp + 0x1c]
mov ebp, eax
call fcn.1007580e
mov ecx, dword [0x100a6ee0]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
and edx, 0xffff
push edx
push eax
push ecx
lea edx, [esp + 0x20]
push str._s__s:_d
push edx
mov byte [esp + 0x3c], 2
call fcn.10073880
mov eax, dword [0x100a6ee0]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x24]
push ecx
push 0x100a1270
push edx
mov byte [esp + 0x48], 3
call fcn.10073880
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x30]
add esp, 0x20
mov edx, dword [esp + 0x14]
neg eax
sbb eax, eax
push 0
and eax, 0x8000000
push eax
mov eax, dword [esp + 0x20]
push 1
push ecx
mov ecx, dword [ebx]
push edx
push ebp
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
lea ecx, [esp + 0x10]
mov dword [ebx + 0x10], eax
mov byte [esp + 0x28], 2
call fcn.1007580e
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0
call fcn.1007580e
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.1007580e
pop edi
pop ebp
mov ecx, dword [ebx + 0x10]
xor eax, eax
test ecx, ecx
mov ecx, dword [esp + 0x18]
pop esi
setne al
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x14

Function at 0x1004b490
Capabilities:
Send file using ftp

Disassembly:
mov eax, dword [ecx + 0x10]
test eax, eax
jne 0x1004b49a
ret 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
neg ecx
sbb ecx, ecx
push 0
add ecx, 2
push ecx
mov ecx, dword [esp + 0xc]
push edx
push ecx
push eax
call dword [sym.imp.WININET.dll_FtpPutFileA]
ret 0xc
Function at 0x1004b910
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x1004b959
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x1004bdd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100837f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.1004b980
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.1004ba00
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.1004ba00
lea ecx, [esi + 0xc]
call fcn.10075799
lea ecx, [esi + 0x10]
call fcn.10075799
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.1004cf90
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.1004cf90
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.1004cf90
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.1007580e
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.1007580e
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x1004ffc0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x100c6d98]
xor edx, edx
cmp eax, edx
jne 0x1004ffe6
xor eax, eax
mov byte [eax + 0x100c6c98], al
inc eax
cmp eax, 0x100
jl 0x1004ffce
mov dword [0x100c6d98], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x100c6c98
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x10050077
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x1005004a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x10050018
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x100500f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x10050143
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x1005012a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10056ad0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10083bee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.100573f0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x1008a9b4
call fcn.1007554f
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x10056b63
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.1007554f
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x10056b5c
push 0
mov ecx, eax
call fcn.1004dc00
mov dword [esi + 0xc], eax
jmp 0x10056b65
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x10056b65
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x10077bb5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10077bed
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.10075c69
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.10075c41
jmp 0x10077bf9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x100792a7
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 0x100792e9
call fcn.1007ee3b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x100792e9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x100792e0
xor eax, eax
jmp 0x100792f1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.100792f7
pop edi
pop esi
pop ebx
ret 4

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x79951275
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x26ad3847
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x10001b10
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
test eax, eax
je 0x10001b4a
mov eax, dword [esi]
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x30]
mov dword [esi + 0x18], 0
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [esi + 0x2c]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
push edx
call edi
mov eax, dword [esi + 0x34]
push eax
call edi
pop edi
pop esi
ret
Function at 0x401030
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40104b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401082
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40107e
jmp 0x401070
cmp esi, eax
jae 0x401082
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401070
cmp esi, eax
jb 0x401089
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x406ed0
Capabilities:
Resume thread

Disassembly:
mov eax, 1
push esi
mov esi, ecx
mov byte [0x661ec0], al
mov byte [0x63f427], al
mov dword [0x661d24], eax
mov eax, dword [esi + 0x2e38]
cmp eax, 0xffffffff
je 0x406ef9
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 0x2e38]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x406f2d
push 0x258
push eax
call ebx
mov eax, dword [esi + 0x2e38]
push eax
call edi
mov dword [esi + 0x2e38], 0xffffffff
mov eax, dword [0x5eb354]
cmp eax, 0xffffffff
je 0x406f52
push 0x2710
push eax
call ebx
mov ecx, dword [0x5eb354]
push ecx
call edi
mov dword [0x5eb354], 0xffffffff
mov eax, dword [esi + 0x128]
cmp eax, 0xffffffff
je 0x406f6a
push eax
call edi
mov dword [esi + 0x128], 0xffffffff
push 0x661d0c
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [0x661eb4]
pop edi
pop ebx
test eax, eax
je 0x406f93
push eax
call fcn.0046dd9e
add esp, 4
mov dword [0x661eb4], 0
mov ecx, esi
pop esi
jmp fcn.0049b4c7

Function at 0x408210
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi + 0xd4], 0
je case.0x40824a.14
cmp dword [esi + 4], 0x100
jne case.0x40824a.14
mov eax, dword [esi + 8]
add eax, 0xfffffff3
cmp eax, 0x44
ja case.0x40824a.14
movzx eax, byte [eax + 0x4082dc]
jmp dword [eax*4 + 0x4082cc]
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns case.0x40824a.14
mov eax, dword [edi + 0xd4]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
xor esi, esi
sar ecx, 2
test ecx, ecx
je case.0x40824a.27
push ebx
mov edx, dword [eax]
mov ebx, dword [edx + esi*4]
mov eax, dword [ebx + 0x1dc]
cmp eax, dword [edi + 0xd0]
jne 0x408296
push 1
mov ecx, ebx
call fcn.00445550
mov ecx, ebx
call fcn.0047763e
mov eax, dword [edi + 0xd4]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
inc esi
sar ecx, 2
cmp esi, ecx
jb 0x408273
pop ebx
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
push esi
mov ecx, edi
call fcn.00476d8f
pop edi
pop esi
pop ebp
ret 4
Function at 0x408251
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi + 0xd4], 0
je case.0x40824a.14
cmp dword [esi + 4], 0x100
jne case.0x40824a.14
mov eax, dword [esi + 8]
add eax, 0xfffffff3
cmp eax, 0x44
ja case.0x40824a.14
movzx eax, byte [eax + 0x4082dc]
jmp dword [eax*4 + 0x4082cc]
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns case.0x40824a.14
mov eax, dword [edi + 0xd4]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
xor esi, esi
sar ecx, 2
test ecx, ecx
je case.0x40824a.27
push ebx
mov edx, dword [eax]
mov ebx, dword [edx + esi*4]
mov eax, dword [ebx + 0x1dc]
cmp eax, dword [edi + 0xd0]
jne 0x408296
push 1
mov ecx, ebx
call fcn.00445550
mov ecx, ebx
call fcn.0047763e
mov eax, dword [edi + 0xd4]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
inc esi
sar ecx, 2
cmp esi, ecx
jb 0x408273
pop ebx
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
push esi
mov ecx, edi
call fcn.00476d8f
pop edi
pop esi
pop ebp
ret 4
Function at 0x4185d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.0043bbc0
mov ecx, esi
call fcn.00415de0
mov ecx, esi
call fcn.00409f30
mov ecx, esi
call fcn.00417e10
mov ecx, esi
call fcn.0040c5e0
lea ecx, [esi + 0x1a18]
call fcn.00439920
mov dword [esi + 0x2e4c], eax
mov eax, dword [esi + 0x20]
mov dword [esi + 0x2e40], eax
lea eax, [ebp - 4]
push eax
push 4
lea ecx, [esi + 0x2e3c]
push ecx
push 0x407ce0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x2e38], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41a120
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi + 0xd4], 0
je 0x41a1be
cmp dword [esi + 4], 0x100
jne 0x41a1be
mov eax, dword [esi + 8]
cmp eax, 0xd
je 0x41a1b6
cmp eax, 0x1b
je 0x41a1ab
cmp eax, 0x51
jne 0x41a1be
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x41a1be
mov eax, dword [edi + 0xd4]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
xor esi, esi
sar ecx, 2
test ecx, ecx
je 0x41a1ab
push ebx
mov edx, dword [eax]
mov ebx, dword [edx + esi*4]
mov eax, dword [ebx + 0x1dc]
cmp eax, dword [edi + 0xd0]
jne 0x41a197
push 1
mov ecx, ebx
call fcn.00445550
mov ecx, ebx
call fcn.0047763e
mov eax, dword [edi + 0xd4]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
inc esi
sar ecx, 2
cmp esi, ecx
jb 0x41a174
pop ebx
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
push esi
mov ecx, edi
call fcn.00476d8f
pop edi
pop esi
pop ebp
ret 4

Function at 0x41c5c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.0043bbc0
mov ecx, esi
call fcn.0041baf0
mov ecx, dword [esi + 0x118]
lea eax, [ebp - 4]
push eax
push 0
push ecx
push 0x41ab70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [esi + 0x20]
push 0
push 0x190
push 1
push edx
mov dword [esi + 0x114], eax
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x421a30
Capabilities:
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586966
mov eax, dword fs:[0]
push eax
sub esp, 0x4d8
mov eax, dword [0x6606f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x4e4]
call fcn.0047fd60
push edi
lea eax, [ebp - 0x4c0]
push str._s.
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004217c0
add esp, 0xc
push ebx
lea ecx, [ebp - 0x4c0]
push ecx
lea ecx, [ebp - 0x4e4]
call fcn.0047fe04
cmp eax, ebx
je 0x421bf9
lea ecx, [ebp - 0x4e4]
call fcn.0047fb91
lea ecx, [ebp - 0x4e4]
mov dword [ebp - 0x4c8], eax
call fcn.0047fd25
test eax, eax
jne 0x421bed
lea edx, [ebp - 0x4c4]
push edx
lea ecx, [ebp - 0x4e4]
call fcn.00480097
mov esi, eax
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x12c
or eax, ecx
mov byte [ebp - 4], 1
jge 0x421aff
push 0x12c
mov ecx, esi
call fcn.00401370
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x394]
push 0x12c
push eax
call fcn.0056ec81
mov eax, dword [ebp - 0x4c4]
add eax, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421b3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x4e4]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [ebp - 0x4e4]
call eax
push 0x12b
push ebx
test eax, eax
je 0x421b94
lea ecx, [ebp - 0x267]
push ecx
mov byte [ebp - 0x268], bl
call fcn.0056c7b0
lea edx, [ebp - 0x394]
push edx
push edi
lea eax, [ebp - 0x268]
push str._s_s_
push eax
call fcn.004217c0
lea ecx, [ebp - 0x268]
push ecx
call fcn.00421a30
add esp, 0x20
jmp 0x421bed
lea edx, [ebp - 0x13b]
push edx
mov byte [ebp - 0x13c], bl
call fcn.0056c7b0
lea eax, [ebp - 0x394]
push eax
push edi
lea ecx, [ebp - 0x13c]
push str._s_s
push ecx
call fcn.004217c0
add esp, 0x1c
lea edx, [ebp - 0x13c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x4c8], ebx
jne 0x421aa1
lea ecx, [ebp - 0x4e4]
call fcn.0047faab
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4e4]
test eax, eax
jne 0x421c25
call fcn.0047fd8f
xor eax, eax
jmp 0x421c2f
call fcn.0047fd8f
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056c19b
mov esp, ebp
pop ebp
ret