joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48b043
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x581a60]
xor eax, esp
mov dword [esp + 0x34], eax
mov ecx, dword [esi + 0x20]
push ebx
push edi
lea eax, [esp + 0x2c]
xor edi, edi
push eax
push ecx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
call dword [0x536724]
fld qword [esi + 0x88]
mov eax, dword [esp + 0x34]
fmul qword [0x560e70]
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
lea ebx, [eax - 0x50]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
call fcn.0059d913
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
cmp dword [esi + 0x7c], edi
jg 0x48b10b
mov eax, dword [esi + 0x7c]
lea edx, [eax + eax*4]
add edx, edx
add edx, edx
mov dword [esp + 8], edx
fild dword [esp + 8]
fmul qword [esi + 0x88]
call fcn.0059d913
mov ecx, dword [esp + 0x3c]
pop edi
pop ebx
xor ecx, esp
call fcn.005975ee
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
test edi, edi
js 0x48b1b1
cmp edi, dword [esi + 0x7c]
jge 0x48b1b1
mov edx, dword [esi + 0x78]
mov ecx, dword [edx + edi*4]
mov edx, dword [esp + 0x10]
push 1
sub eax, edx
push eax
mov eax, dword [esp + 0x14]
sub ebx, eax
push ebx
push edx
mov dword [esp + 0x18], ecx
push eax
add ecx, 0x138
call fcn.0049fa55
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push 1
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x24]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.0049fa55
fld qword [esi + 0x88]
fmul qword [0x560e70]
call fcn.0059d913
mov ebx, dword [0x536728]
push eax
push 0
lea eax, [esp + 0x14]
push eax
call ebx
fld qword [esi + 0x88]
fmul qword [0x560e70]
call fcn.0059d913
push eax
push 0
lea ecx, [esp + 0x24]
push ecx
call ebx
inc edi
cmp edi, dword [esi + 0x7c]
jl 0x48b103
jmp 0x48b0d3
call fcn.004a3c7c
int3

Function at 0x4a0e46
Capabilities:
Encode data using xor

Disassembly:
arpl word [ebx - 0x78ff0c5f], bx
inc edi
aas
jmp 0x4a0e55
add byte [edi + 0x9eb3f47], al
xor byte [edx + ebx*8], al
cmp dword [ecx], ecx
dec edx
loope 0x4a0e42
mov edi, 0xffd5f1bc
int1
mov esp, 0xf1ffd5f1
in eax, 0x78
mov eax, dword [0x3278622]
cmp al, 0x59
in eax, dx
adc ebx, eax
and eax, dword [ecx + ebp*8 - 0x65871e22]
mov ah, byte [ebx + 0x39]
scasb al, byte es:[edi]
inc eax
sub edx, 0xc9ec4109
sti
invalid
Function at 0x4aae0f
Capabilities:
Encode data using xor

Disassembly:
lodsb al, byte [esi]
xor dword [ecx + 0x59], esi
in eax, dx
and dword [edi + 0x40], ebx
pop edx
mov byte [ecx - 0x344c6ae5], cl
dec esi
jbe 0x4aae2d
imul esi, dword [eax - 0x4e5637ad], 0x3ad966cb
push cs
cmc
jecxz 0x4aae4c
dec ecx
outsb dx, byte [esi]
pop ss
sub esp, dword [ebx + 0x3bcbc1bc]
adc byte [edx + 0x53a3685a], dh
fstp dword [edi - 6]
or ecx, dword [ecx - 0x7508d196]
inc ecx
adc esp, eax
mov byte [ebp - 0x2dc7dfd0], dl
xor byte [eax], ah
cmp dl, dl
sar byte [esi], 1
loop 0x4aaecd
xchg ecx, eax
jmp dword [esi]
mov dh, 0xb6
cmp dl, ah
pushfd
dec esi
lodsb al, byte [esi]
sbb al, 0x34
cmovs edi, dword [ebx + ecx + 0x55a8aa2a]
pop es
inc ebp
invalid
xor eax, 0xc860941e
mov edi, 0x527ca302
push ss
mov al, byte [0x529ec1a9]
xlatb
nop
popfd
inc edx
ficom word [edi + 0x20]
push edx
lds esi, [ebp - 0x48]
and byte [edx - 0x3b], dl
jne 0x4aaea0
sbb ebp, dword [ebp - 0x5b]
xchg ecx, eax
sub cl, byte [esi + eax*8]
stosb byte es:[edi], al
inc esi
sub dword cs:[eax + 0x758feb7a], esi
mov dh, 0x63
sub ebp, dword [edx + 0x1e707a8a]
or eax, 0xe7871797
sub eax, 0xb0db5361
rcr byte es:[ebx + 5], 1
mov ebx, 0xf23f1a49
xchg edi, eax
dec esi
imul edi, dword [esp + ebp*2 - 0xa067e21], 0xfffffff0
jne 0x4aaee3
mov dh, 0x73
and byte [esp + edi + 0x27], 0xb8
mov edi, 0x31df2c1e
inc eax
push eax
push ds
sub al, 0xdf
xor dword [eax + 0x50], eax
sar dword [edx], cl
dec esi
fld xword [esi]
enter 0x4fdb, 0x52
mov cl, 0x34
scasb al, byte es:[edi]
cdq
and ebp, edi
xchg ecx, eax
adc al, 0xb3
xchg esi, eax
fadd st(7), st(0)
pop ds
mov edi, 0x199f3b6e
sti
cli
jp 0x4aaf29
xchg byte [esp + edx*2 - 0xc37b3c], dh
retf

Function at 0x4ac2b3
Capabilities:
Encode data using xor

Disassembly:
pop ds
sbb al, 0xd6
outsb dx, byte [esi]
and eax, 0xc8232e82
pop esi
xchg esi, eax
in eax, dx
jnp 0x4ac293
salc
jg 0x4ac2f1
jmp 0x4e7261bb
popal
jg 0x4ac30b
js 0x4ac2db
mov ebp, 0x27de2c25
dec edi
jbe 0x4ac287
aas
invalid
push esp
adc dword [ebp - 9], eax
push ss
inc esi
invalid
nop
leave
outsd dx, dword [esi]
xchg edi, eax
dec ecx
salc
cmp dword [edx - 0x7ec314ec], edi
cmp al, 0x81
or eax, dword [edx - 0x13]
fimul dword [eax]
pop es
inc esp
adc dh, byte [esi]
sahf
inc edi
rol byte [edi], 6
push es
ror byte [ebx + 0x31], cl
lcall 0x1fef, 0xe6597328
inc eax
adc al, 0x74
push es
xchg edx, eax
xor dword [eax - 0x2d], edx
movsb byte es:[edi], byte [esi]
mov byte [0x822f3425], al
mov ah, 0xd1
inc esp
mov dword [eax + 0x7a], ebp
jne 0x4ac2f6
and eax, 0x24373d0
movsb byte es:[edi], byte [esi]
add al, 0xbb
lodsb al, byte [esi]
pushal
enter 0x4ad8, 0x17
sbb eax, 0xc622d8d4
loop 0x4ac34d
xlatb
or byte [ebx - 0x73edbde9], al
dec esp
mov cl, 0x90
and byte [0x6f2d8c13], ah
les edx, [edi + 0x413098c6]
adc esi, dword [edx + eax*8 - 0x55f4da0]
adc ecx, dword [ebp + ebp - 0x39683b91]
cwde
xor byte [ecx + 0x13], al
mov ah, 0xc2
pushal
mov dl, 0xa0
cli
or eax, 0x217aadf3
pop esp
jno 0x4ac2fa
stosb byte es:[edi], al
push edx
jp 0x4ac2f0
add byte [ecx + 0xcf47a99], ah
and al, 0x94
sal bl, cl
xchg edi, eax
ret
Function at 0x4ad403
Capabilities:
Encode data using xor

Disassembly:
adc ch, byte [eax]
mov dl, 0xa5
in al, 0xda
or al, 0x60
or al, cl
cmp eax, dword [esi + 0x2b]
and bh, dh
adc byte [edi + 0x29], al
invalid
mov cl, 1
mov esi, 0xb3890d55
xor bh, byte [ecx + 0x68]
popal
mov dword [ebx + 0x61687932], esi
push ecx
xor eax, 0xa23dc4ce
jae 0x4ad3de
in al, 0x31
xchg ecx, eax
jno 0x4ad38a
fist word [edi - 0x69]
movsb byte es:[edi], byte gs:[esi]
mov al, 0x74
sbb dword [ebx], edi
and eax, 0xacc9b3d9
lodsb al, byte [esi]
lodsb al, byte [esi]
dec ebp
xlatb
mov ecx, 0x4a09846b
outsd dx, dword [esi]
sub byte [ecx], cl
push eax
sbb eax, 0xec8a9a9b
push ecx
lock or dword [0xb02e19c2], esp
mov byte [0xaae06218], al
popal
das
xor dword [esi - 0x6f], 0xffffffcc
rcl ebp, 0x73
loopne 0x4ad421
add al, byte [ecx]
sub dword [edx], edx
mov cl, 0x8d
std
mov eax, dword [0xa3096ae6]
fdiv dword [edx + 0x4bc331b8]
jno 0x4ad443
xchg ebx, esi
xlatb
movsd dword es:[edi], dword [esi]
or al, 0xf1
sbb eax, 0xb2964c9a
mov dl, 0xc6
imul ecx, dword [ebp - 0x4d], 0x59
dec ebx
jecxz 0x4ad3e3
dec ecx
pop ds
mov eax, dword [0xe1c5851]
ljmp 0xb98b

Function at 0x4b2067
Capabilities:
Encode data using xor

Disassembly:
mov ah, 0xb5
xor edx, ebx
fisub dword [0x217a370a]
fisub dword [0x217a370a]
inc ebp
pushfd
mov al, byte [0x90120895]
jle 0x4b2064
wait
add al, 0x8d
pushal
dec eax
lodsb al, byte [esi]
mov dword [0xe715c25], eax
pop esp
fsubr st(4)
stosd dword es:[edi], eax
push 0xa2f8e836
out 0xaa, eax
fmul dword [ecx - 0x62036ae1]
pop ds
and byte [edi + 0x1cf3e712], ah
lds ebp, [edi + 0x3d]
sbb dword [esi + 0x137b1938], eax
push ebp
in al, 0xa7
cmc
dec ebp
cmpsb byte [esi], byte es:[edi]
mov ecx, 0xb1dc7861
mov edx, 0x9ce696c
div dword [ecx + 0x58]
jnp 0x4b2114
test ebx, 0xb7d465f4
ror esp, 1
xchg ebp, eax
cmp esp, dword [ebx - 0x38]
cdq
jg 0x4b2136
pushal
mov dl, 0xe1
fild qword [eax + 0x3e6a4972]
test byte [esi - 0x2ba6a673], 0x3e
invalid
xor esp, dword [esi + 0x30]
push esi
or dl, byte [0x62f07680]
sbb bl, byte [ebp - 0x6d]
fsub dword [eax]
mov byte [0x60dd0dd9], al
adc eax, 0x377a5a85
push edi
inc edi
xchg edx, eax
xor al, byte [esi + esi*4 + 0x14]
adc ch, 0x18
cmp edx, edi
sbb byte [esi], ah
cmp edx, edi
pushfd
pop esp
mov eax, 0x265c987c
retf
Function at 0x4ba08d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c1418
cmp edx, dword [eax]
je 0x4ba0af
add eax, 8
inc ecx
cmp eax, 0x4c14a8
jl 0x4ba0a0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c1418]
jne 0x4ba1dd
mov eax, dword [0x4c5db0]
cmp eax, 1
je 0x4ba1b7
test eax, eax
jne 0x4ba0e0
cmp dword [0x4c1340], 1
je 0x4ba1b7
cmp edx, 0xfc
je 0x4ba1dd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ba117
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004baa70
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004baf00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ba15a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004baf00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bf734
push edi
call fcn.004bcdd0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004baa70
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004baa80
lea eax, [ebp - 0xa0]
push 0x4bf714
push eax
call fcn.004baa80
push dword [esi + 0x4c141c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004baa80
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bcd44
add esp, 0x2c
pop edi
jmp 0x4ba1dd
lea eax, [ebp + 8]
lea esi, [esi + 0x4c141c]
push 0
push eax
push dword [esi]
call fcn.004baf00
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4079d7
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
mov edx, 0x19
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4079de
call fcn.0041c5f0
mov edx, dword [esp + 0x70]
lea ecx, [esp]
call fcn.00408000
lea eax, [esp + 4]
lea eax, [esp + 0x48]
lea ebp, [esp + 4]
mov dword [ebp], 0x44
mov dword [ebp + 0x2c], 1
mov ebx, dword [esp + 0x74]
and ebx, 2
and ebx, ebx
je 0x407a2d
lea ebp, [esp + 4]
mov word [ebp + 0x30], 0
jmp 0x407a37
lea ebp, [esp + 4]
mov word [ebp + 0x30], 1
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x20]
push 0
call sub.KERNEL32.dll_CreateProcessW
mov dword [esp + 0x58], eax
cmp dword [esp + 0x58], 0
je 0x407ac0
mov ebx, dword [esp + 0x74]
and ebx, 1
and ebx, ebx
je 0x407ab7
lea ebp, [esp + 0x48]
push dword [ebp + 4]
pop eax
mov dword [esp + 0x5c], eax
push 1
call fcn.0040e1e6
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x60]
call sub.KERNEL32.dll_GetExitCodeThread
mov ebx, dword [esp + 0x60]
cmp ebx, 0x103
je 0x407ab5
jmp 0x407ab7
jmp 0x407a8f
lea ebp, [esp + 0x48]
mov eax, dword [ebp]
jmp 0x407ac2
xor eax, eax
push dword [esp]
call fcn.0041c650
add esp, 0x64
pop ebx
pop ebp
ret 8

Function at 0x408cf1
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x408d89
push edi
push 0x3d16668
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x3d15ab0]
test edi, edi
je 0x408d5d
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x408d56
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x3d15ab0
call fcn.0041c35b
pop ecx
pop ecx
jmp 0x408d58
mov edi, dword [edi]
test edi, edi
jne 0x408d2d
pop ebx
mov eax, dword [0x3d12720]
mov esi, eax
inc eax
push 0x10
push 0x3d15ab0
mov dword [0x3d12720], eax
call fcn.0041c39b
pop ecx
pop ecx
push 0x3d16668
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8
Function at 0x409084
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x4090d9
push dword [esp + 0x10]
push 0x409003
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x3d15ab8]
test esi, esi
je 0x409132
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x4090d1
cmp byte [esi + 0x10], 0
je 0x4090d1
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x4090ad
jmp 0x409132
mov esi, dword [0x3d15ab8]
test esi, esi
je 0x409132
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x40912b
cmp byte [esi + 0x11], 0
je 0x409107
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x40911e
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push ebp
push 0x3d15ab8
call fcn.0041c35b
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x4090e6
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x40ac20
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x3d15ae4], 0
jne 0x40ac2e
call fcn.0040abc0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x3d15ae8]
call esi
test eax, eax
jne 0x40ac51
call fcn.0040abc0
push dword [0x3d15ae8]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x40ac60
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x40acc0
mov ebx, 0x10
test edi, edi
jns 0x40acc9
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x40ac92
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x40e081
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x114
push eax
mov esi, 0xc8
xor ebx, ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40e1d9
mov eax, dword [esp + 0x20]
dec eax
je 0x40e1bc
dec eax
jne 0x40e1d9
lea eax, [esp + 0x124]
xor ebp, ebp
push eax
call fcn.0040e03a
pop ecx
test eax, eax
je 0x40e0ed
mov ebx, dword [esp + 0x128]
mov edi, dword [esp + 0x12c]
cmp byte [esp + 0x23e], 1
jmp 0x40e11a
lea eax, [esp + 0x240]
mov dword [esp + 0x240], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40e11f
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp byte [esp + 0x35a], 1
jne 0x40e11f
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x40e1b8
dec ebx
je 0x40e1b4
dec ebx
je 0x40e193
dec ebx
je 0x40e14d
sub ebx, 4
jne 0x40e1d9
test edi, edi
jne 0x40e1d9
push 0x6e
jmp 0x40e1d8
sub edi, 0
je 0x40e185
dec edi
je 0x40e177
dec edi
je 0x40e169
dec edi
jne 0x40e1d9
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x40e1d9
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x40e1d9
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x40e1d9
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x40e1d9
sub edi, 0
je 0x40e1b0
dec edi
je 0x40e1ac
dec edi
jne 0x40e1d9
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x40e1d9
push 0x3c
jmp 0x40e1d8
push 0x32
jmp 0x40e1d8
push 0x14
jmp 0x40e1d8
push 5
jmp 0x40e1d8
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40e1d6
cmp eax, 0xa
je 0x40e1d2
cmp eax, 0x5a
jne 0x40e1d9
push 0x28
jmp 0x40e1d8
push 0x1e
jmp 0x40e1d8
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret
Function at 0x40f2ef
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov ebx, eax
test ebx, ebx
je 0x40f369
push 9
call esi
test al, al
jns 0x40f369
push 0x11
call esi
test al, al
js 0x40f369
push 0x10
call esi
test al, al
js 0x40f369
push 0x12
call esi
test al, al
js 0x40f369
push 5
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.DLL_GetClassNameW]
push 4
lea eax, [ebp - 0x10]
push 0x45943c
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x40f369
push eax
push eax
push 0x44e
push ebx
call dword [sym.imp.USER32.DLL_SendMessageW]
test eax, 0x800
jne 0x40f369
xor eax, eax
jmp 0x40f3ea
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40f391
push 0x11
call esi
test al, al
js 0x40f389
push 0x10
call esi
test al, al
js 0x40f389
push 0x12
call esi
test al, al
jns 0x40f391
push 1
push edi
call fcn.0040f3f2
mov esi, dword [sym.imp.USER32.DLL_GetPropW]
test ebx, ebx
je 0x40f3a7
push 0x459448
push ebx
call esi
test eax, eax
jne 0x40f3e7
push 0x4592b0
push edi
call esi
mov esi, eax
test esi, esi
je 0x40f3e7
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x40f3e7
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x40f3e7
lea eax, [esi - 1]
push eax
push dword [0x3d166ec]
call fcn.0041bc2c
test eax, eax
je 0x40f3e7
mov eax, dword [eax + 8]
jmp 0x40f3e9
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40f6ee
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x40f836
xor ecx, ecx
cmp word [eax], cx
je 0x40f836
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x40f747
cmp eax, 3
jne 0x40f781
cmp word [esp + 0xa], 0x3a
jne 0x40f781
cmp eax, 2
jne 0x40f765
lea eax, [esp + 8]
push 0x459468
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x40f836
push 0xfffffffffffffffe
pop edi
jmp 0x40f836
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x40f796
cmp ax, bx
jne 0x40f7a0
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x40f789
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x40f7df
test byte [esp + 0x21c], 0x10
je 0x40f7c6
push 0xfffffffffffffffe
pop edi
jmp 0x40f7d6
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40f834
cmp word [esp + 0x10], bp
jne 0x40f7ed
cmp word [esp + 0x12], bp
je 0x40f80c
cmp word [esp + 0x10], bx
jne 0x40f7fb
cmp word [esp + 0x12], bx
je 0x40f80c
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x40f834
cmp word [esp + 0x12], ax
jne 0x40f834
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x40f821
test al, 0x10
je 0x40f834
jmp 0x40f831
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x40f834
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4
Function at 0x40f937
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x40fa0c
push ebx
push edi
push pe_nt_image_headers32
push 3
push edi
push 3
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40fa0b
push esi
mov esi, dword [ebp + 0x10]
push esi
call fcn.004122aa
push esi
mov word [ebp - 0x20], ax
call fcn.004122d2
push esi
mov word [ebp - 0x1e], ax
call fcn.004122f5
push esi
mov word [ebp - 0x1c], ax
call fcn.00412317
push esi
mov word [ebp - 0x1a], ax
call fcn.00412339
push esi
mov word [ebp - 0x18], ax
call fcn.0041235b
push esi
mov word [ebp - 0x16], ax
call fcn.0041237d
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp dword [ebp + 0xc], 1
mov eax, edi
mov ecx, edi
pop esi
jne 0x40f9ea
lea eax, [ebp - 8]
jmp 0x40f9f8
cmp dword [ebp + 0xc], 2
jne 0x40f9f5
lea ecx, [ebp - 8]
jmp 0x40f9f8
lea edi, [ebp - 8]
push ecx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40fae4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x40fb5c
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x40fb3d
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x40fb3a
cmp ecx, 0x5c
je 0x40fb3a
cmp ecx, 0x2f
jne 0x40fb47
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x40fb27
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x40fb5e
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x4101e0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x41021c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x4106c0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x410725
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x41071d
push dword [esp + 0x10]
push dword [0x3d16704]
call fcn.0041bc2c
test eax, eax
je 0x410713
cmp dword [eax + 4], 0
je 0x410702
push edi
push esi
push eax
call fcn.00410c30
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc

Function at 0x410780
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x3d16704]
call fcn.0041bc2c
mov esi, eax
test esi, esi
je 0x4107ff
cmp dword [esi + 4], 0
je 0x4107d0
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.00410d40
test eax, eax
je 0x4107c4
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41080a
cmp dword [esp + 8], 0
je 0x41080a
push 1
push 0
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4