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

Disassembly:
jmp 0x14000c3d0
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x13c0]
mov eax, 0x14c0
call fcn.14006b6f0
sub rsp, rax
mov rax, qword [0x1400c80c0]
xor rax, rsp
mov qword [rbp + 0x13b0], rax
mov esi, edx
mov r14, rcx
mov rdi, qword [rbp + 0x1418]
xor r15d, r15d
mov word [rbp + 0x3b0], r15w
mov byte [rbp - 0x50], r15b
mov ecx, dword [rbp + 0x1420]
call fcn.140002150
mov ebx, eax
mov edx, 1
mov dword [rsp + 0x20], edx
mov dword [rsp + 0x24], ecx
lock xadd dword [0x1400cf720], edx
inc edx
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x30], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x38], eax
lea rax, [0x1400afa8c]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], esi
mov dword [rsp + 0x5c], ebx
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x58], r14
mov qword [rsp + 0x60], r15
xor eax, eax
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rax
xorps xmm1, xmm1
movups xmmword [rsp + 0x68], xmm1
mov qword [rsp + 0x78], rax
mov rax, qword [0x1400cf670]
test rax, rax
je 0x14000c4a9
call rax
mov qword [rbp - 0x68], rax
jmp 0x14000c4ad
mov qword [rbp - 0x68], r15
mov rax, qword [0x1400cf628]
test rax, rax
je 0x14000c4ca
mov r8d, 0x400
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x1400cf618]
test rax, rax
je 0x14000c4dd
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x1400cf648]
test rax, rax
je 0x14000c4f0
lea rcx, [rsp + 0x20]
call rax
cmp dword [rsp + 0x24], r15d
jge 0x14000c5e0
cmp byte [0x1400cf5e8], r15b
jne 0x14000c54c
mov rax, qword [0x1400cf5d8]
test rax, rax
je 0x14000c518
call rax
movzx r15d, al
jmp 0x14000c524
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
setne r15b
test r15d, r15d
jne 0x14000c54c
mov rax, qword [0x1400cf5f0]
test rax, rax
je 0x14000c5a2
cmp byte [0x1400cf608], r15b
jne 0x14000c5a2
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x20]
call rax
jmp 0x14000c5a2
mov rax, qword [0x1400cf5f0]
test rax, rax
je 0x14000c575
cmp byte [0x1400cf608], 0
jne 0x14000c575
mov r8d, 0x800
lea rdx, [rbp + 0x3b0]
lea rcx, [rsp + 0x20]
call rax
cmp word [rbp + 0x3b0], 0
jne 0x14000c595
lea r8, [rsp + 0x20]
mov edx, 0x800
lea rcx, [rbp + 0x3b0]
call fcn.140001dc0
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [0x1400cf5f8], 0
je 0x14000c5ba
mov rax, qword [0x1400cf638]
test rax, rax
je 0x14000c5ba
call rax
nop
mov rcx, qword [rbp + 0x13b0]
xor rcx, rsp
call fcn.14006ab70
mov rbx, qword [rsp + 0x1500]
add rsp, 0x14c0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1400035c0
nop
int3
Function at 0x1400314c0
Capabilities:
Parse credit card information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor al, al
mov rbx, rcx
cmp dword [rcx + 0x7c], 0xffffffff
je 0x140031727
nop dword [rax]
mov ecx, dword [rbx + 0x7c]
cmp ecx, 0x7c
je 0x140031727
cmp ecx, 0x29
jne 0x14003150b
cmp dword [rbx + 0x1c], 0
jne 0x140031727
test dword [rbx + 0x80], 0x10000000
je 0x140031732
cmp ecx, 0x2e
jne 0x14003156c
lea rcx, [rbx + 0x40]
mov edx, 5
call fcn.140035f20
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x10]
cmp rcx, rax
je 0x14003155f
cmp byte [rcx], 0x5c
jne 0x14003155c
inc rcx
cmp rcx, rax
je 0x14003155c
mov edx, dword [rbx + 0x80]
test dl, 8
jne 0x14003154b
movzx eax, byte [rcx]
sub al, 0x28
cmp al, 1
jbe 0x140031559
test dl, 0x10
jne 0x14003155c
movzx eax, byte [rcx]
sub al, 0x7b
test al, 0xfd
jne 0x14003155c
mov qword [rbx], rcx
inc qword [rbx]
mov rcx, rbx
call fcn.1400376d0
jmp 0x140031713
cmp ecx, 0x5c
jne 0x14003162a
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x10]
cmp rcx, rax
je 0x1400315b6
cmp byte [rcx], 0x5c
jne 0x1400315b3
inc rcx
cmp rcx, rax
je 0x1400315b3
mov edx, dword [rbx + 0x80]
test dl, 8
jne 0x1400315a2
movzx eax, byte [rcx]
sub al, 0x28
cmp al, 1
jbe 0x1400315b0
test dl, 0x10
jne 0x1400315b3
movzx eax, byte [rcx]
sub al, 0x7b
test al, 0xfd
jne 0x1400315b3
mov qword [rbx], rcx
inc qword [rbx]
mov rcx, rbx
call fcn.1400376d0
mov eax, dword [rbx + 0x80]
and eax, 0x80
je 0x1400315ec
cmp byte [rbx + 0x78], 0x62
jne 0x1400315ec
lea rcx, [rbx + 0x40]
mov edx, 4
call fcn.140035f20
mov rcx, rbx
call fcn.140035fb0
jmp 0x14003171b
test eax, eax
je 0x14003161d
cmp byte [rbx + 0x78], 0x42
jne 0x14003161d
lea rcx, [rbx + 0x40]
mov edx, 4
call fcn.140035f20
mov rax, qword [rbx + 0x48]
mov rcx, rbx
xor dword [rax + 0xc], 1
add rax, 0xc
call fcn.140035fb0
jmp 0x14003171b
mov rcx, rbx
call fcn.140031760
jmp 0x140031713
cmp ecx, 0x5b
jne 0x140031655
mov rcx, rbx
call fcn.140035fb0
mov rcx, rbx
call fcn.140031eb0
mov edx, 0x5d
mov rcx, rbx
lea r8d, [rdx - 0x59]
call fcn.140033f60
jmp 0x140031713
cmp ecx, 0x28
jne 0x14003168c
mov rcx, rbx
call fcn.140035fb0
mov rcx, rbx
call fcn.1400379e0
mov edx, 0x29
mov rcx, rbx
movzx edi, al
lea r8d, [rdx - 0x24]
call fcn.140033f60
test dil, dil
je 0x14003171b
jmp 0x140031713
cmp ecx, 0x5e
jne 0x1400316a9
lea rcx, [rbx + 0x40]
mov edx, 2
call fcn.140035f20
mov rcx, rbx
call fcn.140035fb0
jmp 0x14003171b
cmp ecx, 0x24
jne 0x1400316c6
lea rcx, [rbx + 0x40]
mov edx, 3
call fcn.140035f20
mov rcx, rbx
call fcn.140035fb0
jmp 0x14003171b
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x140031753
cmp ecx, 0x3f
je 0x140031753
cmp ecx, 0x7b
je 0x140031753
cmp ecx, 0x7d
jne 0x1400316ed
test dword [rbx + 0x80], 0x10000000
je 0x14003173d
cmp ecx, 0x5d
jne 0x1400316fe
test dword [rbx + 0x80], 0x10000000
je 0x140031748
movzx edx, byte [rbx + 0x78]
lea rcx, [rbx + 0x40]
call fcn.1400309d0
mov rcx, rbx
call fcn.140035fb0
mov rcx, rbx
call fcn.1400360a0
cmp dword [rbx + 0x7c], 0xffffffff
mov al, 1
jne 0x1400314e0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ecx, 5
call fcn.140044f4c
int3
mov ecx, 6
call fcn.140044f4c
int3
mov ecx, 4
call fcn.140044f4c
int3
mov ecx, 0xa
call fcn.140044f4c
int3
Function at 0x140034410
Capabilities:
Enumerate gui resources

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x28], 0
lea rcx, [0x1400406f0]
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rsp + 0x28]
test rax, rax
jne 0x140034453
mov eax, 5
add rsp, 0x30
pop rbx
ret
mov qword [rbx + 0xe8], rax
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x1400381c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1400381f4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1400381e0
ret

Function at 0x1400398b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor r14d, r14d
mov rbx, rdx
mov rdi, rcx
mov dword [rsp + 0x58], r14d
mov rcx, qword [rcx]
xor r8d, r8d
xor edx, edx
lea r9d, [r14 + 2]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r9d, dword [rbx + 0x10]
lea rsi, [rbx + 0x10]
mov rcx, qword [rdi]
mov edx, eax
xor r8d, r8d
mov dword [rsp + 0x20], r14d
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_LockFile]
cmp qword [rbx + 0x18], 0x10
jb 0x140039909
mov rbx, qword [rbx]
mov r8d, dword [rsi]
lea r9, [rsp + 0x58]
mov rcx, qword [rdi]
mov rdx, rbx
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r9d, dword [rsi]
xor r8d, r8d
mov rcx, qword [rdi]
mov edx, ebp
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_UnlockFile]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14003aed0
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
mov r11, rsp
push rbx
push r12
push r15
sub rsp, 0xb0
mov rax, qword [0x1400c80c0]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor ebx, ebx
mov r12, r8
mov r15, rdx
test rcx, rcx
je 0x14003b137
test rdx, rdx
je 0x14003b137
mov qword [r11 - 0x68], 7
mov qword [r11 - 0x70], rbx
mov qword [r11 - 0x48], 0xf
mov qword [r11 - 0x50], rbx
mov word [rsp + 0x48], bx
mov byte [rsp + 0x68], bl
cmp byte [rcx], bl
jne 0x14003af35
mov r8d, ebx
jmp 0x14003af49
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rcx + r8], bl
jne 0x14003af40
mov rdx, rcx
lea rcx, [rsp + 0x68]
call fcn.140020170
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x68]
call fcn.1400394d0
mov rax, qword [rsp + 0x80]
cmp rax, 0x10
jb 0x14003afb8
mov rcx, qword [rsp + 0x68]
inc rax
cmp rax, 0x1000
jb 0x14003afb3
test cl, 0x1f
jne 0x14003b156
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14003b15c
sub rcx, rax
cmp rcx, 8
jb 0x14003b162
cmp rcx, 0x27
ja 0x14003b168
mov rcx, rax
call fcn.14006b5d0
cmp qword [rsp + 0x60], 8
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rbx
mov edx, 0x80000000
cmovae rcx, qword [rsp + 0x48]
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0xa8], rbp
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14003b0e5
mov qword [rsp + 0xa0], rsi
xor edx, edx
mov qword [rsp + 0x98], rdi
mov rcx, rax
mov qword [rsp + 0x90], r14
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test eax, eax
je 0x14003b0b8
mov ecx, esi
call fcn.14006b2ec
mov rdi, rax
test rax, rax
je 0x14003b0b1
mov r8d, esi
xor edx, edx
mov rcx, rax
call fcn.140097f40
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
mov r8d, esi
mov qword [rsp + 0x20], rbx
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003b08a
cmp esi, dword [rsp + 0x40]
jne 0x14003b08a
mov r8, r12
mov edx, esi
mov rcx, rdi
call r15
mov rcx, rdi
call fcn.14006ab90
jmp 0x14003b0c2
lea r8, [0x1400a1f40]
mov edx, 0x129
lea rcx, [0x1400a1f10]
call fcn.14003a8e0
mov rcx, rdi
mov ebx, 5
call fcn.14006ab90
jmp 0x14003b0c2
mov ebx, reloc.WS2_32.dll_listen
jmp 0x14003b0c2
mov r8, r12
xor edx, edx
xor ecx, ecx
call r15
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0xa0]
jmp 0x14003b112
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14003b0f5
lea ebx, [rax + 0xd]
jmp 0x14003b112
lea r8, [0x1400a1f50]
mov edx, 0x13e
lea rcx, [0x1400a1f10]
call fcn.14003a8e0
mov ebx, send
mov r8, qword [rsp + 0x60]
mov rbp, qword [rsp + 0xa8]
cmp r8, 8
jb 0x14003b137
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
inc r8
call fcn.140021e40
mov eax, ebx
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14006ab70
add rsp, 0xb0
pop r15
pop r12
pop rbx
ret
call fcn.140070d64
int3
call fcn.140070d64
int3
call fcn.140070d64
int3
call fcn.140070d64
int3
Function at 0x14003b170
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x1400c80c0]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor ebx, ebx
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x14003b319
xor edx, edx
lea rcx, [rbp - 0x70]
mov r8d, 0x20a
call fcn.140097f40
lea rax, [rbp - 0x70]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [rbx + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x14003b2fa
lea rax, [rbp - 0x70]
mov qword [rbp - 0x78], 7
mov r8d, ebx
mov qword [rbp - 0x80], rbx
mov word [rsp + 0x70], bx
cmp word [rbp - 0x70], bx
je 0x14003b20c
nop word [rax + rax]
inc r8
lea rax, [rax + 2]
cmp word [rax], bx
jne 0x14003b200
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.140037ed0
or r9, 0xffffffffffffffff
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
xor r8d, r8d
mov qword [rsp + 0x60], rbx
lea rdx, [rsp + 0x70]
mov byte [rsp + 0x50], bl
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
call fcn.140037d80
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.14002d0c0
cmp qword [rsp + 0x68], 0x10
lea rcx, [rsp + 0x50]
mov rdx, rsi
cmovae rcx, qword [rsp + 0x50]
call rdi
mov rax, qword [rsp + 0x68]
cmp rax, 0x10
jb 0x14003b2ca
mov rcx, qword [rsp + 0x50]
inc rax
cmp rax, 0x1000
jb 0x14003b2c5
test cl, 0x1f
jne 0x14003b342
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14003b348
sub rcx, rax
cmp rcx, 8
jb 0x14003b34e
cmp rcx, 0x27
ja 0x14003b354
mov rcx, rax
call fcn.14006b5d0
mov r8, qword [rbp - 0x78]
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x60], rbx
mov byte [rsp + 0x50], bl
cmp r8, 8
jb 0x14003b31e
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x70]
inc r8
call fcn.140021e40
jmp 0x14003b31e
lea r8, [0x1400a1f60]
mov edx, 0x2d3
lea rcx, [0x1400a1f10]
call fcn.14003a8e0
mov ebx, send
jmp 0x14003b31e
mov ebx, 4
mov eax, ebx
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14006ab70
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x2b0
pop rdi
pop rsi
pop rbp
ret
call fcn.140070d64
int3
call fcn.140070d64
int3
call fcn.140070d64
int3
call fcn.140070d64
int3
Function at 0x140040230
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1400c80c0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rdx
mov r8d, ecx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x14004028f
lea r9, [rsp + 0x20]
mov r8d, 8
lea rdx, [rsp + 0x28]
mov rcx, rax
call sub.KERNEL32.dll_K32EnumProcessModules
mov rcx, rsi
test eax, eax
jne 0x140040296
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x14004035b
mov rdx, qword [rsp + 0x28]
lea r8, [rsp + 0x30]
mov r9d, 0x104
mov qword [rsp + 0x268], rbx
call sub.KERNEL32.dll_K32GetModuleBaseNameW
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
mov rbx, qword [rsp + 0x268]
je 0x14004028f
or r10, 0xffffffffffffffff
cmp word [rsp + 0x30], 0
jne 0x1400402da
xor ecx, ecx
jmp 0x1400402ec
lea rax, [rsp + 0x30]
mov rcx, r10
inc rcx
cmp word [rax + rcx*2], 0
jne 0x1400402e2
cmp qword [rdi + 0x18], 8
lea r9, [rdi + 0x10]
jb 0x1400402fa
mov rdi, qword [rdi]
mov r9, qword [r9]
mov r8, rcx
cmp r9, rcx
cmovb r8, r9
test r8, r8
je 0x140040327
lea rdx, [rsp + 0x30]
movzx eax, word [rdx]
cmp word [rdi], ax
jne 0x140040339
add rdi, 2
add rdx, 2
sub r8, 1
jne 0x140040311
xor r8d, r8d
test r8d, r8d
jne 0x140040358
cmp r9, rcx
jae 0x14004034b
mov r8d, r10d
jmp 0x140040355
movzx eax, word [rdx]
mov r8d, 1
cmp word [rdi], ax
cmovb r8d, r10d
jmp 0x14004032a
xor r8d, r8d
cmp r9, rcx
seta r8b
test r8d, r8d
sete al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14006ab70
mov rsi, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
Function at 0x140040380
Capabilities:
Enumerate process modules

