joyce8/EMBER2024-capa huggingface dataset:
Function at 0x482fa0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push rbp
mov rbp, rsp
mov rcx, qword [rsp + 0x10]
mov rax, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
add rbx, 0x10
pxor xmm4, xmm4
cmp ecx, 0xc
je 0x483074
jb 0x4830d3
movups xmm2, xmmword [rax + 0x10]
movups xmmword [rbx], xmm2
add rbx, 0x10
aeskeygenassist xmm1, xmm2, 1
call sym._expand_key_256a
aeskeygenassist xmm1, xmm0, 1
call sym._expand_key_256b
aeskeygenassist xmm1, xmm2, 2
call sym._expand_key_256a
aeskeygenassist xmm1, xmm0, 2
call sym._expand_key_256b
aeskeygenassist xmm1, xmm2, 4
call sym._expand_key_256a
aeskeygenassist xmm1, xmm0, 4
call sym._expand_key_256b
aeskeygenassist xmm1, xmm2, 8
call sym._expand_key_256a
aeskeygenassist xmm1, xmm0, 8
call sym._expand_key_256b
aeskeygenassist xmm1, xmm2, 0x10
call sym._expand_key_256a
aeskeygenassist xmm1, xmm0, 0x10
call sym._expand_key_256b
aeskeygenassist xmm1, xmm2, 0x20
call sym._expand_key_256a
aeskeygenassist xmm1, xmm0, 0x20
call sym._expand_key_256b
aeskeygenassist xmm1, xmm2, 0x40
call sym._expand_key_256a
jmp 0x483141
movq xmm2, qword [rax + 0x10]
aeskeygenassist xmm1, xmm2, 1
call sym._expand_key_192a
aeskeygenassist xmm1, xmm2, 2
call sym._expand_key_192b
aeskeygenassist xmm1, xmm2, 4
call sym._expand_key_192a
aeskeygenassist xmm1, xmm2, 8
call sym._expand_key_192b
aeskeygenassist xmm1, xmm2, 0x10
call sym._expand_key_192a
aeskeygenassist xmm1, xmm2, 0x20
call sym._expand_key_192b
aeskeygenassist xmm1, xmm2, 0x40
call sym._expand_key_192a
aeskeygenassist xmm1, xmm2, 0x80
call sym._expand_key_192b
jmp 0x483141
aeskeygenassist xmm1, xmm0, 1
call sym._expand_key_128
aeskeygenassist xmm1, xmm0, 2
call sym._expand_key_128
aeskeygenassist xmm1, xmm0, 4
call sym._expand_key_128
aeskeygenassist xmm1, xmm0, 8
call sym._expand_key_128
aeskeygenassist xmm1, xmm0, 0x10
call sym._expand_key_128
aeskeygenassist xmm1, xmm0, 0x20
call sym._expand_key_128
aeskeygenassist xmm1, xmm0, 0x40
call sym._expand_key_128
aeskeygenassist xmm1, xmm0, 0x80
call sym._expand_key_128
aeskeygenassist xmm1, xmm0, 0x1b
call sym._expand_key_128
aeskeygenassist xmm1, xmm0, 0x36
call sym._expand_key_128
sub rbx, 0x10
movups xmm1, xmmword [rbx]
movups xmmword [rdx], xmm1
dec rcx
movups xmm1, xmmword [rbx - 0x10]
aesimc xmm0, xmm1
movups xmmword [rdx + 0x10], xmm0
sub rbx, 0x10
add rdx, 0x10
dec rcx
jne 0x48314e
movups xmm0, xmmword [rbx - 0x10]
movups xmmword [rdx + 0x10], xmm0
pop rbp
ret
Function at 0x483280
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
mov rdi, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x18]
shr rdx, 2
dec rdx
movdqu xmm15, xmmword [0x005348a0]
movdqu xmm14, xmmword [0x005348b0]
movdqu xmm0, xmmword [rsi]
movdqu xmm11, xmmword [rsi + 0x10]
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0x20]
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0x30]
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0x40]
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0x50]
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0x60]
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0x70]
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0x80]
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0x90]
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0xa0]
cmp rdx, 0xc
jb 0x48336b
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0xb0]
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0xc0]
je 0x48336b
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0xd0]
aesenc xmm0, xmm11
movdqu xmm11, xmmword [rsi + 0xe0]
aesenclast xmm0, xmm11
pshufb xmm0, xmm15
pshufd xmm11, xmm0, 0xff
movdqu xmm12, xmm0
psrad xmm11, 0x1f
pand xmm11, xmm14
psrld xmm12, 0x1f
pslldq xmm12, 4
pslld xmm0, 1
pxor xmm0, xmm11
pxor xmm0, xmm12
movdqu xmmword [rdi + 0xe0], xmm0
pshufd xmm1, xmm0, 0x4e
pxor xmm1, xmm0
movdqu xmmword [rdi + 0xf0], xmm1
movdqu xmm2, xmm0
movdqu xmm3, xmm1
mov rax, 7
movdqu xmm11, xmm2
movdqu xmm12, xmm2
movdqu xmm13, xmm3
pclmulqdq xmm11, xmm0, 0
pclmulqdq xmm12, xmm0, 0x11
pclmulqdq xmm13, xmm1, 0
pxor xmm13, xmm11
pxor xmm13, xmm12
movdqu xmm4, xmm13
pslldq xmm4, 8
psrldq xmm13, 8
pxor xmm11, xmm4
pxor xmm12, xmm13
movdqu xmm2, xmm14
pclmulqdq xmm2, xmm11, 1
pshufd xmm11, xmm11, 0x4e
pxor xmm11, xmm2
movdqu xmm2, xmm14
pclmulqdq xmm2, xmm11, 1
pshufd xmm11, xmm11, 0x4e
pxor xmm2, xmm11
pxor xmm2, xmm12
movdqu xmmword [rdi + 0xc0], xmm2
pshufd xmm3, xmm2, 0x4e
pxor xmm3, xmm2
movdqu xmmword [rdi + 0xd0], xmm3
dec rax
lea rdi, [rdi - 0x20]
jne 0x4833d0
ret
Function at 0x486fe0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4870aa
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call sym.internal_bytealg.IndexByteString.abi0
xorps xmm15, xmm15
mov r14, qword [0x00653df8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x48708f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004bd4e0]
xor ebx, ebx
mov rcx, rdx
call sym.runtime.makeslice
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call sym.syscall.encodeWTF16
inc rbx
cmp rcx, rbx
jae 0x48707e
mov edi, 1
lea rsi, [0x004bd4e0]
call sym.runtime.growslice
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x00535048]
lea rsi, [0x00534778]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.syscall.UTF16FromString
Function at 0x4a6da0
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4a74df
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
movabs rcx, 0xcbf29ce484222325
jmp 0x4a6dcd
lea rax, [rdx + 0x10]
dec rbx
mov rcx, rsi
test rbx, rbx
jle 0x4a7051
mov rdx, rax
mov rsi, qword [rax]
nop dword [rax]
test rsi, rsi
je 0x4a707d
mov edi, dword [rsi + 0x10]
shr edi, 1
mov r8, qword [rax + 8]
and edi, 0x3f
lea rax, [0x00536a00]
jmp qword [rax + rdi*8]
mov rax, rcx
add rsp, 0x10
pop rbp
ret
lea rax, [0x004bd3e0]
lea rbx, [0x00534ec0]
call sym.runtime.gopanic
inc rax
cmp rax, r8
jge 0x4a70a2
mov r9, qword [rsi + rax*8]
xor r10d, r10d
nop
jmp 0x4a70d7
lea rdi, [0x004bd460]
mov rsi, rcx
movabs rcx, 0x100000001b3
jmp 0x4a6dc3
movzx r11d, r9b
xor rcx, r11
inc r10
shr r9, 8
movabs r11, 0x100000001b3
imul rcx, r11
cmp r10, 8
jl 0x4a70bb
jmp 0x4a7090
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp sym.internal_bisect.Hash

Function at 0x4a7680
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x4a7697
inc rax
cmp rax, 4
jge 0x4a76af
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x4a7694
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x4a76c0
inc rax
cmp rax, 4
jge 0x4a76ce
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x4a76f7
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x4a76db
jmp 0x4a76bd
Function at 0x14458735d
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + rbx - 0xba36], r8
sub bpl, bpl
jge 0x1445e75c5

Function at 0x1445a59eb
Capabilities:
Encode data using base64

Disassembly:
rol edx, 3
lea rbp, [rcx + rbp*2 - 0x26ebfe70]
and word [rsp + rax + 0x58c1fd00], cx
dec ecx
bswap edx
adc word [rsp + rbx*2 - 0x126], 0x778e
bswap eax
lea rsi, [rcx*2 + 0x578b33a5]
mov qword [rsp + rbx*4 - 0x244], r8
or ebx, ebp
jg 0x1445dc0f9
xor dword [rsp + rcx - 0x616d150], edx
mov r8, qword [rsp + rcx - 0x616d150]
rol bp, 0xe7
movsxd rdx, edx
sal ecx, cl
dec ebp
lea rcx, [r9*8 + 0x7336f219]
add r11, rdx
call fcn.1445a87f3
mov qword [rsp + rbx - 0x93], rbp
xchg word [rsp + rbx*2 - 0x123], bp
mov word [r10 + rbx*2 - 0x126], ax
lea rcx, [rdx + r9*2 + 0x6175ba0]
push rbx
lea rdi, [rdi + rbx*2 - 0x12a]
sub qword [rsp + rbx - 0x8b], rbp
mov edx, dword [rbx + rdi - 0x93]
xor edx, r8d
lea rax, [rbx - 0x58c1fced]
bswap edx
sar ebp, cl
setp r9b
xor edx, 0x692cb696
and al, byte [rsp + rbx - 0x84]
jns 0x14458c1a3

Function at 0x1445b2760
Capabilities:
Encode data using base64

Disassembly:
add rbp, r9
not eax
mov qword [rsp + rbx*8 - 0x7db300], r8
and ecx, esi
jge 0x1445a59c8
shr bpl, 6
lea rdi, [rax + rdi - 0x3c6bb06f]
xor rsi, r8
mov qword [rsp + rax - 0x3c6bb059], rax
lea rsi, [rsi + rbp*4 - 0xb62e84e]
xor al, 0x1e
xor rsi, 0xffffffffe615b682
mov r9d, edx
pop r9
push rbp
ror rsi, 3
dec rsi
jmp 0x14459a0a0

Function at 0x1445b3c8a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x14458f233
push 0xffffffffc7b33383
dec ebx
lea rsp, [rsp + 8]
jne 0x1445f2622
mov rax, qword [rbp + riz]
push 0x13189602
jmp 0x1445a0a94
mov r8, rax
jmp 0x14457e474
push 0xffffffff801e27a2
mov rcx, rax
lea rsp, [rsp + 0x10]
jmp 0x14457e474
push 0xffffffffc3897e05
cmp ebx, 2
push 0x1bd3ba0
not word [rsp + 3]
lea rsp, [rsp + 0x10]
jne 0x14461220b
jmp 0x1445e60e6
jmp 0x1445e3757
call fcn.1445dfb94
mov edx, 0x960b7827
mov rdx, rax
jmp 0x14457e474
mov rax, qword [rbp + rbx*8]
push 0xfffffffffe201ca4
cmp ebx, 1
lea rsp, [rsp + 8]
jne 0x1445baac6
call fcn.1445b3c8a
cmp ebx, 3
jne 0x1445da4be
mov r8d, 0x9cbb30bc
not r8b
jmp 0x1445a2812
Function at 0x140027c84
Capabilities:
Clear file content

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
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001b594
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b594
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027dd4
cmp rax, 0xffffffffffffffff
je 0x140027dd4
xor edi, edi
test rbp, rbp
jle 0x140027d7f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001dea8
mov rbx, rax
test rax, rax
jne 0x140027d0c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027d75
mov edx, 0x8000
mov ecx, r14d
call fcn.140018f00
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001c270
cmp eax, 0xffffffff
je 0x140027d55
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027d1c
mov edx, r15d
mov ecx, r14d
call fcn.140018f00
jmp 0x140027d75
cmp byte [rsi + 0x38], dil
je 0x140027d6c
cmp dword [rsi + 0x34], 5
jne 0x140027d6c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027d75
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019c58
jmp 0x140027de8
jns 0x140027de8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b594
cmp rax, 0xffffffffffffffff
jne 0x140027da0
cmp byte [rsi + 0x30], dil
je 0x140027de8
mov edi, dword [rsi + 0x2c]
jmp 0x140027de8
mov ecx, r14d
call fcn.140017a2c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027de8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027de8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027de1
mov eax, dword [rsi + 0x2c]
jmp 0x140027de6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b594
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140028ee0
Capabilities:
Parse pe header

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

Function at 0x100411cb0
Capabilities:
Encode data using xor

Disassembly:
movsb byte [rdi], byte [rsi]
adc bh, ch
scasb al, byte [rdi]
int1
mov esp, 0xdc1b1771
loopne 0x100411d2c
adc al, 0xb7
lahf
test eax, 0x8dc85610
movabs dword [0x2f2eec084cbef71f], eax
invalid
mov esi, 0x2eec084c
invalid
Function at 0x1800051c0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x58
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r9d, 1
mov qword [rsp + 0x38], 0
xor r8d, r8d
mov dword [rsp + 0x20], 0xf0000040
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x18000523a
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x18000525e
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18000a000
add rsp, 0x58
ret
mov ecx, 2
call fcn.18000c1ec
mov rcx, rax
lea rdx, str.error_CryptAcquireContextW
call fcn.180005170
mov ecx, 1
call fcn.180014618
int3
mov ecx, 2
call fcn.18000c1ec
mov rcx, rax
lea rdx, str.error_CryptGenRandom
call fcn.180005170
mov ecx, 1
call fcn.180014618
int3
Function at 0x180008030
Capabilities:
Receive http response

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x1040
call fcn.180024010
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov rbp, rcx
mov ebx, 0x1000
mov ecx, ebx
mov r15, r8
mov r14, rdx
call qword [sym.imp.ProcessHacker.exe_PhAllocate]
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, ebx
mov rsi, rax
xor edi, edi
call fcn.18000b670
lea r9, [rsp + 0x20]
mov r8d, ebx
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1800080f6
nop
mov ecx, dword [rsp + 0x20]
test ecx, ecx
je 0x1800080f6
lea eax, [rcx + rdi]
cmp ebx, eax
jae 0x1800080c3
add ebx, ebx
mov rcx, rsi
mov edx, ebx
call qword [sym.imp.ProcessHacker.exe_PhReAllocate]
mov ecx, dword [rsp + 0x20]
mov rsi, rax
mov r8d, ecx
lea rdx, [rsp + 0x30]
mov ecx, edi
add rcx, rsi
call fcn.180024080
add edi, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov r8d, 0x1000
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x1800080a0
lea eax, [rdi + 1]
cmp ebx, eax
jae 0x18000810c
lea edx, [rbx + 1]
mov rcx, rsi
call qword [sym.imp.ProcessHacker.exe_PhReAllocate]
mov rsi, rax
mov byte [rdi + rsi], 0
mov eax, 1
mov dword [r15], edi
mov qword [r14], rsi
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.18000a000
mov rbx, qword [rsp + 0x1088]
add rsp, 0x1040
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800083f0
Capabilities:
Hash data using sha256
Read file on windows
Set file attributes

Disassembly:
push rbp
push rbx
push rdi
push r13
lea rbp, [rsp - 0x1018]
mov eax, 0x1118
call fcn.180024010
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xff0], rax
mov rax, qword [rdx]
xor edi, edi
mov qword [rsp + 0x1148], rsi
mov rbx, rcx
mov qword [rsp + 0x60], r9
mov esi, edi
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x78], 0x6a09e667
mov dword [rsp + 0x7c], 0xbb67ae85
mov dword [rbp - 0x80], 0x3c6ef372
mov dword [rbp - 0x7c], 0xa54ff53a
mov dword [rbp - 0x78], 0x510e527f
mov dword [rbp - 0x74], 0x9b05688c
mov dword [rbp - 0x70], 0x1f83d9ab
mov dword [rbp - 0x6c], 0x5be0cd19
test rax, rax
je 0x1800085f3
mov qword [rsp + 0x1110], r12
mov qword [rsp + 0x1108], r14
mov qword [rsp + 0x1100], r15
nop dword [rax]
mov qword [rsp + 0x40], rdi
lea rax, [rbp - 0x10]
mov qword [rsp + 0x38], rdi
xor r9d, r9d
mov dword [rsp + 0x30], 0x1000
xor r8d, r8d
mov qword [rsp + 0x28], rax
xor edx, edx
lea rax, [rbp - 0x20]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
mov r13d, eax
test eax, eax
js 0x1800085b3
mov r14, qword [rbp - 0x18]
lea rdi, [rbp - 0x10]
mov ebx, r14d
test r14d, r14d
je 0x18000859b
mov r15d, esi
mov r12d, 0x40
and r15d, 0x3f
add esi, r14d
sub r12d, r15d
mov dword [rsp + 0x70], esi
cmp esi, r14d
jae 0x180008514
inc dword [rsp + 0x74]
test r15d, r15d
je 0x180008553
cmp r14d, r12d
jb 0x180008553
mov eax, r15d
lea rcx, [rbp - 0x68]
add rcx, rax
mov r8d, r12d
lea rdx, [rbp - 0x10]
call fcn.180024080
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x70]
call fcn.180005610
mov esi, dword [rsp + 0x70]
lea rdi, [rbp - 0x10]
add rdi, r12
sub ebx, r12d
xor r15d, r15d
cmp ebx, 0x40
jb 0x18000857e
mov esi, ebx
shr rsi, 6
nop
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.180005610
add ebx, 0xffffffc0
add rdi, 0x40
sub rsi, 1
jne 0x180008560
mov esi, dword [rsp + 0x70]
test ebx, ebx
je 0x18000859b
mov eax, r15d
lea rcx, [rbp - 0x68]
add rcx, rax
mov r8d, ebx
mov rdx, rdi
call fcn.180024080
mov esi, dword [rsp + 0x70]
mov rbx, qword [rsp + 0x58]
mov edi, 0
mov eax, r14d
sub qword [rsp + 0x50], rax
jne 0x1800084a0
mov r9, qword [rsp + 0x60]
mov r14, qword [rsp + 0x1108]
mov r12, qword [rsp + 0x1110]
mov r15, qword [rsp + 0x1100]
mov rsi, qword [rsp + 0x1148]
mov ecx, 0x80000000
lea eax, [rcx + r13]
test ecx, eax
jne 0x1800085fa
cmp r13d, 0xc0000011
je 0x1800085fa
mov eax, r13d
jmp 0x18000862c
mov r13d, dword [rsp + 0x50]
jmp 0x1800085d0
mov rdx, r9
lea rcx, [rsp + 0x70]
call fcn.180007c90
mov r9d, 8
mov qword [rsp + 0x68], rdi
lea r8, [rsp + 0x68]
mov dword [rsp + 0x20], 0xe
lea rdx, [rbp - 0x20]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
mov rcx, qword [rbp + 0xff0]
xor rcx, rsp
call fcn.18000a000
add rsp, 0x1118
pop r13
pop rdi
pop rbx
pop rbp
ret
Function at 0x18000a8d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x180000000], ax
jne 0x18000a961
movsxd rax, dword [0x18000003c]
lea rdx, [0x180000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x18000a961
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18000a961
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x18000a945
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x18000a93f
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x18000a947
add rdx, 0x28
jmp 0x18000a924
xor edx, edx
test rdx, rdx
jne 0x18000a950
xor al, al
jmp 0x18000a967
test dword [rdx + 0x24], 0x80000000
je 0x18000a95d
xor al, al
jmp 0x18000a967
mov al, 1
jmp 0x18000a967
xor al, al
jmp 0x18000a967
add rsp, 0x18
ret

Function at 0x180014618
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x180014438
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180014438
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180014438
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180014438
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180014438
cmp dword [rcx + 0x84], 0xe
jbe 0x180014438
cmp dword [rcx + 0xf8], esi
je 0x180014438
mov ecx, r14d
call fcn.180014580
mov ecx, 2
call fcn.18001aca4
nop
cmp byte [0x180034220], 0
jne 0x180014502
mov r15d, 1
mov eax, r15d
xchg dword [0x180034214], eax
test ebx, ebx
jne 0x1800144ab
mov rdi, qword [section..data]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x180034218]
cmp rcx, rax
je 0x1800144a2
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.180005290]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x180034248]
jmp 0x1800144b7
cmp ebx, r15d
jne 0x1800144bd
lea rcx, [0x180034260]
call fcn.180014e78
nop
test ebx, ebx
jne 0x1800144d4
lea rdx, [0x180025580]
lea rcx, [0x180025560]
call fcn.180014624
lea rdx, [0x180025590]
lea rcx, [0x180025588]
call fcn.180014624
movzx eax, byte [0x180034220]
test esi, esi
cmove eax, r15d
mov byte [0x180034220], al
jmp 0x180014502
mov ecx, 2
call fcn.18001acf8
test esi, esi
jne 0x180014519
mov ecx, r14d
call fcn.180014534
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1800143c8
Function at 0x180016824
Capabilities:
Get geographical location

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, 0x20
mov edi, r9d
mov rsi, r8
mov ebp, edx
lea r9, str.GetLocaleInfoEx
mov r14, rcx
lea r8, [0x1800276f8]
lea rdx, str.GetLocaleInfoEx
mov ecx, 0xc
call fcn.18001646c
mov rbx, rax
test rax, rax
je 0x180016887
mov rcx, rax
call qword [fcn.180005290]
mov r9d, edi
mov r8, rsi
mov edx, ebp
mov rcx, r14
call rbx
jmp 0x1800168a1
xor edx, edx
mov rcx, r14
call fcn.180016b8c
mov ecx, eax
mov r9d, edi
mov r8, rsi
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x180001180
Capabilities:
Contain obfuscated stackstrings
Get windows directory from kuser_shared_data

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor esi, esi
mov dword [rbp - 0x19], 0x73005c
mov edx, 0x7ffe0030
mov word [rbp - 0x11], si
mov word [rbp + 0x13], si
mov rbx, rcx
mov word [rbp + 3], si
mov dword [rbp - 0x15], 0x730079
mov dword [rbp + 7], 0x650074
mov dword [rbp + 0xb], 0x33006d
mov dword [rbp + 0xf], 0x5c0032
mov dword [rbp - 9], 0x6f0077
mov dword [rbp - 5], 0x360077
mov dword [rbp - 1], 0x5c0034
call fcn.180001b6c
lea rdx, [rbp - 0x19]
call fcn.180001ac0
lea r9d, [rsi + 0x40]
mov qword [rsp + 0x20], rsi
mov ecx, r9d
lea rdi, [rbp + 0x17]
xor eax, eax
lea r8, [rbp + 0x17]
rep stosb byte [rdi], al
or rcx, 0xffffffffffffffff
mov qword [rbp + 0x17], r9
xor edx, edx
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x180001230
mov eax, dword [rbp + 0x4f]
lea rdx, [rbp - 9]
shr eax, 1
test al, 1
jne 0x180001234
lea rdx, [rbp + 7]
mov rcx, rbx
call fcn.180001ac0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret