joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451fbc
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x451fea
mov eax, ebx
call fcn.00452a70
cmp dword [ebx + 0x40], 0
je 0x451fe3
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x45205b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x45204d
cmp dword [ebx + 8], 0
je 0x45200c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x45201e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45204d
cmp dword [ebx + 8], 0
je 0x451fff
cmp eax, 3
je 0x452031
dec eax
jne 0x451fff
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x451fff
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x451fff
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x452079
cmp dword [ebx + 0x14], 0xcc
je 0x452079
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00452084
pop ebx
ret

Function at 0x4629c4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x90]
cmp eax, 5
jb 0x462a09
cmp dword [ebp - 0x8c], 0
jbe 0x462a00
mov byte [0x4706c0], 8
jmp 0x462a7d
mov byte [0x4706c0], 7
jmp 0x462a7d
cmp eax, 3
jbe 0x462a7d
cmp dword [ebp - 0x84], 2
jne 0x462a20
mov byte [0x4706c0], 1
jmp 0x462a7d
and dword [ebp - 0x88], 0xffff
mov eax, dword [ebp - 0x8c]
cmp eax, 0x5a
jb 0x462a3e
mov byte [0x4706c0], 6
jmp 0x462a7d
cmp eax, 0xa
jb 0x462a61
cmp dword [ebp - 0x88], 0x8ae
jb 0x462a58
mov byte [0x4706c0], 5
jmp 0x462a7d
mov byte [0x4706c0], 4
jmp 0x462a7d
cmp dword [ebp - 0x88], 0x3e8
jb 0x462a76
mov byte [0x4706c0], 3
jmp 0x462a7d
mov byte [0x4706c0], 2
mov esp, ebp
pop ebp
ret
Function at 0x41b58b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b22d

Function at 0x41b596
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b3bc

Function at 0x41b990
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00409dd0
mov eax, dword [0x47ed00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041852c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41b9d2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41bb2e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00425e70
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x480ae8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041cb60
mov ecx, dword [esi*4 + 0x480ae8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41bb27
cmp eax, dword [edi + ecx + 0x24]
jne 0x41bb27
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bb27
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041cb60
add esp, 0x14
test edx, edx
jl 0x41bb27
jg 0x41ba9d
test eax, eax
jb 0x41bb27
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41bb27
jl 0x41bab7
cmp dword [ebp - 0x1008], eax
ja 0x41bb27
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41bad5
test ebx, ebx
je 0x41bb0e
cmp ecx, edi
jae 0x41bb0e
mov al, byte [ecx]
cmp al, 0xd
jne 0x41baef
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41bafb
cmp byte [ecx + 1], 0xa
jne 0x41bafb
inc ecx
jmp 0x41bafb
movzx eax, al
movsx eax, byte [eax + 0x47efd8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41bad5
cmp edx, ebx
jne 0x41bad5
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41bb2c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004092b4
leave
ret
Function at 0x41bffe
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x480ae8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c03e
cmp byte [ebx], 0xa
jne 0x41c03e
or byte [eax + edi + 0x28], 4
jmp 0x41c043
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41c141
mov al, byte [edx]
cmp al, 0x1a
je 0x41c123
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41c072
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41c097
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41c0a1
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41c054
jmp 0x41c141
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c11e
cmp dword [ebp - 0xc], 0
je 0x41c11e
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x480ae8]
test byte [eax + edi + 0x28], 0x48
je 0x41c0f8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41c0e3
mov byte [esi], dl
jmp 0x41c0f4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x480ae8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41c141
cmp byte [ebp - 1], 0xa
jne 0x41c107
cmp esi, ebx
jne 0x41c107
mov byte [esi], 0xa
jmp 0x41c140
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041cb7e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41c141
mov byte [esi], 0xd
jmp 0x41c140
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x480ae8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c13d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c141
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41c14a
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 + 0x480ae8]
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 0x41c18d
cmp word [esi], dx
jne 0x41c18d
or byte [edi + eax + 0x28], 4
jmp 0x41c192
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 0x41c2e5
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 0x41c2c5
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41c1d4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41c20a
cmp eax, edx
jae 0x41c216
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 0x41c1ac
jmp 0x41c2e5
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 0x41c2c1
cmp dword [ebp - 0x14], 0
je 0x41c2c1
mov eax, dword [ebx*4 + 0x480ae8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41c299
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41c262
mov word [esi], cx
jmp 0x41c295
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x480ae8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x480ae8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x480ae8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41c2e5
pop ebx
cmp word [ebp - 4], bx
jne 0x41c2aa
cmp esi, dword [ebp + 0xc]
jne 0x41c2aa
mov word [esi], bx
jmp 0x41c2e2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041cb7e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41c2e5
push 0xd
jmp 0x41c2de
mov ecx, dword [ebx*4 + 0x480ae8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c2dc
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c2e5
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 0x41e0dc
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 0x41e179
push ebx
push esi
call fcn.0041e0a5
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.0041cd2a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41e126
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e178
push edi
push eax
call fcn.00417686
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41e146
call fcn.0041745c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e177
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041cd2a
add esp, 0x20
test eax, eax
jne 0x41e165
push edi
call fcn.0041745c
jmp 0x41e16d
push ebx
call fcn.0041745c
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 0x425c70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x425c9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x425c9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x427000
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
push str.Success_created.
push 0x480178
mov ebx, ecx
call fcn.00401200
push eax
call fcn.004021f0
push 8
call fcn.00409271
mov esi, eax
add esp, 0x10
test esi, esi
je 0x427062
push 4
call fcn.00409271
add esp, 4
test eax, eax
je 0x427040
mov dword [eax], 0x427bc0
jmp 0x427042
xor eax, eax
lea edi, [esi + 4]
push edi
push 0
push eax
push 0x4021d0
push 0
push 0
call fcn.00410396
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x42709d
jmp 0x427064
xor esi, esi
cmp dword [esi + 4], 0
je 0x4270aa
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [esi + 4], eax
je 0x4270b1
push 0
push dword [esi + 4]
push dword [esi]
call fcn.00405ba5
add esp, 0xc
test eax, eax
jne 0x4270b8
push 8
push esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.004092a1
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
ret
push 6
mov dword [edi], 0
call fcn.00405d5b
push 1
call fcn.00405d5b
push 5
call fcn.00405d5b
push 2
call fcn.00405d5b
int3

Function at 0x4275d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x24c
mov eax, dword [0x47ed00]
Function at 0xac6058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00ac61a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xac607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xac606a
add dl, dl
jne 0xac6089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xac60dc
xor eax, eax
add dl, dl
jne 0xac6096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xac617d
add dl, dl
jne 0xac60a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xac60b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xac60bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xac60c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xac60d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xac6075
mov eax, 1
add dl, dl
jne 0xac60ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xac60f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xac60e1
sub eax, ebx
mov ebx, 1
jne 0xac6128
mov ecx, 1
add dl, dl
jne 0xac610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xac6119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xac6105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xac6075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xac613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xac614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xac6136
cmp eax, 0x7d00
jae 0xac616d
cmp eax, 0x500
jb 0xac6168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xac6075
cmp eax, 0x7f
ja 0xac6170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xac6075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xac619e
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 0xac6075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401133
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_CreatePopupMenu]
xor edi, edi
mov ebx, eax
push edi
push str.fenrirMainWindow
call dword [sym.imp.USER32.dll_FindWindowA]
cmp dword [0x40df14], edi
mov dword [ebp - 4], eax
je 0x401222
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
xor eax, eax
cmp dword [0x40df14], edi
jle 0x401197
mov ecx, dword [0x40df10]
lea esi, [eax + 1]
push dword [ecx + eax*4]
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_AppendMenuA]
mov eax, esi
cmp eax, dword [0x40df14]
jl 0x401178
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push edi
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0x100
push ebx
call dword [sym.imp.USER32.dll_TrackPopupMenu]
cmp eax, edi
je 0x401222
mov ecx, dword [0x40df10]
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push dword [ecx + eax*4 - 4]
lea eax, [ebp - 0x214]
push eax
call esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call esi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [ebp - 0x41c]
push 1
push eax
lea eax, [ebp - 0x214]
push edi
push eax
push 0x40dd00
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea eax, [ebp - 0x214]
push eax
call fcn.00401014
pop ecx
push ebx
call dword [sym.imp.USER32.dll_DestroyMenu]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401227
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x40df14]
push esi
xor esi, esi
push edi
cmp eax, esi
mov edi, eax
je 0x4012e2
push ebx
push esi
push 0x8000080
push 2
push esi
push 1
push 0x40000000
push 0x40dd08
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov dword [ebp - 4], eax
lea eax, [edi - 1]
mov edi, dword [sym.imp.KERNEL32.DLL_WriteFile]
cmp eax, esi
mov dword [ebp - 8], eax
jle 0x4012b7
mov eax, dword [0x40df10]
push dword [eax + esi*4]
lea eax, [ebp - 0x214]
push str._s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0xc]
push 0
push eax
lea eax, [ebp - 0x214]
push eax
call ebx
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 4]
call edi
inc esi
cmp esi, dword [ebp - 8]
jl 0x401278
lea eax, [ebp - 0xc]
push 0
push eax
mov eax, dword [0x40df10]
shl esi, 2
push dword [esi + eax]
call ebx
push eax
mov eax, dword [0x40df10]
push dword [esi + eax]
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ebx
pop edi
pop esi
leave
ret
Function at 0x4012e6
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x8000000
push 4
push ebx
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
push ebx
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
inc esi
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
push ebx
push ebx
push ebx
mov edi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea eax, [ebp - 4]
push ebx
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov byte [eax + edi], bl
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401352
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 4
push edi
push 3
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
lea ecx, [ebp - 4]
push edi
push ecx
push esi
push eax
push ebx
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4015f4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, dword [ebp + 8]
mov ebx, eax
test esi, esi
je 0x401671
push dword [esi]
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
cmp dword [esi + 0xc], 0
je 0x40164a
lea eax, [ebp - 0x400]
push 0x40d010
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp + 0xc]
push 0
push eax
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
lea eax, [ebp - 0x400]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov esi, dword [esi + 0xc]
jmp 0x40161f
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0xc]
pop esi
pop ebx
leave
ret
Function at 0x40585f
Capabilities:
Enumerate files on windows
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
push ebx
push esi
xor eax, eax
push edi
push eax
mov dword [ebp - 4], eax
push dword [0x47d4e8]
mov dword [ebp - 8], eax
push 0xa
push dword [0x47eee0]
call dword [sym.imp.USER32.dll_SetTimer]
push 0x47da04
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
cmp eax, 3
jne 0x4058f5
and byte [ebp - 0x454], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x453]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x454]
push 0x208
push eax
push dword [0x47d9dc]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x40d870
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
test eax, eax
jne 0x4058f5
mov eax, dword [0x47eed4]
push 0x40d86c
push eax
mov dword [ebp - 4], 1
call ebx
mov esi, 0x40d0cc
push esi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
je 0x405920
push 0x40dd00
push esi
push dword [ebp + 8]
mov dword [ebp - 8], 1
call fcn.00409d20
add esp, 0xc
lea eax, [ebp - 0x24c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x405a4b
lea eax, [ebp - 0x220]
push 0x40d86c
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
test eax, eax
je 0x40596e
mov eax, dword [ebp - 0x24c]
and eax, 0x10
cmp al, 0x10
jne 0x40596e
lea eax, [ebp - 0x220]
push eax
call edi
cmp dword [ebp - 8], 0
je 0x405981
mov eax, dword [ebp - 0x24c]
and eax, 0x10
cmp al, 0x10
jne 0x40599d
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x220]
imul eax, eax, 0x210
add eax, dword [0x47eed4]
inc dword [ebp - 4]
push ecx
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.DLL_FindNextFileA]
lea eax, [ebp - 0x24c]
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x405a20
cmp dword [ebp - 4], 1
jne 0x4059cf
lea eax, [ebp - 0x220]
push 0x40dab4
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
test eax, eax
je 0x405a14
mov eax, dword [ebp - 0x24c]
and eax, 0x10
cmp al, 0x10
jne 0x4059e5
lea eax, [ebp - 0x220]
push eax
call edi
cmp dword [ebp - 8], 0
je 0x4059f8
mov eax, dword [ebp - 0x24c]
and eax, 0x10
cmp al, 0x10
jne 0x405a14
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x220]
imul eax, eax, 0x210
add eax, dword [0x47eed4]
inc dword [ebp - 4]
push ecx
push eax
call ebx
lea eax, [ebp - 0x24c]
push eax
push dword [ebp + 8]
jmp 0x4059ad
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindClose]
push 0x40d86c
push dword [0x47eed4]
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
test eax, eax
jne 0x405a4b
push 0x47da04
push dword [0x47eed4]
call ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406408
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x40db14]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
xor edi, edi
mov byte [ebp - 4], 0x41
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
cmp eax, 1
je 0x40643f
lea ecx, [ebp - 4]
mov eax, esi
push ecx
push eax
inc edi
add esi, 6
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
inc byte [ebp - 4]
cmp byte [ebp - 4], 0x5a
jle 0x40641f
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x40644e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 0x8000080
push 2
push 0
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret

Function at 0x406739
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
xor ebx, ebx
push 1
cmp dword [0x47d9cc], ebx
pop edi
jbe 0x40677e
test esi, esi
je 0x40677e
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x406770
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
cmp eax, 3
jle 0x406770
mov eax, dword [esi]
inc ebx
mov byte [eax], 0x3b
mov esi, dword [esi + 0xc]
mov eax, edi
inc edi
cmp eax, dword [0x47d9cc]
jb 0x40674d
pop edi
mov eax, ebx
pop esi
pop ebx
ret