joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006a80
Capabilities:
Get common file path
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x2050
call fcn.14000b190
sub rsp, rax
mov rax, qword [0x140039018]
xor rax, rsp
mov qword [rsp + 0x2040], rax
xor edi, edi
mov rbp, rdx
mov r15, rcx
mov esi, edi
test rdx, rdx
je 0x140006b0d
lea rcx, [0x140028a64]
call fcn.140006c90
mov rcx, rbp
mov rsi, rax
call fcn.140006550
mov r14, rax
test rax, rax
je 0x140006bdf
mov rdx, rax
lea rcx, [0x140028a68]
call fcn.140013c4c
mov rcx, r14
mov ebx, eax
call fcn.140011170
test ebx, ebx
je 0x140006b0d
lea rcx, str.LOADER:_Failed_to_set_the_TMP_environment_variable._n
call fcn.140002010
xor eax, eax
jmp 0x140006c68
lea rdx, [rsp + 0x40]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
call sub.KERNEL32.dll_GetCurrentProcessId
mov r9d, eax
lea r8, str._MEI_d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140007690
nop dword [rax + rax]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1400148cc
mov rcx, rax
mov rbx, rax
call fcn.140007db0
test eax, eax
je 0x140006be6
mov rcx, rbx
call fcn.140011170
inc edi
cmp edi, 5
jl 0x140006b40
test rbp, rbp
je 0x140006bdf
xor r8d, r8d
lea rdx, [0x140028a64]
xor ecx, ecx
call fcn.140007fd0
test rsi, rsi
je 0x140006bc9
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
mov rdi, rax
call fcn.140007fd0
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.140013c4c
mov rcx, rdi
call fcn.140011170
mov rcx, rbx
call fcn.140011170
mov rcx, rsi
call fcn.140011170
xor eax, eax
jmp 0x140006c68
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
call fcn.140011170
xor eax, eax
jmp 0x140006c68
mov r8d, 0x1000
mov rdx, rbx
mov rcx, r15
call fcn.1400080e0
mov rcx, rbx
call fcn.140011170
test rbp, rbp
je 0x140006c63
xor r8d, r8d
lea rdx, [0x140028a64]
xor ecx, ecx
call fcn.140007fd0
test rsi, rsi
je 0x140006c4d
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
mov rdi, rax
call fcn.140007fd0
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.140013c4c
mov rcx, rdi
call fcn.140011170
mov rcx, rbx
call fcn.140011170
mov rcx, rsi
jmp 0x140006c5e
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
call fcn.140011170
mov eax, 1
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.14000b1f0
mov rbx, qword [rsp + 0x2090]
add rsp, 0x2050
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140006c90
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4038
call fcn.14000b190
sub rsp, rax
mov rax, qword [0x140039018]
xor rax, rsp
mov qword [rsp + 0x4020], rax
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.140007fd0
mov r8d, 0x2000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140006d26
mov r8d, 0x2000
lea rdx, [rsp + 0x2020]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor r8d, r8d
lea rdx, [rsp + 0x20]
xor ecx, ecx
call fcn.1400080e0
test rax, rax
je 0x140006d26
cmp byte [rax], 0
je 0x140006d26
mov rcx, rax
call fcn.140016670
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.14000b1f0
add rsp, 0x4038
ret
xor eax, eax
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.14000b1f0
add rsp, 0x4038
ret

