joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403728
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push esi
call fcn.004036b4
lea edx, [ebp - 0x400]
movzx ecx, word [ebp + 0x14]
dec ecx
xor esi, esi
jmp 0x403760
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov word [edx + 2], ax
mov eax, dword [ebp + 0x18]
movzx eax, byte [eax]
mov word [edx], ax
inc dword [ebp + 0x18]
add edx, 4
inc esi
cmp ecx, esi
jge 0x403746
mov ax, word [ebp + 0x14]
mov word [ebp - 0x404], ax
mov word [ebp - 0x402], 1
mov word [ebp - 0x408], 0
mov word [ebp - 0x406], 0
mov ax, word [ebp + 0x10]
mov word [ebp - 0x410], ax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x40e], ax
movzx ecx, word [ebp + 0x10]
movzx eax, word [ebp + 0x14]
add ecx, eax
dec ecx
mov word [ebp - 0x40c], cx
mov ax, word [ebp + 0xc]
mov word [ebp - 0x40a], ax
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x408]
push dword [ebp - 0x404]
lea eax, [ebp - 0x400]
push eax
push dword [0x407ddc]
call sub.kernel32.dll_WriteConsoleOutputA
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x403b08
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x403b28
mov al, byte [ebp - 4]
jmp 0x403b2b
mov al, byte [ebp + 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405e5c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
or edi, 0xffffffff
or eax, 0xffffffff
mov dword [ebp - 0x24], 0
xor esi, esi
mov edx, dword [0x4081d4]
add edx, 0x24
mov esi, edx
cmp dword [edx], 0xffffffff
je 0x405e9a
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x405e95
mov ecx, dword [edx + 8]
cmp ecx, dword [esi + 8]
jbe 0x405e95
mov esi, edx
add edx, 0x10
jmp 0x405e7e
mov edx, esi
cmp dword [edx], 0xffffffff
je 0x405fae
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x405fae
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x405fac
mov ecx, dword [edx + 8]
sub dword [ebp + 0x10], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [edx + 0xc]
test edx, edx
je 0x405fac
mov cl, byte [edx]
sub cl, 0x3c
jne 0x405ee2
jmp 0x405fac
sub cl, 3
jne 0x405efc
inc edx
mov dword [ebp - 0xc], edx
movzx ecx, byte [edx]
inc ecx
add edx, ecx
mov byte [ebp - 0x25], 1
jmp 0x405fa7
inc cl
jne 0x405f10
movzx ecx, word [edx + 1]
add edi, ecx
add edx, 3
jmp 0x405fa7
inc cl
jne 0x405f24
movzx ecx, word [edx + 1]
add edi, ecx
mov ecx, dword [edx + 3]
add eax, ecx
add edx, 7
jmp 0x405f37
movzx ecx, byte [edx]
shr ecx, 6
add edi, ecx
mov cl, byte [edx]
and cl, 0x3f
movzx ecx, cl
add eax, ecx
inc edx
cmp eax, dword [ebp + 0x10]
jne 0x405f41
mov esi, eax
mov dword [ebp - 0x24], edi
cmp eax, dword [ebp + 0x10]
jl 0x405f9e
sub eax, dword [ebp + 0x10]
cmp eax, 0xa
jle 0x405f54
cmp byte [ebp - 0x25], 0
jne 0x405f9c
mov eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov eax, dword [ebp + 0xc]
mov byte [eax], cl
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp eax, dword [ebp - 0x14]
jle 0x405f8a
inc dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov dl, byte [eax + ecx]
xor dl, 0xaa
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov byte [eax + ecx], dl
jmp 0x405f65
movzx eax, word [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
add esi, dword [ebp - 0x18]
mov eax, esi
jmp 0x405fae
jmp 0x405fac
mov esi, eax
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x25], 0
jmp 0x405ed4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x406484
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10
cld
push ecx
call fcn.00406460
call fcn.004032b0
mov dword [0x4081d4], eax
lea edx, [eax + 0x18]
mov dword [0x408234], edx
pop edx
call fcn.004062e0
call sub.kernel32.dll_GetEnvironmentStrings
mov dword [0x408200], eax
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x408214], eax
mov dword [0x40823c], eax
call fcn.00402ee0
cmp eax, 3
setb byte [0x4081dd]
call fcn.00403f00
lea eax, [esp]
xor edx, edx
mov ecx, dword fs:[edx]
mov dword fs:[edx], eax
mov dword [eax], ecx
mov dword [eax + 4], 0x406710
mov dword [eax + 8], ebp
jmp dword [esp + 0x10]
Function at 0x401d50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [esp + 8], eax
mov eax, 0x401d20
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00401860
mov esi, eax
test esi, esi
jl 0x401d8a
jne 0x401d97
mov eax, 1
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], ebx
mov eax, 0x1b6
mov dword [esp + 8], eax
mov eax, 2
mov dword [esp + 4], eax
call sub.msvcrt.dll__open
mov edi, eax
test edi, edi
mov eax, 0xfffffffd
js 0x401d8a
mov dword [esp + 4], esi
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp], edi
call sub.msvcrt.dll__lseek
test eax, eax
js 0x401def
mov dword [esp], edi
mov eax, 0x3c
mov dword [esp + 8], eax
lea eax, [ebp - 0x58]
mov dword [esp + 4], eax
call sub.msvcrt.dll__read
cmp eax, 0x3c
je 0x401e17
call sub.msvcrt.dll__errno
mov ebx, dword [eax]
mov dword [esp], edi
call sub.msvcrt.dll__close
call sub.msvcrt.dll__errno
mov dword [eax], ebx
mov ebx, dword [ebp - 0xc]
mov eax, 0xfffffffd
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp + 4], esi
xor ebx, ebx
mov dword [esp + 8], ebx
mov dword [esp], edi
call sub.msvcrt.dll__lseek
test eax, eax
js 0x401def
mov dword [esp], edi
mov ecx, 0x3c
lea eax, [ebp - 0x58]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
call sub.msvcrt.dll__write
cmp eax, 0x3c
jne 0x401def
lea esi, [esi]
mov dword [esp], edi
lea eax, [ebp - 0x88]
mov dword [esp + 4], eax
call sub.msvcrt.dll__fstat
cmp eax, 0xffffffff
jne 0x401e76
call sub.msvcrt.dll__errno
cmp dword [eax], 4
je 0x401e50
jmp 0x401def
test eax, eax
js 0x401def
xor eax, eax
mov byte [eax + ebp - 0x48], 0x20
inc eax
cmp eax, 0xb
jbe 0x401e80
mov eax, dword [ebp - 0x6c]
mov edx, 0x42411c
mov dword [esp + 4], edx
mov dword [esp + 8], eax
lea eax, [ebp - 0x48]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
mov dword [esp + 4], esi
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp], edi
call sub.msvcrt.dll__lseek
test eax, eax
js 0x401def
mov dword [esp], edi
mov eax, 0x3c
mov dword [esp + 8], eax
lea eax, [ebp - 0x58]
mov dword [esp + 4], eax
call sub.msvcrt.dll__write
cmp eax, 0x3c
jne 0x401def
mov dword [esp], edi
call sub.msvcrt.dll__close
xor eax, eax
jmp 0x401d8a
Function at 0x4028c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
mov ebx, dword [eax + 8]
movzx eax, byte [ebx]
test al, al
je 0x402912
nop
lea esi, [esi]
movzx edx, al
mov eax, dword [sym.imp.msvcrt.dll___mb_cur_max]
cmp dword [eax], 1
jne 0x402937
mov eax, dword [sym.imp.msvcrt.dll__pctype]
mov eax, dword [eax]
movzx eax, word [eax + edx*2]
and eax, 8
test eax, eax
jne 0x40290a
movzx eax, byte [ebx]
cmp al, 0x2d
je 0x40290a
cmp al, 0x40
jne 0x40294a
inc ebx
movzx eax, byte [ebx]
test al, al
jne 0x4028e0
mov dword [esp], esi
mov edx, 2
mov dword [esp + 4], edx
call fcn.004060b0
mov word [esi + 0x4c], 0
mov dword [ebp + 8], esi
add esp, 0x10
pop ebx
pop esi
pop ebp
jmp fcn.00417290
mov dword [esp], edx
mov ecx, 8
mov dword [esp + 4], ecx
call sub.msvcrt.dll__isctype
jmp 0x4028fb
test al, al
je 0x402912
mov dword [esp], esi
xor eax, eax
mov dword [esp + 4], eax
call fcn.0041b960
mov dword [esp], esi
call fcn.00401ef0
mov dword [ebp + 8], esi
add esp, 0x10
pop ebx
pop esi
pop ebp
jmp fcn.0040dfe0

Function at 0x402d30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp], str.__commands_to_execute
mov ebx, dword [ebp + 8]
add eax, 0x20
mov dword [esp + 0xc], eax
mov eax, 0x16
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
call sub.msvcrt.dll_fwrite
mov edx, dword [ebx]
test edx, edx
jne 0x402df2
mov dword [esp], str.__built_in_:
call sub.msvcrt.dll_puts
mov esi, dword [ebx + 8]
jmp 0x402dc3
mov eax, dword [sym.imp.msvcrt.dll__pctype]
mov eax, dword [eax]
movzx eax, word [eax + edx*2]
and eax, 8
test eax, eax
jne 0x402dec
mov dword [esp], esi
mov ebx, 0xa
mov dword [esp + 4], ebx
call sub.msvcrt.dll_strchr
test eax, eax
mov ebx, eax
je 0x402e0e
mov dword [esp + 8], esi
mov eax, ebx
sub eax, esi
mov dword [esp + 4], eax
mov esi, ebx
mov dword [esp], str._t_.s_n
call sub.msvcrt.dll_printf
movzx eax, byte [esi]
test al, al
je 0x402e1b
movzx edx, al
mov eax, dword [sym.imp.msvcrt.dll___mb_cur_max]
cmp dword [eax], 1
je 0x402d80
mov dword [esp], edx
mov eax, 8
mov dword [esp + 4], eax
call sub.msvcrt.dll__isctype
test eax, eax
je 0x402d92
inc esi
movzx eax, byte [esi]
jmp 0x402dca
mov eax, dword [ebx + 4]
mov dword [esp + 4], edx
mov dword [esp], str.__from___s__line__lu_:_n
mov dword [esp + 8], eax
call sub.msvcrt.dll_printf
jmp 0x402d7b
mov dword [esp], esi
call sub.msvcrt.dll_strlen
lea ebx, [eax + esi]
jmp 0x402da9
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x406780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp], str._n_Files
call sub.msvcrt.dll_puts
mov dword [esp], 0x42a258
mov eax, fcn.004062e0
mov dword [esp + 4], eax
call fcn.0041d270
mov dword [esp], str._n_files_hash_table_stats:_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov ecx, 1
mov dword [esp + 4], ecx
add eax, 0x20
mov dword [esp + 0xc], eax
mov eax, 0x1d
mov dword [esp + 8], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], 0x42a258
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
mov dword [esp + 4], eax
call fcn.0041d310
leave
ret
Function at 0x40e390
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x40e377
cmp al, 0x7e
je 0x40e364
cmp al, 0x2e
je 0x40e336
test al, al
jne 0x40e320
lea esi, [esi]
dec ebx
cmp byte [ebx], 0x2e
jne 0x40e310
mov byte [ebx + 2], 0
lea esi, [esi]
mov dword [esp], ebx
call fcn.00411e50
mov dword [esp], eax
call fcn.00405210
add esp, 0x14
pop ebx
pop ebp
ret
cmp byte [ebx + 1], 0x2f
jne 0x40e320
lea esi, [esi]
cmp byte [ebx + 2], 0
je 0x40e320
add ebx, 2
movzx eax, byte [ebx]
cmp al, 0x2f
jne 0x40e358
inc ebx
movzx eax, byte [ebx]
cmp al, 0x2f
je 0x40e350
cmp al, 0x2e
jne 0x40e308
cmp byte [ebx + 1], 0x2f
je 0x40e340
jmp 0x40e320
mov dword [esp], ebx
call fcn.00414130
test eax, eax
je 0x40e372
mov ebx, eax
movzx eax, byte [ebx]
jmp 0x40e304
mov dword [esp], 0
mov eax, str.empty_string_invalid_as_file_name
mov dword [esp + 4], eax
call fcn.00411b20
lea esi, [esi]
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x420
mov eax, dword [ebp + 8]
mov ebx, dword [eax]
call sub.KERNEL32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, 0x42756a
mov dword [esp + 4], edx
call sub.msvcrt.dll_strtok
test byte [0x42a408], 2
mov edx, eax
jne 0x40e409
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [ebx]
lea ebx, [ebp - 0x408]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov eax, str._s:_Interrupt_Exception_caught__code__0x_lx__addr__0x_lx__n
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp + 4], ebx
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 0xff
call sub.msvcrt.dll_exit
mov eax, dword [ebx + 0xc]
mov esi, str._nUnhandled_exception_filter_called_from_program__s_nExceptionCode___lx_nExceptionFlags___lx_nExceptionAddress___lx_n
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x10], eax
mov eax, dword [ebx]
mov dword [esp + 4], esi
lea esi, [ebp - 0x408]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp], esi
call sub.msvcrt.dll_sprintf
cmp dword [ebx], 0xc0000005
je 0x40e446
mov dword [esp + 4], esi
jmp 0x40e3ed
cmp dword [ebx + 0x10], 1
jbe 0x40e440
mov ecx, esi
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x40e44e
test edx, 0x8080
jne 0x40e473
shr edx, 0x10
add ecx, 2
mov eax, dword [ebx + 0x18]
add dl, dl
mov edx, ecx
sbb edx, 3
mov dword [esp + 8], eax
mov ecx, dword [ebx + 0x14]
mov eax, str.Access_violation:_write_operation_at_address__lx_n
test ecx, ecx
jne 0x40e492
mov eax, str.Access_violation:_read_operation_at_address__lx_n
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.msvcrt.dll_sprintf
mov dword [esp + 4], esi
jmp 0x40e3ed
Function at 0x40ebb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [0x42a3e0]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x40ec15
cmp ebx, dword [0x42a4d0]
je 0x40ec15
mov dword [0x42a4d0], ebx
mov ecx, dword [0x42a3f8]
test ecx, ecx
jne 0x40ec70
mov edx, dword [0x42afb0]
test edx, edx
jne 0x40ec20
mov eax, dword [0x42af70]
test eax, eax
jne 0x40ecc2
test ebx, ebx
je 0x40ed1a
mov dword [esp], str._s:_Entering_an_unknown_directory_n
mov eax, dword [0x42afd0]
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
jmp 0x40ec55
add esp, 0x14
pop ebx
pop ebp
ret
mov eax, dword [0x42af70]
test eax, eax
jne 0x40ec9f
test ebx, ebx
je 0x40ed34
mov dword [esp + 8], edx
mov eax, dword [0x42afd0]
mov dword [esp], str._s__u_:_Entering_an_unknown_directory_n
mov dword [esp + 4], eax
lea esi, [esi]
lea edi, [edi]
call sub.msvcrt.dll_printf
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
mov dword [ebp + 8], eax
add esp, 0x14
pop ebx
pop ebp
jmp fcn.00422040
mov dword [esp], 0x42770e
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov edx, 2
mov dword [esp + 8], edx
add eax, 0x20
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 4], eax
call sub.msvcrt.dll_fwrite
jmp 0x40ebdf
test ebx, ebx
je 0x40ecf8
mov dword [esp + 0xc], eax
mov eax, dword [0x42afd0]
mov dword [esp + 8], edx
mov dword [esp], str._s__u_:_Entering_directory___s_n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
jmp 0x40ec55
test ebx, ebx
je 0x40ecdf
mov dword [esp + 8], eax
mov eax, dword [0x42afd0]
mov dword [esp], str._s:_Entering_directory___s_n
mov dword [esp + 4], eax
jmp 0x40ec50
mov dword [esp + 8], eax
mov eax, dword [0x42afd0]
mov dword [esp], str._s:_Leaving_directory___s_n
mov dword [esp + 4], eax
jmp 0x40ec50
mov dword [esp + 0xc], eax
mov eax, dword [0x42afd0]
mov dword [esp + 8], edx
mov dword [esp], str._s__u_:_Leaving_directory___s_n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
jmp 0x40ec55
mov dword [esp], str._s:_Leaving_an_unknown_directory_n
mov eax, dword [0x42afd0]
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
jmp 0x40ec55
mov dword [esp + 8], edx
mov eax, dword [0x42afd0]
mov dword [esp], str._s__u_:_Leaving_an_unknown_directory_n
mov dword [esp + 4], eax
jmp 0x40ec50
Function at 0x40f3f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov edx, eax
mov ebp, esp
push esi
push ebx
sub esp, 0x20
mov byte [ebp - 9], 0x2b
cmp dword [0x4237f4], 0xffffffff
je 0x40f410
mov eax, dword [0x42a360]
test eax, eax
jne 0x40f420
mov eax, dword [0x42a410]
test eax, eax
jne 0x40f44b
add esp, 0x20
pop ebx
pop esi
pop ebp
ret
cmp edx, 2
je 0x40f4ba
mov dword [esp + 8], eax
mov eax, str.INTERNAL:_Exiting_with__u_jobserver_tokens__should_be_0__
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.00411a10
mov eax, dword [0x42a410]
test eax, eax
je 0x40f419
mov eax, dword [0x4237f8]
mov ebx, 1
lea esi, [ebp - 9]
mov dword [esp], eax
call sub.msvcrt.dll__close
jmp 0x40f463
inc ebx
mov dword [esp + 4], esi
mov eax, 1
mov dword [esp + 8], eax
mov eax, dword [0x4237f4]
mov dword [esp], eax
call sub.msvcrt.dll__read
dec eax
je 0x40f462
mov eax, dword [0x42a410]
cmp ebx, eax
je 0x40f4a6
mov dword [esp + 0xc], eax
mov ecx, str.INTERNAL:_Exiting_with__u_jobserver_tokens_available__should_be__u_
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov dword [esp], 0
call fcn.00411a10
mov eax, dword [0x4237f4]
mov dword [esp], eax
call sub.msvcrt.dll__close
add esp, 0x20
pop ebx
pop esi
pop ebp
ret
dec eax
mov dword [0x42a360], eax
inc eax
je 0x40f410
lea esi, [ebp - 9]
jmp 0x40f4fa
dec eax
je 0x40f4e8
mov dword [esp], str.write
mov eax, 0x427711
mov dword [esp + 4], eax
call fcn.00411c10
mov eax, dword [0x42a360]
dec eax
mov dword [0x42a360], eax
inc eax
je 0x40f410
mov dword [esp + 4], esi
mov eax, 1
mov dword [esp + 8], eax
mov eax, dword [0x4237f8]
mov dword [esp], eax
call sub.msvcrt.dll__write
cmp eax, 0xffffffff
jne 0x40f4d0
call sub.msvcrt.dll__errno
cmp dword [eax], 4
jne 0x40f4d3
jmp 0x40f4fa
Function at 0x411b20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
mov dword [esp], 1
call fcn.0040ebb0
test ebx, ebx
je 0x411b44
mov edx, dword [ebx]
test edx, edx
jne 0x411bf0
mov eax, dword [0x42afb0]
test eax, eax
je 0x411bc7
mov dword [esp + 0xc], eax
mov eax, dword [0x42afd0]
mov dword [esp + 8], eax
mov eax, str._s__u_:_
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
lea eax, [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
mov dword [esp], str..__Stop._n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov eax, 9
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.0040f530
mov eax, dword [0x42afd0]
mov dword [esp + 8], eax
mov eax, str._s:_
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x411b73
mov eax, dword [ebx + 4]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov eax, str._s:_lu:_
jmp 0x411b5f
Function at 0x413d20
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x1c
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x14], 0
test eax, eax
jne 0x413daf
mov edx, dword [edi + 0xc]
mov ecx, 0xffffffff
mov eax, dword [edi + 8]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
add eax, edx
mov edx, dword [edi + 4]
cmp edx, eax
jae 0x413e6c
mov dword [edi], edx
mov eax, edx
mov ebx, eax
mov eax, 0xa
xor esi, esi
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_strchr
test eax, eax
mov ecx, eax
je 0x413e5d
cmp eax, ebx
jbe 0x413ebf
cmp byte [eax - 1], 0x5c
lea edx, [eax - 1]
jne 0x413ebf
nop
test esi, esi
sete al
cmp edx, ebx
movzx esi, al
jbe 0x413da2
dec edx
cmp byte [edx], 0x5c
je 0x413d90
test esi, esi
je 0x413ebf
lea eax, [ecx + 1]
jmp 0x413d5b
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov esi, ebx
add ecx, ebx
mov dword [ebp - 0x10], ecx
lea esi, [esi]
mov byte [ebx], 0
mov eax, dword [edi + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], ebx
sub eax, ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fgets
test eax, eax
je 0x413e9b
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
test eax, eax
je 0x413e76
add ebx, eax
cmp byte [ebx - 1], 0xa
jne 0x413e30
inc dword [ebp - 0x14]
lea edx, [ebx - 2]
xor eax, eax
cmp edx, esi
jb 0x413e97
nop
lea esi, [esi]
cmp byte [edx], 0x5c
jne 0x413e22
test eax, eax
sete al
dec edx
cmp edx, esi
movzx eax, al
jae 0x413e10
test eax, eax
je 0x413e97
mov eax, dword [ebp - 0x10]
sub eax, ebx
cmp eax, 0x4f
jg 0x413dc3
mov eax, dword [edi + 0xc]
sub ebx, esi
add eax, eax
mov dword [edi + 0xc], eax
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00411e00
mov dword [edi + 8], eax
mov esi, eax
lea ebx, [eax + ebx]
mov dword [edi], eax
mov eax, dword [edi + 0xc]
add eax, esi
mov dword [ebp - 0x10], eax
jmp 0x413dc0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
lea eax, [ecx + edx + 1]
mov dword [edi + 4], eax
xor ecx, ecx
mov eax, ecx
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, str.warning:_NUL_character_seen__rest_of_line_ignored
mov dword [esp + 4], eax
lea eax, [edi + 0x14]
mov dword [esp], eax
call fcn.00411a10
mov byte [ebx], 0xa
mov eax, 1
jmp 0x413df3
mov byte [ebx - 1], 0
mov eax, dword [edi + 0x10]
test byte [eax + 0xc], 0x20
jne 0x413ecc
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x413e6e
xor eax, eax
cmp dword [edi + 8], ebx
setne al
add esp, 0x1c
pop ebx
lea eax, [eax + eax - 1]
pop esi
pop edi
pop ebp
ret
mov byte [ecx], 0
lea eax, [ecx + 1]
xor ecx, ecx
mov dword [edi + 4], eax
jmp 0x413e6c
mov eax, dword [edi + 0x14]
mov dword [esp], eax
call fcn.00411c50
mov esi, esi
lea edi, [edi]
Function at 0x414130
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ebx
mov edx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
movzx eax, byte [edx + 1]
cmp al, 0x2f
sete dl
test al, al
sete al
or eax, edx
test al, 1
je 0x4141c0
mov ebx, dword [0x42afe0]
xor eax, eax
mov dword [0x42afe0], eax
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], str.__HOME_
call fcn.00404ef0
mov dword [0x42afe0], ebx
mov esi, eax
cmp byte [eax], 0
setne al
movzx edi, al
test edi, edi
je 0x4141d0
test esi, esi
je 0x4141c0
mov eax, dword [ebp + 8]
mov dword [esp], esi
inc eax
mov dword [esp + 8], eax
mov eax, 0x42812e
mov dword [esp + 4], eax
call fcn.00411cd0
test edi, edi
mov ebx, eax
jne 0x4141e8
mov eax, ebx
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0xc]
xor eax, eax
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], esi
call sub.msvcrt.dll_free
mov dword [esp], 0x4283cb
call sub.msvcrt.dll_getenv
mov esi, eax
jmp 0x41418a
mov dword [esp], esi
call sub.msvcrt.dll_free
jmp 0x4141ad
Function at 0x41c0c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, fcn.0041bda0
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0041d2c0
mov dword [esp], str._variable_set_hash_table_stats:_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
mov dword [esp + 0xc], eax
mov eax, 0x21
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], 0x429155
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
mov dword [esp + 0xc], eax
mov eax, 2
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], ebx
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
mov dword [esp + 4], eax
call fcn.0041d310
mov ecx, dword [sym.imp.msvcrt.dll__iob]
lea edx, [ecx + 0x20]
mov eax, dword [edx + 4]
dec eax
test eax, eax
mov dword [edx + 4], eax
js 0x41c170
mov eax, dword [ecx + 0x20]
mov byte [eax], 0xa
inc dword [ecx + 0x20]
add esp, 0x14
pop ebx
pop ebp
ret
mov dword [ebp + 0xc], edx
mov dword [ebp + 8], 0xa
add esp, 0x14
pop ebx
pop ebp
jmp sub.msvcrt.dll__flsbuf