Disassembly:
push rbp
lea rbp, [rsp - 0xf80]
mov eax, 0x1080
call fcn.14006b6f0
sub rsp, rax
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x1098], rbx
mov qword [rsp + 0x10a0], rsi
mov qword [rsp + 0x10a8], rdi
mov rax, qword [0x1400c80c0]
xor rax, rsp
mov qword [rbp + 0xf70], rax
mov rbx, rcx
lea r8, [rsp + 0x24]
mov edx, 0x1000
lea rcx, [rsp + 0x70]
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
je 0x14004057c
mov qword [rsp + 0x48], 7
xor edi, edi
mov qword [rsp + 0x40], rdi
mov word [rsp + 0x30], di
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400394d0
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
lea rbx, [rdx + rax*2]
lea rsi, [rsp + 0x30]
cmovae rsi, qword [rsp + 0x30]
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rdi
mov word [rsp + 0x50], di
mov rdx, rbx
sub rdx, rsi
sar rdx, 1
lea rcx, [rsp + 0x50]
call fcn.140040630
movzx r9d, byte [rsp + 0x20]
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140040120
mov ebx, dword [rsp + 0x24]
shr rbx, 2
test rbx, rbx
je 0x14004049c
mov ecx, dword [rsp + rdi*4 + 0x70]
test ecx, ecx
je 0x14004048e
lea rdx, [rsp + 0x50]
call fcn.140040230
test al, al
jne 0x140040498
inc rdi
cmp rdi, rbx
jae 0x14004049c
jmp 0x140040478
mov bl, 1
jmp 0x14004049e
xor bl, bl
movabs rdi, 0x7fffffffffffffff
mov rax, qword [rsp + 0x68]
cmp rax, 8
jb 0x140040511
inc rax
mov rcx, qword [rsp + 0x50]
cmp rax, rdi
jbe 0x1400404c6
call fcn.140070d64
int3
add rax, rax
cmp rax, 0x1000
jb 0x14004050b
test byte [rsp + 0x50], 0x1f
je 0x1400404de
call fcn.140070d64
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400404ed
call fcn.140070d64
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400404fc
call fcn.140070d64
int3
cmp rcx, 0x27
jbe 0x140040508
call fcn.140070d64
int3
mov rcx, rax
call fcn.14006b5d0
nop
mov rax, qword [rsp + 0x48]
cmp rax, 8
jb 0x140040579
inc rax
mov rcx, qword [rsp + 0x30]
cmp rax, rdi
jbe 0x14004052f
call fcn.140070d64
int3
add rax, rax
cmp rax, 0x1000
jb 0x140040574
test byte [rsp + 0x30], 0x1f
je 0x140040547
call fcn.140070d64
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140040556
call fcn.140070d64
int3
sub rcx, rax
cmp rcx, 8
jae 0x140040565
call fcn.140070d64
int3
cmp rcx, 0x27
jbe 0x140040571
call fcn.140070d64
int3
mov rcx, rax
call fcn.14006b5d0
movzx eax, bl
mov rcx, qword [rbp + 0xf70]
xor rcx, rsp
call fcn.14006ab70
lea r11, [rsp + 0x1080]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x140040a20
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1400c80c0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140040a7a
lea rdx, [0x1400cd891]
lea rcx, [0x1400cd890]
call fcn.140040ac0
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14006ab70
add rsp, 0x1d8
ret
mov eax, 8
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14006ab70
add rsp, 0x1d8
ret
Function at 0x140040c60
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x20
lea rax, vtable.DeNAInternal::TCPClientImpl.0
mov rbx, rcx
mov qword [rcx], rax
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x140040cb6
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], 1
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rbx + 8]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx + 8], 0xffffffffffffffff
lea rax, vtable.DeNAInternal::TCPImpl.0
mov qword [rbx], rax
add rsp, 0x20
pop rbx
ret
Function at 0x140040cd0
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x1400c80c0]
xor rax, rsp
mov qword [rsp + 0x90], rax
xor eax, eax
mov qword [r11 - 0x70], 0
mov qword [r11 - 0x68], rax
lea rcx, [r11 - 0x38]
mov qword [r11 - 0x60], rax
mov esi, edx
mov qword [r11 - 0x58], rax
mov rbx, r8
mov qword [r11 - 0x50], rax
or rdi, 0xffffffffffffffff
mov qword [r11 - 0x48], rax
mov qword [r11 - 0x40], rax
mov dword [rsp + 0x44], edx
movzx edx, r9w
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x4c], 6
mov dword [rsp + 0x40], 5
call fcn.14003ad80
cmp qword [rsp + 0x88], 0x10
lea rdx, [rsp + 0x70]
lea r9, [rsp + 0x38]
mov rcx, rbx
cmovae rdx, qword [rsp + 0x70]
lea r8, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x140040e52
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x140040e52
mov ecx, dword [rbx + 4]
cmp ecx, esi
jne 0x140040dbd
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140040dbd
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 0x140040dcb
or rdi, 0xffffffffffffffff
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140040d86
jmp 0x140040e52
mov eax, dword [rsp + 0xd0]
test eax, eax
jle 0x140040e52
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], eax
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1006
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x140040e16
lea r8, str.setsockopt_SO_RCVTIMEO_
lea edx, [rax + 0x34]
lea rcx, str...platformwinipc_srcDeNATCPClientImpl.cpp
call fcn.14003a8e0
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1005
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x140040e52
lea r8, str.setsockopt_SO_SNDTIMEO_
lea edx, [rax + 0x38]
lea rcx, str...platformwinipc_srcDeNATCPClientImpl.cpp
call fcn.14003a8e0
mov rax, qword [rsp + 0x88]
cmp rax, 0x10
jb 0x140040e95
mov rcx, qword [rsp + 0x70]
inc rax
cmp rax, 0x1000
jb 0x140040e90
test cl, 0x1f
jne 0x140040ebd
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x140040ec3
sub rcx, rax
cmp rcx, 8
jb 0x140040ec9
cmp rcx, 0x27
ja 0x140040ecf
mov rcx, rax
call fcn.14006b5d0
mov rax, rdi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14006ab70
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140070d64
int3
call fcn.140070d64
int3
call fcn.140070d64
int3
call fcn.140070d64
int3

Function at 0x140040f50
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [rcx + 8]
lea r8, [rsp + 0x30]
mov rbx, rdx
mov dword [rsp + 0x30], 0
mov edx, 0x4004667f
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x140040f86
mov ecx, dword [rsp + 0x30]
mov qword [rbx], rcx
add rsp, 0x20
pop rbx
ret
mov eax, send
add rsp, 0x20
pop rbx
ret
Function at 0x140040fb0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x1400c80c0]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rbx, r8
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov rsi, rdx
lea r8, [rsp + 0x20]
mov rdi, rcx
lea rdx, [rsp + 0x28]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140041015
cmp word [rsp + 0x28], 2
jne 0x140041015
cmp dword [rsp + 0x20], 0x10
jne 0x140041015
movzx ecx, word [rsp + 0x2a]
call qword [sym.imp.WS2_32.dll_ntohs]
mov rcx, qword [rdi + 8]
lea r8, [rsp + 0x24]
xor eax, eax
mov dword [rsp + 0x24], 0x80
lea rdx, [rsp + 0x40]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
mov byte [rbp], al
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
jne 0x140041141
movzx eax, word [rsp + 0x40]
cmp ax, 2
jne 0x1400410d0
movzx ecx, word [rsp + 0x42]
call qword [sym.imp.WS2_32.dll_ntohs]
mov r9d, 0x41
lea r8, [rbp - 0x40]
lea rdx, [rsp + 0x44]
mov word [rbx], ax
lea ecx, [r9 - 0x3f]
call sub.WS2_32.dll_inet_ntop
cmp byte [rbp - 0x40], 0
jne 0x1400410ab
xor r8d, r8d
lea rdx, [rbp - 0x40]
mov rcx, rsi
call fcn.140020170
xor eax, eax
jmp 0x140041146
lea rcx, [rbp - 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rcx + r8], 0
jne 0x1400410b3
lea rdx, [rbp - 0x40]
mov rcx, rsi
call fcn.140020170
xor eax, eax
jmp 0x140041146
cmp ax, 0x17
jne 0x14004113a
movzx ecx, word [rsp + 0x42]
call qword [sym.imp.WS2_32.dll_ntohs]
mov r9d, 0x41
lea r8, [rbp - 0x40]
lea rdx, [rsp + 0x48]
mov word [rbx], ax
lea ecx, [r9 - 0x2a]
call sub.WS2_32.dll_inet_ntop
cmp byte [rbp - 0x40], 0
jne 0x140041115
xor r8d, r8d
lea rdx, [rbp - 0x40]
mov rcx, rsi
call fcn.140020170
xor eax, eax
jmp 0x140041146
lea rax, [rbp - 0x40]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140041120
lea rdx, [rbp - 0x40]
mov rcx, rsi
call fcn.140020170
xor eax, eax
jmp 0x140041146
mov eax, 5
jmp 0x140041146
mov eax, send
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.14006ab70
mov rbx, qword [rsp + 0x158]
add rsp, 0x120
pop rdi
pop rsi
pop rbp
ret