joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417a01
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 + 0x51d220]
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 0x417a44
cmp word [esi], dx
jne 0x417a44
or byte [edi + eax + 0x28], 4
jmp 0x417a49
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 0x417b9c
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 0x417b7c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x417a8b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x417ac1
cmp eax, edx
jae 0x417acd
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 0x417a63
jmp 0x417b9c
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 0x417b78
cmp dword [ebp - 0x14], 0
je 0x417b78
mov eax, dword [ebx*4 + 0x51d220]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x417b50
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x417b19
mov word [esi], cx
jmp 0x417b4c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x51d220]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x51d220]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x51d220]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x417b9c
pop ebx
cmp word [ebp - 4], bx
jne 0x417b61
cmp esi, dword [ebp + 0xc]
jne 0x417b61
mov word [esi], bx
jmp 0x417b99
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00418435
add esp, 0x10
cmp word [ebp - 4], bx
je 0x417b9c
push 0xd
jmp 0x417b95
mov ecx, dword [ebx*4 + 0x51d220]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417b93
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x417b9c
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 0x406fa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
adc dword [eax + 0x24], 0xffffffeb
push esi
xchg esi, eax
jne 0x406fb7
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [ebp - 0xc], esi
jne 0x406fba
mov esi, 0x40f431
hlt
mov cl, byte [edx]
sub esi, dword [eax]
sub eax, 0xefb9f0
add byte [ecx], cl
cmp dword [ebx], ecx
invalid

Function at 0x40abf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sti
in al, dx
or byte [ebx + 0x56530c55], cl
push edi
lea edi, [edx]
test edi, edi
mov dword [ebp - 0x36], edi
jne 0x40ac13
sahf
sbb esi, ecx
rcr byte [ebx - 0x75], 0xe5
ret 0x10
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
je 0x40ac05
mov esi, dword [ebp + 8]
xor ecx, ecx
fiadd dword [ebp + 0x2c6c76c]
sub edx, 0x43000080
mov dword [ebp + 0x34], esi
jge 0x40ac47
dec edi
mov dword [edx], edi
mov esi, dword [eax]
dec esi
mov dword [eax + 0x51045e9], esi
or byte [eax - 0x77], al
adc cl, ch
or bh, byte [edx - 0x3e750000]
mov eax, ecx
and eax, 0x200
cmp eax, 0xdc00
je 0x40ad75
add byte [0xa700d800], bh
cmp eax, 0xa700d800
jne 0x40aca6
push es
inc dword [edx]
jb 0x419367
add word [esi], 0xd08b
and edx, 0xfc00
cmp edx, 0xdc00
jne 0x40ad75
and ecx, 0x46fd03ef
and eax, 0x3d5
shl ecx, 0xa
or eax, ecx
out dx, al
invalid
mov ecx, esi
cdq
ja 0x40ac58
mov edi, edx
mov ebp, dword [eax]
mov edx, edi
stc
and eax, dword [eax]
or eax, 0x4261e8ed
add byte [eax - 0x75], dl
enter 0x1be, 0
salc
add byte [ebx], cl
invalid
add byte [edi - 0x2f], bl
mov eax, 0xaf891178
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop esi
mov eax, 0x84
jecxz 0x40ad66
in eax, 0x5d
mov word [eax], ss
add byte [eax - 0x6f6f6f70], dl
nop
nop
nop
nop
nop
nop
ja 0x40ad1d
push ebp
mov ebp, esp
stc
inc ebp
or byte [ebx + 0x107402e8], al
call dword [0x9c40c12c]
adc eax, dword [eax]
aas
pop ss
add byte [ecx - 0x3ca23f4c], bh
jo 0x40adf2
adc al, 8
dec ebp
adc byte [edi + 0x51500c55], ah
push edx
call 0x415fd0
xor eax, 0xc
pop ebp
ret
or byte [edi - 0x41], dl
add al, 0
add byte [eax], al
mov al, byte [esi]
test eax, 0xa788c63c
adc byte [esi + 0x1a], dh
into
inc ebp
arpl word [ebx + 0x64], di
and eax, 0xf9ff
cdq
test dword [ebx + 0x33], 0x10550330
mov byte [ecx], al
inc ecx
jmp 0x40ae21
mov eax, dword [ebp + 0x10]
mov ebx, 0xa
and eax, 0xff
cdq
adc cl, byte [edx]
add al, 0x30
mov byte [ecx], al
inc ecx
mov ah, byte [edx]
dec ebp
mov byte [0xc64101de], al
push cs
dec esi
dec edi
jne 0x40adf9
mov eax, dword [ebp + 0xc]
pop edi
adc esi, eax
popal
inc dword [eax]
pop ebx
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x3b060dea
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0xc18281a
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401c3b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
mov ebx, 0x104
push edi
mov esi, ecx
push ebx
call fcn.0040c47a
mov edi, eax
pop ecx
lea eax, [ebp - 8]
mov dword [ebp - 4], edi
push eax
push 0x11
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jge 0x401c74
xor eax, eax
jmp 0x401d0a
mov eax, dword [esi + 4]
push 0x400
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x12c]
push eax
push 0x7d
push dword [0x41ec20]
mov dword [ebp - 0x20], edi
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x12c]
xor edi, edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
cmp eax, edi
je 0x401cfe
push dword [ebp - 4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x401cfe
lea edi, [esi + 0x430]
push ebx
push 0
push edi
call fcn.0040bd10
push dword [ebp - 4]
push edi
call fcn.0040bd70
add esp, 0x14
push 0x3ec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push dword [ebp - 4]
call fcn.0040c391
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x402645
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x104
cmp dword [esp + 0x108], 0
push ebx
push esi
push edi
mov esi, ecx
je 0x4026cc
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ee
push dword [esi + 4]
call edi
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextA]
lea ecx, [esi + 0x20]
push ecx
push eax
call ebx
push 0x3ed
push dword [esi + 4]
call edi
lea ecx, [esi + 0x124]
push ecx
push eax
call ebx
push 0x3ec
push dword [esi + 4]
call edi
lea ecx, [esi + 0x430]
push ecx
push eax
call ebx
push 0x3f2
push dword [esi + 4]
call edi
lea ecx, [esi + 0x534]
push ecx
push eax
call ebx
push dword [esi + 0x638]
push 0x3f1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_CheckDlgButton]
jmp 0x402799
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push ebp
push 0x3ec
push dword [esi + 4]
call edi
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [esp + 0x10]
push 0x400
push ecx
push eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [esp + 0x10]
push 0x104
push eax
lea eax, [esi + 0x430]
push eax
call ebp
push 0x3f2
push dword [esi + 4]
call edi
lea ecx, [esp + 0x10]
push 0x400
push ecx
push eax
call ebx
lea eax, [esp + 0x10]
push 0x104
push eax
lea eax, [esi + 0x534]
push eax
call ebp
push 0x3ee
push dword [esi + 4]
call edi
lea ecx, [esp + 0x10]
push 0x400
push ecx
push eax
call ebx
lea eax, [esp + 0x10]
push 0x104
push eax
lea eax, [esi + 0x20]
push eax
call ebp
push 0x3ed
push dword [esi + 4]
call edi
lea ecx, [esp + 0x10]
push 0x400
push ecx
push eax
call ebx
lea eax, [esp + 0x10]
push 0x104
push eax
lea eax, [esi + 0x124]
push eax
call ebp
push 0x3f1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
mov dword [esi + 0x638], eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x104
ret 4
Function at 0x403589
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, 0x104
mov esi, ecx
push edi
call fcn.0040c47a
mov ebx, eax
pop ecx
lea eax, [ebp - 4]
push eax
push 0x11
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jge 0x4035bc
xor eax, eax
jmp 0x40363e
mov eax, dword [esi + 4]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x18], 0x41a358
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
test eax, eax
je 0x403634
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x403634
mov eax, dword [esi + 0x1c]
push edi
mov edi, 0x430
push 0
add eax, edi
push eax
call fcn.0040bd10
mov eax, dword [esi + 0x1c]
push ebx
add eax, edi
push eax
call fcn.0040bd70
add esp, 0x14
push 0x3ec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esi + 0x1c]
add ecx, edi
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push ebx
call fcn.0040c391
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40364d
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x104
cmp dword [esp + 0x108], 0
push ebx
push esi
push edi
mov esi, ecx
je 0x4036f8
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3eb
push dword [esi + 4]
call edi
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextA]
lea ecx, [esi + 0x20]
push ecx
push eax
call ebx
push 0x3ee
push dword [esi + 4]
call edi
mov ecx, dword [esi + 0x1c]
add ecx, 0x20
push ecx
push eax
call ebx
push 0x3ed
push dword [esi + 4]
call edi
mov ecx, dword [esi + 0x1c]
add ecx, 0x124
push ecx
push eax
call ebx
push 0x3ec
push dword [esi + 4]
call edi
mov ecx, dword [esi + 0x1c]
add ecx, 0x430
push ecx
push eax
call ebx
push 0x3f2
push dword [esi + 4]
call edi
mov ecx, dword [esi + 0x1c]
add ecx, 0x534
push ecx
push eax
call ebx
mov eax, dword [esi + 0x1c]
push dword [eax + 0x638]
push 0x3f1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_CheckDlgButton]
jmp 0x4037f8
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push ebp
push 0x3eb
push dword [esi + 4]
call edi
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [esp + 0x10]
push 0x400
push ecx
push eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [esp + 0x10]
push 0x104
push eax
lea eax, [esi + 0x20]
push eax
call ebp
push 0x3ec
push dword [esi + 4]
call edi
lea ecx, [esp + 0x10]
push 0x400
push ecx
push eax
call ebx
lea eax, [esp + 0x10]
push 0x104
push eax
mov eax, dword [esi + 0x1c]
add eax, 0x430
push eax
call ebp
push 0x3f2
push dword [esi + 4]
call edi
lea ecx, [esp + 0x10]
push 0x400
push ecx
push eax
call ebx
lea eax, [esp + 0x10]
push 0x104
push eax
mov eax, dword [esi + 0x1c]
add eax, 0x534
push eax
call ebp
push 0x3ee
push dword [esi + 4]
call edi
lea ecx, [esp + 0x10]
push 0x400
push ecx
push eax
call ebx
lea eax, [esp + 0x10]
push 0x104
push eax
mov eax, dword [esi + 0x1c]
add eax, 0x20
push eax
call ebp
push 0x3ed
push dword [esi + 4]
call edi
lea ecx, [esp + 0x10]
push 0x400
push ecx
push eax
call ebx
lea eax, [esp + 0x10]
push 0x104
push eax
mov eax, dword [esi + 0x1c]
add eax, 0x124
push eax
call ebp
push 0x3f1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
mov ecx, dword [esi + 0x1c]
pop ebp
mov dword [ecx + 0x638], eax
pop edi
pop esi
pop ebx
add esp, 0x104
ret 4
Function at 0x403804
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x7f02
mov esi, ecx
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3eb
push dword [esi + 4]
call edi
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextA]
lea ebp, [esi + 0x20]
push 0x104
push ebp
push eax
call ebx
push 0x3ec
push dword [esi + 4]
call edi
mov ecx, dword [esi + 0x1c]
push 0x104
add ecx, 0x430
push ecx
push eax
call ebx
cmp byte [ebp], 0
je 0x4038e9
mov ecx, esi
call fcn.00402c0f
test eax, eax
jne 0x403888
push 1
push dword [esi + 4]
call edi
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x403919
mov ecx, dword [esi + 0x1c]
call fcn.00402322
push 1
mov ebp, eax
push dword [esi + 4]
call edi
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push ebp
push eax
call ebx
test ebp, ebp
jne 0x4038c9
push 0x10
push 0x41a24c
push 0x41a3b4
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
push dword [esi + 4]
call edi
push ebp
push eax
call ebx
jmp 0x4038f9
push 0x30
push 0x41a3a4
push 0x41a37c
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
push dword [esi + 4]
call edi
push 1
jmp 0x4038c4
push 1
push dword [esi + 4]
call edi
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
mov ecx, esi
call fcn.0040364d
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x404404
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [str.oldptch]
push ebx
mov dword [ebp - 0xc], eax
mov eax, dword [0x41a460]
xor ebx, ebx
push esi
cmp dword [ebp + 8], ebx
push edi
mov esi, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
jne 0x40449a
lea eax, [ebp - 4]
push ebx
push eax
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x14]
push 8
push eax
mov eax, dword [esi]
push dword [eax + 0x20c]
call edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040c840
pop ecx
test eax, eax
pop ecx
je 0x40445b
xor eax, eax
jmp 0x40449d
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [esi + 8]
push 4
push eax
mov eax, dword [esi]
push dword [eax + 0x20c]
call edi
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [esi + 0xc]
push 4
push eax
mov eax, dword [esi]
push dword [eax + 0x20c]
call edi
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [esi + 0x10]
push 4
push eax
mov eax, dword [esi]
push dword [eax + 0x20c]
call edi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4044a4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [str.newptch]
push ebx
mov dword [ebp - 0xc], eax
mov eax, dword [0x41a468]
xor ebx, ebx
push esi
cmp dword [ebp + 8], ebx
push edi
mov esi, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
jne 0x404553
lea eax, [ebp - 4]
push ebx
push eax
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x14]
push 8
push eax
mov eax, dword [esi]
push dword [eax + 0x20c]
call edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040c840
pop ecx
test eax, eax
pop ecx
je 0x4044ff
xor eax, eax
jmp 0x404556
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [esi + 8]
push 4
push eax
mov eax, dword [esi]
push dword [eax + 0x20c]
call edi
lea eax, [ebp - 4]
push 0
lea ebx, [esi + 0xc]
push eax
mov eax, dword [esi]
push 4
push ebx
push dword [eax + 0x20c]
call edi
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push dword [eax + 0x20c]
call edi
push 1
push 0
push dword [ebx]
mov dword [esi + 0x10], eax
mov eax, dword [esi]
push dword [eax + 0x20c]
call edi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40455d
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ebx, ebx
mov eax, dword [esi]
push 1
push ebx
push ebx
mov dword [ebp - 8], ebx
push dword [eax + 0x20c]
call edi
mov eax, dword [esi]
push ebx
push ebx
push dword [esi + 0x10]
push dword [eax + 0x20c]
call edi
push ebx
push ebx
push dword [esi + 8]
push dword [ebp + 8]
call edi
mov eax, dword [esi + 0xc]
cmp eax, ebx
mov dword [ebp - 4], eax
jle 0x404605
mov edi, 0xfa00
cmp dword [ebp - 4], edi
lea eax, [ebp - 8]
push ebx
push eax
jle 0x4045cf
mov eax, dword [esi]
push edi
push dword [0x41ec14]
push dword [eax + 0x20c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 8]
push ebx
push eax
push edi
jmp 0x4045ee
push dword [ebp - 4]
mov eax, dword [esi]
push dword [0x41ec14]
push dword [eax + 0x20c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 8]
push ebx
push eax
push dword [ebp - 4]
push dword [0x41ec14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub dword [ebp - 4], edi
cmp dword [ebp - 4], ebx
jg 0x4045a8
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40460f
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, ecx
push edi
push edi
push dword [esi + 8]
mov dword [ebp - 8], edi
push dword [ebp + 8]
call ebx
push edi
push edi
push dword [esi + 0xc]
push dword [ebp + 0xc]
call ebx
mov esi, dword [esi + 0x10]
cmp esi, edi
mov dword [ebp - 4], esi
jle 0x404698
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, 0xfa00
cmp dword [ebp - 4], esi
lea eax, [ebp - 8]
push edi
push eax
jle 0x40466b
push esi
push dword [0x41ec14]
push dword [ebp + 8]
call ebx
lea eax, [ebp - 8]
push edi
push eax
push esi
jmp 0x404681
push dword [ebp - 4]
push dword [0x41ec14]
push dword [ebp + 8]
call ebx
lea eax, [ebp - 8]
push edi
push eax
push dword [ebp - 4]
push dword [0x41ec14]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub dword [ebp - 4], esi
cmp dword [ebp - 4], edi
jg 0x40464d
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x404acc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3fc
push ebx
push esi
lea eax, [ebp - 0x14]
push edi
push eax
lea eax, [ebp - 0xe]
push eax
lea eax, [ebp - 0x28]
mov ebx, ecx
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorControl]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor esi, esi
push esi
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x404b09
lea edi, [ebx + 0x1c]
jmp 0x404c0c
push dword [ebp + 0xc]
lea eax, [ebp - 0x334]
mov dword [ebp - 4], esi
push eax
call fcn.0040bd70
push 0x104
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0040bd10
lea eax, [ebp - 0x3fc]
add esp, 0x14
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x334]
push eax
call fcn.0040be60
pop ecx
mov ebx, eax
cmp ebx, 0xffffffff
jle 0x404b5d
cmp byte [ebp + ebx - 0x334], 0x5c
je 0x404b5a
dec ebx
jmp 0x404b48
cmp ebx, 0xffffffff
je 0x404bb7
push 0x104
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0040bd10
lea eax, [ebp - 0x334]
push ebx
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0040cf50
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x334]
push eax
call fcn.0040bd70
add esp, 0x20
lea eax, [ebp - 0x230]
push esi
push eax
call edi
test eax, eax
jne 0x404bc0
mov eax, dword [ebp - 0xc]
inc dword [ebp - 4]
add dword [ebp - 0xc], 4
mov dword [eax], ebx
jmp 0x404b39
mov eax, dword [ebp - 8]
add eax, 0x1c
push eax
jmp 0x404c31
mov eax, dword [ebp - 4]
cmp eax, esi
jle 0x404bfc
lea ebx, [ebp + eax*4 - 0x400]
mov eax, dword [ebx]
dec dword [ebp - 4]
push eax
lea eax, [ebp - 0x230]
push dword [ebp + 0xc]
sub ebx, 4
push eax
call fcn.0040cf50
add esp, 0xc
lea eax, [ebp - 0x230]
push esi
push eax
call edi
test eax, eax
je 0x404bb7
cmp dword [ebp - 4], esi
jg 0x404bce
push esi
push dword [ebp + 0xc]
call edi
test eax, eax
mov eax, dword [ebp - 8]
je 0x404bba
lea edi, [eax + 0x1c]
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp + 8]
cmp eax, esi
mov dword [ecx], eax
je 0x404c30
cmp eax, 0xffffffff
jne 0x404c5e
push edi
lea eax, [ebp - 0x12c]
push 0x41a0ac
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x12c]
push esi
push 0x41a09c
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x404c61
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x404c68
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x404d39
cmp esi, 0xffffffff
je 0x404d39
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
je 0x404cbc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404d5e
cmp ecx, ebx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jle 0x404d23
mov eax, dword [0x41ec14]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, 0xfa00
cmp dword [ebp + 8], esi
lea ecx, [ebp - 0xc]
push ebx
push ecx
jle 0x404cf0
push esi
push eax
push dword [ebp - 4]
call edi
mov dword [ebp + 0xc], esi
jmp 0x404cff
push dword [ebp + 8]
push eax
push dword [ebp - 4]
call edi
mov eax, dword [ebp + 8]
mov dword [ebp + 0xc], eax
mov eax, dword [0x41ec14]
xor ecx, ecx
cmp dword [ebp + 0xc], ebx
jle 0x404d1a
movzx edx, byte [eax + ecx]
add dword [ebp - 8], edx
inc ecx
cmp ecx, dword [ebp + 0xc]
jl 0x404d0b
xor ebx, ebx
sub dword [ebp + 8], esi
cmp dword [ebp + 8], ebx
jg 0x404cda
pop edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
xor eax, eax
cmp ecx, dword [ebp + 0x10]
sete al
jmp 0x404d60
push dword [ebp + 8]
mov esi, 0x41eb10
push str.IsItTheSameFile_failed_for_file:_n_s
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebx
push 0x41a09c
push esi
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
pop ebx
leave
ret 0xc