joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001b0d0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
mov r8d, dword [0x18009496c]
mov esi, ecx
xor ecx, ecx
mov ebx, ecx
test r8d, r8d
je 0x18001b117
mov rax, qword [0x180094960]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x18001b124
inc ebx
add rax, 0x38
cmp ebx, r8d
jb 0x18001b100
mov eax, ecx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp ebx, 0xffffffff
je 0x18001b117
test esi, esi
mov qword [rsp + 0x48], rdi
mov edx, 0xffffffff
setne cl
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.18001aec0
mov edi, eax
test eax, eax
jne 0x18001b20d
mov r9d, dword [0x18009496c]
cmp ebx, r9d
jae 0x18001b19c
nop dword [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x180094960]
movzx r8d, byte [rdx + rcx + 0x20]
shr r8d, 1
and r8d, 1
cmp r8d, esi
je 0x18001b195
mov edx, esi
mov ecx, ebx
call fcn.18001afa0
mov edi, eax
test eax, eax
jne 0x18001b19c
mov r9d, dword [0x18009496c]
inc ebx
cmp ebx, r9d
jb 0x18001b160
cmp qword [rsp + 0x20], 0
je 0x18001b20b
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18001b1f7
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18001b1e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x18001b1c0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800947c8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
Function at 0x18001b5a0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x1800947bc], ebp
je 0x18001b5f7
cmp rbx, 0x20
jae 0x18001b5e0
xor ecx, ecx
jmp 0x18001b5e2
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800947bc], ebp
jne 0x18001b5d6
cmp qword [0x1800947c8], r15
je 0x18001b6f1
test rdi, rdi
jne 0x18001b617
mov ecx, esi
call fcn.18001b0d0
mov edi, eax
jmp 0x18001b6f6
mov ecx, dword [0x18009496c]
mov ebx, r15d
test ecx, ecx
je 0x18001b63f
mov rdx, qword [0x180094960]
mov rax, rdx
nop
cmp rdi, qword [rax]
je 0x18001b649
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18001b630
mov edi, 4
jmp 0x18001b6f6
cmp ebx, 0xffffffff
je 0x18001b63f
mov eax, ebx
imul rcx, rax, 0x38
movzx eax, byte [rcx + rdx + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x18001b6e8
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.18001aec0
mov edi, eax
test eax, eax
jne 0x18001b6f6
mov edx, esi
mov ecx, ebx
call fcn.18001afa0
mov edi, eax
cmp qword [rsp + 0x20], r15
je 0x18001b6f6
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18001b6d2
mov rbx, qword [rsp + 0x20]
mov ebp, eax
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18001b6c8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x18001b6a0
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800947c8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18001b6f6
neg esi
sbb edi, edi
add edi, 6
jmp 0x18001b6f6
mov edi, 2
xchg dword [0x1800947bc], r15d
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, 0x30
pop r15
ret
Function at 0x18001c290
Capabilities:
Terminate process

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x180093010]
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, [0x180083eb0]
lea rcx, [0x180093410]
call fcn.1800130c0
mov ecx, 3
call fcn.180026560
call fcn.180026450
mov rsi, rax
test rax, rax
je 0x18001c44f
xor r8d, r8d
lea edx, [r8 + 0x40]
mov rcx, rax
call fcn.18002a460
lea rdx, str.Content_Type:_application_json
xor ecx, ecx
call fcn.1800268e0
mov r8, rax
mov edx, 0x2727
mov rcx, rsi
call fcn.18002a460
mov edx, reloc.WS2_32.dll_listen
lea r8d, [rdx + 0x2f]
mov rcx, rsi
call fcn.18002a460
mov edx, reloc.WLDAP32.dll_Ordinal_41
lea r8d, [rdx - 0x28]
mov rcx, rsi
call fcn.18002a460
mov r8, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x18001c359
mov r8, qword [rdi]
mov edx, 0x2712
mov rcx, rsi
call fcn.18002a460
mov edx, Ordinal_50
lea r8d, [rdx - 0x2e]
mov rcx, rsi
call fcn.18002a460
mov r8, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x18001c384
mov r8, qword [rbx]
mov edx, 0x271f
mov rcx, rsi
call fcn.18002a460
lea r8, [0x18001c1f0]
mov edx, 0x4e2b
mov rcx, rsi
call fcn.18002a460
mov rcx, rsi
call fcn.180026510
test eax, eax
je 0x18001c447
mov ecx, eax
call fcn.1800272e0
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1800067d0
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x68]
call fcn.18001bf50
nop
mov r8, rax
lea rdx, [0x180086308]
lea rcx, [rsp + 0x48]
call fcn.180013450
mov rcx, rax
call fcn.1800065b0
mov qword [0x1800947e0], rax
lea rcx, [rsp + 0x48]
call fcn.1800022e0
nop
lea rcx, [rsp + 0x68]
call fcn.1800022e0
nop
lea rcx, [rsp + 0x28]
call fcn.180006770
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, qword [0x1800947d8]
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.180026440
call fcn.180026520
lea rdx, [0x180093410]
mov rcx, rbp
call fcn.180006810
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x18001c49e
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x18001c499
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001c520
mov rcx, r8
call fcn.18002559c
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 0x18001c4e7
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x18001c4e2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001c527
mov rcx, r8
call fcn.18002559c
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.1800250a0
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 0x18001cc30
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x180093010]
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.180026560
call fcn.180026450
mov rdi, rax
xor r8d, r8d
lea edx, [r8 + 0x40]
mov rcx, rax
call fcn.18002a460
mov r8, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x18001ccaf
mov r8, qword [rbx]
mov edx, 0x2712
mov rcx, rdi
call fcn.18002a460
xor r8d, r8d
lea edx, [r8 + 0x29]
mov rcx, rdi
call fcn.18002a460
lea r8, [0x18001c530]
mov edx, 0x4e2b
mov rcx, rdi
call fcn.18002a460
lea r8, [rsp + 0x80]
mov edx, 0x2711
mov rcx, rdi
call fcn.18002a460
mov edx, 0x34
lea r8d, [rdx - 0x33]
mov rcx, rdi
call fcn.18002a460
xor r8d, r8d
lea edx, [r8 + 0x2b]
mov rcx, rdi
call fcn.18002a460
lea r8, [0x18001c5c0]
mov edx, 0x4e58
mov rcx, rdi
call fcn.18002a460
lea r8, [0x1800947e8]
mov edx, 0x2749
mov rcx, rdi
call fcn.18002a460
mov edx, reloc.WS2_32.dll_listen
mov r8d, 0xc350
mov rcx, rdi
call fcn.18002a460
lea r8, str.libcurl_agent_1.0
mov edx, 0x2722
mov rcx, rdi
call fcn.18002a460
mov rcx, rdi
call fcn.180026510
test eax, eax
je 0x18001ce05
mov ecx, eax
call fcn.1800272e0
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1800067d0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.18001bf50
nop
mov r8, rax
lea rdx, str.Error:
lea rcx, [rsp + 0x40]
call fcn.180013450
mov rcx, rax
call fcn.1800065b0
mov qword [0x1800947e0], rax
lea rcx, [rsp + 0x40]
call fcn.1800022e0
nop
lea rcx, [rsp + 0x60]
call fcn.1800022e0
nop
lea rcx, [rsp + 0x20]
call fcn.180006770
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, qword [0x1800947d8]
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.180026440
call fcn.180026520
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [rsi], xmm0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x18001ce53
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x18001ce4e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001ce8e
mov rcx, r8
call fcn.18002559c
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.1800250a0
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 0x18001d020
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 0x18001d030
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 0x1800216e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1800216eb
xor eax, eax
ret
lea r11, [0x180082300]
not ecx
cmp r8d, 8
jb 0x1800217c1
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 0x180021710
test r8d, r8d
je 0x1800217ed
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 0x1800217d0
not ecx
mov eax, ecx
ret

