joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14014874b
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1402d76b0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1402d7030
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1402d76ef
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14049a020]
jmp 0x1402d76f9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x140148a43
Capabilities:
Query environment variable

Disassembly:
jmp 0x1403bc310
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1403bc140
lea rcx, [rsp + 0x40]
call fcn.1403bc2c0
movzx eax, al
test eax, eax
jne 0x1403bc358
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1403bc170
mov rax, qword [rsp + 0x70]
jmp 0x1403bc529
lea rcx, [rsp + 0x40]
call fcn.1403bc290
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1403bc230
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.1403bc290
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.14014a136
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1403bc3fe
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1403bc170
mov rax, qword [rsp + 0x80]
jmp 0x1403bc529
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.140148548
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14014828c
lea rcx, [rsp + 0x48]
call fcn.140147af3
movzx eax, al
test eax, eax
jne 0x1403bc465
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1401460ae
lea rcx, [rsp + 0x40]
call fcn.1403bc170
mov rax, qword [rsp + 0x88]
jmp 0x1403bc529
lea rcx, [rsp + 0x48]
call fcn.140149097
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1403bc290
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.14014a136
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1403bc4fb
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1401460ae
lea rcx, [rsp + 0x40]
call fcn.1403bc170
mov rax, qword [rsp + 0xa0]
jmp 0x1403bc529
lea rcx, [rsp + 0x48]
call fcn.140148237
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1401460ae
lea rcx, [rsp + 0x40]
call fcn.1403bc170
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x140148a6b
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1402d75e0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1402d6fb0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1402d7621
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14049a020]
jmp 0x1402d7627
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x140148b42
Capabilities:
Get geographical location

Disassembly:
jmp 0x1403a38b0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.1403a2820
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1403a3917
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x14049a030]
jmp 0x1403a3939
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.140147a53
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x140148b5b
Capabilities:
Terminate process

Disassembly:
jmp 0x1402b3260
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140148ffc
Capabilities:
Print debug messages

Disassembly:
jmp 0x1403cc600
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1404755e8]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x1403cc626
jmp 0x1403cc6a3
mov rcx, qword [rbp + 0x30]
call fcn.14014807a
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x1403cc63f
jmp 0x1403cc6a3
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1403cc65c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140146351
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.140146b71
test eax, eax
jne 0x1403cc6a3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140148417
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x1401491c8
Capabilities:
Initialize winsock library

Disassembly:
jmp 0x1401b1d30
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x220
lea rdi, [rsp + 0x30]
mov ecx, 0x7c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x230]
mov rax, qword [0x1404755e8]
xor rax, rsp
mov qword [rsp + 0x210], rax
mov eax, dword [rsp + 0x230]
and eax, 2
test eax, eax
je 0x1401b1e07
mov eax, 0x202
mov word [rsp + 0x30], ax
lea rdx, [rsp + 0x50]
movzx ecx, word [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x1f4], eax
cmp dword [rsp + 0x1f4], 0
je 0x1401b1dad
mov eax, 2
jmp 0x1401b1ebf
movzx eax, word [rsp + 0x50]
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x30]
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
jne 0x1401b1df7
movzx eax, word [rsp + 0x50]
shr rax, 8
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x30]
shr rcx, 8
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
je 0x1401b1e07
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
jmp 0x1401b1ebf
call fcn.14014be6e
mov dword [rsp + 0x1f8], eax
cmp dword [rsp + 0x1f8], 0
je 0x1401b1e29
mov eax, dword [rsp + 0x1f8]
jmp 0x1401b1ebf
lea rcx, str.iphlpapi.dll
call fcn.14014b04a
mov qword [0x140478118], rax
cmp qword [0x140478118], 0
je 0x1401b1e7c
lea rdx, str.if_nametoindex
mov rcx, qword [0x140478118]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x200], rax
cmp qword [rsp + 0x200], 0
je 0x1401b1e7c
mov rax, qword [rsp + 0x200]
mov qword [0x140478110], rax
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.14014a9d8
movzx eax, al
test eax, eax
je 0x1401b1ea9
mov byte [0x14047aeb1], 1
jmp 0x1401b1eb0
mov byte [0x14047aeb1], 0
lea rcx, [0x14047aec0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.14014a8e8
mov rax, rdi
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.140148417
add rsp, 0x220
pop rdi
ret
Function at 0x14014955b
Capabilities:
Set environment variable

Disassembly:
jmp 0x1403be470
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret

Function at 0x140149592
Capabilities:
Create directory

Disassembly:
jmp 0x1403a7380
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1403a73ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140146f90
mov eax, 0xffffffff
jmp 0x1403a73b0
xor eax, eax
add rsp, 0x28
ret
Function at 0x1401497c2
Capabilities:
Set console window title

Disassembly:
jmp 0x140174670
push rbp
push rdi
sub rsp, 0x178
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, Ordinal_41
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1404755e8]
xor rax, rbp
mov qword [rbp + 0x140], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.14014bbf3
lea rdx, str.Russian
xor ecx, ecx
call fcn.140145a87
call fcn.14014818d
call fcn.140145c4e
mov rcx, qword [str.rikodas]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
lea rdx, str.___________________________________n__________________________________________________________________________________n____________________________________________________________________________n______________________________________________________________________n___________________________________________________________________________n___________________________________________________________________________n_________________________________________________________________________n_________________________________________________________________________n________________________________________________________________________n_n
lea rcx, [rbp + 8]
call fcn.14014812e
nop
lea rdx, [rbp + 8]
lea rcx, [0x1404783b0]
call fcn.14014af00
mov qword [rbp + 0x138], rax
lea rdx, [0x140145406]
mov rcx, qword [rbp + 0x138]
call fcn.1401486f6
lea rcx, [rbp + 0x44]
call fcn.14014641e
lea rdx, str._n
lea rcx, [0x1404783b0]
call fcn.140145b3b
lea rdx, [rbp + 0x64]
lea rcx, [0x1404786a0]
call fcn.140147ea4
mov eax, dword [rbp + 0x64]
mov dword [rbp + 0x134], eax
mov eax, dword [rbp + 0x134]
dec eax
mov dword [rbp + 0x134], eax
cmp dword [rbp + 0x134], 6
ja case.default.0x140174771
movsxd rax, dword [rbp + 0x134]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x17480c]
add rax, rcx
jmp rax
lea rcx, [rbp + 0x44]
call fcn.14014a92e
jmp 0x1401747d2
lea rcx, [rbp + 0x44]
call fcn.14014610d
jmp 0x1401747d2
lea rcx, [rbp + 0x44]
call fcn.14014b919
jmp 0x1401747d2
lea rcx, [rbp + 0x44]
call fcn.1401491e1
jmp 0x1401747d2
lea rcx, [rbp + 0x44]
call fcn.140146cf7
jmp 0x1401747d2
lea rcx, [rbp + 0x44]
call fcn.1401495ce
jmp 0x1401747d2
lea rcx, [rbp + 0x44]
call fcn.1401476e3
lea rdx, [0x1403eed30]
lea rcx, [0x1404783b0]
call fcn.140145b3b
nop
lea rcx, [rbp + 8]
call fcn.1401463bf
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.14014a8e8
mov eax, edi
mov rcx, qword [rbp + 0x140]
xor rcx, rbp
call fcn.140148417
lea rsp, [rbp + 0x158]
pop rdi
pop rbp
ret
Function at 0x1401499b1
Capabilities:
Parse pe header

Disassembly:
jmp 0x1402b4e70
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1402b4e90
xor al, al
jmp 0x1402b4f11
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1402b4ea3
xor al, al
jmp 0x1402b4f11
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1402b4ecd
xor al, al
jmp 0x1402b4f11
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1402b4ee1
xor al, al
jmp 0x1402b4f11
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1402b4ef3
xor al, al
jmp 0x1402b4f11
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1402b4f0f
xor al, al
jmp 0x1402b4f11
mov al, 1
add rsp, 0x38
ret

Function at 0x140149c77
Capabilities:
Get common file path

Disassembly:
jmp 0x1403aea20
push rdi
sub rsp, 0x270
mov rax, qword [0x1404755e8]
xor rax, rsp
mov qword [rsp + 0x260], rax
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rdx, [rsp + 0x50]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x104
ja 0x1403aea79
lea rcx, [rsp + 0x50]
call fcn.1403ae810
jmp 0x1403aeb4c
mov eax, dword [rsp + 0x30]
inc eax
mov eax, eax
mov dword [rsp + 0x20], Ordinal_41
lea r9, [0x140436ee0]
mov r8d, 2
mov edx, 2
mov ecx, eax
call fcn.14014c535
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.14014784b
lea rcx, [rsp + 0x38]
call fcn.14014bab3
test rax, rax
jne 0x1403aeae1
call fcn.14014770b
mov dword [rax], recv
mov dword [rsp + 0x40], 0
lea rcx, [rsp + 0x38]
call fcn.14014a609
mov eax, dword [rsp + 0x40]
jmp 0x1403aeb4c
lea rcx, [rsp + 0x38]
call fcn.14014bab3
mov ecx, dword [rsp + 0x30]
inc ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1403aeb28
call fcn.14014770b
mov dword [rax], recv
mov dword [rsp + 0x48], 0
lea rcx, [rsp + 0x38]
call fcn.14014a609
mov eax, dword [rsp + 0x48]
jmp 0x1403aeb4c
lea rcx, [rsp + 0x38]
call fcn.14014bab3
mov rcx, rax
call fcn.1403ae810
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x38]
call fcn.14014a609
mov eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140148417
add rsp, 0x270
pop rdi
ret
Function at 0x14014a4b0
Capabilities:
Terminate process

Disassembly:
jmp 0x1402d86c0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1402d86ee
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.14014b44b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x14014b04a
Capabilities:
Get common file path

Disassembly:
jmp 0x1401b1f60
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1401b1f9d
xor eax, eax
jmp 0x1401b2139
lea rdx, str.LoadLibraryExA
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
lea rdx, [0x14046520c]
mov rcx, qword [rsp + 0x70]
call fcn.1401472ba
test rax, rax
je 0x1401b2009
cmp qword [rsp + 0x28], 0
je 0x1401b1fea
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [rsp + Ordinal_41]
mov qword [rsp + 0x50], rax
jmp 0x1401b1ffa
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
jmp 0x1401b2134
cmp qword [rsp + 0x28], 0
je 0x1401b2043
lea rdx, str.AddDllDirectory
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401b2043
mov r8d, 0x800
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [rsp + Ordinal_41]
mov qword [rsp + 0x20], rax
jmp 0x1401b2134
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1401b2134
mov rcx, qword [rsp + 0x70]
call fcn.14014807a
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x38]
inc eax
mov eax, eax
add rax, qword [rsp + 0x40]
mov rcx, rax
call qword [fcn.140148f89]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1401b2129
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1401b2129
mov rcx, qword [rsp + 0x48]
call fcn.14014807a
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
lea rdx, [0x140465230]
mov rcx, rax
call fcn.1401473b9
mov rcx, qword [rsp + 0x48]
call fcn.14014807a
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov rdx, qword [rsp + 0x70]
mov rcx, rax
call fcn.1401473b9
cmp qword [rsp + 0x28], 0
je 0x1401b210f
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [rsp + Ordinal_41]
mov qword [rsp + 0x58], rax
jmp 0x1401b211f
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x48]
call qword [fcn.14014765c]
mov rax, qword [rsp + 0x20]
add rsp, 0x60
pop rdi
ret
Function at 0x14014b414
Capabilities:
Set socket configuration

