joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x41e24d
mov eax, dword [ebp + 8]
test eax, eax
je 0x41e41c
mov dword [eax], edi
pop edi
pop ebp
ret 0x1c
cmp byte [edi + 0x1390], 0
jne 0x41e272
mov eax, dword [ebp + 8]
test eax, eax
je 0x41e263
mov dword [eax], 0xffffffff
mov dword [edi + 0x13c4], 0xffffffff
pop edi
pop ebp
ret 0x1c
mov eax, dword [edi]
push eax
call fcn.0043a617
add esp, 4
test eax, eax
je 0x41e29d
mov eax, dword [ebp + 8]
test eax, eax
je 0x41e28e
mov dword [eax], 0xfffffffa
mov dword [edi + 0x13c4], 0xfffffffa
pop edi
pop ebp
ret 0x1c
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x41e2aa
mov dword [ecx], 0
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x41e2b7
mov dword [eax], 0
push ebx
mov ebx, dword [ebp + 0x1c]
test ebx, ebx
je 0x41e2c5
mov dword [ebx], 0
push esi
mov esi, dword [ebp + 0x20]
test esi, esi
je 0x41e2d3
mov dword [esi], 0
cmp dword [ebp + 0x10], 0
jne 0x41e3be
cmp dword [edi + 0x13c4], 0
jne 0x41e35e
jmp 0x41e2f0
lea eax, [edi + 4]
mov dword [edi + 0x13a4], eax
push 2
lea eax, [edi + 0x1394]
mov esi, 0x1388
push eax
mov dword [edi + 0x13a8], esi
call fcn.0041d010
mov ebx, eax
cmp ebx, 3
je 0x41e322
cmp ebx, 4
jne 0x41e3a2
mov eax, dword [edi + 0x13a8]
cmp eax, esi
jae 0x41e353
mov ecx, dword [edi]
push ecx
sub esi, eax
push esi
lea eax, [edi + 4]
push 1
push eax
call fcn.0043a7a5
add esp, 0x10
cmp esi, eax
jne 0x41e384
mov edx, dword [edi]
push edx
call fcn.0043a617
add esp, 4
test eax, eax
jne 0x41e384
cmp ebx, 4
jne 0x41e2f0
mov esi, dword [ebp + 0x20]
mov ebx, dword [ebp + 0x1c]
mov eax, dword [edi]
push eax
call fcn.0043a617
add esp, 4
test eax, eax
jne 0x41e3b8
mov ecx, dword [edi]
push ecx
call fcn.0043a9a5
mov edx, dword [edi]
push edx
call fcn.0043a617
add esp, 8
test eax, eax
je 0x41e3b8
mov eax, dword [ebp + 8]
test eax, eax
je 0x41e391
mov dword [eax], 0xfffffffa
pop esi
pop ebx
mov dword [edi + 0x13c4], 0xfffffffa
pop edi
pop ebp
ret 0x1c
mov eax, dword [ebp + 8]
test eax, eax
je 0x41e3ab
mov dword [eax], ebx
pop esi
mov dword [edi + 0x13c4], ebx
pop ebx
pop edi
pop ebp
ret 0x1c
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x41e3ca
mov edx, dword [edi + 0x139c]
mov dword [ecx], edx
test eax, eax
je 0x41e3d6
mov ecx, dword [edi + 0x13a0]
mov dword [eax], ecx
test ebx, ebx
je 0x41e3e2
mov edx, dword [edi + 0x13ac]
mov dword [ebx], edx
test esi, esi
je 0x41e3ee
mov eax, dword [edi + 0x13b0]
mov dword [esi], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x41e3fb
mov dword [eax], 0
lea ecx, [edi + 0x1394]
push ecx
mov dword [edi + 0x13c4], 0
call fcn.0041d160
push edi
call fcn.00436a3d
add esp, 4
pop esi
pop ebx
pop edi
pop ebp
ret 0x1c
Function at 0x41e630
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.0041e610
mov esi, dword [ebp + 8]
push eax
push esi
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__10_December_2007._n_n
call fcn.0043aaef
add eax, 0x40
push eax
call fcn.0043acbb
add esp, 0x10
cmp esi, 0x3ef
jne 0x41e672
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
call fcn.0043aaef
add eax, 0x40
push eax
call fcn.0043acbb
add esp, 8
push 3
call fcn.00439adb
int3
Function at 0x41e830
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
cmp ebx, edx
push edi
je 0x41e840
mov dword [ebx], edx
mov edi, dword [ebp + 0xc]
cmp edi, edx
je 0x41ea17
mov eax, dword [ebp + 0x10]
cmp eax, edx
mov dword [edi + 0x13c4], edx
je 0x41ea17
mov ecx, dword [ebp + 0x14]
cmp ecx, edx
jl 0x41ea17
cmp byte [edi + 0x1390], dl
je 0x41e88b
cmp ebx, edx
je 0x41e879
mov dword [ebx], 0xffffffff
mov dword [edi + 0x13c4], 0xffffffff
pop edi
xor eax, eax
pop ebx
pop ebp
ret 0x10
cmp ecx, edx
jne 0x41e8a3
cmp ebx, edx
je 0x41e895
mov dword [ebx], edx
mov dword [edi + 0x13c4], edx
pop edi
xor eax, eax
pop ebx
pop ebp
ret 0x10
mov dword [edi + 0x13a4], eax
mov eax, dword [edi]
push esi
push eax
mov dword [edi + 0x13a8], ecx
call fcn.0043a617
add esp, 4
test eax, eax
jne 0x41e965
cmp dword [edi + 0x1398], 0
jne 0x41e914
mov esi, dword [edi]
call fcn.0041df40
test al, al
jne 0x41e914
mov ecx, dword [edi]
push ecx
push 0x1388
lea esi, [edi + 4]
push 1
push esi
call fcn.0043b0a6
mov edx, dword [edi]
push edx
mov ebx, eax
call fcn.0043a617
add esp, 0x14
test eax, eax
jne 0x41e9a7
mov dword [edi + 0x138c], ebx
mov dword [edi + 0x1398], ebx
mov ebx, dword [ebp + 8]
mov dword [edi + 0x1394], esi
lea eax, [edi + 0x1394]
push eax
call fcn.0041e680
test eax, eax
jne 0x41e982
mov esi, dword [edi]
call fcn.0041df40
test al, al
je 0x41e945
cmp dword [edi + 0x1398], 0
jne 0x41e945
cmp dword [edi + 0x13a8], 0
ja 0x41e9dc
cmp dword [edi + 0x13a8], 0
je 0x41e9f9
mov ecx, dword [edi]
push ecx
call fcn.0043a617
add esp, 4
test eax, eax
je 0x41e8c3
test ebx, ebx
je 0x41e96f
mov dword [ebx], 0xfffffffa
pop esi
mov dword [edi + 0x13c4], 0xfffffffa
pop edi
xor eax, eax
pop ebx
pop ebp
ret 0x10
cmp eax, 4
jne 0x41e9c7
test ebx, ebx
je 0x41e98d
mov dword [ebx], eax
mov eax, dword [ebp + 0x14]
sub eax, dword [edi + 0x13a8]
pop esi
mov dword [edi + 0x13c4], 4
pop edi
pop ebx
pop ebp
ret 0x10
mov eax, dword [ebp + 8]
test eax, eax
je 0x41e96f
mov dword [eax], 0xfffffffa
pop esi
mov dword [edi + 0x13c4], 0xfffffffa
pop edi
xor eax, eax
pop ebx
pop ebp
ret 0x10
test ebx, ebx
je 0x41e9cd
mov dword [ebx], eax
pop esi
mov dword [edi + 0x13c4], eax
pop edi
xor eax, eax
pop ebx
pop ebp
ret 0x10
test ebx, ebx
je 0x41e9e6
mov dword [ebx], 0xfffffff9
pop esi
mov dword [edi + 0x13c4], 0xfffffff9
pop edi
xor eax, eax
pop ebx
pop ebp
ret 0x10
test ebx, ebx
je 0x41ea03
mov dword [ebx], 0
mov eax, dword [ebp + 0x14]
pop esi
mov dword [edi + 0x13c4], 0
pop edi
pop ebx
pop ebp
ret 0x10
cmp ebx, edx
je 0x41ea21
mov dword [ebx], 0xfffffffe
cmp edi, edx
je 0x41ea2f
mov dword [edi + 0x13c4], 0xfffffffe
pop edi
xor eax, eax
pop ebx
pop ebp
ret 0x10
Function at 0x428554
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x42858d
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0040c4c7
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040537f
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x429aab
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x45ae5c
mov ecx, edi
call fcn.00401607
cmp dword [esi + 0x4c], 0
push dword [esp + 0xc]
jne 0x429afe
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x429b11
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.0040c4c7
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0040537f
jmp 0x429b11
mov ecx, esi
call fcn.0042aed1
test eax, eax
je 0x429b11
push edi
mov ecx, eax
call fcn.00428554
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
pop edi
pop esi
ret 8

Function at 0x429fef
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x42a032
call fcn.00430198
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42a032
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42a04d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00429ba9
test ebx, ebx
mov esi, eax
je 0x42a04b
test edi, edi
je 0x42a04b
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x42abd7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x44f513
call fcn.0043baf1
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.00430198
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x42ac22
call fcn.00430198
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x42ac33
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x42ac40
or eax, 0xffffffff
jmp 0x42ad9c
mov ecx, esi
call fcn.0042a71e
mov dword [ebp - 0x14], eax
call fcn.004275dd
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x42acbe
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x42acbe
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x42acbe
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.004261c3
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x42acbe
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x42acbe
mov ecx, ebx
call fcn.0042b0aa
test eax, eax
je 0x42acbe
push 0
mov ecx, ebx
call fcn.0042b0c5
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00428e65
push dword [ebp - 0x14]
call fcn.00427535
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0042a9df
xor edi, edi
cmp eax, edi
je 0x42ad1b
test byte [esi + 0x3c], 0x10
je 0x42ad05
push 4
pop edi
mov ecx, esi
call fcn.0042af91
test ax, 0x100
je 0x42acfb
push 5
pop edi
push edi
mov ecx, esi
call fcn.004270fd
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x42ad1b
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0042b12c
or dword [ebp - 4], 0xffffffff
jmp 0x42ad46
cmp dword [ebp - 0x28], edi
je 0x42ad54
push 1
mov ecx, ebx
call fcn.0042b0c5
cmp dword [ebp - 0x2c], edi
je 0x42ad64
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x42ad7d
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x42ad7d
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0042a758
cmp dword [esi + 0x58], edi
je 0x42ad99
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0043bb96
ret
Function at 0x42ae06
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x42ae26
cmp dword [edi + 0x54], 0
jne 0x42ae26
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00430198
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0042adcd
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x431b17
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x46dd08]
xor eax, ebp
mov dword [ebp + 0x1f0], eax
cmp dword [ebp + 0x200], 0x800
mov eax, dword [ebp + 0x1fc]
push esi
mov dword [ebp - 0x40], eax
mov esi, ecx
lea eax, [ebp + 0x1e8]
jne 0x431bb5
push 0x45810c
push 4
push eax
call fcn.00439be1
push eax
call fcn.004015b3
add esp, 0x10
push ebx
push edi
call fcn.0043be86
mov edi, dword [eax]
call fcn.0043be86
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0043be2c
add esp, 0x18
mov dword [ebp - 0x40], eax
call fcn.0043be86
cmp dword [eax], ebx
je 0x431bcc
call fcn.0043be86
push dword [eax]
call fcn.00418040
pop ecx
jmp 0x431bd3
push 4
push eax
push 3
push dword [ebp + 0x200]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x431b66
jmp 0x431c45
call fcn.0043be86
mov dword [eax], edi
cmp dword [ebp - 0x40], 0xffffffff
je 0x431c41
cmp dword [ebp - 0x40], esi
jae 0x431c41
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.00436ad0
add esp, 0xc
push 0x457750
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x431c33
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x431c33
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x431c33
push ebx
push ebx
push esi
jmp 0x431c39
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x431c43
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x1f0]
xor ecx, ebp
pop esi
call fcn.00435f5a
add ebp, 0x1f4
leave
ret
Function at 0x435f5a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46dd08]
jne 0x435f64
repz ret
jmp fcn.0043e3a3
Function at 0x43ae0a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x43ae47
cmp dword [ebp + 0x14], edi
je 0x43ae47
cmp ecx, edi
jne 0x43ae4e
call fcn.0043be86
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0043e91b
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x43ae62
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x43ae83
cmp ebx, 0xffffffff
je 0x43ae72
push ebx
push edi
push ecx
call fcn.00436ad0
add esp, 0xc
cmp esi, edi
je 0x43ae2f
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x43ae2f
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x43ae9f
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x43aea6
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x43af97
test word [esi + 0xc], 0x10c
je 0x43aefa
mov eax, dword [esi + 4]
test eax, eax
je 0x43aefa
jl 0x43aff8
cmp ebx, eax
mov edi, ebx
jb 0x43aecb
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x43af9f
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004365a4
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x43af8f
cmp ebx, dword [ebp - 0xc]
jb 0x43af67
cmp dword [ebp - 0xc], 0
je 0x43af24
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x43af19
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x43af20
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x43af2f
mov eax, SysReAllocString
cmp ebx, eax
ja 0x43af2f
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x43afcb
push eax
push dword [ebp - 8]
push esi
call fcn.0043c3aa
pop ecx
push eax
call fcn.0044695e
add esp, 0xc
test eax, eax
je 0x43b00a
cmp eax, 0xffffffff
je 0x43aff8
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x43af8f
push esi
call fcn.00444aec
cmp eax, 0xffffffff
pop ecx
je 0x43affc
cmp dword [ebp - 4], 0
je 0x43afcb
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x43aeae
mov eax, dword [ebp + 0x14]
jmp 0x43ae49
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x43afb6
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00436ad0
add esp, 0xc
call fcn.0043be86
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x43ae3f
cmp dword [ebp + 0xc], 0xffffffff
je 0x43afe1
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00436ad0
add esp, 0xc
call fcn.0043be86
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x43ae3f
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x43ae49
or dword [esi + 0xc], 0x10
jmp 0x43affc
Function at 0x43d117
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x46de90]
je 0x43d132
inc edi
cmp edi, 0x17
jb 0x43d123
cmp edi, 0x17
jae 0x43d2b2
push ebp
push 3
call fcn.004498df
cmp eax, 1
pop ecx
je 0x43d27e
push 3
call fcn.004498df
test eax, eax
pop ecx
jne 0x43d166
cmp dword [0x46d9dc], 1
je 0x43d27e
cmp ebx, 0xfc
je 0x43d2b1
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x471d08
push ebp
call fcn.0044987a
add esp, 0xc
test eax, eax
je 0x43d19c
push esi
push esi
push esi
push esi
push esi
call fcn.0043e81f
add esp, 0x14
push 0x104
mov esi, 0x471d21
push esi
push 0
mov byte [0x471e25], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43d1e0
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0044987a
add esp, 0xc
test eax, eax
je 0x43d1e0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043e81f
add esp, 0x14
push esi
call fcn.004397c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43d225
push esi
call fcn.004397c0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x47201c
push 0x4595a4
sub ecx, eax
push ecx
push eax
call fcn.004497c7
add esp, 0x14
test eax, eax
je 0x43d225
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043e81f
add esp, 0x14
jmp 0x43d227
xor esi, esi
push 0x4595a0
push ebx
push ebp
call fcn.00449756
add esp, 0xc
test eax, eax
je 0x43d247
push esi
push esi
push esi
push esi
push esi
call fcn.0043e81f
add esp, 0x14
push dword [edi*8 + 0x46de94]
push ebx
push ebp
call fcn.00449756
add esp, 0xc
test eax, eax
je 0x43d269
push esi
push esi
push esi
push esi
push esi
call fcn.0043e81f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00449599
add esp, 0xc
jmp 0x43d2b1
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x43d2b1
cmp ebp, 0xffffffff
je 0x43d2b1
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x46de94]
push dword [esi]
call fcn.004397c0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x449599
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0043dcdb
xor ebx, ebx
cmp dword [0x47280c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x44966f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x44974f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x44974f
push eax
call fcn.0043dc6d
mov dword [esp], 0x4599f8
push edi
mov dword [0x47280c], eax
call esi
push eax
call fcn.0043dc6d
mov dword [esp], 0x4599e4
push edi
mov dword [0x472810], eax
call esi
push eax
call fcn.0043dc6d
mov dword [0x472814], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004398f4
test eax, eax
pop ecx
pop ecx
je 0x44963d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043e81f
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x44966f
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0043dc6d
cmp eax, ebx
pop ecx
mov dword [0x47281c], eax
je 0x44966f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043dc6d
pop ecx
mov dword [0x472818], eax
mov eax, dword [0x472818]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4496f4
cmp dword [0x47281c], ecx
je 0x4496f4
push eax
call fcn.0043dce4
push dword [0x47281c]
mov esi, eax
call fcn.0043dce4
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4496f4
cmp edi, ebx
je 0x4496f4
call esi
cmp eax, ebx
je 0x4496c1
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4496c1
test byte [ebp - 0x18], 1
jne 0x4496f4
lea eax, [ebp - 0x10]
push eax
call fcn.0043992b
test eax, eax
pop ecx
je 0x4496dc
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043e81f
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4496eb
or dword [ebp + 0x10], 0x200000
jmp 0x44972f
or dword [ebp + 0x10], 0x40000
jmp 0x44972f
mov eax, dword [0x472810]
cmp eax, dword [ebp - 8]
je 0x44972f
push eax
call fcn.0043dce4
cmp eax, ebx
pop ecx
je 0x44972f
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x44972f
mov eax, dword [0x472814]
cmp eax, dword [ebp - 8]
je 0x44972f
push eax
call fcn.0043dce4
cmp eax, ebx
pop ecx
je 0x44972f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47280c]
call fcn.0043dce4
cmp eax, ebx
pop ecx
je 0x44974f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x449751
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret