joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001f730
Capabilities:
Enumerate pe sections

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x368]
sub rsp, 0x460
movaps xmmword [rax - 0x28], xmm7
xor edx, edx
movaps xmmword [rax - 0x48], xmm9
mov r8d, 0x400
mov qword [rax + 8], rbx
xorps xmm9, xmm9
mov rbx, rcx
mov qword [rax + 0x10], rdi
lea rcx, [rsp + 0x20]
movaps xmmword [rax - 0x38], xmm8
xorps xmm7, xmm7
call fcn.1400342d0
movzx eax, byte [rbx]
mov edi, 0x100
movsd xmm8, qword [0x14006c068]
movaps xmmword [rsp + 0x450], xmm6
inc dword [rsp + rax*4 + 0x20]
movzx eax, byte [rbx + 1]
inc dword [rsp + rax*4 + 0x20]
movzx eax, byte [rbx + 2]
inc dword [rsp + rax*4 + 0x20]
movzx eax, byte [rbx + 3]
inc dword [rsp + rax*4 + 0x20]
movzx eax, byte [rbx + 4]
inc dword [rsp + rax*4 + 0x20]
movzx eax, byte [rbx + 5]
inc dword [rsp + rax*4 + 0x20]
movzx eax, byte [rbx + 6]
inc dword [rsp + rax*4 + 0x20]
movzx eax, byte [rbx + 7]
inc dword [rsp + rax*4 + 0x20]
movzx eax, byte [rbx + 8]
inc dword [rsp + rax*4 + 0x20]
movzx eax, byte [rbx + 9]
inc dword [rsp + rax*4 + 0x20]
movzx eax, byte [rbx + 0xa]
inc dword [rsp + rax*4 + 0x20]
movzx eax, byte [rbx + 0xb]
inc dword [rsp + rax*4 + 0x20]
movzx eax, byte [rbx + 0xc]
inc dword [rsp + rax*4 + 0x20]
movzx eax, byte [rbx + 0xd]
inc dword [rsp + rax*4 + 0x20]
movzx eax, byte [rbx + 0xe]
inc dword [rsp + rax*4 + 0x20]
movzx eax, byte [rbx + 0xf]
inc dword [rsp + rax*4 + 0x20]
movzx eax, byte [rbx + 0x10]
inc dword [rsp + rax*4 + 0x20]
movzx eax, byte [rbx + 0x11]
inc dword [rsp + rax*4 + 0x20]
movzx eax, byte [rbx + 0x12]
inc dword [rsp + rax*4 + 0x20]
movzx eax, byte [rbx + 0x13]
inc dword [rsp + rax*4 + 0x20]
movzx eax, byte [rbx + 0x14]
inc dword [rsp + rax*4 + 0x20]
movzx eax, byte [rbx + 0x15]
inc dword [rsp + rax*4 + 0x20]
movzx eax, byte [rbx + 0x16]
inc dword [rsp + rax*4 + 0x20]
movzx eax, byte [rbx + 0x17]
inc dword [rsp + rax*4 + 0x20]
movzx eax, byte [rbx + 0x18]
inc dword [rsp + rax*4 + 0x20]
movzx eax, byte [rbx + 0x19]
inc dword [rsp + rax*4 + 0x20]
movzx eax, byte [rbx + 0x1a]
inc dword [rsp + rax*4 + 0x20]
movzx eax, byte [rbx + 0x1b]
inc dword [rsp + rax*4 + 0x20]
movzx eax, byte [rbx + 0x1c]
inc dword [rsp + rax*4 + 0x20]
movzx eax, byte [rbx + 0x1d]
inc dword [rsp + rax*4 + 0x20]
movzx eax, byte [rbx + 0x1e]
inc dword [rsp + rax*4 + 0x20]
movzx eax, byte [rbx + 0x1f]
lea rbx, [rsp + 0x20]
inc dword [rsp + rax*4 + 0x20]
nop
mov eax, dword [rbx]
test eax, eax
je 0x14001f8b3
xorps xmm6, xmm6
cvtsi2sd xmm6, rax
mulsd xmm6, xmm8
movaps xmm0, xmm6
call fcn.140055980
mulsd xmm0, xmm6
addsd xmm7, xmm0
add rbx, 4
sub rdi, 1
jne 0x14001f890
ucomisd xmm7, xmm9
mov rdi, qword [rsp + 0x478]
mov rbx, qword [rsp + 0x470]
movaps xmm8, xmmword [rsp + 0x430]
movaps xmm6, xmmword [rsp + 0x450]
jne 0x14001f8eb
movaps xmm0, xmm9
jmp 0x14001f8f6
mulsd xmm7, qword [0x14006c078]
movaps xmm0, xmm7
movaps xmm7, xmmword [rsp + 0x440]
movaps xmm9, xmmword [rsp + 0x420]
add rsp, 0x460
pop rbp
ret
Function at 0x140021f30
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov r9d, dword [rcx]
xor ebx, ebx
mov r10, r8
mov r11, rdx
mov rdi, rcx
test r9d, r9d
je 0x140021fde
cmp r9d, 1
jne 0x140022015
call fcn.140021da0
mov rdx, rax
test rax, rax
je 0x140022015
mov ecx, dword [rax + 8]
mov r8d, ecx
mov r9d, dword [rsp + 0x70]
btr r8d, 0x1f
cmp r8d, r9d
setae bl
jb 0x140021fc6
mov eax, dword [rsp + 0x60]
and ecx, 0x80000000
or ecx, r9d
mov dword [rdx + 0x10], eax
mov dword [rdx + 8], ecx
lea rcx, [rdx + 0xc]
jl 0x140021faf
mov rax, qword [rdi + 8]
movsxd rcx, dword [rcx]
mov rax, qword [rax + 0x10]
add rax, 4
add rcx, rax
mov rdx, qword [rsp + 0x68]
call fcn.1400351a0
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, Ordinal_54
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov eax, dword [rsp + 0x70]
xor r8d, r8d
mov r9d, dword [rsp + 0x60]
mov rdx, r10
mov dword [rsp + 0x28], eax
mov rcx, r11
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
test eax, eax
je 0x140022015
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140022030
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x40
mov r10d, dword [rcx]
xor r12d, r12d
mov r14, qword [rsp + 0x80]
mov rbp, rdx
mov r11d, r8d
mov rsi, r9
mov rdx, rcx
mov edi, r12d
test r10d, r10d
je 0x140022179
cmp r10d, 1
jne 0x1400221b1
mov eax, dword [rbp + 0x18]
test eax, eax
je 0x1400221b1
cmp r11d, eax
jae 0x1400221b1
movsxd rcx, dword [rbp + 0x20]
cmp ecx, 0xffffffff
je 0x1400221b1
mov rax, qword [rdx + 8]
mov edx, 0x666c
mov r8, qword [rax + 0x10]
add rcx, r8
movzx eax, word [rcx + 4]
cmp ax, dx
je 0x1400220bb
mov edx, 0x686c
cmp ax, dx
jne 0x1400221b1
movzx eax, word [rcx + 6]
test ax, ax
je 0x1400221b1
cmp r11d, eax
jae 0x1400221b1
movsxd rdx, dword [rcx + r11*8 + 8]
mov eax, 0x6b6e
add rdx, r8
cmp word [rdx + 4], ax
jne 0x1400221b1
test rsi, rsi
je 0x1400221b1
test r14, r14
je 0x1400221b1
test byte [rdx + 6], 0x20
mov eax, dword [r14]
mov qword [rsp + 0x60], rbx
movzx ebx, word [rdx + 0x4c]
mov qword [rsp + 0x68], r15
je 0x140022146
cmp eax, ebx
seta dil
jbe 0x140022161
lea rcx, [rdx + 0x50]
mov edx, ebx
call fcn.1400071b0
mov rbp, rax
test rax, rax
je 0x140022161
lea r8, [rbx + rbx]
mov rdx, rax
mov rcx, rsi
call fcn.1400351a0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140022161
shr ebx, 1
cmp eax, ebx
seta dil
jbe 0x140022161
movzx r8d, word [rbp + 0x4c]
add rdx, 0x50
mov rcx, rsi
call fcn.1400351a0
mov r15, qword [rsp + 0x68]
test edi, edi
je 0x14002216f
mov word [rsi + rbx*2], r12w
mov dword [r14], ebx
mov rbx, qword [rsp + 0x60]
jmp 0x1400221b1
mov qword [rsp + 0x38], r12
mov r9, r14
mov qword [rsp + 0x30], r12
mov r8, rsi
mov qword [rsp + 0x28], r12
mov edx, r11d
mov rcx, rbp
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
sete dil
test eax, eax
je 0x1400221b1
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rsp + 0x70]
mov eax, edi
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r12
pop rdi
ret
Function at 0x1400221d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r9
push rsi
push rdi
push r15
sub rsp, 0x30
mov rsi, rcx
mov dword [rsp + 0x68], 0
mov ecx, dword [rcx]
mov rdi, r8
mov r15, rdx
test ecx, ecx
je 0x140022224
cmp ecx, 1
jne 0x140022377
mov rcx, rsi
call fcn.140021da0
xor ebx, ebx
test rax, rax
setne bl
test rax, rax
je 0x14002225c
mov eax, dword [rax + 8]
btr eax, 0x1f
mov dword [rsp + 0x68], eax
jmp 0x140022260
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], 0
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
je 0x14002225c
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rsp + 0x68]
test ebx, ebx
je 0x140022377
test eax, eax
je 0x140022377
mov qword [rsp + 0x50], rbp
mov ecx, 0x40
mov edx, eax
mov qword [rsp + 0x58], r14
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, qword [rsp + 0x70]
mov rbp, rax
mov qword [r14], rax
test rax, rax
je 0x140022375
mov ecx, dword [rsi]
xor ebx, ebx
test ecx, ecx
je 0x140022307
cmp ecx, 1
jne 0x140022339
mov r8, rdi
mov rdx, r15
mov rcx, rsi
call fcn.140021da0
test rax, rax
mov rdx, rax
setne bl
test rax, rax
je 0x140022339
mov ecx, dword [rax + 8]
xor ebx, ebx
mov edi, ecx
btr edi, 0x1f
cmp dword [rsp + 0x68], edi
setae bl
jb 0x140022301
add rdx, 0xc
test ecx, ecx
js 0x1400222f6
mov rax, qword [rsi + 8]
movsxd rdx, dword [rdx]
mov rax, qword [rax + 0x10]
add rax, 4
add rdx, rax
mov r8d, edi
mov rcx, rbp
call fcn.1400351a0
mov dword [rsp + 0x68], edi
jmp 0x140022339
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbp
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete bl
test eax, eax
je 0x140022339
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
je 0x140022367
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x14002234d
mov ecx, dword [rsp + 0x68]
mov dword [rax], ecx
mov eax, ebx
mov rbp, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop rdi
pop rsi
ret
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [r14], rax
jmp 0x14002234d
jmp 0x14002234f
mov rbx, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x30
pop r15
pop rdi
pop rsi
ret
Function at 0x140031110
Capabilities:
Encrypt data using rc4 via systemfunction032

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
push r15
sub rsp, 0xb8
xor edi, edi
mov dword [rsp + 0x20], 0x10
test rdx, rdx
mov dword [rsp + 0x24], 0x10
lea rax, [r11 - 0x40]
mov rsi, rcx
lea r14, [0x140079bb0]
mov qword [rsp + 0x28], rax
mov eax, dword [rcx]
cmovne r14, rdx
lea r15d, [rax + 0x14]
cmp qword [r14 + 8], rdi
je 0x140031301
cmp dword [r14], edi
je 0x140031301
test eax, eax
je 0x140031301
cmp qword [rcx + 8], rdi
je 0x140031301
mov edx, r15d
lea ecx, [rdi + 0x40]
mov qword [r11 + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
test rax, rax
je 0x1400312fd
mov r8d, dword [rsi]
lea rcx, [rax + 0x14]
mov rdx, qword [rsi + 8]
mov qword [rsp + 0xf0], rbx
mov qword [rsp + 0xb0], r12
call fcn.1400351a0
mov r12d, dword [rsi]
lea rdx, [rsp + 0xe0]
mov ecx, 0xffffff7c
call qword [sym.imp.cryptdll.dll_CDLocateCheckSum]
test eax, eax
js 0x1400312cc
mov rax, qword [rsp + 0xe0]
lea rdx, [rsp + 0xe8]
xor ecx, ecx
call qword [rax + 0x10]
test eax, eax
js 0x1400312cc
mov rax, qword [rsp + 0xe0]
lea r8, [rbp + 0x14]
mov rcx, qword [rsp + 0xe8]
mov edx, r12d
call qword [rax + Ordinal_26]
mov rax, qword [rsp + 0xe0]
lea rdx, [rbp + 0x10]
mov rcx, qword [rsp + 0xe8]
mov r8, qword [rax + 0x20]
call r8
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0xe8]
mov ebx, eax
not ebx
shr ebx, 0x1f
call qword [rdx + Ordinal_41]
test ebx, ebx
je 0x1400312cc
lea edx, [rdi + 0x10]
mov rcx, rbp
call qword [sym.imp.cryptdll.dll_CDGenerateRandomBits]
lea rcx, [rsp + 0x40]
call qword [sym.imp.cryptdll.dll_MD5Init]
mov r8d, dword [r14]
lea rcx, [rsp + 0x40]
mov rdx, qword [r14 + 8]
call qword [sym.imp.cryptdll.dll_MD5Update]
lea r8d, [rdi + 0x10]
mov rdx, rbp
lea rcx, [rsp + 0x40]
call qword [sym.imp.cryptdll.dll_MD5Update]
lea rcx, [rsp + 0x40]
call qword [sym.imp.cryptdll.dll_MD5Final]
lea eax, [r15 - 0x10]
mov dword [rsp + 0x34], eax
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x30]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x38], rax
call qword [sym.imp.ADVAPI32.dll_SystemFunction032]
test eax, eax
js 0x1400312cc
mov rcx, qword [rsi + 8]
mov edi, 1
mov qword [rsi + 8], rbp
mov rbp, rcx
mov dword [rsi], r15d
test rcx, rcx
je 0x1400312d5
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0xf0]
mov eax, edi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xf8]
add rsp, 0xb8
pop r15
pop r14
pop rdi
pop rsi
ret
mov eax, edi
jmp 0x1400312e7
mov eax, edi
add rsp, 0xb8
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x1400315e0
Capabilities:
Listen for remote procedure calls

Disassembly:
push rbx
push rsi
push rdi
push r15
sub rsp, 0x58
xor r15d, r15d
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x90], r15
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x48], r15
lea rcx, [0x140064984]
mov edi, r15d
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x140031830
lea rdx, [rsp + 0x98]
mov rcx, rbx
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x1400316f0
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x50], r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x98]
mov edi, eax
add edi, edi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov rcx, rsi
lea r14d, [rbx + rbx]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, edi
lea rdx, [r14 + 4]
add rdx, rbx
lea ecx, [r15 + 0x40]
lea ebp, [rax + rax]
add rdx, rbp
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400316d5
mov rdx, qword [rsp + 0x40]
mov r8d, ebx
mov rcx, rax
call fcn.1400351a0
mov rdx, qword [rsp + 0x98]
lea rcx, [rdi + 2]
add rcx, rbx
mov r8d, r14d
call fcn.1400351a0
mov byte [rbx + rdi], 0x2f
mov r8d, ebp
add rbx, rbp
mov rdx, rsi
lea rcx, [rbx + 4]
add rcx, rdi
call fcn.1400351a0
mov byte [rbx + rdi + 2], 0x2f
lea rcx, [rsp + 0x98]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x80]
lea rcx, [rsp + 0x40]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
test rdi, rdi
je 0x140031830
xor r9d, r9d
lea rcx, str.ncacn_ip_tcp
xor r8d, r8d
lea edx, [r9 + 0xa]
call qword [sym.imp.RPCRT4.dll_RpcServerUseProtseqEpW]
mov ebx, eax
mov rsi, rdi
test eax, eax
jne 0x14003181b
xor r9d, r9d
lea edx, [rax + 9]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.RPCRT4.dll_RpcServerRegisterAuthInfoW]
mov ebx, eax
test eax, eax
jne 0x14003181b
mov qword [rsp + 0x30], r15
lea r9d, [rax + 8]
mov dword [rsp + 0x28], 0xffffffff
lea rcx, [0x140064980]
xor r8d, r8d
mov dword [rsp + 0x20], 0x4d2
xor edx, edx
call qword [sym.imp.RPCRT4.dll_RpcServerRegisterIf2]
mov ebx, eax
test eax, eax
jne 0x14003181b
lea rcx, [rsp + 0x90]
call qword [sym.imp.RPCRT4.dll_RpcServerInqBindings]
mov ebx, eax
test eax, eax
jne 0x14003181b
mov rax, qword [rsp + 0x90]
mov ebx, r15d
cmp dword [rax], ebx
jbe 0x1400317cf
mov ecx, ebx
lea rdx, [rsp + 0x48]
mov rcx, qword [rax + rcx*8 + 8]
call qword [sym.imp.RPCRT4.dll_RpcBindingToStringBindingW]
test eax, eax
jne 0x1400317c1
lea rcx, [rsp + 0x48]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
mov rax, qword [rsp + 0x90]
inc ebx
cmp ebx, dword [rax]
jb 0x1400317a0
lea r9, str.mimi_Ho__hey__Im_a_DC_:_
xor r8d, r8d
mov rdx, rax
lea rcx, [0x140064980]
call qword [sym.imp.RPCRT4.dll_RpcEpRegisterW]
lea rcx, [rsp + 0x90]
mov ebx, eax
call qword [sym.imp.RPCRT4.dll_RpcBindingVectorFree]
test ebx, ebx
jne 0x14003181b
mov ecx, 1
mov edx, 0x4d2
mov r8d, ecx
call qword [sym.imp.RPCRT4.dll_RpcServerListen]
cmp eax, 0x6b1
mov ebx, eax
cmove ebx, r15d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
add rsp, 0x58
pop r15
pop rdi
pop rsi
pop rbx
ret
mov eax, r15d
add rsp, 0x58
pop r15
pop rdi
pop rsi
pop rbx
ret
Function at 0x140032ba0
Capabilities:
Get user security identifier

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], r9
push rdi
sub rsp, 0x50
lea rax, [r11 - 0x14]
xor ebx, ebx
mov qword [r11 - 0x28], rax
lea r9, [r11 - 0x18]
lea rax, [r11 + 0x20]
mov dword [rsp + 0x40], ebx
mov rdi, rdx
mov qword [r11 - 0x30], rax
mov rsi, r8
mov qword [r11 - 0x38], rbx
mov rbp, rcx
mov dword [rsp + 0x78], ebx
mov rdx, rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x140032c8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140032c8e
mov edx, dword [rsp + 0x40]
lea ecx, [rbx + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rdi], rax
test rax, rax
je 0x140032c8e
mov edx, dword [rsp + 0x78]
lea ecx, [rbx + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
test rax, rax
je 0x140032c82
mov r8, qword [rdi]
lea rcx, [rsp + 0x44]
mov qword [rsp + 0x30], rcx
lea r9, [rsp + 0x40]
lea rcx, [rsp + 0x78]
mov rdx, rbp
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
test eax, eax
jne 0x140032c90
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsi], rax
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rdi], rax
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x140033764
Capabilities:
Parse pe header

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

Function at 0x1400482c0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400480b0
Function at 0x14004dd14
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 0x14004dd44
xor eax, eax
jmp 0x14004de07
mov rbp, rbx
cmp word [rax], si
je 0x14004dd69
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14004dd50
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14004dd4c
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.14004dc64
movsxd r14, eax
test eax, eax
jne 0x14004dda7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14004dd3d
mov rcx, r14
call fcn.140049a8c
mov rdi, rax
test rax, rax
jne 0x14004ddc0
xor ecx, ecx
call fcn.140049a50
jmp 0x14004dd9c
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.14004dc64
test eax, eax
jne 0x14004ddf1
mov rcx, rdi
call fcn.140049a50
jmp 0x14004ddfb
xor ecx, ecx
call fcn.140049a50
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 0x140051ad8
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140079270]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140051b36
cmp word [rdx], r12w
jne 0x140051b36
or byte [rax + r8*8 + 0x38], cl
jmp 0x140051b3c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140051c97
mov r9d, reloc.WLDAP32.dll_Ordinal_26
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140051c72
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140051b75
mov rcx, r9
jmp 0x140051b98
cmp r9, rdx
jae 0x140051baf
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, reloc.WLDAP32.dll_Ordinal_26
add rbx, 2
cmp rcx, rdx
jb 0x140051b59
jmp 0x140051c97
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140051c6c
cmp dword [rsp + 0x80], edi
je 0x140051c6c
mov rdx, r14
lea r11, [0x140079270]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140051c45
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140051c18
mov word [rbx], r12w
jmp 0x140051c93
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140051c21
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140051c93
cmp word [rsp + 0x70], r12w
jne 0x140051c52
cmp rbx, rsi
je 0x140051c12
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140053ff0
cmp word [rsp + 0x70], r12w
je 0x140051c97
mov word [rbx], r13w
jmp 0x140051c93
lea r11, [0x140079270]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140051c8f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140051c97
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400533dc
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.1400370b8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140053466
cmp byte [rbp - 0x21], r15b
je 0x140053461
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14005349c
call fcn.14004b5b4
test eax, eax
jne 0x140053488
cmp byte [rbp - 0x21], r15b
je 0x140053480
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14005349c
cmp byte [rbp - 0x21], r15b
je 0x140053499
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.14004c3e0
test eax, eax
jne 0x14005353c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400370b8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400534db
cmp byte [rbp - 0x21], r15b
je 0x140053510
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140053510
call fcn.14004b5b4
test eax, eax
jne 0x1400534fc
cmp byte [rbp - 0x21], r15b
je 0x1400534f5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140053510
cmp byte [rbp - 0x21], r15b
je 0x14005350d
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.14004c3e0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14005353c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14005353f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14005354d
mov rcx, rdi
call fcn.140049a50
cmp byte [rbp + 0x3f], r15b
je 0x14005355c
mov rcx, qword [rbp + 0x27]
call fcn.140049a50
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 0x1400555d0
Capabilities:
Parse pe header

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