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

Disassembly:
mov eax, 0x1014
call fcn.00406cb0
push ebx
push esi
mov esi, dword [sym.imp.MSVCR71.dll_strchr]
push edi
push 0x5b
push dword [esp + 0x1028]
call esi
xor edi, edi
pop ecx
cmp eax, edi
pop ecx
je 0x403cc0
inc eax
push 0x5d
push eax
mov dword [esp + 0x18], eax
call esi
mov ebx, eax
pop ecx
cmp ebx, edi
pop ecx
jne 0x403cc7
xor eax, eax
jmp 0x403e40
and byte [ebx], 0
inc ebx
push ebx
push 0x40d340
mov dword [esp + 0x14], ebx
call sub.MSVCR71.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x403e3d
push ebp
push edi
push edi
mov dword [esp + 0x24], str._remove
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], ebx
call dword [sym.imp.MSVCR71.dll__tempnam]
mov esi, dword [sym.imp.MSVCR71.dll_freopen]
mov ebp, eax
mov eax, dword [sym.imp.MSVCR71.dll__iob]
mov edi, 0x40c9d4
add eax, 0x40
push eax
push edi
push ebp
call esi
add esp, 0x14
test eax, eax
jne 0x403d32
push eax
push eax
push str.freopen_stderr
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [sym.imp.MSVCR71.dll__iob]
add eax, 0x20
push eax
push edi
push ebp
call esi
add esp, 0xc
test eax, eax
jne 0x403d5a
push eax
push eax
push str.freopen_stdout
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [esp + 0x14]
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x403d9f
lea eax, [esp + 0x18]
push eax
push 2
push ebx
push esi
call fcn.00402bf1
add esp, 0x10
cmp eax, 0x80000000
jne 0x403d98
mov eax, dword [sym.imp.MSVCR71.dll__iob]
push str._Could_not_load_Python_
add eax, 0x40
push eax
call dword [sym.imp.MSVCR71.dll_fprintf]
pop ecx
pop ecx
push esi
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov eax, dword [sym.imp.MSVCR71.dll__iob]
mov edi, dword [sym.imp.MSVCR71.dll_fflush]
add eax, 0x40
push eax
call edi
mov eax, dword [sym.imp.MSVCR71.dll__iob]
mov esi, dword [sym.imp.MSVCR71.dll_fclose]
add eax, 0x40
push eax
call esi
mov eax, dword [sym.imp.MSVCR71.dll__iob]
add eax, 0x20
push eax
call edi
mov eax, dword [sym.imp.MSVCR71.dll__iob]
add eax, 0x20
push eax
call esi
push 0x40c970
push ebp
call dword [sym.imp.MSVCR71.dll_fopen]
mov edi, eax
lea eax, [esp + 0x3c]
push edi
push 0x1000
push 1
push eax
call dword [sym.imp.MSVCR71.dll_fread]
push edi
mov ebx, eax
call esi
push ebp
call dword [sym.imp.MSVCR71.dll_remove]
and byte [esp + ebx + 0x54], 0
add esp, 0x30
cmp byte [esp + 0x24], 0
pop ebp
je 0x403e2d
push 0
lea eax, [esp + 0x24]
push str.uninstall_script
push eax
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [esp + 0xc]
push 0x40d340
call sub.MSVCR71.dll_strcpy
pop ecx
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
add esp, 0x1014
ret
Function at 0x401906
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x401915
pop dword [ebp - 0x38]
mov eax, 0x1b01137a
sub eax, 0x1ac0fa65
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x385f6
push 0
mov eax, 0x8cada583
add eax, 0x73933b9d
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0xf8ade183
sub ecx, 0xf8ad9d64
mov ebx, eax
mov edi, 0xcf1a76c6
add edi, 0x3127013a
add edi, dword [ebp - 0x38]
mov edx, 0x6263f32d
add edx, 0x39a4f985
xor dword [ebp - 0xc], 0x9dadfdd1
mov esi, dword [edi]
xor esi, edx
add dword [ebp - 0x18], 0x25f3ee24
mov dword [ebx], esi
sub dword [ebp - 0x24], 0xe85eb586
add ebx, 4
add edi, 0x63652fb3
add edi, 0x9c9ad051
loop 0x401974
add eax, 0x57a747db
add eax, 0xa859bb74
xor ebx, ebx
add ebx, eax
add eax, 0xd8d872f7
add eax, 0x27278d0e
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x401d25
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x1a4]
sub esp, 0x224
mov eax, dword [0x412320]
xor eax, ebp
mov dword [ebp + 0x1a0], eax
mov eax, dword [ebp + 0x1ac]
push ebx
push esi
mov esi, dword [ebp + 0x1b0]
push 0x104
lea ecx, [ebp - 0x68]
push ecx
push 0xffffffffffffffff
push eax
xor ebx, ebx
push ebx
push 0xfde9
mov dword [ebp - 0x6c], 0xfffffffd
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
je 0x401e01
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x68]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x78], eax
cmp eax, ebx
je 0x401e01
push edi
mov edi, dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
push ebx
call edi
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x70], eax
cmp eax, ebx
je 0x401e00
push eax
push dword [ebp - 0x78]
lea eax, [ebp - 0x68]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x401df3
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0x40e484
push dword [ebp - 0x70]
mov dword [ebp - 0x74], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x401df3
mov eax, dword [ebp - 0x7c]
movzx ecx, word [eax + 0xa]
mov dword [esi], ecx
movzx ecx, word [eax + 8]
mov dword [esi + 4], ecx
movzx ecx, word [eax + 0xe]
mov dword [esi + 8], ecx
movzx eax, word [eax + 0xc]
mov dword [esi + 0xc], eax
mov dword [ebp - 0x6c], ebx
push dword [ebp - 0x70]
push ebx
call edi
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
pop edi
mov ecx, dword [ebp + 0x1a0]
mov eax, dword [ebp - 0x6c]
pop esi
xor ecx, ebp
pop ebx
call fcn.004024bc
add ebp, 0x1a4
leave
ret

Function at 0x4024bc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412320]
jne 0x4024c6
repz ret
jmp fcn.00403ae7
Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call main
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call main
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call main
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call main
pop ecx
call sub.kernel32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call main
test eax, eax
jge 0x4032a5
push 8
call main
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x4032c9
push eax
call main
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call main
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call main
jmp 0x4031eb
Function at 0x440dc0
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x30
mov esi, dword [esp + 0x40]
lea eax, [esp + 0x12]
mov dword [esp + 8], 0x1e
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [esp + 0xc], esi
call sub.msvcrt.dll_fread
cmp eax, 0x1e
jne 0x440ff0
movzx eax, byte [esp + 0x13]
movzx edx, byte [esp + 0x14]
shl eax, 8
shl edx, 0x10
or eax, edx
movzx edx, byte [esp + 0x12]
or eax, edx
movzx edx, byte [esp + 0x15]
shl edx, 0x18
or eax, edx
cmp eax, 0x4034b50
jne 0x440fd0
movzx edx, byte [esp + 0x17]
movzx eax, byte [esp + 0x16]
movzx ecx, byte [esp + 0x2f]
shl edx, 8
or eax, edx
movzx edx, byte [esp + 0x19]
mov word [ebx + 4], ax
movzx eax, byte [esp + 0x18]
shl ecx, 8
shl edx, 8
or eax, edx
movzx edx, byte [esp + 0x1b]
mov word [ebx + 6], ax
movzx eax, byte [esp + 0x1a]
shl edx, 8
or eax, edx
movzx edx, byte [esp + 0x1d]
mov word [ebx + 8], ax
movzx eax, byte [esp + 0x1c]
shl edx, 8
or eax, edx
movzx edx, byte [esp + 0x1f]
mov word [ebx + 0xa], ax
movzx eax, byte [esp + 0x1e]
shl edx, 8
or eax, edx
movzx edx, byte [esp + 0x22]
mov word [ebx + 0xc], ax
movzx eax, byte [esp + 0x21]
shl edx, 0x10
shl eax, 8
or eax, edx
movzx edx, byte [esp + 0x20]
or eax, edx
movzx edx, byte [esp + 0x23]
shl edx, 0x18
or eax, edx
movzx edx, byte [esp + 0x26]
mov dword [ebx + 0x10], eax
movzx eax, byte [esp + 0x25]
shl edx, 0x10
shl eax, 8
or eax, edx
movzx edx, byte [esp + 0x24]
or eax, edx
movzx edx, byte [esp + 0x27]
shl edx, 0x18
or eax, edx
movzx edx, byte [esp + 0x2a]
mov dword [ebx + 0x14], eax
movzx eax, byte [esp + 0x29]
shl edx, 0x10
shl eax, 8
or eax, edx
movzx edx, byte [esp + 0x28]
or eax, edx
movzx edx, byte [esp + 0x2b]
shl edx, 0x18
or eax, edx
movzx edx, byte [esp + 0x2d]
mov dword [ebx + 0x18], eax
movzx eax, byte [esp + 0x2c]
shl edx, 8
or eax, edx
movzx edx, byte [esp + 0x2e]
mov word [ebx + 0x1c], ax
or edx, ecx
test ax, ax
mov word [ebx + 0x1e], dx
jne 0x440f84
xor edi, edi
test dx, dx
jne 0x440f31
add esp, 0x30
mov eax, edi
pop ebx
pop esi
pop edi
ret 4
movzx edx, dx
add edx, 1
mov dword [esp], edx
call fcn.0053e9a0
test eax, eax
mov dword [ebx + 0x24], eax
je 0x441000
movzx edx, word [ebx + 0x1e]
mov dword [esp + 0xc], esi
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [esp + 8], edx
call sub.msvcrt.dll_fread
movzx edx, word [ebx + 0x1e]
cmp eax, edx
jne 0x440ff0
mov edx, dword [ebx + 0x24]
mov byte [edx + eax], 0
add esp, 0x30
mov eax, edi
pop ebx
pop esi
pop edi
ret 4
movzx eax, ax
add eax, 1
mov dword [esp], eax
call fcn.0053e9a0
test eax, eax
mov dword [ebx + 0x20], eax
je 0x441000
movzx edx, word [ebx + 0x1c]
mov dword [esp + 0xc], esi
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [esp + 8], edx
call sub.msvcrt.dll_fread
movzx edx, word [ebx + 0x1c]
cmp eax, edx
jne 0x440ff0
mov edx, dword [ebx + 0x20]
mov byte [edx + eax], 0
movzx edx, word [ebx + 0x1e]
jmp 0x440f1f
mov dword [esp + 8], str.whoops:_didnt_find_expected_signature_n
mov dword [esp + 4], 0x5604a8
mov dword [esp], 3
call fcn.00482510
lea esi, [esi]
add esp, 0x30
mov edi, 0x80000000
mov eax, edi
pop ebx
pop esi
pop edi
ret 4
mov edi, 0xfffffff4
jmp 0x440f26
Function at 0x441010
Capabilities:
Enumerate pe sections
Write file on windows

Disassembly:
push esi
push ebx
mov ebx, ecx
sub esp, 0x34
movzx eax, word [ecx + 4]
mov esi, dword [esp + 0x40]
mov byte [esp + 0x12], 0x50
mov byte [esp + 0x13], 0x4b
mov byte [esp + 0x16], al
movsx eax, ah
mov byte [esp + 0x17], al
movzx eax, word [ecx + 6]
mov byte [esp + 0x14], 3
mov byte [esp + 0x15], 4
mov byte [esp + 0x18], al
movsx eax, ah
mov byte [esp + 0x19], al
movzx eax, word [ecx + 8]
mov byte [esp + 0x1a], al
movsx eax, ah
mov byte [esp + 0x1b], al
movzx eax, word [ecx + 0xa]
mov byte [esp + 0x1c], al
movsx eax, ah
mov byte [esp + 0x1d], al
movzx eax, word [ecx + 0xc]
mov byte [esp + 0x1e], al
movsx eax, ah
mov byte [esp + 0x1f], al
mov eax, dword [ecx + 0x10]
mov edx, eax
sar edx, 8
mov byte [esp + 0x20], al
mov byte [esp + 0x21], dl
mov edx, eax
sar eax, 0x18
mov byte [esp + 0x23], al
mov eax, dword [ecx + 0x14]
sar edx, 0x10
mov byte [esp + 0x22], dl
mov edx, eax
sar edx, 8
mov byte [esp + 0x24], al
mov byte [esp + 0x25], dl
mov edx, eax
sar eax, 0x18
mov byte [esp + 0x27], al
mov eax, dword [ecx + 0x18]
sar edx, 0x10
mov byte [esp + 0x26], dl
mov edx, eax
sar edx, 8
mov byte [esp + 0x28], al
mov byte [esp + 0x29], dl
mov edx, eax
sar eax, 0x18
mov byte [esp + 0x2b], al
movzx eax, word [ecx + 0x1c]
sar edx, 0x10
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x1e
mov dword [esp + 4], 1
mov byte [esp + 0x2c], al
movsx eax, ah
mov byte [esp + 0x2d], al
movzx eax, word [ecx + 0x1e]
mov byte [esp + 0x2a], dl
mov byte [esp + 0x2e], al
movsx eax, ah
mov byte [esp + 0x2f], al
lea eax, [esp + 0x12]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
cmp eax, 0x1e
jne 0x441163
movzx eax, word [ebx + 0x1c]
test ax, ax
jne 0x441170
movzx eax, word [ebx + 0x1e]
test ax, ax
jne 0x441140
add esp, 0x34
xor eax, eax
pop ebx
pop esi
ret 4
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 0xc], esi
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
movzx edx, word [ebx + 0x1e]
cmp eax, edx
je 0x44112f
add esp, 0x34
mov eax, 0x80000000
pop ebx
pop esi
ret 4
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 0xc], esi
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
movzx edx, word [ebx + 0x1c]
cmp eax, edx
je 0x441126
jmp 0x441163
Function at 0x441b00
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov ebx, ecx
sub esp, 0x14
mov esi, dword [esp + 0x20]
cmp ecx, esi
je 0x441bde
mov eax, dword [ecx + 0x30]
test eax, eax
je 0x441b22
mov dword [esp], eax
call fcn.0053e970
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x441b31
mov dword [esp], eax
call fcn.0053e970
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x441b40
mov dword [esp], eax
call fcn.0053e970
movzx eax, word [esi + 4]
mov word [ebx + 4], ax
movzx eax, word [esi + 6]
mov word [ebx + 6], ax
movzx eax, word [esi + 8]
mov word [ebx + 8], ax
movzx eax, word [esi + 0xa]
mov word [ebx + 0xa], ax
movzx eax, word [esi + 0xc]
mov word [ebx + 0xc], ax
movzx eax, word [esi + 0xe]
mov word [ebx + 0xe], ax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
movzx edx, word [esi + 0x1c]
mov word [ebx + 0x1c], dx
movzx eax, word [esi + 0x1e]
test dx, dx
mov word [ebx + 0x1e], ax
movzx eax, word [esi + 0x20]
mov word [ebx + 0x20], ax
movzx ecx, word [esi + 0x22]
mov word [ebx + 0x22], cx
movzx ecx, word [esi + 0x24]
mov word [ebx + 0x24], cx
mov ecx, dword [esi + 0x28]
mov dword [ebx + 0x28], ecx
mov ecx, dword [esi + 0x2c]
mov dword [ebx + 0x2c], ecx
jne 0x441be8
test ax, ax
mov dword [ebx + 0x30], 0
jne 0x441c12
mov dword [ebx + 0x38], 0
movzx eax, word [ebx + 0x1e]
test ax, ax
jne 0x441c3c
mov dword [ebx + 0x34], 0
add esp, 0x14
mov eax, ebx
pop ebx
pop esi
ret 4
add edx, 1
mov dword [esp], edx
call fcn.0053e9a0
test eax, eax
mov dword [ebx + 0x30], eax
je 0x441c09
mov edx, dword [esi + 0x30]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_strcpy
movzx eax, word [ebx + 0x20]
test ax, ax
je 0x441bc7
add eax, 1
mov dword [esp], eax
call fcn.0053e9a0
test eax, eax
mov dword [ebx + 0x38], eax
je 0x441bce
mov edx, dword [esi + 0x38]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_strcpy
movzx eax, word [ebx + 0x1e]
test ax, ax
je 0x441bd7
add eax, 1
mov dword [esp], eax
call fcn.0053e9a0
test eax, eax
mov dword [ebx + 0x34], eax
je 0x441bde
movzx ecx, word [ebx + 0x1e]
mov edx, dword [esi + 0x34]
mov dword [esp], eax
add ecx, 1
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call sub.msvcrt.dll_memcpy
add esp, 0x14
mov eax, ebx
pop ebx
pop esi
ret 4
Function at 0x441e40
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov eax, 0x801c
push edi
push esi
push ebx
call fcn.004be3f0
sub esp, eax
mov dword [esp + 8], 0
mov ebp, dword [esp + 0x8038]
lea esi, [esp + 0x10]
mov dword [esp + 4], 0
mov edi, dword [esp + 0x8034]
mov dword [esp], 0
call fcn.004a3180
mov dword [ebp], eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 1
mov dword [esp], esi
call sub.msvcrt.dll_fread
mov dword [esp], edi
mov ebx, eax
call sub.msvcrt.dll_ferror
test eax, eax
je 0x441ee0
call dword [sym.imp.msvcrt.dll__errno]
mov edx, dword [eax]
cmp edx, 2
je 0x441f70
cmp edx, 0xd
mov eax, 0xffffffff
mov edx, 0x80000000
cmovne eax, edx
add esp, 0x801c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov eax, dword [esp + 0x8030]
mov dword [esp], eax
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x441eab
test ebx, ebx
je 0x441f82
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov eax, dword [ebp]
mov dword [esp], eax
call fcn.004a3180
mov dword [ebp], eax
mov eax, dword [esp + 0x8030]
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
mov dword [esp], esi
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
cmp ebx, eax
je 0x441e81
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.fwrite__d_bytes_failed_n
mov dword [esp + 4], 0x5606fc
mov dword [esp], 3
call fcn.00482510
add esp, 0x801c
mov eax, 0x80000000
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
add esp, 0x801c
mov eax, 0xfffffffe
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
xor eax, eax
jmp 0x441ecc

Function at 0x441f90
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp + 8], 0
mov ebx, dword [esp + 0x28]
mov dword [esp + 4], 0
mov esi, dword [esp + 0x2c]
mov dword [esp], 0
call fcn.004a3180
test ebx, ebx
mov dword [esi], eax
jne 0x441fd0
xor eax, eax
add esp, 0x14
pop ebx
pop esi
ret 0x10
mov edx, dword [esp + 0x24]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004a3180
mov dword [esi], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
cmp ebx, eax
je 0x441fbf
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.fwrite__d_bytes_failed_n
mov dword [esp + 4], 0x5606fc
mov dword [esp], 3
call fcn.00482510
mov eax, 0x80000000
jmp 0x441fc1
Function at 0x442040
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov eax, 0x802c
push edi
push esi
push ebx
call fcn.004be3f0
sub esp, eax
mov ebp, dword [esp + 0x804c]
mov ebx, dword [esp + 0x8048]
test ebp, ebp
je 0x442081
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004a3180
mov dword [ebp], eax
test ebx, ebx
lea edi, [esp + 0x20]
jne 0x4420db
jmp 0x442154
test ebp, ebp
je 0x4420ae
mov eax, dword [esp + 0x18]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [ebp]
mov dword [esp], eax
call fcn.004a3180
mov dword [ebp], eax
mov eax, dword [esp + 0x8040]
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp], edi
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
cmp esi, eax
jne 0x442163
sub ebx, dword [esp + 0x18]
je 0x442154
mov eax, dword [esp + 0x8044]
cmp ebx, 0x7fff
mov ecx, 0x8000
cmovle ecx, ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
call sub.msvcrt.dll_fread
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
mov esi, eax
je 0x442090
mov eax, dword [esp + 0x18]
mov dword [esp + 8], str.fread__d_bytes_failed_n
mov dword [esp + 4], 0x5606fc
mov dword [esp], 3
mov dword [esp + 0xc], eax
call fcn.00482510
add esp, 0x802c
mov eax, 0x80000000
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
add esp, 0x802c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.fwrite__d_bytes_failed_n
mov dword [esp + 4], 0x5606fc
mov dword [esp], 3
call fcn.00482510
add esp, 0x802c
mov eax, 0x80000000
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
Function at 0x442d90
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov eax, 0x803c
push edi
push esi
push ebx
call fcn.004be3f0
sub esp, eax
mov edx, dword [esp + 0x8058]
mov ebx, dword [esp + 0x8060]
mov ecx, dword [esp + 0x805c]
mov eax, dword [esp + 0x8054]
mov dword [esp + 0x2c], edx
mov edi, dword [esp + 0x8050]
mov dword [esp + 0x24], ebx
mov ebx, edx
mov esi, dword [esp + 0x8064]
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x28], eax
xor edx, eax
mov eax, dword [esp + 0x24]
xor eax, ebx
or edx, eax
je 0x442eb8
test esi, esi
je 0x442eb8
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x2c], eax
jg 0x442ed5
jge 0x442ec7
lea ebp, [esp + 0x30]
mov eax, dword [esp + 0x20]
cmp esi, 0x8000
mov ebx, 0x8000
mov dword [esp + 8], 0
cmovb ebx, esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fseek
test eax, eax
jne 0x442ee0
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
mov dword [esp], ebp
call sub.msvcrt.dll_fread
cmp ebx, eax
jne 0x442f16
mov eax, dword [esp + 0x28]
mov dword [esp + 8], 0
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fseek
test eax, eax
jne 0x442f50
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
mov dword [esp], ebp
call sub.msvcrt.dll_fwrite
cmp ebx, eax
jne 0x442f86
xor edx, edx
add dword [esp + 0x20], ebx
adc dword [esp + 0x24], edx
add dword [esp + 0x28], ebx
adc dword [esp + 0x2c], edx
sub esi, ebx
jne 0x442e10
xor eax, eax
add esp, 0x803c
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x28], eax
jb 0x442e0c
mov eax, 0x80000000
jmp 0x442eba
mov eax, dword [esp + 0x20]
mov dword [esp + 8], str.filemove_src_seek__ld_failed_n
mov dword [esp + 4], 0x5606fc
mov dword [esp], 3
mov dword [esp + 0xc], eax
call fcn.00482510
add esp, 0x803c
mov eax, 0x80000000
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.filemove_read__ld_off_ld_failed_n
mov dword [esp + 4], 0x5606fc
mov dword [esp + 0x10], eax
mov dword [esp], 3
call fcn.00482510
add esp, 0x803c
mov eax, 0x80000000
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
mov eax, dword [esp + 0x28]
mov dword [esp + 8], str.filemove_dst_seek__ld_failed_n
mov dword [esp + 4], 0x5606fc
mov dword [esp], 3
mov dword [esp + 0xc], eax
call fcn.00482510
add esp, 0x803c
mov eax, 0x80000000
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.filemove_write__ld_off_ld_failed_n
mov dword [esp + 4], 0x5606fc
mov dword [esp + 0x10], eax
mov dword [esp], 3
call fcn.00482510
add esp, 0x803c
mov eax, 0x80000000
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
Function at 0x443200
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x40]
mov esi, dword [ebx + 0x44]
mov eax, dword [ebx + 0x40]
mov dword [esp], esi
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov ebp, eax
je 0x4432f0
mov eax, dword [edi]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov dword [esp + 8], 0
movzx edx, word [ebx + 0x20]
movzx eax, word [ebx + 0x22]
add edx, dword [ebx + 0x58]
lea eax, [edx + eax + 0x1e]
mov dword [esp + 4], eax
mov eax, dword [edi]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
test eax, eax
jne 0x44327b
movzx eax, word [ebx + 0x36]
test ax, ax
je 0x4432c0
cmp ax, 8
je 0x443290
mov dword [esp], ebp
call sub.msvcrt.dll_free
xor eax, eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], esi
mov dword [esp + 4], ebp
mov dword [esp + 0xc], eax
mov eax, dword [edi]
mov dword [esp], eax
call fcn.0045b5c0
mov edx, eax
mov eax, ebp
test dl, dl
je 0x44327b
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov eax, dword [edi]
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp], ebp
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fread
cmp esi, eax
jne 0x44327b
add esp, 0x2c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 4
xor eax, eax
jmp 0x443285