joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000a238
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x60
mov rdi, rcx
mov rsi, rdx
lea r8, [rax + 0x18]
lea rcx, str.SeSecurityPrivilege
mov edx, 1
call fcn.180009338
test eax, eax
jne 0x18000a2e5
and dword [rsp + 0x40], eax
xor eax, eax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
call fcn.18000918c
lea rax, [rsp + 0x40]
xor r8d, r8d
mov r9d, 0xff
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
lea edx, [r8 + 3]
mov rcx, rdi
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [rsp + 0x80], 0
jne 0x18000a2df
lea r8, [rsp + 0x80]
lea rcx, str.SeSecurityPrivilege
xor edx, edx
call fcn.180009338
cmp rbx, 0xffffffffffffffff
jne 0x18000a32b
and qword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
xor r8d, r8d
lea edx, [r8 + 3]
mov r9d, 0xff
mov rcx, rdi
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp rbx, 0xffffffffffffffff
jne 0x18000a32b
or rax, 0xffffffffffffffff
jmp 0x18000a372
call fcn.18000622c
mov edi, eax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x18000a36f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x18000a36f
mov ecx, 1
call fcn.1800061d0
call fcn.18000622c
sub eax, edi
cmp eax, dword [rsi + 4]
jb 0x18000a332
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18000a325
mov rax, rbx
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x18000a7e8
Capabilities:
Connect socket

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 esi, r9d
mov r14d, r8d
mov r15, rdx
mov rdi, rcx
call fcn.18000622c
mov ebp, eax
call fcn.18000622c
mov r8d, r14d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18000a84b
mov ecx, dword [rsp + 0x60]
call fcn.1800061d0
call fcn.18000622c
sub eax, ebp
cmp eax, esi
jb 0x18000a813
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x18000a86c
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1e0
mov rbx, qword [rsp + 0x230]
mov r15, rcx
mov ebp, r8d
movzx r14d, dx
xor r13d, r13d
lea rcx, [rsp + 0x42]
mov r8d, 0x196
xor edx, edx
mov esi, r9d
mov qword [rbx], r13
mov word [rsp + 0x40], r13w
call fcn.180013d60
lea rdx, [rsp + 0x40]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x18000a8da
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x18000a956
mov edx, 1
lea r12d, [rdx + 1]
lea r8d, [rdx + 5]
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, r15
mov rdi, rax
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx]
mov ecx, dword [rdx]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rcx, rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
call qword [sym.imp.WS2_32.dll_inet_addr]
movzx ecx, r14w
mov dword [rsp + 0x34], eax
mov word [rsp + 0x30], r12w
call qword [sym.imp.WS2_32.dll_htons]
lea r8d, [r12 + 0xe]
lea rdx, [rsp + 0x30]
mov r9d, ebp
mov rcx, rdi
mov word [rsp + 0x32], ax
mov dword [rsp + 0x20], esi
call fcn.18000a7e8
test eax, eax
jne 0x18000a956
mov qword [rbx], rdi
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18000a980
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x18], r8d
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x118]
sub rsp, 0x1f0
mov r12, qword [rbp + 0x148]
mov rsi, rcx
mov rdi, rdx
xor ebx, ebx
lea rcx, [rsp + 0x52]
xor edx, edx
mov r8d, 0x196
mov r13d, r9d
mov qword [r12], rbx
mov word [rsp + 0x50], bx
call fcn.180013d60
lea rdx, [rsp + 0x50]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x18000a9f6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x18000aad6
xor edx, edx
lea rcx, [rsp + 0x24]
mov dword [rsp + 0x20], ebx
lea r8d, [rdx + 0x2c]
call fcn.180013d60
mov r14d, reloc.WS2_32.dll_socket
lea r9, [rbp + 0x148]
lea r15d, [r14 - 0x16]
lea r8, [rsp + 0x20]
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x24], r14d
mov dword [rsp + 0x2c], 6
mov dword [rsp + 0x28], r15d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x18000a9eb
lea r8d, [r14 - 0x11]
mov edx, r15d
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18000a9eb
mov r14d, ebx
call fcn.18000622c
mov r15d, eax
call fcn.18000622c
mov rdi, qword [rbp + 0x148]
jmp 0x18000aa9e
mov rax, qword [rdi + 0x20]
mov ecx, dword [rbp + 0x130]
mov dword [rax + 0x18], ecx
mov r8d, dword [rdi + 0x10]
mov rdx, qword [rdi + 0x20]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
mov r14d, eax
cmp eax, 0xffffffff
jne 0x18000aaf7
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x18000aa74
mov ecx, dword [rbp + 0x140]
call fcn.1800061d0
call fcn.18000622c
sub eax, r15d
cmp eax, r13d
jb 0x18000aa66
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, r14d
mov rcx, qword [rbp + 0x148]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, ebx
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov qword [r12], rsi
jmp 0x18000aac7
Function at 0x18000ab7c
Capabilities:
Initialize winsock library
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
xor r15d, r15d
movzx esi, cx
mov r14, rdx
mov qword [rdx], r15
lea rcx, [rsp + 0x52]
mov r8d, 0x196
xor edx, edx
mov word [rsp + 0x50], r15w
call fcn.180013d60
lea rdx, [rsp + 0x50]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x18000abe0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x18000acc9
mov edx, 1
mov ebx, r15d
lea ecx, [rdx + 0x16]
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov r13d, 2
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18000ac39
lea r9, [rbp + 0x128]
lea edx, [r13 + 0x27]
lea r8d, [r13 + 0x19]
mov rcx, rax
mov dword [rbp + 0x128], r15d
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x18000ac50
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, 1
mov ecx, r13d
lea r8d, [rbx + 5]
mov edx, ebx
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
xor eax, eax
mov word [rsp + 0x30], r15w
mov qword [rsp + 0x32], rax
mov qword [rsp + 0x3a], rax
mov qword [rsp + 0x42], rax
mov word [rsp + 0x4a], ax
test ebx, ebx
je 0x18000ac87
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x30], r13w
movzx eax, ax
mov dword [rsp + 0x34], eax
jmp 0x18000ac9e
movups xmm0, xmmword [0x1800243b0]
mov eax, reloc.WS2_32.dll_socket
mov word [rsp + 0x30], ax
movdqu xmmword [rsp + 0x38], xmm0
movzx ecx, si
call qword [sym.imp.WS2_32.dll_htons]
neg ebx
lea rdx, [rsp + 0x30]
sbb r8d, r8d
mov r9, r14
mov rcx, rdi
and r8d, 0xfffffff4
mov word [rsp + 0x32], ax
add r8d, 0x1c
call fcn.18000ab04
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret

Function at 0x18000acec
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x240
mov rax, qword [rcx + 8]
mov rsi, rcx
mov rcx, qword [rcx + 0x28]
mov rbx, qword [rax + 0x60]
mov edi, edx
call fcn.18000c940
and dword [rsp + 0x30], 0
mov rax, qword [rbx]
and dword [rsp + 0x250], 0
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x254], edi
mov ecx, dword [rbx]
lea rax, [rsp + 0x250]
lea rdx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
inc ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov rcx, qword [rsi + 0x28]
mov ebx, eax
call fcn.18000c960
lea r11, [rsp + 0x240]
mov rsi, qword [r11 + 0x20]
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x18000cb84
Capabilities:
Create thread

Disassembly:
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, 0x30
mov rsi, r9
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test rcx, rcx
jne 0x18000cbb5
xor eax, eax
jmp 0x18000cc35
mov ecx, 0x38
call fcn.180013380
mov rbx, rax
test rax, rax
je 0x18000cbae
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x38]
call fcn.180013d60
call fcn.18000c980
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x18000cbed
mov rcx, rbx
call fcn.180013340
jmp 0x18000cbae
lea r8, [0x18000cd78]
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov qword [rbx + 0x20], r14
mov qword [rbx + 0x28], rbp
mov qword [rbx + 0x30], rsi
mov qword [rbx + 0x18], rdi
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 8], rax
test rax, rax
jne 0x18000cc32
mov rcx, qword [rbx + 0x10]
call fcn.18000c9dc
jmp 0x18000cbe3
mov rax, rbx
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 0x18000cc90
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x28
test rcx, rcx
jne 0x18000cc9d
xor eax, eax
jmp 0x18000ccac
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
add rsp, 0x28
ret

Function at 0x18000ccd0
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
test rcx, rcx
jne 0x18000cce1
xor eax, eax
jmp 0x18000ccf5
mov rcx, qword [rcx + 8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
setne bl
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x18000ded4
Capabilities:
Compute adler32 checksum

Disassembly:
movzx r9d, cx
shr ecx, 0x10
mov r10, rdx
test rdx, rdx
jne 0x18000e00b
lea eax, [rdx + 1]
ret
mov edx, 0x15b0
cmp r8d, edx
cmovb edx, r8d
sub r8d, edx
cmp edx, 0x10
jl 0x18000dfd0
mov r11d, edx
shr r11, 4
mov eax, r11d
neg eax
shl eax, 4
add edx, eax
movzx eax, byte [r10]
add r10, 0x10
add r9d, eax
movzx eax, byte [r10 - 0xf]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xe]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xd]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xc]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xb]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xa]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 9]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 8]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 7]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 6]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 5]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 4]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 3]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 2]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 1]
add ecx, r9d
add r9d, eax
add ecx, r9d
dec r11
jne 0x18000df14
test edx, edx
je 0x18000dfe5
movzx eax, byte [r10]
inc r10
add r9d, eax
add ecx, r9d
dec edx
jne 0x18000dfd4
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul eax, edx, 0xffff000f
add r9d, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
test r8d, r8d
jne 0x18000deeb
shl ecx, 0x10
or ecx, r9d
mov eax, ecx
ret
Function at 0x18000ebf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, dword [rcx + 0x38]
mov rbx, rcx
mov edx, dword [rbx + 0x8c]
mov edi, dword [rbx + 0x50]
mov eax, dword [rbx + 0x94]
sub edi, edx
sub edi, eax
jne 0x18000ec2e
test edx, edx
jne 0x18000ec3d
test eax, eax
jne 0x18000ec3d
mov edi, esi
jmp 0x18000ecc2
cmp edi, 0xffffffff
jne 0x18000ec3d
mov edi, 0xfffffffe
jmp 0x18000ecc2
mov ecx, dword [rbx + 0x38]
add ecx, 0xfffffefa
add ecx, esi
cmp edx, ecx
jb 0x18000ecc2
mov rcx, qword [rbx + 0x48]
mov r8, rsi
lea rdx, [rcx + rsi]
call fcn.180013450
mov r9d, dword [rbx + 0x6c]
mov rax, qword [rbx + 0x60]
sub dword [rbx + 0x90], esi
sub dword [rbx + 0x8c], esi
sub dword [rbx + 0x7c], esi
lea r8, [rax + r9*2]
xor eax, eax
lea r8, [r8 - 2]
movzx edx, word [r8]
movzx ecx, dx
sub cx, si
cmp edx, esi
cmovae ax, cx
mov word [r8], ax
dec r9d
jne 0x18000ec77
mov rax, qword [rbx + 0x58]
mov r9d, esi
lea r8, [rax + rsi*2]
xor eax, eax
lea r8, [r8 - 2]
movzx edx, word [r8]
movzx ecx, dx
sub cx, si
cmp edx, esi
cmovae ax, cx
mov word [r8], ax
dec r9d
jne 0x18000eca1
add edi, esi
mov rcx, qword [rbx]
cmp dword [rcx + 8], 0
je 0x18000ed39
mov edx, dword [rbx + 0x94]
mov eax, dword [rbx + 0x8c]
mov r8d, edi
add rdx, rax
add rdx, qword [rbx + 0x48]
call fcn.18000f6b4
add dword [rbx + 0x94], eax
mov r9d, dword [rbx + 0x94]
cmp r9d, 3
jb 0x18000ed23
mov eax, dword [rbx + 0x8c]
mov rdx, qword [rbx + 0x48]
mov ecx, dword [rbx + 0x78]
movzx r8d, byte [rax + rdx]
mov dword [rbx + 0x68], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rbx + 0x74]
mov dword [rbx + 0x68], r8d
cmp r9d, 0x106
jae 0x18000ed39
mov rax, qword [rbx]
cmp dword [rax + 8], 0
jne 0x18000ec0a
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180012fc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rdi
push r14
sub rsp, 0x28
movsxd rax, dword [rcx + 0x3c]
mov rdi, rcx
mov edx, 0x10b
add rax, rcx
movzx ecx, word [rax + 0x18]
cmp cx, dx
jne 0x180012fe9
xor r14d, r14d
add rax, 0x78
jmp 0x180013003
mov edx, 0x20b
cmp cx, dx
jne 0x1800130d8
mov r14d, 1
add rax, 0x88
mov ecx, dword [rax]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov r8d, r14d
mov rdx, rdi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x20], r15
call fcn.1800131a0
mov r8d, r14d
mov r15d, eax
mov rdx, rdi
add r15, rdi
mov ecx, dword [r15 + 0x20]
call fcn.1800131a0
mov ecx, dword [r15 + 0x24]
mov r8d, r14d
mov ebx, eax
mov rdx, rdi
add rbx, rdi
call fcn.1800131a0
mov ebp, dword [r15 + 0x18]
mov esi, eax
add rsi, rdi
test ebp, ebp
je 0x180013091
nop word [rax + rax]
mov ecx, dword [rbx]
mov r8d, r14d
mov rdx, rdi
dec ebp
call fcn.1800131a0
lea rdx, [0x1800243c0]
mov ecx, eax
add rcx, rdi
call fcn.180015380
test rax, rax
jne 0x1800130af
add rbx, 4
add rsi, 2
test ebp, ebp
jne 0x180013060
xor eax, eax
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop r14
pop rdi
ret
mov ecx, dword [r15 + 0x1c]
mov r8d, r14d
mov rdx, rdi
call fcn.1800131a0
movzx r9d, word [rsi]
mov r8d, r14d
mov ecx, eax
mov rdx, rdi
add rcx, rdi
mov ecx, dword [rcx + r9*4]
call fcn.1800131a0
jmp 0x180013093
xor eax, eax
add rsp, 0x28
pop r14
pop rdi
ret

Function at 0x1800130f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
push rdi
push r14
sub rsp, 0x20
mov edi, edx
mov rbx, rcx
xor r14d, r14d
mov qword [rsp + 0x58], r14
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x50], r14d
test rcx, rcx
je 0x180013188
test edx, edx
je 0x180013188
call fcn.180012fc0
test eax, eax
je 0x18001317d
mov esi, eax
add rsi, rbx
lea r9, [rsp + 0x40]
lea r8d, [r14 + 0x40]
mov edx, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18001317d
call rsi
test rax, rax
je 0x180013167
lea r8, [rsp + 0x58]
lea edx, [r14 + 6]
xor ecx, ecx
call rax
mov rcx, qword [rsp + 0x58]
test eax, eax
cmove rcx, r14
mov qword [rsp + 0x58], rcx
lea r9, [rsp + 0x50]
mov r8d, dword [rsp + 0x40]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rsp + 0x58]
jmp 0x180013186
jmp 0x18001318a
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x180013240
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov r14, rdx
mov rdi, rcx
xor r8d, r8d
test rcx, rcx
jne 0x18001326a
xor eax, eax
jmp 0x18001332a
mov qword [rsp + 8], r8
mov qword [rsp + 0x10], r8
movsxd rax, dword [rcx + 0x3c]
mov ecx, dword [rax + rcx + 0x88]
add rcx, rdi
mov esi, dword [rcx + 0x1c]
add rsi, rdi
mov ebx, dword [rcx + 0x20]
add rbx, rdi
mov qword [rsp + 8], rbx
mov r10d, dword [rcx + 0x24]
add r10, rdi
mov qword [rsp + 0x10], r10
test edx, 0xffff0000
jne 0x1800132af
movzx eax, dx
sub eax, dword [rcx + 0x10]
jmp 0x180013311
mov r11d, dword [rcx + 0x18]
mov dword [rsp], r11d
nop word [rax + rax]
mov eax, r11d
dec r11d
mov dword [rsp], r11d
test eax, eax
je 0x18001331d
mov eax, dword [rbx]
add rax, rdi
mov r9, r14
sub r9, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r9]
sub edx, ecx
jne 0x1800132f3
inc rax
test ecx, ecx
jne 0x1800132e0
test edx, edx
jne 0x1800132fd
movzx eax, word [r10]
jmp 0x180013311
add rbx, 4
mov qword [rsp + 8], rbx
add r10, 2
mov qword [rsp + 0x10], r10
jmp 0x1800132c0
mov r8d, dword [rsi + rax*4]
add r8, rdi
mov qword [rsp + 0x18], r8
jmp 0x180013327
mov rax, r8
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14001120d
Capabilities:
Terminate process

Disassembly:
jmp 0x140013500
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140011294
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014840
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014860
xor al, al
jmp 0x1400148e1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014873
xor al, al
jmp 0x1400148e1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001489d
xor al, al
jmp 0x1400148e1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400148b1
xor al, al
jmp 0x1400148e1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400148c3
xor al, al
jmp 0x1400148e1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400148df
xor al, al
jmp 0x1400148e1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400016a8
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
or ebx, 0xffffffff
lock xadd dword [0x140005020], ebx
sub ebx, 1
jne 0x14000170b
lea ecx, [rbx + 4]
call fcn.140001030
and qword [rsp + 0x28], 0
lea r8, [0x140001670]
and dword [rsp + 0x20], ebx
mov r9, rax
xor edx, edx
xor ecx, ecx
mov dword [rax], 0x493e0
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
test rax, rax
je 0x140001706
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x14000170b
call fcn.1400011dc
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x14000281c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140002868
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140002860
cmp dword [rcx + 0x3c], edx
jl 0x140002860
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140002860
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 0x140002868
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1401eafc0]
mov dword [rax], 1
mov rax, qword [0x1401eafd0]
mov dword [rax], 1
mov rax, qword [0x1401eafe0]
mov dword [rax], 1
mov rax, qword [0x1401eaf40]
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 0x140160400
Capabilities:
Query environment variable

Disassembly:
push r14
mov eax, 0x10080
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1401c3e30
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 0x1401604a9
nop dword [rax]
mov rax, r14
lea rbx, [rbp + rsi*2]
sub rax, rsi
cmp word [rbp + rsi*2], 0
je 0x14016046e
nop dword [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x140160460
test rax, rax
je 0x1401d4d50
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 0x140160448
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 0x1401604d8
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

Function at 0x1401604f0
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 0x140160591
nop word [rax + rax]
mov rax, r13
lea rbx, [r15 + rsi*2]
sub rax, rsi
cmp word [r15 + rsi*2], 0
je 0x140160556
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x140160548
test rax, rax
je 0x1401d4d56
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 0x140160530
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