joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14012db20
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rcx
mov rax, qword [rsp + 8]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 8]
mov qword [rax + 0x28], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x6a09e667
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0xbb67ae85
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x3c6ef372
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0xa54ff53a
mov eax, 4
imul rax, rax, 4
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x510e527f
mov eax, 4
imul rax, rax, 5
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x9b05688c
mov eax, 4
imul rax, rax, 6
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x1f83d9ab
mov eax, 4
imul rax, rax, 7
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x5be0cd19
ret
Function at 0x14014d230
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, [0x14000b300]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x14014d25a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, [0x14000b310]
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x14000b320]
mov rcx, rbx
mov r14, rax
call fcn.14018c190
test rax, rax
je 0x14014d2bd
mov rcx, rbx
test r14, r14
je 0x14014d2a7
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x14014d2f5
lea rdx, [0x14000b328]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14014d2f5
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x14014d3b8
mov qword [rsp + 0x40], rsi
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x14014d320
lea ecx, [rax + 1]
add rcx, rdx
call qword [fcn.14017dc04]
mov rdi, rax
test rax, rax
je 0x14014d3aa
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14014d3aa
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x14014d350
mov ecx, 0x5c
mov word [rax + rdi], cx
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x14014d364
mov rcx, rdi
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x14014d380
mov rcx, rdi
test r14, r14
je 0x14014d3a1
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x14014d3a7
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.14017dbf0]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x14014d420
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x1401b05d8]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x14014d486
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14014d469
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x14014d463
shr ax, 8
cmp al, 2
je 0x14014d486
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1401768f0
add rsp, 0x1e8
ret
call fcn.14016c590
test eax, eax
jne 0x14014d690
mov qword [rsp + 0x200], rsi
lea rcx, [0x14000b300]
mov qword [rsp + 0x208], rdi
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x14014d4c6
mov qword [0x1401b1608], rsi
jmp 0x14014d64d
mov qword [rsp + 0x1f0], rbx
lea rdx, [0x14000b310]
mov rcx, rdi
mov qword [rsp + 0x1f8], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rbx, [0x14000b2e0]
mov rbp, rax
mov rcx, rbx
lea rdx, [0x14000b320]
call fcn.14018c190
test rax, rax
je 0x14014d52a
mov rcx, rbx
test rbp, rbp
je 0x14014d51c
xor edx, edx
lea r8d, [rdx + 8]
call rbp
mov rsi, rax
jmp 0x14014d60c
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
jmp 0x14014d60c
test rbp, rbp
je 0x14014d559
lea rdx, [0x14000b328]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14014d559
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rsi, rax
jmp 0x14014d60c
xor edx, edx
mov qword [rsp + 0x1e0], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r14d, eax
test eax, eax
je 0x14014d604
lea ecx, [rax + 1]
add rcx, 0xc
call qword [fcn.14017dc04]
mov rdi, rax
test rax, rax
je 0x14014d5fb
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14014d5fb
mov rcx, 0xffffffffffffffff
mov rax, rcx
cmp byte [rdi + rax + 1], sil
lea rax, [rax + 1]
jne 0x14014d5a5
mov edx, 0x5c
mov word [rax + rdi], dx
nop dword [rax]
inc rcx
cmp byte [rdi + rcx], sil
jne 0x14014d5c0
mov rdx, rdi
sub rdx, rbx
add rdx, rcx
movzx eax, byte [rbx]
mov byte [rdx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x14014d5d2
mov rcx, rdi
test rbp, rbp
je 0x14014d5f2
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x14014d5f8
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
mov rcx, rdi
call qword [fcn.14017dbf0]
mov r14, qword [rsp + 0x1e0]
mov rbp, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x1f0]
mov qword [0x1401b1608], rsi
test rsi, rsi
je 0x14014d64d
lea rdx, [0x14000b2f0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401b1600]
test rax, rax
cmovne rcx, rax
mov qword [0x1401b1600], rcx
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.14016c140
test al, al
lea rcx, [0x1401b29b0]
setne byte [0x1401b29a8]
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.1401768f0
add rsp, 0x1e8
ret
Function at 0x14015d8e0
Capabilities:
Move file

Disassembly:
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.14013ebf0
mov rcx, rbx
movups xmm6, xmmword [rax]
call case.0x14013eae8.0
mov rcx, rdi
mov rsi, rax
call case.0x14013eae8.0
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x14015d990
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.14013ebf0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.14013ec80
cmp rax, 0x3e8
ja 0x14015d9c1
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_MoveFileExA]
test eax, eax
je 0x14015d940
test rsi, rsi
je 0x14015d99d
mov rcx, rsi
call fcn.14017dbf0
test rbx, rbx
je 0x14015d9aa
mov rcx, rbx
call fcn.14017dbf0
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 0x14015d9ce
mov rcx, rsi
call fcn.14017dbf0
test rbx, rbx
je 0x14015d9db
mov rcx, rbx
call fcn.14017dbf0
mov eax, 1
jmp 0x14015d9ac
Function at 0x14015db50
Capabilities:
Resolve dns

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor ebp, ebp
mov qword [r9], rbp
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x14015dcee
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x14015dcce
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x14015dbbe
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14015dbb0
inc rbx
jmp 0x14015dbc0
xor ebx, ebx
mov eax, dword [rdi + 4]
cmp eax, 2
jne 0x14015dbce
lea r14d, [rax + 0xe]
jmp 0x14015dbdb
cmp eax, 0x17
jne 0x14015dc74
lea r14d, [rax + 5]
cmp qword [rdi + 0x20], 0
je 0x14015dc74
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x14015dc74
cmp rax, r14
jb 0x14015dc74
lea rcx, [rbx + 0x30]
add rcx, r14
call qword [fcn.14017dc04]
mov rsi, rax
test rax, rax
je 0x14015dc83
mov ecx, dword [rdi]
mov r8, r14
mov dword [rax], ecx
mov ecx, dword [rdi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rdi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rdi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [rsi + 0x30]
mov dword [rax + 0x10], r14d
xor eax, eax
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x20], rcx
mov rdx, qword [rdi + 0x20]
call fcn.140177990
test rbx, rbx
je 0x14015dc61
mov rcx, qword [rsi + 0x20]
mov r8, rbx
add rcx, r14
mov qword [rsi + 0x18], rcx
mov rdx, qword [rdi + 0x18]
call fcn.140177990
test rbp, rbp
cmove rbp, rsi
test r15, r15
je 0x14015dc71
mov qword [r15 + 0x28], rsi
mov r15, rsi
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x14015dba0
jmp 0x14015dc89
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x58]
test rcx, rcx
je 0x14015dca3
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x14015dcc9
test rbp, rbp
je 0x14015dcc5
nop dword [rax]
mov rbx, qword [rbp + 0x28]
mov rcx, rbp
call qword [fcn.14017dbf0]
mov rbp, rbx
test rbx, rbx
jne 0x14015dcb0
xor ebp, ebp
jmp 0x14015dcdd
test rbp, rbp
jne 0x14015dcdd
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rbp
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
ret
Function at 0x14015e1e0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, rdx
mov edx, 0x2b
mov rsi, r8
mov rbp, rcx
test r8, r8
je 0x14015e2ab
xor r14d, r14d
nop dword [rax]
mov edi, 4
lea rdx, [rsp + 0x50]
cmp rsi, rdi
mov r8d, 4
mov rcx, rbp
cmovb rdi, rsi
call fcn.140144e10
cmp eax, 4
jne 0x14015e25c
cmp byte [0x1401b1614], r14b
jne 0x14015e268
lea r9d, [rax - 2]
mov dword [rsp + 0x50], r14d
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov edx, eax
test eax, eax
jne 0x14015e2ad
mov eax, dword [rsp + 0x50]
jmp 0x14015e287
imul eax, dword [0x1401b1610], 0x41c64e6d
mov edx, r14d
add eax, 0x3039
mov dword [0x1401b1610], eax
rol eax, 0x10
mov dword [rsp + 0x50], eax
test rdi, rdi
je 0x14015e2a2
sub rsi, rdi
nop
mov byte [rbx], al
inc rbx
shr eax, 8
sub rdi, 1
jne 0x14015e290
mov dword [rsp + 0x50], eax
test rsi, rsi
jne 0x14015e210
mov eax, edx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x14015e2c0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov r11, rsp
push rsi
push r12
push r14
push r15
sub rsp, 0xd8
mov rax, qword [0x1401b05d8]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rax, r8
lea r15, [rsp + 0x30]
and rax, 0xfffffffffffffffe
mov r14, r8
mov rsi, rdx
mov r12, rcx
cmp rax, 0x100
jae 0x14015e46c
test r14b, 1
je 0x14015e46c
mov qword [r11 + 0x18], rbx
dec r14
mov qword [r11 - 0x28], rbp
mov ecx, 0x2b
mov qword [r11 - 0x30], rdi
mov rbp, r14
shr rbp, 1
lea rdi, [rsp + 0x30]
mov qword [r11 - 0x38], r13
je 0x14015e3eb
xor r13d, r13d
nop word [rax + rax]
mov ebx, 4
lea rdx, [rsp + 0x20]
cmp rbp, rbx
mov r8d, 4
mov rcx, r12
cmovb rbx, rbp
call fcn.140144e10
cmp eax, 4
jne 0x14015e38c
cmp byte [0x1401b1614], r13b
jne 0x14015e39c
lea r9d, [rax - 2]
mov dword [rsp + 0x20], r13d
mov r8d, eax
lea rdx, [rsp + 0x20]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov ecx, eax
test eax, eax
jne 0x14015e42d
mov eax, dword [rsp + 0x20]
jmp 0x14015e3bb
imul eax, dword [0x1401b1610], 0x41c64e6d
mov ecx, r13d
add eax, 0x3039
mov dword [0x1401b1610], eax
rol eax, 0x10
mov dword [rsp + 0x20], eax
test rbx, rbx
je 0x14015e3e2
sub rbp, rbx
nop dword [rax]
nop word [rax + rax]
mov byte [rdi], al
inc rdi
shr eax, 8
sub rbx, 1
jne 0x14015e3d0
mov dword [rsp + 0x20], eax
test rbp, rbp
jne 0x14015e340
mov eax, ecx
test ecx, ecx
jne 0x14015e42d
test r14, r14
je 0x14015e428
lea rdx, [0x14000f798]
nop dword [rax]
movzx ecx, byte [r15]
lea r15, [r15 + 1]
mov eax, ecx
and ecx, 0xf
shr rax, 4
movzx eax, byte [rax + rdx]
mov byte [rsi], al
movzx eax, byte [rcx + rdx]
mov byte [rsi + 1], al
add rsi, 2
sub r14, 2
jne 0x14015e400
mov byte [rsi], 0
xor eax, eax
mov rdi, qword [rsp + 0xc8]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0x110]
mov r13, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1401768f0
add rsp, 0xd8
pop r15
pop r14
pop r12
pop rsi
ret
mov eax, 0x2b
jmp 0x14015e44d
Function at 0x140161800
Capabilities:
Query environment variable

Disassembly:
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 [fcn.14017dc0c]
mov rdi, rax
test rax, rax
je 0x14016187d
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 0x1401618a8
cmp ebx, esi
je 0x1401618a8
cmp ebx, 0x8000
ja 0x1401618a8
cmp ebx, esi
jb 0x1401618a3
mov edx, ebx
mov rcx, rdi
call qword [fcn.14017dc0c]
mov rdi, rax
test rax, rax
jne 0x140161840
mov rcx, rbp
call qword [fcn.14017dbf0]
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 0x140161888
mov rcx, rdi
jmp 0x140161880
Function at 0x140167ae0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x1c0
mov rax, qword [0x1401b05d8]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rbx, qword [rcx + 0x10]
lea r8, [rsp + 0x20]
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
mov rsi, rdx
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
mov rcx, qword [rbx + 0x98]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140167b96
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.14015c310
mov r9, rax
lea rdx, [0x140011178]
mov r8d, ebx
mov rcx, rsi
call fcn.14014b310
mov eax, 2
jmp 0x140167c08
mov edx, dword [rsp + 0x20]
lea r9, [rbx + 0x104]
lea r8, [rbx + 0xd4]
lea rcx, [rsp + 0x30]
call fcn.14014c090
test al, al
jne 0x140167c06
mov qword [rsp + 0x1e0], rdi
call fcn.14017d244
mov ebx, dword [rax]
call fcn.14017d244
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.14015c310
mov r8d, dword [rdi]
lea rdx, [0x140011228]
mov r9, rax
mov rcx, rsi
call fcn.14014b310
mov rdi, qword [rsp + 0x1e0]
mov eax, 2
jmp 0x140167c08
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1401768f0
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1c0
pop rsi
ret
Function at 0x140169710
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbp, r8
mov dword [rsp + 0x48], 0
mov rbx, rdx
mov r8d, send
lea rdx, [0x14000cd18]
mov rcx, r9
mov rdi, r9
call fcn.14014f5d0
test eax, eax
je 0x14016975c
mov esi, dword [rbx + 0x158]
cmp esi, 0x191
je 0x140169783
mov r8d, reloc.WS2_32.dll_send
lea rdx, [0x14000cd30]
mov rcx, rdi
call fcn.14014f5d0
test eax, eax
je 0x1401697c9
mov esi, dword [rbx + 0x158]
cmp esi, 0x197
jne 0x1401697c9
mov rcx, rdi
call fcn.140155130
mov rdi, rax
test rax, rax
jne 0x14016979b
lea eax, [rdi + 0x1b]
jmp 0x14016993a
cmp esi, 0x197
mov r8, rdi
mov rcx, rbx
sete dl
call fcn.140156d70
mov rcx, rdi
mov ebx, eax
call qword [fcn.14017dbf0]
test ebx, ebx
je 0x140169938
mov eax, ebx
jmp 0x14016993a
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, [0x14000c5a0]
mov rcx, rdi
call fcn.14014f5d0
test eax, eax
je 0x140169824
mov r8d, dword [rbx + 0x158]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x140169809
lea rdx, [0x1400114c8]
mov rcx, rbx
call fcn.14014b400
jmp 0x140169938
xor edx, edx
lea r9, [rbp + 0x298]
lea rcx, [rdi + 0xf]
lea r8d, [rdx + 0xa]
call fcn.14015d080
jmp 0x140169938
lea r9, [0x14000cc74]
mov qword [rsp + 0x20], 5
mov r8d, recv
lea rdx, [0x14000c5b0]
mov rcx, rdi
call fcn.140155060
test al, al
jne 0x140169931
mov r8d, reloc.WS2_32.dll_select
lea rdx, [0x14000c5c0]
mov rcx, rdi
call fcn.14014f5d0
test eax, eax
je 0x1401698da
mov r8d, dword [rbx + 0x158]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x140169891
lea rdx, [0x140011500]
mov rcx, rbx
call fcn.14014b400
jmp 0x140169938
lea r9, [0x14000b8f0]
mov qword [rsp + 0x20], 7
mov r8d, reloc.WS2_32.dll_select
lea rdx, [0x14000c5c0]
mov rcx, rdi
call fcn.140155060
test al, al
je 0x140169938
lea rdx, [0x140011538]
mov rcx, rbx
call fcn.14014b400
mov rcx, rbx
mov byte [rbp + 0x2a4], 1
call fcn.14016c690
jmp 0x140169938
lea r9, [0x14000cc74]
mov qword [rsp + 0x20], 5
mov r8d, send
lea rdx, [0x14000cc30]
mov rcx, rdi
call fcn.140155060
test al, al
jne 0x140169931
lea r9, [rbx + 0x158]
mov rcx, rdi
lea r8, [rsp + 0x48]
lea rdx, [0x140011558]
call fcn.14013eb10
cmp eax, 2
jne 0x140169938
mov eax, dword [rbx + 0x158]
mov dword [rbx + 0x1294], eax
jmp 0x140169938
mov byte [rbp + 0x2a5], 1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140170cc0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rbp
push r12
push r13
push r15
sub rsp, 0x180
mov rax, qword [0x1401b05d8]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x50], rcx
mov r15, r8
mov rcx, rdx
mov r12, rdx
xor ebp, ebp
xor ebx, ebx
call case.0x14013eae8.0
mov r13, rax
test rax, rax
jne 0x140170d3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14015c440
mov r9, rax
lea rdx, [0x140012988]
mov r8, r12
mov rcx, r15
call fcn.14014b310
xor ecx, ecx
lea ebx, [rbp + 0x4d]
call qword [fcn.14017dbf0]
jmp 0x140170ef8
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, r13
mov qword [rsp + 0x170], r14
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140170db1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14015c440
mov r9, rax
lea rdx, [0x1400129c0]
mov r8, r12
mov rcx, r15
call fcn.14014b310
xor ecx, ecx
lea ebx, [r14 + 0x4e]
jmp 0x140170ee2
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x140170dfa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14015c440
mov r9, rax
lea rdx, [0x1400129f0]
mov r8, r12
mov rcx, r15
call fcn.14014b310
mov ebx, 0x4d
jmp 0x140170ed6
mov qword [rsp + 0x178], rdi
mov rdi, qword [rsp + 0x48]
cmp rdi, 0x100000
jle 0x140170e2f
mov r8d, 0x100000
lea rdx, [0x140012a28]
mov rcx, r15
call fcn.14014b310
mov ebx, 0x4d
jmp 0x140170ece
lea rcx, [rdi + 1]
call qword [fcn.14017dc04]
mov rbp, rax
test rax, rax
jne 0x140170e49
lea ebx, [rax + 0x1b]
jmp 0x140170ece
mov qword [rsp + 0x1c8], rsi
test rdi, rdi
je 0x140170ea8
nop word [rax + rax]
mov r8d, edi
mov dword [rsp + 0x40], 0
sub r8d, ebx
mov esi, ebx
lea rdx, [rbx + rbp]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140170f1a
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x140170e9f
mov edi, esi
jmp 0x140170ea1
add ebx, eax
mov eax, ebx
cmp rax, rdi
jb 0x140170e60
mov rcx, qword [rsp + 0x50]
mov r9, r12
mov r8, rdi
mov byte [rdi + rbp], 0
mov rdx, rbp
mov qword [rsp + 0x20], r15
call fcn.140170a20
mov ebx, eax
mov rsi, qword [rsp + 0x1c8]
mov rdi, qword [rsp + 0x178]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [fcn.14017dbf0]
mov rcx, r13
call fcn.14017dbf0
mov r14, qword [rsp + 0x170]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1401768f0
add rsp, 0x180
pop r15
pop r13
pop r12
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14015c440
mov r9, rax
lea rdx, [0x140012a58]
mov r8, r12
mov rcx, r15
call fcn.14014b310
mov ebx, 0x4d
jmp 0x140170ec6
Function at 0x14017df28
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14017dd87
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14017dd87
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14017dd87
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14017dd87
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14017dd87
cmp dword [rcx + 0x84], 0xe
jbe 0x14017dd87
cmp dword [rcx + 0xf8], 0
je 0x14017dd87
mov ecx, ebx
call fcn.14017de44
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14017dc14
nop
cmp dword [rbp + 0x20], 0
je 0x14017ddd5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14017dde0
int3
xor r8d, r8d
xor edx, edx
jmp 0x14017dd18

Function at 0x14018ada8
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.140176ec0
sub rsp, rax
mov rax, qword [0x1401b05d8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14019439c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14018adf7
mov rax, rbp
jmp 0x14018aeff
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 + 0x1b22a0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140195e14
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1b22a0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14018aefb
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 0x14018aefb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140195e14
test rax, rax
js 0x14018aefb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14018aefb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14018aeed
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14018aeed
cmp byte [rcx], 0xd
jne 0x14018aed3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14018aee2
cmp byte [rcx + 1], 0xa
jne 0x14018aee2
inc rcx
jmp 0x14018aee2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1b0750]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14018aeb5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14018aeff
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1401768f0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret