joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180010b80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x180010bb3
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x180010bf9
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x180010bf4
nop
cmp rbx, rcx
jae 0x180010bf9
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
dec edi
jne 0x180010be0
cmp rbx, rcx
jb 0x180010bfd
xor eax, eax
jmp 0x180010c09
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180010c40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1800713f0]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp edx, 1
jne 0x180010d1e
lea rdx, [rsp + 0x30]
mov r8d, 0x104
xor ecx, ecx
call fcn.18000ecc0
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.180014744
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x26], 0x75732074
mov dword [rsp + 0x2c], 0x74726f
mov dword [rsp + 0x21], 0x6174736e
mov word [rsp + 0x2a], 0x7070
mov byte [rsp + 0x20], 0x69
mov byte [rsp + 0x25], 0x6e
call fcn.18001444c
test rax, rax
jne 0x180010d52
lea rdx, [sym.gphelper.dll_HookSetWindowPos]
lea rcx, [0x180072ae8]
call fcn.180011b60
test eax, eax
je 0x180010d52
lea rdx, [sym.gphelper.dll_HookSetForegroundWindow]
lea rcx, [0x180072a90]
call fcn.180011b60
test eax, eax
je 0x180010d52
lea rdx, [sym.gphelper.dll_HookSetActiveWindow]
lea rcx, [0x180072bd8]
call fcn.180011b60
test eax, eax
je 0x180010d52
lea rdx, [sym.gphelper.dll_HookBringWindowToTop]
lea rcx, [0x180072b78]
call fcn.180011b60
jmp 0x180010d52
test edx, edx
jne 0x180010d52
lea rcx, [0x180072ae8]
call fcn.180011fc0
lea rcx, [0x180072a90]
call fcn.180011fc0
lea rcx, [0x180072bd8]
call fcn.180011fc0
lea rcx, [0x180072b78]
call fcn.180011fc0
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180012d90
add rsp, 0x158
ret
Function at 0x180011850
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1800713f0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, rcx
lea rcx, [rbp - 0x30]
xor ebx, ebx
mov r12, r9
mov r15, r8
mov r14d, edx
mov word [rbp - 0x2c], 0x3233
mov dword [rbp - 0x2a], 0x6c6c642e
mov word [rbp - 0x2f], 0x6573
mov byte [rbp - 0x26], bl
mov byte [rbp - 0x30], 0x55
mov byte [rbp - 0x2d], 0x72
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x18000ea4f
lea rdx, [rbp - 0x20]
mov rcx, rax
mov word [rbp - 0x14], 0x7845
mov byte [rbp - 0x12], bl
mov dword [rbp - 0x19], 0x6f6f4874
mov dword [rbp - 0x1d], 0x78654e6c
mov word [rbp - 0x1f], 0x6c61
mov byte [rbp - 0x15], 0x6b
mov byte [rbp - 0x20], 0x43
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18000ea46
mov r9, r12
mov r8, r15
mov edx, r14d
mov rcx, rsi
call rax
mov rbx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, rbx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180012d90
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r9, r8
mov r8, rdx
mov edx, ecx
xor ecx, ecx
jmp 0x18000e9a0

Function at 0x180012240
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x500
mov rax, qword [0x1800713f0]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov ebp, r8d
mov rsi, rdx
mov r8d, ecx
mov ecx, 0x1fffff
xor edx, edx
call fcn.18000f050
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x180012315
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, rbx
cmp eax, 0xffffffff
je 0x180012347
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x518], rdi
mov dword [rsp + 0x50], 0x100001
xor edi, edi
call fcn.18000ee20
test eax, eax
je 0x18001230a
nop
mov rcx, qword [rsp + 0x118]
cmp rcx, rsi
jb 0x18001230a
lea rax, [rsi + rbp]
cmp rcx, rax
jae 0x18001230a
mov rcx, rbx
call fcn.18000f3b0
cmp edi, 3
jge 0x18001233a
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
lea rdx, [rsp + 0x20]
mov rcx, rbx
inc edi
call fcn.18000ee20
test eax, eax
jne 0x1800122c0
mov rax, rbx
mov rdi, qword [rsp + 0x518]
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.180012d90
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18001230d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180012315
Function at 0x140001bd0
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002220
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002220
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x140001ec0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x140001f50
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov esi, 1
cmp byte [0x140275a38], 1
jne 0x140001fac
mov rdi, rdx
mov r14, rcx
mov ecx, 1
mov edx, 0x18
call sub.msvcrt.dll_calloc
test rax, rax
je 0x140001fac
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov ecx, dword [0x140275048]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rbx + 0x10], rax
mov ecx, dword [0x140275048]
mov rdx, rbx
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
xor esi, esi
mov eax, esi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140001f50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x140001f50
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov esi, 1
cmp byte [0x140275a38], 1
jne 0x140001fac
mov rdi, rdx
mov r14, rcx
mov ecx, 1
mov edx, 0x18
call sub.msvcrt.dll_calloc
test rax, rax
je 0x140001fac
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov ecx, dword [0x140275048]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rbx + 0x10], rax
mov ecx, dword [0x140275048]
mov rdx, rbx
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
xor esi, esi
mov eax, esi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

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

Disassembly:
mov rax, qword [0x140123010]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000385c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000385c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000385c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000385c
sub rcx, qword [0x140123010]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140003848
add rax, 0x28
dec edx
je 0x14000385c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140003840
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140003840
jmp 0x14000385e
xor eax, eax
ret

Function at 0x140003860
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140123010]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140003895
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140003895
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140003895
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x140003910
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140123010]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x14000393c
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14000393c
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x14000393e
xor eax, eax
ret
Function at 0x140026426
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1c0
mov ebx, ecx
mov eax, 1
lock xadd dword [0x140277b14], eax
test eax, eax
jne 0x140026456
lea rdx, [rsp + 0x28]
mov cx, 2
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x140277b18], eax
test bl, bl
je 0x140026491
mfence
mov eax, dword [0x140277b18]
test eax, eax
je 0x140026491
lea rcx, [rsp + 0x28]
and qword [rcx], 0
mov qword [rcx + 0x10], 3
mov dword [rcx], eax
lea rax, [0x140275918]
mov qword [rcx + 8], rax
lea rdx, str.winsock
call fcn.14003d7b6
nop
add rsp, 0x1c0
pop rbx
ret

Function at 0x140026d2b
Capabilities:
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
add rax, r8
movabs r8, 0x100000001b3
cmp rcx, rdx
je 0x140026d57
movsx r9, byte [rcx]
xor rax, r9
imul rax, r8
inc rcx
jmp 0x140026d42
ret

Function at 0x140031ed5
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov eax, dword [0x1402759e8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp byte [rax + 0x280], 0
je 0x140031efe
add rsp, 0x28
pop rdi
pop rsi
ret
mov eax, dword [0x1402759e8]
mov rcx, qword gs:[0x58]
mov rdi, qword [rcx + rax*8]
mov byte [rdi + 0x280], 1
lea rdx, [rdi + 0x18]
lea rcx, [fcn.140031b5e]
lea rsi, [0x140275a70]
mov r8, rsi
call fcn.140001ec0
lea rdx, [rdi + 0x30]
lea rcx, [fcn.140031b6e]
mov r8, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140001ec0
Function at 0x1400388ba
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov edi, 2
cmp rcx, 1
je 0x1400388ea
lea rax, [rcx - 1]
test rcx, rax
jne 0x1400388e2
mov rdi, rcx
jmp 0x1400388ea
call fcn.140049450
mov rdi, rax
mov r13, qword [0x14027bd30]
movabs r12, 0x5555555555555555
movabs r15, 0x3333333333333333
movabs r14, 0xf0f0f0f0f0f0f0f
movabs rbx, 0x101010101010101
cmp rdi, r13
jbe 0x1400389bd
mov rsi, rdi
mov rax, rsi
shr rax, 0x3d
jne 0x140038b4f
lea rcx, [rsi*8]
call fcn.14003b720
mov rcx, rax
call fcn.140038b8a
mov qword [0x14027bd30], rsi
xor eax, eax
cmp rsi, rax
je 0x140038966
mov rcx, qword [0x14027bd28]
and qword [rcx + rax*8], 0
inc rax
jmp 0x140038950
mov r8, qword [0x14027bd38]
test r8, r8
je 0x140038b3f
mov rcx, qword [r8 + 8]
mov rax, rsi
shr rax, 1
and rax, r12
mov rdx, rsi
sub rdx, rax
mov rax, rdx
and rax, r15
shr rdx, 2
and rdx, r15
add rdx, rax
mov r9, rdx
shr r9, 4
add r9, rdx
and r9, r14
imul r9, rbx
shr r9, 0x38
cmp r9, 1
ja 0x1400389dd
lea rax, [rsi - 1]
and rcx, rax
jmp 0x1400389ed
jae 0x140038b3f
mov rax, qword [0x14027bd40]
test rax, rax
js 0x140038a71
cvtsi2ss xmm0, rax
jmp 0x140038a86
cmp rcx, rsi
jb 0x1400389ed
mov rax, rcx
xor edx, edx
div rsi
mov rcx, rdx
mov rax, qword [0x14027bd28]
lea rdx, [0x14027bd38]
mov qword [rax + rcx*8], rdx
lea r10, [rsi - 1]
mov r11, qword [r8]
test r11, r11
je 0x140038b3f
mov rax, qword [r11 + 8]
cmp r9d, 1
ja 0x140038a1e
and rax, r10
jmp 0x140038a2b
cmp rax, rsi
jb 0x140038a2b
xor edx, edx
div rsi
mov rax, rdx
cmp rax, rcx
je 0x140038a6c
mov rdx, qword [0x14027bd28]
cmp qword [rdx + rax*8], 0
je 0x140038a65
mov rdx, qword [r11]
mov qword [r8], rdx
mov rdx, qword [0x14027bd28]
mov rdx, qword [rdx + rax*8]
mov rdx, qword [rdx]
mov qword [r11], rdx
mov rdx, qword [0x14027bd28]
mov rax, qword [rdx + rax*8]
mov qword [rax], r11
jmp 0x140038a03
mov qword [rdx + rax*8], r8
mov rcx, rax
mov r8, r11
jmp 0x140038a03
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [0x14027bd48]
call fcn.140120eb0
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x14012c724]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp r13, 3
jb 0x140038b10
mov rcx, r13
shr rcx, 1
and rcx, r12
mov rdx, r13
sub rdx, rcx
mov rcx, rdx
shr rcx, 2
and rdx, r15
and rcx, r15
add rcx, rdx
mov rdx, rcx
shr rdx, 4
add rdx, rcx
and rdx, r14
imul rdx, rbx
shr rdx, 0x38
cmp edx, 1
ja 0x140038b10
lea rcx, [rax - 1]
bsr rcx, rcx
xor ecx, 0x3f
neg cl
mov esi, 1
shl rsi, cl
cmp rax, 2
cmovb rsi, rax
jmp 0x140038b1b
mov rcx, rax
call fcn.140049450
mov rsi, rax
cmp rdi, rsi
cmova rsi, rdi
cmp rsi, r13
jae 0x140038b3f
test rsi, rsi
jne 0x140038925
xor ecx, ecx
call fcn.140038b8a
and qword [0x14027bd30], 0
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140015ae8
int3
Function at 0x140038d08
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x160
mov rax, qword [rcx + 0x10]
inc rax
cmp rax, 2
jb 0x140038e3a
mov rbx, rdx
mov rdi, rcx
mov rsi, qword [rcx + 0x18]
mov rcx, rsi
call sub.KERNEL32.DLL_AcquireSRWLockExclusive
xorps xmm0, xmm0
movups xmmword [rbx + 0x28], xmm0
lea rax, [rsp + 0x60]
and qword [rax - 0x10], 0
lea rcx, [0x1402620a0]
mov qword [rax - 0x20], rcx
mov qword [rax - 0x18], rax
mov qword [rax - 8], 0xfa
mov rcx, qword [rdi + 0x28]
lea r8, [rsp + 0x40]
mov rdx, rbx
call fcn.140037342
cmp byte [rdi + 0x20], 0
je 0x140038dc8
mov r9, qword [rbx + 0x28]
cmp qword [rbx + 0x30], r9
jbe 0x140038dc8
lea rdx, [rsp + 0x40]
mov rcx, rdi
xor r8d, r8d
call fcn.140038f7e
mov eax, dword [rbx + 0x10]
movzx ebp, word [rdi + rax*2 + 0x30]
mov rcx, qword [rdi + 0x10]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.DLL_GetConsoleScreenBufferInfo]
test eax, eax
je 0x140038ded
mov eax, dword [rsp + 0x30]
and eax, 0xfffffff0
or ebp, eax
mov rcx, qword [rdi + 0x10]
mov edx, ebp
call qword [sym.imp.KERNEL32.DLL_SetConsoleTextAttribute]
movzx ebp, word [rsp + 0x30]
jmp 0x140038df1
lea r9, [rsp + 0x28]
and dword [r9], 0
mov r8d, dword [rsp + 0x50]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rsp + 0x48]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_WriteFile]
jmp 0x140038e28
mov bp, 7
mov r8, qword [rbx + 0x28]
mov r9, qword [rbx + 0x30]
lea r14, [rsp + 0x40]
mov rcx, rdi
mov rdx, r14
call fcn.140038f7e
mov rcx, qword [rdi + 0x10]
mov edx, ebp
call qword [sym.imp.KERNEL32.DLL_SetConsoleTextAttribute]
mov r8, qword [rbx + 0x30]
mov r9, qword [r14 + 0x10]
mov rcx, rdi
mov rdx, r14
call fcn.140038f7e
lea rcx, [rsp + 0x40]
call fcn.140035708
mov rcx, rsi
call sub.KERNEL32.DLL_ReleaseSRWLockExclusive
nop
add rsp, 0x160
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x140039cc5
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
mov rax, qword [rsp + 0x58]
mov r10, qword [rsp + 0x50]
movzx ecx, cx
mov r11d, ecx
shr r11d, 8
xor esi, esi
xor ebx, ebx
cmp rsi, r8
je 0x140039d21
movzx ebp, byte [rdx + rsi*2]
movzx edi, byte [rdx + rsi*2 + 1]
mov ebx, ebx
add rdi, rbx
cmp r11d, ebp
jb 0x140039d21
jne 0x140039d11
cmp rbx, rdi
jae 0x140039d11
lea r14, [rbx + 1]
cmp byte [r9 + rbx], cl
mov rbx, r14
jne 0x140039cfd
jmp 0x140039d18
inc rsi
mov ebx, edi
jmp 0x140039ce3
xor eax, eax
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov dl, 1
xor r8d, r8d
cmp r8, rax
jae 0x140039d56
movzx r9d, byte [r10 + r8]
test r9b, r9b
jns 0x140039d49
and r9d, 0x7f
shl r9d, 8
movzx r11d, byte [r10 + r8 + 1]
inc r8
or r9d, r11d
sub ecx, r9d
js 0x140039d56
xor dl, 1
inc r8
jmp 0x140039d26
test dl, dl
setne al
jmp 0x140039d1a
Function at 0x14003d758
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x40
call qword [sym.imp.KERNEL32.DLL_TlsAlloc]
mov esi, eax
cmp eax, 0xffffffff
jne 0x14003d7a1
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea rcx, [rsp + 0x28]
and qword [rcx], 0
xor edx, edx
test eax, eax
sete dl
xor rdx, 3
mov qword [rcx + 0x10], rdx
mov dword [rcx], eax
lea rax, [0x140275918]
mov qword [rcx + 8], rax
lea rdx, [0x1401358be]
call fcn.14003d7b6
mov eax, esi
add rsp, 0x40
pop rsi
ret

Function at 0x14003e498
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov qword [rcx], rdx
mov qword [rcx + 8], r8
call fcn.14003dd2e
mov qword [rsi + 0x10], rax
mov rcx, rsi
add rsp, 0x20
pop rsi
jmp 0x14003e75e
mov rdx, rcx
mov ecx, dword [0x140277b0c]
jmp qword [sym.imp.KERNEL32.DLL_TlsSetValue]

Function at 0x14003ebb6
Capabilities:
Terminate thread

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
movdqu xmm0, xmmword [rcx]
pshufd xmm0, xmm0, 0x4e
lea rdx, [rsp + 0x20]
movdqa xmmword [rdx], xmm0
mov ecx, 2
xor r8d, r8d
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mfence
mov eax, dword [0x140277b1c]
mov rdx, qword [rsi]
test eax, eax
je 0x14003ec0b
mov rcx, rdx
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_TerminateThread]
jmp 0x14003ec29
lea rcx, [0x14003ec5d]
xor r8d, r8d
call qword [sym.imp.KERNEL32.DLL_QueueUserAPC]
mov rcx, qword [rsi]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
nop
add rsp, 0x30
pop rsi
ret
Function at 0x14003f424
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov ecx, 0x20
call fcn.14003b720
lea rcx, [0x140262658]
mov qword [rax], rcx
mov qword [rax + 0x18], rsi
mov rcx, rdi
mov rdx, rax
xor r8d, r8d
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14003e196

Function at 0x14003fdcd
Capabilities:
Set socket configuration

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
cmp rcx, 0xffffffffffffffff
je 0x14003fec4
mov rsi, r9
mov rbx, rdx
mov rdi, rcx
test r8b, r8b
je 0x14003fe36
test byte [rbx], 8
je 0x14003fe36
lea rax, [rsp + 0x58]
and dword [rax], 0
xorps xmm0, xmm0
lea rcx, [rsp + 0x40]
movaps xmmword [rcx], xmm0
and qword [rcx + 0x10], 0
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 4
mov rcx, rdi
mov rdx, rbx
mov r8d, 0xffff
mov r9d, pe_nt_image_headers64
call fcn.14003fed0
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebp, eax
test eax, eax
setne dl
mov rcx, rsi
call fcn.14003fcd0
test ebp, ebp
je 0x14003fec4
lea r14, [rsp + 0x40]
mov rcx, r14
mov edx, 0x2733
call fcn.14003fc9a
mov rcx, rsi
mov rdx, r14
call fcn.140030f34
test al, al
jne 0x14003fe94
lea r14, [rsp + 0x58]
mov rcx, r14
mov edx, 0x4d5
call fcn.14003fc9a
mov rcx, rsi
mov rdx, r14
call fcn.140030f34
test al, al
je 0x14003fec4
lea r8, [rsp + 0x40]
and dword [r8], 0
mov rcx, rdi
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [rbx], 0xfc
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
setne dl
mov rcx, rsi
call fcn.14003fcd0
nop
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x14003fed0
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, qword [rsp + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x14003ff25
mov r10, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
cmp r8d, 0xffff
jne 0x14003feff
cmp r9d, 0x80
jne 0x14003feff
or byte [rdx], 8
mov dword [rsp + 0x20], r10d
mov edx, r8d
mov r8d, r9d
mov r9, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
setne dl
mov rcx, rsi
add rsp, 0x30
pop rsi
jmp fcn.14003fcd0
mov rcx, rsi
mov edx, 0x2719
add rsp, 0x30
pop rsi
jmp fcn.14003ddc2

Function at 0x14003ff37
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rdi, rdx
mov ebx, ecx
mov dword [rsp + 0x28], 1
and dword [rsp + 0x20], 0
mov edx, 1
mov r8d, 6
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
sete dl
mov rcx, rdi
call fcn.14003fcd0
cmp ebx, 0x17
jne 0x14003ffa6
cmp rsi, 0xffffffffffffffff
je 0x14003ffa6
lea r9, [rsp + 0x3c]
and dword [r9], 0
mov dword [rsp + 0x20], 4
mov rcx, rsi
mov edx, 0x29
mov r8d, 0x1b
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003fff2
Capabilities:
Connect socket

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, r9
cmp rcx, 0xffffffffffffffff
je 0x140040018
call qword [sym.imp.WS2_32.dll_connect]
mov edi, eax
test eax, eax
setne dl
mov rcx, rsi
call fcn.14003fcd0
jmp 0x14004002a
mov rcx, rsi
mov edx, 0x2719
call fcn.14003ddc2
mov edi, 0xffffffff
mov eax, edi
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x140040033
Capabilities:
Set socket configuration

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov r14, r9
cmp rcx, 0xffffffffffffffff
je 0x140040074
mov rbx, r8
mov rsi, rdx
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, eax
mov edx, eax
shr edx, 0x1f
mov rcx, r14
call fcn.14003fcd0
test edi, edi
js 0x14004008c
cmp dword [rbx], 0
mov al, byte [rsi]
je 0x140040088
or al, 1
jmp 0x14004008a
mov rcx, r14
mov edx, 0x2719
call fcn.14003ddc2
mov edi, 0xffffffff
jmp 0x14004008c
and al, 0xfc
mov byte [rsi], al
mov eax, edi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400402ae
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
sub rsp, 0x70
lea rax, [rsp + 0x3b]
mov byte [rax], 0
lea rdx, [rsp + 0x60]
mov qword [rdx + 8], rax
mov dword [rdx], 1
xorps xmm0, xmm0
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
and qword [rsi + 0x10], 0
lea r9, [rsp + 0x3c]
and dword [r9], 0
movups xmmword [rsp + 0x28], xmm0
and dword [rsp + 0x20], 0
mov r8d, 1
call qword [sym.imp.WS2_32.dll_WSASend]
mov rcx, rsi
mov dl, 1
call fcn.14003fcd0
cmp qword [rsi + 0x10], 1
mov ecx, dword [rsi]
jne 0x140040342
mov rax, qword [rsp + 0x48]
mov r8d, 0x1ffff7
xor edx, edx
div r8
imul eax, edx, 0x3e8
add eax, ecx
mov edx, 0x2746
cmp eax, 0x40
je 0x140040359
mov rax, qword [rsp + 0x48]
xor edx, edx
div r8
imul eax, edx, 0x3e8
add ecx, eax
jmp 0x14004034c
mov edx, 0x2746
cmp ecx, 0x40
je 0x140040359
mov edx, 0x274d
cmp ecx, 0x4d2
jne 0x140040363
lea rcx, [rsp + 0x40]
call fcn.14003ddc2
nop
add rsp, 0x70
pop rsi
ret

Function at 0x140041652
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rdi, rcx
mov rsi, qword [rsp + 0x80]
mov rax, qword [rcx + 8]
lock inc dword [rax + 0x30]
test r9b, r9b
je 0x14004167d
mov rcx, qword [rdi + 8]
mov rdx, rsi
xor r8d, r8d
jmp 0x1400416f2
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
je 0x1400416e5
lea r9, [rsp + 0x3c]
and dword [r9], 0
and qword [rsp + 0x30], 0
mov qword [rsp + 0x28], rsi
and dword [rsp + 0x20], 0
mov rdx, r8
mov r8d, 1
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov r8d, 0x274d
cmovne r8d, eax
mov rcx, qword [rdi + 8]
test ebx, ebx
je 0x140041701
cmp r8d, 0x3e5
je 0x140041701
mov r9d, dword [rsp + 0x3c]
mov rdx, rsi
call fcn.140041400
jmp 0x140041709
mov rcx, qword [rdi + 8]
mov rdx, rsi
mov r8d, 0x2719
xor r9d, r9d
add rsp, 0x40
pop rbx
pop rdi
pop rsi
jmp fcn.140041400
mov rdx, rsi
call fcn.140041496
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
Function at 0x140041712
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rdi, rcx
mov rsi, qword [rsp + 0x80]
mov rax, qword [rcx + 8]
lock inc dword [rax + 0x30]
test r9b, r9b
je 0x140041740
mov rcx, qword [rdi + 8]
mov rdx, rsi
xor r8d, r8d
jmp 0x1400417c8
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
je 0x1400417bb
lea r9, [rsp + 0x38]
and dword [r9], 0
lea rax, [rsp + 0x3c]
and dword [rax], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
and qword [rsp + 0x30], 0
mov rdx, r8
mov r8d, 1
call qword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmovne ecx, eax
cmp eax, 0x40
mov r8d, 0x2746
cmovne r8d, ecx
mov rcx, qword [rdi + 8]
test ebx, ebx
je 0x1400417d7
cmp r8d, 0x3e5
je 0x1400417d7
mov r9d, dword [rsp + 0x38]
mov rdx, rsi
call fcn.140041400
jmp 0x1400417df
mov rcx, qword [rdi + 8]
mov rdx, rsi
mov r8d, 0x2719
xor r9d, r9d
add rsp, 0x40
pop rbx
pop rdi
pop rsi
jmp fcn.140041400
mov rdx, rsi
call fcn.140041496
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret