joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f85f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x148
mov rax, qword [0x140212c80]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rax, qword [rcx]
mov rsi, rcx
mov rbp, r8
mov rdi, r9
mov r8d, ebp
mov rcx, qword [rax + 0x10]
mov dword [r9], 0
xor r9d, r9d
mov rcx, qword [rcx + 0x98]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
jne 0x1400f86a6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1400f866a
mov dword [rdi], 0x51
jmp 0x1400f869f
mov r8d, 0x100
lea rdx, [rsp + 0x30]
mov ecx, ebx
call fcn.1400baaf0
mov rcx, qword [rsi + 8]
lea rdx, str.Recv_failure:__s
mov r8, rax
call fcn.1400d4150
mov rax, qword [rsi + 8]
mov dword [rax + 0xd14], ebx
mov dword [rdi], gethostname
mov rbx, 0xffffffffffffffff
mov edx, dword [rdi]
lea r8, str.nw_in_read_len_zu______d__err_d
mov rcx, qword [rsi + 8]
mov r9, rbp
mov dword [rsp + 0x28], edx
mov rdx, qword [rsi]
mov dword [rsp + 0x20], ebx
call fcn.1400d42e0
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140133600
add rsp, 0x148
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400f86f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rsi
sub rsp, 0x1c0
mov rax, qword [0x140212c80]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rbx, qword [rcx + 0x10]
mov rax, rcx
mov rax, qword [rdx + 0x20]
mov rsi, rdx
mov rcx, qword [rax + 0x2e8]
test dword [rcx + 0x84], 0x800
jne 0x1400f883e
mov rcx, qword [rbx + 0x98]
lea r8, [rsp + 0x20]
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1400f87ce
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.1400baaf0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1400d4150
mov eax, 2
jmp 0x1400f8840
mov edx, dword [rsp + 0x20]
lea r9, [rbx + 0x144]
lea r8, [rbx + 0x114]
lea rcx, [rsp + 0x30]
call fcn.1400d5690
test al, al
jne 0x1400f883e
mov qword [rsp + 0x1e0], rdi
call fcn.1401453a4
mov ebx, dword [rax]
call fcn.1401453a4
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.1400baaf0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.1400d4150
mov rdi, qword [rsp + 0x1e0]
mov eax, 2
jmp 0x1400f8840
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140133600
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1c0
pop rsi
ret
Function at 0x14010b160
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x20]
xor eax, eax
mov edx, 0x8004667e
cmp dword [rsp + 0x48], eax
setne al
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
add rsp, 0x38
ret

Function at 0x14010c2b0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rdi
sub rsp, 0x48
mov rdi, qword [rsp + 0x60]
mov eax, dword [rdi + 0x18]
lea ecx, [rax + rax]
mov eax, dword [rdi + 0x20]
add rax, 0x18
add rcx, rax
mov rax, qword [fcn.140154a40]
call qword [case.0x1400cc851.0]
mov rbx, rax
test rax, rax
jne 0x14010c2f6
add rsp, 0x48
pop rdi
pop rbx
ret
lea rcx, [rax + 0x18]
mov qword [rax], rdi
mov qword [rax + 8], rcx
mov eax, dword [rdi + 0x18]
mov qword [rsp + 0x40], rbp
add rax, rcx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], r14
mov r14d, dword [rsp + 0x70]
mov qword [rbx + 0x10], rax
cmp r14d, dword [rdi + 0x1c]
jbe 0x14010c366
mov rax, qword [rdi]
call qword [case.0x1400cc851.0]
mov rdx, qword [rsp + 0x68]
mov r8d, r14d
mov rcx, qword [rbx + 8]
mov rax, qword [rdi + 8]
call qword [case.0x1400cc851.0]
mov esi, dword [rdi + 0x18]
add rsi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rsi
mov rax, qword [rdi + 0x10]
call qword [case.0x1400cc851.0]
mov rcx, qword [rbx + 8]
mov r14d, dword [rdi + 0x20]
jmp 0x14010c36b
mov rsi, qword [rsp + 0x68]
mov rax, qword [rdi]
call qword [case.0x1400cc851.0]
mov rcx, qword [rbx + 0x10]
mov rax, qword [rdi]
call qword [case.0x1400cc851.0]
xor ebp, ebp
test r14, r14
je 0x14010c3de
mov rbp, r14
nop dword [rax + rax]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x20]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x20], al
mov rcx, qword [rbx + 8]
mov rax, qword [rdi + 8]
call qword [case.0x1400cc851.0]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x20]
xor al, 0x5c
lea rsi, [rsi + 1]
mov byte [rsp + 0x20], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
mov rax, qword [rdi + 8]
call qword [case.0x1400cc851.0]
sub r14, 1
jne 0x14010c390
mov eax, dword [rdi + 0x1c]
mov r14, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
cmp rbp, rax
jae 0x14010c431
mov rcx, qword [rbx + 8]
lea rdx, [0x14019e6e9]
mov rax, qword [rdi + 8]
mov r8d, 1
call qword [case.0x1400cc851.0]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x14019e6ea]
mov rax, qword [rdi + 8]
mov r8d, 1
call qword [case.0x1400cc851.0]
mov eax, dword [rdi + 0x1c]
inc rbp
cmp rbp, rax
jb 0x14010c3f0
mov rbp, qword [rsp + 0x40]
mov rax, rbx
add rsp, 0x48
pop rdi
pop rbx
ret
Function at 0x14010c680
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140212c80]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov dword [rsp + 0x20], 0xf0000040
mov rdi, rdx
lea rcx, [r11 - 0x30]
mov rsi, r8
xor edx, edx
xor r8d, r8d
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14010c6d9
mov eax, 0x1b
jmp 0x14010c7a2
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x14010c714
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
jmp 0x14010c7a2
mov rcx, rsi
call fcn.1400d6900
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
lea edx, [r8 + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x20
jne 0x14010c77e
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rbx
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14010c78e
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14010c7a0
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140133600
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x1401221f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbp
sub rsp, 0x40
mov rbx, r8
lea rax, [r11 - 0x18]
xor ebp, ebp
mov qword [r11 - 0x20], rax
xor r9d, r9d
mov dword [rsp + 0x30], ebp
xor r8d, r8d
mov qword [r11 - 0x28], rbp
mov qword [rbx], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x140122237
cmp eax, 0xea
jne 0x1401222b5
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1401222b5
lea ecx, [rax + 1]
mov rax, qword [0x140212a78]
call qword [case.0x1400cc851.0]
mov qword [rbx], rax
test rax, rax
je 0x1401222b5
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
xor r9d, r9d
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1401222a2
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x1401222a2
mov ecx, eax
mov rax, qword [rbx]
mov byte [rcx + rax], bpl
mov eax, 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rbp
ret
mov rcx, qword [rbx]
mov rax, qword [0x140212a88]
call qword [case.0x1400cc851.0]
mov qword [rbx], rbp
mov rbx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0x40
pop rbp
ret
Function at 0x140124240
Capabilities:
Connect socket

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
sub rsp, 0x38
mov rax, qword [rcx + 0x110]
mov r9, rcx
test rax, rax
je 0x14012428d
mov rax, qword [rax + 0x10]
test rax, rax
je 0x14012428d
mov r9, qword [rcx + 0x118]
mov rcx, qword [r11 + 0x10]
mov r8d, dword [r11 + 0x20]
mov rdx, qword [r11 + 0x18]
call qword [case.0x1400cc851.0]
add rsp, 0x38
ret
mov r8d, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
add rsp, 0x38
jmp qword [sym.imp.WS2_32.dll_connect]

Function at 0x1401246b0
Capabilities:
Send data
Send data on socket

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
sub rsp, 0x48
mov rax, qword [rcx + 0x110]
mov r9, rcx
test rax, rax
je 0x14012470e
mov rax, qword [rax + 0x20]
test rax, rax
je 0x14012470e
mov r9, qword [r9 + 0x118]
lea rdx, [r11 - 0x18]
mov rcx, r8
mov r8d, 1
mov qword [r11 - 0x18], rcx
mov rcx, qword [r11 + 0x20]
mov qword [r11 - 0x10], rcx
mov rcx, qword [r11 + 0x10]
call qword [case.0x1400cc851.0]
add rsp, 0x48
ret
mov r8d, dword [rsp + 0x68]
xor r9d, r9d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_send]
cdqe
add rsp, 0x48
ret
Function at 0x140125a50
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push r15
sub rsp, 0x78
mov r15, r8
mov rbx, rdx
test rdx, rdx
jne 0x140125a7f
cmp r8, 0xffffffffffffffff
je 0x140125c5c
mov qword [rsp + 0x70], rbp
xor ebp, ebp
mov qword [rsp + 0x68], rsi
mov rsi, qword [rsp + 0x90]
cmp qword [rsi + 0xa0], rbp
jbe 0x140125c52
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], r12
mov r12, qword [rsp + 0xa8]
mov qword [rsp + 0x50], r14
xor r14d, r14d
nop word [rax + rax]
mov rdi, qword [rsi + 0x98]
add rdi, r14
mov rcx, qword [rdi + 0x38]
call fcn.140128190
test rax, rax
je 0x140125c2f
mov rax, qword [rdi + 0x28]
test rax, rax
je 0x140125c2f
test rbx, rbx
je 0x140125b54
mov rcx, qword [rax + 8]
mov rdx, rbx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140125c2f
mov edx, dword [rbx]
xor eax, eax
mov r8, qword [rdi + 0x28]
test edx, edx
je 0x140125b5e
mov r8, qword [r8 + 8]
cmp qword [rbx + rax*8 + 8], r8
je 0x140125b21
inc eax
cmp eax, edx
jb 0x140125b12
jmp 0x140125b5e
lea ecx, [rdx - 1]
cmp eax, ecx
jae 0x140125b4d
nop dword [rax + rax]
mov edx, eax
lea r8d, [rax + 1]
mov rax, qword [rbx + r8*8 + 8]
mov qword [rbx + rdx*8 + 8], rax
mov eax, r8d
mov edx, dword [rbx]
lea ecx, [rdx - 1]
cmp r8d, ecx
jb 0x140125b30
lea eax, [rdx - 1]
mov dword [rbx], eax
jmp 0x140125b5e
cmp qword [rax + 8], r15
jne 0x140125c2f
mov rcx, qword [rdi + 0x38]
lea rdx, [rsp + 0x30]
call fcn.140128f70
mov rcx, qword [rdi + 0x28]
mov r10, rax
mov rdx, qword [rsi + 0x110]
mov rcx, qword [rcx + 8]
test rdx, rdx
je 0x140125bb5
mov rax, qword [rdx + 0x20]
test rax, rax
je 0x140125bb5
mov rdx, qword [rsp + 0x30]
mov r8d, 1
mov r9, qword [rsi + 0x118]
mov qword [rsp + 0x40], rdx
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x38], r10
call qword [case.0x1400cc851.0]
jmp 0x140125bc8
mov r8d, dword [rsp + 0x30]
xor r9d, r9d
mov rdx, r10
call qword [sym.imp.WS2_32.dll_send]
cdqe
test rax, rax
jg 0x140125bed
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x140125c2f
cmp eax, 0x2733
je 0x140125c2f
mov rcx, qword [rdi + 0x28]
mov rdx, r12
call fcn.140124860
jmp 0x140125c2f
mov rcx, qword [rdi + 0x38]
mov rdx, rax
call fcn.140127b50
mov rcx, qword [rdi + 0x38]
call fcn.140128190
test rax, rax
jne 0x140125c2f
mov rax, qword [rsi + 0xe0]
test rax, rax
je 0x140125c2f
mov rdx, qword [rdi + 0x28]
xor r9d, r9d
mov rcx, qword [rsi + 0xe8]
mov rdx, qword [rdx + 8]
lea r8d, [r9 + 1]
call qword [case.0x1400cc851.0]
inc rbp
add r14, 0x50
cmp rbp, qword [rsi + 0xa0]
jb 0x140125ac0
mov r14, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
add rsp, 0x78
pop r15
pop rbx
ret
Function at 0x140126980
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x28
mov ecx, dword [rsp + 0x30]
cmp ecx, 2
jne 0x1401269a1
lea r9d, [rcx + 2]
jmp 0x1401269aa
cmp ecx, 0x17
jne 0x1401269f5
lea r9d, [rcx - 7]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov qword [rsp + 0x20], rbx
call fcn.140126450
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1401269dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1401269dc
mov rbx, qword [rsp + 0x20]
xor eax, eax
add rsp, 0x28
ret
mov eax, 0xffffffff
mov ecx, 1
cmp ebx, eax
mov rbx, qword [rsp + 0x20]
cmovg eax, ecx
add rsp, 0x28
ret
mov ecx, 0x273f
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0xffffffff
add rsp, 0x28
ret

Function at 0x1401294f0
Capabilities:
Generate random numbers via rtlgenrandom
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
lea r14, [rbx + 0x110]
mov rax, qword [r14]
cmp rdi, rax
jbe 0x140129560
mov esi, 0x100
mov rcx, rbx
cmp rdi, rsi
jae 0x140129546
mov r8d, esi
lea rdx, [rbx + 0x10]
sub r8, rax
call fcn.140129590
mov qword [r14], rsi
jmp 0x140129563
mov rdx, qword [rsp + 0x48]
mov r8, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
jmp fcn.140129590
mov rsi, rax
mov rcx, qword [rsp + 0x48]
sub rbx, rsi
mov r8, rdi
lea rdx, [rbx + 0x110]
call fcn.140175f40
sub qword [r14], rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x140129590
Capabilities:
Generate random numbers via rtlgenrandom
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ebx, ebx
mov ecx, dword [rcx]
mov rsi, r8
mov rbp, rdx
sub ecx, 1
je 0x14012961e
cmp ecx, 1
jne 0x1401295f9
mov r9, qword [rdi + 8]
mov edx, ecx
mov rcx, rbp
call fcn.140154090
test rax, rax
je 0x1401295f9
add rbx, rax
cmp rbx, rsi
je 0x140129628
mov r9, qword [rdi + 8]
lea rcx, [rbx + rbp]
mov r8, rsi
mov edx, 1
sub r8, rbx
call fcn.140154090
test rax, rax
jne 0x1401295d4
cmp dword [rdi], 2
jne 0x140129607
mov rcx, qword [rdi + 8]
call fcn.140154674
lea rcx, [rdi + 4]
xor edx, edx
mov r8d, 0x114
call fcn.140176680
mov dword [rdi], 1
mov edx, esi
mov rcx, rbp
call sub.ADVAPI32.dll_SystemFunction036
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x14012e020
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push r15
sub rsp, 0x60
mov rsi, qword [rsp + 0x88]
xor ebx, ebx
mov rax, qword [rsi + 0x20]
test rax, rax
je 0x14012e25a
nop dword [rax]
mov rax, qword [rax + 0x20]
mov r15, rbx
inc rbx
test rax, rax
jne 0x14012e050
test rbx, rbx
je 0x14012e25a
mov rax, qword [0x140212a78]
mov qword [rsp + 0x90], rbp
lea rbp, [rbx + rbx*2]
shl rbp, 4
mov rcx, rbp
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x30], rbp
call qword [case.0x1400cc851.0]
mov qword [rsp + 0x28], rax
mov rdi, rax
test rax, rax
jne 0x14012e0a7
lea eax, [rdi + 0xf]
jmp 0x14012e226
mov qword [rsp + 0x50], r12
xor r12d, r12d
mov qword [rsp + 0x48], r13
mov r13, qword [rsi + 0x20]
mov qword [rsp + 0x40], r14
test rbx, rbx
je 0x14012e1b9
mov rbp, qword [rsp + 0x80]
lea r14, [rax + 0x28]
mov qword [r14 - 0x28], r13
mov qword [r14], r12
mov rsi, qword [r13 + 0x18]
movzx edx, word [rsi]
cmp edx, 2
je 0x14012e0f8
cmp edx, 0x17
je 0x14012e0f1
xor eax, eax
jmp 0x14012e18f
mov eax, 0x1c
jmp 0x14012e0fd
mov eax, reloc.WS2_32.dll_recv
mov r9d, reloc.WS2_32.dll_recvfrom
mov dword [rsp + 0x20], eax
mov rcx, rbp
lea r8d, [r9 - 0xf]
call fcn.140124340
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14012e131
call fcn.1401453a4
cmp dword [rax], 0x273f
jne 0x14012e241
xor eax, eax
jmp 0x14012e18f
mov r9d, dword [rsp + 0x20]
mov r8, rsi
mov rdx, rdi
mov rcx, rbp
call fcn.140124240
cmp eax, 0xffffffff
jne 0x14012e165
call fcn.1401453a4
cmp dword [rax], 0x2714
je 0x14012e131
mov rdx, rdi
mov rcx, rbp
call fcn.1401241f0
xor eax, eax
jmp 0x14012e18f
lea rdx, [r14 - 0x1c]
mov rcx, rdi
lea r8, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_getsockname]
mov rdx, rdi
mov rcx, rbp
test eax, eax
jne 0x14012e23c
call fcn.1401241f0
mov eax, 1
mov dword [r14 - 0x20], eax
inc r12
mov r13, qword [r13 + 0x20]
add r14, 0x30
cmp r12, rbx
jb 0x14012e0d2
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x30]
lea r9, [0x14012e640]
mov r8d, 0x30
mov rdx, rbx
mov rcx, rdi
call fcn.140159cc0
mov rax, qword [rdi]
mov qword [rsi + 0x20], rax
test r15, r15
je 0x14012e1f8
mov rcx, rdi
mov rax, qword [rcx + 0x30]
lea rdx, [rcx + 0x30]
mov rcx, qword [rcx]
mov qword [rcx + 0x20], rax
lea rcx, [rdx]
sub r15, 1
jne 0x14012e1e0
mov rax, qword [rdi + rbp - 0x30]
mov rcx, rdi
mov qword [rax + 0x20], 0
mov rax, qword [0x140212a88]
call qword [case.0x1400cc851.0]
xor eax, eax
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
mov r14, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x58]
add rsp, 0x60
pop r15
pop rsi
pop rbx
ret
call fcn.1401241f0
mov rcx, qword [rsp + 0x28]
mov rax, qword [0x140212a88]
call qword [case.0x1400cc851.0]
mov eax, 4
jmp 0x14012e217
mov eax, 1
add rsp, 0x60
pop r15
pop rsi
pop rbx
ret
Function at 0x140132d8c
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 0x140132dc6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140132dcb
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 0x140132e14
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1401c8c20]
cmp byte [rcx + rax], 0
je 0x140132e14
dec r8
sub rdx, 1
jne 0x140132dfa
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1401342a4
Capabilities:
Parse pe header

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

Function at 0x14015419c
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x140154179
call fcn.1401453a4
mov dword [rax], socket
call fcn.140143320
or eax, 0xffffffff
jmp 0x140154196
sub dword [rcx + 0x10], 1
jns 0x140154188
add rsp, 0x28
jmp fcn.14016a088
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x140154158
Function at 0x14015c234
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1401340b0
sub rsp, rax
mov rax, qword [0x140212c80]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140166290
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14015c283
mov rax, rbp
jmp 0x14015c38b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x21c730]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140169da4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x21c730]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14015c387
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14015c387
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140169da4
test rax, rax
js 0x14015c387
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14015c387
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14015c379
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14015c379
cmp byte [rcx], 0xd
jne 0x14015c35f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14015c36e
cmp byte [rcx + 1], 0xa
jne 0x14015c36e
inc rcx
jmp 0x14015c36e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x212ef0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14015c341
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14015c38b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140133600
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14015d9a4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14015d794
Function at 0x1401605a8
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x140212c80]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x1401cdc28]
mov rbp, rcx
call fcn.14016dafc
xor edi, edi
test rax, rax
je 0x14016068e
mov ebx, edi
call fcn.1401453a4
mov r14d, dword [rax]
call fcn.1401453a4
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.1401731a0
mov rsi, rax
test rax, rax
je 0x14016061f
call fcn.1401453a4
mov dword [rax], r14d
jmp 0x140160649
call fcn.1401453a4
cmp dword [rax], 0x22
jne 0x140160686
call fcn.1401453a4
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1401731a0
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x140160686
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14016064d
cmp rax, 3
je 0x140160668
mov rcx, rsi
call fcn.140160504
test al, al
je 0x140160679
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140160679
mov dil, 1
mov rcx, rbx
call fcn.140143670
mov al, dil
jmp 0x140160690
mov rcx, rbx
call fcn.140143670
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140133600
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret