joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415280
Capabilities:
Copy file
Create directory
Set file attributes
Terminate process

Disassembly:
sub esp, 0x404
mov eax, dword [0x473eb8]
push esi
mov dword [esp + 0x404], eax
push 0x200
lea eax, [esp + 0x208]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4152fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x475498]
mov ecx, dword [eax]
push esi
push 0x9e
push str._Checker:_d_GetModuleFileName_err:_u
push eax
call dword [ecx + 4]
push esi
push 0x9f
push str._Checker:_d_GetModuleFileName_err:_u
push 0x47549c
call fcn.0040f2c0
add esp, 0x20
mov eax, esi
pop esi
mov ecx, dword [esp + 0x400]
call fcn.004375fb
add esp, 0x404
ret 0x14
mov esi, dword [esp + 0x41c]
test esi, esi
je 0x415348
xor eax, eax
jmp 0x415310
mov cl, byte [esp + eax + 0x204]
mov byte [esp + eax + 4], cl
inc eax
test cl, cl
jne 0x415310
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathStripPathA]
lea eax, [esp + 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415332
sub eax, edx
push eax
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.00401610
mov ecx, dword [esp + 0x40c]
mov edx, dword [0x4754b8]
push edi
mov edi, dword [esp + 0x41c]
push ecx
push edx
push str._s_s
push edi
call fcn.004037b0
mov eax, dword [edi]
add esp, 0x10
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4153d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
je 0x4153d3
mov eax, dword [0x475498]
mov ecx, dword [eax]
push esi
push 0xad
push str._Checker:_d_CreateDirectory_err:_u
push eax
call dword [ecx + 4]
push esi
push 0xae
push str._Checker:_d_CreateDirectory_err:_u
push 0x47549c
call fcn.0040f2c0
add esp, 0x20
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x400]
call fcn.004375fb
add esp, 0x404
ret 0x14
mov edx, dword [esp + 0x414]
push ebx
push ebp
push edx
push 0x45c05c
push edi
call fcn.00404740
mov eax, dword [edi]
add esp, 0xc
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
xor ebp, ebp
mov eax, dword [edi]
push 0
push eax
lea ecx, [esp + 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x415476
mov eax, dword [edi]
push eax
call fcn.0040f5c0
add esp, 4
test eax, eax
jbe 0x415444
push eax
push 0
push 1
call ebx
mov esi, eax
test esi, esi
je 0x415444
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x420]
test eax, eax
je 0x41545e
push 0x3e8
jmp 0x415468
cmp ebp, 3
jge 0x41547a
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebp
cmp ebp, 0xa
jl 0x415401
jmp 0x4154a8
xor eax, eax
jmp 0x4154aa
mov eax, dword [0x475498]
mov edx, dword [eax]
push esi
push 0xc4
push str._Checker:_d_CopyFile_err:_u
push eax
call dword [edx + 4]
push esi
push 0xc5
push str._Checker:_d_CopyFile_err:_u
push 0x47549c
call fcn.0040f2c0
add esp, 0x20
mov eax, esi
mov ecx, dword [esp + 0x410]
pop ebp
pop ebx
pop edi
pop esi
call fcn.004375fb
add esp, 0x404
ret 0x14
Function at 0x4160a0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov byte [esi + 0x98], 1
mov eax, dword [esi + 0x94]
test eax, eax
je 0x4160cb
mov eax, dword [esi + 0x94]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 0x94], 0
mov eax, dword [esi + 0x90]
test eax, eax
je 0x416114
mov ecx, dword [esi + 0x90]
push 0xdac
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4160fd
mov edx, dword [esi + 0x90]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x90], 0
pop esi
ret
Function at 0x417230
Capabilities:
Create http request

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00416050
test al, al
jne 0x4173da
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4173da
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x4173da
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x41726a
cmp eax, 0x14
jne 0x4173da
mov eax, dword [esi + 0x44]
test eax, eax
jl 0x4173da
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x4173da
mov eax, dword [esi + 0x68]
test eax, eax
je 0x4173da
cmp dword [esi + 0x18], 0x10
push edi
lea edi, [esi + 4]
jb 0x417299
mov eax, dword [edi]
jmp 0x41729b
mov eax, edi
mov ecx, dword [0x475498]
mov edx, dword [ecx]
push eax
push 0x67
push str._Down:_d__s
push ecx
call dword [edx + 4]
mov eax, dword [esi + 0x18]
add esp, 0x10
cmp eax, 0x10
jb 0x4172bc
mov edi, dword [edi]
push edi
push 0x68
push str._Down:_d__s
push 0x47549c
call fcn.0040f2c0
mov eax, dword [esi + 0x94]
add esp, 0x10
test eax, eax
pop edi
jne 0x417355
mov eax, dword [esi + 0x5c]
test eax, eax
jne 0x4172ea
mov eax, str.IE_4.0
jmp 0x4172f8
cmp dword [esi + 0x60], 0x10
jb 0x4172f5
mov eax, dword [esi + 0x4c]
jmp 0x4172f8
lea eax, [esi + 0x4c]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 0x94], eax
mov eax, dword [esi + 0x94]
test eax, eax
jne 0x417355
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x475498]
mov ecx, dword [eax]
push esi
push 1
push 0x6f
push str._Down:_d_inetopen__d:_d
push eax
call dword [ecx + 4]
push esi
push 1
push 0x70
push str._Down:_d_qinfo__d:_d
push 0x47549c
call fcn.0040f2c0
add esp, 0x28
xor edx, edx
mov eax, esi
or edx, 1
pop esi
pop ecx
ret
push 0
push 0
push 0
push 0
mov byte [esi + 0x98], 0
push 0
mov ecx, esi
call fcn.00415f70
lea edx, [esp + 4]
push edx
push 0
push esi
push 0x417220
push 0
push 0
call fcn.004374e8
mov dword [esi + 0x90], eax
mov eax, dword [esi + 0x90]
add esp, 0x18
test eax, eax
jne 0x4173d3
call fcn.00439984
mov esi, dword [eax]
mov eax, dword [0x475498]
mov ecx, dword [eax]
push esi
push 2
push 0x7d
push str._Down:_d_
push eax
call dword [ecx + 4]
push esi
push 2
push 0x7e
push str._Down:_d_bthrd___d:_d
push 0x47549c
call fcn.0040f2c0
add esp, 0x28
xor edx, edx
mov eax, esi
or edx, 2
pop esi
pop ecx
ret
xor eax, eax
xor edx, edx
pop esi
pop ecx
ret
or eax, 0xffffffff
mov edx, 3
pop esi
pop ecx
ret
Function at 0x419840
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp eax, ecx
jne 0x419850
mov eax, 1
ret
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
xor eax, eax
ret
Function at 0x41aa00
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret

Function at 0x41bc10
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
push str.1.0.3__15_Feb_2005
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__15_February_2005._n_n
push 0x473f38
call fcn.00439306
add esp, 0x10
cmp esi, 0x3ef
pop esi
jne 0x41bc48
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
push 0x473f38
call fcn.00439306
add esp, 8
push 3
call fcn.00439f70
int3
Function at 0x41e450
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
push ebx
push esi
push edi
push eax
push ecx
mov ebx, 1
xor esi, esi
mov dword [ebp - 8], esi
push ebx
call fcn.004218d0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add esp, 0xc
cmp eax, esi
je 0x41e603
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov eax, 0xf4240
mov dword [edx + 0x290], eax
mov edx, dword [ebp - 4]
mov dword [ecx + 0x294], eax
mov eax, dword [ebp - 4]
push 0x40
push 0x438b58
push eax
mov dword [edx + 0x298], esi
call fcn.00420090
push esi
push eax
call fcn.00438bd4
add esp, 0x14
test eax, eax
je 0x41e4c7
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
mov edx, dword [ebp - 4]
push esi
push ecx
push edi
push edx
call fcn.004219a0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push ecx
push edx
push eax
call fcn.004200e0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push ecx
push edx
call fcn.00421620
add esp, 0x28
test eax, eax
jne 0x41e508
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
test eax, eax
jne 0x41e54b
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov dword [eax + 0xb4], 0x2000
mov edx, dword [ecx + 0xb4]
mov eax, dword [ebp - 4]
push edx
push eax
call fcn.00421a50
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xb0], eax
mov eax, dword [edx + 0xb0]
add esp, 8
test eax, eax
jne 0x41e54b
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov dword [eax + 0x98], 0x420400
mov eax, dword [ebp - 4]
mov dword [ecx + 0x9c], fcn.00420450
mov dword [eax + 0xa0], edx
mov eax, dword [ebp - 8]
test eax, eax
jne 0x41e5d5
mov ecx, dword [ebp - 4]
push 0x38
add ecx, 0x78
push str.1.2.5
push ecx
call fcn.00421cb0
add eax, 6
add esp, 0xc
cmp eax, 6
ja case.0x41e596.5
jmp dword [eax*4 + 0x41e64c]
push str.zlib_memory_error
jmp 0x41e5bf
mov eax, dword [ebp - 4]
push str.zlib_stream_error
push eax
jmp 0x41e5c3
mov ecx, dword [ebp - 4]
push str.zlib_version_error
push ecx
jmp 0x41e5c3
push str.Unknown_zlib_error
mov edx, dword [ebp - 4]
push edx
call fcn.00420100
add esp, 8
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
test eax, eax
je 0x41e60c
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xb0]
mov edx, dword [ebp - 4]
push ecx
push edx
call fcn.00421a20
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
push edi
push esi
push ecx
mov dword [eax + 0xb0], 0
call fcn.00421950
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xb0]
mov dword [edx + 0x84], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xb4]
push 0
mov dword [edx + 0x88], ecx
mov edx, dword [ebp - 4]
push 0
push edx
call fcn.0041fd70
mov eax, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4200b0
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x4200ca
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x4200ca
mov edx, dword [esp + 8]
push edx
push ecx
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4374e8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x437505
call fcn.00439984
mov dword [eax], 0x16
xor eax, eax
jmp 0x43756f
push esi
push 0x8c
push 1
call fcn.0043b9f8
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x43755a
push esi
call fcn.0043c383
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x437538
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x437453
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x43756e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00437d5d
test ebx, ebx
pop ecx
je 0x43756c
push ebx
call fcn.00439996
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x437e87
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00437610
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x437f22
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4774a0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x437f22
cmp eax, 1
je 0x437f43
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x437f22
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x437eef
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x437f1e
xor eax, eax
inc eax
jmp 0x437f62
cmp edi, eax
jae 0x437f26
xor eax, eax
jmp 0x437f62
cmp eax, esi
jae 0x437f2d
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4774a0]
jmp 0x437f46
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x438d1d
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x464938
call fcn.0043b248
mov edi, 0x94
mov eax, edi
call fcn.00437610
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4774a0], ecx
mov eax, dword [esi + 4]
mov dword [0x4774ac], eax
mov edx, dword [esi + 8]
mov dword [0x4774b0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4774a4], esi
cmp ecx, 2
je 0x438d7d
or esi, 0x8000
mov dword [0x4774a4], esi
shl eax, 8
add eax, edx
mov dword [0x4774a8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x438db8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x438db8
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x438dd0
cmp eax, 0x20b
je 0x438dbd
mov dword [ebp - 0x1c], esi
jmp 0x438de4
cmp dword [ecx + 0x84], 0xe
jbe 0x438db8
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x438dde
cmp dword [ecx + 0x74], 0xe
jbe 0x438db8
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0043d3e9
pop ecx
test eax, eax
jne 0x438df8
push 0x1c
call fcn.00438cf9
pop ecx
call fcn.0043c57d
test eax, eax
jne 0x438e09
push 0x10
call fcn.00438cf9
pop ecx
call fcn.00440ae3
mov dword [ebp - 4], esi
call fcn.004408e5
test eax, eax
jge 0x438e22
push 0x1b
call fcn.00438cd4
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x478d84], eax
call fcn.004407c3
mov dword [0x47748c], eax
call fcn.00440721
test eax, eax
jge 0x438e48
push 8
call fcn.00438cd4
pop ecx
call fcn.004404ee
test eax, eax
jge 0x438e59
push 9
call fcn.00438cd4
pop ecx
push 1
call fcn.00439e43
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x438e6f
push eax
call fcn.00438cd4
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00440491
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x438e90
movzx eax, word [ebp - 0x40]
jmp 0x438e93
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004482e8
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x438eb1
push edi
call fcn.00439f70
call fcn.00439f92
jmp 0x438ee3
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0043b283
ret
Function at 0x439ead
Capabilities:
Terminate process

Disassembly:
push 8
push 0x464a28
call fcn.0043b248
push 8
call fcn.0043d58d
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4774e0], esi
jne 0x439ee1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4774dc], esi
mov al, byte [ebp + 0x10]
mov byte [0x4774d8], al
cmp dword [ebp + 0xc], edi
jne 0x439f2b
cmp dword [0x477d68], edi
je 0x439f1b
mov eax, dword [0x477d64]
sub eax, 4
mov dword [0x477d64], eax
cmp eax, dword [0x477d68]
jb 0x439f1b
mov eax, dword [eax]
cmp eax, edi
je 0x439efc
call eax
jmp 0x439efc
push 0x4720b8
mov eax, 0x4720b0
call fcn.00439e2b
pop ecx
push 0x4720c4
mov eax, 0x4720bc
call fcn.00439e2b
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x439f5c
cmp dword [ebp + 0x10], edi
jne 0x439f6a
mov dword [0x4774e0], esi
push dword [ebp + 8]
call fcn.00439de9
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x439f69
push 8
call fcn.0043d4d8
pop ecx
ret
call fcn.0043b283
ret
Function at 0x43e0fc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x43e12a
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x43e131
cmp ebx, dword [eax + 4]
jae 0x43e131
xor eax, eax
jmp 0x43e321
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x43e142
xor eax, eax
inc eax
jmp 0x43e320
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x43e158
cmp ecx, edx
jae 0x43e29d
cmp dword [eax + 4], 0
je 0x43e161
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x43e149
cmp dword [ebp + 8], 0
je 0x43e183
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x43e29d
cmp eax, esi
jae 0x43e29d
mov eax, dword [0x477658]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x43e1a8
cmp dword [esi*4 + 0x477660], edi
je 0x43e2a1
inc esi
cmp esi, eax
jl 0x43e196
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43e31d
cmp dword [ebp - 8], 0x1000000
jne 0x43e31d
test byte [ebp - 0xc], 0xcc
je 0x43e226
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x43e31d
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x43e31d
cmp word [eax + 0x18], 0x10b
jne 0x43e31d
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x43e31d
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x43e226
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x43e226
test byte [ecx + 0x27], 0x80
jne 0x43e29d
push 1
push 0x4776a0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x43e13a
mov ecx, dword [0x477658]
test ecx, ecx
mov edx, ecx
jle 0x43e25a
lea eax, [ecx*4 + 0x47765c]
cmp dword [eax], edi
je 0x43e25a
dec edx
sub eax, 4
test edx, edx
jg 0x43e24e
test edx, edx
jne 0x43e28b
push 0xf
pop ebx
cmp ecx, ebx
jg 0x43e267
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x43e27f
lea eax, [edx*4 + 0x477660]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x43e26d
cmp ecx, 0x10
jge 0x43e28b
inc ecx
mov dword [0x477658], ecx
push 0
push 0x4776a0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x43e13a
xor eax, eax
jmp 0x43e320
test esi, esi
jle 0x43e13a
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4776a0
call ebx
test eax, eax
jne 0x43e13a
cmp dword [esi*4 + 0x477660], edi
je 0x43e2f7
mov eax, dword [0x477658]
lea esi, [eax - 1]
test esi, esi
jl 0x43e2e5
cmp dword [esi*4 + 0x477660], edi
je 0x43e2e1
dec esi
jns 0x43e2d5
test esi, esi
jge 0x43e2f5
cmp eax, 0x10
jge 0x43e2f0
inc eax
mov dword [0x477658], eax
lea esi, [eax - 1]
jmp 0x43e2f7
je 0x43e30f
xor ecx, ecx
test esi, esi
jl 0x43e30f
lea eax, [ecx*4 + 0x477660]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x43e2fd
push 0
push 0x4776a0
call ebx
jmp 0x43e13a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4402e1
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x473eb8]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4746c0]
je 0x440316
inc eax
cmp eax, 0x13
jb 0x440307
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4746c0]
jne 0x44043c
mov eax, dword [0x477494]
cmp eax, 1
je 0x440414
cmp eax, edx
jne 0x440346
cmp dword [0x473ef4], 1
je 0x440414
cmp ecx, 0xfc
je 0x44043c
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x44037c
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004382b0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00437650
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4403b0
mov eax, edi
push eax
call fcn.00437650
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x464ca4
push edi
call fcn.00441460
add esp, 0x10
push edi
call fcn.00437650
push dword [esi + 0x4746c4]
mov ebx, eax
call fcn.00437650
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00437610
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004382b0
push edi
push ebx
call fcn.004382c0
push 0x464ca0
push ebx
call fcn.004382c0
push dword [esi + 0x4746c4]
push ebx
call fcn.004382c0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00444768
add esp, 0x2c
jmp 0x44043c
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4746c4]
push dword [esi]
call fcn.00437650
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004375fb
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret