joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002004
Capabilities:
Print debug messages

Disassembly:
jmp 0x1401a9d80
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ebx, eax
test eax, eax
je 0x1401a9dc8
test rdi, rdi
je 0x1401a9db7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.1400022a2
cmp eax, 1
je 0x1401a9dc8
mov eax, 4
jmp 0x1401a9e0d
call fcn.140007293
cmp eax, 2
jne 0x1401a9e04
call fcn.14000237e
test al, al
je 0x1401a9e04
call fcn.140005029
test al, al
jne 0x1401a9dfa
bts esi, 0x15
xor ecx, ecx
mov rdx, rdi
mov r8, rbp
mov r9d, esi
call fcn.140007301
jmp 0x1401a9e0d
call fcn.140006fe6
mov rcx, rax
jmp 0x1401a9dea
neg ebx
sbb eax, eax
neg eax
add eax, 3
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000247d
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1400b0380
sub rsp, 0x28
xor eax, eax
lea r8, [rsp + 0x38]
test edx, edx
mov edx, 0x8004667e
setne al
mov dword [rsp + 0x38], eax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
add rsp, 0x28
ret

Function at 0x140002a04
Capabilities:
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
jmp 0x1400bfcb0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov r8, rcx
mov rbx, rcx
mov rdx, rdi
mov rcx, rsi
call fcn.1400bff50
lea r8, [rbx + 7]
mov rcx, rsi
lea rdx, [rdi + 8]
call fcn.1400bff50
lea r8, [rbx + 0xe]
mov rcx, rsi
lea rdx, [rdi + 0x10]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400bff50

Function at 0x140002a77
Capabilities:
Delete file

Disassembly:
jmp 0x1401ad670
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1401ad690
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140002f3b
or eax, 0xffffffff
jmp 0x1401ad692
xor eax, eax
add rsp, 0x28
ret
Function at 0x140003120
Capabilities:
Move file

Disassembly:
jmp 0x1400793b0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.140007036
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.140001546
mov rcx, rdi
mov rsi, rax
call fcn.140001546
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140079460
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.140007036
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.14000821f
cmp rax, 0x3e8
ja 0x140079491
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x140079410
test rsi, rsi
je 0x14007946d
mov rcx, rsi
call fcn.1400035cb
test rbx, rbx
je 0x14007947a
mov rcx, rbx
call fcn.1400035cb
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x14007949e
mov rcx, rsi
call fcn.1400035cb
test rbx, rbx
je 0x1400794ab
mov rcx, rbx
call fcn.1400035cb
mov eax, 1
jmp 0x14007947c

Function at 0x14000357b
Capabilities:
Get geographical location

Disassembly:
jmp 0x1401109ec
sub rsp, 0x28
call fcn.140004db3
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x140110a3e
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov r9d, 2
lea edx, [r9 + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx ecx, word [rsp + 0x30]
sub ecx, 0x30
je 0x140110a3e
sub ecx, 1
je 0x140110a37
cmp ecx, 1
je 0x140110a30
xor eax, eax
jmp 0x140110a43
mov eax, 3
jmp 0x140110a43
mov eax, 1
jmp 0x140110a43
mov eax, 2
add rsp, 0x28
ret
Function at 0x140003869
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x14019bb94
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140215b80]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea rbx, [0x14021b1c0]
xor r12d, r12d
lea rdi, [0x1401c56be]
test r9, r9
mov rax, rdx
mov r15, rdx
cmovne rbx, r9
test rdx, rdx
lea ebp, [r12 + 1]
cmovne rbp, r8
cmovne rdi, rdx
neg rax
sbb r14, r14
and r14, rcx
test rbp, rbp
jne 0x14019bc02
mov rax, 0xfffffffffffffffe
jmp 0x14019bd35
cmp word [rbx + 6], r12w
jne 0x14019bc58
mov rcx, rdi
call fcn.1400070cc
movsxd r8, eax
movzx eax, byte [rdi]
inc rdi
cmp r8d, 1
jbe 0x14019bc48
lea ecx, [r8 - 2]
cmp ecx, 2
ja 0x14019bd2a
movzx edx, r8b
mov ecx, 7
sub ecx, edx
mov r9b, r8b
mov edx, 1
shl edx, cl
dec edx
and edx, eax
jmp 0x14019bc81
test r14, r14
je 0x14019bc50
mov dword [r14], eax
mov rax, r8
jmp 0x14019bd35
mov r8b, byte [rbx + 4]
mov edx, dword [rbx]
mov r9b, byte [rbx + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x14019bd2a
cmp r9b, 1
jb 0x14019bd2a
cmp r9b, r8b
jae 0x14019bd2a
movzx r11d, r9b
cmp r11, rbp
mov r10d, r11d
cmovae r10, rbp
jmp 0x14019bcaf
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x14019bd2a
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r15
cmp rax, r10
jb 0x14019bc91
cmp r10, r11
jae 0x14019bcd9
movzx eax, r8b
sub r9b, r10b
mov word [rbx + 4], ax
movzx eax, r9b
mov word [rbx + 6], ax
mov dword [rbx], edx
jmp 0x14019bbf6
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x14019bd2a
cmp edx, 0x110000
jae 0x14019bd2a
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x14019bd2a
test r14, r14
je 0x14019bd18
mov dword [r14], edx
neg edx
mov rdx, rbx
sbb rcx, rcx
and rcx, r11
call fcn.1400072fc
jmp 0x14019bd35
mov rdx, rsi
mov rcx, rbx
call fcn.1400082ab
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14000433b
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
jmp 0x140111cb0
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140111d3d
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140111d3d
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140111d3d
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140111d24
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140111d1e
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140111d26
add rdx, 0x28
jmp 0x140111d03
xor edx, edx
test rdx, rdx
jne 0x140111d2f
xor al, al
jmp 0x140111d43
cmp dword [rdx + 0x24], 0
jge 0x140111d39
xor al, al
jmp 0x140111d43
mov al, 1
jmp 0x140111d43
xor al, al
jmp 0x140111d43
add rsp, 0x18
ret
Function at 0x140003afd
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400841c0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [case.0x14004ad5c.0]
mov rdi, rax
test rax, rax
je 0x14008423d
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x140084268
cmp ebx, esi
je 0x140084268
cmp ebx, 0x8000
ja 0x140084268
cmp ebx, esi
jb 0x140084263
mov edx, ebx
mov rcx, rdi
call qword [case.0x14004ad5c.0]
mov rdi, rax
test rax, rax
jne 0x140084200
mov rcx, rbp
call qword [fcn.1400035cb]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x140084248
mov rcx, rdi
jmp 0x140084240

Function at 0x140003fa8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1401bbff0
mov rax, rcx
neg rcx
test rax, 7
je 0x1401bc00d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1401bc068
test al, 7
jne 0x1401bc000
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1401bc021
mov rdx, qword [rax - 8]
test dl, dl
je 0x1401bc092
test dh, dh
je 0x1401bc08c
shr rdx, 0x10
test dl, dl
je 0x1401bc086
test dh, dh
je 0x1401bc080
shr rdx, 0x10
test dl, dl
je 0x1401bc07a
test dh, dh
je 0x1401bc074
shr edx, 0x10
test dl, dl
je 0x1401bc06e
test dh, dh
jne 0x1401bc021
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x140003fee
Capabilities:
Query environment variable

Disassembly:
jmp 0x1401a85d8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1401a865f
mov rsi, rbx
cmp word [rax], bp
je 0x1401a861e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401a8608
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401a8604
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140001082
mov rdi, rax
test rax, rax
je 0x1401a864c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140004372
mov rbp, rdi
xor ecx, ecx
call fcn.140001307
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400043b3
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
jmp 0x1401086b4
jmp 0x14010f048
xor r9d, r9d
movabs r8, 0xcbf29ce484222325
test rdx, rdx
je 0x1401086e4
movzx eax, byte [rcx + r9]
movabs r10, 0x100000001b3
xor r8, rax
inc r9
imul r8, r10
cmp r9, rdx
jb 0x1401086c6
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
mov rdx, r8
jmp 0x140002a13
Function at 0x1400045a7
Capabilities:
Authenticate hmac

Disassembly:
jmp 0x1400c1d70
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov rsi, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [fcn.140004f2a]
mov rbx, rax
test rax, rax
jne 0x1400c1db3
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rdi
mov qword [rbx + 0x10], rax
lea rdi, [rbp + 8]
mov qword [rsp + 0x50], r14
cmp r15d, dword [rbp + 0x1c]
jbe 0x1400c1e00
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, rsi
call qword [rdi]
mov esi, dword [rbp + 0x18]
add rsi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rsi
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor r14d, r14d
test r15, r15
je 0x1400c1e62
mov r14, r15
nop dword [rax]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rdi]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea rsi, [rsi + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rdi]
sub r15, 1
jne 0x1400c1e20
lea rdi, [rbp + 8]
mov eax, dword [rbp + 0x1c]
cmp r14, rax
jae 0x1400c1ea1
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x1401d9a71]
mov r8d, 1
call qword [rdi]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1401d9a72]
mov r8d, 1
call qword [rdi]
mov eax, dword [rbp + 0x1c]
inc r14
cmp r14, rax
jb 0x1400c1e70
mov r14, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret

Function at 0x140004674
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140126418
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1401e3000]
mov ecx, 2
lea r8, [0x1401e2ff8]
lea rdx, str.FlsGetValue
call fcn.140125ee8
mov ecx, ebx
test rax, rax
je 0x140126452
add rsp, 0x20
pop rbx
jmp qword [case.0x1400e066e.0]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x14000499e
Capabilities:
Query environment variable

Disassembly:
jmp 0x1401a8484
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1401a84b4
xor eax, eax
jmp 0x1401a8577
mov rbp, rbx
cmp word [rax], si
je 0x1401a84d9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1401a84c0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1401a84bc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140006064
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x1401a851a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1401a84ad
call fcn.140001082
mov rdi, rax
test rax, rax
jne 0x1401a8530
xor ecx, ecx
call fcn.140001307
jmp 0x1401a850f
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140006064
test eax, eax
jne 0x1401a8561
mov rcx, rdi
call fcn.140001307
jmp 0x1401a856b
xor ecx, ecx
call fcn.140001307
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400049bc
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140126368
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x1401e2fc0]
xor ecx, ecx
lea r8, [0x1401e2fb8]
lea rdx, str.FlsAlloc
call fcn.140125ee8
test rax, rax
je 0x1401263a1
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [case.0x1400e066e.0]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x140004a98
Capabilities:
Get geographical location

Disassembly:
jmp 0x140197580
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x140235050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x1401975e5
test rax, rax
jne 0x1401975d3
lea r9, [0x1401e79a8]
lea r8, [0x1401e79a0]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.140196a10
test rax, rax
je 0x1401975e5
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.14000858f
jmp 0x1401975ff
xor edx, edx
mov rcx, rbp
call fcn.14000399f
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140004ab1
Capabilities:
Terminate process

Disassembly:
jmp 0x140111e5c
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140004dfe
Capabilities:
Parse pe header

Disassembly:
jmp 0x14018a2bc
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x14018a008
Function at 0x14000507e
Capabilities:
Resolve dns

Disassembly:
jmp 0x140079ce0
push rdi
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor edi, edi
mov qword [r9], rdi
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x140079e7e
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov rsi, qword [rsp + 0x68]
test rsi, rsi
je 0x140079e5e
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x140079d4e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140079d40
inc rbx
jmp 0x140079d50
xor ebx, ebx
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x140079d5f
mov ebp, reloc.WS2_32.dll_recv
jmp 0x140079d6d
cmp eax, 0x17
jne 0x140079e05
mov ebp, 0x1c
cmp qword [rsi + 0x20], 0
je 0x140079e05
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x140079e05
cmp rax, rbp
jb 0x140079e05
lea rcx, [rbp + 0x30]
add rcx, rbx
call qword [fcn.140004f2a]
mov r14, rax
test rax, rax
je 0x140079e14
mov ecx, dword [rsi]
mov r8, rbp
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [r14 + 0x30]
mov dword [rax + 0x10], ebp
xor eax, eax
mov qword [r14 + 0x18], rax
mov qword [r14 + 0x28], rax
mov qword [r14 + 0x20], rcx
mov rdx, qword [rsi + 0x20]
call fcn.140004372
test rbx, rbx
je 0x140079df2
mov rcx, qword [r14 + 0x20]
mov r8, rbx
add rcx, rbp
mov qword [r14 + 0x18], rcx
mov rdx, qword [rsi + 0x18]
call fcn.140004372
test rdi, rdi
cmove rdi, r14
test r15, r15
je 0x140079e02
mov qword [r15 + 0x28], r14
mov r15, r14
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x140079d30
jmp 0x140079e1a
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x58]
test rcx, rcx
je 0x140079e34
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x140079e59
test rdi, rdi
je 0x140079e55
nop
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [fcn.1400035cb]
mov rdi, rbx
test rbx, rbx
jne 0x140079e40
xor edi, edi
jmp 0x140079e6d
test rdi, rdi
jne 0x140079e6d
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rsi, qword [rsp + 0x60]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rdi
add rsp, 0x28
pop r15
pop r13
pop r12
pop rdi
ret
Function at 0x140005150
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
jmp 0x14005bd00
sub rsp, 0x1e8
mov rax, qword [0x140215b80]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x14005bd66
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14005bd49
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x14005bd43
shr ax, 8
cmp al, 2
je 0x14005bd66
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14000433b
add rsp, 0x1e8
ret
call fcn.140007d7e
test eax, eax
jne 0x14005bf7b
mov qword [rsp + 0x200], rsi
lea rcx, str.kernel32
mov qword [rsp + 0x208], rdi
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x14005bda6
mov qword [0x1402188d8], rsi
jmp 0x14005bf36
mov qword [rsp + 0x1f0], rbx
lea rdx, str.LoadLibraryExW
mov rcx, rdi
mov qword [rsp + 0x1f8], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rbx, str.iphlpapi.dll
mov rbp, rax
mov rcx, rbx
lea rdx, [0x1401cb834]
call fcn.140003a62
test rax, rax
je 0x14005be0c
mov rcx, rbx
test rbp, rbp
je 0x14005bdfe
xor edx, edx
mov r8d, 8
call rbp
mov rsi, rax
jmp 0x14005befe
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
jmp 0x14005befe
test rbp, rbp
je 0x14005be3b
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005be3b
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rsi, rax
jmp 0x14005befe
xor edx, edx
mov qword [rsp + 0x1e0], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r14d, eax
test eax, eax
je 0x14005bef6
lea ecx, [rax + 1]
lea rcx, [rcx*2 + 0x18]
call qword [fcn.140004f2a]
mov rdi, rax
test rax, rax
je 0x14005beed
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14005beed
mov rcx, 0xffffffffffffffff
mov rax, rcx
nop
cmp word [rdi + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x14005be90
mov dword [rdi + rax*2], 0x5c
inc rcx
cmp word [rdi + rcx*2], si
jne 0x14005bea2
add rcx, rcx
sub rcx, rbx
add rcx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x14005bec0
mov rcx, rdi
test rbp, rbp
je 0x14005bee4
xor edx, edx
mov r8d, 8
call rbp
jmp 0x14005beea
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
mov rcx, rdi
call qword [fcn.1400035cb]
mov r14, qword [rsp + 0x1e0]
mov rbp, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x1f0]
mov qword [0x1402188d8], rsi
test rsi, rsi
je 0x14005bf36
lea rdx, str.if_nametoindex
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005bf36
mov qword [0x1402188d0], rax
mov r9d, 2
mov dword [rsp + 0x20], 3
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.1400068ed
test al, al
lea rcx, [0x14021b3f8]
setne byte [0x14021b3e9]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rdi, qword [rsp + 0x208]
xor eax, eax
mov rsi, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14000433b
add rsp, 0x1e8
ret
Function at 0x1400051dc
Capabilities:
Parse pe header

Disassembly:
jmp 0x1401b5b90
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401b5bb8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401b5bb8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x14000581c
Capabilities:
Clear file content

Disassembly:
jmp 0x1401a09e8
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140002167
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140002167
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1401a0b35
cmp rax, 0xffffffffffffffff
je 0x1401a0b35
xor edi, edi
test rbp, rbp
jle 0x1401a0ae3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14000702c
mov rbx, rax
test rax, rax
jne 0x1401a0a70
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1401a0ad9
mov edx, 0x8000
mov ecx, r14d
call fcn.140005c31
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400069bf
cmp eax, 0xffffffff
je 0x1401a0ab9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1401a0a80
mov edx, r15d
mov ecx, r14d
call fcn.140005c31
jmp 0x1401a0ad9
cmp byte [rsi + 0x38], dil
je 0x1401a0ad0
cmp dword [rsi + 0x34], 5
jne 0x1401a0ad0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1401a0ad9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140001307
jmp 0x1401a0b47
jns 0x1401a0b47
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140002167
cmp rax, 0xffffffffffffffff
jne 0x1401a0b01
cmp byte [rsi + 0x30], dil
je 0x1401a0b47
jmp 0x1401a0b3d
mov ecx, r14d
call fcn.140007efa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401a0b47
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1401a0b47
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1401a0b42
mov edi, dword [rsi + 0x2c]
jmp 0x1401a0b47
mov edi, socket
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140002167
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, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400058fd
Capabilities:
Parse pe header

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