joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001ecf0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x20
mov rax, qword [0x1800a3fc8]
lea rdx, [0x18008cb70]
mov r8d, ecx
mov rbx, qword [rax + 0x1c10]
add rbx, 0xc8
movsxd r9, dword [rbx]
mov rax, qword [rbx + 8]
mov edi, dword [rax + r9*4 - 4]
not edi
movzx eax, r8b
mov r8d, dword [rbx + 4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [rsp + 0x31]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [rsp + 0x32]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [rsp + 0x33]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
shr edi, 8
xor rcx, rax
xor edi, dword [rdx + rcx*4]
not edi
cmp r9d, r8d
jne 0x18001eda7
lea ecx, [r9 + 1]
test r8d, r8d
je 0x18001ed93
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x18001ed98
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, rbx
call fcn.180026760
movsxd rcx, dword [rbx]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*4], edi
inc dword [rbx]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18001fcf0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1800a1080]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1800a3fc8]
mov edi, edx
cmp byte [rbx + 0x1f7d], 0
jne 0x18001fd50
cmp byte [rbx + 0x1f7e], 0
jne 0x18001fd50
mov r9d, dword [rbx + 0x3058]
lea r8, str.Tooltip__02d
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x20]
call fcn.180012c80
test dil, 1
je 0x18001fe6e
jmp 0x18001fdd8
movss xmm1, dword [rbx + 0x1614]
lea r8, str.Tooltip__02d
mov r9d, dword [rbx + 0x3058]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x180091770]
mulss xmm1, dword [0x18009175c]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0x128]
addss xmm1, dword [rbx + 0x12c]
mov qword [rbx + 0x1d10], rax
mov dword [rbx + 0x1cfc], 1
movss dword [rbx + 0x1d08], xmm0
movss dword [rbx + 0x1d0c], xmm1
movss xmm0, dword [rbx + 0x1670]
mulss xmm0, dword [0x180091684]
or dword [rbx + 0x1cf8], 0x41
movss dword [rbx + 0x1d58], xmm0
call fcn.180012c80
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x18001fe28
lea r11, [0x18008cb70]
cmp r9b, 0x23
jne 0x18001fe0b
cmp byte [r8], r9b
jne 0x18001fe0b
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x18001fdf8
not ecx
call fcn.180019af0
test rax, rax
je 0x18001fe6e
cmp byte [rax + 0x8e], 0
je 0x18001fe6e
mov byte [rax + 0x95], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xb0], 1
lea rcx, [rsp + 0x20]
inc dword [rbx + 0x3058]
mov edx, reloc.WS2_32.dll_recv
mov r9d, dword [rbx + 0x3058]
call fcn.180012c80
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.18001c0f0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18004f5c0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x18004df20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1800a1080]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
mov ebx, edx
mov r8, rcx
test al, al
je 0x18004df60
cmp al, 0x25
jne 0x18004df54
cmp byte [r8 + 1], al
jne 0x18004df60
inc r8
movzx eax, byte [r8 + 1]
inc r8
test al, al
jne 0x18004df47
movzx edx, byte [r8]
cmp dl, 0x25
jne 0x18004e0c9
cmp byte [r8 + 1], dl
je 0x18004e0c9
lea r11, [rsp + 0x20]
mov r9, r8
nop
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x18004df9d
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x18004dfc5
sub dl, 0x61
cmp dl, 0x19
ja 0x18004dfb7
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x18004dfc5
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x18004df80
jmp 0x18004dfc8
inc r9
cmp r8, r9
jae 0x18004dfff
movabs rdx, 0x800000000000009
nop word [rax + rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x18004dff4
bt rdx, rax
jb 0x18004dffa
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x18004dfe0
xorps xmm3, xmm3
mov byte [r11], 0
cvtss2sd xmm3, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
movq r9, xmm3
call fcn.180012c80
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x18004e038
nop
inc rcx
cmp byte [rcx], 0x20
je 0x18004e030
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x18004e0b8
movzx r9d, byte [rcx]
movzx r8d, r9b
cmp r9b, 0x2d
jne 0x18004e05a
movzx r8d, byte [rcx + 1]
lea rax, [rcx + 1]
mov rcx, rax
movzx eax, r8b
cmp r8b, 0x2b
jne 0x18004e068
movzx eax, byte [rcx + 1]
lea rdx, [rcx + 1]
xorps xmm1, xmm1
cmovne rdx, rcx
cmp al, 0x30
jl 0x18004e0a6
movss xmm2, dword [0x180091760]
nop
cmp al, 0x39
ja 0x18004e0a6
movzx eax, al
inc rdx
sub eax, 0x30
mulss xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rdx]
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movaps xmm1, xmm0
cmp al, 0x30
jge 0x18004e080
cmp r9b, 0x2d
jne 0x18004e0c4
xorps xmm1, xmmword [0x180091950]
movaps xmm0, xmm1
jmp 0x18004e0cc
call fcn.1800637dc
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movaps xmm0, xmm1
jmp 0x18004e0cc
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18004f5c0
add rsp, 0x90
pop rbx
ret
Function at 0x18004e0f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1800a1080]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
mov ebx, edx
mov r8, rcx
test al, al
je 0x18004e130
cmp al, 0x25
jne 0x18004e124
cmp byte [r8 + 1], al
jne 0x18004e130
inc r8
movzx eax, byte [r8 + 1]
inc r8
test al, al
jne 0x18004e117
movzx edx, byte [r8]
cmp dl, 0x25
jne 0x18004e293
cmp byte [r8 + 1], dl
je 0x18004e293
lea r11, [rsp + 0x20]
mov r9, r8
nop
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x18004e16d
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x18004e195
sub dl, 0x61
cmp dl, 0x19
ja 0x18004e187
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x18004e195
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x18004e150
jmp 0x18004e198
inc r9
cmp r8, r9
jae 0x18004e1cf
movabs rdx, 0x800000000000009
nop word [rax + rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x18004e1c4
bt rdx, rax
jb 0x18004e1ca
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x18004e1b0
movaps xmm3, xmm2
mov byte [r11], 0
movq r9, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
call fcn.180012c80
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x18004e208
nop dword [rax + rax]
inc rcx
cmp byte [rcx], 0x20
je 0x18004e200
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x18004e286
movzx r9d, byte [rcx]
movzx r8d, r9b
cmp r9b, 0x2d
jne 0x18004e22a
movzx r8d, byte [rcx + 1]
lea rax, [rcx + 1]
mov rcx, rax
movzx eax, r8b
cmp r8b, 0x2b
jne 0x18004e238
movzx eax, byte [rcx + 1]
lea rdx, [rcx + 1]
xorps xmm1, xmm1
cmovne rdx, rcx
cmp al, 0x30
jl 0x18004e274
movsd xmm2, qword [0x180091700]
nop
cmp al, 0x39
ja 0x18004e274
movzx eax, al
inc rdx
sub eax, 0x30
mulsd xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rdx]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x18004e250
cmp r9b, 0x2d
jne 0x18004e28e
xorps xmm1, xmmword [0x180091940]
movaps xmm0, xmm1
jmp 0x18004e296
call fcn.1800637dc
movaps xmm1, xmm0
movaps xmm0, xmm1
jmp 0x18004e296
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18004f5c0
add rsp, 0x90
pop rbx
ret

Function at 0x18004e2b0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x1800a1080]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov edi, edx
mov rbx, rcx
mov edx, 4
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x18004e30c
lea r9, [rsp + 0x20]
mov rcx, rbx
lea edx, [rax + 4]
lea r8d, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov edx, 4
mov dword [rbx], edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18004f5c0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x18004e330
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x1800a1080]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rdi, rdx
mov rbx, rcx
mov edx, 8
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x18004e38e
lea r9, [rsp + 0x20]
mov rcx, rbx
lea edx, [rax + 8]
lea r8d, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov edx, 8
mov qword [rbx], rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18004f5c0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x18004e3b0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1800a1080]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rdx
mov rdi, rcx
mov edx, 1
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x18004e427
mov rcx, qword [rbx]
test rcx, rcx
je 0x18004e4c8
mov rdx, qword [rbx + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x18004e41b
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18004e4e5
mov rcx, r8
call fcn.18004f5e0
xor esi, esi
jmp 0x18004e4bd
mov rdx, qword [rbx + 8]
lea r9, [rsp + 0x20]
sub rdx, qword [rbx]
mov r8d, 0x40
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rdx, qword [rbx + 8]
xor esi, esi
mov rcx, qword [rbx]
mov r8d, esi
cmp rdx, rcx
je 0x18004e472
movzx eax, byte [rcx + r8]
inc r8
mov byte [rdi], al
inc rdi
mov rdx, qword [rbx + 8]
mov rcx, qword [rbx]
mov rax, rdx
sub rax, rcx
cmp r8, rax
jb 0x18004e453
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
sub rdx, rcx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rbx]
test rcx, rcx
je 0x18004e4c8
mov rdx, qword [rbx + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x18004e4b8
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18004e4e5
mov rcx, r8
call fcn.18004f5e0
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18004f5c0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call fcn.18005baf8
int3
Function at 0x180056620
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1800564d3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800564d3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800564d3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800564d3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800564d3
cmp dword [rcx + 0x84], 0xe
jbe 0x1800564d3
cmp dword [rcx + 0xf8], 0
je 0x1800564d3
mov ecx, ebx
call fcn.180056584
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.180056360
nop
cmp dword [rbp + 0x20], 0
je 0x180056521
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18005652c
int3
xor r8d, r8d
xor edx, edx
jmp 0x180056464

Function at 0x18005ce90
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.18004ff70
sub rsp, rax
mov rax, qword [0x1800a1080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180066020
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18005cedf
mov rax, rbp
jmp 0x18005cfe7
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 + 0xa3560]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18006d4e0
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xa3560]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18005cfe3
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 0x18005cfe3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18006d4e0
test rax, rax
js 0x18005cfe3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18005cfe3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18005cfd5
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18005cfd5
cmp byte [rcx], 0xd
jne 0x18005cfbb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18005cfca
cmp byte [rcx + 1], 0xa
jne 0x18005cfca
inc rcx
jmp 0x18005cfca
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xa1670]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18005cf9d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18005cfe7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18004f5c0
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 0x180066140
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180066156
mov al, 1
jmp 0x1800661b6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180066167
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800661b4
mov ecx, dword [rcx + 0x18]
nop
call fcn.180071e8c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800661b4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800661b4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800661b4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800661b6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18006c880
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, [0x1800a3560]
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 0x18006c8d7
cmp word [rdx], r13w
jne 0x18006c8d7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18006c8dc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18006ca01
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18006ca22
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18006c915
mov rdx, r9
mov word [rbx], cx
jmp 0x18006c93c
cmp r9, r8
jae 0x18006c94c
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 0x18006c8f6
jmp 0x18006ca01
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 0x18006c9f6
cmp dword [rsp + 0x80], esi
je 0x18006c9f6
lea r8, [0x1800a3560]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18006c9ce
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18006c99e
mov word [rbx], r13w
jmp 0x18006c9fe
mov ecx, recv
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 0x18006c9ab
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18006c9fe
cmp word [rsp + 0x70], r13w
jne 0x18006c9db
cmp rbx, r14
je 0x18006c998
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18006d4e8
cmp word [rsp + 0x70], r13w
je 0x18006ca01
mov ecx, recv
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, [0x1800a3560]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18006c9fb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18006ca01
Function at 0x180071270
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 0x1800712a0
xor eax, eax
jmp 0x180071363
mov rbp, rbx
cmp word [rax], si
je 0x1800712c5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800712ac
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800712a8
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.18006f9d0
movsxd r14, eax
test eax, eax
jne 0x180071303
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180071299
mov rcx, r14
call fcn.180069704
mov rdi, rax
test rax, rax
jne 0x18007131c
xor ecx, ecx
call fcn.180069280
jmp 0x1800712f8
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.18006f9d0
test eax, eax
jne 0x18007134d
mov rcx, rdi
call fcn.180069280
jmp 0x180071357
xor ecx, ecx
call fcn.180069280
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 0x180071380
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 0x180071407
mov rsi, rbx
cmp word [rax], bp
je 0x1800713c6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1800713b0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1800713ac
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.180069704
mov rdi, rax
test rax, rax
je 0x1800713f4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.18007ef80
mov rbp, rdi
xor ecx, ecx
call fcn.180069280
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 0x180074538
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.180066644
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 0x1800745d9
cmp ebx, dword [rsp + 0x30]
je 0x1800745d2
test esi, esi
je 0x1800745d2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1800745ad
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1800745ba
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180074597
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1800745be
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1800745db
mov eax, 1
jmp 0x1800745db
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180078e54
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.18006d4e8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18006d4e8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180078fa4
cmp rax, 0xffffffffffffffff
je 0x180078fa4
xor edi, edi
test rbp, rbp
jle 0x180078f4f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18006acd8
mov rbx, rax
test rax, rax
jne 0x180078edc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180078f45
mov edx, 0x8000
mov ecx, r14d
call fcn.180078cd8
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.180068f78
cmp eax, 0xffffffff
je 0x180078f25
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180078eec
mov edx, r15d
mov ecx, r14d
call fcn.180078cd8
jmp 0x180078f45
cmp byte [rsi + 0x38], dil
je 0x180078f3c
cmp dword [rsi + 0x34], 5
jne 0x180078f3c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recv
cmp byte [rsi + 0x30], dil
je 0x180078f45
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180069280
jmp 0x180078fb8
jns 0x180078fb8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18006d4e8
cmp rax, 0xffffffffffffffff
jne 0x180078f70
cmp byte [rsi + 0x30], dil
je 0x180078fb8
mov edi, dword [rsi + 0x2c]
jmp 0x180078fb8
mov ecx, r14d
call fcn.180071e8c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180078fb8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recv
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recv
jmp 0x180078fb8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180078fb1
mov eax, dword [rsi + 0x2c]
jmp 0x180078fb6
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18006d4e8
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