joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800021e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x2f]
sub rsp, 0x88
mov qword [rbp - 0x11], 0xfffffffffffffffe
mov rax, qword [0x1800e92b0]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rsi, r9
mov r10, r8
mov rax, rdx
mov rdi, rcx
xor ebx, ebx
mov dword [rbp - 0x19], ebx
mov qword [rbp + reloc.WS2_32.dll_ntohs], 0xf
mov qword [rbp + 7], rbx
mov byte [rbp - 9], bl
mov qword [rbp - 0x21], rbx
lea rcx, [rbp - 0x21]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rbp + 0x7f]
xor r8d, r8d
mov rdx, r10
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1800022bb
mov dword [rbp - 0x29], ebx
movsxd rdx, dword [rbp + 0x77]
mov rax, qword [rbp + 7]
cmp rdx, rax
ja 0x180002272
mov qword [rbp + 7], rdx
lea rax, [rbp - 9]
cmp qword [rbp + 0xf], 0x10
cmovae rax, qword [rbp - 9]
mov byte [rax + rdx], bl
jmp 0x180002281
sub rdx, rax
xor r8d, r8d
lea rcx, [rbp - 9]
call fcn.180005c40
lea rax, [rbp - 9]
cmp qword [rbp + 0xf], 0x10
cmovae rax, qword [rbp - 9]
lea rcx, [rbp + 0x77]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x29]
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 0x10
cmovae rdx, qword [rbp - 9]
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rdi + 0x10], rbx
cmp qword [rdi + 0x18], 0x10
jb 0x1800022e1
mov rax, qword [rdi]
jmp 0x1800022e4
mov rax, rdi
mov byte [rax], 0
cmp byte [rdx], 0
je 0x1800022f9
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdx + rbx], 0
jne 0x1800022f0
mov r8, rbx
mov rcx, rdi
call fcn.180006b10
nop
mov rax, qword [rbp + 0xf]
cmp rax, 0x10
jb 0x18000235b
inc rax
mov rcx, qword [rbp - 9]
cmp rax, 0x1000
jb 0x180002356
test cl, 0x1f
je 0x180002329
call fcn.180083e00
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180002338
call fcn.180083e00
int3
sub rcx, rax
cmp rcx, 8
jae 0x180002347
call fcn.180083e00
int3
cmp rcx, 0x27
jbe 0x180002353
call fcn.180083e00
int3
mov rcx, rax
call fcn.180060d7c
mov rax, rdi
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1800612f0
add rsp, 0x88
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x180004030
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 0x180004063
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 0x1800040aa
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1800040a5
nop
cmp rbx, rcx
jae 0x1800040aa
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x180004090
cmp rbx, rcx
jb 0x1800040ae
xor eax, eax
jmp 0x1800040ba
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 0x180006d80
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x1c0], rbx
mov rax, qword [0x1800e92b0]
xor rax, rsp
mov qword [rbp + 0x80], rax
movsxd r15, r8d
mov rdi, rdx
mov edx, r15d
lea rcx, [rsp + 0x50]
call fcn.180006c50
nop
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov byte [rsp + 0x20], bl
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.180006670
mov r14, qword [rsp + 0x30]
lea rsi, [rsp + 0x20]
cmp qword [rsp + 0x38], 0x10
cmovae rsi, qword [rsp + 0x20]
lea rax, [rsp + 0x70]
mov r8d, 0x100
nop dword [rax + rax]
mov byte [rax], bl
inc bx
lea rax, [rax + 1]
cmp bx, r8w
jl 0x180006e20
mov word [rbp + 0x70], 0
xor r11b, r11b
xor r10b, r10b
lea r9, [rsp + 0x70]
movzx edx, byte [r9]
movzx eax, r11b
movzx ecx, byte [rax + rsi]
add cl, dl
add r10b, cl
movzx eax, r10b
lea rcx, [rsp + 0x70]
add rcx, rax
movzx eax, byte [rcx]
mov byte [r9], al
mov byte [rcx], dl
movzx eax, r11b
inc eax
cdq
idiv r14d
mov r11d, edx
inc r9
sub r8, 1
jne 0x180006e40
movzx r9d, byte [rbp + 0x70]
movzx r10d, byte [rbp + 0x71]
mov r11, r15
test r15d, r15d
jle 0x180006ed4
nop dword [rax]
inc r9b
movzx eax, r9b
lea rdx, [rsp + 0x70]
add rdx, rax
movzx r8d, byte [rdx]
add r10b, r8b
movzx eax, r10b
lea rcx, [rsp + 0x70]
add rcx, rax
movzx eax, byte [rcx]
mov byte [rdx], al
mov byte [rcx], r8b
movzx eax, byte [rdx]
add al, r8b
movzx eax, al
movzx ecx, byte [rsp + rax + 0x70]
xor byte [rdi], cl
lea rdi, [rdi + 1]
sub r11, 1
jne 0x180006e90
lea rcx, [rsp + 0x20]
call fcn.180006510
nop
mov rax, qword [rsp + 0x68]
cmp rax, 0x10
jb 0x180006f37
inc rax
mov rcx, qword [rsp + 0x50]
cmp rax, 0x1000
jb 0x180006f32
test cl, 0x1f
je 0x180006f05
call fcn.180083e00
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180006f14
call fcn.180083e00
int3
sub rcx, rax
cmp rcx, 8
jae 0x180006f23
call fcn.180083e00
int3
cmp rcx, 0x27
jbe 0x180006f2f
call fcn.180083e00
int3
mov rcx, rax
call fcn.180060d7c
mov al, 1
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.1800612f0
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x190
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180008870
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
xor ebx, ebx
movsxd rbp, edx
xor r11d, r11d
xor r10d, r10d
mov r14, r9
mov r15, r8
mov rdi, rcx
test edx, edx
jle 0x1800089ac
mov rsi, rcx
lea r12, [0x1800ce7a0]
neg rsi
mov rdx, rcx
movzx eax, byte [rdx]
cmp al, 0x3d
jne 0x1800088c6
inc r11d
cmp r11d, 2
jg 0x180008919
cmp al, 0x7f
ja 0x180008919
movzx eax, al
movzx ecx, byte [rax + r12]
cmp cl, 0x7f
je 0x180008919
cmp cl, 0x40
jae 0x1800088e1
test r11d, r11d
jne 0x180008919
inc rdx
inc ebx
inc r10d
lea rax, [rsi + rdx]
cmp rax, rbp
jl 0x1800088b6
test ebx, ebx
je 0x1800089ac
lea eax, [rbx + rbx*2]
lea eax, [rax*2 + 7]
sar eax, 3
cmp dword [r9], eax
jge 0x180008923
mov dword [r9], eax
mov eax, 0xfffffff0
jmp 0x1800089ae
mov eax, 0xffffffee
jmp 0x1800089ae
xor r8d, r8d
xor r11d, r11d
mov r9d, 3
mov rax, r15
test r10d, r10d
jle 0x1800089a6
nop word [rax + rax]
movzx ecx, byte [rdi]
movzx edx, byte [rcx + r12]
xor ecx, ecx
cmp dl, 0x40
sete cl
and edx, 0x3f
sub r9d, ecx
inc r11d
mov ecx, r8d
mov r8d, edx
shl ecx, 6
or r8d, ecx
cmp r11d, 4
jne 0x18000899b
xor r11d, r11d
test r9d, r9d
jle 0x18000897e
mov ecx, r8d
shr ecx, 0x10
mov byte [rax], cl
inc rax
cmp r9d, 1
jle 0x18000898f
mov ecx, r8d
shr ecx, 8
mov byte [rax], cl
inc rax
cmp r9d, 2
jle 0x18000899b
mov byte [rax], r8b
inc rax
dec r10d
inc rdi
test r10d, r10d
jg 0x180008940
sub eax, r15d
mov dword [r14], eax
xor eax, eax
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
pop r15
pop r14
pop r12
ret
Function at 0x180008b10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov r8, qword [rcx]
movabs rax, 0xffffffff00000000
mov ebp, dword [rcx + 0x50]
mov r14, rcx
dec ebp
not ebp
movzx ebx, word [r8 + 0x14]
mov r13, qword [r8 + 0x30]
add rbx, r8
and r13, rax
mov r10d, dword [rbx + 0x20]
mov r9d, dword [rbx + 0x28]
or r10, r13
and rbp, r10
mov qword [rsp + 0x20], r10
test r9d, r9d
jne 0x180008b74
mov eax, dword [rbx + 0x3c]
test al, 0x40
je 0x180008b6c
mov r9d, dword [r8 + 0x20]
jmp 0x180008b74
test al, al
jns 0x180008b74
mov r9d, dword [r8 + 0x24]
mov edx, dword [rbx + 0x3c]
lea r11, [0x1800ce820]
mov edi, 1
mov qword [rsp + 0x78], rsi
mov r12d, edi
mov qword [rsp + 0x80], r15
cmp di, word [r8 + 6]
jae 0x180008cda
add rbx, 0x64
mov ecx, dword [r14 + 0x50]
mov r15d, dword [rbx - 0x1c]
mov esi, dword [rbx - 0x14]
or r15, r13
lea edi, [rcx - 1]
not edi
and rdi, r15
test esi, esi
jne 0x180008bd4
mov eax, dword [rbx]
test al, 0x40
je 0x180008bca
mov rax, qword [r14]
mov esi, dword [rax + 0x20]
jmp 0x180008bd4
test al, al
jns 0x180008bd4
mov rax, qword [r14]
mov esi, dword [rax + 0x24]
cmp rbp, rdi
je 0x180008c9a
mov r11d, r9d
lea rax, [r11 + r10]
cmp rax, rdi
ja 0x180008c9a
test r9d, r9d
je 0x180008c88
bt edx, 0x19
jae 0x180008c3d
cmp r10, rbp
jne 0x180008c88
mov r8, qword [r14]
cmp dword [r8 + 0x38], ecx
je 0x180008c19
xor edx, edx
mov eax, r9d
div ecx
test edx, edx
jne 0x180008c88
mov r8d, 0x4000
mov rdx, r11
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbx]
mov r10, r15
mov r9d, esi
mov qword [rsp + 0x20], r15
mov rbp, rdi
jmp 0x180008cb7
mov ecx, edx
mov eax, edx
shr rax, 0x1e
and eax, 1
shr rcx, 0x1d
and ecx, 1
lea rcx, [rax + rcx*2]
mov eax, edx
shr rax, 0x1f
lea rcx, [rax + rcx*2]
lea rax, [0x1800ce820]
mov r8d, dword [rax + rcx*4]
bt edx, 0x1a
jae 0x180008c73
bts r8d, 9
lea r9, [rsp + 0x70]
mov rdx, r11
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180008cfe
mov edx, dword [rbx]
mov r10, r15
mov qword [rsp + 0x20], r15
mov rbp, rdi
mov r9d, esi
jmp 0x180008cb7
mov ecx, dword [rbx]
mov eax, ecx
and eax, edx
or edx, ecx
bt eax, 0x19
jb 0x180008cac
btr edx, 0x19
mov r9d, r15d
sub r9d, dword [rsp + 0x20]
add r9d, esi
mov rax, qword [r14]
inc r12d
add rbx, 0x28
movzx ecx, word [rax + 6]
cmp r12d, ecx
jl 0x180008ba2
mov edi, 1
lea r11, [0x1800ce820]
test r9d, r9d
je 0x180008d46
bt edx, 0x19
jae 0x180008d02
cmp r10, rbp
jne 0x180008d46
mov edx, r9d
mov r8d, 0x4000
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x180008d46
xor eax, eax
jmp 0x180008d48
mov ecx, edx
mov eax, edx
shr rax, 0x1e
shr rcx, 0x1d
and eax, 1
and ecx, 1
lea rcx, [rax + rcx*2]
mov eax, edx
shr rax, 0x1f
lea rcx, [rax + rcx*2]
mov r8d, dword [r11 + rcx*4]
bt edx, 0x1a
jae 0x180008d31
bts r8d, 9
mov edx, r9d
mov rcx, r10
lea r9, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180008cfe
mov eax, edi
mov r15, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
Function at 0x18000d070
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
call fcn.18000d400
test al, al
jne 0x18000d0a1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp qword [rbx + 0x18], 0x10
mov rax, qword [rbx + 0x10]
jb 0x18000d0af
mov rbx, qword [rbx]
cmp qword [rdi + 0x18], 0x10
jb 0x18000d0b9
mov rdi, qword [rdi]
mov rcx, qword [rsi + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rbx, qword [rsp + 0x40]
test eax, eax
mov rsi, qword [rsp + 0x48]
sete al
add rsp, 0x30
pop rdi
ret

Function at 0x18000d0f0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rdi
push r14
sub rsp, 0x78
mov rax, qword [0x1800e92b0]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor r14d, r14d
mov rdi, r8
mov dword [rsp + 0x38], r14d
mov rbx, rdx
mov rbp, rcx
call fcn.18000d400
test al, al
je 0x18000d235
cmp qword [rdi + 0x18], 0x10
jb 0x18000d133
mov rdx, qword [rdi]
jmp 0x18000d136
mov rdx, rdi
mov rcx, qword [rbp + 0x28]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18000d235
mov ecx, dword [rsp + 0x34]
lea eax, [rcx - 1]
test eax, 0xfffffffa
jne 0x18000d235
cmp ecx, 5
je 0x18000d235
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x18000d235
inc eax
mov qword [rsp + 0x70], rsi
movsxd rcx, eax
call fcn.180061a98
inc dword [rsp + 0x30]
mov rsi, rax
cmp qword [rdi + 0x18], 0x10
jb 0x18000d1a6
mov rdi, qword [rdi]
mov rcx, qword [rbp + 0x28]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
movsxd rax, dword [rsp + 0x30]
mov byte [rax + rsi], r14b
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x50], r14
mov byte [rsp + 0x40], r14b
cmp byte [rsi], r14b
jne 0x18000d1ee
mov r8, r14
jmp 0x18000d1fb
or r8, 0xffffffffffffffff
inc r8
cmp byte [rsi + r8], r14b
jne 0x18000d1f2
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.180006b10
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
lea rdx, [rsp + 0x40]
mov qword [rbx + 0x10], r14
mov rcx, rbx
mov byte [rbx], r14b
call fcn.180006200
lea rcx, [rsp + 0x40]
call fcn.180006510
mov rsi, qword [rsp + 0x70]
jmp 0x18000d244
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbx + 0x10], r14
mov byte [rbx], r14b
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1800612f0
add rsp, 0x78
pop r14
pop rdi
pop rbp
pop rbx
ret
Function at 0x18000d260
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
call fcn.18000d400
test al, al
jne 0x18000d291
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
sub rax, rcx
cmp qword [rbx + 0x18], 0x10
jb 0x18000d2a5
mov rbx, qword [rbx]
mov dword [rsp + 0x28], eax
mov r9d, 3
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsi + 0x28]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rbx, qword [rsp + 0x40]
test eax, eax
mov rsi, qword [rsp + 0x48]
sete al
add rsp, 0x30
pop rdi
ret

Function at 0x18000d2e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [rax - 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov rsi, r8
mov rbx, rdx
mov r14, rcx
xor edi, edi
mov dword [rsp + 0x34], edi
call fcn.18000d400
test al, al
jne 0x18000d323
mov qword [rbx], rdi
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], rdi
jmp 0x18000d3df
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rdi
cmp qword [rsi + 0x18], 0x10
jb 0x18000d33d
mov rdx, qword [rsi]
jmp 0x18000d340
mov rdx, rsi
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rcx, qword [r14 + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18000d3d4
cmp dword [rsp + 0x30], 3
jne 0x18000d3d4
mov eax, dword [rsp + 0x98]
test eax, eax
je 0x18000d3c1
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.18000d750
cmp qword [rsi + 0x18], 0x10
jb 0x18000d390
mov rsi, qword [rsi]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov rbp, qword [rsp + 0x40]
mov qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [r14 + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rdi, qword [rsp + 0x50]
jmp 0x18000d3c6
mov rbp, qword [rsp + 0x40]
mov qword [rbx], rbp
mov rax, qword [rsp + 0x48]
mov qword [rbx + 8], rax
jmp 0x18000d3db
mov qword [rbx], rdi
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], rdi
mov rax, rbx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x18000d9a0
Capabilities:
Hash data with md5

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x230], rbx
mov rax, qword [0x1800e92b0]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov rdi, rdx
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x20], esi
lea rcx, [rsp + 0x30]
call fcn.180007060
nop
cmp qword [rdi + 0x18], 0x10
jb 0x18000d9f6
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rbp + 0x60]
call fcn.180002030
nop
cmp qword [rax + 0x18], 8
jb 0x18000da0d
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1800084b0
test rax, rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
jne 0x18000da45
lea r9, [rsp + 0x30]
add rcx, r9
mov eax, dword [rcx + 0x10]
or eax, 2
mov edx, eax
or edx, 4
cmp qword [rcx + 0x48], 0
cmovne edx, eax
jmp 0x18000da5a
lea rax, [rsp + 0x30]
add rcx, rax
mov edx, 4
cmp qword [rcx + 0x48], 0
cmovne edx, esi
xor r8d, r8d
call fcn.1800047f0
nop
mov r8, qword [rbp + 0x78]
cmp r8, 8
jb 0x18000da7d
inc r8
mov rdx, qword [rbp + 0x60]
lea rcx, [rbp + 0x60]
call fcn.1800060c0
cmp qword [rbp - 0x40], 0
jne 0x18000dad9
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 0x10
jb 0x18000da9c
mov rax, qword [rbx]
jmp 0x18000da9f
mov rax, rbx
mov byte [rax], 0
xor r8d, r8d
lea rdx, [0x1800ce742]
mov rcx, rbx
call fcn.180006b10
nop
lea rcx, [rbp - 0x20]
call fcn.180006fe0
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x20]
call fcn.1800a69a4
nop
jmp 0x18000dbdf
mov byte [rbp + 0xe8], 0
mov qword [rbp + 0x90], rsi
mov dword [rbp + 0x80], 0x67452301
mov dword [rbp + 0x84], 0xefcdab89
mov dword [rbp + 0x88], 0x98badcfe
mov dword [rbp + 0x8c], 0x10325476
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x80]
call fcn.18000e100
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x80]
call fcn.18000ef40
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 0x10
jb 0x18000db48
mov rax, qword [rbx]
jmp 0x18000db4b
mov rax, rbx
mov byte [rax], 0
lea rdx, [rbp + 0x40]
mov rcx, rbx
call fcn.180006200
mov rax, qword [rbp + 0x58]
cmp rax, 0x10
jb 0x18000dbb0
inc rax
mov rcx, qword [rbp + 0x40]
cmp rax, 0x1000
jb 0x18000dbab
test cl, 0x1f
je 0x18000db7e
call fcn.180083e00
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18000db8d
call fcn.180083e00
int3
sub rcx, rax
cmp rcx, 8
jae 0x18000db9c
call fcn.180083e00
int3
cmp rcx, 0x27
jbe 0x18000dba8
call fcn.180083e00
int3
mov rcx, rax
call fcn.180060d7c
mov qword [rbp + 0x58], reloc.WS2_32.dll_ntohs
mov qword [rbp + 0x50], rsi
mov byte [rbp + 0x40], 0
lea rcx, [rbp - 0x20]
call fcn.180006fe0
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x20]
call fcn.1800a69a4
nop
mov rax, rbx
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.1800612f0
mov rbx, qword [rsp + 0x230]
add rsp, 0x200
pop rdi
pop rsi
pop rbp
ret
Function at 0x180010820
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1800e92b0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rax, qword [rdx]
mov rdi, rdx
mov rbx, qword [rax]
cmp rbx, rax
je 0x180010908
movabs rsi, 0x7fffffffffffffff
nop word [rax + rax]
cmp qword [rbx + 0x28], 0x10
lea rdx, [rbx + 0x10]
jb 0x18001086e
mov rdx, qword [rdx]
lea rcx, [rsp + 0x28]
call fcn.180002030
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.180013e50
cmp qword [rsp + 0x60], 8
lea rcx, [rsp + 0x48]
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov rax, qword [rsp + 0x60]
je 0x180010929
cmp rax, 8
jb 0x1800108fc
mov rcx, qword [rsp + 0x48]
inc rax
cmp rax, rsi
ja 0x180010988
add rax, rax
cmp rax, 0x1000
jb 0x1800108f7
test cl, 0x1f
jne 0x180010982
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x18001097c
sub rcx, rax
cmp rcx, 8
jb 0x180010976
cmp rcx, 0x27
ja 0x180010970
mov rcx, rax
call fcn.180060d7c
mov rbx, qword [rbx]
cmp rbx, qword [rdi]
jne 0x180010860
mov al, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800612f0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
cmp rax, 8
jb 0x18001096c
mov rcx, qword [rsp + 0x48]
inc rax
cmp rax, rsi
ja 0x18001098e
add rax, rax
cmp rax, 0x1000
jb 0x180010967
test cl, 0x1f
jne 0x180010994
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x18001099a
sub rcx, rax
cmp rcx, 8
jb 0x1800109a0
cmp rcx, 0x27
ja 0x1800109a6
mov rcx, rax
call fcn.180060d7c
xor al, al
jmp 0x18001090a
call fcn.180083e00
int3
call fcn.180083e00
int3
call fcn.180083e00
int3
call fcn.180083e00
int3
call fcn.180083e00
int3
call fcn.180083e00
int3
call fcn.180083e00
int3
call fcn.180083e00
int3
call fcn.180083e00
int3
call fcn.180083e00
int3
Function at 0x1800109b0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1800e92b0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rax, qword [rdx]
mov rdi, rdx
mov rbx, qword [rax]
cmp rbx, rax
je 0x180010a98
movabs rsi, 0x7fffffffffffffff
nop word [rax + rax]
cmp qword [rbx + 0x28], 0x10
lea rdx, [rbx + 0x10]
jb 0x1800109fe
mov rdx, qword [rdx]
lea rcx, [rsp + 0x28]
call fcn.180002030
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.180013e50
cmp qword [rsp + 0x60], 8
lea rcx, [rsp + 0x48]
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov rax, qword [rsp + 0x60]
jne 0x180010ab9
cmp rax, 8
jb 0x180010a8c
mov rcx, qword [rsp + 0x48]
inc rax
cmp rax, rsi
ja 0x180010b18
add rax, rax
cmp rax, 0x1000
jb 0x180010a87
test cl, 0x1f
jne 0x180010b12
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x180010b0c
sub rcx, rax
cmp rcx, 8
jb 0x180010b06
cmp rcx, 0x27
ja 0x180010b00
mov rcx, rax
call fcn.180060d7c
mov rbx, qword [rbx]
cmp rbx, qword [rdi]
jne 0x1800109f0
mov al, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800612f0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
cmp rax, 8
jb 0x180010afc
mov rcx, qword [rsp + 0x48]
inc rax
cmp rax, rsi
ja 0x180010b1e
add rax, rax
cmp rax, 0x1000
jb 0x180010af7
test cl, 0x1f
jne 0x180010b24
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x180010b2a
sub rcx, rax
cmp rcx, 8
jb 0x180010b30
cmp rcx, 0x27
ja 0x180010b36
mov rcx, rax
call fcn.180060d7c
xor al, al
jmp 0x180010a9a
call fcn.180083e00
int3
call fcn.180083e00
int3
call fcn.180083e00
int3
call fcn.180083e00
int3
call fcn.180083e00
int3
call fcn.180083e00
int3
call fcn.180083e00
int3
call fcn.180083e00
int3
call fcn.180083e00
int3
call fcn.180083e00
int3
Function at 0x180016160
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x450
mov rax, qword [0x1800e92b0]
xor rax, rsp
mov qword [rsp + 0x440], rax
movzx eax, word [0x1800ce740]
lea rcx, [rsp + 0x22]
xor edx, edx
mov word [rsp + 0x20], ax
mov r8d, 0x206
call fcn.180081920
mov r8d, 0x104
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edx, edx
lea rcx, [rsp + 0x230]
mov r8d, 0x208
call fcn.180081920
mov edx, 0x104
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x230]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp ebx, eax
jge 0x1800161f7
xor al, al
jmp 0x180016211
movsxd r8, eax
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
call fcn.180083a20
test eax, eax
sete al
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1800612f0
add rsp, 0x450
pop rbx
ret