joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011280
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014470
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014490
xor al, al
jmp 0x140014511
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400144a3
xor al, al
jmp 0x140014511
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400144cd
xor al, al
jmp 0x140014511
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400144e1
xor al, al
jmp 0x140014511
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400144f3
xor al, al
jmp 0x140014511
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001450f
xor al, al
jmp 0x140014511
mov al, 1
add rsp, 0x38
ret
Function at 0x140001000
Capabilities:
Initialize iwebbrowser2

Disassembly:
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea rcx, [rbp - 0x28]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
xor edi, edi
lea rax, [rbp - 0x50]
lea r9, [0x1400032d0]
mov qword [rbp - 0x50], rdi
xor edx, edx
mov qword [rsp + 0x20], rax
lea rcx, [0x1400032e0]
lea r8d, [rdi + 4]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x1400010d0
lea rcx, str.www.baidu.com
mov qword [rsp + 0x90], rbx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rcx, qword [rbp - 0x50]
lea r9, [rbp - 0x28]
mov rbx, rax
lea r8, [rbp - 0x28]
lea rax, [rbp - 0x28]
mov rdx, rbx
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x28]
mov r10, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [r10 + 0x58]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbp - 0x50]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x148]
mov rcx, qword [rbp - 0x50]
mov rbx, qword [rsp + 0x90]
nop word [rax + rax]
mov dword [rbp - 0x48], edi
lea rdx, [rbp - 0x48]
mov rax, qword [rcx]
call qword [rax + 0x1c0]
cmp dword [rbp - 0x48], 4
mov rcx, qword [rbp - 0x50]
jne 0x1400010d0
mov qword [rbp - 0x40], rdi
lea rdx, [rbp - 0x40]
mov rax, qword [rcx]
call qword [rax + 0x90]
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140001163
mov qword [rbp - 0x38], rdi
lea r8, [rbp - 0x38]
mov rax, qword [rcx]
lea rdx, str._D_3
call qword [rax]
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140001163
mov qword [rbp - 0x48], rdi
lea rdx, [rbp - 0x48]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140001163
mov qword [rbp - 0x30], rdi
lea rdx, [rbp - 0x30]
mov rax, qword [rcx]
call qword [rax + 0x1d0]
mov rdx, qword [rbp - 0x30]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400011a0
mov rcx, qword [rbp - 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x50]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140001400
mov rdi, qword [rsp + 0x98]
add rsp, 0x80
pop rbp
ret

Function at 0x140001cc8
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov r15, r9
mov rsi, r8
mov r12, rdx
mov rdi, rcx
and qword [rbp - 0x20], 0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x10], xmm0
lea rdx, [r9 + 0x20]
lea rcx, [rbp - 0x20]
call fcn.180015990
lea rbx, str.https
mov rcx, rbx
call fcn.1800ba350
lea rcx, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rcx, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x10]
cmp rdx, rax
jne 0x180011585
test rdx, rdx
je 0x18001157d
sub rcx, rbx
movzx eax, word [rbx]
cmp word [rcx + rbx], ax
jne 0x180011585
add rbx, 2
sub rdx, 1
jne 0x18001156a
mov r14d, 0x800000
jmp 0x180011588
xor r14d, r14d
lea rcx, [rbp - 0x20]
call fcn.180009548
and qword [rbp - 0x40], 0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
lea rdx, [r15 + 0x80]
lea rcx, [rbp - 0x40]
call fcn.180015990
nop
and qword [rbp - 0x20], 0
and qword [rbp - 0x10], 0
and qword [rbp - 8], 0
lea rdx, [r15 + 0xa0]
lea rcx, [rbp - 0x20]
call fcn.180015990
cmp qword [rbp - 0x10], 0
setne bl
lea rcx, [rbp - 0x20]
call fcn.180009548
test bl, bl
je 0x180011645
lea rcx, [0x1800fccd4]
call fcn.1800ba350
mov r8, rax
lea rdx, [0x1800fccd4]
lea rcx, [rbp - 0x40]
call fcn.1800157dc
and qword [rbp - 0x20], 0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x10], xmm0
lea rdx, [r15 + 0xa0]
lea rcx, [rbp - 0x20]
call fcn.180015990
nop
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rdx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x10]
lea rcx, [rbp - 0x40]
call fcn.1800157dc
nop
lea rcx, [rbp - 0x20]
call fcn.180009548
lea r8, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae r8, qword [rbp - 0x40]
cmp qword [rsi + 0x18], 8
jb 0x18001165d
mov rsi, qword [rsi]
mov dword [rsp + 0x30], r14d
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
mov rdx, rsi
mov rcx, qword [r12]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
test rax, rax
jne 0x180011688
and qword [rdi], rax
jmp 0x18001168b
mov qword [rdi], rax
lea rcx, [rbp - 0x40]
call fcn.180009548
mov rax, rdi
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x180011718
Capabilities:
Receive http response

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x180011760
Capabilities:
Receive http response

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
and dword [rax - 0x28], 0
and dword [rax + 0x18], 0
test r8, r8
jne 0x18001179d
and dword [rax + 0x10], r8d
lea rdx, [rax + 0x10]
mov rcx, qword [rsi]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x18001179d
mov edi, dword [rsp + 0x58]
and qword [rbx], 0
and qword [rbx + 8], 0
and qword [rbx + 0x10], 0
mov dword [rsp + 0x20], 1
test rdi, rdi
je 0x1800117c3
mov rdx, rdi
mov rcx, rbx
call fcn.180016bb4
lea r9, [rsp + 0x60]
mov r8d, edi
mov rdx, qword [rbx]
mov rcx, qword [rsi]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x1800117e2
mov rax, qword [rbx]
mov qword [rbx + 8], rax
mov rax, rbx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret

Function at 0x1800117f0
Capabilities:
Read http header

Disassembly:
mov rax, rsp
sub rsp, 0x38
and qword [rax - 0x10], 0
lea r9, [rsp + 0x40]
and dword [rax + 8], 0
xor r8d, r8d
mov rcx, qword [rcx]
mov edx, 0x20000013
mov dword [rax + 0x10], 4
lea rax, [rax + 0x10]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov eax, dword [rsp + 0x40]
add rsp, 0x38
ret
Function at 0x180015b4c
Capabilities:
Set http header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rdi]
mov r9d, 0xa0000000
mov r8d, eax
mov rdx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]

Function at 0x1800163e8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x180016ccc
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x180016cfe
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x180016ce1
mov rax, r8
ret
Function at 0x180035880
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x28
mov rax, qword [rcx + 8]
mov r13, rcx
mov ebp, edx
mov r11, qword [rax + 8]
mov rax, qword [rcx + 0x28]
mov r15, qword [r11]
mov r10, qword [rax + 8]
movsxd rax, dword [r10 + 0x30]
movsxd r10, dword [r11 + 0x30]
mov r12, rax
cmp eax, r10d
mov ecx, r10d
cmovl ecx, eax
imul rbp, rax
mov dword [rsp + 0x78], ecx
cmp eax, r10d
je 0x1800358e4
cmp byte [r15 + 0x13], 0
je 0x1800358e4
mov ebx, 8
jmp 0x1800359d2
mov rdi, rbp
mov r14, r10
sub rdi, r12
xor ebx, ebx
cmp rdi, rbp
jge 0x1800359d2
and qword [rsp + 0x70], 0
mov rax, rdi
cqo
idiv r14
mov rsi, rdx
xor edx, edx
lea r10d, [rax + 1]
mov rax, qword [r13 + 8]
mov rcx, qword [rax + 8]
mov eax, 0x40000000
div dword [rcx + 0x30]
inc eax
cmp r10d, eax
je 0x1800359c7
xor r9d, r9d
lea r8, [rsp + 0x70]
mov edx, r10d
mov rcx, r15
call fcn.1800287cc
mov ebx, eax
test eax, eax
jne 0x1800359b8
mov rcx, qword [rsp + 0x70]
call fcn.180029058
mov ebx, eax
test eax, eax
jne 0x1800359b8
mov rax, qword [rsp + 0x70]
movsxd r8, dword [rsp + 0x78]
add rsi, qword [rax + 8]
mov rax, rdi
cqo
mov rcx, rsi
idiv r12
add rdx, qword [rsp + 0x80]
call fcn.1800ac6d0
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x10]
mov byte [rcx], bl
test rdi, rdi
jne 0x1800359b8
cmp dword [rsp + 0x88], edi
jne 0x1800359b8
mov rax, qword [r13 + 0x28]
mov rcx, qword [rax + 8]
mov edx, dword [rcx + 0x3c]
mov eax, edx
shr eax, 0x18
mov byte [rsi + 0x1c], al
mov eax, edx
shr eax, 0x10
mov byte [rsi + 0x1d], al
mov eax, edx
shr eax, 8
mov byte [rsi + 0x1e], al
mov byte [rsi + 0x1f], dl
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1800359c7
call fcn.180028b98
add rdi, r14
test ebx, ebx
je 0x1800358ef
mov eax, ebx
add rsp, 0x28
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180041b74
Capabilities:
Create thread

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, 0x30
xor edi, edi
mov rsi, rcx
mov qword [rcx], rdi
mov rbp, r8
mov r14, rdx
lea ecx, [rdi + 0x28]
call fcn.18001e26c
mov rbx, rax
test rax, rax
jne 0x180041bb0
lea edi, [rax + 7]
jmp 0x180041c12
cmp dword [0x18011a134], edi
je 0x180041be8
mov qword [rax + 0x10], r14
lea r8, [0x18002016c]
mov qword [rax + 0x18], rbp
mov r9, rbx
add rax, 8
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov dword [rsp + 0x20], edi
call fcn.1800c0e50
mov qword [rbx], rax
test rax, rax
jne 0x180041bf6
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0x28]
call fcn.1800ad050
cmp qword [rbx + 0x10], rdi
jne 0x180041c0f
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, rbp
mov dword [rbx + 8], eax
call r14
mov qword [rbx + 0x20], rax
mov qword [rsi], rbx
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, 0x30
pop r14
ret

Function at 0x1800465ec
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor ebp, ebp
mov r13d, r8d
mov rbx, rdx
mov r14, rcx
test rdx, rdx
je 0x18004666f
lea edx, [rbp + 0x10]
call fcn.18001e8a0
mov rdi, rax
test rax, rax
je 0x18004666f
mov r8d, dword [rbx]
mov dword [rax], r8d
test r13b, 1
jne 0x180046645
lea r8d, [rbp + 1]
cmp dword [rbx], r8d
jle 0x180046645
add r8d, r8d
cmp r8d, dword [rbx]
jl 0x18004663d
movsxd rax, r8d
mov rcx, r14
lea rdx, [rax + rax*4]
shl rdx, 3
call fcn.18001e8a0
mov qword [rdi + 8], rax
mov rsi, rax
test rax, rax
jne 0x18004668e
mov rdx, rdi
mov rcx, r14
call fcn.18001e630
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov r15, qword [rbx + 8]
cmp dword [rbx], ebp
jle 0x180046706
lea r12, [rax + 0x1c]
sub rsi, r15
mov rdx, qword [r15]
mov r8d, r13d
mov rcx, r14
call fcn.1800465e4
mov qword [rsi + r15], rax
mov rcx, r14
mov rdx, qword [r15 + 8]
call fcn.18001ea3c
mov qword [r12 - 0x14], rax
mov rcx, r14
mov rdx, qword [r15 + 0x10]
call fcn.18001ea3c
mov qword [r12 - 0xc], rax
inc ebp
mov al, byte [r15 + 0x18]
lea r15, [r15 + 0x28]
and dword [r12], 0xfffffffe
mov byte [r12 - 4], al
mov eax, dword [r12]
xor eax, dword [r15 - 0xc]
and eax, 2
xor dword [r12], eax
lea r12, [r12 + 0x28]
mov eax, dword [r15 - 8]
mov dword [r12 - 0x24], eax
cmp ebp, dword [rbx]
jl 0x18004669d
mov rax, rdi
jmp 0x180046671
Function at 0x180048154
Capabilities:
Resolve function by parsing pe exports

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, 0x30
mov rdi, qword [rcx + 0x10]
mov r14d, r8d
xor r8d, r8d
mov ebp, r9d
lea r9, [rcx + 0x88]
mov rsi, rcx
mov r10, r9
lea ecx, [r8 + 0xa]
cmp dword [r10 + 0xc], 0
jle 0x1800481a1
cmp dword [r10], ebp
jne 0x1800481a1
movsx eax, word [r10 + 4]
cmp eax, r14d
je 0x1800481e5
inc r8d
add r10, 0x14
cmp r8d, ecx
jl 0x18004818b
mov ebx, dword [rsp + 0x60]
mov r9d, r14d
mov r8d, ebp
mov dword [rsp + 0x20], ebx
mov rcx, rdi
call fcn.18004807c
mov r8b, byte [rsp + 0x68]
test r8b, r8b
je 0x18004820f
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x18004821f
movsxd rax, dword [rdi + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], r8b
jmp 0x18004821f
mov eax, dword [rsi + 0x74]
mov dword [r10 + 0x10], eax
lea rax, [r9 + 6]
inc dword [rsi + 0x74]
mov edx, dword [r10 + 0xc]
cmp dword [rax + 6], edx
jne 0x1800481ff
mov byte [rax], 0
add rax, 0x14
sub rcx, 1
jne 0x1800481f7
mov eax, dword [r10 + 0xc]
jmp 0x180048221
mov r9d, ebx
mov r8d, r14d
mov edx, ebp
mov rcx, rsi
call fcn.180047ef0
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x18005a90c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov dword [rsp + 0x18], r8d
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov r15d, r9d
mov rsi, rdx
mov rdi, rcx
xor r12b, r12b
call fcn.1800623fc
mov rbp, qword [rsi + 0x10]
mov rbx, rax
test rbp, rbp
je 0x18005a9e9
mov r14, qword [rsp + 0x88]
mov eax, dword [r14]
test eax, eax
je 0x18005a9d5
cmp qword [rbp + 0x48], 0
mov r12b, 1
je 0x18005a981
mov r9d, dword [rbx + 0x3c]
mov r8d, eax
and dword [rsp + 0x20], 0
add r9d, 2
mov edx, 0x4c
mov rcx, rbx
call fcn.1800376b8
mov eax, dword [r14]
and dword [rsp + 0x20], 0
mov r9d, eax
mov r8d, r15d
mov edx, 0x6e
mov rcx, rbx
call fcn.1800376b8
mov eax, dword [rsp + 0xa0]
neg eax
mov eax, dword [rbp + 0x5c]
sbb cl, cl
and al, 3
and cl, 0x10
mov dl, cl
cmp al, 2
jne 0x18005a9bb
test byte [rsi + 0x48], 0x20
je 0x18005a9bb
or dl, r12b
test dl, dl
je 0x18005a9d5
mov r8, qword [rbx + 8]
test r8, r8
je 0x18005a9d5
movsxd rax, dword [rbx + 0x3c]
lea rcx, [rax + rax*2]
mov byte [r8 + rcx*8 - 0x15], dl
mov rbp, qword [rbp + 0x28]
inc r15d
add r14, 4
test rbp, rbp
jne 0x18005a950
test byte [rsi + 0x48], 0x20
jne 0x18005aae5
mov al, byte [rdi + 0x1f]
mov r15d, dword [rsp + 0x80]
test al, al
jne 0x18005aa0b
inc dword [rdi + 0x54]
mov r14d, dword [rdi + 0x54]
jmp 0x18005aa18
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov r14d, dword [rdi + rax*4 + 0x24]
movsx r9d, word [rsi + 0x42]
lea r8d, [r15 + 1]
mov edx, 0x31
mov dword [rsp + 0x20], r14d
mov rcx, rbx
call fcn.1800376b8
test r12b, r12b
jne 0x18005aa46
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call fcn.18005851c
movsx r8d, word [rsi + 0x42]
lea edx, [r15 + 1]
mov rcx, rdi
call fcn.180047fdc
xor r12d, r12d
cmp byte [rdi + 0x1e], r12b
je 0x18005aa65
mov dl, r12b
jmp 0x18005aa74
neg dword [rsp + 0x90]
sbb dl, dl
and dl, 2
add dl, 3
mov r8d, dword [rsp + 0x70]
mov al, dl
or al, 8
mov dword [rsp + 0x20], r15d
cmp dword [rsp + 0x98], r12d
mov r9d, r14d
movzx ecx, al
movzx eax, dl
cmove ecx, eax
movzx edx, cl
mov rcx, rbx
mov al, dl
or al, 0x10
cmp dword [rsp + 0xa0], r12d
movzx ebp, al
cmove ebp, edx
mov edx, 0x4b
call fcn.1800376b8
cmp byte [rdi + 0x1e], r12b
jne 0x18005aacf
mov r8, qword [rsi]
xor r9d, r9d
or edx, 0xffffffff
mov rcx, rbx
call fcn.180037c6c
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x18005aae5
movsxd rax, dword [rbx + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], bpl
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x18007fc10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
xor ebx, ebx
mov qword [rax - 0x28], rbx
mov qword [rax - 0x18], rbx
mov qword [rax - 0x10], 7
mov word [rax - 0x28], bx
lea rcx, [rax - 0x28]
call fcn.1800095ac
nop
cmp qword [rsp + 0x30], 5
jb 0x18007fc7a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rax, qword [rsp + 0x20]
mov word [rax], bx
cmp ecx, 0xffffffff
je 0x18007fc7a
test cl, 0x10
jne 0x18007fc7a
mov ebx, 1
lea rcx, [rsp + 0x20]
call fcn.180009548
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x180082310
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
lea rbp, [rax - 0x178]
sub rsp, 0x270
lea rdi, [0x180122080]
mov qword [rbp + 0x180], rdi
xorps xmm0, xmm0
movdqa xmmword [0x180122080], xmm0
xor ebx, ebx
mov qword [0x180122090], rbx
mov qword [0x180122098], rbx
mov qword [0x1801220a8], rbx
lea esi, [rbx + 0xf]
mov qword [0x1801220b0], rsi
mov qword [0x1801220b8], rbx
movdqa xmmword [0x1801220c0], xmm0
mov qword [0x1801220d0], rbx
mov qword [0x1801220e0], rbx
mov qword [0x1801220e8], 7
movdqa xmmword [0x1801220f0], xmm0
mov qword [0x180122100], rbx
mov qword [0x180122108], rbx
movdqa xmmword [0x180122110], xmm0
mov qword [0x180122120], rbx
mov qword [0x180122130], rbx
mov qword [0x180122138], rsi
lea rdx, [rsp + 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x20]
test eax, eax
jne 0x180082455
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
lea rdx, str.ajsjeg2
call fcn.18000963c
mov r8b, bl
lea rdx, [rsp + 0x20]
lea rcx, [0x180122098]
call fcn.1800097d4
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x1800824fd
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18008244b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180082526
call fcn.18008b3f8
jmp 0x1800824fd
movdqa xmm0, xmmword [0x1801049b0]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], bx
lea rdx, [rsp + 0x60]
call fcn.1800095ac
nop
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x30]
lea r8, [rcx + rax*2]
lea rdx, [rsp + 0x20]
cmovae rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1800888c4
lea rcx, [0x180122098]
cmp rcx, rax
je 0x1800824b9
mov r8b, bl
mov rdx, rax
call fcn.1800097d4
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x1800824f3
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800824ed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180082520
call fcn.18008b3f8
nop
lea rcx, [rsp + 0x20]
call fcn.180009548
mov qword [0x180122070], rdi
mov rax, rdi
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1800ba888
nop
call fcn.1800ba888
int3
Function at 0x180086c94
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x180086cbc
xor eax, eax
jmp 0x180086dde
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x180086cf6
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x180086cf6
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov eax, esi
mov byte [rdx], sil
jmp 0x180086dde
cmp qword [rbx + 0x80], 0
je 0x180086ddc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180086d31
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x180086d54
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call fcn.1800c1398
cmp eax, edi
cmovne edi, esi
jmp 0x180086ddc
lea r8, [rbp + 0x30]
mov byte [rbp - 0x30], sil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rbp - 0x2f]
lea r8, [rbp - 8]
mov qword [rsp + 0x30], r8
lea r8, [rbp - 0x28]
mov qword [rsp + 0x28], r8
lea r8, [rbp + 0x38]
mov qword [rsp + 0x20], r8
lea r8, [rbp - 0x30]
call qword [rax + 0x38]
test eax, eax
je 0x180086da2
sub eax, 1
je 0x180086da2
cmp eax, 2
jne 0x180086ddc
movsx ecx, byte [rbp - 0x30]
jmp 0x180086d3e
mov r14, qword [rbp + 0x30]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x180086dcc
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call fcn.1800c1efc
cmp r14, rax
jne 0x180086ddc
lea rax, [rbp - 0x30]
mov byte [rbx + 0x71], 1
cmp qword [rbp + 0x38], rax
mov eax, esi
jne 0x180086dde
mov eax, edi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x180087c74
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180087cd0
cmp byte [rcx + 0x71], 0
je 0x180087cd0
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x180087d17
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x180087cdd
sub eax, 1
je 0x180087ce1
cmp eax, 2
jne 0x180087d17
mov byte [rbx + 0x71], 0
mov al, 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x180087d0e
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call fcn.1800c1efc
cmp rdi, rax
jne 0x180087d17
cmp byte [rbx + 0x71], 0
sete al
jmp 0x180087cd2
xor al, al
jmp 0x180087cd2