joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801038f0
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1e8
mov rsi, rcx
mov r14, qword [rdx]
mov rbx, qword [rdx + 8]
movzx edi, word [rdx + 0x10]
mov rax, qword [0x18021a968]
cmp rax, 3
jne 0x180103aaa
cmp rbx, 0x17f
ja 0x180103abc
lea rcx, [rsp + 0x68]
mov rdx, r14
mov r8, rbx
call fcn.180171d20
mov byte [rsp + rbx + 0x68], 0
lea rax, [rbx + 1]
cmp rbx, 0xe
ja 0x180103968
xor edx, edx
nop dword [rax]
cmp byte [rsp + rdx + 0x68], 0
je 0x180103a14
inc rdx
cmp rax, rdx
jne 0x180103950
jmp 0x180103a73
xor ecx, ecx
mov dl, 1
test dl, dl
jne 0x18010399c
jne 0x18010399c
xor edx, edx
nop word cs:[rax + rax]
cmp byte [rsp + rdx + 0x68], 0
je 0x180103a14
inc rdx
jne 0x180103980
xor edx, edx
test dl, dl
jne 0x180103a0a
lea rdx, [rbx - 0xf]
jmp 0x1801039a2
lea rdx, [rbx - 0xf]
xor ecx, ecx
movabs r8, 0xfefefefefefefeff
movabs r9, 0x8080808080808080
nop word cs:[rax + rax]
mov r10, qword [rsp + rcx + 0x68]
mov r11, r10
not r11
add r10, r8
and r11, r9
test r11, r10
jne 0x180103a0a
mov r10, qword [rsp + rcx + 0x70]
mov r11, r10
not r11
add r10, r8
and r11, r9
test r11, r10
jne 0x180103a0a
add rcx, 0x10
cmp rcx, rdx
jbe 0x1801039c0
jmp 0x180103a0a
cmp byte [rsp + rcx + 0x68], 0
je 0x180103a11
inc rcx
cmp rax, rcx
jne 0x180103a00
jmp 0x180103a73
mov rdx, rcx
cmp rdx, rbx
jne 0x180103a73
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x68]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x180103a92
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
jmp 0x180103a85
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
jmp 0x180103a85
call fcn.180186730
cmp rbx, 0x17f
jbe 0x180103928
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.180186790
Function at 0x180104040
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rdi, rcx
mov rcx, qword [0x18021a960]
test rcx, rcx
jne 0x180104077
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010412c
mov rcx, rax
mov qword [0x18021a960], rax
mov r8d, 0x10
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x18010412c
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x180104140]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x18010411f
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
call qword [rax]
mov rax, qword [rsi + 8]
cmp qword [rax + 8], 0
je 0x1801040f9
mov r8, qword [rsi]
cmp qword [rax + 0x10], 0x11
jb 0x1801040ea
mov r8, qword [r8 - 8]
mov rcx, qword [0x18021a960]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x18021a960]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call fcn.18017f950
ud2

Function at 0x1801041c0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x1801041ef
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.180100ee0
ud2
Function at 0x1801048c0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rbx, r8
mov rsi, rcx
test rdx, rdx
je 0x1801048eb
mov qword [rsi + 8], rbx
mov qword [rsi], 1
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov rax, qword [0x18021a968]
cmp rax, 3
jne 0x180104a6d
cmp word [rbx], 0
mov eax, 2
mov ebp, 0x17
cmove ebp, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180104960
cmp word [rbx], 0
je 0x1801049d8
movups xmm0, xmmword [rbx + 4]
mov eax, dword [rbx + 0x14]
mov edx, dword [rbx + 0x18]
movzx ecx, word [rbx + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x1801049ed
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x18010497b
mov r14d, eax
cmp eax, 0x2726
jne 0x180104a5c
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x180104a53
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
jne 0x180104938
call sub.KERNEL32.dll_GetLastError
mov r14d, eax
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_closesocket]
jmp 0x180104a5c
mov eax, dword [rbx + 2]
movzx ecx, word [rbx + 6]
xorps xmm0, xmm0
mov r8d, 0x10
mov r9w, 2
rol cx, 8
mov word [rsp + 0x30], r9w
mov word [rsp + 0x32], cx
mov dword [rsp + 0x34], eax
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x48], edx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_bind]
cmp eax, 0xffffffff
je 0x180104a2c
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x1801048e0
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_closesocket]
jmp 0x1801048e0
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r14d, eax
shl r14, 0x20
or r14, 2
mov qword [rsi + 8], r14
jmp 0x1801048d9
call fcn.180186730
jmp 0x1801048fc
Function at 0x180104ad0
Capabilities:
Reference wmi statements

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x38], 0
cmp qword [rdx + 0x10], 0
je 0x180104ba3
lea rcx, [0x1801dfc4a]
call sub.oleaut32.dll_SysAllocString
mov rbx, rax
lea rcx, str.SELECT__FROM_MSAcpi_ThermalZoneTemperature
call sub.oleaut32.dll_SysAllocString
mov r14, rax
mov rcx, qword [rsi + 0x18]
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], 0
mov rdx, rbx
mov r8, r14
mov r9d, 0x30
call qword [rax + 0xa0]
mov ebp, eax
mov rcx, rbx
call sub.oleaut32.dll_SysFreeString
mov rcx, r14
call sub.oleaut32.dll_SysFreeString
test ebp, ebp
js 0x180104ba3
mov rbx, qword [rsp + 0x38]
cmp qword [rsi + 0x20], 0
je 0x180104b6f
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x180104b6f
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsi + 0x20], 1
mov qword [rsi + 0x28], rbx
mov rax, qword [rsi + 0x30]
mov qword [rdi + 0x30], rax
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
mov rax, qword [rsi + 0x20]
mov qword [rdi + 0x20], rax
mov rax, qword [rsi + 0x28]
mov qword [rdi + 0x28], rax
jmp 0x180104bb2
mov qword [rdi], 2
mov rcx, rsi
call fcn.180104da0
nop
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x180110490
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
movaps xmmword [rsp + 0x90], xmm6
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x24]
mov rcx, rax
call sub.shell32.dll_CommandLineToArgvW
test rax, rax
je 0x1801105e2
mov rdi, rax
mov qword [rsp + 0x40], rsi
movsxd rbp, dword [rsp + 0x24]
mov qword [rsp + 0x28], 8
xorps xmm6, xmm6
movups xmmword [rsp + 0x30], xmm6
test rbp, rbp
je 0x1801105c1
shl rbp, 3
mov esi, 8
xor r15d, r15d
lea rbx, [rsp + 0x48]
lea r14, [rsp + 0x78]
xor r12d, r12d
jmp 0x18011053c
lea rax, [r12 + r12*2]
mov rcx, qword [rsp + 0x70]
mov qword [rsi + rax*8 + 0x10], rcx
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rsi + rax*8], xmm0
inc r12
mov qword [rsp + 0x38], r12
add r15, 8
cmp rbp, r15
je 0x1801105c1
mov r13, qword [rdi + r15]
mov rcx, r13
call fcn.180175104
lea rax, [rax*2]
add rax, r13
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x80], rax
mov word [rsp + 0x88], 0
mov qword [rsp + 0x48], 1
lea rax, [rsp + 0x50]
movups xmmword [rax], xmm6
mov rcx, rbx
mov rdx, r14
call fcn.18010bd90
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rsp + 0x60], xmm0
cmp r12, qword [rsp + 0x30]
jne 0x180110510
lea rcx, [rsp + 0x28]
mov rdx, r12
call fcn.18007c150
mov rsi, qword [rsp + 0x28]
mov r12, qword [rsp + 0x38]
jmp 0x180110510
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
movups xmm0, xmmword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
movups xmmword [rcx], xmm0
mov rax, qword [rsp + 0x38]
mov qword [rcx + 0x10], rax
jmp 0x1801105f0
mov qword [rsi], 8
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x18011c700
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
mov eax, dword [0x18021a9d8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0xc8], 0
je 0x18011c736
lea rax, [rax + 0xd0]
jmp 0x18011c744
call fcn.180111aa0
test rax, rax
je 0x18011c86e
mov rcx, qword [rax + 0x38]
movabs rdx, 0x7ffffffffffffffe
cmp rcx, rdx
ja 0x18011c86e
lea rdx, [rcx + 1]
mov qword [rax + 0x38], rdx
mov rdx, qword [rax + 0x40]
cmp rdx, 2
je 0x18011c86a
mov rcx, qword [rax + 0x48]
mov r8d, 1
lock xadd qword [rcx], r8
test rdx, rdx
test r8, r8
js 0x18011c86e
dec qword [rax + 0x38]
lea rax, [rcx + 0x148]
lea r8, [rcx + 0xd0]
test rdx, rdx
cmove rax, r8
cmp dword [rax + 0x138], 0x3b9aca00
je 0x18011c86e
mov eax, 1
mov r8d, 1
lock xadd qword [rcx], r8
test rdx, rdx
je 0x18011c7d4
test r8, r8
jns 0x18011c7df
jmp 0x18011c86e
test r8, r8
js 0x18011c86e
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x30], xmm0
mov r8d, dword [rsp + 0x4c]
mov dword [rsi + 0x3c], r8d
movups xmm0, xmmword [rsp + 0x3c]
movups xmmword [rsi + 0x2c], xmm0
movups xmm0, xmmword [rsp + 0x2c]
movups xmmword [rsi + 0x1c], xmm0
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rbx
mov dword [rsi + 0x18], edi
mov qword [rsi + 0x40], 0xffffffffffffffff
mov qword [rsi + 0x48], 0
mov qword [rsi + 0x58], 0
mov byte [rsi + 0x60], 0
mov byte [rsi + 0x68], 0
lock dec qword [rcx]
sete al
test rdx, rdx
je 0x18011c851
test al, al
je 0x18011c861
add rsp, 0x50
pop rbx
pop rdi
pop rsi
jmp fcn.180111d90
test al, al
je 0x18011c861
add rsp, 0x50
pop rbx
pop rdi
pop rsi
jmp fcn.180111cf0
nop
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
mov qword [rax + 0x38], rcx
ud2
Function at 0x18011ce00
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x18011d004
mov r14, qword [rsp + 0x20]
mov r8, qword [0x18021a978]
test r8, r8
jne 0x18011ce70
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x18011d004
mov r8, qword [rsp + 0x20]
mov qword [0x18021a978], r8
test r8, r8
je 0x18011d009
mov rax, r14
or rax, r8
shr rax, 0x20
je 0x18011ce89
mov rax, r14
xor edx, edx
div r8
mov rcx, rax
jmp 0x18011ce93
mov eax, r14d
xor edx, edx
div r8d
mov ecx, eax
imul rax, rdx, 0x3b9aca00
mov rdx, rax
or rdx, r8
shr rdx, 0x20
je 0x18011cead
xor edx, edx
div r8
jmp 0x18011ceb2
xor edx, edx
div r8d
imul r8, rcx, 0x3b9aca00
add r8, rax
mov rcx, r8
shr rcx, 9
movabs r14, 0x44b82fa09b5a53
mov rax, rcx
mul r14
mov r9, rdx
shr r9, 0xb
add r9, rbx
jb 0x18011cf0b
mov rax, rcx
mul r14
shr rdx, 0xb
imul eax, edx, 0x3b9aca00
sub r8d, eax
add r8d, edi
cmp r8d, 0x3b9aca00
jb 0x18011cfcb
inc r9
jne 0x18011cffb
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x18011d004
mov rdi, qword [rsp + 0x20]
mov rcx, qword [0x18021a978]
test rcx, rcx
jne 0x18011cf69
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x18011d004
mov rcx, qword [rsp + 0x20]
mov qword [0x18021a978], rcx
test rcx, rcx
je 0x18011d009
mov rax, rdi
or rax, rcx
shr rax, 0x20
je 0x18011cf7f
mov rax, rdi
xor edx, edx
div rcx
jmp 0x18011cf85
mov eax, edi
xor edx, edx
div ecx
imul r8, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
mov rdx, rax
or rdx, rcx
shr rdx, 0x20
je 0x18011cfa6
xor edx, edx
div rcx
jmp 0x18011cfaa
xor edx, edx
div ecx
add r8, rax
mov rax, r8
shr rax, 9
mul r14
shr rdx, 0xb
lea r9, [rdx + 0x38640900]
imul eax, edx, 0x3b9aca00
sub r8d, eax
mov eax, r8d
shr eax, 9
imul rax, rax, 0x44b83
shr rax, 0x27
imul eax, eax, 0x3b9aca00
sub r8d, eax
mov rcx, rsi
mov rdx, r9
call fcn.18011c700
nop
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
add r8d, 0xc4653600
jmp 0x18011cfcb
call sub.KERNEL32.dll_GetLastError
ud2
Function at 0x18011d010
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x18011d106
mov rdi, qword [rsp + 0x20]
mov rcx, qword [0x18021a978]
test rcx, rcx
jne 0x18011d077
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x18011d106
mov rcx, qword [rsp + 0x20]
mov qword [0x18021a978], rcx
test rcx, rcx
je 0x18011d10b
mov rax, rdi
or rax, rcx
shr rax, 0x20
je 0x18011d08d
mov rax, rdi
xor edx, edx
div rcx
jmp 0x18011d093
mov eax, edi
xor edx, edx
div ecx
imul r8, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
mov rdx, rax
or rdx, rcx
shr rdx, 0x20
je 0x18011d0b4
xor edx, edx
div rcx
jmp 0x18011d0b8
xor edx, edx
div ecx
add r8, rax
mov rax, r8
shr rax, 9
movabs rcx, 0x44b82fa09b5a53
mul rcx
shr rdx, 0xb
imul rax, rdx, 0x3b9aca00
add rdx, 0x38640900
sub r8, rax
imul rax, r8, 0x44b82fa1
shr rax, 0x3c
imul eax, eax, 0x3b9aca00
sub r8d, eax
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.18011c700
call sub.KERNEL32.dll_GetLastError
ud2

Function at 0x1801289c0
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
cmp eax, 0xc0000000
jb 0x180128a04
lea rcx, [rsp + 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x180128a4d
movzx eax, word [rsp + 0x24]
mov word [rsi + 4], ax
mov eax, dword [rsp + 0x20]
mov dword [rsi], eax
movzx eax, byte [rsp + 0x26]
movzx ecx, byte [rsp + 0x27]
movzx edx, byte [rsp + 0x28]
mov r8d, dword [rsp + 0x2c]
mov dword [rsi + 0xc], r8d
mov r8d, dword [rsp + 0x29]
mov dword [rsi + 9], r8d
and dl, 0x3f
or dl, 0x80
and al, 0xf
or al, 0x40
mov byte [rsi + 6], al
mov byte [rsi + 7], cl
mov byte [rsi + 8], dl
add rsp, 0x30
pop rsi
ret
ud2
Function at 0x1801295f0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rcx
mov qword [rsp + 0x48], 0
lea r14, [rsp + 0x48]
mov qword [rsp + 0x20], r14
lea rcx, [0x180203308]
lea r9, [0x1802032ec]
xor ebx, ebx
xor edx, edx
mov r8d, 1
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1801296f5
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x18012970c
lea rcx, [0x1802032fc]
mov edx, 0xa
call fcn.180128f90
mov rbx, rax
mov qword [rsp + 0x48], 0
mov rax, qword [rdi]
mov qword [rsp + 0x40], r14
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
xor r15d, r15d
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
xor r9d, r9d
call qword [rax + 0x18]
test eax, eax
js 0x180129714
mov r14, qword [rsp + 0x48]
test r14, r14
je 0x18012972c
test rbx, rbx
je 0x1801296b4
mov rcx, rbx
call sub.oleaut32.dll_SysFreeString
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
mov rcx, r14
mov edx, 0xa
xor r8d, r8d
xor r9d, r9d
call sub.ole32.dll_CoSetProxyBlanket
test eax, eax
js 0x180129756
mov qword [rsi + 8], r14
mov byte [rsi], 0x11
jmp 0x180129740
mov ecx, eax
call fcn.180128cc0
mov ebx, edx
test rax, rax
je 0x18012970c
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov byte [rsi], 0
mov dword [rsi + 4], ebx
jmp 0x180129749
mov ecx, eax
call fcn.180128cc0
mov r15d, edx
test rax, rax
je 0x18012972c
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
test rbx, rbx
je 0x180129739
mov rcx, rbx
call sub.oleaut32.dll_SysFreeString
mov byte [rsi], 0
mov dword [rsi + 4], r15d
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
nop
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, eax
call fcn.180128cc0
mov ebx, edx
test rax, rax
je 0x18012976d
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov byte [rsi], 0
mov dword [rsi + 4], ebx
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x10]
jmp 0x180129740
Function at 0x1801465a0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [rcx]
cmp rbx, 0x20
jb 0x18014667d
mov rdx, qword [rcx + 8]
mov r9, qword [rcx + 0x18]
mov rax, rdx
mov r8, qword [rcx + 0x10]
mov r11, r9
mov r10, qword [rcx + 0x20]
rol r11, 0xc
rol rax, 1
add r11, rax
mov qword [rsp + 0x30], rsi
movabs rsi, 0x9e3779b185ebca87
mov qword [rsp + 0x38], rdi
movabs rdi, 0xc2b2ae3d27d4eb4f
mov rax, r8
rol rax, 7
add r11, rax
mov rax, r10
imul rdx, rdi
imul r8, rdi
imul r10, rdi
imul r9, rdi
mov rdi, qword [rsp + 0x38]
rol rax, 0x12
add r11, rax
rol rdx, 0x1f
imul rdx, rsi
movabs rax, 0x7a1435883d4d519d
rol r8, 0x1f
xor r11, rdx
rol r10, 0x1f
imul r11, rsi
imul r8, rsi
imul r10, rsi
sub r11, rax
rol r9, 0x1f
xor r11, r8
imul r11, rsi
imul r9, rsi
sub r11, rax
xor r11, r9
imul r11, rsi
sub r11, rax
xor r11, r10
movabs r10, 0x85ebca77c2b2ae63
imul r11, rsi
mov rsi, qword [rsp + 0x30]
add r10, r11
jmp 0x18014668e
mov r10, qword [rcx + 0x18]
movabs rdx, 0x27d4eb2f165667c5
add r10, rdx
add r10, rbx
lea rdx, [rcx + 0x28]
mov rcx, r10
xor r9d, r9d
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.1801464a0
Function at 0x180178c40
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180178c70
xor eax, eax
jmp 0x180178d33
mov rbp, rbx
cmp word [rax], si
je 0x180178c95
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180178c7c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180178c78
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.180178b60
movsxd r14, eax
test eax, eax
jne 0x180178cd3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180178c69
mov rcx, r14
call fcn.18017645c
mov rdi, rax
test rax, rax
jne 0x180178cec
xor ecx, ecx
call fcn.1801763a8
jmp 0x180178cc8
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.180178b60
test eax, eax
jne 0x180178d1d
mov rcx, rdi
call fcn.1801763a8
jmp 0x180178d27
xor ecx, ecx
call fcn.1801763a8
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 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400cd350]
mov dword [rax], 1
mov rax, qword [0x1400cd360]
mov dword [rax], 1
mov rax, qword [0x1400cd370]
mov dword [rax], 1
mov rax, qword [0x1400cd340]
mov dword [rax], 1
mov rax, qword [0x1400cd1e0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
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 0x14000150a
mov eax, 0
jmp 0x14000158b
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 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140007e6e
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
call sym.nimErrorFlag_6
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], 0
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
cmp rax, qword [rbp + 0x20]
je 0x140007edc
mov rcx, qword [rbp + 0x10]
call sym.checkErr__stdZsyncio_u162
mov rax, qword [rbp - 8]
movzx eax, byte [rax]
movzx eax, al
test eax, eax
jmp 0x140007edd
nop
mov rax, qword [rbp - 0x18]
add rsp, 0x40
pop rbp
ret

Function at 0x140009343
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.strlen
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], 0
mov rdx, qword [rbp - 8]
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x14], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 0x14], eax
nop
add rsp, 0x40
pop rbp
ret