joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140045e90
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov rsi, rdx
mov rdi, rcx
call fcn.140035030
cmp rax, 0xffffffffffffffff
je 0x140045f07
mov rbx, rax
lea rdx, [rsp + 0x28]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ebp, eax
mov r14, qword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x140045edc
and r14d, 0x3f
mov al, 1
cmp r14d, 0x10
je 0x140045f09
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, [0x14005b9ec]
mov rcx, rax
mov r8, rdi
mov r9, rsi
call fcn.140035150
mov rdx, rdi
mov r8, rsi
call fcn.140045f20
xor eax, eax
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x140049760
Capabilities:
Create thread

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x60
lea rbp, [rsp + 0x60]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, rdx
mov rdi, rcx
mov qword [rcx], 0
mov dword [rcx + 8], 0
mov dword [rbp - 0xc], 0
mov ecx, 0x20
call fcn.1400531fc
lea rcx, [rdi + 8]
mov qword [rbp - 0x18], rcx
movabs rcx, 0x200000001
mov qword [rax], rcx
xorps xmm0, xmm0
movups xmmword [rax + 8], xmm0
mov dword [rax + 0x18], 0
mov qword [rbp - 0x20], rdi
mov qword [rdi + 0x10], rax
mov rsi, qword [rsi]
mov qword [rbp - 0x28], rax
mov ecx, 8
call fcn.1400531fc
mov qword [rax], rsi
mov rcx, qword [rbp - 0x18]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
lea r8, [0x14004b270]
xor ecx, ecx
xor edx, edx
mov qword [rbp - 0x30], rax
mov r9, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rbp - 0x20]
mov qword [rcx], rax
test rax, rax
je 0x140049815
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rbp - 0x18]
mov dword [rax], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3

Function at 0x140049af0
Capabilities:
Create thread

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x60
lea rbp, [rsp + 0x60]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, rdx
mov rdi, rcx
mov qword [rcx], 0
mov dword [rcx + 8], 0
mov dword [rbp - 0xc], 0
mov ecx, 0x20
call fcn.1400531fc
lea rcx, [rdi + 8]
mov qword [rbp - 0x18], rcx
movabs rcx, 0x200000001
mov qword [rax], rcx
xorps xmm0, xmm0
movups xmmword [rax + 8], xmm0
mov dword [rax + 0x18], 0
mov qword [rbp - 0x20], rdi
mov qword [rdi + 0x10], rax
mov rsi, qword [rsi]
mov qword [rbp - 0x28], rax
mov ecx, 8
call fcn.1400531fc
mov qword [rax], rsi
mov rcx, qword [rbp - 0x18]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
lea r8, [0x14004a9d0]
xor ecx, ecx
xor edx, edx
mov qword [rbp - 0x30], rax
mov r9, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rbp - 0x20]
mov qword [rcx], rax
test rax, rax
je 0x140049ba5
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rbp - 0x18]
mov dword [rax], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x140049c70
Capabilities:
Create thread

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x60
lea rbp, [rsp + 0x60]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, rdx
mov rdi, rcx
mov qword [rcx], 0
mov dword [rcx + 8], 0
mov dword [rbp - 0xc], 0
mov ecx, 0x20
call fcn.1400531fc
lea rcx, [rdi + 8]
mov qword [rbp - 0x18], rcx
movabs rcx, 0x200000001
mov qword [rax], rcx
xorps xmm0, xmm0
movups xmmword [rax + 8], xmm0
mov dword [rax + 0x18], 0
mov qword [rbp - 0x20], rdi
mov qword [rdi + 0x10], rax
mov esi, dword [rsi]
mov qword [rbp - 0x28], rax
mov ecx, 4
call fcn.1400531fc
mov dword [rax], esi
mov rcx, qword [rbp - 0x18]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
lea r8, [0x14004a930]
xor ecx, ecx
xor edx, edx
mov qword [rbp - 0x30], rax
mov r9, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rbp - 0x20]
mov qword [rcx], rax
test rax, rax
je 0x140049d23
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rbp - 0x18]
mov dword [rax], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3

Function at 0x140049df0
Capabilities:
Create thread

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x60
lea rbp, [rsp + 0x60]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, rdx
mov rdi, rcx
mov qword [rcx], 0
mov dword [rcx + 8], 0
mov dword [rbp - 0xc], 0
mov ecx, 0x20
call fcn.1400531fc
lea rcx, [rdi + 8]
mov qword [rbp - 0x18], rcx
movabs rcx, 0x200000001
mov qword [rax], rcx
xorps xmm0, xmm0
movups xmmword [rax + 8], xmm0
mov dword [rax + 0x18], 0
mov qword [rbp - 0x20], rdi
mov qword [rdi + 0x10], rax
mov qword [rbp - 0x28], rax
mov ecx, 0xc
call fcn.1400531fc
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov rcx, qword [rsi]
mov qword [rax], rcx
mov rcx, qword [rbp - 0x18]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
lea r8, [0x140049f70]
xor ecx, ecx
xor edx, edx
mov qword [rbp - 0x30], rax
mov r9, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rbp - 0x20]
mov qword [rcx], rax
test rax, rax
je 0x140049eab
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rbp - 0x18]
mov dword [rax], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x14005377c
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x1800579d0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ebx, eax
test eax, eax
je 0x180057a18
test rdi, rdi
je 0x180057a07
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.180001811
cmp eax, 1
je 0x180057a18
mov eax, 4
jmp 0x180057a5d
call fcn.180003a12
cmp eax, 2
jne 0x180057a54
call fcn.180001870
test al, al
je 0x180057a54
call fcn.180002b5d
test al, al
jne 0x180057a4a
bts esi, 0x15
xor ecx, ecx
mov rdx, rdi
mov r8, rbp
mov r9d, esi
call fcn.180003a4e
jmp 0x180057a5d
call fcn.1800038f0
mov rcx, rax
jmp 0x180057a3a
neg ebx
sbb eax, eax
neg eax
add eax, 3
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180002199
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1800646ec
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x18009e080]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea rbx, [0x1800a0a80]
xor r12d, r12d
lea rdi, [0x1800878c4]
test r9, r9
mov rax, rdx
mov r15, rdx
cmovne rbx, r9
test rdx, rdx
lea ebp, [r12 + 1]
cmovne rbp, r8
cmovne rdi, rdx
neg rax
sbb r14, r14
and r14, rcx
test rbp, rbp
jne 0x18006475a
mov rax, 0xfffffffffffffffe
jmp 0x18006488d
cmp word [rbx + 6], r12w
jne 0x1800647b0
mov rcx, rdi
call fcn.180003968
movsxd r8, eax
movzx eax, byte [rdi]
inc rdi
cmp r8d, 1
jbe 0x1800647a0
lea ecx, [r8 - 2]
cmp ecx, 2
ja 0x180064882
movzx edx, r8b
mov ecx, 7
sub ecx, edx
mov r9b, r8b
mov edx, 1
shl edx, cl
dec edx
and edx, eax
jmp 0x1800647d9
test r14, r14
je 0x1800647a8
mov dword [r14], eax
mov rax, r8
jmp 0x18006488d
mov r8b, byte [rbx + 4]
mov edx, dword [rbx]
mov r9b, byte [rbx + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x180064882
cmp r9b, 1
jb 0x180064882
cmp r9b, r8b
jae 0x180064882
movzx r11d, r9b
cmp r11, rbp
mov r10d, r11d
cmovae r10, rbp
jmp 0x180064807
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x180064882
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r15
cmp rax, r10
jb 0x1800647e9
cmp r10, r11
jae 0x180064831
movzx eax, r8b
sub r9b, r10b
mov word [rbx + 4], ax
movzx eax, r9b
mov word [rbx + 6], ax
mov dword [rbx], edx
jmp 0x18006474e
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x180064882
cmp edx, 0x110000
jae 0x180064882
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x180064882
test r14, r14
je 0x180064870
mov dword [r14], edx
neg edx
mov rdx, rbx
sbb rcx, rcx
and rcx, r11
call fcn.180003a49
jmp 0x18006488d
mov rdx, rsi
mov rcx, rbx
call fcn.1800040b1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180002626
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1800021df
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x18000894c
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x180000000], ax
jne 0x1800089d9
movsxd rcx, dword [0x18000003c]
lea rdx, [0x180000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x1800089d9
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800089d9
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x1800089c0
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x1800089ba
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1800089c2
add rdx, 0x28
jmp 0x18000899f
xor edx, edx
test rdx, rdx
jne 0x1800089cb
xor al, al
jmp 0x1800089df
cmp dword [rdx + 0x24], 0
jge 0x1800089d5
xor al, al
jmp 0x1800089df
mov al, 1
jmp 0x1800089df
xor al, al
jmp 0x1800089df
add rsp, 0x18
ret
Function at 0x1800024b9
Capabilities:
Query environment variable

Disassembly:
jmp 0x18005d7c4
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x18005d84b
mov rsi, rbx
cmp word [rax], bp
je 0x18005d80a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x18005d7f4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x18005d7f0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.180001037
mov rdi, rax
test rax, rax
je 0x18005d838
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.18000262b
mov rbp, rdi
xor ecx, ecx
call fcn.180001163
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180002513
Capabilities:
Get system information on windows

Disassembly:
jmp 0x18007bc80
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rdi, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18007bcae
lea ecx, [rax + 0x19]
int 0x29
test byte [rsp + 0x44], 0x44
je 0x18007bd07
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r9d, dword [rsp + 0x54]
xor edx, edx
mov r8d, r9d
neg r8
and r8, rbx
lea ecx, [r9 - 1]
mov eax, ecx
and ecx, ebx
and eax, edi
add eax, ecx
dec rax
add rax, r9
div r9
xor edx, edx
mov rcx, rax
mov rax, rdi
div r9
add rcx, rax
mov eax, ecx
test ecx, ecx
je 0x18007bd07
lock or dword [r8], 0
add r8, r9
sub rax, 1
jne 0x18007bcf9
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret

Function at 0x180002761
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x180017618
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x180088a30]
mov ecx, 2
lea r8, [0x180088a28]
lea rdx, str.FlsGetValue
call fcn.1800170e8
mov ecx, ebx
test rax, rax
je 0x180017652
add rsp, 0x20
pop rbx
jmp qword [0x1800ab020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1800028ab
Capabilities:
Query environment variable

Disassembly:
jmp 0x18005d670
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18005d6a0
xor eax, eax
jmp 0x18005d763
mov rbp, rbx
cmp word [rax], si
je 0x18005d6c5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18005d6ac
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18005d6a8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180003247
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x18005d706
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18005d699
call fcn.180001037
mov rdi, rax
test rax, rax
jne 0x18005d71c
xor ecx, ecx
call fcn.180001163
jmp 0x18005d6fb
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180003247
test eax, eax
jne 0x18005d74d
mov rcx, rdi
call fcn.180001163
jmp 0x18005d757
xor ecx, ecx
call fcn.180001163
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1800028b0
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x180017568
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x1800889f0]
xor ecx, ecx
lea r8, [0x1800889e8]
lea rdx, str.FlsAlloc
call fcn.1800170e8
test rax, rax
je 0x1800175a1
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1800ab020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x18000292d
Capabilities:
Get geographical location

Disassembly:
jmp 0x18005fea8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1800ac050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x18005ff0d
test rax, rax
jne 0x18005fefb
lea r9, [0x18008b368]
lea r8, [0x18008b360]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.18005f338
test rax, rax
je 0x18005ff0d
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.18000420a
jmp 0x18005ff27
xor edx, edx
mov rcx, rbp
call fcn.18000222f
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x18000293c
Capabilities:
Terminate process

Disassembly:
jmp 0x18007c9ec
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x180002a8b
Capabilities:
Parse pe header

Disassembly:
jmp 0x18001e4d4
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x18001e220

Function at 0x180002c20
Capabilities:
Parse pe header

Disassembly:
jmp 0x18007c740
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18007c768
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18007c768
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800031c0
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x18007c680
movsxd r8, dword [rcx + 0x3c]
xor r9d, r9d
add r8, rcx
mov r10, rdx
movzx eax, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rax, 0x18
add rax, r8
test r11d, r11d
je 0x18007c6c1
mov edx, dword [rax + 0xc]
cmp r10, rdx
jb 0x18007c6b5
mov ecx, dword [rax + 8]
add ecx, edx
cmp r10, rcx
jb 0x18007c6c3
inc r9d
add rax, 0x28
cmp r9d, r11d
jb 0x18007c6a3
xor eax, eax
ret

Function at 0x1800033aa
Capabilities:
Terminate process

Disassembly:
jmp 0x180051e18
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x180051e32
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.180003a58
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x180003977
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x18007bd40
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x18000003c]
lea rsi, [0x180000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x18007bdb9
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x18007bdb9
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
cmp r9w, r11w
jae 0x18007bdb9
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x18007bdad
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x18007bdcb
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x18007bd9b
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x18007bdbb
Function at 0x180003b39
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x180017670
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x180088a50]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x180088a48]
call fcn.1800170e8
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x1800176b0
call qword [0x1800ab020]
jmp 0x1800176b6
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180003bca
Capabilities:
Set environment variable

Disassembly:
jmp 0x18006d730
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.180002171
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x18006d7ba
cmp byte [rbp - 0x21], r15b
je 0x18006d7b5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x18006d7f0
call fcn.180003f80
test eax, eax
jne 0x18006d7dc
cmp byte [rbp - 0x21], r15b
je 0x18006d7d4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x18006d7f0
cmp byte [rbp - 0x21], r15b
je 0x18006d7ed
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.180004174
test eax, eax
jne 0x18006d890
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.180002171
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x18006d82f
cmp byte [rbp - 0x21], r15b
je 0x18006d864
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x18006d864
call fcn.180003f80
test eax, eax
jne 0x18006d850
cmp byte [rbp - 0x21], r15b
je 0x18006d849
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x18006d864
cmp byte [rbp - 0x21], r15b
je 0x18006d861
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.180004174
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x18006d890
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x18006d893
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x18006d8a1
mov rcx, rdi
call fcn.180001163
cmp byte [rbp + 0x3f], r15b
je 0x18006d8b0
mov rcx, qword [rbp + 0x27]
call fcn.180001163
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180003cbf
Capabilities:
Parse pe header

Disassembly:
jmp 0x18001e4c4
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x18001e28f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18001e28f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18001e28f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18001e28f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18001e28f
cmp dword [rcx + 0x84], 0xe
jbe 0x18001e28f
cmp dword [rcx + 0xf8], 0
je 0x18001e28f
mov ecx, ebx
call fcn.18001e414
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.18001df7c
nop
cmp dword [rbp + 0x20], 0
jne 0x18001e2f0
call fcn.18000168b
cmp eax, 1
jne 0x18001e2e0
xor dl, dl
jmp 0x18001e2ea
call fcn.1800023d8
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x18001e2fb
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18001e33c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18001e220

Function at 0x18001e220
Capabilities:
Parse pe header

Disassembly:
jmp 0x18001e4c4
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x18001e28f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18001e28f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18001e28f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18001e28f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18001e28f
cmp dword [rcx + 0x84], 0xe
jbe 0x18001e28f
cmp dword [rcx + 0xf8], 0
je 0x18001e28f
mov ecx, ebx
call fcn.18001e414
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.18001df7c
nop
cmp dword [rbp + 0x20], 0
jne 0x18001e2f0
call fcn.18000168b
cmp eax, 1
jne 0x18001e2e0
xor dl, dl
jmp 0x18001e2ea
call fcn.1800023d8
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x18001e2fb
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18001e33c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18001e220