joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18014291c
Capabilities:
Get file size

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

Function at 0x180142a64
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x18067aff0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x180142abb
cmp word [rdx], r13w
jne 0x180142abb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180142ac0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180142be5
mov r11d, SafeArrayGetDim
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180142c06
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180142af9
mov rdx, r9
mov word [rbx], cx
jmp 0x180142b20
cmp r9, r8
jae 0x180142b30
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x180142ada
jmp 0x180142be5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180142bda
cmp dword [rsp + 0x80], esi
je 0x180142bda
lea r8, [0x18067aff0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180142bb2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180142b82
mov word [rbx], r13w
jmp 0x180142be2
mov ecx, SafeArrayGetDim
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x180142b8f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180142be2
cmp word [rsp + 0x70], r13w
jne 0x180142bbf
cmp rbx, r14
je 0x180142b7c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18014499c
cmp word [rsp + 0x70], r13w
je 0x180142be5
mov ecx, SafeArrayGetDim
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x18067aff0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180142bdf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180142be5
Function at 0x180146588
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1801465b8
xor eax, eax
jmp 0x18014667b
mov rbp, rbx
cmp word [rax], si
je 0x1801465dd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1801465c4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1801465c0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18013a170
movsxd r14, eax
test eax, eax
jne 0x18014661b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1801465b1
mov rcx, r14
call fcn.180139e44
mov rdi, rax
test rax, rax
jne 0x180146634
xor ecx, ecx
call fcn.1801396ec
jmp 0x180146610
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18013a170
test eax, eax
jne 0x180146665
mov rcx, rdi
call fcn.1801396ec
jmp 0x18014666f
xor ecx, ecx
call fcn.1801396ec
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x180146698
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x18014671f
mov rsi, rbx
cmp word [rax], bp
je 0x1801466de
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1801466c8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1801466c4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.180139e44
mov rdi, rax
test rax, rax
je 0x18014670c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.18037edb0
mov rbp, rdi
xor ecx, ecx
call fcn.1801396ec
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18014b314
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.180124564
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x18014b39e
cmp byte [rbp - 0x21], r15b
je 0x18014b399
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x18014b3d4
call fcn.18013a570
test eax, eax
jne 0x18014b3c0
cmp byte [rbp - 0x21], r15b
je 0x18014b3b8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x18014b3d4
cmp byte [rbp - 0x21], r15b
je 0x18014b3d1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1801380b0
test eax, eax
jne 0x18014b474
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.180124564
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x18014b413
cmp byte [rbp - 0x21], r15b
je 0x18014b448
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x18014b448
call fcn.18013a570
test eax, eax
jne 0x18014b434
cmp byte [rbp - 0x21], r15b
je 0x18014b42d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x18014b448
cmp byte [rbp - 0x21], r15b
je 0x18014b445
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1801380b0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x18014b474
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x18014b477
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x18014b485
mov rcx, rdi
call fcn.1801396ec
cmp byte [rbp + 0x3f], r15b
je 0x18014b494
mov rcx, qword [rbp + 0x27]
call fcn.1801396ec
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x18014c158
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.18014499c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18014499c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18014c2a8
cmp rax, 0xffffffffffffffff
je 0x18014c2a8
xor edi, edi
test rbp, rbp
jle 0x18014c253
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1801395f8
mov rbx, rax
test rax, rax
jne 0x18014c1e0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18014c249
mov edx, 0x8000
mov ecx, r14d
call fcn.18014bfdc
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.18014251c
cmp eax, 0xffffffff
je 0x18014c229
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18014c1f0
mov edx, r15d
mov ecx, r14d
call fcn.18014bfdc
jmp 0x18014c249
cmp byte [rsi + 0x38], dil
je 0x18014c240
cmp dword [rsi + 0x34], 5
jne 0x18014c240
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayGetDim
cmp byte [rsi + 0x30], dil
je 0x18014c249
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1801396ec
jmp 0x18014c2bc
jns 0x18014c2bc
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18014499c
cmp rax, 0xffffffffffffffff
jne 0x18014c274
cmp byte [rsi + 0x30], dil
je 0x18014c2bc
mov edi, dword [rsi + 0x2c]
jmp 0x18014c2bc
mov ecx, r14d
call fcn.1801492a4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18014c2bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayGetDim
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayGetDim
jmp 0x18014c2bc
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18014c2b5
mov eax, dword [rsi + 0x2c]
jmp 0x18014c2ba
mov eax, SafeArrayGetElement
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18014499c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x18014c450
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18014c478
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18014c478
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1801585e0
Capabilities:
Read data from internet
Receive data

Disassembly:
push rbx
push rdi
sub rsp, 0x38
mov rdi, qword [rcx + 8]
mov rbx, rdx
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x180158600
xor al, al
add rsp, 0x38
pop rdi
pop rbx
ret
cmp rbx, qword [rdi + 0x88]
je 0x1801586f0
xor r9d, r9d
mov byte [rdi + 0x90], 0
xor r8d, r8d
mov qword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_InternetSetFilePointer]
mov eax, eax
mov qword [rdi + 0x88], rax
cmp rax, rbx
je 0x1801586f0
jg 0x1801585f7
sub rbx, rax
mov qword [rsp + 0x58], rbp
mov ecx, 0x4000
mov qword [rsp + 0x60], rsi
cmp rbx, rcx
mov qword [rsp + 0x30], r14
mov eax, ebx
cmovg eax, ecx
movsxd rbp, eax
mov r14d, eax
test eax, eax
jne 0x18015866a
xor esi, esi
jmp 0x180158675
mov rcx, rbp
call fcn.180124500
mov rsi, rax
test rbx, rbx
jle 0x1801586d9
nop word [rax + rax]
cmp byte [rdi + 0x90], 0
jne 0x1801586d9
xor ecx, ecx
test rsi, rsi
je 0x1801586ce
mov rax, qword [rdi + 0x68]
mov dword [rsp + 0x50], ecx
test rax, rax
je 0x1801586ce
mov r8d, ebx
lea r9, [rsp + 0x50]
cmp rbp, rbx
mov rdx, rsi
mov rcx, rax
cmovl r8d, r14d
call qword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [rsp + 0x50]
add qword [rdi + 0x88], rcx
test ecx, ecx
jne 0x1801586ce
mov byte [rdi + 0x90], 1
movsxd rax, ecx
sub rbx, rax
test rbx, rbx
jg 0x180158680
mov rcx, rsi
call fcn.180124068
mov r14, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov al, 1
add rsp, 0x38
pop rdi
pop rbx
ret

Function at 0x180158700
Capabilities:
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp byte [rcx + 0x10], 0
lea rbx, [rcx + 8]
mov esi, r8d
mov rdi, rdx
jne 0x18015872d
mov byte [rcx + 0x10], 1
xor edx, edx
mov rcx, qword [rbx]
call fcn.180014d20
mov rbx, qword [rbx]
xor eax, eax
test rdi, rdi
je 0x180158773
mov dword [rsp + 0x30], eax
cmp byte [rbx + 0x90], al
jne 0x180158773
mov rcx, qword [rbx + 0x68]
test rcx, rcx
je 0x180158773
lea r9, [rsp + 0x30]
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [rsp + 0x30]
add qword [rbx + 0x88], rax
test eax, eax
jne 0x180158773
mov byte [rbx + 0x90], 1
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180158790
Capabilities:
Get http content length

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [rcx + 0x10], 0
lea rbx, [rcx + 8]
jne 0x1801587ae
mov byte [rcx + 0x10], 1
xor edx, edx
mov rcx, qword [rbx]
call fcn.180014d20
mov rax, qword [rbx]
mov rcx, qword [rax + 0x68]
test rcx, rcx
je 0x1801587f3
xor eax, eax
mov dword [rsp + 0x50], 4
mov dword [rsp + 0x48], eax
lea r9, [rsp + 0x50]
mov dword [rsp + 0x40], eax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x48]
mov edx, 0x20000005
mov qword [rsp + 0x20], rax
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
mov eax, dword [rsp + 0x40]
jne 0x1801587fa
mov rax, 0xffffffffffffffff
add rsp, 0x30
pop rbx
ret
Function at 0x18015e010
Capabilities:
Get system firmware table

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x52534454
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov esi, eax
test eax, eax
je 0x18015e0e6
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rbx
mov edx, esi
lea rcx, [rsp + 0x28]
call fcn.1800216b0
mov rbx, qword [rsp + 0x38]
mov r9d, esi
mov rsi, qword [rsp + 0x28]
mov r8, rsi
mov edx, 0x52534454
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov ecx, eax
mov rdx, qword [rsp + 0x30]
mov rax, rdx
sub rax, rsi
cmp rcx, rax
jne 0x18015e0b2
mov qword [rdi], rsi
mov qword [rdi + 8], rdx
mov qword [rdi + 0x10], rbx
mov byte [rdi + 0x18], 1
mov rax, rdi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
test rsi, rsi
je 0x18015e0e6
sub rbx, rsi
mov rax, rsi
cmp rbx, 0x1000
jb 0x18015e0db
add rbx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18015e0fd
mov rdx, rbx
mov rcx, rsi
call fcn.18011d9c0
mov byte [rdi + 0x18], 0
mov rax, rdi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
call fcn.180124488
int3
Function at 0x18015e420
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x18065f280]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor ecx, ecx
mov eax, 1
cpuid
mov eax, edx
shr eax, 0x17
and al, 1
mov byte [0x1806c70b0], al
mov eax, edx
shr eax, 0x19
and al, 1
shr edx, 0x1a
mov byte [0x1806c70b1], al
and dl, 1
movzx eax, cl
mov byte [0x1806c70b2], dl
and al, 1
mov byte [0x1806c70b3], al
mov eax, ecx
shr eax, 0x1c
and al, 1
mov byte [0x1806c70ba], al
mov eax, ecx
shr eax, 0xc
and al, 1
mov byte [0x1806c70b5], al
mov eax, ecx
shr eax, 9
and al, 1
mov byte [0x1806c70b7], al
mov eax, ecx
shr eax, 0x13
and al, 1
shr ecx, 0x14
mov byte [0x1806c70b8], al
and cl, 1
mov byte [0x1806c70b9], cl
test ebx, 0x80000000
mov eax, 0x80000001
setne byte [0x1806c70b4]
xor ecx, ecx
cpuid
shr ecx, 0x10
mov eax, 7
and cl, 1
mov byte [0x1806c70b6], cl
xor ecx, ecx
cpuid
mov eax, ebx
shr eax, 5
and al, 1
mov byte [0x1806c70bb], al
mov eax, ebx
shr eax, 0x10
and al, 1
mov byte [0x1806c70bc], al
mov eax, ebx
shr eax, 0x11
and al, 1
mov byte [0x1806c70bf], al
mov eax, ebx
shr eax, 0x15
and al, 1
mov byte [0x1806c70c1], al
mov eax, ebx
shr eax, 0x1a
and al, 1
mov byte [0x1806c70c2], al
mov eax, ebx
shr eax, 0x1b
and al, 1
mov byte [0x1806c70c0], al
mov eax, ebx
shr eax, 0x1c
and al, 1
mov byte [0x1806c70be], al
mov eax, ebx
shr eax, 0x1e
and al, 1
shr ebx, 0x1f
mov byte [0x1806c70c4], bl
mov byte [0x1806c70bd], al
mov eax, ecx
shr ecx, 0xe
and cl, 1
shr eax, 1
mov byte [0x1806c70c5], cl
and al, 1
lea rcx, [rsp + 0x28]
mov byte [0x1806c70c3], al
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [rsp + 0x48]
lea rdx, [rsp + 0x20]
xor ebx, ebx
mov dword [0x1806c70a8], eax
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetLogicalProcessorInformation]
mov esi, dword [rsp + 0x20]
cmp rsi, 0x20
jb 0x18015e60a
and rsi, 0xffffffffffffffe0
jne 0x18015e5a8
mov edi, ebx
jmp 0x18015e5b3
mov rcx, rsi
call fcn.180124500
mov rdi, rax
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetLogicalProcessorInformation]
mov rcx, rdi
test eax, eax
jne 0x18015e5cf
call fcn.180124068
jmp 0x18015e60a
lea rdx, [rsi + rdi]
cmp rdi, rdx
je 0x18015e5f8
nop dword [rax + rax]
cmp dword [rcx + 8], 0
lea rax, [rbx + 1]
cmovne rax, rbx
add rcx, 0x20
mov rbx, rax
cmp rcx, rdx
jne 0x18015e5e0
mov rcx, rdi
call fcn.180124068
mov dword [0x1806c70ac], ebx
test ebx, ebx
jg 0x18015e616
mov eax, dword [0x1806c70a8]
mov dword [0x1806c70ac], eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18011d9a0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x18015e740
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov qword [rsp + 0x30], rax
add rax, 0xfffffffffffffff0
lea rdi, [0x180660020]
cmp rax, rdi
je 0x18015e765
lock inc dword [rax]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x38], rax
lea r8, [0x1803acf09]
lea rdx, reloc.WS2_32.dll_ioctlsocket
lea rcx, [rsp + 0x30]
call fcn.18017cea0
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
lea rcx, [rax - 0x10]
cmp rcx, rdi
je 0x18015e7a2
lock inc dword [rcx]
mov rax, qword [rsp + 0x30]
lea rcx, [rax - 0x10]
mov ebx, 0xffffffff
cmp rcx, rdi
je 0x18015e7c2
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, ebx
jne 0x18015e7c2
call fcn.18011d9c0
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.180017f90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffff0
cmp rcx, rdi
je 0x18015e7f9
lock xadd dword [rcx], ebx
dec ebx
cmp ebx, 0xffffffff
jne 0x18015e7f9
call fcn.18011d9c0
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x18015f000
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov esi, r9d
mov ebp, r8d
mov r14, rdx
mov rbx, rcx
lea rdx, [rcx + 0x10]
lea rcx, [rsp + 0x30]
call fcn.18000fed0
nop
mov rbx, qword [rbx]
test rbx, rbx
je 0x18015f166
mov edx, esi
mov rcx, rbx
call fcn.180014930
test al, al
je 0x18015f166
xor edi, edi
test ebp, ebp
jle 0x18015f16b
mov qword [rsp + 0x48], rdi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x90]
mov r8d, ebp
mov rdx, r14
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18015f0b8
mov edi, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18015f16b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x18015f15b
movzx eax, byte [rbx + 0x1a]
nop
test al, al
jne 0x18015f108
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x40], rax
mov r9d, 0xffffffff
test esi, esi
cmovns r9d, esi
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x18015f114
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CancelIo]
jmp 0x18015f15b
xor r9d, r9d
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x48]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x18015f0a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x18015f15b
cmp byte [rbx + 0x19], dil
je 0x18015f15b
cmp byte [rbx + 0x18], dil
je 0x18015f15b
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov byte [rbx + 0x18], dil
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0xffffffff
mov rcx, qword [rsp + 0x30]
call fcn.180175220
mov eax, edi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x18015ff90
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x450
mov rax, qword [0x18065f280]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
xor eax, eax
mov word [rsp + 0x30], ax
lea rdx, [rsp + 0x30]
mov ecx, 0x204
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.18001d210
nop
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.18018e080
nop
mov rcx, qword [rsp + 0x20]
add rcx, 0xfffffffffffffff0
lea rax, [0x180660020]
cmp rcx, rax
je 0x180160012
mov edx, 0xffffffff
lock xadd dword [rcx], edx
dec edx
cmp edx, 0xffffffff
jne 0x180160012
call fcn.18011d9c0
mov rax, rbx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.18011d9a0
add rsp, 0x450
pop rbx
ret
Function at 0x180160040
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x1040
call fcn.18011e9f0
sub rsp, rax
mov rax, qword [0x18065f280]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
xor r8d, r8d
cmp edx, 0x11
ja case.default.0x180160089
movsxd rax, edx
lea rdx, [0x180000000]
mov ecx, dword [rdx + rax*4 + 0x160228]
add rcx, rdx
jmp rcx
mov r8d, 0x28
jmp case.0x180160089.2
mov r8d, 5
jmp case.0x180160089.2
mov r8d, reloc.OLEAUT32.dll_SafeArrayCopy
jmp case.0x180160089.2
mov r8d, 0x23
jmp case.0x180160089.2
mov r8d, 0x2e
jmp case.0x180160089.2
mov r8d, 0x26
jmp case.0x180160089.2
mov r8d, 0x2a
jmp case.0x180160089.2
mov r8d, 0x1c
jmp case.0x180160089.2
mov r8d, SafeArrayGetDim
jmp case.0x180160089.2
mov r8d, SafeArrayGetDim
jmp case.0x180160089.2
mov r8d, 0x27
xor r9d, r9d
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.default.0x180160089
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.18001d210
nop
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.18018e080
nop
mov rcx, qword [rsp + 0x20]
add rcx, 0xfffffffffffffff0
lea rax, [0x180660020]
cmp rcx, rax
je 0x18016020c
mov eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18016020c
call fcn.18011d9c0
jmp 0x18016020c
mov word [rsp + 0x30], r8w
lea rdx, [rsp + 0x30]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.18001d210
nop
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.18018e080
nop
jmp 0x1801601b8
mov word [rsp + 0x30], r8w
mov edx, 0x800
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.18001d210
nop
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.18018e080
nop
mov rcx, qword [rsp + 0x20]
lea rax, [0x180660020]
add rcx, 0xfffffffffffffff0
cmp rcx, rax
je 0x18016020c
mov eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18016020c
call fcn.18011d9c0
jmp 0x18016020c
call fcn.18015cea0
mov rdx, rax
mov rcx, rbx
call fcn.180161690
jmp 0x18016020c
xor edx, edx
mov rcx, rbx
call fcn.180161690
jmp 0x18016020c
lea rax, [0x180660030]
mov qword [rbx], rax
mov rax, rbx
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.18011d9a0
add rsp, 0x1040
pop rbx
ret