joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001850
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x1400a7c10], rbx
je 0x1400018b7
cmp rax, rbx
jne 0x1400018aa
mov edi, 1
mov esi, edi
jmp 0x1400018bc
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000188f
mov edi, 1
mov eax, dword [0x1400a7c18]
cmp eax, edi
jne 0x1400018d4
mov ebx, 0x1f
mov ecx, ebx
call fcn.14013c000
jmp 0x14000194a
mov eax, dword [0x1400a7c18]
test eax, eax
jne 0x14000193f
mov dword [0x1400a7c18], edi
lea r15, [0x140091498]
lea rbx, [0x140091480]
mov qword [rsp + 0x30], rbx
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rbx, r15
jae 0x140001931
test eax, eax
jne 0x140001935
cmp qword [rbx], r14
je 0x140001926
movabs r10, 0xd30527475e523070
mov rax, qword [rbx]
mov rcx, qword [0x1400913f0]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x1400018fe
test eax, eax
je 0x140001945
mov eax, 0xff
jmp 0x140001aab
mov dword [0x1400a6cd4], edi
mov ebx, 0x1f
mov eax, dword [0x1400a7c18]
cmp eax, edi
jne 0x140001971
lea rdx, [0x140091478]
lea rcx, [0x140091408]
call sub.msvcrt.dll__initterm
mov dword [0x1400a7c18], 2
test esi, esi
jne 0x14000197f
mov rax, r14
xchg qword [0x1400a7c10], rax
cmp qword [0x1400a7c30], r14
je 0x1400019bc
lea rcx, [0x1400a7c30]
call fcn.140002330
test eax, eax
je 0x1400019bc
movabs r10, 0x99012e4578d92870
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400a7c30]
mov r9, qword [0x1400913f0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x1400019d5
mov eax, 0xff
jmp 0x140001aab
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140001a5c
test ax, ax
je 0x1400019f0
test edx, edx
jne 0x140001a5c
sub ax, di
cmp ax, bx
ja 0x140001a06
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x1400019f0
test byte [rsp + 0x7c], dil
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140028e28
mov dword [0x1400a6cd0], eax
cmp dword [0x1400a6cf0], r14d
jne 0x140001a45
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400a6cd4], r14d
jne 0x140001a5a
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400a6cd0]
jmp 0x140001aab
cmp ax, 0x22
jne 0x140001a70
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400019de
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.1400023c4
add rsp, 0x28
jmp 0x140001850
Function at 0x14000cff8
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 [0x1402cff78]
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, [0x1402d1060]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1402d0ec8]
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, [0x1402d0ec8]
mov rdx, rsi
call fcn.140016c34
jmp 0x14000e2ba
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000e287
mov rdx, qword [0x1402cff58]
lea rcx, [0x1402d0ec8]
mov rdi, rdx
inc rdx
mov qword [0x1402cff58], rdx
lea edx, [rbx + 0x20]
call fcn.140016c7c
lea rcx, [0x1402d1060]
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 [0x1402d10b0]
call fcn.140016298
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 [0x1402d10b0]
call fcn.140016298
xor ecx, ecx
add rsp, 0x28
jmp fcn.14000e394
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 [0x1402d0d88]
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 [0x1402d0d88]
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.140018ea0
jmp 0x14000ef31
mov r8, rcx
mov rcx, qword [0x1402d0d88]
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 [0x1402d0d88]
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.140018fb0
jmp 0x14000ef31
call fcn.140019140
mov rcx, qword [0x1402d0d88]
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 [0x1402d0eec], 0
jne 0x14000f655
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1402d0eec], 1
mov dword [0x1402d0ee8], eax
mov rcx, qword [0x1402d0d88]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1402d0ee8]
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 [0x1402d0eec], 0
mov ebx, ecx
jne 0x14000f8ff
call fcn.14000f630
mov ecx, dword [0x1402d0ee8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x14000f927
call fcn.14000f630
mov ecx, dword [0x1402d0ee8]
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 [0x1402d0eec], 0
mov rbx, rcx
jne 0x14000f6b7
call fcn.14000f630
mov ecx, dword [0x1402d0ee8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r11, rax
test rax, rax
jne 0x14000f6df
call fcn.14000f630
mov ecx, dword [0x1402d0ee8]
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 [0x1402d0eec], 0
jne 0x14000f655
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1402d0eec], 1
mov dword [0x1402d0ee8], eax
mov rcx, qword [0x1402d0d88]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1402d0ee8]
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 [0x1402d0eec], 0
mov ebx, ecx
jne 0x14000f8ff
call fcn.14000f630
mov ecx, dword [0x1402d0ee8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x14000f927
call fcn.14000f630
mov ecx, dword [0x1402d0ee8]
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 0x140017fa0
mov ecx, edx
jmp fcn.140017f60
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x40], 0
je 0x140017fe6
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.140017b20
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_strcpy
jmp 0x140017fef
mov ecx, dword [rsp + 0x48]
call fcn.140017f60
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, [0x14001c056]
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.140018030
mov r14, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x60]
mov ebx, eax
test eax, eax
je 0x140011432
mov ecx, r15d
call fcn.140018000
movsxd r8, r12d
mov rdx, rbp
mov rcx, rax
call sub.msvcrt.dll_memmove
mov edx, r15d
mov ecx, r12d
call fcn.140017b20
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.140017f60

Function at 0x140011ef0
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.140017b20
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.140011e60
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.140017f20
Function at 0x1400143d0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
xor ebx, ebx
mov edi, 1
cmp dword [0x1402d0f20], ebx
jne 0x14001440b
lea r8, [0x1400142e4]
lea edx, [rdi + 0xf]
lea ecx, [rdi + 0x37]
mov dword [0x1402d0f20], edi
call fcn.1400161bc
mov qword [0x1402d0ef8], rax
cmp word [0x1402d0f04], bx
jne 0x1400144c4
lea rdx, [rsp + 0x20]
mov ecx, 0x101
call qword [sym.imp.WSOCK32.DLL_WSAStartup]
mov word [0x1402d0f04], di
test eax, eax
je 0x14001443a
mov word [0x1402d0f04], bx
lea rcx, str.ws2_32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1402d0ef0], rax
test rax, rax
je 0x1400144c4
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402d0ef0]
lea rdx, str.freeaddrinfo
mov qword [0x1402d0f08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402d0ef0]
lea rdx, str.getnameinfo
mov qword [0x1402d0f10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1402d0f08], rbx
mov qword [0x1402d0f18], rax
je 0x1400144c4
cmp qword [0x1402d0f10], rbx
je 0x1400144c4
mov ecx, dword [0x1402d0f00]
test rax, rax
cmovne ecx, edi
mov dword [0x1402d0f00], ecx
movsx rax, word [0x1402d0f04]
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret

Function at 0x1400144e0
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.140017b20
mov edx, ebx
mov rcx, rax
mov rsi, rax
call qword [sym.imp.WSOCK32.DLL_gethostname]
test eax, eax
jne 0x14001451c
mov rcx, rsi
call sub.msvcrt.dll_strlen
mov rdi, rax
sub ebx, edi
mov ecx, ebx
call fcn.140017f20
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 0x1400149ec
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 0x140014a96
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 0x140014a8f
je 0x140014b15
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.WSOCK32.DLL___WSAFDIsSet
test eax, eax
je 0x140014b15
lea r8, [rbp + 0x970]
mov edx, 0x4004667f
mov rcx, rdi
call qword [sym.imp.WSOCK32.DLL_ioctlsocket]
test eax, eax
jne 0x140014a8f
cmp dword [rbp + 0x970], ebx
je 0x140014a8f
lea ebx, [rax + 2]
jmp 0x140014b15
mov ebx, 4
jmp 0x140014b15
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 0x140014b15
mov rcx, qword [0x1402d0d88]
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 0x140014b24
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 0x140014b51
mov rcx, qword [rcx + 8]
xor r9d, r9d
call qword [sym.imp.WSOCK32.DLL_recv]
mov esi, eax
jmp 0x140014b99
cmp qword [rcx + 0x20], rsi
je 0x140014b99
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 0x140014b99
mov r8, qword [rdi + 0x20]
mov rcx, qword [0x1402d0d88]
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 0x140014ccc
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 0x140014cf8
mov rcx, qword [rcx + 8]
xor r9d, r9d
call qword [sym.imp.WSOCK32.DLL_send]
jmp 0x140014d4b
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 0x140014d26
mov rcx, qword [rcx]
jmp 0x140014d2a
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 0x140014d94
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.140017b20
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 0x140014e06
lea rdx, str.GetLongPathNameA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140014dfd
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.140017f20
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