joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004c3a0
Capabilities:
Create thread

Disassembly:
jmp 0x14004c3a0
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov edi, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r13d, dword [rsp + 0xd0]
mov rax, qword [0x1401bc010]
xor rax, rsp
mov qword [rsp + 0x60], rax
shl ebp, 0x10
mov ecx, 0x18
call fcn.1400bf928
mov rsi, rax
movabs r12, 0xfffffffc00000000
mov rax, r15
and rax, r12
cmp rax, qword [0x1401cb548]
jne 0x14004c40d
mov rcx, r15
call fcn.14008fb40
mov qword [rsi], r15
test r14, r14
setne byte [rsi + 8]
mov dword [rsi + 0xc], edi
mov dword [rsi + 0x10], r13d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x14004c860]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x14004c452
test r14, r14
je 0x14004c496
mov qword [r14], rdi
jmp 0x14004c49f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x14004c46b
mov ebp, eax
cmp eax, 0x5af
je 0x14004c46b
cmp ebp, 0xe
jne 0x14004c4c5
mov rcx, rbx
call fcn.1401173f0
test rsi, rsi
je 0x14004c49f
mov rcx, qword [rsi]
and r12, rcx
cmp r12, qword [0x1401cb548]
jne 0x14004c48c
call fcn.14008fc90
mov rcx, rsi
call fcn.1400bf964
jmp 0x14004c49f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400c0d00
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [0x1401cf198]
mov ecx, dword [0x1401cbd4c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004c538
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov edx, ebp
call fcn.14004eea0
movzx eax, byte [rbx + 0x17]
test al, al
mov rcx, qword [rbx]
cmovns rcx, rbx
cmovs rax, qword [rbx + 8]
lea rdx, [rsp + 0x50]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
mov rcx, qword [0x1401cf190]
call fcn.1400a70d0
cmp byte [rbx + 0x17], 0
jns 0x14004c473
mov rcx, qword [rsp + 0x38]
call fcn.1400bf964
jmp 0x14004c473
lea rcx, [0x1401cf198]
call fcn.1400bfb10
cmp dword [0x1401cf198], 0xffffffff
jne 0x14004c4e6
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.14005c1d0
mov qword [0x1401cf190], rax
lea rcx, [0x1401cf198]
call fcn.1400bfba8
jmp 0x14004c4e6

Function at 0x14004c9f0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x14004ca37
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14004ca51
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14004ca2f
mov qword [rsi], rdi
call fcn.1400a0a00
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x14004ca67
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400a0a00
mov rcx, qword [rsi]
call fcn.140097c30
mov qword [rsi], 0
jmp 0x14004ca1d
int3
Function at 0x14004db20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x1401bc010]
xor rax, rsp
mov qword [rsp + 0x88], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x40], rax
movaps xmm0, xmmword [0x140160830]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.DirectoryExists
lea r8, str........._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x227
call fcn.1400a09e0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14009a070
cmp byte [rdi + 0x17], 0
jns 0x14004dba0
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
setne al
and edi, 0x10
shr edi, 4
and dil, al
mov rcx, rsi
call fcn.14009a2a0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400c0d00
mov eax, edi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x14004dbe0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1401bc010]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x24]
mov dword [r8], 1
movsxd rcx, ecx
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
sete bl
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400c0d00
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140050d80
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x1401bc010]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x1401cf268], 0
jne 0x140050e4d
mov rdi, qword [0x1401cf240]
test rdi, rdi
je 0x140050e6a
test byte [reloc.WS2_32.dll_accept], 1
je 0x140050e4d
cmp byte [rdi + 0x17], 0
jns 0x140050dd3
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1401cf268], rax
inc rax
cmp rax, 1
ja 0x140050e4d
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400c2be0
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x140050f30
xor esi, esi
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.1400c0d00
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov ecx, 0x18
call fcn.1400bf928
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1400c2be0
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x140160830]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.1400f4b00
movzx eax, byte [rdi + 0x17]
mov rcx, rdi
test al, al
jns 0x140050ed2
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
test rax, rax
jne 0x140050ef8
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.1400470b0
mov qword [0x1401cf240], rdi
jmp 0x140050dbd
lea r8, [rax + rax]
test r8, r8
je 0x140050ed7
lea rdx, [r8 - 2]
cmp word [rcx + r8 - 2], 0x5c
mov r8, rdx
jne 0x140050efc
cmp rdx, 0xfffffffffffffffe
je 0x140050ed7
sar rdx, 1
cmp rax, rdx
jbe 0x140051016
inc rdx
mov rcx, rdi
call fcn.14010e170
jmp 0x140050ed7
mov rdi, qword [0x1401cf240]
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400e24a0
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.140046d90
mov rcx, qword [0x1401cf240]
movzx eax, byte [rcx + 0x17]
test al, al
jns 0x140051009
mov rax, qword [rcx + 8]
test rax, rax
je 0x14005101e
mov rdx, qword [rcx]
cmp word [rdx + rax*2 - 2], 0x5c
je 0x140050f96
lea rdx, [0x140166ae6]
mov r8d, 1
call fcn.1400470b0
mov rcx, qword [0x1401cf240]
lea rdx, str.debug.log
mov r8d, 9
call fcn.1400470b0
mov rcx, qword [0x1401cf240]
cmp byte [rcx + 0x17], 0
jns 0x140050fb8
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1401cf268], rax
inc rax
cmp rax, 1
ja 0x140050e4d
mov qword [0x1401cf268], 0
jmp 0x140050e4b
test rax, rax
je 0x14005101e
mov rdx, rcx
jmp 0x140050f75
mov rcx, rdi
call fcn.1400f5200
lea rax, str.string::back__:_string_is_empty
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str........._buildtools_third_partylibc_trunkinclude_string
lea r9, str._empty__
mov r8d, 0x502
call fcn.1400f56f0
int3
Function at 0x140052da0
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x1401bc010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x1401cf320]
test rdi, rdi
jne 0x140052e53
mov ecx, 0x50
call fcn.1400bf928
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.1400bf928
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x140052e75
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [rsi + 0x20], rcx
mov rax, rsi
add rax, 0x38
movups xmmword [rsi + 0x38], xmm6
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x48], 1
mov qword [0x1401cf320], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140052ea1
mov rcx, rax
call fcn.1400e24a0
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.140052eb0
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400c0d00
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str........._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.1400f56f0
int3
Function at 0x140052eb0
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x1401bc010]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x50]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 3
call fcn.14005bca0
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x14005303c
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x4c], 0
lea rcx, [0x140166c28]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14005308d
lea rdx, [0x140166c78]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400530a0
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [case.0x1400bfc46.0]
mov r14, rax
movsxd r12, dword [rsp + 0x4c]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x40], 0
test r12, r12
je 0x1400530a8
shl r12, 3
movabs rax, 0x5555555555555551
cmp r12, rax
jae 0x1400530b2
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.1400bf928
mov rbx, rax
mov qword [rsp + 0x30], rax
add rax, r15
mov qword [rsp + 0x40], rax
xor r13d, r13d
mov r15, rbx
test r15, r15
je 0x140053061
mov rdx, qword [r14 + r13]
mov rcx, r15
call fcn.1400f4b00
add r15, 0x18
add r13, 8
cmp r12, r13
jne 0x140052fbc
mov qword [rsp + 0x38], r15
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400529c0
movups xmmword [rsi], xmm6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x14005300a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rbx, rbx
je 0x14005303c
cmp r15, rbx
jne 0x140053021
jmp 0x140053034
mov rcx, qword [r15 - 0x18]
call fcn.1400bf964
jmp 0x14005302c
lea rsi, [r15 - 0x18]
cmp byte [r15 - 1], 0
js 0x140053016
mov r15, rsi
cmp rsi, rbx
jne 0x140053021
mov rcx, rbx
call fcn.1400bf964
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400c0d00
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str........._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.1400f56f0
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x140052f61
xor r14d, r14d
jmp 0x140052f64
xor r15d, r15d
xor ebx, ebx
jmp 0x140052fe3
lea rcx, [rsp + 0x30]
call fcn.1400f5660
int3
Function at 0x140053cb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x1401bc010]
xor rax, rsp
mov qword [rsp + 0x38], rax
movzx eax, byte [0x1401cf330]
and eax, 1
neg rax
cmp rax, 0xfffffffffffffffd
je 0x140053db4
mov rsi, rcx
lea r14, [0x140166bf0]
movabs r15, 0xaaaaaaaaaaaaaaaa
movaps xmm6, xmmword [0x140160830]
lea rbx, [rsp + 0x20]
xor r12d, r12d
mov rax, r12
shl rax, 4
mov qword [rsp + 0x30], r15
movaps xmmword [rsp + 0x20], xmm6
mov rdx, qword [rax + r14]
mov r8, qword [rax + r14 + 8]
mov rcx, rbx
call fcn.14003ba70
movzx eax, byte [rsp + 0x37]
mov rcx, qword [rsp + 0x20]
mov r8, rbx
mov rdx, rax
test al, al
jns 0x140053d4a
mov rdx, qword [rsp + 0x28]
mov r8, rcx
mov r9, qword [rsi + 8]
cmp r9, rdx
mov r10, rdx
cmovb r10, r9
test r10, r10
js 0x140053dda
cmp rdx, r9
jbe 0x140053d66
xor ebp, ebp
jmp 0x140053d8f
mov bpl, 1
test rdx, rdx
je 0x140053d8d
mov r9, qword [rsi]
xor r10d, r10d
movzx r11d, word [r9 + r10*2]
cmp r11w, word [r8 + r10*2]
jne 0x140053d62
inc r10
cmp rdx, r10
jne 0x140053d74
mov rdi, rdx
jmp 0x140053d8f
xor edi, edi
test al, al
jns 0x140053d98
call fcn.1400bf964
test bpl, bpl
jne 0x140053db6
inc r12
movzx eax, byte [0x1401cf330]
xor rax, 3
cmp r12, rax
jb 0x140053d0c
xor edi, edi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400c0d00
mov rax, rdi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
int3
Function at 0x140055bc0
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x1401bc010]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x140055dd9
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x1401bf510], rax
jne 0x140055ddc
mov rsi, rcx
mov r14d, dword [rcx + 0xc]
add r14, 0x518
mov byte [rsp + 0x3f], 0xaa
mov dl, byte [rcx + 2]
mov rcx, r14
call fcn.1400a0770
movzx eax, ax
lea r12, [rax + rax*4]
lea r15, [rsi + r12*8]
add r15, 0x48
lea rbx, [rsi + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140055d9b
mov rax, qword [r15]
mov rdi, qword [rax]
test rdi, rdi
je 0x140055d34
mov byte [rsp + 0x3f], 0
mov rcx, qword [rdi]
test rcx, rcx
je 0x140055d2d
lea rdx, [rsi + 0x48]
bswap rcx
mov r14d, dword [rdx + r12*8 + 0x18]
mov rdx, rcx
xor rdx, rdi
cmp rdx, 0x1fffff
ja 0x140055da8
mov edx, ecx
and edx, 0x1fc000
je 0x140055da8
prefetcht0 byte [rcx]
mov qword [rax], rcx
mov ecx, dword [rax + 0x18]
lea edx, [rcx + 2]
and edx, 0x3ffe
and ecx, 0xffffc001
or ecx, edx
mov dword [rax + 0x18], ecx
mov rax, qword [rax + 0x10]
mov eax, dword [rax + 0x18]
add rax, qword [rsi + 0x1498]
mov qword [rsi + 0x1498], rax
mov rcx, qword [rsi + 0x14a0]
cmp rcx, rax
cmova rax, rcx
mov qword [rsi + 0x14a0], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, rdi
mov rdx, rsi
call fcn.1400a1e40
mov ecx, dword [0x1401cf348]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1401cbd4c]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x148], rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400c0d00
mov rax, rdi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ecx, ecx
jmp 0x140055c8e
lea rax, [rsp + 0x3f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov rcx, r15
mov rdx, rsi
mov r8d, 2
mov r9, r14
call fcn.1400acd50
test rax, rax
je 0x140055ddf
mov rdi, rax
mov rcx, rax
and rcx, 0xffffffffffe00000
mov rdx, rax
shr rdx, 9
and edx, 0xfe0
lea rax, [rdx + rcx]
movzx ecx, byte [rdx + rcx + 0x101e]
and ecx, 0x3f
shl rcx, 5
sub rax, rcx
add rax, 0x1000
jmp 0x140055ca8
mov rcx, rbx
call fcn.1400a2ab0
jmp 0x140055c3e
movaps xmm0, xmmword [0x140160830]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
mov r8, qword [rdi]
lea rdx, str.first
mov rcx, rsi
call fcn.14010feb0
mov rcx, rsi
call fcn.140038260
mov rcx, r14
call fcn.140055e00
int3
int3
xor edi, edi
jmp 0x140055cd2
Function at 0x140056600
Capabilities:
Initialize winsock library

Disassembly:
push rsi
sub rsp, 0x1c0
mov rax, qword [0x1401bc010]
xor rax, rsp
mov qword [rsp + 0x1b8], rax
mov rax, qword [0x1401cf3b0]
cmp rax, 1
jbe 0x140056641
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.1400c0d00
nop
add rsp, 0x1c0
pop rsi
ret
lea rcx, [0x1401cf3b0]
call fcn.1400523e0
test al, al
je 0x140056698
lea rsi, [rsp + 0x20]
mov r8d, 0x198
mov rcx, rsi
mov dl, 0xaa
call fcn.1400c2be0
mov cx, 0x202
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14005667d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [0x1401cf3b8]
lea rcx, [0x1401cf3b0]
xor r8d, r8d
mov r9, rcx
call fcn.1400524a0
jmp 0x140056627
mov rax, qword [0x1401cf3b0]
jmp 0x140056627
Function at 0x14005cbe0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x14005ccce
cmp qword [rsi], 0
jne 0x14005ccce
cmp dword [rsi + 0x14], 0
jne 0x14005ccce
cmp qword [rsi + 8], 0
jne 0x14005ccce
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x14005cc50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14005cca0
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14005cc48
mov qword [rsi], r14
call fcn.1400a0a00
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x14005cc8a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x14005ccb6
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14005cc82
mov qword [rsi + 8], r14
call fcn.1400a0a00
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400a0a00
mov rcx, qword [rsi]
call fcn.140097c30
mov qword [rsi], 0
jmp 0x14005cc36
call fcn.1400a0a00
mov rcx, qword [rsi + 8]
call fcn.140097c30
mov qword [rsi + 8], 0
jmp 0x14005cc6f
mov rcx, rsi
call fcn.1401177a0
mov rax, qword [rsi]
jmp 0x14005cc1a

Function at 0x140062b30
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x1401d4408], 0
jne 0x140062b6d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140062b60
mov dword [rdi], eax
mov dword [0x1401d4410], eax
mov qword [0x1401d4408], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x14006da30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rsi, rdx
mov ebx, ecx
mov rax, qword [0x1401bc010]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x14006da00]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x1401d5338]
lea rdx, [0x14006d860]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14006db28
cmp dword [0x1401d5340], 0
jne 0x14006db35
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x1401d5344]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x14006dadc
mov ecx, 1
mov edx, 0x28
call fcn.1400982a0
test rax, rax
je 0x14006db35
mov r14, rax
mov ecx, dword [0x1401d5344]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14006db2d
lea r15, [0x1401d5348]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x1401d5350]
mov qword [rax + rbx*8], rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [r14 + rbx*8], rsi
mov esi, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400c0d00
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400d44a0
mov rcx, r14
call fcn.140098200
mov rcx, rsi
mov rax, rdi
call qword [case.0x1400bfc46.0]
xor esi, esi
jmp 0x14006db0c
Function at 0x1400726a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea rax, vtable.icu_72::Locale.0
mov qword [rcx], rax
lea rax, [rcx + 0x30]
mov qword [rcx + 0x28], rax
mov qword [rcx + 0xd0], 0
xor edx, edx
xor r8d, r8d
jmp fcn.140072000

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

Disassembly:
push rsi
sub rsp, 0x30
mov rax, rcx
mov rcx, qword [0x1401bc010]
xor rcx, rsp
mov qword [rsp + 0x28], rcx
mov rcx, qword [rax + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400777c3
cmp byte [rax + 0x90], 0
jne 0x1400777c3
mov sil, 1
cmp byte [rax + 0x91], 0
jne 0x1400777ae
lea rdx, [rsp + 0x27]
mov byte [rdx], 0xaa
mov r8d, 1
mov r9d, 2
call qword [sym.imp.WS2_32.dll_recv]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
je 0x1400777c3
cmp esi, 0xffffffff
setne cl
cmp eax, 0x2733
sete sil
or sil, cl
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400c0d00
mov eax, esi
add rsp, 0x30
pop rsi
ret
xor esi, esi
jmp 0x1400777ae

Function at 0x1400777d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1401bc010]
xor rax, rsp
mov qword [rsp + 0xb8], rax
lea rbx, [rsp + 0x28]
mov r8d, 0x90
mov rcx, rbx
mov dl, 0xaa
call fcn.1400c2be0
mov rcx, rbx
call fcn.140076510
lea r8, [rsp + 0xa8]
mov rdx, qword [r8 + 8]
mov rcx, qword [rdi + 8]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14007786a
mov r8d, dword [rsp + 0xa8]
mov rdx, qword [rsp + 0xb0]
mov rcx, rsi
call fcn.140056c80
xor ecx, ecx
test al, al
mov esi, 0xffffff94
cmovne esi, ecx
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1400c0d00
mov eax, esi
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.140076630
mov esi, eax
jmp 0x14007784d