joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000fe60
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1800653c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r15d, r8d
mov rsi, rdx
mov rdi, rcx
cmp qword [rcx + 8], 0
je 0x18000fe99
mov eax, 3
jmp 0x180010067
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor edx, edx
mov rbx, 0xffffffffffffffff
lea r8d, [r9 + 4]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [rdi + 8], rax
test rax, rax
jne 0x18000fee3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov edx, eax
lea rcx, str.SpoutSharedMemory::Create___Failed_error___lu__0x_4.4lX_
call sym.SpoutDX.dll_void___cdecl_spoututils::SpoutLogError_char_const____ptr64_
xor eax, eax
jmp 0x180010067
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
cmp eax, 0xb7
jne 0x18000ff00
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r14d, [rbp + 1]
jmp 0x18000ff18
mov r14d, ebp
test eax, eax
je 0x18000ff18
mov r8d, eax
mov edx, eax
lea rcx, str.SpoutSharedMemory::Create___Error___lu__0x_4.4lX_
call sym.SpoutDX.dll_void___cdecl_spoututils::SpoutLogError_char_const____ptr64_
mov qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi], rax
test rax, rax
jne 0x18000ff49
mov rcx, rdi
call sym.SpoutDX.dll_public:_void___cdecl_SpoutSharedMemory::Close_void____ptr64
xor eax, eax
jmp 0x180010067
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], bpl
inc rbx
cmp byte [rsi + rbx], 0
jne 0x18000ff64
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.180005050
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 6
jb 0x18000ffc9
lea rax, [rcx + 6]
mov qword [rsp + 0x40], rax
lea rbx, [rsp + 0x30]
cmp rdx, 0xf
cmova rbx, qword [rsp + 0x30]
add rbx, rcx
mov r8d, 6
lea rdx, str._mutex
mov rcx, rbx
call fcn.1800459b0
mov byte [rbx + 6], 0
jmp 0x18000ffea
mov qword [rsp + 0x20], 6
lea r9, str._mutex
xor r8d, r8d
lea edx, [r8 + 6]
lea rcx, [rsp + 0x30]
call fcn.180001460
lea r8, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova r8, qword [rsp + 0x30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x180010018
mov rcx, rdi
call sym.SpoutDX.dll_public:_void___cdecl_SpoutSharedMemory::Close_void____ptr64
jmp 0x18001002c
mov rcx, rsi
call fcn.18002e20c
mov qword [rdi + 0x20], rax
mov dword [rdi + 0x28], r15d
lea ebp, [r14 + 1]
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x180010065
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180010060
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180010088
call fcn.18001c6c8
mov eax, ebp
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18001cb50
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.18002387c
int3
Function at 0x1800116e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov r11, rsp
push rbx
push rbp
push r15
sub rsp, 0x60
mov rax, qword [0x1800653c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [r11 + 8], rsi
xorps xmm0, xmm0
mov qword [r11 + 0x18], rdi
mov rbx, rcx
xor edi, edi
mov qword [r11 - 0x20], r12
movups xmmword [rsp + 0x20], xmm0
mov qword [r11 - 0x48], rdi
mov r8, 0xffffffffffffffff
mov qword [r11 - 0x40], rdi
inc r8
cmp byte [rdx + r8], dil
jne 0x180011722
lea rcx, [rsp + 0x20]
call fcn.180001350
mov r15, qword [rsp + 0x38]
lea r8, [rsp + 0x20]
mov r9, qword [rbx + 0x60]
cmp r15, 0xf
mov rbp, qword [rsp + 0x20]
movabs rdx, 0xcbf29ce484222325
mov rsi, qword [rsp + 0x30]
cmova r8, rbp
mov rcx, rdi
mov r12, qword [r9 + 8]
test rsi, rsi
je 0x180011794
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
inc rcx
xor rdx, rax
imul rdx, r10
cmp rcx, rsi
jb 0x180011780
mov rcx, qword [r9 + 0x30]
mov rax, qword [r9 + 0x18]
and rcx, rdx
add rcx, rcx
mov rbx, qword [rax + rcx*8 + 8]
cmp rbx, r12
je 0x1800117f6
mov qword [rsp + 0x50], r14
mov r14, qword [rax + rcx*8]
cmp qword [rbx + 0x28], 0xf
lea rdx, [rbx + 0x10]
jbe 0x1800117c4
mov rdx, qword [rbx + 0x10]
cmp r15, 0xf
lea rcx, [rsp + 0x20]
cmova rcx, rbp
cmp rsi, qword [rbx + 0x20]
jne 0x1800117e3
mov r8, rsi
call fcn.180046490
test eax, eax
je 0x1800117ee
cmp rbx, r14
je 0x1800117f1
mov rbx, qword [rbx + 8]
jmp 0x1800117b5
mov rdi, rbx
mov r14, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x80]
test rdi, rdi
cmove rdi, r12
cmp rdi, r12
mov r12, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x90]
setne bl
cmp r15, 0xf
jbe 0x18001184b
lea rdx, [r15 + 1]
mov rax, rbp
cmp rdx, 0x1000
jb 0x180011843
mov rbp, qword [rbp - 8]
add rdx, 0x27
sub rax, rbp
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180011864
mov rcx, rbp
call fcn.18001c6c8
movzx eax, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18001cb50
add rsp, 0x60
pop r15
pop rbp
pop rbx
ret
call fcn.18002387c
int3

Function at 0x180013550
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov edi, edx
lea rcx, str.spoutSenderNames::SetMaxSenders___Setting_max_senders_to__d
call sym.SpoutDX.dll_void___cdecl_spoututils::SpoutLogNotice_char_const____ptr64_
mov r9d, edi
mov dword [rbx + 0x68], edi
lea r8, str.MaxSenders
mov rcx, 0xffffffff80000001
lea rdx, str.SoftwareLeading_EdgeSpout
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp sym.SpoutDX.dll_bool___cdecl_spoututils::WriteDwordToRegistry_struct_HKEY______ptr64__char_const____ptr64__char_const____ptr64__unsigned_long_int_
Function at 0x18001a300
Capabilities:
Encode data using xor

Disassembly:
test rdx, rdx
je 0x18001a440
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r12
sub rsp, 0x40
mov r12, r8
mov esi, r9d
mov r8, rdx
mov rdi, rcx
test r12, r12
je 0x18001a438
mov qword [rsp + 0x60], rbx
xor ebx, ebx
mov qword [rsp + 0x70], rbp
mov ebp, dword [rsp + 0x80]
test ebp, ebp
je 0x18001a42e
mov qword [rsp + 0x78], r13
mov r13d, esi
mov qword [rsp + 0x38], r14
and r13d, 0xf
movzx r14d, byte [rsp + 0x98]
mov qword [rsp + 0x30], r15
mov r15d, dword [rsp + 0x88]
nop dword [rax]
mov ecx, ebx
imul ecx, dword [rsp + 0x90]
shr rcx, 2
lea rax, [r12 + rcx*4]
test r14b, r14b
je 0x18001a38f
mov edx, ebp
sub edx, ebx
dec edx
jmp 0x18001a391
mov edx, ebx
imul edx, r15d
shr rdx, 2
lea r10, [r8 + rdx*4]
test r13d, r13d
jne 0x18001a3d4
cmp byte [rdi], r13b
je 0x18001a410
mov r9d, esi
mov byte [rsp + 0x28], r14b
mov r8, rax
mov dword [rsp + 0x20], 1
mov rdx, r10
mov rcx, rdi
cmp byte [rdi + 2], r13b
je 0x18001a3cd
call sym.SpoutDX.dll_protected:_void___cdecl_spoutCopy::rgba_bgra_sse3_void_const____ptr64__void____ptr64__unsigned_int__unsigned_int__bool_const___ptr64
jmp 0x18001a410
call sym.SpoutDX.dll_protected:_void___cdecl_spoutCopy::rgba_bgra_sse2_void_const____ptr64__void____ptr64__unsigned_int__unsigned_int__bool_const___ptr64
jmp 0x18001a410
test r10, r10
je 0x18001a410
test rax, rax
je 0x18001a410
test esi, esi
je 0x18001a410
sub r10, rax
mov r8, rsi
nop dword [rax + rax]
mov ecx, dword [r10 + rax]
lea rax, [rax + 4]
mov edx, ecx
rol edx, 0x10
xor edx, ecx
and edx, 0xff00ff
xor edx, ecx
mov dword [rax - 4], edx
sub r8, 1
jne 0x18001a3f0
mov r8, qword [rsp + 0x68]
inc ebx
cmp ebx, ebp
jb 0x18001a370
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x18001a450
Capabilities:
Encode data using xor

Disassembly:
test rdx, rdx
je 0x18001a591
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r13
sub rsp, 0x40
mov r13, r8
mov edi, r9d
mov r8, rdx
mov rsi, rcx
test r13, r13
je 0x18001a589
mov qword [rsp + 0x60], rbx
xor ebx, ebx
mov qword [rsp + 0x38], r14
mov r14d, dword [rsp + 0x80]
test r14d, r14d
je 0x18001a57f
mov qword [rsp + 0x70], rbp
movzx ebp, byte [rsp + 0x90]
mov qword [rsp + 0x78], r12
mov r12d, edi
mov qword [rsp + 0x30], r15
and r12d, 0xf
mov r15d, dword [rsp + 0x88]
nop
mov eax, ebx
imul eax, edi
lea rax, [rax*4]
add rax, r13
test bpl, bpl
je 0x18001a4de
mov edx, r14d
sub edx, ebx
dec edx
jmp 0x18001a4e0
mov edx, ebx
imul edx, r15d
shr rdx, 2
lea r10, [r8 + rdx*4]
test r12d, r12d
jne 0x18001a523
cmp byte [rsi], r12b
je 0x18001a560
mov r9d, edi
mov byte [rsp + 0x28], bpl
mov r8, rax
mov dword [rsp + 0x20], 1
mov rdx, r10
mov rcx, rsi
cmp byte [rsi + 2], r12b
je 0x18001a51c
call sym.SpoutDX.dll_protected:_void___cdecl_spoutCopy::rgba_bgra_sse3_void_const____ptr64__void____ptr64__unsigned_int__unsigned_int__bool_const___ptr64
jmp 0x18001a560
call sym.SpoutDX.dll_protected:_void___cdecl_spoutCopy::rgba_bgra_sse2_void_const____ptr64__void____ptr64__unsigned_int__unsigned_int__bool_const___ptr64
jmp 0x18001a560
test r10, r10
je 0x18001a560
test rax, rax
je 0x18001a560
test edi, edi
je 0x18001a560
sub r10, rax
mov r8, rdi
nop word [rax + rax]
mov ecx, dword [r10 + rax]
lea rax, [rax + 4]
mov edx, ecx
rol edx, 0x10
xor edx, ecx
and edx, 0xff00ff
xor edx, ecx
mov dword [rax - 4], edx
sub r8, 1
jne 0x18001a540
mov r8, qword [rsp + 0x68]
inc ebx
cmp ebx, r14d
jb 0x18001a4c0
mov r15, qword [rsp + 0x30]
mov r12, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x60]
mov r14, qword [rsp + 0x38]
add rsp, 0x40
pop r13
pop rdi
pop rsi
ret
Function at 0x18001a5a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x58
mov r10, r8
mov r11d, r9d
mov r8d, dword [rsp + 0x80]
test r10, r10
je 0x18001a782
test rdx, rdx
je 0x18001a782
mov r9d, dword [rsp + 0x88]
mov qword [rsp + 0x60], rbx
mov ebx, r9d
mov qword [rsp + 0x50], r12
test r9d, r9d
jne 0x18001a5e6
lea ebx, [r11*4]
movzx r12d, byte [rsp + 0x98]
test r12b, r12b
jne 0x18001a64f
cmp r11d, 0x140
jb 0x18001a64f
test r11b, 0xf
jne 0x18001a64f
cmp byte [rcx + 1], r12b
je 0x18001a64f
movzx eax, byte [rsp + 0xa0]
mov r9d, r11d
mov byte [rsp + 0x98], al
movzx eax, byte [rsp + 0x90]
mov byte [rsp + 0x90], al
mov dword [rsp + 0x88], ebx
mov dword [rsp + 0x80], r8d
mov r8, r10
mov rbx, qword [rsp + 0x60]
mov r12, qword [rsp + 0x50]
add rsp, 0x58
jmp sym.SpoutDX.dll_public:_void___cdecl_spoutCopy::rgba_to_rgb_sse3_void_const____ptr64__void____ptr64__unsigned_int__unsigned_int__unsigned_int__bool__bool_const___ptr64
mov qword [rsp + 0x68], rbp
lea rax, [r11*4]
mov qword [rsp + 0x70], rsi
lea rbp, [r11 + r11*2]
mov qword [rsp + 0x48], r14
mov rcx, r11
mov r14, r9
mov qword [rsp + 0x40], r15
movzx r15d, byte [rsp + 0x90]
sub r14, rax
mov rsi, r8
test r15b, r15b
je 0x18001a69a
mov rax, r8
imul rax, rcx
lea rcx, [rax + rax*2]
sub rcx, rbp
add r10, rcx
test r8d, r8d
je 0x18001a764
movzx ecx, byte [rsp + 0xa0]
mov eax, ecx
mov qword [rsp + 0x78], rdi
lea ebx, [rax + rax]
mov eax, ecx
xor rax, 1
lea rdi, [rax + rax]
nop
xor r9d, r9d
test r11d, r11d
je 0x18001a740
test r12b, r12b
je 0x18001a710
nop dword [rax]
mov eax, r11d
sub eax, r9d
inc r9d
dec eax
lea eax, [rax + rax*2]
mov r8d, eax
lea rcx, [rbx + rax]
movzx eax, byte [rdx]
mov byte [rcx + r10], al
movzx eax, byte [rdx + 1]
mov byte [r8 + r10 + 1], al
lea rcx, [rdi + r8]
movzx eax, byte [rdx + 2]
add rdx, 4
mov byte [rcx + r10], al
cmp r9d, r11d
jb 0x18001a6d0
jmp 0x18001a740
movzx eax, byte [rdx]
lea r8d, [r9 + r9*2]
lea rcx, [r10 + rbx]
inc r9d
mov byte [rcx + r8], al
lea rcx, [r10 + rdi]
movzx eax, byte [rdx + 1]
mov byte [r8 + r10 + 1], al
movzx eax, byte [rdx + 2]
add rdx, 4
mov byte [rcx + r8], al
cmp r9d, r11d
jb 0x18001a710
add r10, rbp
add rdx, r14
test r15b, r15b
je 0x18001a755
mov rax, rbp
neg rax
lea r10, [r10 + rax*2]
sub rsi, 1
jne 0x18001a6c0
mov rdi, qword [rsp + 0x78]
mov r14, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov r15, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x60]
mov r12, qword [rsp + 0x50]
add rsp, 0x58
ret
Function at 0x18001aef0
Capabilities:
Encode data using xor

Disassembly:
test rdx, rdx
je 0x18001afa8
mov qword [rsp + 0x18], rsi
push rdi
mov r11d, r9d
mov rdi, r8
mov rsi, rdx
test r8, r8
je 0x18001afa2
mov qword [rsp + 0x10], rbx
xor r10d, r10d
mov ebx, dword [rsp + 0x30]
test ebx, ebx
je 0x18001af9d
mov qword [rsp + 0x18], rbp
movzx ebp, byte [rsp + 0x38]
nop
mov eax, r10d
imul eax, r11d
lea rdx, [rax*4]
test bpl, bpl
je 0x18001af55
mov ecx, ebx
sub ecx, r10d
dec ecx
imul ecx, r11d
shl rcx, 2
jmp 0x18001af58
mov rcx, rdx
lea rax, [rdx + rdi]
lea r9, [rcx + rsi]
test r11d, r11d
je 0x18001af90
sub r9, rax
mov r8, r11
nop dword [rax + rax]
mov ecx, dword [r9 + rax]
lea rax, [rax + 4]
mov edx, ecx
rol edx, 0x10
xor edx, ecx
and edx, 0xff00ff
xor edx, ecx
mov dword [rax - 4], edx
sub r8, 1
jne 0x18001af70
inc r10d
cmp r10d, ebx
jb 0x18001af30
mov rbp, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x20]
pop rdi
ret

Function at 0x18001afb0
Capabilities:
Encode data using xor

Disassembly:
test rdx, rdx
je 0x18001b100
mov qword [rsp + 0x20], r14
push r15
mov r14, r8
mov r15, rdx
test r8, r8
je 0x18001b0f9
movdqa xmm4, xmmword [0x18004cad0]
mov qword [rsp + 0x10], rbx
xor ebx, ebx
mov qword [rsp + 0x20], rdi
mov edi, dword [rsp + 0x30]
test edi, edi
je 0x18001b0ef
mov qword [rsp + 0x18], rsi
movzx esi, byte [rsp + 0x38]
nop dword [rax]
mov ecx, ebx
imul ecx, r9d
test sil, sil
je 0x18001b017
mov eax, edi
sub eax, ebx
dec eax
imul eax, r9d
jmp 0x18001b019
mov eax, ecx
lea r10, [r15 + rax*4]
xor eax, eax
lea r11, [r14 + rcx*4]
test r11b, 0xf
je 0x18001b063
nop dword [rax]
cmp eax, r9d
jae 0x18001b063
mov ecx, dword [r10 + rax*4]
lea r8, [rax*4]
mov edx, ecx
inc eax
rol edx, 0x10
xor edx, ecx
and edx, 0xff00ff
xor edx, ecx
mov ecx, eax
shl cl, 2
add cl, r11b
mov dword [r8 + r11], edx
test cl, 0xf
jne 0x18001b030
lea ecx, [rax + 3]
cmp ecx, r9d
jae 0x18001b0a2
nop dword [rax + rax]
movdqu xmm2, xmmword [r10 + rax*4]
movdqa xmm1, xmm4
movdqa xmm0, xmm2
andnps xmm1, xmm2
andps xmm0, xmm4
pshuflw xmm0, xmm0, 0xb1
pshufhw xmm3, xmm0, 0xb1
orps xmm3, xmm1
movdqu xmmword [r11 + rax*4], xmm3
add eax, 4
lea ecx, [rax + 3]
cmp ecx, r9d
jb 0x18001b070
cmp eax, r9d
jae 0x18001b0e0
sub r10, r11
lea rdx, [r11 + rax*4]
mov r8d, r9d
sub r8d, eax
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [r10 + rdx]
lea rdx, [rdx + 4]
mov ecx, eax
rol ecx, 0x10
xor ecx, eax
and ecx, 0xff00ff
xor ecx, eax
mov dword [rdx - 4], ecx
sub r8, 1
jne 0x18001b0c0
inc ebx
cmp ebx, edi
jb 0x18001b000
mov rsi, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
pop r15
ret
Function at 0x180028624
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1800653c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x18002866e
call fcn.18002f894
mov dword [rax], 0xf
call fcn.18002f8b4
mov dword [rax], 0xd
call fcn.18002385c
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18001cb50
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x180028679
lea eax, [rbx + 1]
jmp 0x18002865b
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x180028659
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x18002865b
Function at 0x180037c00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.18001cff0
sub rsp, rax
mov rax, qword [0x1800653c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180034834
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180037c4f
mov rax, rbp
jmp 0x180037d57
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x67c60]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180038d20
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x67c60]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180037d53
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180037d53
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180038d20
test rax, rax
js 0x180037d53
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180037d53
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180037d45
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180037d45
cmp byte [rcx], 0xd
jne 0x180037d2b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180037d3a
cmp byte [rcx + 1], 0xa
jne 0x180037d3a
inc rcx
jmp 0x180037d3a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x657e0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180037d0d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180037d57
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18001cb50
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x180037f78
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180037f8e
mov al, 1
jmp 0x180037fee
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180037f9f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180037fec
mov ecx, dword [rcx + 0x18]
nop
call fcn.180041bc8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180037fec
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180037fec
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180037fec
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180037fee
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800380c0
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, [0x180067c60]
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 0x180038117
cmp word [rdx], r13w
jne 0x180038117
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18003811c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180038241
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180038262
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180038155
mov rdx, r9
mov word [rbx], cx
jmp 0x18003817c
cmp r9, r8
jae 0x18003818c
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 0x180038136
jmp 0x180038241
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 0x180038236
cmp dword [rsp + 0x80], esi
je 0x180038236
lea r8, [0x180067c60]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18003820e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1800381de
mov word [rbx], r13w
jmp 0x18003823e
mov ecx, 0xd
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 0x1800381eb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18003823e
cmp word [rsp + 0x70], r13w
jne 0x18003821b
cmp rbx, r14
je 0x1800381d8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180038d28
cmp word [rsp + 0x70], r13w
je 0x180038241
mov ecx, 0xd
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, [0x180067c60]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18003823b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180038241
Function at 0x180038dcc
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180038dec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18002f828
or eax, 0xffffffff
jmp 0x180038dee
xor eax, eax
add rsp, 0x28
ret
Function at 0x18003ca74
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 0x18003caa4
xor eax, eax
jmp 0x18003cb67
mov rbp, rbx
cmp word [rax], si
je 0x18003cac9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18003cab0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18003caac
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.1800357c4
movsxd r14, eax
test eax, eax
jne 0x18003cb07
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18003ca9d
mov rcx, r14
call fcn.1800336b0
mov rdi, rax
test rax, rax
jne 0x18003cb20
xor ecx, ecx
call fcn.180033674
jmp 0x18003cafc
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.1800357c4
test eax, eax
jne 0x18003cb51
mov rcx, rdi
call fcn.180033674
jmp 0x18003cb5b
xor ecx, ecx
call fcn.180033674
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 0x18003cb84
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 0x18003cc0b
mov rsi, rbx
cmp word [rax], bp
je 0x18003cbca
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x18003cbb4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x18003cbb0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1800336b0
mov rdi, rax
test rax, rax
je 0x18003cbf8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1800459b0
mov rbp, rdi
xor ecx, ecx
call fcn.180033674
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 0x18003fbfc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.180031628
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x18003fc9d
cmp ebx, dword [rsp + 0x30]
je 0x18003fc96
test esi, esi
je 0x18003fc96
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18003fc71
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18003fc7e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18003fc5b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18003fc82
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18003fc9f
mov eax, 1
jmp 0x18003fc9f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret