joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406e50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov edi, ecx
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
mov dword [esp], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
lea esi, [esp + 0x18]
push ecx
push esi
call fcn.0041cb10
add esp, 8
test eax, eax
jne 0x406fd5
mov eax, esp
push eax
push 0
push esi
push edi
call fcn.0041c710
add esp, 0x10
test eax, eax
jne 0x406fdc
test byte [0x4b332c], 2
jne 0x406f75
push dword [edi + 0x10]
call fcn.00411820
add esp, 4
lea ecx, [esp + 0x20]
push edx
push eax
push str.Zeroing_journal_device:
push ecx
push edi
call fcn.0041e390
add esp, 0x14
push dword [edi + 0x10]
call fcn.00411820
add esp, 4
test eax, eax
mov ecx, edi
jle 0x406f63
mov ebx, eax
mov dword [esp + 4], 0
xor esi, esi
mov dword [esp + 8], ecx
cmp ebx, 0x400
mov edi, 0x400
cmovb edi, ebx
lea edx, [esp + 0xc]
push edx
lea edx, [esp + 0x14]
push edx
push edi
push esi
push dword [esp + 0x14]
push ecx
call fcn.0041c890
add esp, 0x18
test eax, eax
jne 0x406faf
mov eax, dword [esp + 4]
add eax, edi
adc esi, 0
push esi
mov dword [esp + 8], eax
push eax
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x14]
call fcn.0041e4a0
add esp, 0x10
sub ebx, edi
mov ecx, dword [esp + 8]
jg 0x406f10
push 0
lea eax, [esp + 0x24]
push eax
push ecx
mov edi, ecx
call fcn.0041e530
add esp, 0xc
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 0x14]
inc eax
push dword [esp]
push 1
push 0
push eax
push dword [edi + 4]
call fcn.0041abc0
add esp, 0x14
mov esi, eax
push dword [esp]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov dword [esp], 0
test esi, esi
jne 0x406fe9
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [esp + 0xc]
push dword [esp + 0x18]
push dword [esp + 0x18]
push str.while_zeroing_journal_device__block__llu__count__d_
push eax
push str.create_journal_dev
call fcn.00422cf0
add esp, 0x18
push 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
push str.while_splitting_the_journal_size
jmp 0x406fe1
push str.while_initializing_journal_superblock
push 0x4882ad
push eax
jmp 0x406ff4
push str.while_writing_journal_superblock
push 0x4882ad
push esi
push str.create_journal_dev
call fcn.00422cf0
add esp, 0x10
push 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop dword [eax + eax]
Function at 0x407aa0
Capabilities:
Terminate process
Write file on windows

