joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18013b0e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x250
mov rax, qword [0x180280f80]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov eax, dword [rcx + 0x58]
lea rbx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
mov ebp, r9d
mov eax, dword [rcx + 0x5c]
mov rsi, rcx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x290]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x30], r9d
mov qword [rsp + 0x278], rdi
nop dword [rax]
mov r10d, dword [rbx + 0x14]
mov eax, r10d
mov r14d, dword [rbx + 4]
cmp r10d, r14d
mov r9d, dword [rbx + 0xc]
cmovg eax, r14d
cmp r9d, eax
jl 0x18013b27c
cmp r10d, r14d
mov eax, r14d
cmovg eax, r10d
cmp r9d, eax
jg 0x18013b27c
cmp r10d, r14d
jne 0x18013b180
sub rbx, 0x10
jmp 0x18013b2c4
mov edx, dword [rsi + 0x88]
xor r9d, r9d
cmp r10d, r14d
setge r9b
inc r9d
cmp edx, r9d
je 0x18013b1f2
mov eax, dword [rsi + 4]
mov ecx, eax
mov r8d, dword [rsi + 8]
neg ecx
cmp r10d, r14d
jge 0x18013b1b4
dec eax
add eax, r10d
and eax, ecx
sub eax, r10d
jmp 0x18013b1bc
and ecx, r10d
mov eax, r10d
sub eax, ecx
cmp eax, r8d
setge r11b
test edx, edx
je 0x18013b1db
movzx edx, r11b
mov rcx, rsi
call fcn.18013c1b0
test al, al
jne 0x18013b2d5
movzx r8d, r11b
mov edx, r9d
mov rcx, rsi
call fcn.18013c8e0
test al, al
jne 0x18013b2d5
mov edx, dword [rsi + 0x64]
lea r9, [0x18013cc30]
mov ecx, dword [rsi + 0x60]
mov r8, rbx
cmp r10d, r14d
jge 0x18013b21e
mov dword [rsp + 0x28], edx
mov edx, 2
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.18013af60
jmp 0x18013b272
mov eax, dword [rbx + 4]
neg ecx
movzx edi, byte [rsi + 0x6a]
neg eax
mov dword [rbx + 4], eax
neg edx
mov eax, dword [rbx + 0xc]
neg eax
mov dword [rsp + 0x28], ecx
mov dword [rbx + 0xc], eax
mov rcx, rsi
mov eax, dword [rbx + 0x14]
neg eax
mov dword [rsp + 0x20], edx
mov edx, 2
mov dword [rbx + 0x14], eax
call fcn.18013af60
test dil, dil
je 0x18013b26a
cmp byte [rsi + 0x6a], 0
jne 0x18013b26a
mov rdx, qword [rsi + 0x70]
mov ecx, dword [rdx + 0x20]
neg ecx
mov dword [rdx + 0x20], ecx
mov ecx, dword [rbx + 4]
neg ecx
mov dword [rbx + 4], ecx
test al, al
jne 0x18013b2d5
sub rbx, 0x10
jmp 0x18013b2c4
mov eax, dword [rbx + 8]
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x20], ecx
add ecx, eax
mov dword [rbx + 0x24], r10d
lea edx, [rax + rbp]
mov eax, ecx
sar eax, 1
mov dword [rbx + 0x18], eax
lea eax, [rcx + rdx]
sar eax, 2
lea ecx, [r10 + r9]
mov dword [rbx + 0x10], eax
mov eax, ecx
sar edx, 1
sar eax, 1
mov dword [rbx + 8], edx
lea edx, [r14 + r9]
mov dword [rbx + 0x1c], eax
lea eax, [rcx + rdx]
sar eax, 2
sar edx, 1
mov dword [rbx + 0x14], eax
mov dword [rbx + 0xc], edx
add rbx, 0x10
lea rax, [rsp + 0x30]
cmp rbx, rax
jb 0x18013b2d9
mov ebp, dword [rbx]
jmp 0x18013b140
mov al, 1
jmp 0x18013b2e2
mov dword [rsi + 0x58], ebp
xor al, al
mov dword [rsi + 0x5c], r14d
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1800d8800
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r14
pop rsi
pop rbp
ret
Function at 0x18013b310
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rax, qword [rcx + 0x20]
xor r15d, r15d
sub rax, 0x34
mov qword [rcx + 0x78], r15
mov qword [rcx + 0x28], rax
mov r14d, edx
mov rax, qword [rcx + 0x30]
mov rbx, rcx
mov word [rcx + 0x6a], r15w
lea ebp, [r15 - 1]
mov dword [rcx + 0x3c], r15d
mov edi, r15d
mov qword [rcx + 0x70], rax
mov qword [rax + 0x10], rax
mov word [rcx + 0x68], r15w
cmp r15w, word [rcx + 0xb8]
jge 0x18013b44b
mov esi, r15d
mov rax, qword [rbx + 0xd0]
lea edx, [rbp + 1]
mov dword [rbx + 0x88], r15d
mov r9d, r14d
mov qword [rbx + 0x80], r15
mov rcx, rbx
movsx ebp, word [rsi + rax]
mov r8d, ebp
call fcn.18013b7e0
test al, al
jne 0x18013b4e6
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 0x5c]
lea eax, [r8 - 1]
test edx, eax
jne 0x18013b3df
cmp edx, dword [rbx + 0x60]
jl 0x18013b3df
cmp edx, dword [rbx + 0x64]
jg 0x18013b3df
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x18013b3df
mov rax, qword [rbx + 0x70]
movzx ecx, byte [rcx + 0x18]
xor cl, byte [rax + 0x18]
test cl, 8
jne 0x18013b3df
add qword [rbx + 0x30], 0xfffffffffffffffc
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x10]
cmp qword [rbx + 0x30], rax
je 0x18013b402
test byte [r9 + 0x18], 8
je 0x18013b402
neg r8d
and r8d, edx
sub edx, r8d
cmp edx, dword [rbx + 8]
jmp 0x18013b413
lea eax, [r8 - 1]
neg r8d
add eax, edx
and eax, r8d
sub eax, edx
cmp eax, dword [rbx + 8]
setge dl
mov rcx, rbx
call fcn.18013c1b0
test al, al
jne 0x18013b4e6
mov rax, qword [rbx + 0x80]
test rax, rax
je 0x18013b436
mov qword [r9 + 0x28], rax
movsx eax, word [rbx + 0xb8]
inc edi
add rsi, 2
cmp edi, eax
jl 0x18013b373
movzx edi, word [rbx + 0x68]
mov rdx, qword [rbx + 0x78]
cmp di, 1
jbe 0x18013b4ea
test rdx, rdx
je 0x18013b4ea
mov ebp, 0xffff
nop dword [rax + rax]
lea rsi, [rdx + 8]
cmp di, 1
jbe 0x18013b488
movsxd rcx, dword [rdx + 0x1c]
mov rax, qword [rdx + 0x10]
lea r10, [rax + rcx*4]
jmp 0x18013b48b
mov r10, r15
mov qword [rsi], r10
test byte [rdx + 0x18], 8
mov r11d, dword [rdx + 0x20]
mov r8d, r11d
mov eax, dword [rdx + 0x1c]
je 0x18013b4a6
dec r11d
add r11d, eax
jmp 0x18013b4bd
sub r8d, eax
inc r8d
dec eax
mov dword [rdx + 0x20], r8d
movsxd rcx, eax
shl rcx, 2
add qword [rdx + 0x10], rcx
mov edx, r8d
mov rcx, rbx
call fcn.18013c4d0
test al, al
jne 0x18013b4e6
lea edx, [r11 + 1]
mov rcx, rbx
call fcn.18013c4d0
test al, al
jne 0x18013b4e6
mov rdx, qword [rsi]
add di, bp
jne 0x18013b470
jmp 0x18013b4ee
mov al, 1
jmp 0x18013b4f9
mov qword [rbx + 0x78], r15
mov rax, qword [rbx + 0x28]
cmp qword [rbx + 0x30], rax
setae al
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x18015e400
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov r9, rcx
mov r10, rdx
mov rdx, qword [r8 + 0x1b8]
mov ecx, 0x3020100
mov dword [r8 + 0x1c4], ecx
mov r11, r8
mov eax, 1
add ecx, 0x4040404
mov dword [r8 + rax*4 + 0x1c4], ecx
inc rax
cmp rax, rdx
jbe 0x18015e421
xor r8d, r8d
test r10, r10
je 0x18015e483
nop
movzx eax, byte [r9]
or r8, rax
movzx ecx, byte [rax + r11 + 0x1c4]
mov byte [r9], cl
mov byte [r11 + 0x1c3], cl
nop word [rax + rax]
movzx ecx, byte [r11 + rax + 0x1c3]
mov rdx, rax
sub rax, 1
mov byte [rdx + r11 + 0x1c4], cl
jns 0x18015e460
inc r9
sub r10, 1
jne 0x18015e440
shr r8, 2
mov qword [r11 + 0x1b8], r8
ret

Function at 0x180162800
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
call fcn.180162860
mov ecx, 2
mov rbx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
lea rdx, 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
mov r9, rbx
mov r8d, edi
call fcn.1801451f0
cmp edi, 0x3ef
jne 0x180162854
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
lea rdx, 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.1801451f0
mov ecx, 3
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
Function at 0x180001910
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x240
mov rax, qword [0x18001e088]
xor rax, rsp
mov qword [rsp + 0x230], rax
movzx esi, cx
mov r15, rdx
test si, si
je 0x180001a70
mov rax, qword [0x18001fc58]
mov edi, esi
sub edi, dword [rax + 0x10]
cmp edi, dword [rax + 0x14]
jae 0x180001a70
xor ebx, ebx
xor eax, eax
lock cmpxchg qword [0x18001fc60], rbx
mov r8, rax
jne 0x1800019fc
mov rax, qword [0x18001fc58]
lea rcx, [rsp + 0x20]
mov ebp, 0x104
mov edx, ebp
mov r14d, dword [rax + 0xc]
add r14, qword [0x18001fc50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x180001a70
mov eax, eax
lea rcx, [rsp + 0x20]
sub rbp, rax
lea r8, str._hs
mov r9, r14
mov rdx, rbp
lea rcx, [rcx + rax*2]
call fcn.180001aa0
test eax, eax
js 0x180001a70
xor edx, edx
lea r8d, [rbx + 8]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov r8, rax
test rax, rax
je 0x180001a70
xor eax, eax
lock cmpxchg qword [0x18001fc60], r8
mov rbp, rax
je 0x1800019fc
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r8, rbp
xor eax, eax
lock cmpxchg qword [r15], rbx
mov rcx, rax
jne 0x180001a6b
mov rax, qword [0x18001fc58]
mov r9, rsi
mov r10, qword [0x18001fc50]
mov ecx, dword [rax + 0x24]
mov r11d, dword [rax + 0x20]
add rcx, r10
mov edx, dword [rax + 0x18]
add r11, r10
test edx, edx
je 0x180001a4c
nop dword [rax]
movzx eax, word [rcx]
cmp edi, eax
je 0x180001a43
inc ebx
add rcx, 2
cmp ebx, edx
jb 0x180001a30
jmp 0x180001a4c
mov eax, ebx
mov r9d, dword [r11 + rax*4]
add r9, r10
mov rdx, r9
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
test rax, rax
je 0x180001a6b
xor eax, eax
lock cmpxchg qword [r15], rcx
cmovne rcx, rax
mov rax, rcx
jmp 0x180001a72
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180002070
mov rbx, qword [rsp + 0x280]
add rsp, 0x240
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140004450]
mov dword [rax], 1
mov rax, qword [0x140004460]
mov dword [rax], 1
mov rax, qword [0x140004470]
mov dword [rax], 1
mov rax, qword [0x140004400]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001a10
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x1400026e2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140007108]
test eax, eax
je 0x14000277a
lea rax, [0x1400070e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140007110]
mov qword [rbp - 8], rax
jmp 0x14000275e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002752
cmp qword [rbp - 0x10], 0
je 0x140002752
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002718
lea rax, [0x1400070e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000277b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140002880
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400028a8
mov eax, 0
jmp 0x1400028f6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400028d1
mov eax, 0
jmp 0x1400028f6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400028f1
mov eax, 0
jmp 0x1400028f6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400028fc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14000297a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002971
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140002971
mov rax, qword [rbp - 8]
jmp 0x14000298f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140002944
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400406d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x140080040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov byte [rsp], 0x62
mov byte [rsp + 1], 0x12
mov byte [rsp + 2], 0xd
mov byte [rsp + 3], 0x15
mov byte [rsp + 4], 7
mov byte [rsp + 5], 0x10
mov byte [rsp + 6], 0x11
mov byte [rsp + 7], 0xa
mov byte [rsp + 8], 7
mov byte [rsp + 9], 0xe
mov byte [rsp + 0xa], 0xe
mov byte [rsp + 0xb], 0x4c
mov byte [rsp + 0xc], 7
mov byte [rsp + 0xd], 0x1a
mov byte [rsp + 0xe], 7
mov byte [rsp + 0xf], 0x42
mov byte [rsp + 0x10], 0x4f
mov byte [rsp + 0x11], 0x27
mov byte [rsp + 0x12], 0xc
mov byte [rsp + 0x13], 1
mov byte [rsp + 0x14], 0xd
mov byte [rsp + 0x15], 6
mov byte [rsp + 0x16], 7
mov byte [rsp + 0x17], 6
mov byte [rsp + 0x18], 0x21
mov byte [rsp + 0x19], 0xd
mov byte [rsp + 0x1a], 0xf
mov byte [rsp + 0x1b], 0xf
mov byte [rsp + 0x1c], 3
mov byte [rsp + 0x1d], 0xc
mov byte [rsp + 0x1e], 6
mov byte [rsp + 0x1f], 0x42
mov byte [rsp + 0x20], 0
lea rax, [rsp]
mov rdi, qword [rsp + 0x58]
mov rsi, rax
mov ecx, 0x21
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14004bb20
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x1400407d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x28
mov rax, qword [0x140080040]
xor rax, rsp
mov qword [rsp + 0x18], rax
mov byte [rsp], 0x5c
mov byte [rsp + 1], 0x1f
mov byte [rsp + 2], 0x2e
mov byte [rsp + 3], 0x39
mov byte [rsp + 4], 0x3d
mov byte [rsp + 5], 0x28
mov byte [rsp + 6], 0x39
mov byte [rsp + 7], 0xc
mov byte [rsp + 8], 0x2e
mov byte [rsp + 9], 0x33
mov byte [rsp + 0xa], 0x3f
mov byte [rsp + 0xb], 0x39
mov byte [rsp + 0xc], 0x2f
mov byte [rsp + 0xd], 0x2f
mov byte [rsp + 0xe], 0x7c
mov byte [rsp + 0xf], 0x3a
mov byte [rsp + 0x10], 0x3d
mov byte [rsp + 0x11], 0x35
mov byte [rsp + 0x12], 0x30
mov byte [rsp + 0x13], 0x39
mov byte [rsp + 0x14], 0x38
mov byte [rsp + 0x15], 0x7c
mov byte [rsp + 0x16], 0x74
mov byte [rsp + 0x17], 0
lea rax, [rsp]
mov rdi, qword [rsp + 0x48]
mov rsi, rax
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x18]
xor rcx, rsp
call fcn.14004bb20
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400ad140]
mov dword [rax], 1
mov rax, qword [0x1400ad150]
mov dword [rax], 1
mov rax, qword [0x1400ad160]
mov dword [rax], 1
mov rax, qword [0x1400ad0c0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14001e800
Capabilities:
Query environment variable

Disassembly:
push r14
mov eax, 0x10080
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1400893f0
sub rsp, rax
xor eax, eax
xor edx, edx
xor esi, esi
mov r14d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x80], ax
mov r12, rcx
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x2e]
mov word [rsp + 0x30], dx
test dil, dil
je 0x14001e8a9
nop dword [rax]
mov rax, r14
lea rbx, [rbp + rsi*2]
sub rax, rsi
cmp word [rbp + rsi*2], 0
je 0x14001e86e
nop dword [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x14001e860
test rax, rax
je 0x14009a30e
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r13
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [r12 + rsi]
test dil, dil
jne 0x14001e848
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, rbp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14001e8d8
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10080
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop

Function at 0x14001e8f0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
xor eax, eax
xor esi, esi
mov r13d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x30], ax
mov rbp, rcx
mov r14, rdx
lea r15, [rsp + 0x30]
lea r12, [rsp + 0x2e]
test dil, dil
je 0x14001e991
nop word [rax + rax]
mov rax, r13
lea rbx, [r15 + rsi*2]
sub rax, rsi
cmp word [r15 + rsi*2], 0
je 0x14001e956
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x14001e948
test rax, rax
je 0x14009a314
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r12
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [rbp + rsi]
test dil, dil
jne 0x14001e930
mov rdx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret