joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a6ef0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x19]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x56b054
lea esi, [ebp - 0x28]
mov dword [esp], esi
call fcn.00509af0
mov dword [esp + 0xc], str.InitOsipHdr
mov dword [esp + 8], esi
mov dword [esp + 4], 0x400
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.0042ddbc
mov eax, dword [ebp - 0x28]
lea esi, [eax - 0xc]
cmp esi, 0x55a154
jne 0x4a7024
lea eax, [ebp - 0x1a]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Init_OSIP_header_...
lea esi, [ebp - 0x2c]
mov dword [esp], esi
call fcn.00509af0
mov dword [esp + 8], esi
mov dword [esp + 4], 0x10
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.0042ddbc
mov eax, dword [ebp - 0x2c]
lea esi, [eax - 0xc]
mov edx, 0x55a154
cmp edx, esi
jne 0x4a70aa
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_rewind
mov dword [ebx + 0x14], 0x200
mov dword [esp], 0x200
call fcn.00538984
mov dword [ebx + 0x30], eax
test eax, eax
je 0x4a7080
mov edx, dword [ebx + 0x18]
mov dword [esp + 0xc], edx
mov edx, dword [ebx + 0x14]
mov dword [esp + 8], edx
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov edi, eax
lea eax, [ebp - 0x1b]
mov dword [esp + 8], eax
mov dword [esp + 4], str._After_fread_osip_hdr
lea esi, [ebp - 0x30]
mov dword [esp], esi
call fcn.00509af0
mov dword [esp + 8], esi
mov dword [esp + 4], 0x10
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.0042ddbc
mov eax, dword [ebp - 0x30]
lea esi, [eax - 0xc]
mov edx, 0x55a154
cmp edx, esi
jne 0x4a70d8
cmp edi, dword [ebx + 0x14]
jne 0x4a7056
mov al, 1
add esp, 0x6c
pop ebx
pop esi
pop edi
leave
ret
cmp dword [0x554500], 0
jne 0x4a7106
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x4a6f46
lea eax, [ebp - 0x1f]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005084ec
jmp 0x4a6f46
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 6
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
mov dword [esp], 4
call fcn.00538b64
mov dword [eax], 5
mov dword [esp + 8], 0
mov dword [esp + 4], 0x57285c
mov dword [esp], eax
call fcn.00539374
cmp dword [0x554500], 0
jne 0x4a711e
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x4a6f89
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005084ec
jmp 0x4a6f89
cmp dword [0x554500], 0
jne 0x4a7133
mov eax, dword [esi + 8]
lea edx, [eax - 1]
mov dword [esi + 8], edx
test eax, eax
jg 0x4a7015
lea eax, [ebp - 0x21]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005084ec
jmp 0x4a7015
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x4a703a
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x4a70bc
mov dword [esp + 4], 0xffffffff
sub eax, 4
mov dword [esp], eax
call fcn.004dd8dc
jmp 0x4a70ea
Function at 0x4a83b4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov dword [ebx], eax
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.004a7a64
mov dl, al
test al, al
jne 0x4a83f0
mov al, dl
add esp, 0x2c
pop ebx
pop esi
pop edi
leave
ret
mov eax, edi
and eax, 0x20
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 4], eax
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
mov dword [esp], ebx
call fcn.004a68f8
mov dl, al
test al, al
jne 0x4a8448
mov dword [esp], ebx
mov byte [ebp - 0x20], dl
call fcn.004a5c70
test al, al
mov dl, byte [ebp - 0x20]
je 0x4a83e3
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.004a7a64
mov dl, al
test al, al
je 0x4a83e3
mov dword [ebp + 8], ebx
add esp, 0x2c
pop ebx
pop esi
pop edi
leave
jmp fcn.004a7cc4
mov dword [esp], ebx
call fcn.004a6ef0
mov dl, al
jmp 0x4a8412