Disassembly:
push edi
push esi
sub esp, 0x100
mov esi, dword [esp + 0x10c]
xorps xmm0, xmm0
movups xmmword [esp + 0xf0], xmm0
movups xmmword [esp + 0xe1], xmm0
movups xmmword [esp + 0xd1], xmm0
movups xmmword [esp + 0xc1], xmm0
movups xmmword [esp + 0xb1], xmm0
movups xmmword [esp + 0xa1], xmm0
movups xmmword [esp + 0x91], xmm0
movups xmmword [esp + 0x81], xmm0
movups xmmword [esp + 0x71], xmm0
movups xmmword [esp + 0x61], xmm0
movups xmmword [esp + 0x51], xmm0
movups xmmword [esp + 0x41], xmm0
movups xmmword [esp + 0x31], xmm0
movups xmmword [esp + 0x21], xmm0
movups xmmword [esp + 0x11], xmm0
movups xmmword [esp + 1], xmm0
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 1
call edi
add esp, 4
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
add esp, 4
push 2
call edi
add esp, 4
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
add esp, 4
test esi, esi
jle 0x407b75
push 0
push 0x4b3338
call sub.api_ms_win_crt_private_l1_1_0.dll__setjmp3
add esp, 8
test eax, eax
je 0x407b94
push 1
push 0xe
call sub.api_ms_win_crt_runtime_l1_1_0.dll_signal
add esp, 8
push str._proceeding_
call sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
add esp, 4
jmp 0x407c16
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 0x16
push str.Proceed_anyway___y_N_
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
jmp 0x407bba
push 0x407c70
push 0xe
call sub.api_ms_win_crt_runtime_l1_1_0.dll_signal
add esp, 8
push esi
push str.Proceed_anyway__or_wait__d_seconds_to_proceed_____y_N_
call fcn.00407c40
add esp, 8
push esi
call fcn.00423a20
add esp, 4
mov byte [esp], 0
push 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov ecx, esp
push eax
push 0x100
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fgets
add esp, 0xc
test eax, eax
je 0x407c1f
movsx esi, byte [esp]
push 3
push esi
push 0x48ae82
call sub.api_ms_win_crt_private_l1_1_0.dll_memchr
add esp, 0xc
test eax, eax
jne 0x407c1f
push 3
push esi
push 0x48ae30
call sub.api_ms_win_crt_private_l1_1_0.dll_memchr
add esp, 0xc
test eax, eax
je 0x407c1f
push 1
push 0xe
call sub.api_ms_win_crt_runtime_l1_1_0.dll_signal
add esp, 8
add esp, 0x100
pop esi
pop edi
ret
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 0xa
call sub.api_ms_win_crt_stdio_l1_1_0.dll_putc
add esp, 8
push 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop dword [eax]
Function at 0x407c80
Capabilities:
Terminate process
Write file on windows

Disassembly:
push edi
push esi
push eax
mov esi, dword [esp + 0x10]
mov dword [esp], 0
mov eax, esp
push eax
push esi
call fcn.0041aec0
add esp, 8
test eax, eax
je 0x407cb1
push esi
push str.while_determining_whether__s_is_mounted.
push eax
push str.ext2fs_check_if_mount
call fcn.00422cf0
jmp 0x407d2f
mov edi, dword [esp + 0x14]
mov eax, dword [esp]
test al, 1
jne 0x407cf6
test al, 0x10
je 0x407d32
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push esi
push str._s_is_apparently_in_use_by_the_system_
push eax
call fcn.00407d60
add esp, 0xc
cmp edi, 2
jl 0x407d38
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 0x16
push str.mke2fs_forced_anyway._n
jmp 0x407d2a
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push esi
push str._s_is_mounted_
push eax
call fcn.00407d60
add esp, 0xc
cmp edi, 2
jl 0x407d38
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 0x34
push str.mke2fs_forced_anyway.__Hope__etc_mtab_is_incorrect._n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
add esp, 4
pop esi
pop edi
ret
mov esi, dword [esp + 0x18]
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push esi
push str.will_not_make_a__s_here__n
push eax
call fcn.00407d60
add esp, 0xc
push 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop dword [eax]
Function at 0x407fc0
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebx
push edi
push esi
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
push esi
push edi
call fcn.0041cb10
add esp, 8
test eax, eax
je 0x407ffb
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 0x24
push str._nFilesystem_too_small_for_a_journal_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
jmp 0x40808c
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x40801e
shl eax, 0xa
mov ebx, dword [esi + 0x14]
shr ebx, 0xa
xor edx, edx
div ebx
mov dword [edi], eax
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x5c]
jmp 0x408032
test ecx, ecx
jle 0x40808c
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x5c]
mov edx, eax
and edx, 0x400
je 0x40808c
shr eax, 0xa
test ecx, ecx
jle 0x40804f
mov edx, eax
and edx, 1
je 0x40804f
shl ecx, 0xa
mov eax, ecx
xor edx, edx
div dword [esi + 0x14]
mov dword [edi + 4], eax
jmp 0x408061
test al, 1
jne 0x40805e
mov dword [edi + 4], 0
xor eax, eax
jmp 0x408061
mov eax, dword [edi + 4]
mov ecx, dword [edi]
lea edi, [eax + ecx]
add eax, ecx
add eax, 0xff63bfff
cmp eax, 0xff63c3fe
jbe 0x408090
push dword [esi + 0x10]
call fcn.00411a30
add esp, 4
shrd eax, edx, 1
shr edx, 1
cmp eax, edi
sbb edx, 0
jb 0x4080b1
pop esi
pop edi
pop ebx
ret
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push edi
push str._nThe_total_requested_journal_size_is__d_blocks__it_must_be_nbetween_1024_and_10240000_blocks.__Aborting._n
push eax
call fcn.00407d60
add esp, 0xc
push 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 0x2c
push str._nTotal_journal_size_too_big_for_filesystem._n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
push 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop word cs:[eax + eax]
Function at 0x40ab20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40ac4a
xor ebp, ebp
jmp 0x40ab80
push 0x50
push 1
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
add esp, 8
test eax, eax
je 0x40ac19
mov esi, eax
push eax
push edi
push ebx
call fcn.00429590
add esp, 0xc
mov dword [esi + 4], edi
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
add dword [esi + 0x38], eax
mov eax, dword [esp + 0x24]
adc dword [esi + 0x3c], eax
inc ebp
cmp ebp, 3
je 0x40ac4a
cmp ebp, 2
jne 0x40aba3
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
cmp dword [eax + 0x4c], 0
je 0x40ac4a
movzx eax, word [eax + 0x58]
cmp eax, 0x81
jb 0x40ac4a
mov ebx, dword [ecx + ebp*4 + 4]
test ebx, ebx
je 0x40ab76
xor edi, edi
cmp ebp, 2
je 0x40abc8
cmp ebp, 1
je 0x40abe2
test ebp, ebp
jne 0x40abf3
mov ecx, dword [esp + 0x18]
movzx eax, word [ecx + 2]
mov edi, dword [ecx + 0x78]
jmp 0x40abee
mov eax, dword [esp + 0x18]
cmp word [eax + 0x80], 0x20
jb 0x40abf3
mov eax, dword [esp + 0x18]
mov edi, dword [eax + 0x9c]
jmp 0x40abf3
mov ecx, dword [esp + 0x18]
movzx eax, word [ecx + 0x18]
movzx edi, word [ecx + 0x7a]
shl edi, 0x10
or edi, eax
push edi
push ebx
call fcn.004293a0
add esp, 8
test eax, eax
je 0x40ab40
mov esi, dword [eax + 0x14]
test esi, esi
mov ecx, dword [esp + 0x14]
jne 0x40ab68
jmp 0x40ab76
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push str.get_dq
push 0x177
push str.external_e2fsprogs_lib_support_mkquota.c
push str._ERROR___s:_d:_s:_Unable_to_allocate_dquot_n
push eax
call fcn.0040ab00
add esp, 0x14
mov ecx, dword [esp + 0x14]
jmp 0x40ab76
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40bf10
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov edi, edx
mov ebx, ecx
push 0x1c
push 1
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
add esp, 8
test eax, eax
je 0x40bf78
mov esi, eax
mov dword [eax], 0xaaca6019
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ebp, eax
inc ebp
cmp byte [ebx], 0x7e
mov dword [esp + 4], edi
jne 0x40bf82
mov dword [esp], 0
cmp byte [ebx + 1], 0x2f
jne 0x40bf89
push str.HOME
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
test eax, eax
je 0x40bf89
mov edi, eax
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add ebp, eax
mov dword [esp], edi
jmp 0x40bf89
mov edi, 0xc
jmp 0x40c020
mov dword [esp], 0
push ebp
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x40bfb6
mov edi, eax
mov eax, dword [esp]
test eax, eax
je 0x40bfc9
push eax
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
inc ebx
push ebx
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
jmp 0x40bfd4
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edi, dword [eax]
jmp 0x40c020
push ebp
push ebx
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov dword [esi + 4], edi
push str._default_
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x40c018
mov ecx, esi
call fcn.0040d0c0
test eax, eax
je 0x40c018
mov edi, eax
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x40c002
call fcn.0040c250
push dword [esi + 4]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
jmp 0x40c020
mov eax, dword [esp + 4]
mov dword [eax], esi
xor edi, edi
mov eax, edi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40d9e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
movaps xmmword [esp], xmm0
movaps xmmword [esp + 0x10], xmm0
mov esi, 1
test eax, eax
je 0x40da12
mov eax, dword [eax]
test eax, eax
je 0x40da12
mov esi, eax
jle 0x40db20
mov edi, dword [ebp + 8]
lea ebx, [esp + 0x10]
nop dword [eax]
call fcn.0040db70
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
shr eax, 7
xor byte [esp], al
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
shr eax, 7
xor byte [esp + 1], al
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
shr eax, 7
xor byte [esp + 2], al
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
shr eax, 7
xor byte [esp + 3], al
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
shr eax, 7
xor byte [esp + 4], al
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
shr eax, 7
xor byte [esp + 5], al
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
shr eax, 7
xor byte [esp + 6], al
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
shr eax, 7
xor byte [esp + 7], al
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
shr eax, 7
xor byte [esp + 8], al
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
shr eax, 7
xor byte [esp + 9], al
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
shr eax, 7
xor byte [esp + 0xa], al
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
shr eax, 7
xor byte [esp + 0xb], al
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
shr eax, 7
xor byte [esp + 0xc], al
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
shr eax, 7
xor byte [esp + 0xd], al
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
shr eax, 7
xor byte [esp + 0xe], al
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
shr eax, 7
xor byte [esp + 0xf], al
push ebx
lea eax, [esp + 4]
push eax
call fcn.00429fd0
add esp, 8
movss xmm0, dword [esp + 0x16]
andps xmm0, xmmword [0x48c350]
orps xmm0, xmmword [0x48c360]
movss dword [esp + 0x16], xmm0
push edi
push ebx
call fcn.00429f80
add esp, 8
add edi, 0x10
dec esi
jne 0x40da20
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4121a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x4121be
mov eax, edx
and eax, 3
jne 0x41230e
mov esi, ebp
and esi, 7
cmp ebp, 8
jae 0x4121d8
add edx, 0xfffffffc
test esi, esi
jne 0x41227d
jmp 0x412304
mov dword [esp], esi
mov edi, ebp
shr edi, 3
and ebp, 0xfffffff8
add ebp, 0xfffffffc
mov dword [esp + 4], ebp
xor ebp, ebp
nop dword [eax]
xor ecx, dword [edx + ebp*8]
movzx esi, cl
movzx eax, ch
mov eax, dword [ebx + eax*4 + 0x1800]
xor eax, dword [ebx + esi*4 + 0x1c00]
mov esi, ecx
shr esi, 0xe
and esi, 0x3fc
shr ecx, 0x18
xor eax, dword [ebx + esi + 0x1400]
xor eax, dword [ebx + ecx*4 + 0x1000]
mov ebx, dword [edx + ebp*8 + 4]
movzx ecx, bl
mov esi, dword [esp + 0x20]
xor eax, dword [esi + ecx*4 + 0xc00]
movzx ecx, bh
mov esi, dword [esp + 0x20]
xor eax, dword [esi + ecx*4 + 0x800]
mov ecx, ebx
shr ecx, 0xe
and ecx, 0x3fc
mov esi, dword [esp + 0x20]
xor eax, dword [esi + ecx + 0x400]
shr ebx, 0x18
mov ecx, eax
mov eax, dword [esp + 0x20]
xor ecx, dword [eax + ebx*4]
mov ebx, dword [esp + 0x20]
inc ebp
cmp edi, ebp
jne 0x4121f0
add edx, dword [esp + 4]
mov esi, dword [esp]
test esi, esi
je 0x412304
movzx eax, byte [edx + 4]
xor al, cl
movzx eax, al
shr ecx, 8
xor ecx, dword [ebx + eax*4]
cmp esi, 1
je 0x412304
movzx eax, byte [edx + 5]
xor al, cl
movzx eax, al
shr ecx, 8
xor ecx, dword [ebx + eax*4]
cmp esi, 2
je 0x412304
movzx eax, byte [edx + 6]
xor al, cl
movzx eax, al
shr ecx, 8
xor ecx, dword [ebx + eax*4]
cmp esi, 3
je 0x412304
movzx eax, byte [edx + 7]
xor al, cl
movzx eax, al
shr ecx, 8
xor ecx, dword [ebx + eax*4]
cmp esi, 4
je 0x412304
movzx eax, byte [edx + 8]
xor al, cl
movzx eax, al
shr ecx, 8
xor ecx, dword [ebx + eax*4]
cmp esi, 5
je 0x412304
movzx eax, byte [edx + 9]
xor al, cl
movzx eax, al
shr ecx, 8
xor ecx, dword [ebx + eax*4]
cmp esi, 6
je 0x412304
movzx eax, byte [edx + 0xa]
xor al, cl
movzx eax, al
shr ecx, 8
xor ecx, dword [ebx + eax*4]
mov eax, ecx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [edx + 1]
movzx ebx, byte [edx]
xor bl, cl
movzx esi, bl
mov ebx, dword [esp + 0x20]
shr ecx, 8
xor ecx, dword [ebx + esi*4]
mov esi, ebp
dec esi
je 0x4123ac
mov ebx, eax
and ebx, 3
je 0x41239f
mov edi, edx
lea eax, [edi + 2]
movzx ebx, byte [edi + 1]
xor bl, cl
movzx esi, bl
shr ecx, 8
mov ebx, dword [esp + 0x20]
xor ecx, dword [ebx + esi*4]
mov esi, ebp
add esi, 0xfffffffe
je 0x4123ac
mov ebx, eax
and ebx, 3
je 0x41239f
mov edx, edi
lea eax, [edi + 3]
movzx ebx, byte [edi + 2]
xor bl, cl
movzx esi, bl
shr ecx, 8
mov edx, dword [esp + 0x20]
xor ecx, dword [edx + esi*4]
mov esi, ebp
add esi, 0xfffffffd
je 0x41239f
mov ebx, eax
and ebx, 3
je 0x41239f
mov edx, edi
movzx eax, byte [edi + 3]
xor al, cl
add edx, 4
movzx eax, al
shr ecx, 8
mov ebx, dword [esp + 0x20]
xor ecx, dword [ebx + eax*4]
add ebp, 0xfffffffc
jmp 0x4121be
mov edx, eax
mov ebp, esi
mov ebx, dword [esp + 0x20]
jmp 0x4121be
mov edx, eax
mov ebp, esi
jmp 0x4121be
Function at 0x417f30
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp], 0
push 0
push 0
push eax
call fcn.004210e0
add esp, 0xc
test eax, eax
js 0x417fc2
mov esi, eax
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
add esp, 4
mov edi, eax
lea ebx, [esp + 0xc]
lea eax, [esp + 0x30]
push 0
push ebx
push 0x20
push eax
push 0x20
push eax
push 0x74004
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x417fcc
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
jmp 0x41801d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
jmp 0x418044
lea eax, [esp + 0x10]
push 0
push ebx
push 0x18
push eax
push 0x18
push eax
push 0x70000
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x418008
mov ecx, dword [esp + 0x20]
imul ecx, dword [esp + 0x24]
imul ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov eax, ecx
mul dword [esp + 0x10]
imul edi, ecx
add edx, edi
jmp 0x41801d
mov eax, esp
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x418039
mov eax, dword [esp]
mov edx, dword [esp + 4]
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov ebx, ecx
sar ebx, 0x1f
push ebx
push ecx
push edx
push eax
call fcn.00431fb0
add esp, 0x10
mov dword [edi + 4], edx
mov dword [edi], eax
push esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll__close_1
add esp, 4
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41ace0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x440
mov esi, dword [ebp + 0xc]
push str.EXT2FS_PRETEND_RO_MOUNT
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
test eax, eax
je 0x41ad2a
mov dword [esi], 5
push str.EXT2FS_PRETEND_ROOTFS
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
xor ecx, ecx
test eax, eax
sete cl
lea eax, [ecx + ecx*2]
add eax, 2
mov dword [esi], eax
jmp 0x41aeb2
push str.EXT2FS_PRETEND_RW_MOUNT
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
test eax, eax
je 0x41ad60
mov dword [esi], 1
push str.EXT2FS_PRETEND_ROOTFS
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
cmp eax, 1
mov eax, 2
sbb eax, 0
mov dword [esi], eax
jmp 0x41aeb2
lea ebx, [esp + 0x3c]
push 0x400
push 0
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x10], xmm0
movaps xmmword [esp], xmm0
mov eax, esp
push eax
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat32i64]
add esp, 8
xor edi, edi
test eax, eax
jne 0x41adaf
movzx eax, word [esp + 6]
and eax, 0xf000
cmp eax, 0x3000
jne 0x41adaf
mov edi, dword [esp + 0x10]
push 0x492e81
push str._proc_swaps
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
add esp, 8
test eax, eax
je 0x41aea9
mov esi, eax
push eax
push 0x400
push ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fgets
add esp, 0xc
test eax, eax
je 0x41aea0
cmp byte [esp + 0x3c], 0
je 0x41adfd
push 9
push str.Filename_t
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x41ae14
push esi
push 0x400
push ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fgets
add esp, 0xc
test eax, eax
je 0x41aea0
push 0x20
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
add esp, 8
test eax, eax
je 0x41ae26
mov byte [eax], 0
push 9
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
add esp, 8
test eax, eax
je 0x41ae38
mov byte [eax], 0
push dword [ebp + 8]
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x41ae74
test edi, edi
je 0x41adfd
mov eax, esp
push eax
push ebx
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat32i64]
add esp, 8
test eax, eax
jne 0x41adfd
movzx eax, word [esp + 6]
and eax, 0xf000
cmp eax, 0x3000
jne 0x41adfd
cmp edi, dword [esp + 0x10]
jne 0x41adfd
push esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
mov eax, dword [ebp + 0xc]
mov dword [eax], 9
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41aeb2
push dword [ebp + 0x14]
push str._swap_
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strncpy
add esp, 0xc
jmp 0x41aeb2
push esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41e390
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x14]
test byte [eax + 0xa], 4
je 0x41e497
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
movaps xmm0, xmmword [str._________________b_b_b_b_b_b_b_b_b_b_b_b_b_b_b_bE2FSPROGS_SKIP_PROGRESS]
movups xmmword [0x4b34ff], xmm0
movups xmmword [0x4b34f0], xmm0
movups xmmword [0x4b34e0], xmm0
movups xmmword [0x4b34d0], xmm0
movups xmmword [0x4b34c0], xmm0
mov byte [0x4b350f], 0
movaps xmm0, xmmword [0x492ee0]
movups xmmword [0x4b3510], xmm0
movups xmmword [0x4b3520], xmm0
movups xmmword [0x4b3530], xmm0
movups xmmword [0x4b3540], xmm0
movups xmmword [0x4b354f], xmm0
mov byte [0x4b355f], 0
xorps xmm0, xmm0
movups xmmword [edi], xmm0
push 0x492ef0
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
test eax, eax
je 0x41e42e
mov dword [edi + 0xc], 1
mov ebx, dword [esp + 0x1c]
mov dword [edi], esi
mov dword [edi + 4], ebp
xor ecx, ecx
test esi, esi
je 0x41e45f
mov ebp, 0xcccccccd
nop word cs:[eax + eax]
mov eax, esi
mul ebp
shr edx, 3
inc ecx
cmp esi, 9
mov esi, edx
ja 0x41e450
mov dword [edi + 8], ecx
test ebx, ebx
je 0x41e48d
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 1
call esi
add esp, 4
push eax
push ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputs
add esp, 8
push 1
call esi
add esp, 4
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
add esp, 4
mov dword [0x4b3560], 0
pop esi
pop edi
pop ebx
pop ebp
ret