joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140108780
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140153440]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rdx
movzx esi, cl
mov rcx, rdi
lea rdx, [0x1401181e2]
xor r8d, r8d
xor bl, bl
call fcn.140067380
lea rax, [rsp + 0x38]
mov qword [rsp + 0x38], 0
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftMicrosoft_GamesKittyHawk
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140108863
mov rcx, qword [rsp + 0x38]
lea rax, str.SimConnect_Port_IPv6
test sil, sil
mov dword [rsp + 0x30], shutdown
lea rdx, str.SimConnect_Port_IPv4
cmovne rdx, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140108858
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], bl
jne 0x140108840
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140067380
mov bl, 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14010afe0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1401089b0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
call fcn.14010a1a0
cmp byte [rbx + 0x1c4], 0
je 0x1401089f5
cmp dword [rbx + 0x24], 0
jne 0x1401089f5
mov rcx, qword [rbx + 0x10]
lea r9, [rsp + 0x40]
mov edx, 6
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rbx + 0x18], 2
add rsp, 0x30
pop rbx
ret

Function at 0x140108b80
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x140153440]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
movzx eax, byte [0x1401562bc]
test al, al
jne 0x140108bdf
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x198
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
mov cx, 2
call qword [sym.imp.WS2_32.dll_WSAStartup]
movzx ecx, byte [0x1401562bc]
mov edx, 1
test eax, eax
cmove ecx, edx
mov byte [0x1401562bc], cl
movzx eax, cl
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14010afe0
add rsp, 0x1d8
ret
Function at 0x140108c20
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140153440]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov r12, qword [rbp + 0x210]
mov r14, r8
mov r13, qword [rbp + 0x218]
mov rsi, rdx
mov edi, ecx
mov dword [rdx], 1
mov rcx, r14
lea rdx, [0x1401181e2]
xor r8d, r8d
mov r15, r9
call fcn.140067380
xor r8d, r8d
lea rdx, [0x1401181e2]
mov rcx, r15
call fcn.140067380
mov dword [r12], 0xa080
mov byte [r13], 0
cmp edi, 0xffffffff
je 0x140108e84
xor r9d, r9d
mov qword [rsp + 0x2a8], rbx
lea rax, [rbp + 0x80]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x2e]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov rbx, 0xffffffffffffffff
test eax, eax
js 0x140108d4d
lea r8, str.SimConnect.cfg
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathCombineA]
test rax, rax
je 0x140108d4d
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov r8, rbx
mov byte [rsp + 0x40], 0
inc r8
cmp byte [rax + r8], 0
jne 0x140108d13
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140067380
mov qword [rsp + 0x30], r13
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], r12
mov r9, r14
mov r8, rsi
mov qword [rsp + 0x20], r15
mov edx, edi
call fcn.140108eb0
xor r9d, r9d
lea rax, [rbp + 0x80]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 5]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x140108dea
lea r8, str.SimConnect.cfg
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathCombineA]
test rax, rax
je 0x140108dea
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov r8, rbx
mov byte [rsp + 0x40], 0
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140108db0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140067380
mov qword [rsp + 0x30], r13
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], r12
mov r9, r14
mov r8, rsi
mov qword [rsp + 0x20], r15
mov edx, edi
call fcn.140108eb0
lea rdx, [rbp + 0x80]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x140108e7c
lea r8, str.SimConnect.cfg
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathCombineA]
test rax, rax
je 0x140108e7c
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x40], 0
nop word [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140108e40
mov r8, rbx
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140067380
mov qword [rsp + 0x30], r13
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], r12
mov r9, r14
mov r8, rsi
mov qword [rsp + 0x20], r15
mov edx, edi
call fcn.140108eb0
mov rbx, qword [rsp + 0x2a8]
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14010afe0
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401093a0
Capabilities:
Read .ini file

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x140153440]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x20], rcx
mov rbx, rcx
lea rcx, [rsp + 0x28]
test edx, edx
jne 0x140109410
lea r8, str.SimConnect
mov edx, 0x1a
lea rax, [rsp + 0x28]
sub r8, rax
nop word [rax + rax]
lea rax, [rdx + 0x7fffffe4]
test rax, rax
je 0x140109400
movzx eax, byte [r8 + rcx]
test al, al
je 0x140109400
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x1401093e0
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
jmp 0x140109424
mov r9d, edx
lea r8, str.SimConnect._u
mov edx, 0x1a
call fcn.140108ac0
cmp qword [rbx + 0x18], 0x10
mov r9, rbx
jb 0x140109431
mov r9, qword [rbx]
mov r8d, 0x1e
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov rcx, rbx
test eax, eax
jne 0x14010946b
call fcn.1400670a0
mov eax, 3
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14010afe0
add rsp, 0x70
pop rbx
ret
call fcn.1400670a0
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14010afe0
add rsp, 0x70
pop rbx
ret

Function at 0x140109c70
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x210
mov rax, qword [0x140153440]
xor rax, rsp
mov qword [rsp + 0x200], rax
movzx esi, cl
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x198
xor dil, dil
call sub.VCRUNTIME140.dll_memset
mov ebx, 2
lea rdx, [rsp + 0x60]
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140109d6b
test sil, sil
mov qword [rsp + 0x20], 0
mov eax, reloc.WS2_32.dll_socket
mov dword [rsp + 0x30], 1
cmovne ebx, eax
mov dword [rsp + 0x34], 6
lea rax, [0x14011639c]
mov dword [rsp + 0x2c], ebx
xorps xmm0, xmm0
mov dword [rsp + 0x28], 4
xorps xmm1, xmm1
lea rcx, str.127.0.0.1
cmovne rcx, rax
lea r9, [rsp + 0x20]
xor edx, edx
lea r8, [rsp + 0x28]
movdqu xmmword [rsp + 0x38], xmm0
movdqu xmmword [rsp + 0x48], xmm1
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x140109d65
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140109d65
mov rax, rcx
nop dword [rax]
cmp ebx, dword [rax + 4]
jne 0x140109d51
cmp dword [rax + 0xc], 6
jne 0x140109d51
cmp dword [rax + 8], 1
je 0x140109d5c
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x140109d40
jmp 0x140109d5f
mov dil, 1
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
call qword [sym.imp.WS2_32.dll_WSACleanup]
movzx eax, dil
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.14010afe0
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140109da0
Capabilities:
Read file on windows
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x40
xor r8d, r8d
lea r9, [rcx + 0x28]
cmp dword [rcx + 0x18], 2
mov rbx, rcx
mov dword [r9], r8d
jne 0x140109e76
mov eax, dword [rcx + 0x1a8]
lea rdx, [rcx + 0x1c8]
add eax, dword [rcx + 0x58]
xorps xmm0, xmm0
sub eax, dword [rcx + 0x68]
movups xmmword [rdx], xmm0
xor ecx, ecx
mov dword [rsp + 0x50], r8d
mov qword [rdx + 0x10], rcx
mov dword [rbx + 0x200], eax
mov rax, qword [rbx + 0x68]
mov qword [rbx + 0x208], rax
lock inc dword [rbx + 0x260]
mov ecx, dword [rbx + 0x24]
test ecx, ecx
je 0x140109e31
cmp ecx, 1
jne 0x140109e76
mov r8d, dword [rbx + 0x200]
xor r9d, r9d
mov rcx, qword [rbx + 0x10]
mov qword [rsp + 0x20], rdx
mov rdx, qword [rbx + 0x208]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140109e76
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140109e67
mov rcx, qword [rbx + 0x10]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], r8
mov r8d, 1
mov qword [rsp + 0x28], rdx
lea rdx, [rbx + 0x200]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x140109e76
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x140109e76
mov rcx, rbx
call fcn.14010a0f0
add rsp, 0x40
pop rbx
ret
Function at 0x14010a2b0
Capabilities:
Send data
Send data on socket
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
movzx ebx, dl
mov rdi, rcx
test dl, dl
jne 0x14010a2da
movzx eax, byte [rcx + 0x50]
test al, al
jne 0x14010a428
mov rcx, qword [rcx + 0x240]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor ebp, ebp
mov qword [rdi + 0x240], rbp
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rsi, qword [rdi + 0x38]
test rsi, rsi
je 0x14010a404
mov rax, qword [rsi]
mov qword [rdi + 0x38], rax
mov qword [rsi], rbp
mov qword [rsp + 0x50], r14
cmp qword [rdi + 0x38], rbp
jne 0x14010a320
mov qword [rdi + 0x40], rbp
dec dword [rdi + 0x48]
mov eax, dword [rsi + 0x10]
mov rcx, qword [rdi + 0x30]
sub dword [rdi + 0x4c], eax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [rsi + 0x10]
xor ecx, ecx
mov dword [rdi + 0x248], eax
mov rbx, qword [rsi + 8]
mov qword [rdi + 0x250], rbx
mov qword [rsi + 8], rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, 0x20
mov rcx, rsi
call fcn.14010a808
lock inc dword [rdi + 0x260]
mov ecx, dword [rdi + 0x24]
mov qword [rdi + 0x240], rbx
test ecx, ecx
je 0x14010a3ad
cmp ecx, 1
jne 0x14010a3f7
mov r8d, dword [rdi + 0x248]
lea rax, [rdi + 0x210]
mov rdx, qword [rdi + 0x250]
xor r9d, r9d
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14010a3f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14010a3e8
mov rcx, qword [rdi + 0x10]
lea rax, [rdi + 0x210]
mov qword [rsp + 0x30], rbp
lea r9, [rdi + 0x54]
mov qword [rsp + 0x28], rax
lea rdx, [rdi + 0x248]
mov r8d, 1
mov dword [rsp + 0x20], ebp
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x14010a3f7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x14010a3f7
mov rcx, rdi
call fcn.14010a0f0
mov r14, qword [rsp + 0x50]
mov al, 1
mov byte [rdi + 0x50], 1
jmp 0x14010a42a
mov rcx, qword [rdi + 0x30]
mov qword [rdi + 0x48], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x14010a428
mov qword [rdi + 0x240], rbp
mov qword [rdi + 0x250], rbp
mov byte [rdi + 0x50], bpl
xor al, al
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14010a678
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14010a6b2
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14010a6b7
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14010a700
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140117dc0]
cmp byte [rcx + rax], 0
je 0x14010a700
dec r8
sub rdx, 1
jne 0x14010a6e6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14010b378
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14010b3c2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14010b3c2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14010b3c2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14010b3c2
cmp dword [rcx + 0x84], 0xe
jbe 0x14010b3c2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14010b3c4
xor al, al
add rsp, 0x28
ret
Function at 0x140001010
Capabilities:
Generate random numbers via winapi
Get common file path
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
push rbx
push rbp
sub rsp, 0x368
xor ebp, ebp
xor ecx, ecx
mov dword [rax + 8], ebp
mov rbx, qword [rsp + 0x380]
mov rdx, rbx
mov dword [rax + 0x10], ebp
lea r9d, [rbp + 2]
lea r8d, [rbp + 8]
call sub.bcrypt.dll_BCryptGenRandom
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x140001216
mov eax, ebp
nop dword [rax + rax]
movzx ecx, byte [rsp + rax + 0x40]
mov byte [rsp + rax + 0x150], cl
lea rax, [rax + 1]
test cl, cl
jne 0x140001060
lea rdx, [rsp + 0x150]
dec rdx
nop
cmp byte [rdx + 1], bpl
lea rdx, [rdx + 1]
jne 0x140001080
movsd xmm0, qword [str.results.tmp]
mov ecx, 0x104
mov eax, dword [0x1400050d8]
movsd qword [rdx], xmm0
mov dword [rdx + 8], eax
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x140001216
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x150]
mov dword [rsp + 0x28], 0x100
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
mov qword [rsp + 0x390], rsi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14000120e
mov qword [rsp + 0x360], rdi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r9d, 2
mov r8d, ebx
mov rdx, rax
xor ecx, ecx
mov rdi, rax
call sub.bcrypt.dll_BCryptGenRandom
lea r9, [rsp + 0x380]
mov qword [rsp + 0x20], rbp
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140001206
mov eax, dword [rsp + 0x380]
cmp rax, rbx
jne 0x140001206
mov r8, rbx
xor edx, edx
mov rcx, rdi
call fcn.140002c60
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x150]
mov dword [rsp + 0x28], 0x4000100
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140001206
lea r9, [rsp + 0x388]
mov qword [rsp + 0x20], rbp
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140001206
mov ecx, dword [rsp + 0x388]
cmp rcx, rbx
jne 0x140001206
mov r8, rbx
xor edx, edx
mov rcx, rdi
call fcn.140002c60
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x360]
mov rsi, qword [rsp + 0x390]
add rsp, 0x368
pop rbp
pop rbx
ret
Function at 0x140001260
Capabilities:
Encode data using xor
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xf0
mov edi, edx
mov r8, rcx
test rcx, rcx
je 0x1400013b1
test edx, edx
je 0x1400013b1
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400013b1
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x1400013b1
movups xmm0, xmmword [rax + 0x18]
lea rcx, [rsp]
xor r9d, r9d
movups xmm1, xmmword [rax + 0x28]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x38]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x48]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x58]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x68]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x78]
movups xmmword [rcx + 0x50], xmm1
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax + 0x88]
sub rax, 0xffffffffffffff68
movups xmmword [rcx - 0x10], xmm0
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rcx], xmm1
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm0
movups xmm0, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm1
movups xmm1, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm0
movups xmm0, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm1
movups xmm1, xmmword [rax + 0x60]
movups xmmword [rcx + 0x50], xmm0
movups xmmword [rcx + 0x60], xmm1
mov eax, dword [rsp + 0x70]
add rax, r8
mov r10d, dword [rax + 0x20]
mov ebp, dword [rax + 0x1c]
add r10, r8
mov r11d, dword [rax + 0x24]
add rbp, r8
mov esi, dword [rax + 0x14]
add r11, r8
test esi, esi
je 0x1400013b1
nop dword [rax]
movzx eax, word [r11]
mov edx, dword [r10]
add rdx, r8
mov ebx, dword [rbp + rax*4]
mov eax, 0x47362036
add rbx, r8
movzx ecx, byte [rdx]
test cl, cl
je 0x14000139d
nop dword [rax]
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov ecx, eax
shr ecx, 0xf
xor eax, ecx
movzx ecx, byte [rdx]
test cl, cl
jne 0x140001380
cmp edi, eax
je 0x1400013cc
inc r9d
add r11, 2
add r10, 4
cmp r9d, esi
jb 0x140001360
xor eax, eax
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov rax, rbx
jmp 0x1400013b3
Function at 0x1400013e0
Capabilities:
Access peb ldr_data
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x110
mov edi, ecx
test ecx, ecx
je 0x1400014cd
mov rax, qword gs:[0x60]
mov rdx, qword [rax + 0x18]
mov r10, qword [rdx + 0x20]
test r10, r10
je 0x1400014cd
mov esi, 0x104
nop dword [rax + rax]
movzx eax, word [r10 + 0x48]
test ax, ax
je 0x1400014cd
cmp ax, si
jae 0x1400014cd
mov r11, qword [r10 + 0x50]
xor r9d, r9d
cmp word [r11], r9w
je 0x14000147c
xor ebx, ebx
xor eax, eax
nop dword [rax + rax]
movzx r8d, byte [rax + r11]
lea eax, [r8 - 0x20]
movzx ecx, al
lea edx, [r8 - 0x61]
cmp dl, 0x19
cmova ecx, r8d
inc r9d
mov byte [rsp + rbx], cl
mov ebx, r9d
lea rax, [r9 + r9]
cmp word [rax + r11], 0
jne 0x140001450
mov byte [rsp + r9], 0
lea rdx, [rsp]
movzx ecx, byte [rsp]
mov eax, 0x47362036
test cl, cl
je 0x1400014bd
nop dword [rax]
nop word [rax + rax]
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov ecx, eax
shr ecx, 0xf
xor eax, ecx
movzx ecx, byte [rdx]
test cl, cl
jne 0x1400014a0
cmp eax, edi
je 0x1400014e4
mov r10, qword [r10]
test r10, r10
jne 0x140001420
xor eax, eax
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov rax, qword [r10 + 0x20]
jmp 0x1400014cf
Function at 0x140002640
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov r8, qword [rcx]
mov r14, rcx
movabs rcx, 0xffffffff00000000
movzx eax, word [r8 + 0x14]
mov r12, qword [r8 + 0x30]
mov r9d, dword [r14 + 0x68]
and r12, rcx
dec r9
mov r11d, dword [rax + r8 + 0x20]
not r9
mov ecx, dword [rax + r8 + 0x28]
or r11, r12
and r9, r11
mov qword [rsp + 0x20], r11
mov qword [rsp + 0x28], r9
test ecx, ecx
jne 0x1400026a8
mov edx, dword [rax + r8 + 0x3c]
test dl, 0x40
je 0x1400026a0
mov ecx, dword [r8 + 0x20]
jmp 0x1400026a8
test dl, dl
jns 0x1400026a8
mov ecx, dword [r8 + 0x24]
mov edx, dword [rax + r8 + 0x3c]
mov r13d, 1
mov r15d, r13d
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rbp
mov r10d, ecx
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x30], r10
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], 0
cmp r13w, word [r8 + 6]
jae 0x1400027a9
lea rdi, [r8 + 0x64]
add rdi, rax
nop word [rax + rax]
mov esi, dword [rdi - 0x1c]
mov ebx, dword [r14 + 0x68]
or rsi, r12
mov eax, dword [rdi - 0x14]
neg rbx
and rbx, rsi
test eax, eax
jne 0x14000272c
mov ecx, dword [rdi]
test cl, 0x40
je 0x140002724
mov eax, dword [r8 + 0x20]
jmp 0x14000272c
test cl, cl
jns 0x14000272c
mov eax, dword [r8 + 0x24]
mov ebp, eax
cmp r9, rbx
je 0x140002770
lea rax, [r10 + r11]
cmp rax, rbx
ja 0x140002770
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.140002580
test eax, eax
je 0x14000284c
mov edx, dword [rdi]
mov r11, rsi
mov r8, qword [r14]
mov r9, rbx
mov qword [rsp + 0x20], rsi
mov r10d, ebp
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rbp
jmp 0x140002790
mov ecx, dword [rdi]
mov eax, ecx
and eax, edx
or edx, ecx
bt eax, 0x19
jb 0x140002782
btr edx, 0x19
mov r10, rbp
sub r10, r11
add r10, rsi
mov qword [rsp + 0x30], r10
movzx eax, word [r8 + 6]
inc r15d
add rdi, 0x28
mov dword [rsp + 0x38], edx
cmp r15d, eax
jl 0x140002700
test r10, r10
je 0x1400027cd
bt edx, 0x19
jae 0x1400027f7
cmp r11, r9
jne 0x1400027cd
mov r9, qword [r14 + 0x58]
mov r8d, 0x4000
mov rdx, r10
mov rcx, r11
call qword [r14 + 0x30]
mov eax, r13d
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
ret
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x70]
mov rax, rcx
shr rcx, 0x1e
shr rax, 0x1d
and ecx, r13d
and eax, r13d
lea rcx, [rcx + rax*2]
mov eax, edx
shr rax, 0x1f
lea rcx, [rax + rcx*2]
lea rax, section..data
mov eax, dword [rax + rcx*4]
mov r8d, eax
bts r8d, 9
mov rcx, r11
and edx, 0x4000000
mov rdx, r10
cmove r8d, eax
call qword [0x140037080]
test eax, eax
jne 0x1400027cd
xor eax, eax
jmp 0x1400027d0
Function at 0x1400035e0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
jne 0x140003623
lea ecx, [rax + 1]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
test rsi, rsi
je 0x140003703
test rbx, rbx
je 0x140003691
cmp rbp, rsi
jae 0x140003663
test rbx, rbx
je 0x140003691
mov r8, rsi
mov rcx, rbp
sub r8, rbp
mov rdx, rbx
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x140003650
jmp 0x140003691
jbe 0x140003691
lea rcx, [rbx - 1]
mov r8, rsi
add rcx, rbp
mov rdx, rbx
sub r8, rbp
nop word [rax + rax]
movzx eax, byte [rcx + r8]
mov byte [rcx], al
lea rcx, [rcx - 1]
sub rdx, 1
jne 0x140003680
test rdi, rdi
je 0x140003760
test rbx, rbx
je 0x140003760
cmp rsi, rdi
jae 0x1400036d2
test rbx, rbx
je 0x14000370d
mov rdx, rdi
mov rcx, rbx
sub rdx, rsi
nop word [rax + rax]
movzx eax, byte [rdx + rsi]
mov byte [rsi], al
lea rsi, [rsi + 1]
sub rcx, 1
jne 0x1400036c0
jmp 0x14000370d
jbe 0x14000370d
lea rcx, [rbx - 1]
mov r8, rdi
add rcx, rsi
mov rdx, rbx
sub r8, rsi
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx + r8]
mov byte [rcx], al
lea rcx, [rcx - 1]
sub rdx, 1
jne 0x1400036f0
jmp 0x14000370d
test rdi, rdi
je 0x140003760
test rbx, rbx
je 0x140003760
cmp rdi, rbp
jae 0x140003732
test rbx, rbx
je 0x140003760
mov rcx, rbp
sub rcx, rdi
nop dword [rax]
movzx eax, byte [rcx + rdi]
mov byte [rdi], al
lea rdi, [rdi + 1]
sub rbx, 1
jne 0x140003720
jmp 0x140003760
jbe 0x140003760
test rbx, rbx
je 0x140003760
lea rcx, [rbx - 1]
mov rdx, rbp
add rcx, rdi
sub rdx, rdi
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
mov byte [rcx], al
lea rcx, [rcx - 1]
sub rbx, 1
jne 0x140003750
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_HeapFree]