joyce8/EMBER2024-capa huggingface dataset:
Function at 0x481fe0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x48221b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x60], rbx
nop
call sym.crypto_internal_boring_sig.StandardCrypto.abi0
xorps xmm15, xmm15
mov r14, qword [0x005c0d60]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
add qword [rcx + 0x68], rax
mov rdx, qword [rcx + 0x60]
test rdx, rdx
jle 0x48212a
nop dword [rax]
cmp rdx, 0x40
ja 0x48220d
lea rsi, [rdx - 0x40]
mov rdi, rsi
neg rsi
sar rdi, 0x3f
and rdi, rdx
lea rdx, [rcx + rdi]
lea rdx, [rdx + 0x20]
cmp rax, rsi
cmovl rsi, rax
mov qword [rsp + 0x28], rsi
mov rbx, qword [rsp + 0x60]
cmp rbx, rdx
je 0x482099
mov rax, rdx
mov rcx, rsi
nop
call sym.runtime.memmove
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x28]
mov rdx, qword [rcx + 0x60]
add rdx, rsi
mov qword [rcx + 0x60], rdx
cmp rdx, 0x40
jne 0x482101
mov qword [rsp], rcx
lea rax, [rcx + 0x20]
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], 0x40
mov qword [rsp + 0x18], 0x40
call sym.crypto_sha256.block.abi0
xorps xmm15, xmm15
mov r14, qword [0x005c0d60]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x58]
mov qword [rax + 0x60], 0
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x28]
cmp rax, rsi
jb 0x482202
mov rdi, qword [rsp + 0x70]
sub rdi, rsi
mov rdx, rdi
neg rdx
sar rdx, 0x3f
and rdx, rsi
mov r8, rax
sub r8, rsi
add rbx, rdx
jmp 0x482137
mov r8, rax
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x70]
cmp r8, 0x40
jl 0x4821b5
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rdi
mov qword [rsp], rcx
mov qword [rsp + 8], rbx
and r8, 0xffffffffffffffc0
mov qword [rsp + 0x20], r8
mov qword [rsp + 0x10], r8
mov qword [rsp + 0x18], rdi
call sym.crypto_sha256.block.abi0
xorps xmm15, xmm15
mov r14, qword [0x005c0d60]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
mov rdx, rax
sub rax, rcx
sar rax, 0x3f
mov r8, qword [rsp + 0x38]
and rax, r8
and rax, 0xffffffffffffffc0
mov rcx, qword [rsp + 0x40]
lea rbx, [rcx + rax]
sub r8, rdx
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
test r8, r8
je 0x4821f8
lea rdx, [rcx + 0x20]
cmp r8, 0x40
mov esi, 0x40
cmovl rsi, r8
cmp rbx, rdx
je 0x4821f4
mov qword [rsp + 0x38], rsi
mov rax, rdx
mov rcx, rsi
nop dword [rax + rax]
call sym.runtime.memmove
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x38]
mov qword [rcx + 0x60], rsi
xor ebx, ebx
xor ecx, ecx
add rsp, 0x48
pop rbp
ret
mov rcx, rax
mov rax, rsi
call sym.runtime.panicSliceB
mov rax, rdx
mov ecx, 0x40
call sym.runtime.panicSliceB
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp sym.crypto_sha256._digest_.Write
Function at 0x1400eebf0
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
mov rax, qword [0x1401e00a0]
test rax, rax
jne 0x1400eec17
jmp 0x1400eee48
cmp dword [rsp + 0x98], 1
jne 0x1400eecd7
mov rax, qword [0x1401e00a0]
test rax, rax
je 0x1400eecd7
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rax, 0x88
mov qword [rsp + 0x30], rax
mov eax, 8
imul rax, rax, 9
mov rcx, qword [rsp + 0x30]
cmp dword [rcx + rax], 0
je 0x1400eecb8
mov eax, 8
imul rax, rax, 9
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax]
mov rcx, qword [0x1401e0098]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x10]
mov eax, dword [rax]
mov dword [0x1401e00a8], eax
jmp 0x1400eecd7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1401e00a8], eax
mov rax, qword [0x1401e00a0]
mov rax, qword [rax + 0x10]
mov ecx, dword [0x1401e00a8]
mov dword [rax], ecx
call fcn.1400f5fd0
mov rax, qword [rax + 0x58]
mov qword [rsp + 0x40], rax
mov rax, qword [0x1401e00a0]
mov rcx, qword [0x1401e00a0]
mov rcx, qword [rcx]
mov rax, qword [rax + 8]
sub rax, rcx
inc rax
mov qword [rsp + 0x48], rax
mov rax, qword [0x1401e00a0]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp dword [rsp + 0x98], 2
je 0x1400eed33
cmp dword [rsp + 0x98], 1
jne 0x1400eeda3
mov r9d, 4
mov r8d, 0x3000
mov rdx, qword [rsp + 0x50]
xor ecx, ecx
call fcn.1400f6b00
mov qword [rsp + 0x58], rax
mov rax, qword [0x1401e00a0]
mov r8, qword [0x1401e00b0]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x58]
call fcn.1401a9160
mov rax, qword [0x1401e00a0]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x58]
add rdx, rcx
mov rcx, rdx
mov r8d, eax
xor edx, edx
call fcn.1401a9800
mov eax, dword [0x1401e00a8]
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x58]
mov qword [rcx + rax*8], rdx
mov dword [rsp + 0x60], 0
jmp 0x1400eedb7
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
movsxd rax, dword [rsp + 0x60]
mov qword [rsp + 0x70], rax
lea rcx, [0x1401e0078]
call fcn.1400f0040
mov rcx, qword [rsp + 0x70]
cmp rcx, rax
jae 0x1400eee14
movsxd rax, dword [rsp + 0x60]
mov rdx, rax
lea rcx, [0x1401e0078]
call fcn.1400ef820
mov rax, qword [rax]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x78], rax
xor r8d, r8d
mov edx, dword [rsp + 0x98]
mov rcx, qword [0x1401e0098]
call qword [rsp + 0x78]
jmp 0x1400eedad
cmp dword [rsp + 0x98], 3
je 0x1400eee28
cmp dword [rsp + 0x98], 0
jne 0x1400eee48
mov eax, dword [0x1401e00a8]
mov r8d, 0x8000
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
add rsp, 0x80
pop rdi
ret
Function at 0x1400f4c70
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov r9d, 0x6c078965
mov r8d, 0xffffffff
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.1400f4c20
mov rax, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400f5010
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x270
jne 0x1400f5033
mov rcx, qword [rsp + 0x40]
call fcn.1400f5930
jmp 0x1400f504a
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4e0
jb 0x1400f504a
mov rcx, qword [rsp + 0x40]
call fcn.1400f5730
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0xb
mov rcx, qword [rsp + 0x40]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x12
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret
Function at 0x1400f5730
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov qword [rsp], 0x26f
mov qword [rsp + 8], 0xe3
mov qword [rsp + 0x10], 0
jmp 0x1400f5763
mov rax, qword [rsp + 0x10]
inc rax
mov qword [rsp + 0x10], rax
cmp qword [rsp + 0x10], 0xe3
jae 0x1400f57ea
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x10]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x10]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x18]
and eax, 1
test eax, eax
je 0x1400f57b4
mov dword [rsp + 0x3c], 0x9908b0df
jmp 0x1400f57bc
mov dword [rsp + 0x3c], 0
mov eax, dword [rsp + 0x18]
shr eax, 1
xor eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x10]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x10]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x1400f5756
mov qword [rsp + 0x20], 0xe3
jmp 0x1400f5802
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0x26f
jae 0x1400f5889
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x20]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x20]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
and eax, 1
test eax, eax
je 0x1400f5853
mov dword [rsp + 0x40], 0x9908b0df
jmp 0x1400f585b
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x28]
shr eax, 1
xor eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x20]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x20]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x1400f57f5
mov qword [rsp + 0x30], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x60]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
and eax, 1
test eax, eax
je 0x1400f58dd
mov dword [rsp + 0x44], 0x9908b0df
jmp 0x1400f58e5
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x38]
shr eax, 1
xor eax, dword [rsp + 0x44]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rsp + 0x60]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rsp + 0x60]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rsp + 0x60]
mov dword [rax], 0
add rsp, 0x50
pop rdi
ret
Function at 0x1400f5930
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x10
mov qword [rsp], 0x270
jmp 0x1400f594f
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
cmp qword [rsp], 0x4e0
jae 0x1400f59d1
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp]
mov eax, dword [rax + rcx*4 - 0x9bc]
and eax, 0x80000000
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp]
mov ecx, dword [rcx + rdx*4 - 0x9b8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
and eax, 1
test eax, eax
je 0x1400f599d
mov dword [rsp + 0xc], 0x9908b0df
jmp 0x1400f59a5
mov dword [rsp + 0xc], 0
mov eax, dword [rsp + 8]
shr eax, 1
xor eax, dword [rsp + 0xc]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x1400f5944
add rsp, 0x10
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov qword [rsp + 0x20], 0
cmp qword [rsp + 0x80], 0
jne 0x1400f63ba
xor eax, eax
jmp 0x1400f64e7
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], 0
jmp 0x1400f643b
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x50], eax
jae 0x1400f64e2
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x88]
call fcn.1400f3e70
movzx eax, al
test eax, eax
je 0x1400f64dd
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x50]
movzx eax, word [rax + rcx*2]
mov word [rsp + 0x60], ax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx ecx, word [rsp + 0x60]
mov eax, dword [rax + rcx*4]
mov dword [rsp + 0x64], eax
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x64]
call fcn.1400f6f50
mov qword [rsp + 0x20], rax
jmp 0x1400f64e2
jmp 0x1400f6431
mov rax, qword [rsp + 0x20]
add rsp, 0x70
pop rdi
ret

Function at 0x1400f84e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x28], 0
jmp 0x1400f8518
Function at 0x1401170a0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140116b80
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401170df
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401ac360]
jmp 0x1401170e9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x140173a80
Capabilities:
Get geographical location

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.140172d30
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140173ae7
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1401ac368]
jmp 0x140173b09
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.140174010
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret
Function at 0x14017c790
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x14017eaa0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400fa660
sub rsp, rax
mov rax, qword [0x1401df240]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1401e1990]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14017ec92
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x14017ebe6
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14017ebe6
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14017ebcb
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x14017eb68
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14017ec52
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14017ecb1
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x14017ec8d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14017ecb1
jmp 0x14017eb3e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400f9a40
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x14017ecd0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400fa660
sub rsp, rax
mov rax, qword [0x1401df240]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1401e1990]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14017eedd
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x14017ee29
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14017ee29
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x14017ee09
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x14017ed98
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14017ee9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14017eefc
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x14017eed8
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14017eefc
jmp 0x14017ed6e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400f9a40
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140186b80
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140186a10
lea rcx, [rsp + 0x40]
call fcn.140186b40
movzx eax, al
test eax, eax
jne 0x140186bc8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140186a30
mov rax, qword [rsp + 0x70]
jmp 0x140186d99
lea rcx, [rsp + 0x40]
call fcn.140186b20
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140186ad0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.140186b20
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1401868e0
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140186c6e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140186a30
mov rax, qword [rsp + 0x80]
jmp 0x140186d99
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.140161360
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400ff4e0
lea rcx, [rsp + 0x48]
call fcn.1400ff560
movzx eax, al
test eax, eax
jne 0x140186cd5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400ff520
lea rcx, [rsp + 0x40]
call fcn.140186a30
mov rax, qword [rsp + 0x88]
jmp 0x140186d99
lea rcx, [rsp + 0x48]
call fcn.1400ff650
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140186b20
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.1401868e0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140186d6b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400ff520
lea rcx, [rsp + 0x40]
call fcn.140186a30
mov rax, qword [rsp + 0xa0]
jmp 0x140186d99
lea rcx, [rsp + 0x48]
call fcn.1401643f0
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400ff520
lea rcx, [rsp + 0x40]
call fcn.140186a30
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret