joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009f120
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x58
mov eax, 0x1014c3ff
call fcn.101439bc
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ebx
call fcn.1009ef38
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x3c], ebx
call fcn.100989f5
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 4], 1
call fcn.100989f5
push edi
mov eax, 0x10161d28
mov dword [ebp - 0x48], 1
push eax
push esi
mov esi, dword [ebp - 0x44]
push eax
push edi
push esi
call fcn.1008cc70
pop ecx
pop ecx
push eax
call fcn.1008cc70
pop ecx
pop ecx
push eax
call fcn.1008cc70
pop ecx
pop ecx
push eax
call fcn.1008cc70
pop ecx
pop ecx
push eax
call fcn.1008cc70
mov eax, dword [ebp - 0x4c]
pop ecx
pop ecx
test eax, eax
je 0x1009f271
lea ecx, [ebp - 0x3c]
push ecx
push ebx
push ebx
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1009f271
push ebx
push dword [esi + 8]
push dword [esi + 4]
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1009f271
push 4
pop ecx
push ebx
lea eax, [ebp - 0x50]
mov dword [ebp - 0x40], ebx
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x50], ecx
push eax
push ecx
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1009f271
push dword [ebp - 0x40]
call fcn.1008cc70
mov edi, eax
pop ecx
test edi, edi
je 0x1009f271
push ebx
lea eax, [ebp - 0x40]
push eax
push edi
push 2
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov ecx, esi
push 0xffffffffffffffff
push 0x10155980
test eax, eax
jne 0x1009f232
call fcn.1008cc70
jmp 0x1009f268
call fcn.1008cc70
cmp dword [ebp - 0x40], 0
jbe 0x1009f268
cmp ebx, 0x28
jae 0x1009f268
movzx eax, byte [ebx + edi]
push eax
lea eax, [ebp - 0x38]
push 0x10161ca0
push eax
call fcn.1008cc70
lea eax, [ebp - 0x38]
push eax
push esi
call fcn.1008cc70
add esp, 0x14
inc ebx
cmp ebx, dword [ebp - 0x40]
jb 0x1009f23d
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
pop ecx
jmp 0x1009f27f
push 0xffffffffffffffff
push 0x10155980
mov ecx, esi
call fcn.1008cc70
cmp dword [ebp - 0x3c], 0
je 0x1009f28e
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea ecx, [ebp - 0x64]
call fcn.1008cc70
mov eax, esi
call fcn.10143966
ret
Function at 0x100acc8e
Capabilities:
Create mailslot

Disassembly:
push 0x14
mov eax, 0x1014e497
call fcn.10143988
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [0x1018de8c]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100a8720
xor ebx, ebx
mov dword [esi], vtable.WinInterAppStream.0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.100989f5
lea eax, [esi + 0x40]
mov byte [ebp - 4], 1
push eax
lea eax, [esi + 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1008cc70
pop ecx
pop ecx
push eax
call fcn.1008cc70
push 0xc
lea edi, [esi + 0x58]
push ebx
push edi
call sub.VCRUNTIME140.dll_memset
push edi
mov ecx, ebx
call fcn.1008cc70
add esp, 0x18
test al, al
je 0x100acd01
cmp dword [esi + 0x5c], ebx
cmovne ecx, edi
push ecx
push ebx
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.kernel32.dll_CreateMailslotA]
lea ecx, [ebp - 0x20]
mov dword [esi + 0x54], eax
call fcn.1008cc70
mov eax, esi
call fcn.10143951
ret 8

Function at 0x100ace90
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x1014c15d
call fcn.10143988
mov esi, ecx
push esi
lea ecx, [ebp - 0x1c]
call fcn.1008c7b9
and dword [ebp - 4], 0
lea eax, [esi + 0x30]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100988a3
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
push dword [eax + 8]
push dword [eax + 4]
call fcn.1008cc70
push 0
xor ecx, ecx
lea eax, [esi + 0x58]
cmp dword [esi + 0x5c], ecx
push 0x80
push 3
cmovne ecx, eax
push ecx
push ebx
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.kernel32.dll_CreateFileA]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x100acf2b
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push 0
push ecx
push dword [edi + 8]
push dword [edi + 4]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
push dword [ebp - 0x14]
mov esi, eax
call dword [sym.imp.kernel32.dll_CloseHandle]
test esi, esi
je 0x100acf2b
mov eax, dword [ebp - 0x10]
cmp eax, dword [edi + 8]
je 0x100acf2d
xor bl, bl
lea ecx, [ebp - 0x2c]
call fcn.1008cc70
lea ecx, [ebp - 0x1c]
call fcn.1008cc70
mov al, bl
call fcn.10143951
ret 8
Function at 0x101236a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x1012373b
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x101236f2
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x101236f2
cmp esi, ebx
jge 0x101236f2
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x10123735
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x10123735
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x10151aac]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x10151aac]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x1012374d
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc

Function at 0x10123970
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x101935e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107d058c], 0
mov eax, dword [ebp + 8]
je 0x10123998
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x101239b2
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.1008cc70
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10143940
leave
ret 4

Function at 0x10123b80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x101935e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107d058c], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x10123bb6
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x10123c15
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.1008cc70
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.1008cc70
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.1008cc70
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10143940
leave
ret 0x10
Function at 0x10123c30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x101935e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107d058c], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x10123c5c
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x10123c8d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x10123c8b
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.1008cc70
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x10123c8d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10143940
leave
ret 8
Function at 0x10132ac0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x101935e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor edx, edx
push edi
xor ebx, ebx
inc edx
mov edi, dword [esi]
cmp dword [edi + 0x254], ebx
je 0x10132b20
cmp dword [edi + 0x264], ebx
je 0x10132b19
cmp byte [0x107d058c], 0
push edi
push dword [edi + 0x250]
je 0x10132b08
call dword [sym.imp.kernel32.dll_FindNextFileW]
jmp 0x10132b0e
call dword [sym.imp.kernel32.dll_FindNextFileA]
mov ecx, dword [esi]
xor edx, edx
inc edx
mov dword [ecx + 0x264], eax
mov eax, dword [esi]
jmp 0x10132c00
mov eax, dword [edi + 0x25c]
test eax, eax
je 0x10132c8f
push eax
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy]
pop ecx
pop ecx
mov ecx, dword [esi]
cmp dword [ecx + 0x260], ebx
je 0x10132b6e
lea eax, [ebp - 0x234]
push eax
call fcn.1008cc70
mov eax, dword [esi]
push dword [eax + 0x260]
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat]
mov ecx, dword [esi]
add esp, 0xc
test byte [ecx + 0x268], 1
push 0x10
pop eax
lea edx, [eax + 0x70]
cmove eax, edx
mov dword [ecx], eax
cmp byte [0x107d058c], 0
je 0x10132b9a
push dword [esi]
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
jmp 0x10132bbc
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.1008cc70
push dword [esi]
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov ecx, dword [esi]
mov dword [ecx + 0x250], eax
xor eax, eax
mov ecx, dword [esi]
cmp dword [ecx + 0x250], 0xffffffff
setne al
mov dword [ecx + 0x264], eax
mov eax, dword [esi]
cmp dword [eax + 0x264], ebx
jne 0x10132bea
mov dword [eax + 0x250], ebx
mov eax, dword [esi]
xor edx, edx
inc edx
mov dword [eax + 0x254], edx
mov eax, dword [esi]
cmp dword [eax + 0x264], ebx
jne 0x10132c00
mov dword [esi + 4], edx
mov ecx, eax
cmp dword [eax + 0x264], ebx
je 0x10132c27
cmp byte [0x107d058c], 0
jne 0x10132c27
push dword [eax + 0x258]
add eax, 0x2c
push eax
call fcn.1008cc70
mov ecx, dword [esi]
xor edx, edx
inc edx
mov eax, dword [ecx]
mov dword [ecx + 0x26c], eax
mov edi, dword [esi]
mov ebx, dword [edi + 0x26c]
shr ebx, 4
and ebx, edx
je 0x10132c5c
push esi
xor ebx, ebx
call fcn.1008cc70
xor edx, edx
inc edx
cmp word [eax], 0x2e
je 0x10132c58
test byte [edi + 0x268], 3
jne 0x10132c66
mov ebx, edx
jmp 0x10132c66
test byte [edi + 0x268], 1
cmovne ebx, edx
mov eax, dword [edi + 0x264]
test eax, eax
je 0x10132c8a
push 0
test ebx, ebx
pop ebx
jne 0x10132ae0
test byte [edi + 0x26c], 2
jne 0x10132ae0
test eax, eax
setne al
jmp 0x10132c91
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10143940
leave
ret 4
Function at 0x401ca0
Capabilities:
Terminate process

Disassembly:
mov edx, dword [esp + 8]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
cmp ecx, 0x400
jbe 0x401ceb
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push 0x400
push edx
add eax, 0x40
push str.bzip2:_file_name_n__s_nis_suspiciously__more_than__d_chars__long._nTry_using_a_reasonable_file_name_instead.__Sorry__:___n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
push 1
call fcn.00401a00
mov ecx, dword [0x412584]
add esp, 0x14
push ecx
call dword [sym.imp.MSVCRT.dll_exit]
push esi
mov esi, dword [esp + 8]
push 0x400
push edx
push esi
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov byte [esi + 0x400], 0
pop esi
ret
Function at 0x402900
Capabilities:
Terminate process

Disassembly:
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push str.bzip2:_Im_not_configured_correctly_for_this_platform__n_tI_require_Int32__Int16_and_Char_to_have_sizes_n_tof_4__2_and_1_bytes_to_run_properly__and_they_dont._n_tProbably_you_can_fix_this_by_defining_them_correctly__n_tand_recompiling.__Bye__n
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
push 3
call fcn.00401a00
mov ecx, dword [0x412584]
add esp, 0xc
push ecx
call dword [sym.imp.MSVCRT.dll_exit]
nop
nop
nop
nop
nop
Function at 0x403da0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x403e94
mov ebx, dword [sym.imp.MSVCRT.dll__isctype]
mov esi, eax
xor edi, edi
cmp byte [edi + esi], 0
je 0x403e94
add esi, edi
xor edi, edi
mov ecx, dword [sym.imp.MSVCRT.dll___mb_cur_max]
cmp dword [ecx], 1
jle 0x403dea
movsx edx, byte [esi]
push 8
push edx
call ebx
add esp, 8
jmp 0x403dfb
mov ecx, dword [sym.imp.MSVCRT.dll__pctype]
movsx eax, byte [esi]
mov edx, dword [ecx]
mov al, byte [edx + eax*2]
and eax, 8
test eax, eax
je 0x403e02
inc esi
jmp 0x403dd2
cmp byte [esi], 0
je 0x403dc4
mov eax, dword [sym.imp.MSVCRT.dll___mb_cur_max]
cmp dword [eax], 1
jle 0x403e1f
movsx ecx, byte [edi + esi]
push 8
push ecx
call ebx
add esp, 8
jmp 0x403e30
mov eax, dword [sym.imp.MSVCRT.dll__pctype]
movsx edx, byte [edi + esi]
mov ecx, dword [eax]
mov al, byte [ecx + edx*2]
and eax, 8
test eax, eax
jne 0x403e3d
mov al, byte [edi + esi + 1]
inc edi
test al, al
jne 0x403e07
test edi, edi
jle 0x403dc4
cmp edi, 0x400
mov ecx, edi
jle 0x403e50
mov ecx, 0x400
xor eax, eax
test ecx, ecx
jle 0x403e70
mov ebp, esi
sub ebp, 0x412de0
mov dl, byte [eax + ebp + 0x412de0]
mov byte [eax + 0x412de0], dl
inc eax
cmp eax, ecx
jl 0x403e5e
mov ebp, dword [esp + 0x14]
mov byte [ecx + 0x412de0], 0
push 0x412de0
mov eax, dword [ebp]
push eax
call fcn.00403cd0
add esp, 8
mov dword [ebp], eax
jmp 0x403dc4
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x403eb0
Capabilities:
Terminate process

Disassembly:
push esi
push edi
call fcn.00406380
mov esi, dword [esp + 0xc]
mov edi, dword [sym.imp.MSVCRT.dll_fprintf]
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push esi
add eax, 0x40
push str._n_nbzip2_libbzip2:_internal_error_number__d._nThis_is_a_bug_in_bzip2_libbzip2___s._nPlease_report_it_to_me_at:_jseward_bzip.org.__If_this_happened_nwhen_you_were_using_some_program_which_uses_libbzip2_as_a_ncomponent__you_should_also_report_this_bug_to_the_author_s__nof_that_program.__Please_make_an_effort_to_report_this_bug__ntimely_and_accurate_bug_reports_eventually_lead_to_higher_nquality_software.__Thanks.__Julian_Seward__15_February_2005._n_n
push eax
call edi
add esp, 0x10
cmp esi, 0x3ef
jne 0x403ef2
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
push str._n_A_special_note_about_internal_error_number_1007__n_nExperience_suggests_that_a_common_cause_of_i.e._1007_nis_unreliable_memory_or_other_hardware.__The_1007_assertion_njust_happens_to_cross_check_the_results_of_huge_numbers_of_nmemory_reads_writes__and_so_acts__unintendedly__as_a_stress_ntest_of_your_memory_system._n_nI_suggest_the_following:_try_compressing_the_file_again__npossibly_monitoring_progress_in_detail_with_the__vv_flag._n_n_If_the_error_cannot_be_reproduced__and_or_happens_at_different_n__points_in_compression__you_may_have_a_flaky_memory_system._n__Try_a_memory_test_program.__I_have_used_Memtest86_n___www.memtest86.com_.__At_the_time_of_writing_it_is_free__GPLd_._n__Memtest86_tests_memory_much_more_thorougly_than_your_BIOSs_n__power_on_test__and_may_find_failures_that_the_BIOS_doesnt._n_n_If_the_error_can_be_repeatably_reproduced__this_is_a_bug_in_n__bzip2__and_I_would_very_much_like_to_hear_about_it.__Please_n__let_me_know__and__ideally__save_a_copy_of_the_file_causing_the_n__problem____without_which_I_will_be_unable_to_investigate_it._n_n
add ecx, 0x40
push ecx
call edi
add esp, 8
push 3
call dword [sym.imp.MSVCRT.dll_exit]
pop edi
pop esi
nop
nop
nop
nop
Function at 0x404460
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
mov edi, dword [eax + 0x38]
mov cl, byte [eax + 0x34]
test edi, edi
mov byte [esp + 0x10], cl
jle 0x4044a1
mov esi, dword [esp + 0x10]
and esi, 0xff
mov edx, dword [eax + 0x260]
mov ebx, edx
shr ebx, 0x18
xor ebx, esi
shl edx, 8
mov ebx, dword [ebx*4 + 0x411784]
xor ebx, edx
dec edi
mov dword [eax + 0x260], ebx
jne 0x40447f
mov edx, dword [eax + 0x34]
mov bl, 1
mov byte [eax + edx + 0x58], bl
mov edx, dword [eax + 0x38]
mov esi, edx
dec esi
je 0x40454f
dec esi
je 0x40452e
dec esi
je 0x404514
mov byte [edx + eax + 0x54], bl
mov edx, dword [eax + 0x24]
mov esi, dword [eax + 0x44]
mov byte [edx + esi], cl
mov esi, dword [eax + 0x44]
inc esi
mov dword [eax + 0x44], esi
mov edx, esi
mov esi, dword [eax + 0x24]
mov byte [esi + edx], cl
mov edx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
inc edx
mov dword [eax + 0x44], edx
mov byte [esi + edx], cl
mov ebx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
inc ebx
mov edx, ebx
mov dword [eax + 0x44], ebx
mov byte [esi + edx], cl
mov edi, dword [eax + 0x44]
mov dl, byte [eax + 0x38]
mov esi, dword [eax + 0x24]
inc edi
sub dl, 4
mov ecx, edi
mov dword [eax + 0x44], edi
pop edi
mov byte [esi + ecx], dl
mov ecx, dword [eax + 0x44]
inc ecx
pop esi
mov dword [eax + 0x44], ecx
pop ebx
ret
mov edx, dword [eax + 0x24]
mov esi, dword [eax + 0x44]
mov byte [edx + esi], cl
mov esi, dword [eax + 0x44]
inc esi
mov dword [eax + 0x44], esi
mov edx, esi
mov esi, dword [eax + 0x24]
mov byte [esi + edx], cl
jmp 0x404537
mov edx, dword [eax + 0x24]
mov esi, dword [eax + 0x44]
mov byte [edx + esi], cl
mov edx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
inc edx
pop edi
mov dword [eax + 0x44], edx
mov byte [esi + edx], cl
mov ecx, dword [eax + 0x44]
inc ecx
pop esi
mov dword [eax + 0x44], ecx
pop ebx
ret
mov edx, dword [eax + 0x24]
mov esi, dword [eax + 0x44]
pop edi
mov byte [edx + esi], cl
mov ecx, dword [eax + 0x44]
inc ecx
pop esi
mov dword [eax + 0x44], ecx
pop ebx
ret
Function at 0x4058e0
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor edx, edx
cmp edi, edx
je 0x4058f0
mov dword [edi], edx
mov esi, dword [esp + 0x18]
cmp esi, edx
je 0x405a34
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x13c4], edx
cmp ecx, edx
je 0x405a34
mov eax, dword [esp + 0x20]
cmp eax, edx
jl 0x405a34
mov bl, byte [esi + 0x1390]
test bl, bl
jne 0x40593f
cmp edi, edx
je 0x40592e
mov dword [edi], 0xffffffff
mov dword [esi + 0x13c4], 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov ebx, dword [esi]
test byte [ebx + 0xc], 0x20
je 0x405962
cmp edi, edx
je 0x405951
mov dword [edi], 0xfffffffa
mov dword [esi + 0x13c4], 0xfffffffa
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
cmp eax, edx
jne 0x405979
cmp edi, edx
je 0x40596c
mov dword [edi], edx
mov dword [esi + 0x13c4], edx
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
lea ebx, [esi + 0x1394]
mov dword [esi + 0x1398], eax
lea ebp, [esi + 4]
mov dword [ebx], ecx
push 0
push ebx
mov dword [esi + 0x13a8], 0x1388
mov dword [esi + 0x13a4], ebp
call fcn.00404180
cmp eax, 1
jne 0x4059e7
mov eax, dword [esi + 0x13a8]
cmp eax, 0x1388
jae 0x4059db
mov edi, 0x1388
sub edi, eax
mov eax, dword [esi]
push eax
push edi
push 1
push ebp
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4059fa
mov ecx, dword [esi]
test byte [ecx + 0xc], 0x20
jne 0x4059fa
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x1398]
test eax, eax
je 0x405a19
jmp 0x40598a
test edi, edi
je 0x4059ed
mov dword [edi], eax
mov dword [esi + 0x13c4], eax
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov eax, dword [esp + 0x14]
test eax, eax
je 0x405a08
mov dword [eax], 0xfffffffa
mov dword [esi + 0x13c4], 0xfffffffa
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
test edi, edi
je 0x405a23
mov dword [edi], 0
mov dword [esi + 0x13c4], 0
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
cmp edi, edx
je 0x405a3e
mov dword [edi], 0xfffffffe
cmp esi, edx
je 0x405a4c
mov dword [esi + 0x13c4], 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x405a90
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x405ab1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x405c59
mov dword [eax], edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x1c
mov al, byte [edi + 0x1390]
test al, al
jne 0x405ada
mov eax, dword [esp + 0x14]
test eax, eax
je 0x405ac9
mov dword [eax], 0xffffffff
mov dword [edi + 0x13c4], 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret 0x1c
mov eax, dword [edi]
test byte [eax + 0xc], 0x20
jne 0x405bd7
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x405af4
mov dword [ecx], 0
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x405b03
mov dword [ebp], 0
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x405b11
mov dword [ebx], 0
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x405b1f
mov dword [esi], 0
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x405bfa
mov eax, dword [edi + 0x13c4]
test eax, eax
jne 0x405bbd
lea ebx, [edi + 4]
lea eax, [edi + 0x1394]
mov esi, 0x1388
push 2
push eax
mov dword [edi + 0x13a8], esi
mov dword [edi + 0x13a4], ebx
call fcn.00404180
mov ebp, eax
cmp ebp, 3
je 0x405b67
cmp ebp, 4
jne 0x405b96
mov eax, dword [edi + 0x13a8]
cmp eax, esi
jae 0x405b8f
mov ecx, dword [edi]
sub esi, eax
push ecx
push esi
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x405bd7
mov edx, dword [edi]
test byte [edx + 0xc], 0x20
jne 0x405bd7
cmp ebp, 4
je 0x405bad
jmp 0x405b3c
mov eax, dword [esp + 0x14]
test eax, eax
je 0x405ba0
mov dword [eax], ebp
mov dword [edi + 0x13c4], ebp
pop edi
pop esi
pop ebp
pop ebx
ret 0x1c
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov eax, dword [edi]
test byte [eax + 0xc], 0x20
jne 0x405bfa
push eax
call dword [sym.imp.MSVCRT.dll_fflush]
mov eax, dword [edi]
add esp, 4
test byte [eax + 0xc], 0x20
je 0x405bf6
mov eax, dword [esp + 0x14]
test eax, eax
je 0x405be5
mov dword [eax], 0xfffffffa
mov dword [edi + 0x13c4], 0xfffffffa
pop edi
pop esi
pop ebp
pop ebx
ret 0x1c
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x405c06
mov edx, dword [edi + 0x139c]
mov dword [ecx], edx
test ebp, ebp
je 0x405c13
mov eax, dword [edi + 0x13a0]
mov dword [ebp], eax
test ebx, ebx
je 0x405c1f
mov ecx, dword [edi + 0x13ac]
mov dword [ebx], ecx
test esi, esi
je 0x405c2b
mov edx, dword [edi + 0x13b0]
mov dword [esi], edx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x405c39
mov dword [eax], 0
lea eax, [edi + 0x1394]
mov dword [edi + 0x13c4], 0
push eax
call fcn.004047c0
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret 0x1c