joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140147223
Capabilities:
Query environment variable

Disassembly:
jmp 0x1403ba630
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1403ba1b0
lea rcx, [rsp + 0x20]
call fcn.1403ba200
movzx eax, al
test eax, eax
jne 0x1403ba675
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.1403ba1e0
mov rax, qword [rsp + 0x40]
jmp 0x1403ba76f
lea rcx, [rsp + 0x20]
call fcn.1403ba300
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.1403ba2a0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.1401476ba
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140146922
lea rcx, [rsp + 0x28]
call fcn.140147cdc
movzx eax, al
test eax, eax
jne 0x1403ba70f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.140149825
lea rcx, [rsp + 0x20]
call fcn.1403ba1e0
mov rax, qword [rsp + 0x50]
jmp 0x1403ba76f
lea rcx, [rsp + 0x20]
call fcn.1403ba300
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.14014ad29
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.1401475c0
lea rcx, [rsp + 0x28]
call fcn.14014b9bd
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.140149825
lea rcx, [rsp + 0x20]
call fcn.1403ba1e0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1401478c7
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1402d7220
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1402d6ba0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1402d725f
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 [0x140495020]
jmp 0x1402d7269
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x140147bdd
Capabilities:
Query environment variable

Disassembly:
jmp 0x1403ba380
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1403ba1b0
lea rcx, [rsp + 0x40]
call fcn.1403ba330
movzx eax, al
test eax, eax
jne 0x1403ba3c8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1403ba1e0
mov rax, qword [rsp + 0x70]
jmp 0x1403ba599
lea rcx, [rsp + 0x40]
call fcn.1403ba300
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1403ba2a0
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.1403ba300
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.140149334
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1403ba46e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1403ba1e0
mov rax, qword [rsp + 0x80]
jmp 0x1403ba599
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1401476ba
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140147403
lea rcx, [rsp + 0x48]
call fcn.140146c0b
movzx eax, al
test eax, eax
jne 0x1403ba4d5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.140145108
lea rcx, [rsp + 0x40]
call fcn.1403ba1e0
mov rax, qword [rsp + 0x88]
jmp 0x1403ba599
lea rcx, [rsp + 0x48]
call fcn.14014826d
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1403ba300
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.140149334
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1403ba56b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.140145108
lea rcx, [rsp + 0x40]
call fcn.1403ba1e0
mov rax, qword [rsp + 0xa0]
jmp 0x1403ba599
lea rcx, [rsp + 0x48]
call fcn.1401473a4
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.140145108
lea rcx, [rsp + 0x40]
call fcn.1403ba1e0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x140147c05
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1402d7150
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1402d6b20
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1402d7191
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 [0x140495020]
jmp 0x1402d7197
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x140147ce6
Capabilities:
Get geographical location

Disassembly:
jmp 0x14039f100
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.14039e030
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14039f167
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 [0x140495030]
jmp 0x14039f189
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.140146b57
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 0x140147cff
Capabilities:
Terminate process

Disassembly:
jmp 0x1402b2770
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 0x1401481d2
Capabilities:
Print debug messages

Disassembly:
jmp 0x1403ca740
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x14046eb40]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x1403ca766
jmp 0x1403ca7e3
mov rcx, qword [rbp + 0x30]
call fcn.1401471e2
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x1403ca77f
jmp 0x1403ca7e3
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1403ca79c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1401453ab
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.140145c20
test eax, eax
jne 0x1403ca7e3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140147584
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x140148399
Capabilities:
Initialize winsock library

Disassembly:
jmp 0x1401b0f20
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 [0x14046eb40]
xor rax, rsp
mov qword [rsp + 0x210], rax
mov eax, dword [rsp + 0x230]
and eax, 2
test eax, eax
je 0x1401b0ff7
mov eax, 0x202
mov word [rsp + 0x38], ax
lea rdx, [rsp + 0x50]
movzx ecx, word [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x1f4], eax
cmp dword [rsp + 0x1f4], 0
je 0x1401b0f9d
mov eax, 2
jmp 0x1401b114b
movzx eax, word [rsp + 0x50]
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x38]
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
jne 0x1401b0fe7
movzx eax, word [rsp + 0x50]
shr rax, 8
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x38]
shr rcx, 8
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
je 0x1401b0ff7
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
jmp 0x1401b114b
call fcn.14014b12a
mov dword [rsp + 0x1f8], eax
cmp dword [rsp + 0x1f8], 0
je 0x1401b1019
mov eax, dword [rsp + 0x1f8]
jmp 0x1401b114b
lea rcx, str.iphlpapi.dll
call fcn.14014a28e
mov qword [0x140471680], rax
cmp qword [0x140471680], 0
je 0x1401b106c
lea rdx, str.if_nametoindex
mov rcx, qword [0x140471680]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x200], rax
cmp qword [rsp + 0x200], 0
je 0x1401b106c
mov rax, qword [rsp + 0x200]
mov qword [0x140471660], rax
lea rcx, str.ws2_32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1401b10d1
lea rdx, str.FreeAddrInfoExW
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140471668], rax
lea rdx, str.GetAddrInfoExCancel
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140471670], rax
lea rdx, str.GetAddrInfoExW
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140471678], rax
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.140149c08
movzx eax, al
test eax, eax
je 0x1401b10fe
mov byte [0x1404747ac], 1
jmp 0x1401b1105
mov byte [0x1404747ac], 0
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
mov edx, 2
mov ecx, 6
call fcn.140149c08
movzx eax, al
test eax, eax
je 0x1401b1135
mov byte [0x1404747a1], 1
jmp 0x1401b113c
mov byte [0x1404747a1], 0
lea rcx, [0x1404747b0]
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.140149b1d
mov rax, rdi
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.140147584
add rsp, 0x220
pop rdi
ret

Function at 0x140148745
Capabilities:
Set environment variable

Disassembly:
jmp 0x1403bc4e0
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 0x140148bb4
Capabilities:
Parse pe header

Disassembly:
jmp 0x1402b3a70
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1402b3a90
xor al, al
jmp 0x1402b3b11
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1402b3aa3
xor al, al
jmp 0x1402b3b11
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 0x1402b3acd
xor al, al
jmp 0x1402b3b11
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1402b3ae1
xor al, al
jmp 0x1402b3b11
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1402b3af3
xor al, al
jmp 0x1402b3b11
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1402b3b0f
xor al, al
jmp 0x1402b3b11
mov al, 1
add rsp, 0x38
ret

Function at 0x140148e7f
Capabilities:
Get common file path

Disassembly:
jmp 0x1403abfd0
push rdi
sub rsp, 0x270
mov rax, qword [0x14046eb40]
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 0x1403ac029
lea rcx, [rsp + 0x50]
call fcn.1403abdc0
jmp 0x1403ac0fc
mov eax, dword [rsp + 0x30]
inc eax
mov eax, eax
mov dword [rsp + 0x20], Ordinal_41
lea r9, [0x14042fe30]
mov r8d, 2
mov edx, 2
mov ecx, eax
call fcn.14014b800
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140146922
lea rcx, [rsp + 0x38]
call fcn.14014ad29
test rax, rax
jne 0x1403ac091
call fcn.1401467fb
mov dword [rax], recvfrom
mov dword [rsp + 0x40], 0
lea rcx, [rsp + 0x38]
call fcn.140149825
mov eax, dword [rsp + 0x40]
jmp 0x1403ac0fc
lea rcx, [rsp + 0x38]
call fcn.14014ad29
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 0x1403ac0d8
call fcn.1401467fb
mov dword [rax], recvfrom
mov dword [rsp + 0x48], 0
lea rcx, [rsp + 0x38]
call fcn.140149825
mov eax, dword [rsp + 0x48]
jmp 0x1403ac0fc
lea rcx, [rsp + 0x38]
call fcn.14014ad29
mov rcx, rax
call fcn.1403abdc0
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x38]
call fcn.140149825
mov eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140147584
add rsp, 0x270
pop rdi
ret
Function at 0x1401496cc
Capabilities:
Terminate process

Disassembly:
jmp 0x1402d8510
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 0x1402d853e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.14014a68f
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 0x14014a28e
Capabilities:
Get common file path

Disassembly:
jmp 0x1401b1200
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 0x1401b123d
xor eax, eax
jmp 0x1401b13d9
lea rdx, str.LoadLibraryExA
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
lea rdx, [0x140460e50]
mov rcx, qword [rsp + 0x70]
call fcn.14014639b
test rax, rax
je 0x1401b12a9
cmp qword [rsp + 0x28], 0
je 0x1401b128a
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [rsp + Ordinal_41]
mov qword [rsp + 0x50], rax
jmp 0x1401b129a
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 0x1401b13d4
cmp qword [rsp + 0x28], 0
je 0x1401b12e3
lea rdx, str.AddDllDirectory
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401b12e3
mov r8d, 0x800
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [rsp + Ordinal_41]
mov qword [rsp + 0x20], rax
jmp 0x1401b13d4
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1401b13d4
mov rcx, qword [rsp + 0x70]
call fcn.1401471e2
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.14014815a]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1401b13c9
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1401b13c9
mov rcx, qword [rsp + 0x48]
call fcn.1401471e2
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
lea rdx, [0x140460e68]
mov rcx, rax
call fcn.14014648b
mov rcx, qword [rsp + 0x48]
call fcn.1401471e2
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov rdx, qword [rsp + 0x70]
mov rcx, rax
call fcn.14014648b
cmp qword [rsp + 0x28], 0
je 0x1401b13af
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [rsp + Ordinal_41]
mov qword [rsp + 0x58], rax
jmp 0x1401b13bf
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.14014674c]
mov rax, qword [rsp + 0x20]
add rsp, 0x60
pop rdi
ret
Function at 0x14014a65d
Capabilities:
Set socket configuration

Disassembly:
jmp 0x140219bb0
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
lea rdi, [rsp + 0x30]
mov ecx, Ordinal_27
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 [0x140471704], 0
jne 0x140219c31
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.140149c08
movzx eax, al
test eax, eax
je 0x140219c27
mov dword [0x140471704], 2
jmp 0x140219c31
mov dword [0x140471704], 1
cmp dword [0x140471704], 2
jne 0x140219c3c
jmp 0x140219c9a
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 0x140219c74
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x54], eax
jle 0x140219c74
jmp 0x140219c9a
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.140149b1d
add rsp, 0x90
pop rdi
ret
Function at 0x14014a72f
Capabilities:
Print debug messages

Disassembly:
jmp 0x140399a60
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 0x14014a905
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1402d7290
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1402d6be0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1402d72d9
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 [0x140495020]
jmp 0x1402d72e8
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x14014aa59
Capabilities:
Set environment variable

Disassembly:
jmp 0x1403d08c0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1401468c3
lea rcx, [rsp + 0x48]
call fcn.1401468c3
call fcn.140147b1a
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1401464a9
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1403d092f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.140147025
lea rcx, [rsp + 0x78]
call fcn.140147025
mov eax, dword [rsp + 0x24]
jmp 0x1403d09c0
call fcn.140147b1a
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1401464a9
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1403d0976
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.140147025
lea rcx, [rsp + 0x78]
call fcn.140147025
mov eax, dword [rsp + 0x2c]
jmp 0x1403d09c0
lea rcx, [rsp + 0x48]
call fcn.140146788
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.140146788
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.140147025
lea rcx, [rsp + 0x78]
call fcn.140147025
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x14014ad9c
Capabilities:
Create thread

Disassembly:
jmp 0x140334d00
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 0x140334d2c
mov dword [rsp + 0x30], 1
jmp 0x140334d34
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x140334d7d
lea rax, str.procedure___nullptr
mov qword [rsp + 0x28], rax
lea rax, [0x140408a90]
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.140144c4e
cmp eax, 1
jne 0x140334d7d
int3
cmp dword [rsp + 0x34], 0
jne 0x140334dbf
call fcn.1401467fb
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.140149e97
xor eax, eax
jmp 0x140334ebf
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call fcn.1403347f0
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1403345f0
lea rcx, [rsp + 0x40]
call fcn.140334660
movzx eax, al
test eax, eax
jne 0x140334e0f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x40]
call fcn.140334640
mov rax, qword [rsp + 0x50]
jmp 0x140334ebf
lea rcx, [rsp + 0x40]
call fcn.1403349a0
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, [0x1403343a0]
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 0x140334e83
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140146062
mov qword [rsp + 0x58], 0
lea rcx, [rsp + 0x40]
call fcn.140334640
mov rax, qword [rsp + 0x58]
jmp 0x140334ebf
cmp qword [rsp + 0xa8], 0
je 0x140334e9c
mov rax, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0x38]
mov dword [rax], ecx
lea rcx, [rsp + 0x40]
call fcn.140334960
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x40]
call fcn.140334640
mov rax, qword [rsp + 0x60]
add rsp, 0x78
ret
Function at 0x14014ada6
Capabilities:
Check for software breakpoints

Disassembly:
jmp 0x1401c31c0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x50]
add rax, 0xf0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 0x50]
mov dword [rax + 0x1380], ecx
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x6e4]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x1388], eax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x1359]
test eax, eax
je 0x1401c3235
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x1359]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x6e4]
cmp eax, ecx
jle 0x1401c324c
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x6e4]
mov byte [rax + 0x1359], cl
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x1168], 0
je 0x1401c3285
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x135a]
test eax, eax
jne 0x1401c3285
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x50], 0x1a0
jne 0x1401c3285
mov rax, qword [rsp + 0x20]
mov byte [rax + 0xd0], 1
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x6e4]
cmp eax, 0xa
jne 0x1401c32b8
lea rdx, str.HTTP_1.0__assume_close_after_body
mov rcx, qword [rsp + 0x50]
call fcn.14014a487
mov edx, 1
mov rcx, qword [rsp + 0x58]
call fcn.14014759d
jmp 0x1401c3320
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x6e4]
cmp eax, 0x14
je 0x1401c32df
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x6c], 2
jne 0x1401c32f9
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x50], 0x65
jne 0x1401c32f9
xor eax, eax
test eax, eax
jne 0x1401c32df
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x6a8]
mov dword [rax], 2
jmp 0x1401c3320
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x6e4]
cmp eax, 0xb
jl 0x1401c3320
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x2ae]
test eax, eax
jne 0x1401c3320
xor eax, eax
test eax, eax
jne 0x1401c331a
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x50], 0x64
jl 0x1401c3343
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x50], 0xc8
jge 0x1401c3343
mov dword [rsp + 0x28], 1
jmp 0x1401c334b
mov dword [rsp + 0x28], 0
cmp dword [rsp + 0x28], 0
jne 0x1401c335c
mov dword [rsp + 0x2c], 0
jmp 0x1401c3364
mov dword [rsp + 0x2c], 1
mov rax, qword [rsp + 0x20]
movzx ecx, byte [rsp + 0x2c]
mov byte [rax + 0xd1], cl
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x50]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xcc
je 0x1401c33b8
cmp dword [rsp + 0x30], 0x130
je 0x1401c3396
jmp 0x1401c33dd
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x510]
test eax, eax
je 0x1401c33b2
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x145c], 1
xor eax, eax
test eax, eax
jne 0x1401c33b2
mov rax, qword [rsp + 0x20]
mov qword [rax], 0
mov rax, qword [rsp + 0x20]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x20]
mov byte [rax + 0xd1], 1
xor eax, eax
add rsp, 0x40
pop rdi
ret