joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14014f8d4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.14014f1a0
mov ebx, eax
test eax, eax
jne 0x14014f904
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x14014f967
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14014f95e
test al, 0x10
je 0x14014f95e
bt eax, 0xa
jae 0x14014f957
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.14014f978
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x14014f953
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14014f953
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x14014f95e
and dword [rsp + 0x3c], 0
jmp 0x14014f963
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140150d88
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140150dd2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140150dd2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140150dd2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140150dd2
cmp dword [rcx + 0x84], 0xe
jbe 0x140150dd2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140150dd4
xor al, al
add rsp, 0x28
ret
Function at 0x14003fbc0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
mov ebp, 0xfffd
nop word [rax + rax]
movzx ecx, word [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x14003fca3
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14003fca3
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14003fcc1
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14003fc93
cmp word [rax], 0x5c
jne 0x14003fc8c
lea rdx, [rax + 2]
cmp rdx, rcx
je 0x14003fc8c
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14003fc77
movzx ecx, word [rdx]
sub cx, 0x28
cmp cx, 1
jbe 0x14003fc89
test r8b, 0x10
jne 0x14003fc8c
movzx ecx, word [rdx]
sub cx, 0x7b
test bp, cx
jne 0x14003fc8c
mov rax, rdx
add rax, 2
mov qword [rbx], rax
mov rcx, rbx
call fcn.14003c600
test edi, edi
jne 0x14003fbf0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140023840
int3

Function at 0x140041b20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
mov ebx, ecx
mov rsi, r8
xor ecx, ecx
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx edx, bx
mov r8, rdi
mov rcx, rax
mov r14, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x140041c4c
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rdi
mov rcx, r14
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test rbx, rbx
je 0x140041c4c
test eax, eax
je 0x140041c4c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x140041c4c
mov rcx, qword [rsi]
mov dword [rbp - 0x20], 0xc1377b1
mov dword [rbp - 0x1c], 0x2dc7dba
mov dword [rbp - 0x18], 0x8dfb5cb2
mov dword [rbp - 0x14], 0xe3cc9990
mov dword [rbp - 0x10], 0x4d292caf
mov dword [rbp - 0xc], 0x5b97c295
mov dword [rbp - 8], 0x7a9bf929
mov dword [rbp - 4], 0x3eaaae47
cmp rcx, qword [rsi + 8]
je 0x140041beb
mov qword [rsi + 8], rcx
mov rax, qword [rsi + 0x10]
sub rax, rcx
mov qword [rbp + 0x38], rdi
cmp rdi, rax
jbe 0x140041c07
lea rdx, [rbp + 0x38]
mov rcx, rsi
call fcn.140041c70
xor ebx, ebx
test rdi, rdi
je 0x140041c48
nop
mov rdx, qword [rsi + 8]
mov rax, rbx
and eax, 0x1f
movzx ecx, byte [rbp + rax - 0x20]
xor cl, byte [r14 + rbx]
mov byte [rbp + 0x20], cl
cmp rdx, qword [rsi + 0x10]
je 0x140041c34
mov byte [rdx], cl
inc qword [rsi + 8]
jmp 0x140041c40
lea r8, [rbp + 0x20]
mov rcx, rsi
call fcn.140022f80
inc rbx
cmp rbx, rdi
jb 0x140041c10
mov al, 1
jmp 0x140041c4e
xor al, al
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x14000ac60
Capabilities:
Hash data with md5

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xe0]
sub rsp, 0x1e0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x210], rbx
mov rax, qword [0x140131088]
xor rax, rsp
mov qword [rbp + 0xd0], rax
mov rdi, rdx
mov rbx, rcx
xor esi, esi
mov qword [rbp + 0x50], rsi
mov dword [rbp + 0x58], 0x67452301
mov dword [rbp + 0x5c], 0xefcdab89
mov dword [rbp + 0x60], 0x98badcfe
mov dword [rbp + 0x64], 0x10325476
lea rcx, [rsp + 0x30]
call fcn.14000b0a0
nop
cmp qword [rbx + 0x18], 0x10
jb 0x14000acd2
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.14000c730
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.14000af90
nop
lea r8, [rbp + 0x30]
cmp qword [rbp + 0x48], 8
cmovae r8, qword [rbp + 0x30]
lea rdx, [rbp + 0x30]
cmovae rdx, qword [rbp + 0x30]
or rax, 0xffffffffffffffff
nop dword [rax]
lea rax, [rax + 1]
cmp word [r8 + rax*2], 0
jne 0x14000ad10
lea r8d, [rax + rax]
lea rcx, [rbp + 0x50]
call fcn.14007d2d0
lea r8, [rbp + 0x30]
cmp qword [rbp + 0x48], 8
cmovae r8, qword [rbp + 0x30]
lea rdx, [rbp + 0x30]
cmovae rdx, qword [rbp + 0x30]
or rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp word [r8 + rax*2], 0
jne 0x14000ad44
lea r8d, [rax + rax]
lea rcx, [rbp + 0x50]
call fcn.14007d2d0
lea rdx, [rbp + 0xc0]
lea rcx, [rbp + 0x50]
call fcn.14007d3d0
mov rbx, rsi
movzx r8d, byte [rbp + rbx + 0xc0]
lea rdx, [0x1400ea3b4]
lea rcx, [rbp + 0xb0]
call fcn.140009aa0
cmp byte [rbp + 0xb0], 0
jne 0x14000ad9a
mov r8, rsi
jmp 0x14000adaf
lea rax, [rbp + 0xb0]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14000ada5
lea rdx, [rbp + 0xb0]
mov rcx, rdi
call fcn.14000c010
inc rbx
cmp rbx, 0x10
jb 0x14000ad70
mov r8, qword [rbp + 0x48]
cmp r8, 8
jb 0x14000ade1
inc r8
mov rdx, qword [rbp + 0x30]
lea rcx, [rbp + 0x30]
call fcn.140008b70
mov qword [rbp + 0x48], 7
mov qword [rbp + 0x40], rsi
mov word [rbp + 0x30], si
lea rcx, [rbp - 0x38]
call fcn.14000afc0
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x38], rax
lea rcx, [rbp - 0x38]
call fcn.14009bad0
nop
xor eax, eax
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.14009d860
mov rbx, qword [rsp + 0x210]
add rsp, 0x1e0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140022de0
Capabilities:
Resolve dns

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x60
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rsi, rdx
mov rdi, rcx
xorps xmm0, xmm0
movdqu xmmword [rax - 0x28], xmm0
xor ebx, ebx
mov qword [rax - 0x18], rbx
cmp qword [rcx + 0x18], 0x10
jb 0x140022e1a
mov rcx, qword [rcx]
lea r9, [rsp + 0x40]
xor r8d, r8d
call fcn.140022b80
mov rbp, qword [rsp + 0x40]
test eax, eax
je 0x140022ea4
cmp qword [rdi + 0x18], 0x10
jb 0x140022e3a
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rbx, rax
call fcn.1400820a0
mov rcx, rax
mov r8, rbx
mov rdx, rdi
call fcn.14007f550
mov rbx, rax
test rax, rax
je 0x140022f53
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
xor ecx, ecx
mov qword [rsp + 0x2c], rcx
mov qword [rsp + 0x34], rcx
mov dword [rsp + 0x2c], eax
mov dword [rsi], 2
movups xmm0, xmmword [rsp + 0x2c]
movups xmmword [rsi + 4], xmm0
call fcn.1400820a0
mov rcx, rax
mov rdx, rbx
call fcn.14007f730
mov bl, 1
jmp 0x140022f55
mov rcx, rbx
mov rax, rbp
mov rdx, qword [rsp + 0x48]
cmp rbp, rdx
je 0x140022f53
test rcx, rcx
jne 0x140022ec4
cmp dword [rax], 0x17
cmove rcx, rax
test rbx, rbx
jne 0x140022ed0
cmp dword [rax], 2
cmove rbx, rax
add rax, 0x14
cmp rax, rdx
jne 0x140022eb8
test rcx, rcx
je 0x140022f3e
cmp byte [0x140139105], 0
jne 0x140022f3e
mov eax, dword [rcx]
mov dword [rsi], eax
movups xmm0, xmmword [rcx + 4]
movups xmmword [rsi + 4], xmm0
cmp byte [0x140139120], 0
jne 0x140022f3a
cmp byte [0x140139121], 0
jne 0x140022f3a
movups xmm1, xmmword [rcx + 4]
xor eax, eax
mov qword [rsp + 0x29], rax
mov dword [rsp + 0x31], eax
mov word [rsp + 0x35], ax
mov byte [rsp + 0x37], al
movsd qword [rsp + 0x28], xmm1
psrldq xmm1, 8
movd dword [rsp + 0x30], xmm1
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [0x140139120], xmm0
mov bl, 1
jmp 0x140022f55
test rbx, rbx
je 0x140022f53
mov eax, dword [rbx]
mov dword [rsi], eax
movups xmm0, xmmword [rbx + 4]
movups xmmword [rsi + 4], xmm0
mov bl, 1
jmp 0x140022f55
xor bl, bl
test rbp, rbp
je 0x140022f85
mov rcx, qword [rsp + 0x50]
sub rcx, rbp
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 3
mov r8, rdx
shr r8, 0x3f
add r8, rdx
mov rdx, rbp
call fcn.140022ab0
movzx eax, bl
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x1400243d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r9
mov rsi, r8
mov r9, qword [rcx + 0x28]
mov rax, rdx
mov rdi, rcx
test r9, r9
jne 0x140024409
mov eax, 3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov edx, 1
mov rcx, rax
call fcn.1400b10b0
test rax, rax
jne 0x140024452
test rsi, rsi
je 0x140024452
mov rcx, qword [rdi + 0x28]
call fcn.1400b0e04
test eax, eax
jne 0x1400243f4
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x140024440
call fcn.1400a8794
mov ecx, dword [rax]
mov dword [rbx], ecx
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
test rbx, rbx
je 0x14002445a
mov qword [rbx], rax
mov rbx, qword [rsp + 0x30]
mov eax, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140029a40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140029a73
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140029aba
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140029ab5
nop
cmp rbx, rcx
jae 0x140029aba
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140029aa0
cmp rbx, rcx
jb 0x140029abe
xor eax, eax
jmp 0x140029aca
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002a260
Capabilities:
Identify system language via api

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x2b0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x2e0], rbx
mov rax, qword [0x140131088]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rbx, rdx
mov rsi, rcx
xor edi, edi
mov dword [rsp + 0x38], edi
lea rcx, [rsp + 0xe0]
call fcn.140084010
nop
cmp qword [rbx + 0x10], rdi
je 0x14002a2d4
cmp qword [rbx + 0x18], 8
jb 0x14002a2b8
mov rbx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx r8d, ax
mov rdx, rbx
lea rcx, [rsp + 0xe0]
call fcn.140084580
jmp 0x14002a2eb
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx r8d, ax
lea rcx, [rsp + 0xe0]
call fcn.140084470
call fcn.140007ac0
mov rcx, rax
test rax, rax
jne 0x14002a303
mov ecx, 0x80004005
call fcn.140009900
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0xf4]
mov ecx, eax
shr ecx, 0x10
mov edx, dword [rsp + 0xf0]
mov r8d, edx
shr r8d, 0x10
movzx eax, ax
movzx r9d, dx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rdx, str._d._d._d._d
lea rcx, [rsp + 0x30]
call fcn.140030c70
mov rbx, qword [rsp + 0x30]
cmp dword [rbx - 8], 1
jle 0x14002a369
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.140021fe0
mov rbx, qword [rsp + 0x30]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rax
mov r8d, 3
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140020d50
nop
mov rdx, qword [rsp + 0x50]
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rsi + 0x10], rdi
cmp qword [rsi + 0x18], 0x10
jb 0x14002a3a4
mov rax, qword [rsi]
jmp 0x14002a3a7
mov rax, rsi
mov byte [rax], 0
or rbp, 0xffffffffffffffff
cmp byte [rdx], 0
je 0x14002a3bf
mov rdi, rbp
inc rdi
cmp byte [rdx + rdi], 0
jne 0x14002a3b6
mov r8, rdi
mov rcx, rsi
call fcn.140009260
nop
lea rax, [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
cmp rcx, rax
je 0x14002a3e0
call fcn.1400a24a4
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], ebp
sub ebp, 1
jg 0x14002a3f9
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
lea rcx, [rsp + 0xe0]
call fcn.140084190
mov rax, rsi
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.14009d860
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x2b0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002a430
Capabilities:
Create directory

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x140131088]
xor rax, rsp
mov qword [rbp - 8], rax
mov qword [rbp - 0x30], 7
xor edi, edi
mov qword [rbp - 0x38], rdi
mov word [rbp - 0x48], di
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rcx
lea rcx, [rbp - 0x48]
call fcn.140008be0
nop
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
mov rax, qword [rbp - 0x38]
lea rax, [rdx + rax*2]
lea rdx, [rbp - 0x48]
cmovae rdx, qword [rbp - 0x48]
mov ecx, edi
mov r8, rax
sub r8, rdx
inc r8
shr r8, 1
cmp rdx, rax
cmova r8, rdi
test r8, r8
je 0x14002a4d5
lea eax, [rdi + 0x2f]
nop
cmp word [rdx], 0x5c
jne 0x14002a4c9
mov word [rdx], ax
add rdx, 2
inc rcx
cmp rcx, r8
jne 0x14002a4c0
mov r8d, 1
lea rdx, [0x1400ee27c]
lea rcx, [rbp - 0x48]
call fcn.14002dd30
lea rbx, [rbp - 0x48]
mov rdx, qword [rbp - 0x48]
mov r8, qword [rbp - 0x30]
cmp r8, 8
cmovae rbx, rdx
nop
lea rcx, [rbp - 0x48]
cmp r8, 8
cmovae rcx, rdx
mov rax, qword [rbp - 0x38]
lea rax, [rcx + rax*2]
cmp rbx, rax
je 0x14002a5ee
cmp word [rbx], 0x2f
jne 0x14002a5bf
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], rdi
mov word [rbp - 0x28], di
lea r9, [rbp - 0x48]
cmp r8, 8
cmovae r9, rdx
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x28]
cmp r9, rbx
jne 0x14002a558
call fcn.140008e40
jmp 0x14002a56b
mov rax, rbx
sub rax, r9
sar rax, 1
mov qword [rsp + 0x20], rax
call fcn.14002f290
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
xor edx, edx
call fcn.1400b18bc
cmp eax, 0xffffffff
jne 0x14002a59d
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
call fcn.1400b197c
cmp eax, 0xffffffff
je 0x14002a5c8
mov r8, qword [rbp - 0x10]
cmp r8, 8
jb 0x14002a5b7
inc r8
mov rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x28]
call fcn.140008b70
mov rdx, qword [rbp - 0x48]
mov r8, qword [rbp - 0x30]
add rbx, 2
jmp 0x14002a500
mov r8, qword [rbp - 0x10]
cmp r8, 8
jb 0x14002a5e2
inc r8
mov rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x28]
call fcn.140008b70
xor bl, bl
mov r8, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x48]
jmp 0x14002a5f0
mov bl, 1
cmp r8, 8
jb 0x14002a602
inc r8
lea rcx, [rbp - 0x48]
call fcn.140008b70
movzx eax, bl
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14009d860
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14002c170
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rsp + 0x20]
cmp ax, 6
je 0x14002c197
cmp ax, 9
je 0x14002c197
xor al, al
add rsp, 0x58
ret
mov al, 1
add rsp, 0x58
ret

Function at 0x14002c1a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x140131088]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, r9
lea rax, [rsp + 0x38]
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x14002c280
xor edx, edx
mov dword [rsp + 0x30], 0x104
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.1400a1560
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.InstallLocation
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rdx, [rsp + 0x50]
mov ecx, 0x82
sub rdx, rbx
lea rax, [rcx + 0x7fffff7c]
test rax, rax
je 0x14002c263
movzx eax, word [rdx + rbx]
test ax, ax
je 0x14002c263
mov word [rbx], ax
add rbx, 2
sub rcx, 1
jne 0x14002c241
test rcx, rcx
lea rax, [rbx - 2]
cmovne rax, rbx
xor ecx, ecx
mov word [rax], cx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14009d860
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
Function at 0x14002cf40
Capabilities:
Accept command line arguments

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0xa0
mov qword [r11 - 0x58], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov rax, qword [0x140131088]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov qword [r11 - 0x38], 7
xor esi, esi
mov qword [r11 - 0x40], rsi
mov word [rsp + 0x58], si
xor r8d, r8d
lea rdx, [0x1400e6c40]
lea rcx, [r11 - 0x50]
call fcn.140008a20
nop
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x78]
call fcn.14002a260
mov rdi, rax
cmp qword [rax + 0x18], 0x10
jb 0x14002cfb0
mov rdi, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rdi
lea rax, [0x1400ee608]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1811
lea r9, str.WriteLogHeader
lea r8, str...includes_sunlogininclude_basepublic_func.cpp
mov edx, 1
lea rcx, [0x1401399a0]
call fcn.14007a380
nop
mov rax, qword [rsp + 0x90]
cmp rax, 0x10
jb 0x14002d05c
inc rax
mov rcx, qword [rsp + 0x78]
cmp rax, 0x1000
jb 0x14002d057
test cl, 0x1f
je 0x14002d02a
call fcn.1400a26d8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14002d039
call fcn.1400a26d8
int3
sub rcx, rax
cmp rcx, 8
jae 0x14002d048
call fcn.1400a26d8
int3
cmp rcx, 0x27
jbe 0x14002d054
call fcn.1400a26d8
int3
mov rcx, rax
call fcn.14009d844
mov qword [rsp + 0x90], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x88], rsi
mov byte [rsp + 0x78], 0
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x14002d092
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.140008b70
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14009d860
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140033720
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x38
mov ecx, 0x2801
lea rdi, [rsp + 0x58]
call fcn.14009e2ac
mov rbx, rax
mov byte [rax + 0x2800], 0
call fcn.140009890
mov r9, qword [rsp + 0x50]
mov r8d, 0x2800
mov qword [rsp + 0x28], rdi
mov rdx, rbx
mov qword [rsp + 0x20], 0
mov rcx, qword [rax]
or rcx, 2
call fcn.1400a819c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [0x1400eab94]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rdx, rbx
lea rcx, [0x1400eeaa0]
call fcn.1400098a0
mov rcx, rbx
call fcn.14009de9c
add rsp, 0x38
pop rdi
pop rbx
ret
Function at 0x140036f90
Capabilities:
Get file system object information

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x298]
sub rsp, 0x380
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140131088]
xor rax, rsp
mov qword [rbp + 0x270], rax
mov esi, r8d
mov rbx, rdx
mov rdi, rcx
mov qword [rbp - 0x78], rdx
cmp qword [rdx + 0x18], 8
jb 0x140036fdf
mov rcx, qword [rdx]
jmp 0x140036fe2
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov qword [rbp + 0x268], 7
xor r14d, r14d
mov qword [rbp + 0x260], r14
mov word [rbp + 0x250], r14w
cmp word [rax], r14w
jne 0x140037010
mov r8d, r14d
jmp 0x14003701e
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r14w
jne 0x140037014
mov rdx, rax
lea rcx, [rbp + 0x250]
call fcn.140008a20
nop
xor edx, edx
mov r8d, 0x2b8
lea rcx, [rbp - 0x70]
call fcn.1400a1560
lea rcx, [rbp + 0x250]
cmp qword [rbp + 0x268], 8
cmovae rcx, qword [rbp + 0x250]
mov dword [rsp + 0x20], 0x4110
mov r9d, 0x2b8
lea r8, [rbp - 0x70]
mov edx, esi
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea r8, [rsp + 0x30]
lea rdx, [0x1400d8170]
mov ecx, 2
call qword [sym.imp.SHELL32.dll_SHGetImageList]
test eax, eax
jne 0x1400370be
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
lea r9, [rsp + 0x38]
mov r8d, 2
mov edx, dword [rbp - 0x68]
call qword [rax + 0x50]
test eax, eax
jne 0x1400370be
cmp qword [rbx + 0x18], 8
jb 0x1400370b4
mov rdx, qword [rbx]
jmp 0x1400370b7
mov rdx, rbx
mov rcx, qword [rsp + 0x38]
jmp 0x1400370d1
cmp qword [rbx + 0x18], 8
jb 0x1400370ca
mov rdx, qword [rbx]
jmp 0x1400370cd
mov rdx, rbx
mov rcx, qword [rbp - 0x70]
lea r8, [rsp + 0x60]
call fcn.140036c70
mov r8, rax
mov ecx, dword [rsp + 0x68]
mov edx, 0x100
cmp ecx, edx
cmovg ecx, edx
mov dword [rsp + 0x68], ecx
mov eax, dword [rsp + 0x64]
cmp eax, edx
cmovg eax, edx
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], ecx
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x48], eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x4c], eax
mov qword [rsp + 0x50], r8
mov ecx, 5
call qword [sym.imp.USER32.dll_GetSysColor]
mov dword [rsp + 0x58], eax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rdi + 0x10], xmm1
mov r8, qword [rbp + 0x268]
cmp r8, 8
jb 0x140037161
inc r8
mov rdx, qword [rbp + 0x250]
lea rcx, [rbp + 0x250]
call fcn.140008b70
mov qword [rbp + 0x268], 7
mov qword [rbp + 0x260], r14
mov word [rbp + 0x250], r14w
mov r8, qword [rbx + 0x18]
cmp r8, 8
jb 0x140037193
inc r8
mov rdx, qword [rbx]
mov rcx, rbx
call fcn.140008b70
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r14
cmp qword [rbx + 0x18], 8
jb 0x1400371a9
mov rbx, qword [rbx]
mov word [rbx], r14w
mov rax, rdi
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.14009d860
lea r11, [rsp + 0x380]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret