joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140d907f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
test dword [rdx + 0x58], 0x1000000
lea rdi, [rdx + 0x80]
mov rbx, rdx
mov rbp, rcx
je 0x140d90879
mov qword [rdx + 0x238], 0
lea rcx, [0x140d918d0]
mov rdx, rdi
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
jne 0x140d909a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x140d90862
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rsi, [rdi + 0x40]
jmp 0x140d90967
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
lea rsi, [rdi + 0x40]
or eax, 0x80070000
jmp 0x140d90967
lea rsi, [rdi + 0x40]
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm0
test dword [rdx + 0x58], 0x80000
je 0x140d908a2
mov rax, qword [rdx + 0xf0]
or rax, 1
mov qword [rdx + 0xd8], rax
mov rcx, qword [rbx + 0x118]
lea rdx, [0x1410a9ec2]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140d908f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x140d908f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x140d908e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140d90967
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
jmp 0x140d90967
test dword [rbx + 0x58], 0x80000
je 0x140d909a6
lea rcx, [rbx + 0xf8]
cmp qword [rcx], 0xffffffffffffffff
jne 0x140d909a6
mov rdx, qword [rbx + 0xf0]
lea r8, [0x140d8e970]
mov dword [rsp + 0x28], 4
mov r9, rdi
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x140d909a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x140d90952
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140d90960
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
lea rsi, [rbx + 0xc0]
cdqe
mov qword [rsi], rax
mov qword [rbx + 0xe8], 0
mov rax, qword [rbp + 0x48]
test rax, rax
je 0x140d90999
mov rax, qword [rax + 0x68]
mov qword [rbx + 0xe8], rax
mov rax, qword [rbp + 0x48]
mov qword [rax + 0x68], rdi
mov qword [rbp + 0x48], rdi
jmp 0x140d909c7
mov qword [rbx + 0xe8], rdi
mov qword [rbp + 0x48], rdi
jmp 0x140d909c7
mov rcx, qword [rbx + 0x128]
test rcx, rcx
je 0x140d909c7
xor r9d, r9d
lea rdx, [0x140d90080]
mov r8d, getprotobyname
call fcn.140d8cf50
or dword [rbx + 0x58], 0x10000
inc dword [rbx + 0x78]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140d909f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov ebx, r8d
mov rdi, rdx
mov rbp, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
mov esi, r9d
call fcn.140d8b800
mov edx, ebx
lea r8, [rsp + 0x30]
mov rcx, rdi
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call qword [rdi + 0x68]
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x140d90aa8
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140d90aa8
mov rcx, qword [rdi + 0x118]
lea r9, [rsp + 0x70]
cmp esi, eax
mov qword [rsp + 0x20], 0
cmova esi, eax
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140d90a93
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [rsp + 0x40]
mov rdx, rdi
mov r8d, eax
mov rcx, rbp
call fcn.140d90ae0
jmp 0x140d90aba
mov edx, dword [rsp + 0x70]
lea r8, [rsp + 0x30]
mov rcx, rdi
call qword [rdi + reloc.WS2_32.dll_WSASetLastError]
mov eax, dword [rsp + 0x70]
jmp 0x140d90abc
lea r8, [rsp + 0x30]
mov rdx, 0xfffffffffffff024
mov rcx, rdi
call qword [rdi + reloc.WS2_32.dll_WSASetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140d92c50
Capabilities:
Log keystrokes
Manipulate console buffer

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x14100f500]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
mov ecx, dword [rcx + 0x58]
btr ecx, 0xc
mov edx, ecx
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], ecx
jne 0x140d92c9c
mov eax, ecx
and al, 5
cmp al, 4
jne 0x140d92c9c
and ecx, 0xfffffffb
mov dword [rbx + 0x58], ecx
mov edx, ecx
test cl, 8
je 0x140d92c9c
mov rax, qword [rbx + 8]
dec dword [rax + 8]
mov edx, dword [rbx + 0x58]
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0x88], rdi
bt edx, 0x10
jae 0x140d92d30
bt edx, 0x19
jae 0x140d92cf9
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x40]
xor eax, eax
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x70], eax
xorps xmm0, xmm0
mov eax, reloc.WS2_32.dll_recv
mov r8d, 1
movups xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x60], ax
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x140d92d30
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140d92d32
bt edx, 0x15
jb 0x140d92d30
lea rcx, [0x1410a9f10]
xor edi, edi
call fcn.140d8df80
mov eax, 2
xchg dword [0x1410a9ec8], eax
cmp eax, 1
je 0x140d92d58
lea rcx, [0x1410a9f10]
call fcn.140d8df50
or dword [rbx + 0x58], 0x200000
xor eax, eax
mov rdi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140cd9320
add rsp, 0x90
pop rbx
ret
mov qword [rsp + 0x30], rdi
lea rcx, str.conout_
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov qword [rsp + 0xb0], rsi
mov edx, 0xc0000000
mov r8d, 3
mov dword [rsp + 0x20], 3
mov qword [rsp + 0x80], r14
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140d92dbd
lea rdx, [0x1410a9ed0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x140d92dbd
lock or dword [0x1410a9ecc], 1
mov ebp, 1
mov dword [rsp + 0x50], 0xd0001
mov r14d, reloc.WS2_32.dll_listen
mov word [rsp + 0x48], bp
mov ecx, r14d
mov dword [rsp + 0x4c], ebp
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x44]
mov r8d, ebp
mov word [rsp + 0x54], ax
lea rdx, [rsp + 0x48]
mov word [rsp + 0x56], r14w
mov dword [rsp + 0x58], edi
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov r14, qword [rsp + 0x80]
test eax, eax
jne 0x140d92e21
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rsi, 0xffffffffffffffff
je 0x140d92e30
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0xb0]
test edi, edi
je 0x140d92d29
mov eax, edi
jmp 0x140d92d32

Function at 0x140d93870
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x48]
lea rcx, [0x1410a9f50]
mov dword [0x1410a9f78], eax
call fcn.140d8de50
test eax, eax
jne 0x140d938cd
lea rax, [0x141331f88]
mov edx, 0x100
lea rcx, [0x1410a9f80]
xor r8d, r8d
nop
mov qword [rax], rcx
add rcx, 0x2880
mov qword [rax - 8], r8
lea rax, [rax + 0x10]
sub rdx, 1
jne 0x140d938b0
add rsp, 0x58
ret
lea rdx, str.uv_mutex_init
mov ecx, eax
call fcn.140d8e100
int3
Function at 0x140d949c0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x478
mov rax, qword [0x14100f500]
xor rax, rsp
mov qword [rsp + 0x460], rax
lea r8, [0x141333840]
xor edx, edx
lea rcx, str.0.0.0.0
call fcn.140d8b810
test eax, eax
jne 0x140d94b46
lea r8, [0x141333820]
xor edx, edx
lea rcx, [0x140ea2540]
call fcn.140d8b860
test eax, eax
jne 0x140d94b46
mov ecx, 0x43
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 1
je 0x140d94b2e
mov ecx, 0x202
lea rdx, [rsp + 0x2c0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140d94b4c
xor r8d, r8d
mov qword [rsp + 0x470], rbx
mov edx, 1
mov dword [0x141333854], 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140d94ab8
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x274
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x2005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x140d94aaf
test dword [rsp + 0x40], 0x20000
je 0x140d94aaf
mov dword [0x141333854], eax
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
xor r8d, r8d
mov dword [0x141333850], 1
mov edx, 1
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140d94b26
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x274
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x2005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x140d94b1d
test dword [rsp + 0x40], 0x20000
je 0x140d94b1d
mov dword [0x141333850], eax
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rsp + 0x470]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140cd9320
add rsp, 0x478
ret
call fcn.140d0384c
int3
lea rdx, str.WSAStartup
mov ecx, eax
call fcn.140d8e100
int3

Function at 0x140d96030
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140d96058
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140d96058
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400cac50
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14013b4b8], rbx
je 0x1400cac9c
cmp rax, rbx
jne 0x1400cac8f
mov ebx, 1
mov esi, ebx
jmp 0x1400caca1
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x1400cac74
mov ebx, 1
mov eax, dword [0x14013b4c0]
cmp eax, ebx
jne 0x1400cacb7
mov ecx, 0x1f
call fcn.1401d5000
jmp 0x1400cad1c
mov eax, dword [0x14013b4c0]
test eax, eax
jne 0x1400cad16
mov dword [0x14013b4c0], ebx
lea r15, [0x1400d8928]
lea rdi, [0x1400d8910]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x1400cad08
test eax, eax
jne 0x1400cad0c
cmp qword [rdi], 0
je 0x1400cacfd
mov rax, qword [rdi]
mov rcx, qword [case.0x14005981a.0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x1400cacde
test eax, eax
je 0x1400cad1c
mov eax, 0xff
jmp 0x1400cadf8
mov dword [0x14012b740], ebx
mov eax, dword [0x14013b4c0]
cmp eax, ebx
jne 0x1400cad43
lea rdx, [0x1400d8908]
lea rcx, [0x1400d7fa0]
call sub.msvcrt.dll__initterm
mov dword [0x14013b4c0], 2
test esi, esi
jne 0x1400cad50
xor eax, eax
xchg qword [0x14013b4b8], rax
cmp qword [0x14013b4d8], 0
je 0x1400cad84
lea rcx, [0x14013b4d8]
call fcn.1400cb270
test eax, eax
je 0x1400cad84
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14013b4d8]
mov r9, qword [case.0x14005981a.0]
call r9
mov r8, qword [0x14012b758]
mov rdx, qword [0x14012b750]
mov ecx, dword [0x14012b748]
call fcn.14000a998
mov dword [0x14012b73c], eax
cmp dword [0x14012b760], 0
jne 0x1400cadb4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14012b740], 0
jne 0x1400cadc9
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14012b73c]
jmp 0x1400cadf8
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1400cb304
add rsp, 0x28
jmp 0x1400cac50

Function at 0x1400cb15c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400cb1a8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400cb1a0
cmp dword [rcx + 0x3c], edx
jl 0x1400cb1a0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400cb1a0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400cb1a8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14000f0c0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140024020]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, rcx
xor ebp, ebp
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], bp
movzx eax, byte [str.d38cc827_e34f_4453_9df4_1e796e9f1d07]
cmp al, 0x65
jne 0x14000f164
mov qword [rsp + 0x30], rbp
mov word [rsp + 0x20], bp
xor r8d, r8d
xor edx, edx
lea rcx, str._DOTNET_TEST_GLOBALLY_REGISTERED_PATH
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
jne 0x14000f1c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x14000f164
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x14000f14e
movzx eax, ax
or eax, 0x80070000
mov r8d, eax
lea rdx, str._DOTNET_TEST_GLOBALLY_REGISTERED_PATH
lea rcx, str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
call fcn.1400071a0
mov rdx, r14
mov ecx, 7
call fcn.14000f2f0
movzx ebx, al
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14000f2c1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f2bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f2bc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov eax, 2
mul rdi
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call fcn.1400140dc
mov rsi, rax
mov r8d, edi
mov rdx, rax
lea rcx, str._DOTNET_TEST_GLOBALLY_REGISTERED_PATH
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14000f13c
nop dword [rax]
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x14000f200
mov rax, qword [rsp + 0x38]
cmp rbx, rax
ja 0x14000f23f
lea rdi, [rsp + 0x20]
cmp rax, 8
cmovae rdi, qword [rsp + 0x20]
mov qword [rsp + 0x30], rbx
add rbx, rbx
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.1400156b0
mov word [rbx + rdi], bp
jmp 0x14000f24f
mov r9, rsi
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140005da0
mov rcx, rsi
call fcn.140013e10
lea rax, [rsp + 0x20]
cmp r14, rax
je 0x14000f2b5
lea r9, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae r9, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
mov rax, qword [r14 + 0x18]
cmp rbx, rax
ja 0x14000f2aa
mov rdi, r14
cmp rax, 8
jb 0x14000f28c
mov rdi, qword [r14]
mov qword [r14 + 0x10], rbx
lea r8, [rbx + rbx]
mov rdx, r9
mov rcx, rdi
call fcn.1400156b0
mov word [rdi + rbx*2], bp
mov bl, 1
jmp 0x14000f174
mov rdx, rbx
mov rcx, r14
call fcn.140005da0
mov bl, 1
jmp 0x14000f174
call fcn.140013e10
movzx eax, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140013df0
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x14000f810
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
xor ecx, ecx
mov rax, rdx
mov qword [rdx + 0x10], rcx
cmp qword [rdx + 0x18], 8
jb 0x14000f838
mov rax, qword [rdx]
mov word [rax], cx
xor r8d, r8d
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebp, eax
test eax, eax
jne 0x14000f892
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x14000f880
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x14000f86e
movzx eax, ax
or eax, 0x80070000
mov r8d, eax
lea rcx, str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
mov rdx, rdi
call fcn.1400071a0
xor al, al
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x30], rsi
mov eax, 2
mul rbp
cmovo rax, rcx
mov rcx, rax
call fcn.1400140dc
mov r8d, ebp
mov rdx, rax
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x14000f8f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x14000f8da
movzx eax, ax
or eax, 0x80070000
mov r8d, eax
lea rcx, str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
mov rdx, rdi
call fcn.1400071a0
xor al, al
jmp 0x14000f905
mov rdx, rsi
mov rcx, rbx
call fcn.140008810
mov rcx, rsi
call fcn.140013e10
mov al, 1
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140014970
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400149ba
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400149ba
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400149ba
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400149ba
cmp dword [rcx + 0x84], 0xe
jbe 0x1400149ba
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400149bc
xor al, al
add rsp, 0x28
ret
Function at 0x143185834
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14318583e
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x143185867
pop rbp
sub rbp, 0x33
sub rbp, 0x3185834
sub rsp, 0x20
jmp 0x143185886
mov rax, 0x3185834
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffb1472c56
xor byte [rax], dl
inc rax
dec rcx
jne 0x1431858a5
jmp 0x1431858bc
invalid
Function at 0x180003b50
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
and rsp, 0xfffffffffffffff0
xor r8, r8
push r8
push rax
pushfq
push r8
push rdx
sub rsp, 0xa8
push r8
push r15
push r14
push r13
push r12
push rbx
push r8
push rsi
push rdi
push rbp
push rax
push rdx
sub rsp, 0x290
movdqa xmmword [rsp + 0x2f0], xmm6
movdqa xmmword [rsp + 0x300], xmm7
movdqa xmmword [rsp + 0x310], xmm8
movdqa xmmword [rsp + 0x320], xmm9
movdqa xmmword [rsp + 0x330], xmm10
movdqa xmmword [rsp + 0x340], xmm11
movdqa xmmword [rsp + 0x350], xmm12
movdqa xmmword [rsp + 0x360], xmm13
movdqa xmmword [rsp + 0x370], xmm14
movdqa xmmword [rsp + 0x380], xmm15
mov eax, dword [0x180315728]
mov rbx, qword gs:[0x58]
mov rbx, qword [rbx + rax*8]
mov eax, 0x30
add rax, rbx
lea rdx, [rsp + 0x20]
xor r8, r8
mov qword [rdx + 0x10], r8
mov byte [rdx + 0x19], 1
mov dword [rdx + 0x1c], 0xffffffff
mov byte [rdx + 0x18], 2
mov r8, qword [rax + 0x80]
mov qword [rdx], r8
mov qword [rax + 0x80], rdx
lea r8, [rsp + 0x290]
mov qword [rdx + 8], r8
call fcn.1800f46d0
int3
push r15
push r14
push r13
push r12
push rbx
push rsi
push rdi
push rbp
sub rsp, 0xd8
movdqa xmmword [rsp + 0x20], xmm6
movdqa xmmword [rsp + 0x30], xmm7
movdqa xmmword [rsp + 0x40], xmm8
movdqa xmmword [rsp + 0x50], xmm9
movdqa xmmword [rsp + 0x60], xmm10
movdqa xmmword [rsp + 0x70], xmm11
movdqa xmmword [rsp + 0x80], xmm12
movdqa xmmword [rsp + 0x90], xmm13
movdqa xmmword [rsp + 0xa0], xmm14
movdqa xmmword [rsp + 0xb0], xmm15
mov qword [rsp + 0x120], rcx
mov qword [rsp + 0x128], rdx
mov qword [rsp + 0x130], r8
mov qword [rsp + 0x138], r9
mov eax, dword [0x180315728]
mov rbx, qword gs:[0x58]
mov rbx, qword [rbx + rax*8]
mov eax, 0x30
add rax, rbx
mov qword [rsp + 0xc0], rax
cmp rcx, qword [rax + 0x88]
sete byte [rsp + 0xd0]
lock and dword [rax + 0x38], 0xffffffef
mov rax, qword [r8 + 0x18]
mov rbx, qword [rax]
mov rax, qword [r8 + 0x20]
mov rbp, qword [rax]
mov rax, qword [r8 + 0x28]
mov rsi, qword [rax]
mov rax, qword [r8 + 0x30]
mov rdi, qword [rax]
mov rax, qword [r8 + 0x58]
mov r12, qword [rax]
mov rax, qword [r8 + 0x60]
mov r13, qword [rax]
mov rax, qword [r8 + 0x68]
mov r14, qword [rax]
mov rax, qword [r8 + 0x70]
mov r15, qword [rax]
movdqa xmm6, xmmword [r8 + 0x90]
movdqa xmm7, xmmword [r8 + 0xa0]
movdqa xmm8, xmmword [r8 + 0xb0]
movdqa xmm9, xmmword [r8 + 0xc0]
movdqa xmm10, xmmword [r8 + 0xd0]
movdqa xmm11, xmmword [r8 + 0xe0]
movdqa xmm12, xmmword [r8 + 0xf0]
movdqa xmm13, xmmword [r8 + 0x100]
movdqa xmm14, xmmword [r8 + 0x110]
movdqa xmm15, xmmword [r8 + 0x120]
mov rcx, qword [r8 + 0x78]
mov rdx, qword [rsp + 0x120]
call qword [rsp + 0x128]
mov r8, qword [rsp + 0x130]
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rdx + 0x70]
cmp rcx, 0
je 0x180003ce0
mov r9, qword [rdx + 0x68]
mov qword [r9], rcx
mov qword [rdx + 0x68], 0
mov qword [rdx + 0x70], 0
mov rcx, qword [rsp + 0x138]
mov r8, qword [r8 + 0x78]
xor r9d, r9d
mov rcx, qword [rcx]
cmp rcx, r9
je 0x180003cfc
cmp rcx, r8
jl 0x180003cef
mov qword [rdx + 0x80], rcx
test dword [0x18030d268], 1
je 0x180003d2b
cmp byte [rsp + 0xd0], 0
je 0x180003d2b
mov rcx, 0x43
mov rdx, rax
mov rsp, r8
jmp 0x180003850
mov rsp, r8
jmp rax
Function at 0x180003d30
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rbx
push rsi
push rdi
push rbp
sub rsp, 0xc8
movdqa xmmword [rsp + 0x20], xmm6
movdqa xmmword [rsp + 0x30], xmm7
movdqa xmmword [rsp + 0x40], xmm8
movdqa xmmword [rsp + 0x50], xmm9
movdqa xmmword [rsp + 0x60], xmm10
movdqa xmmword [rsp + 0x70], xmm11
movdqa xmmword [rsp + 0x80], xmm12
movdqa xmmword [rsp + 0x90], xmm13
movdqa xmmword [rsp + 0xa0], xmm14
movdqa xmmword [rsp + 0xb0], xmm15
mov qword [rsp + 0x110], rcx
mov qword [rsp + 0x118], rdx
mov eax, dword [0x180315728]
mov rbx, qword gs:[0x58]
mov rbx, qword [rbx + rax*8]
mov eax, 0x30
add rax, rbx
mov qword [rsp + 0xc0], rax
lock and dword [rax + 0x38], 0xffffffef
mov rax, qword [rdx + 0x18]
mov rbx, qword [rax]
mov rax, qword [rdx + 0x20]
mov rbp, qword [rax]
mov rax, qword [rdx + 0x28]
mov rsi, qword [rax]
mov rax, qword [rdx + 0x30]
mov rdi, qword [rax]
mov rax, qword [rdx + 0x58]
mov r12, qword [rax]
mov rax, qword [rdx + 0x60]
mov r13, qword [rax]
mov rax, qword [rdx + 0x68]
mov r14, qword [rax]
mov rax, qword [rdx + 0x70]
mov r15, qword [rax]
movdqa xmm6, xmmword [rdx + 0x90]
movdqa xmm7, xmmword [rdx + 0xa0]
movdqa xmm8, xmmword [rdx + 0xb0]
movdqa xmm9, xmmword [rdx + 0xc0]
movdqa xmm10, xmmword [rdx + 0xd0]
movdqa xmm11, xmmword [rdx + 0xe0]
movdqa xmm12, xmmword [rdx + 0xf0]
movdqa xmm13, xmmword [rdx + 0x100]
movdqa xmm14, xmmword [rdx + 0x110]
movdqa xmm15, xmmword [rdx + 0x120]
mov rcx, qword [rdx + 0x78]
call qword [rsp + 0x110]
mov rdx, qword [rsp + 0x118]
mov rax, qword [rdx + 0x18]
mov qword [rax], rbx
mov rax, qword [rdx + 0x20]
mov qword [rax], rbp
mov rax, qword [rdx + 0x28]
mov qword [rax], rsi
mov rax, qword [rdx + 0x30]
mov qword [rax], rdi
mov rax, qword [rdx + 0x58]
mov qword [rax], r12
mov rax, qword [rdx + 0x60]
mov qword [rax], r13
mov rax, qword [rdx + 0x68]
mov qword [rax], r14
mov rax, qword [rdx + 0x70]
mov qword [rax], r15
movdqa xmmword [rdx + 0x90], xmm6
movdqa xmmword [rdx + 0xa0], xmm7
movdqa xmmword [rdx + 0xb0], xmm8
movdqa xmmword [rdx + 0xc0], xmm9
movdqa xmmword [rdx + 0xd0], xmm10
movdqa xmmword [rdx + 0xe0], xmm11
movdqa xmmword [rdx + 0xf0], xmm12
movdqa xmmword [rdx + 0x100], xmm13
movdqa xmmword [rdx + 0x110], xmm14
movdqa xmmword [rdx + 0x120], xmm15
mov rax, qword [rsp + 0xc0]
lock or dword [rax + 0x38], 0x10
movdqa xmm6, xmmword [rsp + 0x20]
movdqa xmm7, xmmword [rsp + 0x30]
movdqa xmm8, xmmword [rsp + 0x40]
movdqa xmm9, xmmword [rsp + 0x50]
movdqa xmm10, xmmword [rsp + 0x60]
movdqa xmm11, xmmword [rsp + 0x70]
movdqa xmm12, xmmword [rsp + 0x80]
movdqa xmm13, xmmword [rsp + 0x90]
movdqa xmm14, xmmword [rsp + 0xa0]
movdqa xmm15, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbp
pop rdi
pop rsi
pop rbx
pop r12
pop r13
pop r14
pop r15
ret