joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45bfc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, eax
push edi
push esi
xor esi, esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x74]
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0x44], ecx
movzx ecx, byte [esp + 0x88]
mov dword [esp + 0x40], edx
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x78]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x38], ecx
mov ecx, ebx
mov dword [esp + 0x18], ebx
mov ebx, esi
add ecx, 0xffffffff
mov dword [esp + 0x1c], esi
mov esi, eax
mov eax, dword [esp + 0x7c]
adc ebx, 0xffffffff
mov dword [esp + 0x34], edx
imul eax, edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebx
lea ebx, [ebp - 1]
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x7c]
mov ecx, eax
mov eax, esi
mov esi, dword [esp + 0x48]
mov dword [esp + 0x3c], 0
mul dword [esp + 0x7c]
mov dword [esp + 0xc], 0
imul ebx, dword [esp + 0x80]
mov edi, edx
add edi, ecx
mov ecx, esi
mov edx, edi
mov edi, ebx
movzx ebx, byte [esp + 0x84]
shld edx, eax, 3
shl eax, 3
imul ecx, ebx
mov dword [esp], eax
mov dword [esp + 4], edx
lea ecx, [ecx + edi*8]
mov dword [esp + 8], ecx
call fcn.004a0f50
mov edi, dword [esp + 0x1c]
add eax, 2
mul esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
add eax, 7
adc edx, 0
shrd eax, edx, 3
shr edx, 3
add eax, dword [esp + 0x20]
adc edx, dword [esp + 0x24]
mov dword [esp], eax
imul ebx, ebp
mov dword [esp + 4], edx
call fcn.004a0f50
xor edx, edx
add eax, dword [esp + 0x2c]
div ebp
imul ebx, eax
mov eax, dword [esp + 0x70]
test eax, eax
je 0x45c11a
mov eax, dword [esp + 0x70]
lea ecx, [ebx + 9]
xor edx, edx
mov dword [esp + 0xc], 0
mov dword [esp + 0x4c], ecx
sub eax, 1
add eax, dword [esp + 0x40]
adc edx, dword [esp + 0x44]
xor edi, edi
add eax, ecx
adc edx, edi
mov edi, dword [esp + 0x70]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], edi
call fcn.004a0f50
mov edi, dword [esp + 0x40]
imul eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x4c]
lea edx, [ecx + edi]
sub eax, edx
xor edx, edx
sub dword [esp + 0x30], eax
sbb dword [esp + 0x34], edx
mov ecx, dword [esp + 0x30]
mov eax, ebx
mov ebx, dword [esp + 0x34]
xor edx, edx
mov esi, dword [esp + 0x80]
mov dword [esp + 0xc], 0
sub ecx, eax
sbb ebx, edx
mov dword [esp], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
call fcn.004a0f50
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ebx, eax
lea eax, [eax + 2]
mul dword [esp + 0x48]
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
add eax, 7
adc edx, 0
shrd eax, edx, 3
shr edx, 3
add eax, dword [esp + 0x20]
adc edx, dword [esp + 0x24]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004a0f50
xor edx, edx
add eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x38]
div ebp
mov edx, dword [esp + 0x8c]
mov dword [edx], ebx
mov edx, dword [esp + 0x90]
imul eax, ebp
mov ebp, dword [esp + 0x3c]
mov dword [edx], eax
mul dword [esp + 0x7c]
mov dword [esp + 8], edi
mov dword [esp + 0xc], ebp
shld edx, eax, 3
shl eax, 3
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004a0f50
mov edx, dword [esp + 0x94]
sub eax, 2
mov dword [edx], eax
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x464350
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
sub esp, 0x4c
lea edx, [esp + 0x3c]
mov ebp, dword [esp + 0x64]
mov dword [esp + 4], esi
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], edx
mov dword [esp + 8], ecx
mov dword [esp], eax
call fcn.00415e50
mov ebx, eax
mov eax, edx
or eax, ebx
jne 0x464430
mov ecx, dword [esp + 0x3c]
cmp ecx, ebp
jne 0x4643a1
add esp, 0x4c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [fcn.004a1b90]
mov dword [esp + 0x2c], ecx
mov dword [esp], 2
call ebx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 8], 0x5451a0
mov dword [esp + 4], str.__s__Couldnt_write_all_requested_data._Wrote__Iu_of__Iu_bytes_to_position__I64u.
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5451e4
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov ebx, 5
mov dword [esp], eax
call sub.msvcrt.dll_fflush
add esp, 0x4c
mov eax, ebx
xor edx, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], edx
mov dword [esp], ebx
mov dword [esp + 0x2c], edx
call fcn.0041d490
mov esi, dword [fcn.004a1b90]
mov dword [esp], 2
mov edi, eax
call esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x5451a0
mov dword [esp + 4], str.__s__Couldnt_write_requested_data:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5451e4
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call esi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov edx, dword [esp + 0x2c]
add esp, 0x4c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x465e80
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
lea eax, [esp + 0x20]
mov dword [esp], eax
call fcn.004276f0
mov ebx, eax
mov eax, edx
mov esi, edx
or eax, ebx
jne 0x465f00
mov ecx, dword [esp + 0x28]
mov edx, 0x10624dd3
mov eax, ecx
sar ecx, 0x1f
imul edx
sar edx, 6
sub edx, ecx
xor edx, dword [esp + 0x20]
mov dword [esp], edx
call sub.msvcrt.dll_srand
call sub.msvcrt.dll_rand
mov edi, eax
call sub.msvcrt.dll_rand
mov ebp, eax
call sub.msvcrt.dll_rand
shl ebp, 8
shl eax, 0x10
xor ebp, eax
call sub.msvcrt.dll_rand
xor edi, ebp
mov edx, esi
shl eax, 0x18
xor edi, eax
mov eax, dword [esp + 0x50]
mov dword [eax], edi
add esp, 0x3c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.0041d490
mov edi, dword [fcn.004a1b90]
mov dword [esp], 2
mov ebp, eax
call edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x5451a0
mov dword [esp + 4], str.__s__fat_utctime_failed:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call edi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5451e4
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call edi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
add esp, 0x3c
mov eax, ebx
mov edx, esi
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x465f90
Capabilities:
Write file on windows

Disassembly:
push edi
xor edx, edx
xor ecx, ecx
push esi
push ebx
sub esp, 0x30
mov eax, dword [esp + 0x44]
mov dword [esp + 4], 0x200
mov dword [esp], eax
mov eax, dword [esp + 0x40]
call fcn.004640d0
mov ebx, eax
mov eax, edx
or eax, ebx
jne 0x465fc3
add esp, 0x30
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], edx
mov dword [esp], ebx
mov dword [esp + 0x2c], edx
call fcn.0041d490
mov esi, dword [fcn.004a1b90]
mov dword [esp], 2
mov edi, eax
call esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x5451a0
mov dword [esp + 4], str.__s__Error_while_reading_boot_sector:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5451e4
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call esi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov edx, dword [esp + 0x2c]
add esp, 0x30
mov eax, ebx
pop ebx
pop esi
pop edi
ret
Function at 0x466050
Capabilities:
Write file on windows

Disassembly:
push edi
xor edx, edx
xor ecx, ecx
push esi
push ebx
sub esp, 0x30
mov eax, dword [esp + 0x44]
mov dword [esp + 4], 0x200
mov dword [esp], eax
mov eax, dword [esp + 0x40]
call fcn.00464350
mov ebx, eax
mov eax, edx
or eax, ebx
jne 0x466083
add esp, 0x30
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], edx
mov dword [esp], ebx
mov dword [esp + 0x2c], edx
call fcn.0041d490
mov esi, dword [fcn.004a1b90]
mov dword [esp], 2
mov edi, eax
call esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x5451a0
mov dword [esp + 4], str.__s__Error_while_writing_boot_sector:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5451e4
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call esi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov edx, dword [esp + 0x2c]
add esp, 0x30
mov eax, ebx
pop ebx
pop esi
pop edi
ret

Function at 0x466110
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov eax, dword [esp + 0x48]
movzx ebx, byte [esp + 0x50]
mov dword [esp + 4], 0x200
mov edx, dword [esp + 0x4c]
mov ecx, ebx
xor ebx, ebx
shld edx, eax, cl
shl eax, cl
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
mov ecx, edx
mov edx, eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov eax, dword [esp + 0x40]
call fcn.004640d0
mov ebx, eax
mov eax, edx
or eax, ebx
jne 0x466162
add esp, 0x30
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], edx
mov dword [esp], ebx
mov dword [esp + 0x2c], edx
call fcn.0041d490
mov esi, dword [fcn.004a1b90]
mov dword [esp], 2
mov edi, eax
call esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x5451a0
mov dword [esp + 4], str.__s__Error_while_reading_backup_boot_sector:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5451e4
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call esi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov edx, dword [esp + 0x2c]
add esp, 0x30
mov eax, ebx
pop ebx
pop esi
pop edi
ret

Function at 0x468520
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
cmp ecx, 0xb
jbe 0x468534
xor eax, eax
ret
mov dword [esp + 8], 0
mov dword [esp + 4], 1
jmp fcn.00464940
Function at 0x46a3d0
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov ecx, dword [eax + 0xdc]
cmp dword [eax + 0x20], 2
mov ebx, dword [ecx + 0x18]
lea esi, [ebx + 0x41]
je 0x46a3eb
lea esi, [ebx + 0x25]
movzx ecx, byte [esi]
mov edi, ecx
and ecx, 0xfffffffe
or edi, 1
test edx, edx
cmovne ecx, edi
mov byte [esi], cl
mov dword [esp + 4], ebx
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00466050
mov ebx, eax
mov eax, edx
or eax, ebx
jne 0x46a420
add esp, 0x30
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], edx
mov dword [esp], ebx
mov dword [esp + 0x2c], edx
call fcn.0041d490
mov esi, dword [fcn.004a1b90]
mov dword [esp], 2
mov edi, eax
call esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x546ba0
mov dword [esp + 4], str.__s__Failed_to_write_boot_sector_to_device:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x546bdd
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call esi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov edx, dword [esp + 0x2c]
add esp, 0x30
mov eax, ebx
pop ebx
pop esi
pop edi
ret
Function at 0x46b070
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, 1
add eax, 0xdc
jmp 0x46a5d0

Function at 0x46b3b0
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov ebx, dword [esp + 0x30]
test byte [ebx + 0x1c], 1
jne 0x46b3de
mov ecx, dword [ebx + 0xdc]
mov edx, dword [ecx + 0xc]
mov eax, dword [ecx + 8]
mov edi, edx
or edi, eax
je 0x46b3f0
add eax, 1
adc edx, 0
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
add esp, 0x20
xor eax, eax
xor edx, edx
pop ebx
pop esi
pop edi
ret
mov edx, 1
mov eax, ebx
call fcn.0046a3d0
mov esi, eax
mov eax, edx
or eax, esi
jne 0x46b423
mov eax, dword [ebx + 0xdc]
xor edx, edx
mov dword [eax + 8], 1
mov dword [eax + 0xc], 0
add esp, 0x20
xor eax, eax
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], edx
mov dword [esp], esi
call fcn.0041d490
mov ebx, dword [fcn.004a1b90]
mov dword [esp], 2
mov edi, eax
call ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x546ba0
mov dword [esp + 4], str.__s__Failed_to_set_the_dirty_flag_for_volume:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x546bdd
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
jmp 0x46b3de
Function at 0x46d4c0
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 0x1c]
and eax, 1
jne 0x46d4f3
mov edx, dword [ebx + 0xdc]
mov ecx, dword [edx + 0xc]
mov esi, dword [edx + 8]
mov edi, ecx
or edi, esi
je 0x46d500
mov edi, 1
cmp edi, esi
sbb eax, ecx
jae 0x46d570
add esp, 0x20
xor eax, eax
xor edx, edx
pop ebx
pop esi
pop edi
ret
mov dword [esp], 2
mov ebx, dword [fcn.004a1b90]
call ebx
mov dword [esp + 8], 0x546be0
mov dword [esp + 4], str.__s__Attempted_to_clear_dirty_flag_when_not_set.
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x546bdd
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
add esp, 0x20
xor eax, eax
xor edx, edx
pop ebx
pop esi
pop edi
ret
mov eax, dword [edx + 0x14]
or eax, dword [edx + 0x10]
jne 0x46d4f3
mov eax, dword [ebx + 0x24]
test eax, eax
jne 0x46d4f3
xor edx, edx
mov eax, ebx
call fcn.0046a3d0
mov esi, eax
mov eax, edx
or eax, esi
jne 0x46d5b1
mov eax, dword [ebx + 0xdc]
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
jmp 0x46d4f3
mov dword [esp + 4], edx
mov dword [esp], esi
call fcn.0041d490
mov dword [esp], 2
mov ebx, dword [fcn.004a1b90]
mov edi, eax
call ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x546ba0
mov dword [esp + 4], str.__s__Failed_to_clear_the_dirty_flag_for_volume:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x46d527

Function at 0x46e610
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
lea edi, [esp + 0x3c]
mov dword [esp + 4], 4
mov dword [esp + 8], edi
mov dword [esp], 0
mov dword [esp + 0x3c], 0
call fcn.00427280
mov ebx, eax
mov eax, edx
mov esi, edx
or eax, ebx
jne 0x46e661
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x60]
mov dword [eax], edx
mov edx, dword [esp + 0x64]
mov dword [edx], eax
add esp, 0x4c
mov eax, ebx
mov edx, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.0041d490
mov ebp, dword [fcn.004a1b90]
mov dword [esp], 2
mov dword [esp + 0x2c], eax
call ebp
mov edx, dword [esp + 0x2c]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x547aa0
mov dword [esp + 0x10], edx
mov dword [esp + 4], str.__s__Error_while_allocating_memory_for_bitmap_struct:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebp
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x547ac8
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebp
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x46e655
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.0041d440
add esp, 0x4c
mov eax, ebx
mov edx, esi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x46f750
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebp, dword [esp + 0x64]
mov edi, dword [esp + 0x68]
mov dword [esp + 0x3c], 0
mov esi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x74]
test ebp, ebp
jne 0x46f830
mov eax, esi
and eax, edi
cmp eax, 0xffffffff
je 0x46f79c
mov eax, dword [esp + 0x60]
mov edx, esi
cmp edi, dword [eax + 0x80]
sbb edx, dword [eax + 0x84]
jae 0x46f847
mov eax, dword [esp + 0x80]
mov eax, dword [eax]
test eax, eax
je 0x46f930
mov edx, dword [eax + 0xe4]
mov dword [esp + 0x3c], eax
test edx, edx
je 0x46f7e0
add eax, 0xe4
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebx
call fcn.0041d440
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x7c]
mov dword [esp + 8], ecx
mov ecx, ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x78]
mov dword [esp], edi
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 4], esi
call fcn.0046f0a0
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x46f823
mov ebx, dword [esp + 0x80]
mov ebx, dword [ebx]
test ebx, ebx
je 0x46f900
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp ebp, 1
jne 0x46f847
mov eax, dword [esp + 0x60]
mov edx, esi
cmp edi, dword [eax + 0x48]
sbb edx, dword [eax + 0x4c]
jb 0x46f79c
mov ebx, dword [fcn.004a1b90]
mov dword [esp], 2
call ebx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], esi
mov dword [esp + 8], 0x5481ff
mov dword [esp + 4], str.__s__Invalid_start_block_number_for_stream:__I64u
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5481fc
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x46f920
mov eax, dword [esp + 0x80]
mov edx, 0
mov esi, dword [eax]
mov eax, 0x16
test esi, esi
jne 0x46f823
lea ebx, [esp + 0x3c]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], eax
call fcn.0041d440
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
jmp 0x46f823
mov ebx, edx
or ebx, eax
jne 0x46f8d3
mov ebx, dword [esp + 0x80]
mov dword [ebx], ecx
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x16
xor edx, edx
jmp 0x46f823
lea eax, [esp + 0x3c]
mov dword [esp + 4], 0xe8
mov dword [esp + 8], eax
mov dword [esp], 0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ecx
call fcn.00427280
mov ebx, edx
or ebx, eax
je 0x46f7d4
jmp 0x46f80a
Function at 0x472a30
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push esi
push ebx
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ebx
pop ebx
pop esi
jmp fcn.004726b0
Function at 0x477b30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, eax
push edi
mov edi, edx
push esi
lea esi, [edx + ecx]
push ebx
sub esp, 0x3c
mov ebx, dword [eax]
mov eax, dword [ebx]
cmp eax, esi
jb 0x477ba5
test ecx, ecx
je 0x477b74
mov dword [esp + 0x24], edi
mov eax, edi
mov ebp, 1
mov ecx, eax
mov edx, eax
mov edi, ebp
add eax, 1
and ecx, 7
shr edx, 3
shl edi, cl
mov ecx, edi
or byte [ebx + edx + 0x10], cl
cmp esi, eax
jne 0x477b55
mov edi, dword [esp + 0x24]
cmp dword [ebx + 4], esi
jb 0x477ba0
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
add edx, eax
cmp edx, edi
jbe 0x477b8d
cmp eax, esi
jb 0x477c30
add esp, 0x3c
xor ebx, ebx
xor edx, edx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebx + 4], esi
jmp 0x477b79
lea edx, [esi + 0xff]
shr eax, 3
mov dword [esp + 4], ebx
xor dl, dl
add eax, 0x10
mov dword [esp + 0x10], ebp
mov dword [esp + 0x2c], edx
shr edx, 3
mov dword [esp + 0x28], edx
add edx, 0x10
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp], 0
mov dword [esp + 0x24], ecx
call fcn.00427410
mov ecx, dword [esp + 0x24]
mov ebx, eax
mov eax, edx
or eax, ebx
jne 0x477c50
mov ebx, dword [ebp]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x24], ecx
mov eax, dword [ebx]
mov dword [esp + 4], 0
shr eax, 3
sub edx, eax
lea eax, [ebx + eax + 0x10]
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov dword [ebx], eax
jmp 0x477b46
mov ecx, dword [ebx + 4]
mov edx, esi
mov eax, ebx
xor ebx, ebx
call fcn.004779c0
add esp, 0x3c
mov eax, ebx
xor edx, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], edx
mov dword [esp], ebx
mov dword [esp + 0x24], edx
call fcn.0041d490
mov esi, dword [fcn.004a1b90]
mov dword [esp], 2
mov edi, eax
call esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x5496cd
mov dword [esp + 4], str.__s__Error_while_expanding_dir_bitmap:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5496ca
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call esi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov edx, dword [esp + 0x24]
add esp, 0x3c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x47a790
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x50
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x38], 0x474280
mov edx, dword [esp + 0x64]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], ecx
mov ecx, dword [eax]
mov dword [esp + 0xc], 0
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0047a160
mov ebx, eax
mov eax, edx
or eax, ebx
jne 0x47a810
add esp, 0x50
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], edx
mov dword [esp], ebx
mov dword [esp + 0x2c], edx
call fcn.0041d490
mov esi, dword [fcn.004a1b90]
mov dword [esp], 2
mov edi, eax
call esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x5496cd
mov dword [esp + 4], str.__s__Failed_to_read_directory:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5496ca
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call esi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov edx, dword [esp + 0x2c]
add esp, 0x50
mov eax, ebx
pop ebx
pop esi
pop edi
ret