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

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ebx
imul esi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x413372
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 4]
push 0
lea eax, [esp + 0x18]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x413366
mov byte [edi + 8], 1
mov eax, dword [esp + 0x14]
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x413383
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x10]
push esi
push eax
push ecx
call fcn.0043c0c0
add dword [edi + 0x1c], esi
add esp, 0xc
pop edi
mov eax, esi
xor edx, edx
pop esi
div ebx
pop ebx
ret

Function at 0x414420
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x470be4]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
mov ebp, dword [esp + 0x218]
push edi
mov edi, dword [esp + 0x218]
test edi, edi
je 0x41445d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41445d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebp]
test al, al
je 0x41451d
push esi
mov esi, ebp
mov ecx, ebp
lea ecx, [ecx]
cmp al, 0x2f
je 0x414478
cmp al, 0x5c
jne 0x41447a
mov esi, ecx
mov al, byte [ecx + 1]
add ecx, 1
test al, al
jne 0x414470
cmp esi, ebp
je 0x4144b2
sub esi, ebp
push esi
lea eax, [esp + 0x114]
push ebp
push eax
call fcn.0043c0c0
lea ecx, [esp + 0x11c]
push ecx
push edi
mov byte [esp + esi + 0x124], 0
call fcn.00414420
add esp, 0x14
test edi, edi
mov byte [esp + 0xc], 0
je 0x4144cf
lea edx, [esp + 0xc]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4144c3
mov eax, ebp
mov edx, ebp
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4144d3
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4144e5
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0xc]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop esi
jne 0x41451d
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x210]
pop edi
pop ebp
xor ecx, esp
call fcn.00438282
add esp, 0x20c
ret
Function at 0x415ce0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp edi, ebx
jne 0x415cfa
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x18], ebx
je 0x415cef
cmp dword [edi + 0x7c], ebx
je 0x415d0d
push edi
call fcn.00413d60
add esp, 4
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push edi
call fcn.00413b70
add esp, 0x10
test eax, eax
je 0x415d34
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 8
ret
push esi
push 0x84
call fcn.00437935
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x415d75
push 0x4000
call fcn.00437935
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add esp, 4
cmp eax, ebx
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
jne 0x415d81
push esi
call fcn.004379f8
add esp, 4
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 8
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x415dcd
lea eax, [esi + 4]
push eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00413120
add esp, 4
test eax, eax
jne 0x415dcd
mov dword [esi + 0x40], 1
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x5c], edx
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov ecx, dword [edi + 0x30]
shr ecx, 3
test cl, 1
je 0x415df7
mov dl, byte [edi + 0x39]
mov byte [esi + 0x80], dl
jmp 0x415e00
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
mov cl, byte [esi + 0x6c]
neg cl
push ebp
mov ebp, dword [esp + 0x20]
lea ebx, [esi + 0x70]
mov dword [ebx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
sbb ecx, ecx
and ecx, 0xc
test ebp, ebp
mov dword [esi + 0x7c], ecx
je 0x415e47
lea ecx, [ecx]
movzx eax, byte [ebp]
test al, al
je 0x415e47
push eax
push ebx
call fcn.00412e50
add esp, 8
add ebp, 1
jne 0x415e30
mov edx, dword [edi + 0x78]
mov eax, dword [esp + 0x14]
lea ecx, [edx + eax + 0x1e]
pop ebp
mov dword [esi + 0x3c], ecx
mov dword [esi + 8], 0
mov dword [edi + 0x7c], esi
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x4160f0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
jne 0x4161bf
cmp dword [ebx + 4], 0xffffffff
jne 0x4161bf
push edi
lea edi, [ebx + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x416120
sub eax, edx
mov al, byte [eax + ebx + 0x13f]
cmp al, 0x5c
je 0x416153
cmp al, 0x2f
je 0x416153
add edi, 0xffffffff
lea ecx, [ecx]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x416140
mov ax, word [0x45dde4]
mov word [edi], ax
mov edi, dword [esp + 0x14]
cmp edi, 1
push esi
mov esi, dword [esp + 0x10]
jne 0x41617e
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x41617e
pop esi
pop edi
mov eax, 0x2000000
pop ebx
ret 0xc
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edi
push edx
push esi
call fcn.004131e0
add esp, 0x10
test eax, eax
jne 0x4161a0
mov eax, dword [esp + 0x18]
pop esi
pop edi
pop ebx
ret 0xc
push eax
call fcn.00415af0
add esp, 4
mov dword [ebx], eax
neg eax
sbb eax, eax
pop esi
and eax, 0xfffffe00
pop edi
add eax, 0x200
pop ebx
ret 0xc
mov eax, 0x1000000
pop ebx
ret 0xc
Function at 0x417820
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x14]
push edi
push esi
push eax
push ecx
push edx
call fcn.00439a5a
push esi
mov edi, eax
call fcn.004397e6
add esp, 0x14
mov eax, edi
pop edi
pop esi
ret

Function at 0x417850
Capabilities:
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
sub esp, 0x64
cmp dword [esp + 0x68], 0
push esi
mov esi, ecx
je 0x4179cb
push ebp
mov ebp, dword [esp + 0x74]
push ebx
push edi
jmp 0x417870
mov eax, dword [esp + 0x78]
mov ecx, dword [esi + 0x5c]
push 0
push 0
push eax
push ecx
call fcn.0043ca8a
push 0x4c
lea edx, [esp + 0x3c]
push 0
push edx
call fcn.00438ee0
mov eax, dword [esi + 0x5c]
push eax
push 1
lea ecx, [esp + 0x4c]
push 0x4c
push ecx
call fcn.0043c9d6
add esp, 0x2c
test eax, eax
je 0x4179c8
xor eax, eax
cmp dword [esp + 0x2c], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x7c], eax
jbe 0x417928
mov edx, dword [esi + 0x5c]
push edx
call fcn.0043c72f
mov edi, eax
mov eax, dword [esi + 0x5c]
push eax
push 1
lea ecx, [esp + 0x1c]
push 0x18
push ecx
mov ebx, edx
call fcn.0043c9d6
mov edx, dword [esp + 0x24]
add esp, 0x14
cmp edx, dword [ebp]
jne 0x417917
mov eax, dword [esp + 0x14]
cmp eax, dword [ebp + 4]
jne 0x417917
mov ecx, dword [esp + 0x18]
cmp ecx, dword [ebp + 8]
jne 0x417917
mov edx, dword [esp + 0x1c]
cmp edx, dword [ebp + 0xc]
je 0x417942
mov eax, dword [esp + 0x7c]
add eax, 1
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x7c], eax
jb 0x4178d1
mov eax, dword [esp + 0x30]
test eax, eax
mov dword [esp + 0x78], eax
jne 0x417870
pop edi
pop ebx
pop ebp
pop esi
add esp, 0x64
ret 8
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x78]
mov edx, dword [esi + 0x5c]
push 0
lea eax, [eax + eax*2 - 3]
lea ecx, [ebp + eax*8 + 0x4c]
push 0
push ecx
push edx
call fcn.0043ca8a
mov eax, dword [esi + 0x5c]
push eax
push 1
lea ecx, [esp + 0x28]
push 0x18
push ecx
call fcn.0043c9d6
mov edx, dword [esi + 0x5c]
push 0
push ebx
push edi
push edx
call fcn.0043ca8a
mov edi, dword [esi + 0x5c]
push edi
push 1
lea eax, [esp + 0x48]
push 0x18
push eax
call fcn.00439a5a
add esp, 0x40
push edi
call fcn.004397e6
mov ecx, dword [esi + 0x5c]
sub dword [esp + 0x30], 1
push 0
push 0
push ebp
push ecx
call fcn.0043ca8a
mov esi, dword [esi + 0x5c]
push esi
push 1
lea edx, [esp + 0x44]
push 0x4c
push edx
call fcn.00439a5a
push esi
call fcn.004397e6
add esp, 0x28
pop edi
pop ebx
pop ebp
pop esi
add esp, 0x64
ret 8
Function at 0x4179e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, 0x2000
push esi
xor edi, edi
call fcn.0041c4b2
mov ebp, dword [esp + 0x1c]
add esp, 4
test ebp, ebp
mov ebx, eax
jbe 0x417a44
mov edi, edi
lea eax, [edi + 0x2000]
cmp eax, ebp
jbe 0x417a0e
mov esi, ebp
sub esi, edi
mov ecx, dword [esp + 0x14]
push ecx
push 1
push esi
push ebx
call fcn.0043c9d6
add esp, 0x10
test eax, eax
jbe 0x417a3e
mov edx, dword [esp + 0x1c]
push edx
push 1
push esi
push ebx
call fcn.00439a5a
mov eax, dword [esp + 0x2c]
push eax
call fcn.004397e6
add esp, 0x14
add edi, esi
cmp edi, ebp
jb 0x417a00
push ebx
call fcn.0041c4ad
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x417a60
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
test esi, esi
push edi
mov ebx, ecx
je 0x417aa7
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov eax, dword [ebx + 0x5c]
push 0
push 0
push esi
push eax
call fcn.0043ca8a
mov ecx, dword [ebx + 0x5c]
push ecx
push 1
push 0x50
push edi
call fcn.0043c9d6
add esp, 0x20
cmp dword [edi + 4], ebp
jae 0x417ab0
mov eax, dword [edi + 8]
cmp esi, eax
je 0x417aa7
mov esi, eax
test esi, esi
jne 0x417a76
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x417b10
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0xc], 0
push edi
mov edi, ecx
jne 0x417b2a
mov eax, dword [esi + 8]
mov dword [edi + 0x84], eax
jmp 0x417b5e
mov ecx, dword [esi + 8]
push ebp
mov ebp, dword [esp + 0x18]
push 0
mov dword [ebp + 8], ecx
mov edx, dword [esi + 0xc]
mov eax, dword [edi + 0x5c]
push 0
push edx
push eax
call fcn.0043ca8a
mov ebx, dword [edi + 0x5c]
push ebx
push 1
push 0x50
push ebp
call fcn.00439a5a
push ebx
call fcn.004397e6
add esp, 0x24
pop ebp
cmp dword [esi + 8], 0
je 0x417b96
mov ecx, dword [esi + 0xc]
mov ebx, dword [esp + 0x18]
push 0
mov dword [ebx + 0xc], ecx
mov edx, dword [esi + 8]
mov eax, dword [edi + 0x5c]
push 0
push edx
push eax
call fcn.0043ca8a
mov edi, dword [edi + 0x5c]
push edi
push 1
push 0x50
push ebx
call fcn.00439a5a
push edi
call fcn.004397e6
add esp, 0x24
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x417ba0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x50
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
mov ebp, dword [esp + 0x5c]
push esi
mov esi, ecx
mov eax, dword [esi + 0x84]
test eax, eax
je 0x417c29
push edi
push 0x50
mov dword [ebp + 8], eax
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00438ee0
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x5c]
push 0
push 0
push ecx
push edx
call fcn.0043ca8a
mov eax, dword [esi + 0x5c]
push eax
push 1
lea ecx, [esp + 0x34]
push 0x50
push ecx
call fcn.0043c9d6
mov edx, dword [esi + 0x84]
mov eax, dword [esi + 0x5c]
push 0
push 0
push edx
push eax
mov dword [esp + 0x58], ebx
call fcn.0043ca8a
mov edi, dword [esi + 0x5c]
push edi
push 1
lea ecx, [esp + 0x54]
push 0x50
push ecx
call fcn.00439a5a
add esp, 0x4c
push edi
call fcn.004397e6
add esp, 4
pop edi
push 0
mov dword [esi + 0x84], ebx
push 0
mov dword [ebp + 0xc], 0
mov edx, dword [esi + 0x5c]
push ebx
push edx
call fcn.0043ca8a
mov esi, dword [esi + 0x5c]
push esi
push 1
push 0x50
push ebp
call fcn.00439a5a
push esi
call fcn.004397e6
add esp, 0x24
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 8

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

Disassembly:
sub esp, 0xf0
push ebx
push ebp
push esi
push edi
push 0x50
lea eax, [esp + 0x14]
push 0
push eax
mov esi, ecx
call fcn.00438ee0
push 0x50
lea ecx, [esp + 0x70]
push 0
push ecx
call fcn.00438ee0
mov edi, dword [esp + 0x11c]
mov eax, dword [edi + 0xc]
add esp, 0x18
test eax, eax
je 0x417ccc
mov edx, dword [esi + 0x5c]
push 0
push 0
push eax
push edx
call fcn.0043ca8a
mov eax, dword [esi + 0x5c]
push eax
push 1
lea ecx, [esp + 0x28]
push 0x50
push ecx
call fcn.0043c9d6
add esp, 0x20
mov eax, dword [edi + 8]
test eax, eax
je 0x417cf6
mov edx, dword [esi + 0x5c]
push 0
push 0
push eax
push edx
call fcn.0043ca8a
mov eax, dword [esi + 0x5c]
push eax
push 1
lea ecx, [esp + 0x78]
push 0x50
push ecx
call fcn.0043c9d6
add esp, 0x20
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x14]
push eax
push edi
mov ecx, esi
call fcn.00417b10
mov ebx, dword [edi + 4]
mov ebp, dword [esp + 0x108]
sub ebx, ebp
cmp ebx, 0x534
jb 0x417d5e
push 0x50
lea ecx, [esp + 0xb4]
push 0
push ecx
mov dword [edi + 4], ebp
call fcn.00438ee0
mov edx, dword [esp + 0x118]
add esp, 0xc
lea eax, [edx + ebp + 0x134]
push eax
lea ecx, [esp + 0xb4]
add ebx, 0xfffffecc
push ecx
mov ecx, esi
mov dword [esp + 0xbc], ebx
call fcn.00417ba0
mov edx, dword [esp + 0x10c]
mov eax, dword [esi + 0x5c]
push 0
add edx, 0xe4
push 0
push edx
push eax
call fcn.0043ca8a
mov esi, dword [esi + 0x5c]
push esi
push 1
push 0x50
push edi
call fcn.00439a5a
push esi
call fcn.004397e6
add esp, 0x24
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf0
ret 0xc
Function at 0x417da0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xf0
mov eax, dword [0x470be4]
xor eax, esp
mov dword [esp + 0xec], eax
push esi
mov esi, ecx
mov ecx, dword [esp + 0xf8]
mov eax, dword [ecx]
test eax, eax
je 0x417e17
push 0
push 0
push eax
mov eax, dword [esi + 0x5c]
push eax
call fcn.0043ca8a
push 0xec
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.00438ee0
mov edx, dword [esi + 0x5c]
push edx
push 1
lea eax, [esp + 0x28]
push 0xec
push eax
call fcn.0043c9d6
mov eax, dword [esp + 0x34]
add esp, 0x2c
pop esi
mov ecx, dword [esp + 0xec]
xor ecx, esp
call fcn.00438282
add esp, 0xf0
ret 4
push edi
mov edi, dword [ecx + 8]
test edi, edi
je 0x417e5c
push 0xec
lea ecx, [esp + 0xc]
push 0
push ecx
call fcn.00438ee0
mov edx, dword [esi + 0x5c]
push 0
push 0
push edi
push edx
call fcn.0043ca8a
mov eax, dword [esi + 0x5c]
push eax
push 1
lea ecx, [esp + 0x2c]
push 0xec
push ecx
call fcn.0043c9d6
mov eax, dword [esp + 0x40]
add esp, 0x2c
jmp 0x417e5f
mov eax, dword [esi + 0x78]
mov ecx, dword [esp + 0xf4]
pop edi
pop esi
xor ecx, esp
call fcn.00438282
add esp, 0xf0
ret 4
Function at 0x4198b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x50
mov eax, dword [esp + 0x54]
test eax, eax
push ebx
mov ebx, ecx
mov dword [esp + 4], ebx
je 0x4199d5
push ebp
push esi
push edi
lea esp, [esp]
push 0
push 0
push eax
mov eax, dword [ebx + 0x5c]
push eax
call fcn.0043ca8a
push 0x4c
lea ecx, [esp + 0x28]
push 0
push ecx
call fcn.00438ee0
mov edx, dword [ebx + 0x5c]
push edx
push 1
lea eax, [esp + 0x38]
push 0x4c
push eax
call fcn.0043c9d6
add esp, 0x2c
test eax, eax
je 0x4199d2
cmp dword [ebx + 0x154], 0
jne 0x419923
lea edi, [ebx + 0x150]
mov ecx, 0x13
lea esi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4199c6
xor ecx, ecx
mov edi, eax
mov edx, 0x18
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041c4b2
mov esi, eax
add esp, 4
test esi, esi
je 0x419971
lea eax, [edi - 1]
test eax, eax
jl 0x41996d
lea eax, [eax + eax*2 + 3]
add eax, eax
add eax, eax
add eax, eax
push eax
push 0
push esi
call fcn.00438ee0
add esp, 0xc
mov ebp, esi
jmp 0x419973
xor ebp, ebp
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x5c]
lea edx, [eax + eax*2]
add edx, edx
push ecx
add edx, edx
push 1
add edx, edx
push edx
push ebp
call fcn.0043c9d6
xor edi, edi
add esp, 0x10
cmp dword [esp + 0x18], edi
jbe 0x4199bd
add ebx, 0x19c
mov esi, ebp
push esi
mov ecx, ebx
call fcn.004196f0
mov ecx, dword [esi + 0x10]
add edi, 1
mov dword [eax], ecx
add esi, 0x18
cmp edi, dword [esp + 0x18]
jb 0x4199a0
mov ebx, dword [esp + 0x10]
push ebp
call fcn.0041c4ad
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4198d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 4

Function at 0x419af1
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov dword [esi + 0x1c0], 0
call fcn.00419650
mov ebx, dword [esp + 0x10]
push 0x45dfd0
push ebx
call fcn.0043b1e8
mov edi, eax
add esp, 8
test edi, edi
jne 0x419b24
pop edi
pop esi
xor al, al
pop ebx
ret 4
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x419b30
sub eax, edx
push eax
push ebx
mov ecx, esi
call fcn.00401e20
push edi
push 1
lea ebx, [esi + 0x60]
push 0xf0
push ebx
mov dword [esi + 0x5c], edi
call fcn.0043c9d6
add esp, 0x10
test eax, eax
je 0x419b1c
cmp dword [ebx], 1
jne 0x419b1c
lea eax, [esi + 0x90]
push eax
call fcn.004546ec
add esp, 4
push 0xf0
mov ecx, esi
call fcn.004198b0
pop edi
pop esi
mov al, 1
pop ebx
ret 4
Function at 0x419c80
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4571c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x470be4]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebp
push esi
push edi
mov eax, dword [0x470be4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
push 0
mov edi, ecx
mov ecx, dword [edi + 0x5c]
push 0
push eax
push ecx
call fcn.0043ca8a
push 0xec
call fcn.0041c482
mov esi, eax
add esp, 0x14
test esi, esi
je 0x419cea
push 0xec
push 0
push esi
call fcn.00438ee0
add esp, 0xc
jmp 0x419cec
xor esi, esi
mov edx, dword [edi + 0x5c]
push edx
push 1
push 0xec
push esi
call fcn.0043c9d6
lea ecx, [esi + 0x24]
mov eax, ecx
add esp, 0x10
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
lea ebp, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x419d20
sub eax, ebp
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00401e20
lea eax, [esp + 0x10]
push eax
lea ecx, [edi + 0x1a8]
mov dword [esp + 0x3c], 0
call fcn.00417340
mov dword [eax], esi
mov eax, dword [esi + 4]
test eax, eax
je 0x419d5f
push eax
mov ecx, edi
call fcn.00419c80
mov esi, dword [esi + 0xc]
test esi, esi
je 0x419d6e
push esi
mov ecx, edi
call fcn.00419c80
cmp dword [esp + 0x28], 0x10
jb 0x419d82
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0041c4ad
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00438282
add esp, 0x2c
ret 4
Function at 0x419db0
Capabilities:
Print debug messages
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x1a8
mov eax, dword [0x470be4]
xor eax, esp
mov dword [esp + 0x1a4], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1bc]
push str.VFS:_del_file_start_n
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, esi
call fcn.00419650
push 0
lea eax, [esi + 0x90]
push eax
push edi
call fcn.0041adb0
mov edi, eax
mov eax, dword [esi + 0x78]
add esp, 0xc
test eax, eax
je 0x419e0f
cmp dword [esi + 0x1b0], 0
jne 0x419e0f
push eax
mov ecx, esi
call fcn.00419c80
test edi, edi
je 0x419e21
lea ecx, [esp + 0x20]
push ecx
push edi
call fcn.0041af50
add esp, 8
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x14]
lea ebp, [esi + 0x19c]
push eax
mov ecx, ebp
call fcn.004185a0
mov ebx, dword [esp + 0x10]
test ebx, ebx
mov ecx, dword [ebp + 4]
mov dword [esp + 0x1c], ecx
je 0x419e4b
cmp ebx, ebp
je 0x419e50
call fcn.004383bb
mov edi, dword [esp + 0x14]
cmp edi, dword [esp + 0x1c]
jne 0x419e64
mov eax, 3
jmp 0x419fb9
mov edx, dword [esi + 0x5c]
push edx
call fcn.00439d13
add esp, 4
cmp dword [esi + 0x18], 0x10
jb 0x419e7b
mov eax, dword [esi + 4]
jmp 0x419e7e
lea eax, [esi + 4]
push 0x45dfc8
push eax
call fcn.0043b1e8
add esp, 8
test ebx, ebx
mov dword [esi + 0x5c], eax
jne 0x419e98
call fcn.004383bb
cmp edi, dword [ebx + 4]
jne 0x419ea2
call fcn.004383bb
cmp edi, dword [ebx + 4]
mov eax, dword [edi + 0x20]
mov dword [esp + 0x10], eax
jne 0x419eb3
call fcn.004383bb
mov ecx, dword [edi + 0x20]
mov edx, dword [esi + 0x5c]
push 0
push 0
push ecx
push edx
call fcn.0043ca8a
push 0xe4
lea eax, [esp + 0xe4]
push 0
push eax
call fcn.00438ee0
mov ecx, dword [esi + 0x5c]
push ecx
push 1
lea edx, [esp + 0xf4]
push 0xe4
push edx
call fcn.0043c9d6
push 0x50
lea eax, [esp + 0xb0]
push 0
push eax
call fcn.00438ee0
mov ecx, dword [esi + 0x5c]
push ecx
push 1
lea edx, [esp + 0xc0]
push 0x50
push edx
call fcn.0043c9d6
add dword [esi + 0x64], 0xffffffff
add esp, 0x48
push edi
push ebx
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
call fcn.00418860
lea ecx, [esp + 0x20]
push ecx
push 0xf0
mov ecx, esi
call fcn.00417850
lea edx, [esp + 0xd0]
push edx
mov ecx, esi
call fcn.00418df0
push 0x50
lea eax, [esp + 0x34]
push 0
push eax
call fcn.00438ee0
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x1c]
add esp, 0xc
push edx
lea eax, [esp + 0x34]
mov dword [esp + 0x38], ecx
push eax
mov ecx, esi
mov dword [esp + 0x38], 1
call fcn.00417ba0
mov ecx, dword [esi + 0x5c]
push 0
push 0
push 0
push ecx
call fcn.0043ca8a
mov edi, dword [esi + 0x5c]
push edi
push 1
push 0xf0
add esi, 0x60
push esi
call fcn.00439a5a
push edi
call fcn.004397e6
add esp, 0x24
push str.VFS:_del_file_finsihed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
mov ecx, dword [esp + 0x1b4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00438282
add esp, 0x1a8
ret 4
Function at 0x41b060
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0
push esi
call fcn.0043cd29
add esp, 8
cmp eax, 0xffffffff
je 0x41b084
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
neg eax
sbb eax, eax
neg eax
pop esi
ret
xor al, al
pop esi
ret

Function at 0x41b190
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0
push esi
call fcn.0043cd29
add esp, 8
cmp eax, 0xffffffff
jne 0x41b1a9
mov al, 1
pop esi
ret
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne bl
test bl, bl
jne 0x41b1d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push 0x45e0b0
push 1
call fcn.004012b0
push eax
call fcn.00407720
add esp, 0x10
mov al, bl
pop ebx
pop esi
ret

Function at 0x41b1e0
Capabilities:
Copy file

Disassembly:
xor eax, eax
cmp byte [esp + 0xc], al
push ebx
mov ebx, dword [esp + 8]
sete al
push esi
push edi
mov edi, dword [esp + 0x14]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, eax
test esi, esi
jne 0x41b221
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push ebx
push 0x45e0c0
push 1
call fcn.004012b0
push eax
call fcn.00407720
add esp, 0x18
xor eax, eax
pop edi
test esi, esi
pop esi
setne al
pop ebx
ret
Function at 0x41bcb0
Capabilities:
Move file

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
call fcn.0041ba50
mov edi, dword [esp + 0x14]
movsx eax, byte [edi]
push eax
call fcn.0043be7a
movsx ecx, byte [esi]
push ecx
mov bl, al
call fcn.0043be7a
add esp, 0xc
cmp bl, al
je 0x41bcfc
mov edx, dword [esp + 0x18]
push edx
push esi
push edi
call fcn.0041b1e0
add esp, 0xc
test al, al
je 0x41bd42
push edi
call fcn.0041b190
add esp, 4
pop edi
pop esi
pop ebx
ret
cmp byte [esp + 0x18], 0
je 0x41bd0f
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x41bd17
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ebx, eax
test ebx, ebx
jne 0x41bd3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push edi
push 0x45e0e0
push 1
call fcn.004012b0
push eax
call fcn.00407720
add esp, 0x18
xor eax, eax
test ebx, ebx
setne al
pop edi
pop esi
pop ebx
ret