joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b1400
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
test r8, r8
je 0x1400b1527
mov rcx, qword [rcx + 8]
movsxd r9, dword [rcx + 0x3c]
cmp dword [rcx + r9 + 0x84], 0
je 0x1400b1527
add r9, rcx
xor eax, eax
cmp word [r9 + 0x14], 0x78
jb 0x1400b1520
add r9, 0x88
je 0x1400b1520
mov eax, dword [r9]
test rax, rax
je 0x1400b1527
add rax, rcx
je 0x1400b1527
cmp rdx, 0xffff
jbe 0x1400b151a
mov r10d, dword [rax + 0x18]
mov r11d, dword [rax + 0x20]
lea r9, [rcx + r11]
test r11, r11
cmove r9, r11
test r10, r10
je 0x1400b1527
lea r10, [r9 + r10*4]
mov r11b, byte [rdx]
inc rdx
mov rsi, r9
jmp 0x1400b14b8
xor ebp, ebp
lea rdi, [rsi + rdi*2]
movzx ebx, byte [rbx]
cmp bpl, bl
je 0x1400b14ff
movzx ebp, bpl
sub ebp, ebx
cmovs r10, rdi
add rdi, 4
test ebp, ebp
cmovg rsi, rdi
cmp rsi, r10
je 0x1400b1527
mov rdi, r10
sub rdi, rsi
mov rbx, rdi
sar rbx, 2
shr rdi, 0x3f
add rdi, rbx
and rdi, 0xfffffffffffffffe
mov r14d, dword [rsi + rdi*2]
lea rbx, [rcx + r14]
test r14, r14
cmove rbx, r14
test r11b, r11b
je 0x1400b1491
mov r14, rdx
mov ebp, r11d
cmp bpl, byte [rbx]
jne 0x1400b1493
inc rbx
mov bpl, byte [r14]
inc r14
test bpl, bpl
jne 0x1400b14ea
jmp 0x1400b1491
mov edx, dword [rax + 0x24]
add rcx, rdx
test rdx, rdx
cmove rcx, rdx
sub rdi, r9
sar rdi, 1
movzx edx, word [rcx + rdi]
add dx, word [rax + 0x10]
mov word [r8], dx
mov al, 1
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
xor eax, eax
jmp 0x1400b1520
Function at 0x1400b3da0
Capabilities:
Hash data using sha256

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa0
mov rsi, r8
mov rax, qword [0x140174028]
xor rax, rsp
mov qword [rsp + 0x98], rax
xorps xmm0, xmm0
lea rdi, [rsp + 0x48]
movups xmmword [rdi + 0x34], xmm0
movups xmmword [rdi + 0x28], xmm0
movups xmmword [rdi + 0x18], xmm0
movups xmmword [rdi + 8], xmm0
movups xmmword [rdi - 8], xmm0
movaps xmm0, xmmword [0x140164820]
movups xmmword [rdi - 0x28], xmm0
movaps xmm0, xmmword [0x140164830]
movups xmmword [rdi - 0x18], xmm0
mov dword [rdi + 0x44], 0x20
test rdx, rdx
je 0x1400b3e5c
mov r14, rdx
mov rbx, rcx
lea eax, [rdx*8]
mov rcx, rdx
shr rcx, 0x1d
mov dword [rsp + 0x44], ecx
mov dword [rsp + 0x40], eax
mov r8, rdx
cmp rdx, 0x40
jb 0x1400b3e49
shr r8, 6
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.140049f40
mov r8, r14
and r8, 0x3f
je 0x1400b3e5c
and r14, 0xffffffffffffffc0
add rbx, r14
mov r14d, r8d
mov dword [rsp + 0x88], r14d
mov rcx, rdi
mov rdx, rbx
call fcn.1400be8b0
mov eax, dword [rsp + 0x88]
lea rcx, [rax + 1]
mov ebx, dword [rsp + 0x8c]
mov ebp, dword [rsp + 0x40]
mov r14d, dword [rsp + 0x44]
mov byte [rsp + rax + 0x48], 0x80
cmp rax, 0x38
jae 0x1400b3f3d
cmp rcx, 0x38
je 0x1400b3e9f
mov r8d, 0x38
sub r8, rcx
add rcx, rdi
xor edx, edx
call fcn.1400bef60
bswap r14d
lea rcx, [rsp + 0x20]
mov dword [rcx + 0x60], r14d
bswap ebp
mov dword [rcx + 0x64], ebp
mov r8d, 1
mov rdx, rdi
call fcn.140049f40
xorps xmm0, xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi], xmm0
mov dword [rdi + 0x40], 0
lea eax, [rbx - 0x21]
cmp eax, 0xffffffe3
jb 0x1400b3ef6
shr rbx, 2
xor eax, eax
mov ecx, dword [rsp + rax*4 + 0x20]
bswap ecx
mov dword [rsi + rax*4], ecx
inc rax
cmp rbx, rax
jne 0x1400b3ee5
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400bce30
mov rax, rsi
add rsp, 0xa0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
cmp eax, 0x3f
je 0x1400b3f55
mov r8d, 0x3f
sub r8, rax
add rcx, rdi
xor edx, edx
call fcn.1400bef60
lea rcx, [rsp + 0x20]
mov r8d, 1
mov rdx, rdi
call fcn.140049f40
xor ecx, ecx
jmp 0x1400b3e8c
Function at 0x1400b4df0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140174028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1401868d8]
mov ecx, dword [0x140183a44]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400b4e54
mov rax, qword [0x1401868d0]
mov rsi, qword [rax + 0x58]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400bce30
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1401868d8]
call fcn.1400bac58
cmp dword [0x1401868d8], 0xffffffff
jne 0x1400b4e2c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1400bef60
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.1400babfc
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140186920]
mov ecx, dword [0x140183a44]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400b4f14
lea r8, [0x1401868f0]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140013630
mov qword [0x1401868d0], rsi
lea rcx, [0x1401868d8]
call fcn.1400baf38
jmp 0x1400b4e2c
lea rcx, [0x140186920]
call fcn.1400bac58
cmp dword [0x140186920], 0xffffffff
jne 0x1400b4ee5
xorps xmm0, xmm0
movups xmmword [0x140186910], xmm0
movups xmmword [0x140186900], xmm0
movups xmmword [0x1401868f0], xmm0
lea rcx, [0x1401868f0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140186920]
call fcn.1400baf38
jmp 0x1400b4ee5

Function at 0x1400b4fd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
push rdi
mov rdx, qword [rcx]
mov r9, qword [rcx + 8]
mov r8, r9
sub r8, rdx
je 0x1400b5067
mov rax, r8
shr rax, 2
mov r10, rdx
not r10
add r10, r9
je 0x1400b503e
mov r10, r8
and r10, 0xfffffffffffffffe
xor r9d, r9d
lea r11, [0x1401650e0]
nop dword [rax + rax]
movzx esi, al
movzx edi, byte [rdx + r9]
xor edi, esi
shr eax, 8
xor eax, dword [r11 + rdi*4]
movzx esi, al
movzx edi, byte [rdx + r9 + 1]
xor edi, esi
shr eax, 8
xor eax, dword [r11 + rdi*4]
add r9, 2
cmp r10, r9
jne 0x1400b5010
jmp 0x1400b5041
xor r9d, r9d
test r8b, 1
je 0x1400b5061
movzx r8d, al
movzx edx, byte [rdx + r9]
xor edx, r8d
lea r8, [0x1401650e0]
shr eax, 8
xor eax, dword [r8 + rdx*4]
mov dword [rcx + 0x18], eax
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x1400b5061

Function at 0x1400bc1a8
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1400bc6a4
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1400bc6a4
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x1400bc6a4
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1400bc698
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1400bc6b6
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1400bc686
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1400bc6a6

Function at 0x1400ccf18
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400ccf4f
call fcn.1400bac38
mov dword [rax], 0x16
call fcn.1400e5a54
xor eax, eax
jmp 0x1400ccfdd
mov rdx, r9
mov rcx, r8
call fcn.1400cd000
mov rbx, rax
test rax, rax
je 0x1400ccfda
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400cd070]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400ccfc7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400cffc4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400ccfae
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400ccfbd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400ba110
jmp 0x1400ccfda
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400ccfd7
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400dfb10
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400dfb38
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400dfb38
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1400e9c18
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400e36b4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400e9cb9
cmp ebx, dword [rsp + 0x30]
je 0x1400e9cb2
test esi, esi
je 0x1400e9cb2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400e9c8d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400e9c9a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400e9c77
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400e9c9e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400e9cbb
mov eax, 1
jmp 0x1400e9cbb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400eaac0
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 0x1400eaaf0
xor eax, eax
jmp 0x1400eabb3
mov rbp, rbx
cmp word [rax], si
je 0x1400eab15
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400eaafc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400eaaf8
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.1400ea9e0
movsxd r14, eax
test eax, eax
jne 0x1400eab53
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400eaae9
mov rcx, r14
call fcn.140073eb0
mov rdi, rax
test rax, rax
jne 0x1400eab6c
xor ecx, ecx
call fcn.1400ba110
jmp 0x1400eab48
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.1400ea9e0
test eax, eax
jne 0x1400eab9d
mov rcx, rdi
call fcn.1400ba110
jmp 0x1400eaba7
xor ecx, ecx
call fcn.1400ba110
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 0x1400eabd0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400eac57
mov rsi, rbx
cmp word [rax], bp
je 0x1400eac16
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400eac00
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400eabfc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140073eb0
mov rdi, rax
test rax, rax
je 0x1400eac44
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400be8b0
mov rbp, rdi
xor ecx, ecx
call fcn.1400ba110
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400ed204
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400c78b0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400ed28e
cmp byte [rbp - 0x21], r15b
je 0x1400ed289
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400ed2c4
call fcn.1400e3e84
test eax, eax
jne 0x1400ed2b0
cmp byte [rbp - 0x21], r15b
je 0x1400ed2a8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400ed2c4
cmp byte [rbp - 0x21], r15b
je 0x1400ed2c1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400ccd9c
test eax, eax
jne 0x1400ed364
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400c78b0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400ed303
cmp byte [rbp - 0x21], r15b
je 0x1400ed338
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400ed338
call fcn.1400e3e84
test eax, eax
jne 0x1400ed324
cmp byte [rbp - 0x21], r15b
je 0x1400ed31d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400ed338
cmp byte [rbp - 0x21], r15b
je 0x1400ed335
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400ccd9c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400ed364
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400ed367
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400ed375
mov rcx, rdi
call fcn.1400ba110
cmp byte [rbp + 0x3f], r15b
je 0x1400ed384
mov rcx, qword [rbp + 0x27]
call fcn.1400ba110
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1400ed48c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140174028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400ed4d6
call fcn.1400cffa4
mov dword [rax], 0xf
call fcn.1400bac38
mov dword [rax], 0xd
call fcn.1400e5a54
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400bce30
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400ed4e1
lea eax, [rbx + 1]
jmp 0x1400ed4c3
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400ed4c1
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400ed4c3
Function at 0x1400ef310
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400ef326
mov al, 1
jmp 0x1400ef386
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400ef337
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400ef384
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400d00ec
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400ef384
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400ef384
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400ef384
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400ef386
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400f3e90
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x140174028]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x140186a78], 0
jne 0x1400f3f50
mov rdi, qword [0x140186a70]
test rdi, rdi
je 0x1400f3f6d
cmp byte [rdi + 0x17], 0
jns 0x1400f3ed6
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140186a78], rax
inc rax
cmp rax, 1
ja 0x1400f3f50
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400bef60
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x1400f4049
xor esi, esi
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.1400bce30
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov ecx, 0x18
call fcn.1400babfc
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1400bef60
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x14015bb90]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.140012010
movzx eax, byte [rdi + 0x17]
mov edx, eax
and edx, 0x7f
test al, al
cmovs rdx, qword [rdi + 8]
mov rcx, qword [rdi]
mov r8, rdi
cmovs r8, rcx
test rdx, rdx
je 0x1400f4028
lea r10, [rdx + rdx]
test r10, r10
je 0x1400f4028
lea r9, [r10 - 2]
cmp word [r8 + r10 - 2], 0x5c
mov r10, r9
jne 0x1400f3fe6
cmp r9, 0xfffffffffffffffe
je 0x1400f4028
mov r8, r9
sar r8, 1
cmp rdx, r8
jbe 0x1400f4143
lea rdx, [r8 + 1]
test al, al
jns 0x1400f411f
mov qword [rdi + 8], rdx
mov word [rcx + r8*2 + 2], 0
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.14001d550
mov qword [0x140186a70], rdi
jmp 0x1400f3ecd
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.1400bb2e0
mov rcx, qword [0x140186a70]
mov rdx, rdi
mov r8, rax
call fcn.140013e90
mov rcx, qword [0x140186a70]
movzx eax, byte [rcx + 0x17]
test al, al
jns 0x1400f4130
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400f4140
mov rdx, qword [rcx]
cmp word [rdx + rax*2 - 2], 0x5c
je 0x1400f40ac
lea rdx, [0x140160ca6]
mov r8d, 1
call fcn.14001d550
mov rcx, qword [0x140186a70]
lea rdx, str.debug.log
mov r8d, 9
call fcn.14001d550
mov rcx, qword [0x140186a70]
cmp byte [rcx + 0x17], 0
jns 0x1400f40ce
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140186a78], rax
inc rax
cmp rax, 1
ja 0x1400f3f50
mov qword [0x140186a78], 0
jmp 0x1400f3f4e
cmp r9, 0x14
jae 0x1400f413d
mov byte [rdi + 0x17], dl
mov rcx, rdi
jmp 0x1400f4020
test rax, rax
je 0x1400f4140
mov rdx, rcx
jmp 0x1400f408b
int3
int3
int3
Function at 0x14011ab30
Capabilities:
Encode data using base64

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rax, qword [rcx + 8]
cmp rax, qword [rcx + 0x10]
je 0x14011ab6a
test rax, rax
je 0x14011ac1c
mov rcx, qword [rdi]
mov qword [rax], rcx
add rax, 8
mov qword [rsi + 8], rax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
sub rax, qword [rsi]
mov r14, rax
sar r14, 3
lea rcx, [r14 + 1]
mov rdx, rcx
shr rdx, 0x3d
jne 0x14011ac48
movabs rdx, 0x1fffffffffffffff
mov rbx, rax
sar rbx, 2
cmp rbx, rcx
cmovbe rbx, rcx
movabs rcx, 0x7ffffffffffffff8
cmp rax, rcx
cmovae rbx, rdx
test rbx, rbx
jne 0x14011ac12
xor eax, eax
shl r14, 3
add r14, rax
je 0x14011ac1c
lea rax, [rax + rbx*8]
mov rcx, qword [rdi]
mov qword [r14], rcx
lea rdx, [r14 + 8]
mov rcx, qword [rsi]
mov r8, qword [rsi + 8]
cmp r8, rcx
je 0x14011abf0
mov r9, qword [r8 - 8]
add r8, 0xfffffffffffffff8
mov qword [r14 - 8], r9
add r14, 0xfffffffffffffff8
cmp r8, rcx
jne 0x14011abd8
mov rcx, qword [rsi]
mov qword [rsi], r14
mov qword [rsi + 8], rdx
mov qword [rsi + 0x10], rax
test rcx, rcx
je 0x14011ab60
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.14011b0b0
mov rcx, rbx
call fcn.14011b650
jmp 0x14011abb5
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.1400f5da0
call fcn.1400f63c0
int3

Function at 0x1401261e0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x140174028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, 0xffffffffffffffff
xor edx, edx
div rcx
mov rbx, 0xfffffffffffffffe
sub rbx, rdx
movabs r14, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x28]
mov qword [rsp + 0x28], r14
mov rcx, rdi
mov edx, 8
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140126262
mov rax, qword [rsp + 0x28]
cmp rax, rbx
ja 0x140126220
xor edx, edx
div rsi
mov rsi, rdx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400bce30
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
int3

Function at 0x140126640
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140174028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
xor r15d, r15d
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14012668e
mov rdx, rcx
add rdi, rdx
cmp al, 1
je 0x1401266cc
cmp rdi, rsi
jae 0x1401266cc
mov dword [rsp + 0x2c], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r12
test eax, eax
sete dl
mov ecx, dword [rsp + 0x2c]
test rcx, rcx
sete al
or al, dl
mov edx, 0
jne 0x140126687
jmp 0x140126684
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400bce30
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret