joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400025b0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14001d3b0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400025d0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400025d8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400025d0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002620
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002617
test rcx, rcx
je 0x1400025d0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002608
xor eax, eax
ret

Function at 0x140002630
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x14001d3b0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002722
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002730
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002722
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002722
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002722
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002785
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002798
add rdx, 0x28
cmp rdx, r10
jne 0x140002770
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400027a7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400027b7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000278e
test ecx, ecx
jg 0x1400027a0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14000d2ac
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x140f873e0]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x14000e230
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x14000e2f6
lea rcx, [0x140f88580]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140f883d0]
jmp 0x14000e2ba
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14000e2b7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x140f883d0]
mov rdx, rsi
call fcn.140016964
jmp 0x14000e2ba
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000e287
mov rdx, qword [0x140f873b8]
lea rcx, [0x140f883d0]
mov rdi, rdx
inc rdx
mov qword [0x140f873b8], rdx
lea edx, [rbx + 0x20]
call fcn.1400169ac
lea rcx, [0x140f88580]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x14000e394
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [0x140f885d0]
call fcn.140015fc8
xor ebx, ebx
or esi, 0xffffffff
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dl, byte [rax]
test dl, dl
je 0x14000e45a
mov rcx, qword [rsp + 0x30]
mov r10b, 0x20
lea r9d, [rbx + 1]
cmp dl, r10b
jne 0x14000e3e8
add rax, r9
cmp byte [rax], r10b
je 0x14000e3e0
mov dl, byte [rax]
mov r8d, r9d
cmp dl, 0x22
jne 0x14000e41e
add rax, r9
mov rbx, rax
mov cl, byte [rax]
test cl, cl
je 0x14000e419
cmp cl, 0x22
je 0x14000e40c
add rax, r9
mov cl, byte [rax]
test cl, cl
jne 0x14000e3fe
cmp byte [rax], 0
je 0x14000e419
mov rcx, rax
add rax, r9
jmp 0x14000e440
mov rcx, rax
jmp 0x14000e440
test dl, dl
je 0x14000e43d
mov rbx, rax
cmp dl, r10b
je 0x14000e433
add rax, r9
mov dl, byte [rax]
test dl, dl
jne 0x14000e425
cmp byte [rax], 0
mov rcx, rax
je 0x14000e440
jmp 0x14000e414
xor r8d, r8d
cmp dword [rbp], esi
jne 0x14000e44a
test rdi, rdi
jne 0x14000e464
test r8d, r8d
je 0x14000e452
add esi, r9d
mov dl, byte [rax]
xor ebx, ebx
test dl, dl
jne 0x14000e3db
test rdi, rdi
jne 0x14000e476
movsxd rax, esi
jmp 0x14000e479
test rbx, rbx
je 0x14000e476
sub ecx, ebx
mov rax, rbx
mov dword [rdi], ecx
add dword [rbp], r9d
jmp 0x14000e479
and dword [rdi], 0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14000e554
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x140f885d0]
call fcn.140015fc8
xor ecx, ecx
add rsp, 0x28
jmp fcn.14000e394
Function at 0x14000eca4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
test r8d, r8d
jle 0x14000ed0b
mov rcx, qword [rbp + 0x18]
and dword [rsp + 0x50], 0
and qword [rsp + 0x20], 0
mov r8d, edi
movsxd rdx, ebx
lea r9, [rsp + 0x50]
sub r8d, ebx
add rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000ecfd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x14000ed07
add ebx, dword [rsp + 0x50]
cmp ebx, edi
jge 0x14000ed0b
jmp 0x14000ecc8
add ebx, dword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14000ed58
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x48
xor eax, eax
mov r14, rcx
mov ecx, 0x1000
mov r13d, r8d
mov edi, edx
mov esi, ecx
mov r12d, eax
mov r15d, eax
cmp edx, 0x18
je 0x14000ee6c
cmp edx, 0x19
je 0x14000ee6c
mov rcx, qword [0x140f8825c]
xor edx, edx
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea r9, [rbp - 0x14]
lea r8d, [r15 + 2]
lea rdx, [rbp - 0x18]
xor edi, edi
mov rcx, r14
mov rbx, rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000ee55
mov r15, qword [rbp + 0x48]
xor r13d, r13d
mov r14d, esi
cmp dword [rbp - 0x14], 2
jne 0x14000ee4f
test esi, esi
jne 0x14000ee0f
mov rcx, qword [0x140f8825c]
movsxd r9, r14d
lea edx, [rsi + 8]
add r9, r9
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, 0x1000
mov rbx, rax
movzx eax, word [rbp - 0x18]
cmp ax, 0xa
je 0x14000ee4f
cmp ax, 0xd
je 0x14000ee2f
mov word [rdi + rbx], ax
inc r12d
inc r14d
add rdi, 2
dec esi
lea r9, [rbp - 0x14]
lea rdx, [rbp - 0x18]
mov r8d, 2
mov rcx, r15
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000ede4
mov r13d, dword [rbp + 0x58]
xor edi, edi
movsxd rax, r12d
mov edx, r13d
mov rcx, rbx
mov word [rbx + rax*2], di
call fcn.140019120
jmp 0x14000ef31
mov r8, rcx
mov rcx, qword [0x140f8825c]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
and qword [rsp + 0x20], r12
lea r9, [rbp - 0x14]
lea rdx, [rbp + 0x60]
mov r8d, 1
mov rcx, r14
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000ef13
mov r13, qword [rbp + 0x48]
mov r14d, esi
xor edi, edi
cmp dword [rbp - 0x14], 1
jne 0x14000ef0c
test esi, esi
jne 0x14000eed2
mov rcx, qword [0x140f8825c]
lea edx, [rsi + 8]
movsxd r9, r14d
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, 0x1000
mov rbx, rax
mov al, byte [rbp + 0x60]
cmp al, 0xa
je 0x14000ef0c
cmp al, 0xd
je 0x14000eeec
mov byte [r15 + rbx], al
inc r12d
inc r14d
inc r15
dec esi
lea r9, [rbp - 0x14]
lea rdx, [rbp + 0x60]
mov r8d, 1
mov rcx, r13
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000eeaa
mov edi, dword [rbp + 0x50]
mov r13d, dword [rbp + 0x58]
movsxd rax, r12d
mov edx, r13d
mov rcx, rbx
mov byte [rax + rbx], 0
cmp edi, 0x18
jne 0x14000ef2c
call fcn.140019230
jmp 0x14000ef31
call fcn.1400193c0
mov rcx, qword [0x140f8825c]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000f630
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140f883f4], 0
jne 0x14000f655
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140f883f4], 1
mov dword [0x140f883f0], eax
mov rcx, qword [0x140f8825c]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140f883f0]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, eax
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp 0x14000f8e0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140f883f4], 0
mov ebx, ecx
jne 0x14000f8ff
call fcn.14000f630
mov ecx, dword [0x140f883f0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x14000f927
call fcn.14000f630
mov ecx, dword [0x140f883f0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
lea rcx, [rdi + 8]
mov edx, 0x11
imul ebx, ebx, 0x53a9b4fb
mov eax, 1
add rcx, 4
sub eax, ebx
mov ebx, 1
mov dword [rcx + 0x40], eax
imul eax, eax, 0x53a9b4fb
sub ebx, eax
dec rdx
mov dword [rcx - 4], ebx
jne 0x14000f930
mov dword [rdi], edx
mov dword [rdi + 4], 0xa
lea ebx, [rdx + 0x1f]
lea esi, [rdx + 0x10]
nop dword [rax + rax]
movsxd r10, dword [rdi]
movsxd r11, dword [rdi + 4]
mov r8d, dword [rdi + r11*4 + 8]
mov ecx, dword [rdi + r10*4 + 0x4c]
mov edx, dword [rdi + r10*4 + 8]
ror ecx, 0xd
add ecx, dword [rdi + r11*4 + 0x4c]
ror edx, 5
add edx, r8d
mov dword [rdi + r10*4 + 8], ecx
mov dword [rdi + r10*4 + 0x4c], edx
dec r10d
cmovs r10d, esi
dec r11d
cmovs r11d, esi
dec rbx
mov dword [rdi], r10d
mov dword [rdi + 4], r11d
jne 0x14000f970
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000f6a0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140f883f4], 0
mov rbx, rcx
jne 0x14000f6b7
call fcn.14000f630
mov ecx, dword [0x140f883f0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r11, rax
test rax, rax
jne 0x14000f6df
call fcn.14000f630
mov ecx, dword [0x140f883f0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r11, rax
movsxd r8, dword [r11]
movsxd rdx, dword [r11 + 4]
mov eax, 0x10
mov r9d, dword [r11 + r8*4 + 0x4c]
mov r10d, dword [r11 + r8*4 + 8]
ror r9d, 0xd
add r9d, dword [r11 + rdx*4 + 0x4c]
ror r10d, 5
add r10d, dword [r11 + rdx*4 + 8]
mov dword [r11 + r8*4 + 8], r9d
mov dword [r11 + r8*4 + 0x4c], r10d
dec r8d
mov ecx, r10d
cmovs r8d, eax
dec edx
cmovs edx, eax
inc rbx
mov dword [r11], r8d
mov dword [r11 + 4], edx
je 0x14000f758
mov edx, r9d
mov r8, rbx
mov eax, ebx
shr r8, 0x20
imul rax, rdx
shr rax, 0x20
imul rcx, r8
imul rdx, r8
shr rcx, 0x20
add rax, rcx
add rax, rdx
add rsp, 0x20
pop rbx
ret
mov eax, r9d
shl rax, 0x20
and rax, rcx
add rsp, 0x20
pop rbx
ret
Function at 0x14000f8e0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140f883f4], 0
jne 0x14000f655
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140f883f4], 1
mov dword [0x140f883f0], eax
mov rcx, qword [0x140f8825c]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140f883f0]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, eax
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp 0x14000f8e0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140f883f4], 0
mov ebx, ecx
jne 0x14000f8ff
call fcn.14000f630
mov ecx, dword [0x140f883f0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x14000f927
call fcn.14000f630
mov ecx, dword [0x140f883f0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
lea rcx, [rdi + 8]
mov edx, 0x11
imul ebx, ebx, 0x53a9b4fb
mov eax, 1
add rcx, 4
sub eax, ebx
mov ebx, 1
mov dword [rcx + 0x40], eax
imul eax, eax, 0x53a9b4fb
sub ebx, eax
dec rdx
mov dword [rcx - 4], ebx
jne 0x14000f930
mov dword [rdi], edx
mov dword [rdi + 4], 0xa
lea ebx, [rdx + 0x1f]
lea esi, [rdx + 0x10]
nop dword [rax + rax]
movsxd r10, dword [rdi]
movsxd r11, dword [rdi + 4]
mov r8d, dword [rdi + r11*4 + 8]
mov ecx, dword [rdi + r10*4 + 0x4c]
mov edx, dword [rdi + r10*4 + 8]
ror ecx, 0xd
add ecx, dword [rdi + r11*4 + 0x4c]
ror edx, 5
add edx, r8d
mov dword [rdi + r10*4 + 8], ecx
mov dword [rdi + r10*4 + 0x4c], edx
dec r10d
cmovs r10d, esi
dec r11d
cmovs r11d, esi
dec rbx
mov dword [rdi], r10d
mov dword [rdi + 4], r11d
jne 0x14000f970
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000fef0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [rcx], 1
jne 0x14000ff03
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x14000ff03
jmp 0x140018220
mov ecx, edx
jmp fcn.1400181e0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x40], 0
je 0x140018266
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_strlen
mov dword [rsp + 0x28], eax
mov edx, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x28]
call fcn.140017da0
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_strcpy
jmp 0x14001826f
mov ecx, dword [rsp + 0x48]
call fcn.1400181e0
add rsp, 0x38
ret
Function at 0x140011330
Capabilities:
Get thread local storage value

Disassembly:
push r12
push r13
push r15
sub rsp, 0x30
xor r12d, r12d
mov r15d, r9d
mov r13d, edx
cmp edx, 1
jl 0x140011473
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
test rcx, rcx
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r14
lea r14, [0x14001c07e]
mov esi, r12d
mov rbx, r14
cmovne rbx, rcx
test r8, r8
cmovne r14, r8
mov rbp, rbx
movzx ecx, byte [r14]
test cl, cl
je 0x1400113e0
cmp byte [r14 + 1], sil
je 0x1400113e0
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r14
repne scasb al, byte [rdi]
not rcx
dec rcx
movsxd rdi, ecx
nop word [rax + rax]
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call sub.msvcrt.dll_strncmp
test eax, eax
je 0x1400113cc
cmp byte [rbx], r12b
je 0x1400113cc
inc rbx
jmp 0x1400113b0
inc esi
cmp esi, r13d
je 0x1400113fe
cmp byte [rbx], r12b
je 0x140011404
add rbx, rdi
mov rbp, rbx
jmp 0x1400113b0
movzx eax, byte [rbx]
cmp al, cl
je 0x1400113eb
test al, al
jne 0x1400113f9
inc esi
cmp esi, edx
je 0x1400113fe
test al, al
je 0x140011404
lea rbp, [rbx + 1]
inc rbx
jmp 0x1400113e0
mov r12d, ebx
sub r12d, ebp
mov rcx, rbx
call fcn.1400182b0
mov r14, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x60]
mov ebx, eax
test eax, eax
je 0x140011432
mov ecx, r15d
call fcn.140018280
movsxd r8, r12d
mov rdx, rbp
mov rcx, rax
call sub.msvcrt.dll_memmove
mov edx, r15d
mov ecx, r12d
call fcn.140017da0
test ebx, ebx
mov rbx, qword [rsp + 0x50]
mov rdi, rax
jne 0x140011457
movsxd r8, r12d
mov rdx, rbp
mov rcx, rax
call sub.msvcrt.dll_strncpy
mov rbp, qword [rsp + 0x58]
movsxd rcx, r12d
mov byte [rcx + rdi], 0
mov rdi, qword [rsp + 0x28]
add rsp, 0x30
pop r15
pop r13
pop r12
ret
mov ecx, r9d
add rsp, 0x30
pop r15
pop r13
pop r12
jmp fcn.1400181e0

Function at 0x1400115a0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov esi, 0x40
mov ecx, esi
call fcn.140017da0
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.140011510
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
dec rcx
sub esi, ecx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400181a0
Function at 0x14001409c
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
xor ebx, ebx
mov edi, 1
cmp dword [0x140f88428], ebx
jne 0x1400140d7
lea r8, [0x140013fb0]
lea edx, [rdi + 0xf]
lea ecx, [rdi + 0x37]
mov dword [0x140f88428], edi
call fcn.140015eec
mov qword [0x140f88400], rax
cmp word [0x140f8840c], bx
jne 0x140014190
lea rdx, [rsp + 0x20]
mov ecx, 0x101
call qword [sym.imp.WSOCK32.DLL_WSAStartup]
mov word [0x140f8840c], di
test eax, eax
je 0x140014106
mov word [0x140f8840c], bx
lea rcx, str.ws2_32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x140f883f8], rax
test rax, rax
je 0x140014190
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140f883f8]
lea rdx, str.freeaddrinfo
mov qword [0x140f88410], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140f883f8]
lea rdx, str.getnameinfo
mov qword [0x140f88418], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x140f88410], rbx
mov qword [0x140f88420], rax
je 0x140014190
cmp qword [0x140f88418], rbx
je 0x140014190
mov ecx, dword [0x140f88408]
test rax, rax
cmovne ecx, edi
mov dword [0x140f88408], ecx
movsx rax, word [0x140f8840c]
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret

Function at 0x1400141ac
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov ebx, 0x400
xor edi, edi
mov ecx, ebx
call fcn.140017da0
mov edx, ebx
mov rcx, rax
mov rsi, rax
call qword [sym.imp.WSOCK32.DLL_gethostname]
test eax, eax
jne 0x1400141e8
mov rcx, rsi
call sub.msvcrt.dll_strlen
mov rdi, rax
sub ebx, edi
mov ecx, ebx
call fcn.1400181a0
mov rbx, qword [rsp + 0x30]
movsxd r11, edi
mov byte [r11 + rsi], 0
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400146b8
Capabilities:
Get socket status
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x950]
sub rsp, 0xa50
xor ebx, ebx
cmp dword [rcx], 1
mov rdi, rcx
jne 0x140014762
movsxd rcx, dword [rcx + 8]
lea rax, [rbp + 0x980]
lea rdx, [rsp + 0x40]
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor r9d, r9d
xor r8d, r8d
inc ecx
mov dword [rsp + 0x40], 1
mov qword [rbp + 0x980], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WSOCK32.DLL_select]
test eax, eax
js 0x14001475b
je 0x1400147e1
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.WSOCK32.DLL___WSAFDIsSet
test eax, eax
je 0x1400147e1
lea r8, [rbp + 0x970]
mov edx, 0x4004667f
mov rcx, rdi
call qword [sym.imp.WSOCK32.DLL_ioctlsocket]
test eax, eax
jne 0x14001475b
cmp dword [rbp + 0x970], ebx
je 0x14001475b
lea ebx, [rax + 2]
jmp 0x1400147e1
mov ebx, 4
jmp 0x1400147e1
mov rcx, qword [rcx + 0x18]
lea rax, [rbp + 0x978]
lea rdx, [rbp + 0x150]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r9d, r9d
mov r8d, 0x800
mov dword [rbp + 0x978], 0x10
mov qword [rsp + 0x20], rax
call qword [sym.imp.WSOCK32.DLL_recvfrom]
mov dword [rbp + 0x970], eax
test eax, eax
jle 0x1400147e1
mov rcx, qword [0x140f8825c]
movsxd r8, eax
xor edx, edx
mov ebx, 2
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
movsxd rcx, dword [rbp + 0x970]
mov dword [rdi + 0x28], ecx
mov r8, rcx
lea rdx, [rbp + 0x150]
mov rcx, rax
mov qword [rdi + 0x20], rax
mov qword [rdi + 0x30], rax
call sub.msvcrt.dll_memcpy
movsxd rax, ebx
add rsp, 0xa50
pop rdi
pop rbx
pop rbp
ret

Function at 0x1400147f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
cmp dword [rcx], 1
mov rax, rdx
mov rdi, rcx
jne 0x14001481d
mov rcx, qword [rcx + 8]
xor r9d, r9d
call qword [sym.imp.WSOCK32.DLL_recv]
mov esi, eax
jmp 0x140014865
cmp qword [rcx + 0x20], rsi
je 0x140014865
cmp r8d, dword [rcx + 0x28]
mov rdx, qword [rcx + 0x30]
mov esi, r8d
cmovg esi, dword [rcx + 0x28]
mov rcx, rax
movsxd rbx, esi
mov r8, rbx
call sub.msvcrt.dll_memcpy
sub dword [rdi + 0x28], esi
add qword [rdi + 0x30], rbx
cmp dword [rdi + 0x28], 0
jne 0x140014865
mov r8, qword [rdi + 0x20]
mov rcx, qword [0x140f8825c]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rdi + 0x20], 0
mov rbx, qword [rsp + 0x30]
movsxd rax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140014998
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
cmp dword [rcx], 1
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
jne 0x1400149c4
mov rcx, qword [rcx + 8]
xor r9d, r9d
call qword [sym.imp.WSOCK32.DLL_send]
jmp 0x140014a17
mov eax, 2
mov word [rsp + 0x30], ax
mov eax, dword [rcx + 4]
movzx ecx, word [rcx + 8]
mov dword [rsp + 0x34], eax
call qword [sym.imp.WSOCK32.DLL_htons]
mov rcx, qword [rbx + 0x10]
mov word [rsp + 0x32], ax
test rcx, rcx
je 0x1400149f2
mov rcx, qword [rcx]
jmp 0x1400149f6
mov rcx, qword [rbx + 0x18]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov dword [rsp + 0x28], 0x10
mov qword [rsp + 0x20], rax
call qword [sym.imp.WSOCK32.DLL_sendto]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
cdqe
add rsp, 0x40
pop rdi
ret

Function at 0x140014ac8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov ebx, 0x104
mov ecx, ebx
call fcn.140017da0
mov ecx, ebx
mov rdx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rcx, str.Kernel32.DLL
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
test rax, rax
je 0x140014b3a
lea rdx, str.GetLongPathNameA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140014b31
mov r8d, ebx
mov rdx, rsi
mov rcx, rsi
call rax
mov edi, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
sub ebx, edi
mov ecx, ebx
call fcn.1400181a0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
movsxd r11, edi
mov byte [r11 + rsi], 0
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret