joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001ce70
Capabilities:
Terminate process

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x180094010]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rbx, r8
mov rdi, rdx
mov rbp, rcx
mov qword [rsp + 0x88], rcx
mov qword [r11 - 0x30], rdx
mov qword [r11 - 0x28], rbx
xor r8d, r8d
lea rdx, [0x180084ee0]
lea rcx, [0x180094450]
call fcn.180013ad0
mov ecx, 3
call fcn.180027600
call fcn.1800274f0
mov rsi, rax
test rax, rax
je 0x18001d02f
xor r8d, r8d
lea edx, [r8 + 0x40]
mov rcx, rax
call fcn.18002b500
lea rdx, str.Content_Type:_application_json
xor ecx, ecx
call fcn.180027980
mov r8, rax
mov edx, 0x2727
mov rcx, rsi
call fcn.18002b500
mov edx, reloc.WS2_32.dll_listen
lea r8d, [rdx + 0x2f]
mov rcx, rsi
call fcn.18002b500
mov edx, reloc.WLDAP32.dll_Ordinal_41
lea r8d, [rdx - 0x28]
mov rcx, rsi
call fcn.18002b500
mov r8, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x18001cf39
mov r8, qword [rdi]
mov edx, 0x2712
mov rcx, rsi
call fcn.18002b500
mov edx, Ordinal_50
lea r8d, [rdx - 0x2e]
mov rcx, rsi
call fcn.18002b500
mov r8, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x18001cf64
mov r8, qword [rbx]
mov edx, 0x271f
mov rcx, rsi
call fcn.18002b500
lea r8, [0x18001cdd0]
mov edx, 0x4e2b
mov rcx, rsi
call fcn.18002b500
mov rcx, rsi
call fcn.1800275b0
test eax, eax
je 0x18001d027
mov ecx, eax
call fcn.180028380
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.180006740
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x68]
call fcn.18001cb30
nop
mov r8, rax
lea rdx, [0x180087328]
lea rcx, [rsp + 0x48]
call fcn.180013da0
mov rcx, rax
call fcn.180006520
mov qword [0x1800958e0], rax
lea rcx, [rsp + 0x48]
call fcn.180002300
nop
lea rcx, [rsp + 0x68]
call fcn.180002300
nop
lea rcx, [rsp + 0x28]
call fcn.1800066e0
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, qword [0x1800958d8]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, rsi
call fcn.1800274e0
call fcn.1800275c0
lea rdx, [0x180094450]
mov rcx, rbp
call fcn.180006780
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x18001d07e
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x18001d079
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001d100
mov rcx, r8
call fcn.18002663c
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x18001d0c7
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x18001d0c2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001d107
mov rcx, r8
call fcn.18002663c
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov rax, rbp
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.180026140
mov rbx, qword [rsp + 0xd8]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x18001d760
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x180094010]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x90], rdx
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 0
mov ecx, 3
call fcn.180027600
call fcn.1800274f0
mov rdi, rax
xor r8d, r8d
lea edx, [r8 + 0x40]
mov rcx, rax
call fcn.18002b500
mov r8, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x18001d7df
mov r8, qword [rbx]
mov edx, 0x2712
mov rcx, rdi
call fcn.18002b500
xor r8d, r8d
lea edx, [r8 + 0x29]
mov rcx, rdi
call fcn.18002b500
lea r8, [0x18001d110]
mov edx, 0x4e2b
mov rcx, rdi
call fcn.18002b500
lea r8, [rsp + 0x80]
mov edx, 0x2711
mov rcx, rdi
call fcn.18002b500
mov edx, 0x34
lea r8d, [rdx - 0x33]
mov rcx, rdi
call fcn.18002b500
xor r8d, r8d
lea edx, [r8 + 0x2b]
mov rcx, rdi
call fcn.18002b500
lea r8, [0x18001d1a0]
mov edx, 0x4e58
mov rcx, rdi
call fcn.18002b500
lea r8, [0x1800958e8]
mov edx, 0x2749
mov rcx, rdi
call fcn.18002b500
mov edx, reloc.WS2_32.dll_listen
mov r8d, 0xc350
mov rcx, rdi
call fcn.18002b500
lea r8, str.libcurl_agent_1.0
mov edx, 0x2722
mov rcx, rdi
call fcn.18002b500
mov rcx, rdi
call fcn.1800275b0
test eax, eax
je 0x18001d935
mov ecx, eax
call fcn.180028380
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.180006740
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.18001cb30
nop
mov r8, rax
lea rdx, str.Error:
lea rcx, [rsp + 0x40]
call fcn.180013da0
mov rcx, rax
call fcn.180006520
mov qword [0x1800958e0], rax
lea rcx, [rsp + 0x40]
call fcn.180002300
nop
lea rcx, [rsp + 0x60]
call fcn.180002300
nop
lea rcx, [rsp + 0x20]
call fcn.1800066e0
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, qword [0x1800958d8]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, rdi
call fcn.1800274e0
call fcn.1800275c0
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [rsi], xmm0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x18001d983
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x18001d97e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001d9be
mov rcx, r8
call fcn.18002663c
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov rax, rsi
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.180026140
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3

Function at 0x18001db50
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, 3
nop dword [rax + rax]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
sub rbx, 1
jne 0x18001db60
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x180022780
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x18002278b
xor eax, eax
ret
lea r11, [0x180083330]
not ecx
cmp r8d, 8
jb 0x180022861
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1800227b0
test r8d, r8d
je 0x18002288d
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x180022870
not ecx
mov eax, ecx
ret

Function at 0x1800231e0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rax, qword [0x180094010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r10d, edx
mov rdi, r9
imul r10d, r8d
mov rsi, rdx
cmp byte [r9], 0
mov r11, rcx
je 0x180023238
mov rdx, rcx
mov qword [rsp + 0x20], 0
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x30]
mov r8d, r10d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180023232
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x30]
jmp 0x18002326e
mov edx, dword [r9 + 0x2c]
mov ecx, dword [r9 + 0x28]
sub ecx, edx
mov qword [rsp + 0x40], rbx
lea eax, [rdx + r10]
cmp eax, dword [r9 + 0x28]
cmovbe ecx, r10d
add rdx, qword [r9 + 0x20]
mov ebx, ecx
mov r8d, ecx
mov rcx, r11
call sub.VCRUNTIME140.dll_memcpy
add dword [rdi + 0x2c], ebx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
xor edx, edx
div rsi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180026140
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x180023290
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x180094010]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp byte [rcx], 0
mov r14, rdx
mov qword [rsp + 0x70], rbp
mov rbx, rcx
mov qword [rsp + 0x78], rsi
mov esi, 1
je 0x1800232f3
lea rdi, [rcx + 0x10]
mov qword [rsp + 0x20], 0
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x34]
mov r8d, esi
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1800232ed
mov byte [rdi], sil
mov ebp, dword [rsp + 0x34]
jmp 0x180023324
mov edi, dword [rcx + 0x2c]
mov ecx, dword [rcx + 0x28]
lea eax, [rdi + 1]
cmp eax, ecx
jbe 0x180023304
mov esi, ecx
sub esi, edi
mov rdx, rdi
mov r8d, esi
add rdx, qword [rbx + 0x20]
lea rcx, [rsp + 0x30]
mov ebp, esi
call sub.VCRUNTIME140.dll_memcpy
lea eax, [rdi + rsi]
mov dword [rbx + 0x2c], eax
lea rdi, [rbx + 0x10]
mov rsi, qword [rsp + 0x78]
cmp ebp, 1
mov rbp, qword [rsp + 0x70]
jne 0x180023353
movzx eax, byte [rsp + 0x30]
mov dword [r14], eax
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180026140
add rsp, 0x40
pop r14
pop rdi
pop rbx
ret
cmp byte [rbx], 0
je 0x18002333b
cmp byte [rdi], 0
je 0x18002333b
mov eax, 0xffffffff
jmp 0x18002333d
Function at 0x1800244e0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x1800246e7
cmp dword [rcx + 0x1c], 0
je 0x1800246e7
cmp qword [rcx + 0x80], 0
je 0x18002450f
call fcn.180024a80
lea r9, [rsp + 0x50]
mov rcx, rdi
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
call fcn.180024090
test eax, eax
je 0x180024536
mov eax, 0xffffff99
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0xb0
mov qword [rsp + 0x48], rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x18002455d
lea eax, [rbx - 0x68]
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0x4000
mov qword [rsp + 0x20], rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [rsp + 0x40]
xor ebp, ebp
mov dword [rbx + 0x68], ecx
mov ecx, dword [rsp + 0x50]
mov dword [rbx + 0x6c], ecx
mov qword [rbx], rax
mov dword [rbx + 0x70], ebp
test rax, rax
jne 0x1800245a5
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x48]
lea eax, [rbp - 0x68]
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov eax, dword [rdi + 0x40]
mov ecx, dword [rdi + 0x38]
mov dword [rbx + 0x78], eax
mov rax, qword [rdi]
mov qword [rbx + 0x88], rax
mov eax, dword [rdi + 0x10]
mov dword [rbx + 0x94], eax
mov dword [rbx + 0x64], ebp
mov dword [rbx + 0x74], ebp
mov dword [rbx + 0x90], ecx
mov dword [rbx + 0x24], ebp
test ecx, ecx
je 0x1800245f4
lea rcx, [rbx + 8]
mov qword [rbx + 0x38], rbp
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x48], rbp
call fcn.180022b10
test eax, eax
jne 0x1800245f4
mov dword [rbx + 0x64], 1
mov eax, dword [rdi + 0x44]
movzx ecx, byte [rdi + 0x34]
mov dword [rbx + 0x7c], eax
and cl, 1
mov eax, dword [rdi + 0x48]
mov dword [rbx + 0x80], eax
mov eax, dword [rdi + 0x34]
shr eax, 3
mov byte [rbx + 0x98], cl
test al, 1
je 0x180024620
movzx eax, byte [rdi + 0x3d]
jmp 0x180024624
movzx eax, byte [rdi + 0x43]
mov byte [rbx + 0xac], al
neg cl
mov dword [rbx + 0x9c], 0x12345678
sbb eax, eax
mov dword [rbx + 0xa0], 0x23456789
and eax, 0xc
mov dword [rbx + 0xa4], 0x34567890
mov dword [rbx + 0xa8], eax
test rsi, rsi
je 0x1800246bb
lea r8, [0x180083330]
movzx eax, byte [rsi]
test al, al
je 0x1800246bb
mov edx, dword [rbx + 0x9c]
xor rax, rdx
movzx ecx, al
shr edx, 8
xor edx, dword [r8 + rcx*4]
mov ecx, dword [rbx + 0xa4]
movzx eax, dl
add eax, dword [rbx + 0xa0]
mov dword [rbx + 0x9c], edx
imul edx, eax, 0x8088405
movzx eax, cl
shr ecx, 8
inc edx
mov dword [rbx + 0xa0], edx
shr rdx, 0x18
xor rax, rdx
xor ecx, dword [r8 + rax*4]
mov dword [rbx + 0xa4], ecx
add rsi, 1
jne 0x180024661
mov eax, dword [rsp + 0x58]
mov ecx, dword [rdi + 0x7c]
add eax, 0x1e
add ecx, eax
mov dword [rbx + 0x10], ebp
mov rbp, qword [rsp + 0x20]
xor eax, eax
mov dword [rbx + 0x60], ecx
mov qword [rdi + 0x80], rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
mov eax, 0xffffff9a
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x1800253e0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rbx, r9
mov rbp, rcx
mov ecx, 0x458
call fcn.180026280
mov rsi, rax
mov qword [rsp + 0x40], rax
xor edx, edx
mov r8d, 0x458
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
xor r15d, r15d
mov qword [rsi], r15
mov rdi, 0xffffffffffffffff
mov dword [rsi + 8], edi
mov dword [rsi + 0x23c], edi
mov qword [rsi + 0x240], r15
mov qword [rsi + 0x248], r15
test rbx, rbx
je 0x18002547e
mov rcx, rdi
nop dword [rax]
inc rcx
cmp byte [rbx + rcx], r15b
jne 0x180025450
inc rcx
call fcn.180026670
mov qword [rsi + 0x240], rax
sub rax, rbx
nop dword [rax + rax]
movzx ecx, byte [rbx]
mov byte [rax + rbx], cl
lea rbx, [rbx + 1]
test cl, cl
jne 0x180025470
cmp qword [rsi], 0
jne 0x1800255a5
cmp dword [rsi + 8], 0xffffffff
jne 0x1800255a5
lea rdx, [rsi + 0x250]
mov ecx, 0x103
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
nop dword [rax]
nop dword [rax + rax]
lea rdi, [rdi + 1]
cmp word [rsi + rdi*2 + 0x250], 0
jne 0x1800254b0
movzx eax, word [rsi + rdi*2 + 0x24e]
cmp ax, 0x5c
je 0x1800254de
cmp ax, 0x2f
je 0x1800254de
mov dword [rsi + rdi*2 + 0x250], gethostname
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x18002559e
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
cmp eax, 0xffffffff
setne bl
mov ecx, Ordinal_50
call fcn.180026280
mov r14, rax
mov byte [rax], 1
mov byte [rax + 0x18], 1
mov byte [rax + 1], bl
mov qword [rax + 8], rbp
mov byte [rax + 0x10], 0
mov dword [rax + 0x14], r15d
cmp edi, 0xffffffff
je 0x180025571
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [r14 + 0x14], eax
mov rcx, r14
call fcn.180023540
mov qword [rsi], rax
test rax, rax
je 0x18002559e
mov dword [0x1800958f0], r15d
mov ecx, reloc.WS2_32.dll_recv
call fcn.180026280
mov dword [rax], 1
mov qword [rax + 8], rsi
jmp 0x1800255ef
mov eax, 0x200
jmp 0x1800255aa
mov eax, 0x1000000
mov dword [0x1800958f0], eax
mov rcx, qword [rsi + 0x240]
test rcx, rcx
je 0x1800255c1
call fcn.18002663c
mov qword [rsi + 0x240], r15
mov rcx, qword [rsi + 0x248]
test rcx, rcx
je 0x1800255d9
call fcn.18002663c
mov qword [rsi + 0x248], r15
mov edx, 0x458
mov rcx, rsi
call fcn.18002663c
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret
Function at 0x18002560c
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 0x180025690
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 0x180025690
dec r8
sub rdx, 1
jne 0x180025676
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x180025c50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.180025760
mov ebx, eax
test eax, eax
jne 0x180025c80
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x180025ce3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180025cda
test al, 0x10
je 0x180025cda
bt eax, 0xa
jae 0x180025cd3
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.180025cf4
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x180025ccf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x180025ccf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
test edi, edi
jne 0x180025cda
and dword [rsp + 0x3c], 0
jmp 0x180025cdf
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18002ffc0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
je 0x1800300aa
call fcn.180030210
test al, al
jne 0x1800300aa
mov qword [rsp + 0x30], rbx
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], r14
xor r14d, r14d
mov esi, r14d
inc rbx
cmp byte [rdi + rbx], sil
jne 0x180030000
mov r8, rbx
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rdi
call fcn.18004bc80
test rax, rax
je 0x180030045
sub rax, rdi
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov r8, rax
mov rcx, rdi
call fcn.18004bc80
mov rsi, rax
test rax, rax
je 0x180030045
inc rsi
mov rcx, rdi
sub rcx, rsi
add rbx, rcx
test rsi, rsi
mov ebp, 0x1505
cmovne rdi, rsi
mov rsi, rdi
lea rax, [rbx + rdi]
cmp rdi, rax
cmova rbx, r14
mov r14, qword [rsp + 0x48]
test rbx, rbx
je 0x180030091
nop dword [rax]
movzx ecx, byte [rsi]
call fcn.18003f170
movsx rcx, al
inc rsi
imul rbp, rbp, 0x21
mov rax, rsi
xor rbp, rcx
sub rax, rdi
cmp rax, rbx
jb 0x180030070
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
movzx eax, bpl
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x18003a850
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x710], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x18003a8ae
mov dl, 1
call fcn.18002bf60
mov rax, qword [rdi + 0x668]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, rdi
call qword [rdi + 0x710]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.18002bf60
mov eax, ebx
jmp 0x18003a8f2
cmp ebx, 2
ja 0x18003a8f0
mov r9, qword [rdi + 0x660]
lea rdx, [0x180079290]
lea rcx, [rbx + rbx*2]
add rcx, rdx
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x660]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x18003a910
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x160
mov rax, qword [0x180094010]
xor rax, rsp
mov qword [rsp + 0x140], rax
test dword [rcx + 0xe68], 0x40000000
mov rdi, rcx
jne 0x18003a956
cmp qword [rcx + 0x670], 0
je 0x18003aa33
mov r8, rdx
mov qword [rsp + 0x158], rbx
mov edx, 0x100
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.18003de30
lea rax, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x18003a984
mov rcx, qword [rdi + 0x670]
test rcx, rcx
je 0x18003a9c8
test byte [rdi + 0x1494], 8
jne 0x18003a9c8
lea rdx, [rsp + 0x30]
nop word [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x18003a9b0
or dword [rdi + 0x1494], 8
test dword [rdi + 0xe68], 0x40000000
je 0x18003aa2b
mov byte [rsp + rbx + 0x30], 0xa
inc rbx
cmp rbx, 0x102
jae 0x18003aa86
cmp qword [rdi + 0x710], 0
mov byte [rsp + rbx + 0x30], 0
je 0x18003aa4c
mov dl, 1
mov rcx, rdi
call fcn.18002bf60
mov rax, qword [rdi + 0x668]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x710]
xor edx, edx
mov rcx, rdi
call fcn.18002bf60
mov rbx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180026140
add rsp, 0x160
pop rdi
ret
mov r9, qword [rdi + 0x660]
lea rcx, [0x180079290]
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x660]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x18003aa2b
call fcn.180026780
int3
Function at 0x18003aa90
Capabilities:
Write file on windows

Disassembly:
test rcx, rcx
je 0x18003abf6
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rdi
sub rsp, 0x860
mov rax, qword [0x180094010]
xor rax, rsp
mov qword [rsp + 0x840], rax
test dword [rcx + 0xe68], 0x40000000
mov rdi, rcx
je 0x18003abde
mov r8, rdx
mov qword [r11 - 0x10], rbx
mov edx, 0x801
lea r9, [r11 + 0x18]
lea rcx, [rsp + 0x30]
call fcn.18003de30
movsxd rcx, eax
mov rbx, 0xffffffffffffffff
cmp rcx, 0x801
jb 0x18003ab51
mov rcx, qword [rsp + 0x878]
mov rax, rbx
nop dword [rax]
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x18003ab10
cmp byte [rax + rcx - 1], 0xa
jne 0x18003ab38
lea r8, str...._n
mov edx, 5
lea rcx, [rsp + 0x82c]
jmp 0x18003ab4c
lea r8, [0x1800792b0]
mov edx, 4
lea rcx, [rsp + 0x82d]
call fcn.18003dd30
lea rax, [rsp + 0x30]
inc rbx
cmp byte [rax + rbx], 0
jne 0x18003ab56
cmp qword [rdi + 0x710], 0
je 0x18003ab9e
mov dl, 1
mov rcx, rdi
call fcn.18002bf60
mov rax, qword [rdi + 0x668]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x710]
xor edx, edx
mov rcx, rdi
call fcn.18002bf60
jmp 0x18003abd6
mov r9, qword [rdi + 0x660]
lea rcx, [0x180079290]
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x660]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbx, qword [rsp + 0x858]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.180026140
add rsp, 0x860
pop rdi
ret

Function at 0x18003ac90
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x18003accb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov edx, 0x51
cmp eax, 0x2733
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret