joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4270e0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1de4
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x4da018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0xa
mov dword [esi], 0
push str._main.npdm
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
call fcn.00403200
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 0
push 0x12
mov dword [ecx], 0
push str.nstool::NcaProcess
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
call fcn.00403200
xorps xmm0, xmm0
movq qword [esi + 0x30], xmm0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 2
call fcn.00407060
mov dword [esi + 0xf0], 1
xorps xmm0, xmm0
mov byte [esi + 0xf4], 0
movups xmmword [esi + 0xf8], xmm0
mov dword [esi + 0xf8], 0
mov dword [esi + 0xfc], 0
mov dword [esi + 0x100], 0
mov dword [esi + 0x104], 0
lea ecx, [esi + 0x108]
mov byte [ebp - 4], 5
call fcn.0040bf60
lea ecx, [esi + 0xd80]
mov byte [ebp - 4], 6
call fcn.004788a0
mov dword [esi + 0xee0], 0
xorps xmm0, xmm0
mov dword [esi + 0xee4], 0
mov dword [esi + 0xee8], 0
movq qword [esi + 0xeec], xmm0
mov dword [esi + 0xef0], 0
push 0x421440
push 0x427250
push 4
lea eax, [esi + 0xef8]
mov byte [ebp - 4], 8
push 0x110
push eax
mov dword [ebp - 0x14], eax
call fcn.004895d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42cc60
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a25fe
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4da018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0x12
mov dword [edi], 0
push str.nstool::NroProcess
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
call fcn.00403200
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movq qword [edi + 0x18], xmm0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov byte [ebp - 4], 1
lea esi, [edi + 0x28]
mov dword [edi + 0x20], 1
mov ecx, esi
mov byte [edi + 0x24], 0
mov dword [ebp - 0x14], esi
push 0xa
mov dword [esi], 0
push str.NRO_HEADER
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
call fcn.00403200
push 1
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 2
push 0
mov dword [ebp - 0x18], ecx
call fcn.0044e760
mov byte [ebp - 4], 3
mov ecx, esi
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
call fcn.00479050
push 1
lea ecx, [edi + 0xa8]
mov byte [ebp - 4], 4
push 0
mov dword [ebp - 0x18], ecx
call fcn.0044e760
push 1
lea ecx, [edi + 0xb0]
mov byte [ebp - 4], 5
push 0
mov dword [ebp - 0x18], ecx
call fcn.0044e760
push 1
lea ecx, [edi + 0xb8]
mov byte [ebp - 4], 6
push 0
mov dword [ebp - 0x18], ecx
call fcn.0044e760
lea ecx, [edi + 0xc0]
mov byte [ebp - 4], 7
call fcn.00431360
lea ecx, [edi + 0x168]
mov byte [ebp - 4], 8
call fcn.00401b80
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x433040
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2e38
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4da018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebx]
push 0
push 0
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.00431230
push 8
call fcn.00489209
mov esi, eax
xorps xmm0, xmm0
add esp, 4
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 2
call fcn.00488557
mov dword [esi + 4], eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov ecx, dword [esi + 4]
mov dword [ebp - 0x18], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 3
push eax
call fcn.004332e0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
mov byte [ebp + 0xb], al
test ecx, ecx
je 0x43316a
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x43316a
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [edi + 0x38], 0
mov al, byte [ebp + 0xb]
mov byte [edi + 0x40], al
jne 0x433186
mov eax, dword [edi + 0xc]
mov ecx, edi
push 0
or eax, 4
push eax
call fcn.00431230
mov eax, dword [ebx + 0x10]
lea edx, [ebx + 0x10]
mov dword [ebp + 8], edx
mov eax, dword [eax + 4]
mov dword [edx + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edx - 4], eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + ebx - 4], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4331e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2e60
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4da018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00489209
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00488557
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x442730
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, ecx
mov dword [ebp - 0x14], edx
push ebx
mov dword [ebp - 0xc], eax
xor ecx, ecx
movzx eax, ax
push esi
mov esi, eax
mov dword [ebp - 8], eax
shr esi, 8
xor eax, eax
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], eax
jbe 0x4427b0
mov edi, dword [ebp + 0xc]
nop
movzx ebx, word [edx + ecx*2]
mov edx, ebx
movzx ecx, bl
shr edx, 8
add edx, eax
cmp esi, ecx
jb 0x4427b0
movzx ecx, bl
cmp esi, ecx
jne 0x442794
cmp eax, edx
jge 0x442794
mov ecx, dword [ebp - 0xc]
movzx esi, cl
movzx ecx, byte [eax + edi]
cmp cx, si
je 0x4427a7
inc eax
cmp eax, edx
jl 0x442783
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov eax, edx
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, dword [ebp + 8]
jae 0x4427b0
mov edx, dword [ebp - 0x14]
jmp 0x442760
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x14]
xor eax, eax
mov bl, 1
test edi, edi
je 0x4427e7
mov esi, dword [ebp + 0x10]
nop
movzx ecx, byte [eax + esi]
test cl, cl
jns 0x4427d8
movzx edx, byte [eax + esi + 1]
inc eax
and ecx, 0x7f
shl ecx, 8
or edx, ecx
jmp 0x4427da
mov edx, ecx
sub dword [ebp - 8], edx
js 0x4427e7
inc eax
xor bl, 1
cmp eax, edi
jb 0x4427c0
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x450660
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x450691
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x450680
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x455800
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a5f80
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x4da018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push ecx
push eax
call fcn.0044fcd0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4558ac
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x455890
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x455886
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x455921
push edx
push ecx
call fcn.00489239
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004891fb
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.0045e990
push eax
mov edx, str.Failed_to_remove_file__
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.0041b7d0
push 0x4c58a8
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.0041b8d0
mov esi, eax
push str.::removeFile__
mov edx, 0x4dadd8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
call fcn.00405f30
add esp, 0xc
push esi
push eax
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 4
call fcn.0040bf40
push 0x4d8ba4
lea eax, [ebp - 0xdc]
push eax
call fcn.0048ab6b
call fcn.0048dc6b
int3
Function at 0x455a30
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6030
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x4da018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push ecx
push eax
call fcn.0044fcd0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push 0
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x455a97
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x455aed
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x455ad1
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x455ac7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x455b64
push edx
push ecx
call fcn.00489239
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004891fb
mov esp, ebp
pop ebp
ret 4
call esi
mov edx, eax
lea ecx, [ebp - 0x44]
call fcn.0045e990
push eax
mov edx, str.Failed_to_create_directory__
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.0041b7d0
add esp, 4
push 0x4c58a8
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x74]
call fcn.0041b8d0
add esp, 4
mov esi, eax
push str.::createDirectory__
mov edx, 0x4dadd8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x8c]
call fcn.00405f30
add esp, 4
push esi
push eax
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 4
call fcn.0040bf40
push 0x4d8ba4
lea eax, [ebp - 0xe4]
push eax
call fcn.0048ab6b
call fcn.0048dc6b
int3
Function at 0x455ed0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a5f80
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x4da018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push ecx
push eax
call fcn.0044fcd0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x455f7c
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x455f60
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x455f56
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x455ff1
push edx
push ecx
call fcn.00489239
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004891fb
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.0045e990
push eax
mov edx, str.Failed_to_remove_directory__
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.0041b7d0
push 0x4c58a8
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.0041b8d0
mov esi, eax
push str.::removeDirectory__
mov edx, 0x4dadd8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
call fcn.00405f30
add esp, 0xc
push esi
push eax
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 4
call fcn.0040bf40
push 0x4d8ba4
lea eax, [ebp - 0xdc]
push eax
call fcn.0048ab6b
call fcn.0048dc6b
int3
Function at 0x4562e0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a5f80
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x4da018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push ecx
push eax
call fcn.0044fcd0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x45638c
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x456370
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x456366
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x456401
push edx
push ecx
call fcn.00489239
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004891fb
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.0045e990
push eax
mov edx, str.Failed_to_set_current_working_directory__
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.0041b7d0
push 0x4c58a8
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.0041b8d0
mov esi, eax
push str.::setWorkingDirectory__
mov edx, 0x4dadd8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
call fcn.00405f30
add esp, 0xc
push esi
push eax
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 4
call fcn.0040bf40
push 0x4d8ba4
lea eax, [ebp - 0xdc]
push eax
call fcn.0048ab6b
call fcn.0048dc6b
int3
Function at 0x458460
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a65d5
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x4da018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 4], 0
mov edx, dword [ebp + 8]
je 0x45856b
mov ecx, dword [esi + 0x30]
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
push edx
lea edx, [ebp - 0x18]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x30]
push 0x17
mov dword [ebp - 0x30], 0
push str.::setWorkingDirectory__
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
call fcn.00403200
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.00458970
mov byte [ebp - 4], 2
mov edi, eax
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x45852d
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x458523
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4585b9
push edx
push ecx
call fcn.00489239
add esp, 8
mov ecx, dword [esi + 0x30]
mov dword [esi + 4], edi
push edi
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edx, dword [ebp - 0x18]
call fcn.00403b50
push 0x20
push dword [ebp - 0x18]
call fcn.00489239
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004891fb
mov esp, ebp
pop ebp
ret 4
push str.VirtualFileSystem_not_initialized
lea ecx, [ebp - 0x30]
call fcn.00403040
push str.::setWorkingDirectory__
mov edx, 0x4dadf0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00405f30
add esp, 4
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
push ecx
push eax
lea ecx, [ebp - 0x9c]
call fcn.0044e9e0
push 0x4d8e48
lea eax, [ebp - 0x9c]
push eax
call fcn.0048ab6b
call fcn.0048dc6b
int3
Function at 0x4596e0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a67d5
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x4da018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx + 8]
test eax, eax
jne 0x459723
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
jmp 0x459739
lea ecx, [ebp - 0x18]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x459753
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004891fb
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.0045e990
push eax
mov edx, str.Failed_to_get_stream_length__
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.0041b7d0
push 0x4c58a8
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.0041b8d0
mov esi, eax
push str.::length__
mov edx, 0x4dae08
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x78]
call fcn.00405f30
add esp, 0xc
push esi
push eax
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 3
call fcn.0040bf40
push 0x4d8ba4
lea eax, [ebp - 0xcc]
push eax
call fcn.0048ab6b
int3
Function at 0x459880
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6861
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x4da018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
test edx, edx
je 0x459901
cmp byte [ecx + 4], 0
je 0x45994f
test eax, eax
je 0x45999d
push 0
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp + 0xc]
push eax
push dword [edx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4599eb
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004891fb
mov esp, ebp
pop ebp
ret 8
push str.Failed_to_read_from_stream__stream_is_disposed_
lea ecx, [ebp - 0x2c]
call fcn.00403040
push str.::read__
mov edx, 0x4dae08
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00405f30
add esp, 4
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
push ecx
push eax
lea ecx, [ebp - 0x98]
call fcn.0044e9e0
push 0x4d8e48
lea eax, [ebp - 0x98]
push eax
call fcn.0048ab6b
push str.Stream_does_not_support_reading
lea ecx, [ebp - 0x2c]
call fcn.00403040
push str.::read__
mov edx, 0x4dae08
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00405f30
add esp, 4
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
push ecx
push eax
lea ecx, [ebp - 0x98]
call fcn.00401a60
push 0x4d8af4
lea eax, [ebp - 0x98]
push eax
call fcn.0048ab6b
push str.ptr_was_null
lea ecx, [ebp - 0x2c]
call fcn.00403040
push str.::read__
mov edx, 0x4dae08
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x44]
call fcn.00405f30
add esp, 4
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
push ecx
push eax
lea ecx, [ebp - 0x98]
call fcn.00435050
push 0x4d8d50
lea eax, [ebp - 0x98]
push eax
call fcn.0048ab6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0xb0]
call fcn.0045e990
push eax
mov edx, str.Failed_to_read_from_stream__
mov dword [ebp - 4], 8
lea ecx, [ebp - 0xc8]
call fcn.0041b7d0
push 0x4c58a8
mov edx, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xe0]
call fcn.0041b8d0
mov esi, eax
push str.::read__
mov edx, 0x4dae08
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xf8]
call fcn.00405f30
add esp, 0xc
push esi
push eax
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 0xb
call fcn.0040bf40
push 0x4d8ba4
lea eax, [ebp - 0x14c]
push eax
call fcn.0048ab6b
int3
Function at 0x459a70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6861
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x4da018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
test edx, edx
je 0x459af1
cmp byte [ecx + 5], 0
je 0x459b3f
test eax, eax
je 0x459b8d
push 0
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp + 0xc]
push eax
push dword [edx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x459bdb
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004891fb
mov esp, ebp
pop ebp
ret 8
push str.Failed_to_write_to_stream__no_file_open_
lea ecx, [ebp - 0x2c]
call fcn.00403040
push str.::write__
mov edx, 0x4dae08
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00405f30
add esp, 4
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
push ecx
push eax
lea ecx, [ebp - 0x98]
call fcn.0044e9e0
push 0x4d8e48
lea eax, [ebp - 0x98]
push eax
call fcn.0048ab6b
push str.Stream_does_not_support_writing
lea ecx, [ebp - 0x2c]
call fcn.00403040
push str.::write__
mov edx, 0x4dae08
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00405f30
add esp, 4
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
push ecx
push eax
lea ecx, [ebp - 0x98]
call fcn.00401a60
push 0x4d8af4
lea eax, [ebp - 0x98]
push eax
call fcn.0048ab6b
push str.ptr_was_null
lea ecx, [ebp - 0x2c]
call fcn.00403040
push str.::write__
mov edx, 0x4dae08
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x44]
call fcn.00405f30
add esp, 4
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
push ecx
push eax
lea ecx, [ebp - 0x98]
call fcn.00435050
push 0x4d8d50
lea eax, [ebp - 0x98]
push eax
call fcn.0048ab6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0xb0]
call fcn.0045e990
push eax
mov edx, str.Failed_to_write_to_stream__
mov dword [ebp - 4], 8
lea ecx, [ebp - 0xc8]
call fcn.0041b7d0
push 0x4c58a8
mov edx, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xe0]
call fcn.0041b8d0
mov esi, eax
push str.::write__
mov edx, 0x4dae08
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xf8]
call fcn.00405f30
add esp, 0xc
push esi
push eax
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 0xb
call fcn.0040bf40
push 0x4d8ba4
lea eax, [ebp - 0x14c]
push eax
call fcn.0048ab6b
int3