joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ef60
Capabilities:
Check for peb beingdebugged flag

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x42f0c9
push rbp
mov rbp, rsp
sub rsp, 0x78
mov rdx, qword [rax + 0x280]
nop dword [rax]
test rdx, rdx
je 0x42f0c3
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x98], rcx
mov rdi, qword [rax + 0x290]
movsxd rcx, dword [0x00597e9c]
mov rbx, rdx
mov eax, 4
call fcn.0046c240
mov qword [rsp + 0x38], rax
lea rax, [0x005978d8]
call fcn.0042e660
lea edx, [rax + 2]
mov esi, 0xaaaaaaab
imul rsi, rdx
shr rsi, 0x21
lea edx, [rsi + rsi*2]
sub eax, edx
lea edx, [rax + 2]
mov dword [rsp + 0x34], edx
mov rsi, qword [rsp + 0x88]
mov rcx, qword [rsi + 0x280]
mov rsi, qword [rsi + 0x290]
mov eax, 1
mov rbx, qword [rsp + 0x98]
mov rdi, qword [rsp + 0x38]
mov r8d, 1
call fcn.0042e960
mov qword [rsp + 0x40], rax
call fcn.0042e8a0
mov qword [rsp + 0x50], rax
test byte [rax], al
mov edx, dword [rsp + 0x34]
mov esi, edx
shl rdx, 5
mov qword [rsp + 0x48], rdx
lea r8, [0x00597b60]
lea rsi, [r8 + rsi*8]
mov qword [rsp + 0x58], rsi
mov rax, rsi
call fcn.0040bf40
mov rdx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
inc qword [rsi + rdx + 0x20]
mov r8, qword [rsp + 0x98]
add qword [rsi + rdx + 0x30], r8
mov rax, qword [rsp + 0x58]
call fcn.0040c180
lea rdx, [0x0042f100]
mov qword [rsp + 0x60], rdx
mov rdx, qword [rsp + 0x90]
mov qword [rsp + 0x68], rdx
mov rdx, qword [rsp + 0x40]
mov qword [rsp + 0x70], rdx
lea rdx, [rsp + 0x60]
mov qword [rsp], rdx
call fcn.0046d860
xorps xmm15, xmm15
mov r14, qword [0x00597ad8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
add rsp, 0x78
pop rbp
ret
add rsp, 0x78
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.0046d980
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp fcn.0042ef60
Function at 0x4443a0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4445ac
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rsp + 0x30], rax
lea rax, [0x00552198]
nop
call fcn.0040ca00
call fcn.0040ca60
jmp 0x4443ea
dec edx
mov dword [rcx + 0x18c], edx
movzx edx, dl
mov rax, qword [rcx + rdx*8 + 0x190]
nop
call fcn.0044a1e0
call fcn.00446a00
mov rcx, qword [rsp + 0x30]
mov edx, dword [rcx + 0x18c]
cmp dword [rcx + 0x188], edx
jne 0x4443cc
mov rax, qword [rcx + 0x990]
test rax, rax
je 0x444423
call fcn.0044a1e0
call fcn.00446a00
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x990], 0
mov rcx, qword [r14 + 0x30]
mov rax, qword [rcx + 0xa0]
call fcn.0044a280
test byte [rax], al
add rax, 0x2288
mov rbx, qword [rsp + 0x30]
lea rcx, [rbx + 0x2288]
mov rbx, rcx
call fcn.004548a0
cmp dword [0x005978cc], 0
je 0x444479
mov rax, qword [rsp + 0x30]
nop dword [rax]
call fcn.00432360
mov rax, qword [rsp + 0x30]
lea rcx, [rax + 0x1248]
mov rax, rcx
call fcn.00426360
mov rax, qword [rsp + 0x30]
lea rcx, [rax + 0x9c0]
mov ebx, 0x400
mov rax, rcx
call fcn.00467ea0
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x9b0], 0
mov qword [rax + 0x9b8], 0x80
lea rcx, [rax + 0x9c0]
cmp dword [0x00597b10], 0
je 0x4444de
nop dword [rax]
call fcn.0046f8e0
mov qword [r11], rcx
mov rdx, qword [rax + 0x9a8]
mov qword [r11 + 8], rdx
mov rdx, qword [rax + 0x11c8]
mov qword [r11 + 0x10], rdx
mov qword [rax + 0x9a8], rcx
mov qword [rax + 0x11c8], 0
lea rcx, [rax + 0x78]
mov ebx, 0x100
mov rax, rcx
nop dword [rax]
call fcn.00467ea0
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x68], 0
mov qword [rcx + 0x70], 0x20
lea rdx, [rcx + 0x78]
cmp dword [0x00597b10], 0
je 0x444537
call fcn.0046f8c0
mov qword [r11], rdx
mov rax, qword [rcx + 0x60]
mov qword [r11 + 8], rax
mov qword [rcx + 0x60], rdx
lea rax, [0x004445e0]
mov qword [rsp + 0x10], rax
mov qword [rsp + 0x18], rcx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.0046d860
xorps xmm15, xmm15
mov r14, qword [0x00597ad8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x38]
mov rax, rcx
call fcn.00413aa0
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x38], 0
call fcn.00443f20
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x1220], 0
mov dword [rax + 4], 4
add rsp, 0x20
pop rbp
ret
mov qword [rsp + 8], rax
call fcn.0046d980
mov rax, qword [rsp + 8]
nop dword [rax + rax]
jmp fcn.004443a0
Function at 0x44bda0
Capabilities:
Access peb ldr_data

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x78
mov rcx, r14
test rcx, rcx
je 0x44bdeb
mov rcx, qword [rcx + 0x30]
mov rcx, qword [rcx + 0x90]
nop dword [rax + rax]
test rcx, rcx
je 0x44bdeb
mov qword [rsp + 0x70], rcx
mov rax, rdi
call fcn.004086c0
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x50], 0
jmp 0x44bdfb
mov eax, 1
add rsp, 0x78
pop rbp
ret
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call fcn.00408080
mov rcx, qword [sym.imp.kernel32.dll_RtlLookupFunctionEntry]
lea rdx, [rsp + 0x60]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], 0
call fcn.00435c60
xorps xmm15, xmm15
mov r14, qword [0x00597ad8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x44bedf
mov qword [rsp + 0x58], rcx
mov rax, qword [rsp + 0x68]
call fcn.00408080
mov rcx, qword [rsp + 0x60]
mov rdx, qword [sym.imp.kernel32.dll_RtlVirtualUnwind]
mov rbx, qword [rsp + 0x68]
lea rdi, [rsp + 0x50]
mov qword [rsp], rdx
mov qword [rsp + 8], 0
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], rax
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], 0
call fcn.00435f80
xorps xmm15, xmm15
mov r14, qword [0x00597ad8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x70]
cmp qword [rdx], rcx
ja 0x44bedf
cmp qword [rdx + 8], rcx
ja 0x44bdf6
mov eax, 1
add rsp, 0x78
pop rbp
ret

Function at 0x45be60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x45bed7
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x27], dil
test rcx, rcx
jne 0x45be84
mov edx, 1
jmp 0x45beb7
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rax
mov rax, rcx
mov rbx, rsi
call fcn.0045b0c0
xor eax, 1
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x30]
movzx edi, byte [rsp + 0x27]
mov edx, eax
mov rax, qword [rsp + 0x38]
test dl, dl
je 0x45becf
mov byte [rsp + 0x26], dl
nop
call fcn.0045ad00
movzx edx, byte [rsp + 0x26]
movzx edi, byte [rsp + 0x27]
mov esi, edx
add rsp, 0x40
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov byte [rsp + 0x20], dil
mov qword [rsp + 0x28], rsi
call fcn.0046d980
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
movzx edi, byte [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
jmp fcn.0045be60
Function at 0x45f840
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x45f8f0
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rdi
lea rax, [rsp + 0x68]
call fcn.004506e0
mov rcx, qword [rsp + 0x58]
test byte [rcx], al
lea rdx, [rcx + 0x10]
mov rbx, qword [rax]
mov rsi, qword [rax + 8]
mov rax, rdx
mov rcx, rsi
call fcn.0045bf20
test bl, bl
je 0x45f8ea
mov qword [rsp + 0x18], rax
lea rcx, [0x0045f940]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x20]
mov qword [rsp], rcx
call fcn.0046d860
xorps xmm15, xmm15
mov r14, qword [0x00597ad8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x18]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0046d980
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.0045f840

Function at 0x46c240
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x46c2ef
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x004598c0]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.0046d860
xorps xmm15, xmm15
mov r14, qword [0x00597ad8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0046d980
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.0046c240
Function at 0x46f780
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4047a3
push rbp
mov rbp, rsp
sub rsp, 0x18
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
call fcn.00409fc0
add rsp, 0x18
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0046d980
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x404780
cmp byte [0x005978ad], 0
je 0x46f795
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x46c9c0
jmp 0x404780

Function at 0x46f7a0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x40a3f1
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x28], rbx
call fcn.0040a4c0
mov rcx, qword [0x00597b88]
xor rcx, rax
mov rbx, qword [rsp + 0x28]
xor rbx, rax
xor rbx, qword [0x00597b80]
mov rax, rcx
call fcn.0040a4a0
mov rbx, rax
movabs rax, 0x1d8e4e27c47d124b
call fcn.0040a4a0
add rsp, 0x10
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
nop dword [rax + rax]
call fcn.0046d980
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x40a3a0
cmp byte [0x005978ad], 0
je 0x46f7d5
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x00597ec0]
aesenc xmm0, xmmword [0x00597ed0]
aesenc xmm0, xmmword [0x00597ee0]
movq rax, xmm0
ret
jmp 0x40a3a0

Function at 0x46f7e0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x40a471
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x28], rbx
call fcn.0040a500
mov rcx, qword [0x00597b88]
xor rcx, rax
mov rbx, qword [rsp + 0x28]
xor rbx, rax
xor rbx, qword [0x00597b80]
mov rax, rcx
call fcn.0040a4a0
mov rbx, rax
movabs rax, 0x1d8e4e27c47d1247
call fcn.0040a4a0
add rsp, 0x10
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
nop dword [rax + rax]
call fcn.0046d980
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x40a420
cmp byte [0x005978ad], 0
je 0x46f816
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x00597ec0]
aesenc xmm0, xmmword [0x00597ed0]
aesenc xmm0, xmmword [0x00597ee0]
movq rax, xmm0
ret
jmp 0x40a420

Function at 0x471460
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x471494
mov rcx, 0x28
jmp 0x47149f
shl rcx, 3
add rcx, 0x1480
mov qword [0x00597ad8], rcx
pop rbp
ret
Function at 0x48a5a0
Capabilities:
Hash data using fnv

Disassembly:
movzx ecx, bl
xor rax, rcx
movabs rcx, 0x100000001b3
imul rax, rcx
ret

Function at 0x48a5c0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
xor edx, edx
jmp 0x48a5e1
movzx esi, byte [rbx + rdx]
xor rax, rsi
inc rdx
movabs rsi, 0x100000001b3
imul rax, rsi
cmp rcx, rdx
jg 0x48a5c9
ret

Function at 0x48a600
Capabilities:
Hash data using fnv

Disassembly:
xor ecx, ecx
jmp 0x48a620
movzx edx, bl
xor rax, rdx
inc rcx
shr rbx, 8
movabs rdx, 0x100000001b3
imul rax, rdx
nop
cmp rcx, 8
jl 0x48a604
ret

Function at 0x48a640
Capabilities:
Hash data using fnv

Disassembly:
xor ecx, ecx
jmp 0x48a660
movzx edx, bl
xor rax, rdx
inc rcx
shr ebx, 8
movabs rdx, 0x100000001b3
imul rax, rdx
nop
cmp rcx, 4
jl 0x48a644
ret

Function at 0x48f0c0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x48f18a
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 fcn.00403c40
xorps xmm15, xmm15
mov r14, qword [0x00597ad8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x48f16f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004a5740]
xor ebx, ebx
mov rcx, rdx
call fcn.00469e40
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 fcn.0048f860
inc rbx
cmp rcx, rbx
jae 0x48f15e
mov edi, 1
lea rsi, [0x004a5740]
call fcn.00469f00
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, [0x004ce440]
lea rsi, [0x004cdc48]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0046d980
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.0048f0c0
Function at 0x140018380
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x14001839a
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001845c
bt eax, 0xa
jae 0x14001845c
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400183c0
mov rdx, qword [rbx]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400183d0
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x20]
call fcn.14000b2e0
nop
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call fcn.14002b8b0
shr rax, 0x20
test eax, eax
jne 0x140018498
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14001845c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018457
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400184a5
call fcn.140052b20
cmp qword [rbx + 0x18], 8
jb 0x140018466
mov rbx, qword [rbx]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140018487
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140018487
xor al, al
jmp 0x14001848d
mov al, 1
jmp 0x14001848d
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
lea r8, [rsp + 0x20]
mov edx, eax
call fcn.140017a70
nop
call fcn.14005e9d0
int3
Function at 0x14001cad0
Capabilities:
Get session information
Get session user name
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400c0200]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], rbp
lea r8d, [rbp + 7]
lea rdx, str.UNKNOWN
call fcn.14000b2e0
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x48], ebp
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
jne 0x14001cb47
lea rcx, str.Error_retrieving_session_id_for_generating_log_name.
jmp 0x14001cbfb
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x40]
mov r8d, 5
mov edx, eax
xor ecx, ecx
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x14001cbf4
mov r9, qword [rsp + 0x40]
test r9, r9
je 0x14001cbf4
mov eax, dword [rsp + 0x48]
cmp eax, 2
jbe 0x14001cbda
mov edx, eax
shr rdx, 1
dec rdx
mov rax, qword [rdi + 0x18]
cmp rdx, rax
ja 0x14001cbc5
mov rsi, rdi
cmp rax, 8
jb 0x14001cb9e
mov rsi, qword [rdi]
mov qword [rdi + 0x10], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
mov rcx, rsi
call fcn.1400550b0
mov word [rbx + rsi], bp
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
jmp 0x14001cc01
mov rcx, rdi
call fcn.1400141b0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
jmp 0x14001cc01
lea rcx, str.WTSQuerySessionInformation_failed_to_retrieve_the_size_of_the_current_user_name_for_the_log_name.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
jmp 0x14001cc01
lea rcx, str.WTSQuerySessionInformation_failed_to_retrieve_current_user_name_for_the_log_name.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rax, rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140052ab0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140026530
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400c0200]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rdi, rcx
mov qword [rsp + 0x20], rcx
xor esi, esi
mov qword [rbp + 0x158], rsi
lea rax, [rsp + 0x58]
mov qword [rbp + 0x160], rax
mov dword [rbp + 0x168], 0x200
mov edx, 0x100
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
test eax, eax
je 0x14002660e
nop dword [rax]
mov edx, dword [rbp + 0x168]
mov eax, edx
shr eax, 1
mov r8d, ecx
cmp ecx, eax
jb 0x14002666c
lea rbx, [r8 + r8]
cmp rbx, rdx
jbe 0x1400265f6
mov rcx, rbx
call fcn.140052ad0
mov rcx, qword [rbp + 0x158]
mov qword [rbp + 0x158], rax
test rcx, rcx
je 0x1400265e5
call fcn.140052b0c
mov rax, qword [rbp + 0x158]
mov edx, ebx
mov dword [rbp + 0x168], ebx
mov qword [rbp + 0x160], rax
jmp 0x1400265fd
mov rax, qword [rbp + 0x160]
shr edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
test eax, eax
jne 0x1400265a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rax, [0x1400cd060]
mov qword [rsp + 0x28], rax
mov byte [rdi + 0x20], 0
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
mov rcx, qword [rbp + 0x158]
test rcx, rcx
je 0x140026641
call fcn.140052b0c
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140052ab0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
mov rdx, qword [rbp + 0x160]
lea rcx, [rsp + 0x38]
call fcn.14000b2e0
mov byte [rdi + 0x20], 1
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rdi + 0x10], xmm1
jmp 0x140026630

Function at 0x140029a90
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 0x140029b08
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140029b08
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 0x140029b08
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140029afc
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140029b1a
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140029aea
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 0x140029b0a
Function at 0x14002b650
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14002b6d4
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14009f780]
cmp byte [rcx + rax], 0
je 0x14002b6d4
dec r8
sub rdx, 1
jne 0x14002b6ba
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140053ac0
Capabilities:
Parse pe header

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

Function at 0x14005ebb8
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 0x14005ebef
call fcn.14005f640
mov dword [rax], 0x16
call fcn.14005e9b0
xor eax, eax
jmp 0x14005ec7d
mov rdx, r9
mov rcx, r8
call fcn.14005eb54
mov rbx, rax
test rax, rax
je 0x14005ec7a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14005ea80]
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 0x14005ec67
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14005f5b0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14005ec4e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14005ec5d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14006e5a4
jmp 0x14005ec7a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14005ec77
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 0x1400736f4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14007370a
mov al, 1
jmp 0x14007376a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14007371b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140073768
mov ecx, dword [rcx + 0x18]
nop
call fcn.140078db8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140073768
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140073768
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140073768
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14007376a
xor al, al
add rsp, 0x20
pop rbx
ret