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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x483050]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x417654
cmp word [esi], dx
jne 0x417654
or byte [edi + eax + 0x28], 4
jmp 0x417659
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4177ac
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41778c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41769b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4176d1
cmp eax, edx
jae 0x4176dd
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x417673
jmp 0x4177ac
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417788
cmp dword [ebp - 0x14], 0
je 0x417788
mov eax, dword [ebx*4 + 0x483050]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x417760
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x417729
mov word [esi], cx
jmp 0x41775c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x483050]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x483050]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x483050]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4177ac
pop ebx
cmp word [ebp - 4], bx
jne 0x417771
cmp esi, dword [ebp + 0xc]
jne 0x417771
mov word [esi], bx
jmp 0x4177a9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00418045
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4177ac
push 0xd
jmp 0x4177a5
mov ecx, dword [ebx*4 + 0x483050]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4177a3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4177ac
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41bad5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41bb72
push ebx
push esi
call fcn.0041ba9e
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041a708
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41bb1f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41bb71
push edi
push eax
call fcn.00418224
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41bb3f
call fcn.004150c6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41bb70
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041a708
add esp, 0x20
test eax, eax
jne 0x41bb5e
push edi
call fcn.004150c6
jmp 0x41bb66
push ebx
call fcn.004150c6
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4220e5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00422061
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42225d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42225d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42220c
jg 0x42213e
test eax, eax
je 0x422202
push 1
push 0x1000
call fcn.00415069
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x422164
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4221f9
push 0x8000
push ebx
call fcn.00411660
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x422190
jg 0x42218b
cmp ecx, 0x1000
jb 0x422190
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004168a7
add esp, 0x10
cmp eax, 0xffffffff
je 0x4221d5
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x42218b
jl 0x4221bc
test ecx, ecx
jne 0x42217d
push dword [ebp - 0xc]
push ebx
call fcn.00411660
push esi
call fcn.004150c6
add esp, 0xc
xor edi, edi
jmp 0x42226e
cmp byte [edi + 0x24], 0
je 0x4221ec
cmp dword [edi + 0x20], 5
jne 0x4221ec
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4221f7
mov edi, dword [edi + 0x18]
jmp 0x4221f9
xor edi, edi
push esi
call fcn.004150c6
pop ecx
jmp 0x42226e
test ecx, ecx
jg 0x4221ce
jl 0x42220c
test eax, eax
jae 0x4221ce
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418045
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42222f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4221ce
jmp 0x422266
push ebx
call fcn.0041bf70
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4221ce
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x42226e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42226b
mov edi, dword [edi + 0x18]
jmp 0x42226e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00418045
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4232e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42330d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42330d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x42e002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x407ef8
mov ecx, 0x2dad66a7
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0xeb4376a
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4af1e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4af211
call fcn.0047eb2f
mov dword [eax], esi
call fcn.0047eb1c
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00476701
add esp, 0x14
push 0x16
pop eax
jmp 0x4af266
test dword [ebp + 0xc], 0xfffffff9
jne 0x4af1ed
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4af23e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0047eb42
pop ecx
call fcn.0047eb1c
mov eax, dword [eax]
jmp 0x4af266
test al, 0x10
jne 0x4af264
test al, 1
je 0x4af264
test byte [ebp + 0xc], 2
je 0x4af264
call fcn.0047eb2f
mov dword [eax], 5
call fcn.0047eb1c
mov dword [eax], 0xd
jmp 0x4af235
xor eax, eax
pop esi
pop ebp
ret

Function at 0x7af014
Capabilities:
Encode data using xor

Disassembly:
jmp 0x7af01e
pushal
call 0x7af024
pop ebp
sub ebp, 0x10
sub ebp, 0x3af014
jmp 0x7af03a
mov eax, 0x3af014
add eax, ebp
add eax, 0x4c
mov ecx, 0x5e7
mov edx, 0xb169ab0c
xor byte [eax], dl
inc eax
dec ecx
jne 0x7af051
jmp 0x7af064
xchg ecx, eax
xchg dword [ebp + 0xc0c0c30], eax
invalid
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x242008], 0x8088405
inc edx
mov dword [ebx + 0x242008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d2ec
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d31d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d305
add dl, dl
jne 0x41d328
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d379
xor eax, eax
add dl, dl
jne 0x41d335
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d416
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d35a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d365
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d36f
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d314
mov eax, 1
add dl, dl
jne 0x41d387
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d392
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d37e
sub eax, ebx
mov ebx, 1
jne 0x41d3c5
mov ecx, 1
add dl, dl
jne 0x41d3ab
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3b6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3a2
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d314
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d3dc
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3e7
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3d3
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d314
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d437
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d314
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f504
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x2259f2
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f553
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f572
mov ecx, edx
add ecx, ebx
jmp 0x41f572
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f572
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f5e4
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f5cd
test esi, esi
jbe 0x41f5e4
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f5bf
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f5e4
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f59c
jmp 0x41f5e4
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f5e4
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2259f9
ret
Function at 0x420750
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x226d6b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x42078b
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4207a4
lea eax, [ebp - 0x10]
mov edx, dword [0x24473c]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x4207b7
lea eax, [ebp - 0x10]
mov edx, dword [0x24473c]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4207c3
adc edx, 0
mov edx, dword [edx*4 + 0x243538]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x42093d
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420930
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420930
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x4208ce
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x4208ce
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4208ce
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4208ce
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420930
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420930
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420955
inc ebx
cmp ebx, 0x19
jne 0x42077d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x226d72
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x401d80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401d97
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401dc8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401dc4
cmp esi, eax
jae 0x401dc8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x401db4
cmp esi, eax
jb 0x401dce
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x4055c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437330
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x445030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0xc
call fcn.0041c261
add esp, 4
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x40566d
lea edi, [esi + 8]
mov ecx, 0x448804
mov eax, dword [0x448804]
mov edx, dword [eax + 0xc]
call edx
add eax, 0x10
mov dword [edi], eax
mov ecx, dword [ebp + 0xc]
mov dword [esi], ecx
mov edx, dword [ebp + 0x10]
mov dword [esi + 4], edx
lea eax, [ebp + 0x14]
call fcn.00401790
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
jmp 0x405654
push 0
push 0
push esi
push 0x4051b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40568c
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4064e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, eax
mov eax, dword [esi + 4]
push edi
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4064ff
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov ecx, dword [esi + 0x24]
xor edi, edi
push edi
push edi
push 0x1304
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
test ebx, ebx
jle 0x406586
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setl al
cmp dword [ebp + 4], 0x100
jne 0x406586
cmp dword [ebp + 8], 9
jne 0x406586
test al, al
je 0x406586
cmp ebx, 1
jle 0x406578
mov edi, dword [esi + 0x50]
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x40655a
test edi, edi
jle 0x406555
dec edi
jmp 0x406568
lea edi, [ebx - 1]
jmp 0x406568
test edi, edi
jl 0x406566
dec ebx
cmp edi, ebx
jge 0x406566
inc edi
jmp 0x406568
xor edi, edi
push edi
mov eax, esi
call fcn.00406600
mov ecx, dword [esi + 0x50]
call fcn.00407fa0
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 4
test byte [esi + 0x7c], 0x40
je 0x4065af
cmp dword [ebp + 4], 0x100
jne 0x4065af
cmp dword [ebp + 8], 0x1b
jne 0x4065af
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov ecx, dword [esi + 0x50]
cmp ecx, 0xffffffff
je 0x4065cf
push ebp
push 0
push 0x37f
mov edx, esi
call fcn.00406810
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x406600
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x28
push ebx
push ebp
mov ebp, dword [esp + 0x34]
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0
push 0
mov ebx, eax
mov eax, dword [ebx + 4]
push 0xb
push eax
call esi
mov ecx, dword [ebx + 0x50]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
cmp ecx, 0xffffffff
je 0x406671
xor eax, eax
lea edx, [esp + 0x14]
push edx
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x24]
push 0x133c
push eax
mov dword [esp + 0x24], 8
call esi
mov ecx, dword [esp + 0x2c]
push 0
push ecx
call edi
mov edx, dword [ebx + 0x24]
push 0
push ebp
push 0x130c
push edx
mov dword [ebx + 0x50], ebp
call esi
mov ecx, dword [ebx + 0x50]
mov edx, dword [ebx + 0x24]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x14]
push eax
push ecx
push 0x133c
mov ebp, 8
push edx
mov dword [esp + 0x24], ebp
call esi
mov eax, dword [esp + 0x2c]
push 1
push eax
call edi
call fcn.00404c80
mov ecx, dword [ebx + 4]
push 0
push 1
push 0xb
push ecx
call esi
mov edx, dword [ebx + 4]
push 0x581
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_RedrawWindow]
mov edi, dword [ebx + 0x24]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, edi
je 0x40673d
mov ecx, dword [ebx + 0x50]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x14]
push eax
push ecx
push 0x133c
push edi
mov dword [esp + 0x24], ebp
call esi
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
lea edi, [ebx + 0xb8]
call fcn.00404af0
mov edi, ebx
call fcn.00407530
mov edi, dword [ebx + 0x60]
test edi, edi
je 0x406791
mov al, byte [ebx + 0x7c]
mov cl, al
shr cl, 3
and cl, 1
movzx edx, cl
mov cl, al
shr cl, 2
and cl, 1
push edx
movzx edx, cl
mov cl, al
shr cl, 5
push edx
and cl, 1
shr al, 4
movzx edx, cl
mov ecx, dword [ebx + 0x68]
and al, 1
movzx eax, al
push edx
push eax
push ecx
mov ecx, ebx
call fcn.004071a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x4067a0
Capabilities:
Get graphical window text

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi + 0x70]
push eax
call fcn.0041b400
add esp, 4
mov dword [esi + 0x70], 0
mov dword [esi + 0x6c], edi
test edi, edi
je 0x406809
mov ecx, edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
inc edi
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041b40b
add esp, 4
mov dword [esi + 0x70], eax
test eax, eax
je 0x406809
push edi
push eax
mov eax, dword [esi + 0x6c]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edi, [esi + 0xb8]
call fcn.00404af0
mov edi, esi
call fcn.00407530
pop edi
ret