Function at 0x4c1c20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
mov dword [esp], ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 4], esi
mov esi, dword [esp + 0x10]
test ebx, ebx
mov dword [esp + 8], edi
sete al
cmp esi, ecx
sete dl
or eax, edx
xor edi, edi
test al, 1
jne 0x4c1c80
test esi, esi
setne al
test ecx, ecx
setne dl
xor eax, edx
test al, 1
jne 0x4c1c91
test ebx, ebx
je 0x4c1c74
movzx eax, word [esi]
movzx edx, word [ecx]
cmp ax, dx
jne 0x4c1cad
add esi, 2
add ecx, 2
dec ebx
jne 0x4c1c60
xor edi, edi
lea esi, [esi]
lea edi, [edi]
mov eax, edi
mov ebx, dword [esp]
mov esi, dword [esp + 4]
mov edi, dword [esp + 8]
add esp, 0xc
ret
cmp ecx, 1
mov ebx, dword [esp]
sbb eax, eax
and eax, 2
mov esi, dword [esp + 4]
lea edi, [eax - 1]
mov eax, edi
mov edi, dword [esp + 8]
add esp, 0xc
ret
movzx edi, ax
movzx eax, dx
sub edi, eax
jmp 0x4c1c80
Function at 0x50d510
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov eax, dword [eax + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll__read
mov ebx, eax
cmp eax, 0xffffffff
je 0x50d548
mov eax, ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
leave
ret
call sub.msvcrt.dll__errno
cmp dword [eax], 4
je 0x50d51f
mov eax, ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
leave
ret
Function at 0x404090
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.00466840
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.00405290
lea eax, [ebp - 0x228]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040a160
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.0046461f
mov esp, ebp
pop ebp
ret

Function at 0x4044f0
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 0x404510
jl 0x404507
cmp dword [ebp + 0xc], 0
ja 0x404510
xor eax, eax
xor edx, edx
jmp 0x404647
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x404532
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.00409cc0
jmp 0x404647
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.00409b80
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x4045a1
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.004023a0
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.00409fa0
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00408ba0
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.00409bb0
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x404638
mov ecx, dword [ebp - 8]
call fcn.004057a0
mov dword [ebp - 0x18], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x404611
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.0046e144
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 0x40460f
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 0x404647
jmp 0x4045bd
cmp dword [ebp - 4], 0
jbe 0x404638
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.0046e144
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 0x40a620
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.00466840
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 0x40a67b
mov dword [ebp - 0x120], 0x114
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
jb 0x40a688
mov al, 1
jmp 0x40a68a
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046461f
mov esp, ebp
pop ebp
ret

Function at 0x40cb90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4882bd
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.004020b0
add esp, 4
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0040d1f0
add esp, 8
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.0040d270
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0040d0d0
mov dword [ebp - 0x20], 0x40d2b0
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
push 0
lea ecx, [ebp - 0x14]
call fcn.00408ee0
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push 0
push 0
call fcn.0046f0a0
add esp, 0x18
mov edx, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x40cc2f
lea ecx, [ebp - 0x14]
call fcn.0040d0a0
jmp 0x40cc40
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
push 6
call fcn.00463718
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040d0d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x412e20
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 + 0x4ac9a0], ecx
inc eax
cmp eax, 0x100
jb 0x412e35
cmp eax, 0x800
jae 0x412f03
nop dword [eax]
mov edx, dword [eax*4 + 0x4ac5a0]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x4ac9a0]
mov dword [eax*4 + 0x4ac9a0], edx
inc eax
cmp eax, 0x800
jb 0x412ee0
lea ecx, [ebp - 0x24]
mov dword [0x4ac980], 0x414c00
call fcn.00414de0
test eax, eax
je 0x412fdf
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, 0x4a00b4
xor esi, esi
mov ebx, dword [ebp - 0x20]
cmp dword [eax - 8], ebx
jne 0x412f6a
mov ebx, dword [ebp - 0x1c]
cmp dword [eax - 4], ebx
mov ebx, dword [ebp - 0x18]
jne 0x412f6a
cmp dword [eax], ebx
je 0x412f87
add esi, 0xc
inc ecx
add eax, 0xc
cmp esi, 0x24
jb 0x412f53
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046461f
mov esp, ebp
pop ebp
ret
sub ecx, 0
je 0x412fb5
sub ecx, 1
je 0x412fa4
sub ecx, 1
jne 0x412fdf
cmp edi, 6
jb 0x412fdf
jne 0x412fd5
cmp edx, 0xf
jb 0x412fdf
jmp 0x412fd5
cmp edi, 5
jb 0x412fdf
jne 0x412fd5
cmp edx, 6
jb 0x412fdf
cmp edx, 0xa
jmp 0x412fd3
cmp edi, 6
jb 0x412fdf
jne 0x412fd5
cmp edx, 0x1c
je 0x412fdf
cmp edx, 0x26
je 0x412fdf
cmp edx, 0x27
je 0x412fdf
cmp edx, 0x35
je 0x412fdf
cmp edx, 0x36
je 0x412fdf
mov dword [0x4ac980], 0x414ca0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046461f
mov esp, ebp
pop ebp
ret
Function at 0x417d90
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 0x417db2
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 0x417dd9
mov cl, byte [eax]
and cl, 0xfe
cmp cl, 0xe8
je 0x417dd6
inc eax
cmp eax, ebx
jb 0x417dc7
mov ecx, dword [ebp - 4]
mov edx, eax
sub edx, edi
mov edi, eax
sub edx, ecx
sub edi, ecx
cmp eax, ebx
jae 0x417ecf
cmp edx, 2
jbe 0x417e81
xor esi, esi
movzx ebx, byte [eax + 4]
lea ecx, [ebx + 1]
test cl, 0xfe
jne 0x417eb8
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 0x417e51
and esi, 6
mov edx, ebx
shl esi, 2
mov ecx, esi
shr edx, cl
inc edx
test dl, 0xfe
jne 0x417e4f
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 0x417dc0
mov ecx, edx
shr esi, cl
test esi, esi
je 0x417df6
cmp esi, 4
ja 0x417eaa
cmp esi, 3
je 0x417eaa
mov ecx, esi
shr ecx, 1
movzx ecx, byte [ecx + eax + 1]
inc ecx
test cl, 0xfe
jne 0x417df6
mov ecx, dword [ebp - 4]
or esi, 8
shr esi, 1
inc edi
jmp 0x417dc0
mov ebx, dword [ebp - 8]
or esi, 8
mov ecx, dword [ebp - 4]
mov eax, 1
shr esi, 1
add edi, eax
jmp 0x417dc0
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 0x41a580
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48890d
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.0041a7d0
mov esi, eax
cmp word [edi], bx
je 0x41a5d9
cmp word [edi + 2], 0x3a
jne 0x41a5d9
mov eax, edi
jmp 0x41a610
mov ecx, esi
call fcn.00421560
test al, al
jne 0x41a6e7
push edi
lea eax, [ebp - 0x19c]
mov ecx, esi
push eax
call fcn.00420dc0
mov ebx, 1
mov dword [ebp - 4], 0
mov ecx, eax
mov dword [ebp - 0x1a0], ebx
call fcn.00420db0
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x118]
call fcn.00420b70
mov dword [ebp - 4], 2
test bl, 1
je 0x41a635
lea ecx, [ebp - 0x19c]
call fcn.00420c60
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x118]
call fcn.00420db0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41a6d5
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x41a6d5
push esi
mov dword [ebp - 0x1a4], 0
call fcn.00464c3f
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 0x41a6c7
mov eax, dword [ebp - 0x1a8]
lea ecx, [ebp - 0x118]
mov dword [eax], esi
call fcn.00420c60
mov eax, dword [ebp - 0x1a0]
jmp 0x41a79a
push dword [ebp - 0x1a0]
call fcn.00464c48
add esp, 4
lea ecx, [ebp - 0x118]
mov dword [ebp - 4], 0xffffffff
call fcn.00420c60
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x94]
call fcn.00420b70
push 0x48b5b0
push 0x48b5b4
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 3
call fcn.00421790
lea eax, [ebp - 0x94]
mov ecx, 0x4ab29c
push eax
lea eax, [ebp - 0x1b4]
push eax
call fcn.00418490
mov esi, dword [ebp - 0x1ac]
cmp byte [esi + 0xd], 0
jne 0x41a781
lea ecx, [esi + 0x10]
call fcn.00420db0
push eax
lea ecx, [ebp - 0x94]
call fcn.00420e50
test al, al
jne 0x41a781
cmp esi, dword [0x4ab29c]
je 0x41a781
mov edi, dword [esi + 0xa4]
push edi
call fcn.00464c3f
add esi, 0x94
add esp, 4
mov ebx, eax
cmp dword [esi + 0x14], 0x10
jb 0x41a774
mov esi, dword [esi]
push edi
push esi
push ebx
call fcn.004662c0
add esp, 0xc
jmp 0x41a785
xor ebx, ebx
xor edi, edi
mov eax, dword [ebp - 0x1a8]
lea ecx, [ebp - 0x94]
mov dword [eax], edi
call fcn.00420c60
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.0046461f
mov esp, ebp
pop ebp
ret
Function at 0x41b0d0
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 0x41b0f5
or esi, 2
push 1
call edi
test ax, ax
jns 0x41b101
or esi, 1
push 0x10
call edi
test ax, ax
jns 0x41b10d
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x41b119
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x41d760
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.00420140
mov ebx, dword [ebp + 8]
test eax, eax
jle 0x41d7bb
nop
push esi
lea ecx, [edi + 0x354]
mov byte [ebp + 0xb], 0
call fcn.00420d90
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 0x41d90c
lea ecx, [edi + 0x354]
inc esi
call fcn.00420140
cmp esi, eax
jl 0x41d780
sub ebx, 0x100
je 0x41d895
sub ebx, 4
je 0x41d831
sub ebx, 2
jne 0x41d88a
cmp dword [edi + 0xe0], ebx
je 0x41d88a
push dword [ebp + 0xc]
mov dword [ebp + 8], ebx
call fcn.0046d2e0
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 0x41ff30
call dword [eax + 0x114]
mov esi, eax
test esi, esi
je 0x41d88a
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 0x41d88a
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.0041b0d0
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 0x41d88a
mov ecx, dword [edi + 0xe4]
test ecx, ecx
je 0x41d8f3
mov eax, dword [ecx]
mov eax, dword [eax + 0xdc]
call eax
test al, al
je 0x41d8f3
mov ecx, dword [edi + 0xe4]
mov eax, dword [ecx]
mov eax, dword [eax + 0xec]
call eax
test al, al
je 0x41d8f3
mov ecx, dword [edi + 0xe4]
push str.RichEdit
mov eax, dword [ecx]
call dword [eax + 0x10]
push eax
call fcn.00465fde
add esp, 8
test eax, eax
je 0x41d8f3
mov ecx, dword [edi + 0xe4]
call fcn.0042f300
test al, al
jne 0x41d88a
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, edi
setns al
movzx eax, al
push eax
call fcn.0041f0a0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41eb00
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 0x41eb3b
mov ecx, dword [edi + 0x84]
cmp eax, ecx
je 0x41eb3b
cmp esi, dword [edi + 0xe4]
je 0x41eb3b
cmp byte [edi + 0xdc], 0
jne 0x41eb3b
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 0xe4]
cmp esi, eax
je 0x41ec36
test eax, eax
je 0x41ebaa
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.0041e680
mov dword [edi + 0xe4], 0
test esi, esi
je 0x41ec36
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
cmp eax, edi
jne 0x41ec36
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xdc]
call eax
test al, al
je 0x41ec36
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xec]
call eax
test al, al
je 0x41ec36
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.0041e680
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8