joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180083de0
Capabilities:
Get file size
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, 0x170
mov rax, qword [0x180364978]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x50], rcx
mov r15, r8
mov rcx, rdx
mov r12, rdx
xor esi, esi
xor edi, edi
call fcn.180071c48
mov rbp, rax
test rax, rax
jne 0x180083e5f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.18004f6f0
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r12
mov r9, rax
mov rcx, r15
call fcn.1800640d0
mov ebx, 0x4d
jmp 0x180083fa6
and qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rbp
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x180083eb3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.18004f6f0
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
jmp 0x180083e47
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x180083efc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.18004f6f0
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r12
mov r9, rax
mov rcx, r15
call fcn.1800640d0
mov ebx, 0x4d
jmp 0x180083f9d
mov rbx, qword [rsp + 0x48]
mov eax, 0x100000
cmp rbx, rax
jle 0x180083f1f
mov r8d, eax
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.1800640d0
jmp 0x180083ef2
lea rcx, [rbx + 1]
call qword [fcn.1800b5f74]
mov rsi, rax
test rax, rax
jne 0x180083f36
lea ebx, [rax + 0x1b]
jmp 0x180083f9d
test rbx, rbx
je 0x180083f7f
and dword [rsp + 0x40], 0
lea rdx, [rsi + rdi]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, ebx
mov r13d, edi
sub r8d, edi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180083fe9
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x180083f76
mov ebx, r13d
jmp 0x180083f78
add edi, eax
mov eax, edi
cmp rax, rbx
jb 0x180083f3b
mov rcx, qword [rsp + 0x50]
mov r9, r12
mov r8, rbx
mov byte [rbx + rsi], 0
mov rdx, rsi
mov qword [rsp + 0x20], r15
call fcn.180083ba4
mov ebx, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [fcn.1800b5f60]
test rbp, rbp
je 0x180083fbc
mov rcx, rbp
call fcn.1800b5f60
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1800ac760
mov rbx, qword [rsp + 0x1c8]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.18004f6f0
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
jmp 0x180083ee4
Function at 0x180086d68
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rdi, rcx
mov ecx, dword [rcx + 0x20]
mov r15, rdx
add rcx, 0x18
mov r14d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [fcn.1800b5f74]
xor esi, esi
mov rbx, rax
test rax, rax
je 0x180086e7d
lea rcx, [rax + 0x18]
mov qword [rax], rdi
mov qword [rax + 8], rcx
lea rbp, [rdi + 8]
mov eax, dword [rdi + 0x18]
add rax, rcx
mov qword [rbx + 0x10], rax
cmp r14d, dword [rdi + 0x1c]
jbe 0x180086df2
call qword [rdi]
mov rcx, qword [rbx + 8]
mov r8d, r14d
mov rdx, r15
call qword [rbp]
mov r15d, dword [rdi + 0x18]
add r15, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r15
call qword [rdi + reloc.WS2_32.dll_recv]
mov r14d, dword [rdi + 0x20]
mov rcx, qword [rbx + 8]
call qword [rdi]
mov rcx, qword [rbx + 0x10]
call qword [rdi]
test r14, r14
je 0x180086e72
mov rsi, r14
mov al, byte [r15]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rbp]
mov al, byte [r15]
lea rdx, [rsp + 0x40]
xor al, 0x5c
mov r8d, 1
mov byte [rsp + 0x40], al
inc r15
mov rcx, qword [rbx + 0x10]
call qword [rbp]
sub r14, 1
jne 0x180086e06
jmp 0x180086e72
mov rcx, qword [rbx + 8]
lea rdx, [0x1803435b1]
mov r8d, 1
call qword [rbp]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1803435b2]
mov r8d, 1
call qword [rbp]
inc rsi
mov eax, dword [rdi + 0x1c]
cmp rsi, rax
jb 0x180086e47
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x18008773c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1800877c0
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1800877c0
dec r8
sub rdx, 1
jne 0x1800877a6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

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

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x18008cb26
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x18008cb09
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x18008caf4
Function at 0x1800c432c
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 0x1800c41d3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800c41d3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800c41d3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800c41d3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800c41d3
cmp dword [rcx + 0x84], 0xe
jbe 0x1800c41d3
cmp dword [rcx + 0xf8], 0
je 0x1800c41d3
mov ecx, ebx
call fcn.1800c4290
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.1800c4060
nop
cmp dword [rbp + 0x20], 0
je 0x1800c4221
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800c422c
int3
xor r8d, r8d
xor edx, edx
jmp 0x1800c4164

Function at 0x1800c6aec
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.1800ad130
sub rsp, rax
mov rax, qword [0x180364978]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800c08dc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800c6b3b
mov rax, rbp
jmp 0x1800c6c43
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 + 0x369090]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800d5360
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x369090]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800c6c3f
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 0x1800c6c3f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800d5360
test rax, rax
js 0x1800c6c3f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800c6c3f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800c6c31
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800c6c31
cmp byte [rcx], 0xd
jne 0x1800c6c17
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800c6c26
cmp byte [rcx + 1], 0xa
jne 0x1800c6c26
inc rcx
jmp 0x1800c6c26
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x364bb0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1800c6bf9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800c6c43
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800ac760
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 0x1800c8404
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x180364978]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x180349c20]
mov rbp, rcx
call fcn.1800c6e20
xor edi, edi
test rax, rax
je 0x1800c84ea
mov ebx, edi
call fcn.1800b6050
mov r14d, dword [rax]
call fcn.1800b6050
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.1800d951c
mov rsi, rax
test rax, rax
je 0x1800c847b
call fcn.1800b6050
mov dword [rax], r14d
jmp 0x1800c84a5
call fcn.1800b6050
cmp dword [rax], 0x22
jne 0x1800c84e2
call fcn.1800b6050
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1800d951c
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1800c84e2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1800c84a9
cmp rax, 3
je 0x1800c84c4
mov rcx, rsi
call fcn.1800c8360
test al, al
je 0x1800c84d5
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1800c84d5
mov dil, 1
mov rcx, rbx
call fcn.1800b5f60
mov al, dil
jmp 0x1800c84ec
mov rcx, rbx
call fcn.1800b5f60
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1800ac760
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1800cde10
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x180369090]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1800cde6e
cmp word [rdx], r12w
jne 0x1800cde6e
or byte [rax + r8*8 + 0x38], cl
jmp 0x1800cde74
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1800cdfcf
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1800cdfaa
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1800cdead
mov rcx, r9
jmp 0x1800cded0
cmp r9, rdx
jae 0x1800cdee7
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1800cde91
jmp 0x1800cdfcf
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800cdfa4
cmp dword [rsp + 0x80], edi
je 0x1800cdfa4
mov rdx, r14
lea r11, [0x180369090]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1800cdf7d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1800cdf50
mov word [rbx], r12w
jmp 0x1800cdfcb
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1800cdf59
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1800cdfcb
cmp word [rsp + 0x70], r12w
jne 0x1800cdf8a
cmp rbx, rsi
je 0x1800cdf4a
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1800d5368
cmp word [rsp + 0x70], r12w
je 0x1800cdfcf
mov word [rbx], r13w
jmp 0x1800cdfcb
lea r11, [0x180369090]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1800cdfc7
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1800cdfcf
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800d4b8c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1800d4bbe
call fcn.1800b6050
mov dword [rax], socket
call fcn.1800b3684
jmp 0x1800d4cdd
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1800d4cdd
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1800d4cdd
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1800d4bed
lock or dword [rcx + 0x14], 0x10
jmp 0x1800d4cdd
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1800d4c01
call fcn.1800d5558
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1800c08dc
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1800ce2bc
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1800d4ccb
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1800d4c96
mov rcx, rsi
call fcn.1800c08dc
cmp eax, edi
je 0x1800d4c81
mov rcx, rsi
call fcn.1800c08dc
cmp eax, 0xfffffffe
je 0x1800d4c81
mov rcx, rsi
call fcn.1800c08dc
movsxd rbx, eax
lea r14, [0x180369090]
mov rcx, rsi
sar rbx, 6
call fcn.1800c08dc
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1800d4c88
lea rdx, [0x180364e40]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1800d4c96
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1800d4cba
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1800d4cba
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1800d4cba
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1800d4ce0
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1800d8fc4
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.1800d5368
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800d5368
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800d9114
cmp rax, 0xffffffffffffffff
je 0x1800d9114
xor edi, edi
test rbp, rbp
jle 0x1800d90bf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800d3530
mov rbx, rax
test rax, rax
jne 0x1800d904c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800d90b5
mov edx, 0x8000
mov ecx, r14d
call fcn.1800d8df0
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.1800cf200
cmp eax, 0xffffffff
je 0x1800d9095
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800d905c
mov edx, r15d
mov ecx, r14d
call fcn.1800d8df0
jmp 0x1800d90b5
cmp byte [rsi + 0x38], dil
je 0x1800d90ac
cmp dword [rsi + 0x34], 5
jne 0x1800d90ac
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1800d90b5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800d35a8
jmp 0x1800d9128
jns 0x1800d9128
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800d5368
cmp rax, 0xffffffffffffffff
jne 0x1800d90e0
cmp byte [rsi + 0x30], dil
je 0x1800d9128
mov edi, dword [rsi + 0x2c]
jmp 0x1800d9128
mov ecx, r14d
call fcn.1800c0ddc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800d9128
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1800d9128
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800d9121
mov eax, dword [rsi + 0x2c]
jmp 0x1800d9126
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800d5368
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 0x1800db988
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 0x1800db9b8
xor eax, eax
jmp 0x1800dba7b
mov rbp, rbx
cmp word [rax], si
je 0x1800db9dd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800db9c4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800db9c0
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.1800d8bbc
movsxd r14, eax
test eax, eax
jne 0x1800dba1b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800db9b1
mov rcx, r14
call fcn.1800d35e4
mov rdi, rax
test rax, rax
jne 0x1800dba34
xor ecx, ecx
call fcn.1800d35a8
jmp 0x1800dba10
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.1800d8bbc
test eax, eax
jne 0x1800dba65
mov rcx, rdi
call fcn.1800d35a8
jmp 0x1800dba6f
xor ecx, ecx
call fcn.1800d35a8
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 0x1800dba98
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 0x1800dbb1f
mov rsi, rbx
cmp word [rax], bp
je 0x1800dbade
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1800dbac8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1800dbac4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1800d35e4
mov rdi, rax
test rax, rax
je 0x1800dbb0c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1800ad7c0
mov rbp, rdi
xor ecx, ecx
call fcn.1800d35a8
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 0x1800dc5d4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1800dc5f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1800b5fc4
or eax, 0xffffffff
jmp 0x1800dc5f6
xor eax, eax
add rsp, 0x28
ret
Function at 0x1800e1a64
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.1800b6efc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1800e1aee
cmp byte [rbp - 0x21], r15b
je 0x1800e1ae9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1800e1b24
call fcn.1800d3bc4
test eax, eax
jne 0x1800e1b10
cmp byte [rbp - 0x21], r15b
je 0x1800e1b08
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1800e1b24
cmp byte [rbp - 0x21], r15b
je 0x1800e1b21
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.1800c7074
test eax, eax
jne 0x1800e1bc4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1800b6efc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1800e1b63
cmp byte [rbp - 0x21], r15b
je 0x1800e1b98
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1800e1b98
call fcn.1800d3bc4
test eax, eax
jne 0x1800e1b84
cmp byte [rbp - 0x21], r15b
je 0x1800e1b7d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1800e1b98
cmp byte [rbp - 0x21], r15b
je 0x1800e1b95
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.1800c7074
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1800e1bc4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1800e1bc7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1800e1bd5
mov rcx, rdi
call fcn.1800d35a8
cmp byte [rbp + 0x3f], r15b
je 0x1800e1be4
mov rcx, qword [rbp + 0x27]
call fcn.1800d35a8
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 0x1405c90b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1405c9237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1405c90e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405c90c7
add dl, dl
jne 0x1405c90ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405c914e
xor eax, eax
add dl, dl
jne 0x1405c90fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405c9205
add dl, dl
jne 0x1405c910e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405c911b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405c9128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405c9135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405c9142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1405c90d6
mov eax, 1
add dl, dl
jne 0x1405c915e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405c916b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405c9153
sub eax, ebx
mov ebx, 1
jne 0x1405c91a4
mov ecx, 1
add dl, dl
jne 0x1405c9186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405c9193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405c917b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405c90d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1405c91c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405c91cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405c91b5
cmp eax, 0x7d00
jae 0x1405c91f3
cmp eax, 0x500
jb 0x1405c91ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405c90d6
cmp eax, 0x7f
ja 0x1405c91f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405c90d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405c922a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1405c90d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20