Function at 0x180022140
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rax, qword [0x180093010]
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 0x180022198
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 0x180022192
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x30]
jmp 0x1800221ce
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.1800250a0
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x1800221f0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x180093010]
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 0x180022253
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 0x18002224d
mov byte [rdi], sil
mov ebp, dword [rsp + 0x34]
jmp 0x180022284
mov edi, dword [rcx + 0x2c]
mov ecx, dword [rcx + 0x28]
lea eax, [rdi + 1]
cmp eax, ecx
jbe 0x180022264
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 0x1800222b3
movzx eax, byte [rsp + 0x30]
mov dword [r14], eax
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800250a0
add rsp, 0x40
pop r14
pop rdi
pop rbx
ret
cmp byte [rbx], 0
je 0x18002229b
cmp byte [rdi], 0
je 0x18002229b
mov eax, 0xffffffff
jmp 0x18002229d
Function at 0x180023440
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 0x180023647
cmp dword [rcx + 0x1c], 0
je 0x180023647
cmp qword [rcx + 0x80], 0
je 0x18002346f
call fcn.1800239e0
lea r9, [rsp + 0x50]
mov rcx, rdi
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
call fcn.180022ff0
test eax, eax
je 0x180023496
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 0x1800234bd
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 0x180023505
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 0x180023554
lea rcx, [rbx + 8]
mov qword [rbx + 0x38], rbp
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x48], rbp
call fcn.180021a70
test eax, eax
jne 0x180023554
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 0x180023580
movzx eax, byte [rdi + 0x3d]
jmp 0x180023584
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 0x18002361b
lea r8, [0x180082300]
movzx eax, byte [rsi]
test al, al
je 0x18002361b
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 0x1800235c1
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 0x180024340
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.1800251e0
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 0x1800243de
mov rcx, rdi
nop dword [rax]
inc rcx
cmp byte [rbx + rcx], r15b
jne 0x1800243b0
inc rcx
call fcn.1800255d0
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 0x1800243d0
cmp qword [rsi], 0
jne 0x180024505
cmp dword [rsi + 8], 0xffffffff
jne 0x180024505
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 0x180024410
movzx eax, word [rsi + rdi*2 + 0x24e]
cmp ax, 0x5c
je 0x18002443e
cmp ax, 0x2f
je 0x18002443e
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 0x1800244fe
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.1800251e0
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 0x1800244d1
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.1800224a0
mov qword [rsi], rax
test rax, rax
je 0x1800244fe
mov dword [0x1800947d4], r15d
mov ecx, reloc.WS2_32.dll_recv
call fcn.1800251e0
mov dword [rax], 1
mov qword [rax + 8], rsi
jmp 0x18002454f
mov eax, 0x200
jmp 0x18002450a
mov eax, 0x1000000
mov dword [0x1800947d4], eax
mov rcx, qword [rsi + 0x240]
test rcx, rcx
je 0x180024521
call fcn.18002559c
mov qword [rsi + 0x240], r15
mov rcx, qword [rsi + 0x248]
test rcx, rcx
je 0x180024539
call fcn.18002559c
mov qword [rsi + 0x248], r15
mov edx, 0x458
mov rcx, rsi
call fcn.18002559c
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 0x18002456c
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 0x1800245f0
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 0x1800245f0
dec r8
sub rdx, 1
jne 0x1800245d6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x180024bb0
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.1800246c0
mov ebx, eax
test eax, eax
jne 0x180024be0
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x180024c43
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180024c3a
test al, 0x10
je 0x180024c3a
bt eax, 0xa
jae 0x180024c33
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.180024c54
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x180024c2f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x180024c2f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
test edi, edi
jne 0x180024c3a
and dword [rsp + 0x3c], 0
jmp 0x180024c3f
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 0x18002ef20
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
je 0x18002f00a
call fcn.18002f170
test al, al
jne 0x18002f00a
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 0x18002ef60
mov r8, rbx
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rdi
call fcn.18004abe0
test rax, rax
je 0x18002efa5
sub rax, rdi
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov r8, rax
mov rcx, rdi
call fcn.18004abe0
mov rsi, rax
test rax, rax
je 0x18002efa5
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 0x18002eff1
nop dword [rax]
movzx ecx, byte [rsi]
call fcn.18003e0d0
movsx rcx, al
inc rsi
imul rbp, rbp, 0x21
mov rax, rsi
xor rbp, rcx
sub rax, rdi
cmp rax, rbx
jb 0x18002efd0
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