joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c4f0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, [0x14000b150]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14000b138]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x140011068], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14000b160]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x140011060], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14000b178]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x140011058], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14000b198]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x140011050], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14000b1b8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x140011048], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14000b1dc]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x140011040], rax

Function at 0x14000c948
Capabilities:
Resolve function by parsing pe exports

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 r12
push r14
push r15
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
xor r12d, r12d
mov rbx, rcx
mov edi, r12d
cmp dword [rax + rcx + 0x8c], r12d
je 0x14000c9d3
mov esi, dword [rax + rcx + 0x88]
mov ebp, r12d
add rsi, rcx
mov r14d, dword [rsi + 0x1c]
mov r15d, dword [rsi + 0x20]
add r14, rcx
add r15, rcx
cmp dword [rsi + 0x14], r12d
jbe 0x14000c9d3
mov eax, ebp
lea rdx, [0x14000b6c8]
mov ecx, dword [r15 + rax*4]
add rcx, rbx
call qword [0x140011028]
test eax, eax
je 0x14000c9c0
inc ebp
cmp ebp, dword [rsi + 0x14]
jb 0x14000c99d
jmp 0x14000c9d3
mov ecx, dword [rsi + 0x24]
mov edx, ebp
add rcx, rbx
movzx eax, word [rcx + rdx*2]
mov edi, dword [r14 + rax*4]
add rdi, rbx
call fcn.14000dbcc
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
sub eax, dword [0x140011080]
mov rsi, qword [rsp + 0x50]
cmp eax, 0x7fff
cmova rdi, r12
mov rax, rdi
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14000d6c4
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rdi, rcx
lea rcx, [rbp - 0x80]
mov dword [rbp - 0x80], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rbp - 0x7c], 6
jb 0x14000d702
mov eax, 2
jmp 0x14000d7d9
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor ebx, ebx
xor ecx, ecx
lea rdx, [rsp + 0x20]
mov r8d, 0x30
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000d79f
mov ecx, dword [rsp + 0x78]
mov rax, qword [rsp + 0x20]
xor edx, edx
div rcx
test rdx, rdx
jne 0x14000d76f
cmp qword [rsp + 0x38], 0x1000
jne 0x14000d76f
cmp dword [rsp + 0x40], 0x1000
jne 0x14000d76f
cmp dword [rsp + 0x48], 0x20000
jne 0x14000d76f
cmp dword [rsp + 0x44], 4
jne 0x14000d76f
movabs rax, 0x74636a6e696d7678
cmp qword [rbx], rax
je 0x14000d786
add rbx, qword [rsp + 0x38]
cmp rbx, 0x7fff0000
jae 0x14000d6f8
mov rcx, rbx
jmp 0x14000d711
mov r8d, 0x20
mov rdx, rbx
mov rcx, rdi
call qword [0x140011040]
mov eax, 1
jmp 0x14000d7d9
lea rdx, [0x14000b3b0]
call fcn.14000c804
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0xa
mov edx, eax
call fcn.14000c760
lea rdx, [0x14000b3c4]
call fcn.14000c804
mov r8d, 0x10
mov edx, ebx
call fcn.14000c760
xor eax, eax
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14000d7f4
Capabilities:
Accept command line arguments
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [0x14000b2d8]
mov rcx, rax
call qword [0x140011010]
xor r13d, r13d
mov rdi, rax
test rax, rax
je 0x14000d859
lea r14d, [r13 + 0x20]
add rdi, 0x2a
mov edx, r14d
mov rcx, rdi
call qword [0x140011008]
test rax, rax
jne 0x14000d878
lea rdx, [0x14000b308]
call fcn.14000c804
xor al, al
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
sub rax, rdi
sar rax, 1
cmp rax, 2
jae 0x14000d89b
lea rdx, [0x14000b320]
call fcn.14000c804
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
jmp 0x14000d854
lea rsi, [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rsi + 2]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
jne 0x14000d8c5
lea rdx, [0x14000b338]
jmp 0x14000d854
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call qword [0x140011040]
xor edx, edx
mov r8, r15
lea ecx, [rdx + 4]
mov word [rsi + r15], r13w
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov r12, rax
test rax, rax
jne 0x14000d913
lea rdx, [0x14000b350]
call fcn.14000c804
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0xa
mov edx, eax
call fcn.14000c760
jmp 0x14000d859
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
jne 0x14000d93c
lea rdx, [0x14000b368]
jmp 0x14000d8f6
mov r8, r14
mov rdx, rax
mov rcx, rbp
call qword [0x140011040]
call fcn.14000dae0
mov rsi, rax
test rax, rax
je 0x14000d859
mov eax, dword [rdi + 0x20]
lea rdx, [rbp + 0x18]
mov rcx, rsi
mov dword [rsp + 0x68], eax
call fcn.14000da50
test al, al
je 0x14000d859
lea rdx, [rsp + 0x68]
mov rcx, rsi
call fcn.14000da50
test al, al
je 0x14000d859
movsxd rcx, dword [rbp + 0x18]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 2]
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r14, rax
test rax, rax
jne 0x14000d9b9
lea rdx, [0x14000b380]
jmp 0x14000d8f6
mov eax, dword [rdi + 0x24]
lea rbx, [rdi + 0x28]
lea rbp, [rbx + rax*4]
jmp 0x14000d9df
mov edx, dword [rbx]
mov rcx, rsi
add rdx, r14
call fcn.14000da50
test al, al
je 0x14000d859
add rbx, 4
cmp rbx, rbp
jne 0x14000d9c6
movsxd rbx, dword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x14000da02
lea rdx, [0x14000b398]
jmp 0x14000d8f6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x14000d85b
Function at 0x14000db88
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x448
xor eax, eax
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x434], eax
mov word [rsp + 0x20], ax
call fcn.14000c6e0
lea rdx, [rsp + 0x20]
lea rcx, [0x14000b280]
lea ecx, [0x14000b280]

Function at 0x14000dbcc
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rcx, 0x4cb16c5d
jmp 0x1400020f1
dec rcx
jmp 0x14000230a
jne 0x1400020f1
jmp 0x140002841
jmp 0x14000292c
jmp 0x14000297c
jmp 0x1400029af
jmp 0x140002a04
jmp 0x140002a56
jmp 0x140002ab8
jmp 0x140002ae4
jmp 0x140002b33
jmp 0x140002ba1
jmp 0x140002bd9
jmp 0x140002c38
jmp 0x140002c53
jmp 0x140002cbb
jmp 0x140002d11
jmp 0x140002d61
jmp 0x140002dce
jmp 0x140002e07
jmp 0x140002e49
jmp 0x140002e86
jmp 0x140002ed5
xor rcx, rcx
mov rdx, 0x727f
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call fcn.140002ef5
push rbx
sub rsp, 0x20
mov rax, qword gs:[0x30]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
add rsp, 0x20
pop rbx
xor rcx, rcx
jmp 0x140001c0c
Function at 0x140018fc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140019050
cmp r11, r10
ja 0x1400190c6
cmp r10, rdx
ja 0x1400190d8
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140019052
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140019030
jmp 0x1400190b4
ja 0x14001905a
mov r11, r10
cmp rax, r8
jne 0x140018ff4
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140019090
mov rdi, r8
sub ecx, edx
jns 0x1400190ab
jmp 0x1400190b6
cmp r8, rsi
je 0x1400190e7
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x1400190b6
xor al, 1
cmp rdi, rsi
jne 0x140019070
jmp 0x1400190b6
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, [0x141397c80]
mov rcx, r11
mov rdx, r10
call fcn.14004e4d0
lea r8, [0x141397c80]
mov rcx, r10
call fcn.14004e250
lea rcx, [0x14139c218]
lea r8, [0x141397c68]
mov edx, 0x2b
call fcn.14004e2d0
int3

Function at 0x14001e630
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140016920
cmp rax, rcx
je 0x14001e655
cmp rdx, 4
jae 0x14001e658
xor eax, eax
xor r8d, r8d
jmp 0x14001e6f0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140050730]
movdqa xmm3, xmmword [0x140050540]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14001e680
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14001e707
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14001e6f0
ret
Function at 0x1400237e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x14139e940]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140023853
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14002388a
test eax, eax
js 0x140023864
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14002387d
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x14139e9a0]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.1400229e0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140022030
mov ecx, 7
int 0x29
ud2
Function at 0x140028450
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x58]
call fcn.140024330
mov rax, qword [rbp - 0x58]
movabs rdi, 0x8000000000000000
cmp rax, rdi
jne 0x1400284a6
lea rcx, [rbp - 0x50]
call fcn.140021f30
mov qword [rsi], rdi
jmp 0x14002868f
mov qword [rbp + 0x3c8], rsi
mov qword [rbp + 0x408], rax
mov rax, qword [rbp - 0x50]
mov qword [rbp + 0x410], rax
mov qword [rbp + 0x3f0], 0
mov qword [rbp + 0x3f8], 2
mov qword [rbp + 0x400], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x418], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x140028530
jmp 0x14002851f
jae 0x1400285f7
cmp r8, 0x201
jae 0x140028530
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140028588
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14002855f
lea rcx, [rbp + 0x3f0]
mov rdx, r12
call fcn.14004f130
mov rdi, qword [rbp + 0x3f0]
mov rax, qword [rbp + 0x3f8]
mov qword [rbp + 0x418], rax
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x400], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x418]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x410]
mov rdx, r13
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r14d, eax
test eax, eax
jne 0x1400285b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400286c5
mov r8d, r14d
cmp r15, r8
jne 0x140028510
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140028700
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14002851f
jmp 0x140028530
cmp rsi, r8
jb 0x14002871a
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140026250
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
movaps xmmword [rbp + 0x3e0], xmm1
movaps xmmword [rbp + 0x3d0], xmm0
movabs rbx, 0x8000000000000000
test rdi, rdi
mov rsi, qword [rbp + 0x3c8]
je 0x140028657
mov rcx, qword [0x1413b0bb8]
xor edx, edx
mov r8, qword [rbp + 0x418]
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rbp + 0x3d0], rbx
jne 0x1400286a4
mov qword [rsi], rbx
lea rcx, [rbp + 0x3d8]
call fcn.140021f30
cmp qword [rbp + 0x408], 0
je 0x14002868f
mov rcx, qword [0x1413b0bb8]
xor edx, edx
mov r8, qword [rbp + 0x410]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3d0]
movaps xmm1, xmmword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
cmp qword [rbp + 0x408], 0
jne 0x140028679
jmp 0x14002868f
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3d8], rax
movabs rbx, 0x8000000000000000
mov qword [rbp + 0x3d0], rbx
test rdi, rdi
mov rsi, qword [rbp + 0x3c8]
jne 0x140028641
jmp 0x140028657
lea rcx, [0x14139cbd0]
lea r8, [0x14139f300]
mov edx, 0x28
call fcn.14004e2d0
jmp 0x14002872f
lea rax, [0x14139f2e8]
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14004e250
ud2
Function at 0x14002afb0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x14139e940]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmp ecx, eax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
adc dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14002b01c
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
adc eax, 0x25058
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14002b02b
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14002b063
cmp eax, 0x103
je 0x14002b06d
test eax, eax
js 0x14002b048
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14002b063
invalid
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x14139e9a0]
invalid
invalid
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
add byte [rax], al
invalid
Function at 0x140038840
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x1413b0ad0]
mov rcx, qword [0x1413b0bb8]
test rcx, rcx
jne 0x14003888c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x14003895a
mov rcx, rax
mov qword [0x1413b0bb8], rax
mov r8d, 0x10
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x14003895a
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140038a70]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14003894c
mov rcx, qword [rbx]
mov qword [rbp - 0x20], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x10], rcx
mov qword [rbp - 0x18], rax
call qword [rax]
mov rax, qword [rbp - 0x18]
cmp qword [rax + 8], 0
mov rsi, qword [rbp - 0x20]
je 0x140038925
cmp qword [rax + 0x10], 0x11
jae 0x14003890e
mov r8, qword [rbp - 0x10]
jmp 0x140038916
mov r8, qword [rbp - 0x10]
mov r8, qword [r8 - 8]
mov rcx, qword [0x1413b0bb8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1413b0bb8]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.14004e040
ud2

Function at 0x1400394e0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14003951f
mov rax, qword [rbp - 0x20]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x140029090]
mov qword [rbp - 0x28], rax
lea rax, [0x14139ee50]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, [0x14139ee88]
lea rcx, [rbp - 0x60]
call fcn.14004e110
ud2
Function at 0x14003b4e0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14003b633
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x14003b517
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x14003b5f8
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x14003b616
sub rax, rdx
add rdx, qword [rbx + 8]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x2c]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003b579
mov ecx, dword [rsp + 0x2c]
mov eax, 2
test rcx, rcx
je 0x14003b5ab
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
jmp 0x14003b5af
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x40], rcx
cmp eax, 0x3e5
je 0x14003b5b3
cmp eax, 0x6d
jne 0x14003b5de
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
jmp 0x14003b5b8
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x14003b5e4
lea rax, [rsp + 0x30]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call fcn.140021f30
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x14003b5ee
cmp rax, 1
je 0x14003b562
mov qword [rsi + 8], rcx
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov eax, 1
jmp 0x14003b56c
mov r8d, 0x10
mov rcx, rbx
call fcn.14004df90
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x14003b524
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.14004df90
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x14003b524
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14004f330
int3

Function at 0x1400443ac
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400441a8
Function at 0x14004746c
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 0x14004749c
xor eax, eax
jmp 0x14004755f
mov rbp, rbx
cmp word [rax], si
je 0x1400474c1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400474a8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400474a4
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.14004738c
movsxd r14, eax
test eax, eax
jne 0x1400474ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140047495
mov rcx, r14
call fcn.140048348
mov rdi, rax
test rax, rax
jne 0x140047518
xor ecx, ecx
call fcn.1400459ec
jmp 0x1400474f4
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.14004738c
test eax, eax
jne 0x140047549
mov rcx, rdi
call fcn.1400459ec
jmp 0x140047553
xor ecx, ecx
call fcn.1400459ec
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