Function at 0x140007170
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.140007fd0
xor edx, edx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rdi
mov ebx, eax
call fcn.140011170
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400071b0
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x2110
call fcn.14000b190
sub rsp, rax
mov rax, qword [0x140039018]
xor rax, rsp
mov qword [rsp + 0x2100], rax
mov rdx, rcx
xor edi, edi
lea rcx, [rsp + 0x100]
mov dword [rsp + 0x50], edi
mov r8d, 0x1000
call fcn.140007fd0
mov ebx, 1
lea rcx, [0x140006530]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea rcx, [rsp + 0x90]
mov dword [rsp + 0x58], 0x18
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], ebx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xorps xmm0, xmm0
mov qword [rsp + 0x98], rdi
xor ecx, ecx
movdqa xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0xcc], 0x101
mov word [rsp + 0xd0], bx
call fcn.140011450
mov rcx, rax
call fcn.1400166e8
mov ecx, eax
call fcn.140014490
cmp rax, 0xffffffffffffffff
mov ecx, ebx
cmove rax, rdi
mov qword [rsp + 0xe0], rax
call fcn.140011450
mov rcx, rax
call fcn.1400166e8
mov ecx, eax
call fcn.140014490
cmp rax, 0xffffffffffffffff
lea ecx, [rdi + 2]
cmove rax, rdi
mov qword [rsp + 0xe8], rax
call fcn.140011450
mov rcx, rax
call fcn.1400166e8
mov ecx, eax
call fcn.140014490
cmp rax, 0xffffffffffffffff
cmove rax, rdi
mov qword [rsp + 0xf0], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
lea r8, [rsp + 0x58]
mov rdx, rax
lea rcx, [rsp + 0x100]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140007330
mov rcx, qword [rsp + 0x70]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x50]
jmp 0x140007348
lea rdx, str.Error_creating_child_process__n
lea rcx, [0x140028b70]
call fcn.140002070
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x2100]
xor rcx, rsp
call fcn.14000b1f0
mov rbx, qword [rsp + 0x2128]
add rsp, 0x2110
pop rdi
ret
Function at 0x1400073e0
Capabilities:
Read file on windows

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, rcx
mov rbp, r8
mov ecx, 0x2000
mov r14, rdx
xor r13d, r13d
call fcn.140011184
mov r15, rax
test rax, rax
je 0x1400074f3
xor edx, edx
lea r8d, [r13 + 2]
mov rcx, r12
call fcn.14000da68
test eax, eax
js 0x1400074f3
mov rcx, r12
mov qword [rsp + 0x50], rbx
call fcn.140014e68
mov rbx, rax
cmp rax, rbp
jb 0x1400074ee
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
nop dword [rax]
cmp rbx, 0x2000
lea rsi, [rbx - 0x2000]
cmovb rsi, r13
sub rbx, rsi
cmp rbx, rbp
jb 0x1400074e4
xor r8d, r8d
mov rdx, rsi
mov rcx, r12
call fcn.14000da68
test eax, eax
js 0x1400074e4
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, r15
call fcn.14000d798
cmp rax, rbx
jne 0x1400074e4
sub rbx, rbp
add rbx, 1
je 0x1400074cb
lea rdi, [r15 - 1]
add rdi, rbx
nop dword [rax]
nop dword [rax + rax]
mov r8, rbp
mov rdx, r14
mov rcx, rdi
call fcn.14000c7f0
test eax, eax
je 0x1400074dd
dec rdi
sub rbx, 1
jne 0x1400074b0
lea rbx, [rbp - 1]
add rbx, rsi
test rsi, rsi
jne 0x140007450
jmp 0x1400074e4
lea r13, [rbx - 1]
add r13, rsi
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
mov rcx, r15
call fcn.140011170
mov rax, r13
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbp
ret

Function at 0x140007db0
Capabilities:
Create directory

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14003aed0]
test rax, rax
jne 0x140007dd6
lea rcx, str.Security_descriptor_is_not_initialized__n
call fcn.140002010
mov eax, 0xffffffff
add rsp, 0x48
ret
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x18
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
neg eax
sbb eax, eax
neg eax
dec eax
add rsp, 0x48
ret
Function at 0x180e48058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.180e481df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180e48089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180e4806f
add dl, dl
jne 0x180e48096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180e480f6
xor eax, eax
add dl, dl
jne 0x180e480a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180e481ad
add dl, dl
jne 0x180e480b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180e480c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180e480d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180e480dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x180e480ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x180e4807e
mov eax, 1
add dl, dl
jne 0x180e48106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180e48113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180e480fb
sub eax, ebx
mov ebx, 1
jne 0x180e4814c
mov ecx, 1
add dl, dl
jne 0x180e4812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180e4813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180e48123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180e4807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180e48168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180e48175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180e4815d
cmp eax, 0x7d00
jae 0x180e4819b
cmp eax, 0x500
jb 0x180e48196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180e4807e
cmp eax, 0x7f
ja 0x180e4819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180e4807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x180e481d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x180e4807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140003d30
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140003d58
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140003d7e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140003d80
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140003dd9
test ecx, ecx
jle 0x140003db9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140003dd9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140003dd9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140003e00
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140003e22
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140003e38
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140003e54
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003e56
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003e92
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140003f2e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140003ecd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140003f0e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140003f2e
cmp rbx, rax
ja 0x140003ee0
test rbx, rbx
je 0x140003f2e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140004390
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400043bd
xor eax, eax
jmp 0x140004529
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400043f7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400043f7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140004529
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000451c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000443a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140004465
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140004521
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400044d4
sub eax, 1
je 0x1400044d4
cmp eax, 2
jne 0x14000451c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140004521
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140004502
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000451c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140004521
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140005320
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140004930
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004a03
cmp byte [rcx + 0x71], 0
je 0x140004a03
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400049ff
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400049c4
sub eax, 1
je 0x1400049c8
cmp eax, 2
jne 0x1400049ff
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005320
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400049f6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400049ff
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400049ac
xor al, al
jmp 0x1400049ac
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005320
add rsp, 0x60
pop rbx
ret

Function at 0x140005e70
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005eba
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005eba
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005eba
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005eba
cmp dword [rcx + 0x84], 0xe
jbe 0x140005eba
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140005ebc
xor al, al
add rsp, 0x28
ret
Function at 0x140001010
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov rax, qword gs:[0x60]
mov ebp, ecx
mov rdx, qword [rax + 0x18]
mov rsi, qword [rdx + 0x10]
mov r11, qword [rsi + 0x30]
test r11, r11
je 0x1400010ff
movsxd rax, dword [r11 + 0x3c]
mov rdx, qword [rsi + 0x58]
mov rcx, qword [rsi + 0x60]
mov r9d, dword [rax + r11 + 0x88]
mov rsi, qword [rsi]
xor r8d, r8d
test r9d, r9d
je 0x1400010f2
shr rdx, 0x10
movzx eax, dx
test eax, eax
je 0x14000109d
mov edx, eax
nop word [rax + rax]
ror r8d, 0xd
movzx eax, byte [rcx]
cmp al, 0x61
movsx eax, al
jl 0x140001092
add r8d, 0xffffffe0
add r8d, eax
inc rcx
dec rdx
jne 0x140001080
mov r10d, dword [r11 + r9 + 0x20]
mov ebx, dword [r11 + r9 + 0x18]
lea rdi, [r11 + r9]
add r10, r11
xor r9d, r9d
test ebx, ebx
je 0x1400010f2
nop word [rax + rax]
mov edx, dword [r10]
xor eax, eax
lea r10, [r10 + 4]
add rdx, r11
nop dword [rax]
ror eax, 0xd
movsx ecx, byte [rdx]
lea rdx, [rdx + 1]
add eax, ecx
cmp byte [rdx - 1], 0
jne 0x1400010d0
lea ecx, [rax + r8]
cmp ecx, ebp
je 0x140001116
inc r9d
cmp r9d, ebx
jb 0x1400010c0
mov r11, qword [rsi + 0x30]
test r11, r11
jne 0x140001044
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
mov eax, dword [rdi + 0x24]
lea ecx, [r9 + r9]
add rax, r11
movzx eax, word [rcx + rax]
mov ecx, dword [rdi + 0x1c]
shl eax, 2
cdqe
add rax, r11
mov eax, dword [rcx + rax]
add rax, r11
jmp 0x140001101
Function at 0x140003b80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x68]
sub rsp, 0x168
xor esi, esi
lea rax, [rbp - 0x70]
mov ecx, 0x8714678
mov qword [rbp - 0x28], rax
lea rax, [rsp + 0x60]
mov dword [rbp - 0x70], 0x3f005c
mov qword [rbp + 0x90], rsi
mov qword [rbp + 0xa8], rsi
mov dword [rbp - 0x6c], 0x5c003f
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x68], 0x3a0043
mov dword [rbp - 0x64], 0x57005c
mov dword [rbp - 0x60], 0x6e0069
mov dword [rbp - 0x5c], 0x6f0064
mov dword [rbp - 0x58], 0x730077
mov dword [rbp - 0x54], 0x53005c
mov dword [rbp - 0x50], 0x730079
mov dword [rbp - 0x4c], 0x650074
mov dword [rbp - 0x48], 0x33006d
mov dword [rbp - 0x44], 0x5c0032
mov dword [rbp - 0x40], 0x6d0063
mov dword [rbp - 0x3c], 0x2e0064
mov dword [rbp - 0x38], 0x780065
mov dword [rbp - 0x34], 0x65
mov dword [rsp + 0x60], 0x63002f
lea ebx, [rsi + 0x20]
mov dword [rsp + 0x64], 0x660020
mov dword [rsp + 0x68], 0x64006f
mov dword [rsp + 0x6c], 0x650068
mov dword [rsp + 0x70], 0x70006c
mov dword [rsp + 0x74], 0x720065
mov dword [rsp + 0x78], 0x65002e
mov dword [rsp + 0x7c], 0x650078
mov word [rbp - 0x80], si
mov qword [rbp + 0xa0], rsi
mov dword [rbp - 0x30], 0x40003e
mov dword [rbp - 0x20], 0x220020
call fcn.140001010
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rcx
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x90]
xor r9d, r9d
xor r8d, r8d
call rax
mov rax, qword [rbp + 0x90]
lea rdi, [rbp]
mov qword [rax + 0x10], 0xfffffffffffffffd
xor eax, eax
mov ecx, 0x58
rep stosb byte [rdi], al
lea r9, [rbp + 0x98]
lea rdx, [rbp + 0xa0]
or rcx, 0xffffffffffffffff
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rbp], 0x58
mov dword [rbp + 8], esi
mov qword [rbp + 0x98], rbx
mov dword [rsp + 0x20], 0x1000
call fcn.140008676
mov rdx, qword [rbp + 0xa0]
mov rcx, qword [rbp + 0x98]
xor eax, eax
mov rdi, rdx
rep stosb byte [rdi], al
mov qword [rdx], 0x28
mov qword [rdx + 8], 0x20005
movzx eax, word [rbp - 0x30]
mov qword [rsp + 0x50], rdx
mov qword [rdx + 0x10], rax
mov rax, qword [rbp - 0x28]
mov qword [rdx + 0x18], rax
lea rax, [rbp]
mov qword [rsp + 0x48], rax
mov rax, qword [rbp + 0x90]
mov r9d, 0x1fffff
lea rdx, [rbp + 0xa8]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
lea rcx, [rbp - 0x10]
mov r8d, r9d
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call fcn.140008752
lea r8, [rbp + 0x98]
lea rdx, [rbp + 0xa0]
mov r9d, 0x8000
or rcx, 0xffffffffffffffff
call fcn.140008681
add rsp, 0x168
pop rdi
pop rsi
pop rbx
pop rbp
ret