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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call sym.__pthread_self_lite
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x140086fbf
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_longjmp]
call rax
mov eax, dword [0x140091960]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140087103
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14008705c
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x140087017
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 0x10], 0
mov eax, dword [0x140091960]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x140087103
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x140087096
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x140087103
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 0x10], 0
mov eax, dword [0x140091960]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x140087d45
Capabilities:
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x14], 0
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
call sym._fpreset
lea rax, [0x140091970]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x1400adad0]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x140091960]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 8]
mov dword [rdx + 0x70], eax
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rdx, rbp
mov rax, qword [rbp - 8]
add rax, 0xd0
mov rcx, rax
call sym._setjmp
test eax, eax
jne 0x140087e5a
mov qword [rbp - 0x10], pe_nt_image_headers64
lea rax, [0x140091970]
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x140087e28
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov rcx, rax
call rdx
mov qword [rbp - 0x10], rax
nop
nop
lea rax, [0x140091970]
mov rcx, rax
call sym.pthread_mutex_lock
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
jmp 0x140087e69
lea rax, [0x140091970]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov dword [rbp - 0x14], eax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x140087ea5
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x140087f13
mov rax, qword [rbp - 8]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 8], 0
mov eax, dword [0x140091960]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x140087f5d
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 8]
mov dword [rax + 0xbc], 1
jmp 0x140087f5d
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, [0x140091970]
mov rcx, rax
call sym.pthread_mutex_unlock
test eax, eax
je 0x140087f4f
mov eax, dword [rbp - 0x14]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x401586
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
movaps xmmword [rsp + 0x40], xmm6
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov r14, qword [rcx + 0x10]
mov rax, qword [rcx + 0x18]
sub rax, r14
cmp rax, r8
jae 0x401727
lea rbp, [rdi + 0x10]
mov r15d, 0x7fffffff
xorps xmm6, xmm6
test rsi, rsi
je 0x40174e
mov r8, qword [rdi + 8]
mov rax, qword [rdi + 0x10]
mov rcx, qword [rdi + 0x18]
cmp rcx, rax
jne 0x401614
cmp r8, rsi
ja 0x401614
movups xmmword [rbp], xmm6
mov rax, qword [rdi + 0x28]
mov rcx, qword [rax]
cmp rsi, r15
mov r8d, 0x7fffffff
cmovb r8, rsi
mov rdx, rbx
xor r9d, r9d
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x40165c
movsxd r12, eax
jmp 0x40170f
mov r12, rcx
mov r13, qword [rdi]
sub r12, rax
jbe 0x40162e
test r13, r13
je 0x4016b2
lea r8, [rax + r13]
jmp 0x401691
mov r14, qword [rdi + 0x20]
mov rax, qword [rdi + 0x28]
mov rcx, qword [rax]
cmp r8, r15
cmovae r8, r15
mov rdx, r13
xor r9d, r9d
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x40166d
movsxd r12, eax
cmp r14, r12
cmovbe r14, r12
jmp 0x40167c
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x4016a7
jmp 0x401752
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x4016a7
xor r12d, r12d
and qword [rdi + 0x10], 0
mov qword [rdi + 0x18], r12
mov qword [rdi + 0x20], r14
mov r8, r13
xor eax, eax
mov rcx, r12
cmp rsi, r12
cmovb r12, rsi
cmp r12, 1
jne 0x4016df
mov dl, byte [r13 + rax]
mov byte [rbx], dl
jmp 0x401701
mov r12d, eax
shl r12, 0x20
or r12, 2
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], 1
mov rcx, r12
call fcn.0040154c
test al, al
je 0x40175b
lea rcx, [rsp + 0x38]
call fcn.00402383
jmp 0x4015c5
lea rax, str._rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_std_srcioimpls.rs
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov rdx, r12
mov r9, r12
call fcn.0040241a
mov rax, qword [rdi + 0x10]
mov rcx, qword [rdi + 0x18]
add rax, r12
cmp rax, rcx
cmovae rax, rcx
mov qword [rbp], rax
test r12, r12
je 0x401752
mov rax, rsi
sub rax, r12
jb 0x401774
add rbx, r12
mov rsi, rax
jmp 0x4015c5
mov r8, qword [rdi]
add r8, r14
lea rax, str._rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_std_srcio_buffered_bufreader.rs_b
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov rdx, rsi
mov r9, rsi
call fcn.0040241a
add r14, rsi
mov qword [rdi + 0x10], r14
xor eax, eax
jmp 0x40175e
lea rax, str.failed_to_fill_whole_buffer
jmp 0x40175e
mov rax, r12
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str._rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_std_srciomod.rs
mov rcx, r12
mov rdx, rsi
call fcn.00405380
ud2
Function at 0x4094e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x409570
cmp r11, r10
ja 0x4095e6
cmp r10, rdx
ja 0x4095fa
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x409572
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x409550
jmp 0x4095d4
ja 0x40957a
mov r11, r10
cmp rax, r8
jne 0x409514
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x4095b0
mov rdi, r8
sub ecx, edx
jns 0x4095cb
jmp 0x4095d6
cmp r8, rsi
je 0x40960b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x4095d6
xor al, 1
cmp rdi, rsi
jne 0x409590
jmp 0x4095d6
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.00406710
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.00405ce0
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.00406080
ud2

Function at 0x40fbe0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.00405870
cmp rax, rcx
je 0x40fc05
cmp rdx, 4
jae 0x40fc08
xor eax, eax
xor r8d, r8d
jmp 0x40fca0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x0043b490]
movdqa xmm3, xmmword [0x0043b4a0]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x40fc30
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x40fcb7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x40fca0
ret
Function at 0x410c30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r8, qword [rcx]
test r8, r8
je 0x410c8b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x410c8b
movzx eax, byte [r8 + rcx]
cmp eax, 0x49
je 0x410ca6
cmp eax, 0x42
jne 0x410c8b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x410d56
cmp byte [r8 + r11], 0x5f
jne 0x410d56
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x410dbe
mov rcx, rsi
xor edx, edx
call fcn.0040c620
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.0040c620
test al, al
jne 0x410e51
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x410ce2
lea rdx, [0x0043eb6b]
mov r8d, 1
call fcn.00405d60
test al, al
jne 0x410e51
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x410c9a
xor r14d, r14d
lea rbx, [0x0043eed9]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x410d14
cmp byte [rax + rcx], 0x45
je 0x410e73
sub r14, 1
jb 0x410d39
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x410d39
mov r8d, 2
mov rdx, rbx
call fcn.00405d60
test al, al
jne 0x410e51
mov rcx, rsi
call fcn.0040de50
test al, al
jne 0x410e51
mov rax, qword [rsi]
test rax, rax
jne 0x410d00
jmp 0x410c9a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r9b, 1
cmp r11, r10
jae 0x410e18
movzx edx, byte [r8 + r11]
cmp dl, 0x5f
je 0x410db2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x410d9c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x410d8b
add dl, 0xa9
jmp 0x410d9a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x410e18
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x410e18
movzx edx, bl
add rax, rdx
jae 0x410d60
jmp 0x410e18
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x410e18
cmp rax, rcx
jae 0x410e15
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x410e6b
cmp qword [rsi + 0x20], 0
je 0x410e64
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.00410c30
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x410c9c
mov r9b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x410e59
mov eax, r9d
xor al, 1
movzx eax, al
lea r8, [rax + rax*8]
add r8, 0x10
lea rax, str.invalid_syntaxrecursion_limit_reached_for_______::closureshim_as__mut_const___dyn___unsafe_extern__
lea rdx, [0x0043eeb8]
test r9b, r9b
cmovne rdx, rax
call fcn.00405d60
test al, al
je 0x410e59
mov dil, 2
jmp 0x410c9a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x410c9a
mov dil, 1
xor r9d, r9d
jmp 0x410e1a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x410c9a
Function at 0x4141e0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x414265
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x4142a6
cmp dword [rsp + 0x2c], 0
je 0x41428a
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x4142ce
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x00448100]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x00448100], rsi
jne 0x414240
mov byte [0x004480f8], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x41429c
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x41431a
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x41428f
mov edi, dword [rsp + 0x28]
jmp 0x41429c
mov edi, dword [rsi + 0x18]
jmp 0x41429a
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.KERNEL32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rdx, [0x004417e0]
lea r9, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0x30]
call fcn.00414770
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.called__Option::unwrap____on_a__None__value_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.00405340
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.called__Option::unwrap____on_a__None__value_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.004147b0
ud2
Function at 0x414640
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x0043a078]
test ecx, ecx
je 0x414720
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x414674
mov rdi, rax
cmp qword [rax + 8], 0
je 0x414674
add rdi, 0x10
jmp 0x414716
mov ecx, dword [0x0043a078]
test ecx, ecx
je 0x414733
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x414714
mov rsi, rax
test rax, rax
jne 0x4146e3
movzx eax, byte [0x00448040]
mov ecx, 0x18
mov edx, 8
call fcn.00404480
test rax, rax
je 0x414756
mov rsi, rax
lea rax, [0x0043a060]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x0043a078]
test ecx, ecx
je 0x414746
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x414716
test rcx, rcx
je 0x414716
lock dec qword [rcx]
jne 0x414716
call fcn.00414190
jmp 0x414716
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x0043a060]
call fcn.004141e0
mov ecx, eax
jmp 0x414656
lea rcx, [0x0043a060]
call fcn.004141e0
mov ecx, eax
jmp 0x414684
lea rcx, [0x0043a060]
call fcn.004141e0
mov ecx, eax
jmp 0x4146db
mov ecx, 8
mov edx, 0x18
call fcn.004048e0
ud2

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x0043a098]
test ecx, ecx
je 0x414ddf
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x414d69
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x414dce
mov ecx, dword [0x0043a098]
test ecx, ecx
je 0x414df2
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x414dd4
mov rsi, rax
test rax, rax
jne 0x414dc8
movzx eax, byte [0x00448040]
mov ecx, 0x10
mov edx, 8
call fcn.00404480
test rax, rax
je 0x414e15
mov rsi, rax
lea rax, [0x0043a080]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x0043a098]
test ecx, ecx
je 0x414e05
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
jmp 0x414dd6
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x0043a080]
call fcn.004141e0
mov ecx, eax
jmp 0x414d55
lea rcx, [0x0043a080]
call fcn.004141e0
mov ecx, eax
jmp 0x414d75
lea rcx, [0x0043a080]
call fcn.004141e0
mov ecx, eax
jmp 0x414dc0
mov ecx, 8
mov edx, 0x10
call fcn.004048e0
ud2
Function at 0x415980
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x0043a058]
test ecx, ecx
je 0x415a3d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x4159b0
cmp qword [rax + 8], 0
je 0x4159b0
add rax, 0x10
jmp 0x415a37
mov ecx, dword [0x0043a058]
test ecx, ecx
je 0x415a50
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x415a35
mov rsi, rax
test rax, rax
jne 0x415a1b
movzx eax, byte [0x00448040]
mov ecx, 0x20
mov edx, 8
call fcn.00404480
test rax, rax
je 0x415a73
mov rsi, rax
lea rax, [0x0043a040]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x0043a058]
test ecx, ecx
je 0x415a63
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x415a37
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x0043a040]
call fcn.004141e0
mov ecx, eax
jmp 0x415995
lea rcx, [0x0043a040]
call fcn.004141e0
mov ecx, eax
jmp 0x4159c0
lea rcx, [0x0043a040]
call fcn.004141e0
mov ecx, eax
jmp 0x415a13
mov ecx, 8
mov edx, 0x20
call fcn.004048e0
ud2
Function at 0x4330e0
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov ebx, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.00404a50
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x43313a
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
cmp qword [rsp + 0x38], 0
je 0x4331c2
mov edx, 1
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.004044c0
mov rdi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call sub.WS2_32.dll_getaddrinfo
test eax, eax
je 0x433197
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x4331aa
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bx
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test r14, r14
je 0x4331c2
mov edx, 1
mov rcx, rdi
call fcn.004044c0
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret

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

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x433349
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x43335f
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0x20
pop rsi
ret
Function at 0x437720
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rbx, r8
mov rsi, rcx
test rdx, rdx
je 0x43774b
mov qword [rsi + 8], rbx
mov qword [rsi], 1
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov rax, qword [0x004480e8]
cmp rax, 3
jne 0x4378c7
cmp word [rbx], 0
mov eax, 2
mov ebp, 0x17
cmove ebp, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call sub.WS2_32.dll_WSASocketW
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x4377c0
cmp word [rbx], 0
je 0x437836
movups xmm0, xmmword [rbx + 4]
mov eax, dword [rbx + 0x14]
mov edx, dword [rbx + 0x18]
movzx ecx, word [rbx + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x43784b
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2739
je 0x4377da
mov r14d, eax
cmp eax, 0x2726
jne 0x4378b6
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call sub.WS2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x4378ae
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
jne 0x437798
call sub.KERNEL32.dll_GetLastError
mov r14d, eax
mov rcx, rdi
call sub.WS2_32.dll_closesocket
jmp 0x4378b6
mov eax, dword [rbx + 2]
movzx ecx, word [rbx + 6]
mov r8d, 0x10
mov r9w, 2
xorps xmm0, xmm0
rol cx, 8
mov word [rsp + 0x34], r9w
mov word [rsp + 0x36], cx
mov dword [rsp + 0x38], eax
movups xmmword [rsp + 0x3c], xmm0
mov dword [rsp + 0x4c], edx
lea rdx, [rsp + 0x34]
mov rcx, rdi
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x437889
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x437740
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call sub.WS2_32.dll_closesocket
jmp 0x437740
call sub.WS2_32.dll_WSAGetLastError
mov r14d, eax
shl r14, 0x20
or r14, 2
mov qword [rsi + 8], r14
jmp 0x437739
call fcn.00433080
jmp 0x43775c

Function at 0x438590
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.004392b0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.004392b0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]