Disassembly:
jmp 0x140229940
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
lea rdi, [rsp + 0x30]
mov ecx, Ordinal_26
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa0]
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x74], 4
cmp dword [0x1404781a8], 0
jne 0x1402299c1
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.14014a9d8
movzx eax, al
test eax, eax
je 0x1402299b7
mov dword [0x1404781a8], 2
jmp 0x1402299c1
mov dword [0x1404781a8], 1
cmp dword [0x1404781a8], 2
jne 0x1402299cc
jmp 0x140229a2a
lea rax, [rsp + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x140229a04
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x54], eax
jle 0x140229a04
jmp 0x140229a2a
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.14014a8e8
add rsp, 0x90
pop rdi
ret
Function at 0x14014b4e6
Capabilities:
Print debug messages

Disassembly:
jmp 0x14039b8f0
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x14014b6b2
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1402d7720
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1402d7070
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1402d7769
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14049a020]
jmp 0x1402d7778
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x14014b7f2
Capabilities:
Set environment variable

Disassembly:
jmp 0x1403d4970
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1401477dd
lea rcx, [rsp + 0x48]
call fcn.1401477dd
call fcn.140148999
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1401473d7
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1403d49df
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.140147ed1
lea rcx, [rsp + 0x78]
call fcn.140147ed1
mov eax, dword [rsp + 0x24]
jmp 0x1403d4a70
call fcn.140148999
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1401473d7
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1403d4a26
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.140147ed1
lea rcx, [rsp + 0x78]
call fcn.140147ed1
mov eax, dword [rsp + 0x2c]
jmp 0x1403d4a70
lea rcx, [rsp + 0x48]
call fcn.140147698
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.140147698
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.140147ed1
lea rcx, [rsp + 0x78]
call fcn.140147ed1
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x14014bb1c
Capabilities:
Create thread

Disassembly:
jmp 0x140371e00
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x78
cmp qword [rsp + 0x90], 0
je 0x140371e2c
mov dword [rsp + 0x30], 1
jmp 0x140371e34
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x140371e7d
lea rax, str.procedure___nullptr
mov qword [rsp + 0x28], rax
lea rax, [0x14040b958]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, reloc.WLDAP32.dll_Ordinal_200
lea rdx, str.minkernelcrtsucrt_src_appcrt_startup_thread.cpp
mov ecx, 2
call fcn.140145bef
cmp eax, 1
jne 0x140371e7d
int3
cmp dword [rsp + 0x34], 0
jne 0x140371ebf
call fcn.14014770b
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
mov qword [rsp + 0x20], 0
mov r9d, reloc.WLDAP32.dll_Ordinal_200
lea r8, str.minkernelcrtsucrt_src_appcrt_startup_thread.cpp
lea rdx, str._beginthreadex
lea rcx, str.procedure___nullptr
call fcn.14014ac67
xor eax, eax
jmp 0x140371fbf
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call fcn.1403718f0
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1403716f0
lea rcx, [rsp + 0x40]
call fcn.140371760
movzx eax, al
test eax, eax
jne 0x140371f0f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x40]
call fcn.140371740
mov rax, qword [rsp + 0x50]
jmp 0x140371fbf
lea rcx, [rsp + 0x40]
call fcn.140371aa0
mov ecx, dword [rsp + 0x88]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x28], rdx
mov edx, dword [rsp + 0xa0]
mov dword [rsp + 0x20], edx
mov r9, rax
lea r8, [0x1403714a0]
mov edx, ecx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140371f83
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140146f90
mov qword [rsp + 0x58], 0
lea rcx, [rsp + 0x40]
call fcn.140371740
mov rax, qword [rsp + 0x58]
jmp 0x140371fbf
cmp qword [rsp + 0xa8], 0
je 0x140371f9c
mov rax, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0x38]
mov dword [rax], ecx
lea rcx, [rsp + 0x40]
call fcn.140371a60
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x40]
call fcn.140371740
mov rax, qword [rsp + 0x60]
add rsp, 0x78
ret