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

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
xor edi, edi
mov esi, ecx
mov ecx, dword [0x180095a6c]
mov ebx, edi
test ecx, ecx
je 0x18001bc43
mov rax, qword [0x180095a60]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x18001bae0
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18001bac0
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
cmp ebx, 0xffffffff
je 0x18001bc43
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rdi
call fcn.18001b710
test eax, eax
jne 0x18001bb0e
mov eax, 9
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], r12
mov r12, qword [rsp + 0x20]
mov qword [rsp + 0x70], r13
mov r13d, dword [rsp + 0x2c]
test r12, r12
je 0x18001bb93
test r13d, r13d
je 0x18001bb93
mov qword [rsp + 0x38], r14
mov r14, r12
mov qword [rsp + 0x30], r15
mov r15d, r13d
mov r8d, dword [r14]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbp, rax
test rax, rax
je 0x18001bb7f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, edi
test esi, esi
mov edx, 0xffffffff
mov rcx, rbp
setne r8b
call fcn.18001b560
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add r14, 4
sub r15, 1
jne 0x18001bb41
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r8d, dword [0x180095a6c]
cmp ebx, r8d
jae 0x18001bbd8
nop
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x180095a60]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x18001bbd1
mov edx, esi
mov ecx, ebx
call fcn.18001b960
mov edi, eax
test eax, eax
jne 0x18001bbd8
mov r8d, dword [0x180095a6c]
inc ebx
cmp ebx, r8d
jb 0x18001bba0
test r12, r12
je 0x18001bc34
test r13d, r13d
je 0x18001bc22
mov rsi, r12
mov rbp, r13
nop dword [rax + rax]
mov r8d, dword [rsi]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x18001bc18
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsi, 4
sub rbp, 1
jne 0x18001bbf0
mov rcx, qword [0x1800958d0]
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov r13, qword [rsp + 0x70]
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x18001bfd0
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 [0x1800958c8], ebp
je 0x18001c027
cmp rbx, 0x20
jae 0x18001c010
xor ecx, ecx
jmp 0x18001c012
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800958c8], ebp
jne 0x18001c006
cmp qword [0x1800958d0], r15
je 0x18001c121
test rdi, rdi
jne 0x18001c047
mov ecx, esi
call fcn.18001ba90
mov edi, eax
jmp 0x18001c126
mov ecx, dword [0x180095a6c]
mov ebx, r15d
test ecx, ecx
je 0x18001c06f
mov rdx, qword [0x180095a60]
mov rax, rdx
nop
cmp rdi, qword [rax]
je 0x18001c079
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18001c060
mov edi, 4
jmp 0x18001c126
cmp ebx, 0xffffffff
je 0x18001c06f
mov eax, ebx
imul rcx, rax, 0x38
movzx eax, byte [rcx + rdx + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x18001c118
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.18001b880
mov edi, eax
test eax, eax
jne 0x18001c126
mov edx, esi
mov ecx, ebx
call fcn.18001b960
mov edi, eax
cmp qword [rsp + 0x20], r15
je 0x18001c126
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18001c102
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 0x18001c0f8
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 0x18001c0d0
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800958d0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18001c126
neg esi
sbb edi, edi
add edi, 6
jmp 0x18001c126
mov edi, 2
xchg dword [0x1800958c8], 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 0x18001ce80
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.180013ae0
mov ecx, 3
call fcn.180027610
call fcn.180027500
mov rsi, rax
test rax, rax
je 0x18001d03f
xor r8d, r8d
lea edx, [r8 + 0x40]
mov rcx, rax
call fcn.18002b510
lea rdx, str.Content_Type:_application_json
xor ecx, ecx
call fcn.180027990
mov r8, rax
mov edx, 0x2727
mov rcx, rsi
call fcn.18002b510
mov edx, reloc.WS2_32.dll_listen
lea r8d, [rdx + 0x2f]
mov rcx, rsi
call fcn.18002b510
mov edx, reloc.WLDAP32.dll_Ordinal_41
lea r8d, [rdx - 0x28]
mov rcx, rsi
call fcn.18002b510
mov r8, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x18001cf49
mov r8, qword [rdi]
mov edx, 0x2712
mov rcx, rsi
call fcn.18002b510
mov edx, Ordinal_50
lea r8d, [rdx - 0x2e]
mov rcx, rsi
call fcn.18002b510
mov r8, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x18001cf74
mov r8, qword [rbx]
mov edx, 0x271f
mov rcx, rsi
call fcn.18002b510
lea r8, [0x18001cde0]
mov edx, 0x4e2b
mov rcx, rsi
call fcn.18002b510
mov rcx, rsi
call fcn.1800275c0
test eax, eax
je 0x18001d037
mov ecx, eax
call fcn.180028390
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.180006740
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x68]
call fcn.18001cb40
nop
mov r8, rax
lea rdx, [0x180087328]
lea rcx, [rsp + 0x48]
call fcn.180013db0
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.1800274f0
call fcn.1800275d0
lea rdx, [0x180094450]
mov rcx, rbp
call fcn.180006780
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x18001d08e
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x18001d089
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001d110
mov rcx, r8
call fcn.18002664c
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 0x18001d0d7
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x18001d0d2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001d117
mov rcx, r8
call fcn.18002664c
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.180026150
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 0x18001d770
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.180027610
call fcn.180027500
mov rdi, rax
xor r8d, r8d
lea edx, [r8 + 0x40]
mov rcx, rax
call fcn.18002b510
mov r8, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x18001d7ef
mov r8, qword [rbx]
mov edx, 0x2712
mov rcx, rdi
call fcn.18002b510
xor r8d, r8d
lea edx, [r8 + 0x29]
mov rcx, rdi
call fcn.18002b510
lea r8, [0x18001d120]
mov edx, 0x4e2b
mov rcx, rdi
call fcn.18002b510
lea r8, [rsp + 0x80]
mov edx, 0x2711
mov rcx, rdi
call fcn.18002b510
mov edx, 0x34
lea r8d, [rdx - 0x33]
mov rcx, rdi
call fcn.18002b510
xor r8d, r8d
lea edx, [r8 + 0x2b]
mov rcx, rdi
call fcn.18002b510
lea r8, [0x18001d1b0]
mov edx, 0x4e58
mov rcx, rdi
call fcn.18002b510
lea r8, [0x1800958e8]
mov edx, 0x2749
mov rcx, rdi
call fcn.18002b510
mov edx, reloc.WS2_32.dll_listen
mov r8d, 0xc350
mov rcx, rdi
call fcn.18002b510
lea r8, str.libcurl_agent_1.0
mov edx, 0x2722
mov rcx, rdi
call fcn.18002b510
mov rcx, rdi
call fcn.1800275c0
test eax, eax
je 0x18001d945
mov ecx, eax
call fcn.180028390
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.180006740
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.18001cb40
nop
mov r8, rax
lea rdx, str.Error:
lea rcx, [rsp + 0x40]
call fcn.180013db0
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.1800274f0
call fcn.1800275d0
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [rsi], xmm0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x18001d993
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x18001d98e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001d9ce
mov rcx, r8
call fcn.18002664c
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.180026150
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 0x18001db60
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 0x18001db70
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 0x180022790
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x18002279b
xor eax, eax
ret
lea r11, [0x180083330]
not ecx
cmp r8d, 8
jb 0x180022871
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 0x1800227c0
test r8d, r8d
je 0x18002289d
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 0x180022880
not ecx
mov eax, ecx
ret

Function at 0x1800231f0
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 0x180023248
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 0x180023242
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x30]
jmp 0x18002327e
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.180026150
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x1800232a0
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 0x180023303
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 0x1800232fd
mov byte [rdi], sil
mov ebp, dword [rsp + 0x34]
jmp 0x180023334
mov edi, dword [rcx + 0x2c]
mov ecx, dword [rcx + 0x28]
lea eax, [rdi + 1]
cmp eax, ecx
jbe 0x180023314
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 0x180023363
movzx eax, byte [rsp + 0x30]
mov dword [r14], eax
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180026150
add rsp, 0x40
pop r14
pop rdi
pop rbx
ret
cmp byte [rbx], 0
je 0x18002334b
cmp byte [rdi], 0
je 0x18002334b
mov eax, 0xffffffff
jmp 0x18002334d
Function at 0x1800244f0
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 0x1800246f7
cmp dword [rcx + 0x1c], 0
je 0x1800246f7
cmp qword [rcx + 0x80], 0
je 0x18002451f
call fcn.180024a90
lea r9, [rsp + 0x50]
mov rcx, rdi
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
call fcn.1800240a0
test eax, eax
je 0x180024546
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 0x18002456d
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 0x1800245b5
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 0x180024604
lea rcx, [rbx + 8]
mov qword [rbx + 0x38], rbp
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x48], rbp
call fcn.180022b20
test eax, eax
jne 0x180024604
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 0x180024630
movzx eax, byte [rdi + 0x3d]
jmp 0x180024634
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 0x1800246cb
lea r8, [0x180083330]
movzx eax, byte [rsi]
test al, al
je 0x1800246cb
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 0x180024671
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 0x1800253f0
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.180026290
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 0x18002548e
mov rcx, rdi
nop dword [rax]
inc rcx
cmp byte [rbx + rcx], r15b
jne 0x180025460
inc rcx
call fcn.180026680
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 0x180025480
cmp qword [rsi], 0
jne 0x1800255b5
cmp dword [rsi + 8], 0xffffffff
jne 0x1800255b5
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 0x1800254c0
movzx eax, word [rsi + rdi*2 + 0x24e]
cmp ax, 0x5c
je 0x1800254ee
cmp ax, 0x2f
je 0x1800254ee
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 0x1800255ae
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.180026290
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 0x180025581
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.180023550
mov qword [rsi], rax
test rax, rax
je 0x1800255ae
mov dword [0x1800958f0], r15d
mov ecx, reloc.WS2_32.dll_recv
call fcn.180026290
mov dword [rax], 1
mov qword [rax + 8], rsi
jmp 0x1800255ff
mov eax, 0x200
jmp 0x1800255ba
mov eax, 0x1000000
mov dword [0x1800958f0], eax
mov rcx, qword [rsi + 0x240]
test rcx, rcx
je 0x1800255d1
call fcn.18002664c
mov qword [rsi + 0x240], r15
mov rcx, qword [rsi + 0x248]
test rcx, rcx
je 0x1800255e9
call fcn.18002664c
mov qword [rsi + 0x248], r15
mov edx, 0x458
mov rcx, rsi
call fcn.18002664c
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 0x18002561c
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 0x1800256a0
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 0x1800256a0
dec r8
sub rdx, 1
jne 0x180025686
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x180025c60
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.180025770
mov ebx, eax
test eax, eax
jne 0x180025c90
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x180025cf3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180025cea
test al, 0x10
je 0x180025cea
bt eax, 0xa
jae 0x180025ce3
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.180025d04
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x180025cdf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x180025cdf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
test edi, edi
jne 0x180025cea
and dword [rsp + 0x3c], 0
jmp 0x180025cef
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 0x18002ffd0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
je 0x1800300ba
call fcn.180030220
test al, al
jne 0x1800300ba
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 0x180030010
mov r8, rbx
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rdi
call fcn.18004bc90
test rax, rax
je 0x180030055
sub rax, rdi
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov r8, rax
mov rcx, rdi
call fcn.18004bc90
mov rsi, rax
test rax, rax
je 0x180030055
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 0x1800300a1
nop dword [rax]
movzx ecx, byte [rsi]
call fcn.18003f180
movsx rcx, al
inc rsi
imul rbp, rbp, 0x21
mov rax, rsi
xor rbp, rcx
sub rax, rdi
cmp rax, rbx
jb 0x180030080
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