joyce8/EMBER2024-capa huggingface dataset:
Function at 0x314350
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub esp, 0x14
push ebp
mov ebp, ecx
mov dword [esp + 0x10], ebp
push edi
cmp edx, 0x40
jb 0x3144ee
mov eax, 0x5a4d
cmp word [ebp], ax
jne 0x3144ee
mov edi, dword [ebp + 0x3c]
add edi, ebp
mov dword [esp + 0x18], edi
cmp dword [edi], 0x4550
jne 0x3144ee
mov eax, 0x10b
cmp word [edi + 0x18], ax
jne 0x3144ee
mov eax, dword [0x31db44]
test eax, eax
jne 0x3143bb
mov ecx, 0xa028f2a0
call fcn.00313ed0
mov edx, 0xdae4ae1
mov ecx, eax
call fcn.00313e30
mov dword [0x31db44], eax
push ebx
push 0x40
push 0x3000
push dword [edi + 0x50]
push 0
call eax
mov ebx, eax
test ebx, ebx
je 0x3144e5
movzx ecx, word [edi + 0x14]
push esi
lea esi, [edi + 0x18]
add esi, ecx
movzx ecx, word [edi + 6]
mov dword [esp + 0x18], esi
lea ecx, [ecx + ecx*4]
lea eax, [esi + ecx*8]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x54]
mov dword [esp + 0x10], eax
mov eax, dword [0x31dc6c]
test eax, eax
jne 0x31441b
mov ecx, 0xfd7834c6
call fcn.00313ed0
mov edx, 0x9c233dc
mov ecx, eax
call fcn.00313e30
mov dword [0x31dc6c], eax
push dword [esp + 0x10]
push ebp
push ebx
call eax
mov ecx, dword [esp + 0x20]
add esp, 0xc
cmp esi, ecx
jae 0x31449e
sub ecx, dword [esp + 0x18]
mov eax, 0xcccccccd
dec ecx
add esi, 0x10
mul ecx
mov ecx, edx
shr ecx, 5
inc ecx
mov edi, ecx
mov ebp, dword [esi]
cmp dword [esi - 8], ebp
mov eax, dword [esi + 4]
cmovb ebp, dword [esi - 8]
add eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esi - 4]
add eax, ebx
mov dword [esp + 0x14], eax
mov eax, dword [0x31dc6c]
test eax, eax
jne 0x314486
mov ecx, 0xfd7834c6
call fcn.00313ed0
mov edx, 0x9c233dc
mov ecx, eax
call fcn.00313e30
mov dword [0x31dc6c], eax
push ebp
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call eax
add esp, 0xc
add esi, 0x28
dec edi
jne 0x314445
mov edi, dword [esp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.00314620
mov edx, edi
mov ecx, ebx
call fcn.00314530
pop esi
test eax, eax
jne 0x3144e5
mov eax, dword [0x31dfc4]
test eax, eax
jne 0x3144d9
mov ecx, 0xa028f2a0
call fcn.00313ed0
mov edx, 0xce8d33fc
mov ecx, eax
call fcn.00313e30
mov dword [0x31dfc4], eax
push 0x8000
push 0
push ebx
call eax
xor ebx, ebx
mov eax, ebx
pop ebx
pop edi
pop ebp
add esp, 0x14
ret
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
Function at 0x404050
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x4a9368]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x22c], 0
push 0x20a
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.00466430
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea edx, [ebp - 0x210]
push edx
lea ecx, [ebp - 0x228]
call fcn.00405070
lea eax, [ebp - 0x228]
push eax
mov ecx, dword [ebp + 8]
call fcn.00409f40
mov ecx, dword [ebp - 0x22c]
or ecx, 1
mov dword [ebp - 0x22c], ecx
lea ecx, [ebp - 0x228]
call fcn.00401910
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046420f
mov esp, ebp
pop ebp
ret

Function at 0x4044b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x4044d0
jl 0x4044c7
cmp dword [ebp + 0xc], 0
ja 0x4044d0
xor eax, eax
xor edx, edx
jmp 0x404607
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x4044f2
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.00409aa0
jmp 0x404607
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
call fcn.00409960
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x404561
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00402360
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00409d80
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00408980
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
call fcn.00409990
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x4045f8
mov ecx, dword [ebp - 8]
call fcn.00405580
mov dword [ebp - 0x18], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x4045d1
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.0046dd34
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0xfff
je 0x4045cf
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x404607
jmp 0x40457d
cmp dword [ebp - 4], 0
jbe 0x4045f8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.0046dd34
add esp, 0x10
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a400
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4a9368]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
push 0
lea eax, [ebp - 0x120]
push eax
call fcn.00466430
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40a45b
mov dword [ebp - 0x120], 0x114
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
jb 0x40a468
mov al, 1
jmp 0x40a46a
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046420f
mov esp, ebp
pop ebp
ret

Function at 0x40c970
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487e6d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4a9368]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00402070
add esp, 4
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0040cfd0
add esp, 8
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.0040d050
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0040ceb0
mov dword [ebp - 0x20], 0x40d090
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
push 0
lea ecx, [ebp - 0x14]
call fcn.00408cc0
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push 0
push 0
call fcn.0046ec90
add esp, 0x18
mov edx, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x40ca0f
lea ecx, [ebp - 0x14]
call fcn.0040ce80
jmp 0x40ca20
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
push 6
call fcn.00463308
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040ceb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4129a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a9368]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x4ac960], ecx
inc eax
cmp eax, 0x100
jb 0x4129b5
cmp eax, 0x800
jae 0x412a83
nop dword [eax]
mov edx, dword [eax*4 + 0x4ac560]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x4ac960]
mov dword [eax*4 + 0x4ac960], edx
inc eax
cmp eax, 0x800
jb 0x412a60
lea ecx, [ebp - 0x24]
mov dword [0x4ac940], 0x414780
call fcn.00414960
test eax, eax
je 0x412b5f
mov ecx, dword [ebp - 0x14]
mov edx, ecx
shr edx, 8
mov eax, ecx
mov edi, edx
and eax, 0xf00
and edi, 0xff000
and edx, 0xf00
and ecx, 0xf0
or edi, eax
or edx, ecx
shr edi, 8
shr edx, 4
xor ecx, ecx
mov eax, 0x4a00c4
xor esi, esi
mov ebx, dword [ebp - 0x20]
cmp dword [eax - 8], ebx
jne 0x412aea
mov ebx, dword [ebp - 0x1c]
cmp dword [eax - 4], ebx
mov ebx, dword [ebp - 0x18]
jne 0x412aea
cmp dword [eax], ebx
je 0x412b07
add esi, 0xc
inc ecx
add eax, 0xc
cmp esi, 0x24
jb 0x412ad3
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046420f
mov esp, ebp
pop ebp
ret
sub ecx, 0
je 0x412b35
sub ecx, 1
je 0x412b24
sub ecx, 1
jne 0x412b5f
cmp edi, 6
jb 0x412b5f
jne 0x412b55
cmp edx, 0xf
jb 0x412b5f
jmp 0x412b55
cmp edi, 5
jb 0x412b5f
jne 0x412b55
cmp edx, 6
jb 0x412b5f
cmp edx, 0xa
jmp 0x412b53
cmp edi, 6
jb 0x412b5f
jne 0x412b55
cmp edx, 0x1c
je 0x412b5f
cmp edx, 0x26
je 0x412b5f
cmp edx, 0x27
je 0x412b5f
cmp edx, 0x35
je 0x412b5f
cmp edx, 0x36
je 0x412b5f
mov dword [0x4ac940], 0x414820
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046420f
mov esp, ebp
pop ebp
ret
Function at 0x417910
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x417932
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
add dword [ebp + 8], 5
push ebx
lea ebx, [edx - 4]
add ebx, ecx
mov dword [ebp - 8], ebx
nop
lea eax, [edi + ecx]
cmp eax, ebx
jae 0x417959
mov cl, byte [eax]
and cl, 0xfe
cmp cl, 0xe8
je 0x417956
inc eax
cmp eax, ebx
jb 0x417947
mov ecx, dword [ebp - 4]
mov edx, eax
sub edx, edi
mov edi, eax
sub edx, ecx
sub edi, ecx
cmp eax, ebx
jae 0x417a4f
cmp edx, 2
jbe 0x417a01
xor esi, esi
movzx ebx, byte [eax + 4]
lea ecx, [ebx + 1]
test cl, 0xfe
jne 0x417a38
movzx ecx, byte [eax + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [eax + 2]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [eax + 1]
shl ebx, 8
or ebx, ecx
mov ecx, dword [ebp + 8]
add ecx, edi
sub ebx, ecx
test esi, esi
je 0x4179d1
and esi, 6
mov edx, ebx
shl esi, 2
mov ecx, esi
shr edx, cl
inc edx
test dl, 0xfe
jne 0x4179cf
mov edx, 0x100
shl edx, cl
mov ecx, dword [ebp + 8]
dec edx
xor ebx, edx
add ecx, edi
sub ebx, ecx
xor esi, esi
mov ecx, ebx
mov byte [eax + 1], bl
shr ecx, 8
mov byte [eax + 2], cl
mov ecx, ebx
shr ebx, 0x18
and bl, 1
shr ecx, 0x10
neg bl
mov byte [eax + 3], cl
mov ecx, dword [ebp - 4]
mov byte [eax + 4], bl
mov eax, 5
mov ebx, dword [ebp - 8]
add edi, eax
jmp 0x417940
mov ecx, edx
shr esi, cl
test esi, esi
je 0x417976
cmp esi, 4
ja 0x417a2a
cmp esi, 3
je 0x417a2a
mov ecx, esi
shr ecx, 1
movzx ecx, byte [ecx + eax + 1]
inc ecx
test cl, 0xfe
jne 0x417976
mov ecx, dword [ebp - 4]
or esi, 8
shr esi, 1
inc edi
jmp 0x417940
mov ebx, dword [ebp - 8]
or esi, 8
mov ecx, dword [ebp - 4]
mov eax, 1
shr esi, 1
add edi, eax
jmp 0x417940
mov eax, dword [ebp + 0xc]
mov ecx, edx
shr esi, cl
xor ecx, ecx
cmp edx, 2
pop ebx
cmovbe ecx, esi
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41a100
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48844d
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x4a9368]
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 eax, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x1a0], ebx
call fcn.0041a350
mov esi, eax
cmp word [edi], bx
je 0x41a159
cmp word [edi + 2], 0x3a
jne 0x41a159
mov eax, edi
jmp 0x41a190
mov ecx, esi
call fcn.00421130
test al, al
jne 0x41a267
push edi
lea eax, [ebp - 0x19c]
mov ecx, esi
push eax
call fcn.00420990
mov ebx, 1
mov dword [ebp - 4], 0
mov ecx, eax
mov dword [ebp - 0x1a0], ebx
call fcn.00420980
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x118]
call fcn.00420740
mov dword [ebp - 4], 2
test bl, 1
je 0x41a1b5
lea ecx, [ebp - 0x19c]
call fcn.00420830
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x118]
call fcn.00420980
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41a255
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x41a255
push esi
mov dword [ebp - 0x1a4], 0
call fcn.0046482f
add esp, 4
mov dword [ebp - 0x1a0], eax
lea ecx, [ebp - 0x1a4]
push 0
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1a4], esi
jne 0x41a247
mov eax, dword [ebp - 0x1a8]
lea ecx, [ebp - 0x118]
mov dword [eax], esi
call fcn.00420830
mov eax, dword [ebp - 0x1a0]
jmp 0x41a31a
push dword [ebp - 0x1a0]
call fcn.00464838
add esp, 4
lea ecx, [ebp - 0x118]
mov dword [ebp - 4], 0xffffffff
call fcn.00420830
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x94]
call fcn.00420740
push 0x48b5c0
push 0x48b5c4
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 3
call fcn.00421360
lea eax, [ebp - 0x94]
mov ecx, 0x4ab25c
push eax
lea eax, [ebp - 0x1b4]
push eax
call fcn.00418010
mov esi, dword [ebp - 0x1ac]
cmp byte [esi + 0xd], 0
jne 0x41a301
lea ecx, [esi + 0x10]
call fcn.00420980
push eax
lea ecx, [ebp - 0x94]
call fcn.00420a20
test al, al
jne 0x41a301
cmp esi, dword [0x4ab25c]
je 0x41a301
mov edi, dword [esi + 0xa4]
push edi
call fcn.0046482f
add esi, 0x94
add esp, 4
mov ebx, eax
cmp dword [esi + 0x14], 0x10
jb 0x41a2f4
mov esi, dword [esi]
push edi
push esi
push ebx
call fcn.00465eb0
add esp, 0xc
jmp 0x41a305
xor ebx, ebx
xor edi, edi
mov eax, dword [ebp - 0x1a8]
lea ecx, [ebp - 0x94]
mov dword [eax], edi
call fcn.00420830
mov eax, ebx
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.0046420f
mov esp, ebp
pop ebp
ret
Function at 0x41a550
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x48b5b0
push dword [ebp + 8]
call fcn.0041a340
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41a5aa
push edi
push esi
call fcn.0041a340
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41a5a9
push esi
call fcn.0041a340
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x41a5a9
push 0x41fce0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call fcn.0040f900
add esp, 0xc
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push dword [ebp + 0xc]
call fcn.0041a5c0
add esp, 4
pop esi
pop ebp
ret

Function at 0x41aca0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
test ax, ax
mov ecx, 8
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x41acc5
or esi, 2
push 1
call edi
test ax, ax
jns 0x41acd1
or esi, 1
push 0x10
call edi
test ax, ax
jns 0x41acdd
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x41ace9
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x41d330
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
lea ecx, [edi + 0x354]
call fcn.0041fd10
mov ebx, dword [ebp + 8]
test eax, eax
jle 0x41d38b
nop
push esi
lea ecx, [edi + 0x354]
mov byte [ebp + 0xb], 0
call fcn.00420960
lea ecx, [ebp + 0xb]
push ecx
push dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, eax
push dword [ebp + 0xc]
push ebx
call dword [edx]
cmp byte [ebp + 0xb], 0
jne 0x41d4dc
lea ecx, [edi + 0x354]
inc esi
call fcn.0041fd10
cmp esi, eax
jl 0x41d350
sub ebx, 0x100
je 0x41d465
sub ebx, 4
je 0x41d401
sub ebx, 2
jne 0x41d45a
cmp dword [edi + 0xe0], ebx
je 0x41d45a
push dword [ebp + 0xc]
mov dword [ebp + 8], ebx
call fcn.0046ced0
mov ecx, dword [edi + 0xe0]
lea edx, [ebp + 8]
add esp, 4
mov word [ebp + 8], ax
mov eax, dword [ecx]
push 0x80000012
push edx
push 0x41fb00
call dword [eax + 0x114]
mov esi, eax
test esi, esi
je 0x41d45a
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x108]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x20]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [edi + 0xe4]
test eax, eax
je 0x41d45a
mov ecx, dword [edi + 0xf8]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov word [ebp - 0xc], ax
mov eax, dword [edi + 0xf4]
movlpd qword [ebp - 8], xmm0
mov dword [ebp - 0x20], 6
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
call fcn.0041aca0
mov word [ebp - 0xa], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0xe4]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x120]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x41d45a
mov ecx, dword [edi + 0xe4]
test ecx, ecx
je 0x41d4c3
mov eax, dword [ecx]
mov eax, dword [eax + 0xdc]
call eax
test al, al
je 0x41d4c3
mov ecx, dword [edi + 0xe4]
mov eax, dword [ecx]
mov eax, dword [eax + 0xec]
call eax
test al, al
je 0x41d4c3
mov ecx, dword [edi + 0xe4]
push str.RichEdit
mov eax, dword [ecx]
call dword [eax + 0x10]
push eax
call fcn.00465bce
add esp, 8
test eax, eax
je 0x41d4c3
mov ecx, dword [edi + 0xe4]
call fcn.0042eee0
test al, al
jne 0x41d45a
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, edi
setns al
movzx eax, al
push eax
call fcn.0041ec70
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41e6d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov edi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
cmp byte [ebp + 0xc], 0
mov esi, dword [ebp + 8]
je 0x41e70b
mov ecx, dword [edi + 0x84]
cmp eax, ecx
je 0x41e70b
cmp esi, dword [edi + 0xe4]
je 0x41e70b
cmp byte [edi + 0xdc], 0
jne 0x41e70b
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 0xe4]
cmp esi, eax
je 0x41e806
test eax, eax
je 0x41e77a
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0xe4]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x120]
push 1
push 0
push 0
push 0
push str.killfocus
push dword [edi + 0xe4]
mov ecx, edi
call fcn.0041e250
mov dword [edi + 0xe4], 0
test esi, esi
je 0x41e806
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
cmp eax, edi
jne 0x41e806
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xdc]
call eax
test al, al
je 0x41e806
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xec]
call eax
test al, al
je 0x41e806
xorps xmm0, xmm0
mov dword [edi + 0xe4], esi
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0xe4]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x120]
push 1
push 0
push 0
push 0
push str.setfocus
push dword [edi + 0xe4]
mov ecx, edi
call fcn.0041e250
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x41f610
Capabilities:
Log keystrokes via input method manager

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0xfffffffffffffff0
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x40000000
je 0x41f6c1
push dword [esi]
call dword [sym.imp.USER32.dll_GetParent]
mov ebx, eax
mov ecx, 0x4ab09c
mov dword [ebp - 4], ebx
call fcn.0041fd10
sub eax, 1
mov dword [ebp + 8], eax
js 0x41f6b8
push eax
mov ecx, 0x4ab09c
call fcn.00420960
cmp dword [ebp - 4], 0
mov edi, eax
je 0x41f6aa
mov ecx, edi
call fcn.0041a0e0
cmp dword [esi], eax
je 0x41f679
mov ecx, edi
call fcn.0041a0e0
cmp ebx, eax
jne 0x41f69d
push esi
mov ecx, edi
call fcn.0041f5b0
test al, al
jne 0x41f745
lea eax, [ebp - 8]
mov ecx, edi
push eax
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call fcn.0041d330
push ebx
call dword [sym.imp.USER32.dll_GetParent]
mov ebx, eax
test ebx, ebx
jne 0x41f663
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 4]
sub eax, 1
mov dword [ebp + 8], eax
jns 0x41f650
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x4ab09c
xor edi, edi
call fcn.0041fd10
test eax, eax
jle 0x41f6b8
mov ecx, 0x4ab09c
call fcn.0041fd10
push edi
mov ecx, 0x4ab09c
call fcn.00420960
mov ebx, eax
mov ecx, ebx
call fcn.0041a0e0
cmp dword [esi], eax
je 0x41f70b
mov ecx, 0x4ab09c
inc edi
call fcn.0041fd10
cmp edi, eax
jl 0x41f6d1
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov ecx, ebx
call fcn.0041f5b0
test al, al
jne 0x41f745
mov eax, dword [esi + 8]
cmp eax, 0xe5
jne 0x41f72b
push dword [esi]
call sub.IMM32.dll_ImmGetVirtualKey
mov dword [esi + 8], eax
lea ecx, [ebp - 8]
push ecx
push dword [esi + 0xc]
mov ecx, ebx
push eax
push dword [esi + 4]
call fcn.0041d330
test al, al
je 0x41f6b8
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4203e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x420425
cmp byte [ebp + 8], 0
je 0x420419
cmp byte [ebp + 0xc], 0
mov ecx, 1
mov eax, 4
cmovne eax, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
xor eax, eax
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8