joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4844f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x48454b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x48454b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x484566
cmp eax, 0x42
jne 0x48454b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x484616
cmp byte [r9 + r11], 0x5f
jne 0x484616
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x48467e
mov rcx, rsi
xor edx, edx
call fcn.0047ff80
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.0047ff80
test al, al
jne 0x484711
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x4845a2
lea rdx, [0x00505a63]
mov r8d, 1
call fcn.00411c00
test al, al
jne 0x484711
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x48455a
xor r14d, r14d
lea rbx, [0x00505e3e]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x4845d4
cmp byte [rax + rcx], 0x45
je 0x484733
sub r14, 1
jb 0x4845f9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x4845f9
mov r8d, 2
mov rdx, rbx
call fcn.00411c00
test al, al
jne 0x484711
mov rcx, rsi
call fcn.00484750
test al, al
jne 0x484711
mov rax, qword [rsi]
test rax, rax
jne 0x4845c0
jmp 0x48455a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x4846d8
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x484672
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x48465c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x48464b
add dl, 0xa9
jmp 0x48465a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x4846d8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x4846d8
movzx edx, bl
add rax, rdx
jae 0x484620
jmp 0x4846d8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x4846d8
cmp rax, rcx
jae 0x4846d5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x48472b
cmp qword [rsi + 0x20], 0
je 0x48473f
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.004844f0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x48455c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x484719
lea rax, [0x00505e09]
lea rdx, str.recursion_limit_reachedinvalid_syntax
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.00411c00
test al, al
je 0x484719
mov dil, 2
jmp 0x48455a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x48455a
mov dil, 1
xor r8d, r8d
jmp 0x4846da
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x48455a
xor edi, edi
jmp 0x48455a
Function at 0x487c16
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov eax, edx
lea r9, [rsp + 0x34]
mov dword [r9], r8d
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, eax
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x487c42
xor eax, eax
jmp 0x487c47
call fcn.0043ad00
nop
add rsp, 0x38
ret

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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x004d0120]
test ecx, ecx
je 0x489081
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x488fe3
mov rdi, rax
cmp qword [rax], 0
je 0x488fe3
add rdi, 8
jmp 0x489077
mov ecx, dword [0x004d0120]
test ecx, ecx
je 0x489094
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x489075
mov rsi, rax
test rax, rax
jne 0x489047
mov ecx, 0x20
mov edx, 8
call fcn.0040c730
test rax, rax
je 0x4890b7
mov rsi, rax
mov qword [rax], 0
lea rax, [0x004d0108]
mov qword [rsi + 0x18], rax
mov ecx, dword [0x004d0120]
test ecx, ecx
je 0x4890a7
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
lea rdi, [rsi + 8]
cmp qword [rsi], 0
mov rcx, qword [rsi + 0x10]
mov qword [rsi], 1
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
je 0x489077
test rcx, rcx
je 0x489077
lock dec qword [rcx]
jne 0x489077
call fcn.004890f0
jmp 0x489077
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x004d0108]
call fcn.004896b0
mov ecx, eax
jmp 0x488fc6
lea rcx, [0x004d0108]
call fcn.004896b0
mov ecx, eax
jmp 0x488ff3
lea rcx, [0x004d0108]
call fcn.004896b0
mov ecx, eax
jmp 0x48903f
mov ecx, 0x20
mov edx, 8
call fcn.0040e250
ud2
Function at 0x4896b0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x48972e
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 0x48976f
cmp dword [rsp + 0x2c], 0
je 0x489753
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x489797
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x00542130]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x00542130], rsi
jne 0x489710
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x489765
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x4897ed
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x489758
mov edi, dword [rsp + 0x28]
jmp 0x489765
mov edi, dword [rsi + 0x18]
jmp 0x489763
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 + 0x40], 0
lea rdx, [0x00509470]
lea r9, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0x30]
call fcn.00489860
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 + 0x40], rax
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x30], 0
lea rax, str._rustc_90c541806f23a127002de5b4038be731ba1458calibrarycore_src_sync_atomic.rsthere_is_no_such_thing_as_an_acquire_release_store
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.00411160
ud2
mov qword [rsp + 0x30], 0
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
lea rax, str._rustc_90c541806f23a127002de5b4038be731ba1458calibrarycore_src_sync_atomic.rsthere_is_no_such_thing_as_an_acquire_release_store
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.004898c0
ud2
Function at 0x489a90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [rcx]
cmp byte [rax], 0
mov byte [rax], 0
je 0x489cd3
mov byte [rsp + 0x37], 0
mov rax, qword [0x005420a0]
cmp rax, 3
jne 0x489c6b
cmp byte [rsp + 0x37], 0
jne 0x489c80
mov ecx, dword [0x004d00d0]
test ecx, ecx
je 0x489c9a
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x489aed
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x489b82
mov ecx, dword [0x004d00d0]
test ecx, ecx
je 0x489cad
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x489b3b
mov rsi, rax
cmp rax, 1
jne 0x489b7c
lea rax, [0x00507410]
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_90c541806f23a127002de5b4038be731ba1458calibrary_std_src_threadlocal.rs
lea r9, [0x00506858]
lea r8, [rsp + 0x38]
mov edx, 0x46
call fcn.00413640
ud2
mov ecx, 0x10
mov edx, 8
call fcn.0040c730
test rax, rax
je 0x489d18
mov rsi, rax
lea rax, [0x004d00b8]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x004d00d0]
test ecx, ecx
je 0x489cc0
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
mov rax, qword [0x00542068]
cmp rax, rsi
jne 0x489bb6
mov eax, dword [0x00542098]
inc eax
jne 0x489bd6
lea rcx, str.lock_count_overflow_in_reentrant_mutexlibrary_std_src_sync_remutex.rs
lea r8, [0x00507ee8]
mov edx, 0x26
call fcn.00414c70
ud2
lea rcx, [0x00542060]
call sub.KERNEL32.dll_TryAcquireSRWLockExclusive
test al, al
je 0x489c80
mov qword [0x00542068], rsi
mov eax, 1
mov dword [0x00542098], eax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x58], 0
mov word [rsp + 0x5c], 0
cmp qword [0x00542070], 0
jne 0x489ced
mov qword [0x00542070], 0xffffffffffffffff
lea rcx, [0x00542078]
call fcn.00489e10
movups xmm0, xmmword [rsp + 0x40]
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [0x00542088], xmm1
movups xmmword [0x00542078], xmm0
inc qword [0x00542070]
dec dword [0x00542098]
jne 0x489c80
mov qword [0x00542068], 0
lea rcx, [0x00542060]
call fcn.004cd398
jmp 0x489c80
lea rcx, [rsp + 0x37]
call fcn.00489d80
cmp byte [rsp + 0x37], 0
je 0x489ac5
mov rax, qword [0x00542108]
cmp rax, 3
jne 0x489c93
call qword [0x00542110]
nop
add rsp, 0x60
pop rsi
ret
lea rcx, [0x004d00b8]
call fcn.004896b0
mov ecx, eax
jmp 0x489ad5
lea rcx, [0x004d00b8]
call fcn.004896b0
mov ecx, eax
jmp 0x489afd
lea rcx, [0x004d00b8]
call fcn.004896b0
mov ecx, eax
jmp 0x489b74
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str.library_std_src_synconce.rs
mov edx, 0x2b
call fcn.00411f40
ud2
lea rax, str.library_std_srcio_stdio.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x0050a2fa]
lea r9, [0x00506878]
lea r8, [rsp + 0x38]
mov edx, 0x10
call fcn.00413640
ud2
mov ecx, 0x10
mov edx, 8
call fcn.0040e250
ud2
Function at 0x48b0b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x004d0140]
test ecx, ecx
je 0x48b159
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x48b0dc
cmp qword [rax], 0
je 0x48b0dc
add rax, 8
jmp 0x48b153
mov ecx, dword [0x004d0140]
test ecx, ecx
je 0x48b16c
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x48b151
mov rsi, rax
test rax, rax
jne 0x48b13c
mov ecx, 0x18
mov edx, 8
call fcn.0040c730
test rax, rax
je 0x48b18f
mov rsi, rax
mov qword [rax], 0
lea rax, [0x004d0128]
mov qword [rsi + 0x10], rax
mov ecx, dword [0x004d0140]
test ecx, ecx
je 0x48b17f
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
lea rax, [rsi + 8]
mov qword [rsi], 1
mov qword [rsi + 8], 0
jmp 0x48b153
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x004d0128]
call fcn.004896b0
mov ecx, eax
jmp 0x48b0c5
lea rcx, [0x004d0128]
call fcn.004896b0
mov ecx, eax
jmp 0x48b0ec
lea rcx, [0x004d0128]
call fcn.004896b0
mov ecx, eax
jmp 0x48b134
mov ecx, 0x18
mov edx, 8
call fcn.0040e250
ud2
Function at 0x48e130
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x48e160
test ecx, ecx
jne 0x48e1b0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x48e16c
test ecx, ecx
jne 0x48e1b0
mov rcx, rdi
call fcn.0048e010
movzx eax, al
test bpl, bpl
jne 0x48e1b7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x48e1a3.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x0048e328]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x48e1a3.2
xor eax, eax
test bpl, bpl
je 0x48e17c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x48e309
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x48e1ea
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x48e269
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x48e230
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x48e24b
inc rax
dec rdi
cmp rax, 1
jne 0x48e210
jmp 0x48e269
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x48e24b
cmp ebx, 0x5c
je 0x48e24b
inc rax
dec rdi
cmp rax, 1
jne 0x48e230
jmp 0x48e269
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x48e317
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x48e293
mov al, 9
cmp rdx, 2
je 0x48e297
cmp rdx, 1
jne 0x48e2a7
cmp byte [r8], 0x2e
jne 0x48e2a7
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x48e2a7
mov al, 0xa
jmp 0x48e2a7
cmp byte [r8], 0x2e
jne 0x48e2a7
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov qword [rsi + 8], r8
mov qword [rsi + 0x10], rdx
mov byte [rsi + 0x18], al
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x48e1a3.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x48e1a3.2
mov ecx, 2
jmp case.0x48e1a3.2
lea r8, [0x00507c60]
call fcn.00411ae0
ud2
lea r8, [0x00507c78]
call fcn.00411ae0
ud2
Function at 0x48e5b0
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rax, r8
mov rdi, rcx
mov dword [rsp + 0x60], 0
mov word [rsp + 0x64], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x48], 0
movaps xmm0, xmmword [0x004d1420]
movups xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x60], 1
lea r8, [rsp + 0x40]
mov rcx, rdx
mov rdx, rax
call fcn.004a6730
mov rsi, rdx
test rax, rax
je 0x48e659
mov eax, esi
and eax, 3
cmp eax, 1
jne 0x48e64d
mov rbx, rsi
dec rbx
mov rcx, qword [rsi - 1]
mov rax, qword [rsi + 7]
call qword [rax]
mov rax, qword [rsi + 7]
cmp qword [rax + 8], 0
je 0x48e640
mov rdx, qword [rax + 0x10]
mov rcx, qword [rbx]
call fcn.0040c7c0
mov edx, 8
mov rcx, rbx
call fcn.0040c7c0
mov qword [rdi], 0
jmp 0x48e7b0
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.004a6940
cmp dword [rsp + 0x40], 2
jne 0x48e6ce
mov r14, qword [rsp + 0x48]
mov eax, r14d
and eax, 3
cmp eax, 1
jne 0x48e6af
lea rbx, [r14 - 1]
mov rcx, qword [r14 - 1]
mov rax, qword [r14 + 7]
call qword [rax]
mov rax, qword [r14 + 7]
cmp qword [rax + 8], 0
je 0x48e6a2
mov rdx, qword [rax + 0x10]
mov rcx, qword [rbx]
call fcn.0040c7c0
mov edx, 8
mov rcx, rbx
call fcn.0040c7c0
mov qword [rdi], 0
mov rcx, rsi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sub.KERNEL32.dll_CloseHandle
mov r12, qword [rsp + 0x68]
test rsi, rsi
je 0x48e720
mov qword [rsp + 0x40], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rax
mov rdx, rsi
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x48e79c
mov rbx, qword [rsp + 0x40]
jmp 0x48e722
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingA
test rax, rax
je 0x48e78b
mov r14, rax
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call sub.KERNEL32.dll_CloseHandle
test r15, r15
je 0x48e78b
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r12
mov qword [rdi], 1
jmp 0x48e7a8
mov qword [rdi], 0
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
jmp 0x48e7a8
call sub.KERNEL32.dll_GetLastError
mov qword [rdi], 0
mov rcx, rsi
call sub.KERNEL32.dll_CloseHandle
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x4ab760
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x004d00b0]
test ecx, ecx
je 0x4ab832
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x4ab793
mov rdi, rax
cmp qword [rax], 0
je 0x4ab793
add rdi, 8
jmp 0x4ab828
mov ecx, dword [0x004d00b0]
test ecx, ecx
je 0x4ab845
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x4ab826
mov rsi, rax
test rax, rax
jne 0x4ab7f7
mov ecx, 0x18
mov edx, 8
call fcn.0040c730
test rax, rax
je 0x4ab868
mov rsi, rax
mov qword [rax], 0
lea rax, [0x004d0098]
mov qword [rsi + 0x10], rax
mov ecx, dword [0x004d00b0]
test ecx, ecx
je 0x4ab858
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
lea rdi, [rsi + 8]
mov rcx, qword [rsi + 8]
cmp qword [rsi], 0
mov qword [rsi], 1
mov qword [rsi + 8], 0
je 0x4ab828
test rcx, rcx
je 0x4ab828
lock dec qword [rcx]
jne 0x4ab828
call fcn.004ab890
jmp 0x4ab828
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x004d0098]
call fcn.004896b0
mov ecx, eax
jmp 0x4ab776
lea rcx, [0x004d0098]
call fcn.004896b0
mov ecx, eax
jmp 0x4ab7a3
lea rcx, [0x004d0098]
call fcn.004896b0
mov ecx, eax
jmp 0x4ab7ef
mov ecx, 0x18
mov edx, 8
call fcn.0040e250
ud2
Function at 0x4abec0
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1e8
mov rsi, rcx
mov r14, qword [rdx]
mov rbx, qword [rdx + 8]
movzx edi, word [rdx + 0x10]
mov rax, qword [0x00542108]
cmp rax, 3
jne 0x4abfe7
cmp rbx, 0x17f
ja 0x4abff9
lea rcx, [rsp + 0x68]
mov rdx, r14
mov r8, rbx
call sub.ntdll.dll_memcpy
mov byte [rsp + rbx + 0x68], 0
lea r8, [rbx + 1]
cmp rbx, 0xe
ja 0x4abf39
lea rcx, [rbx + 1]
xor eax, eax
xor edx, edx
nop
cmp byte [rsp + rdx + 0x68], 0
je 0x4abf4c
inc rdx
cmp rcx, rdx
jne 0x4abf20
mov rdx, r8
test rax, rax
jne 0x4abf56
jmp 0x4abfb0
lea rdx, [rsp + 0x68]
xor ecx, ecx
call fcn.00412860
test rax, rax
jne 0x4abf56
jmp 0x4abfb0
mov eax, 1
test rax, rax
je 0x4abfb0
cmp rdx, rbx
jne 0x4abfb0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x68]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
xor edx, edx
call sub.WS2_32.dll_getaddrinfo
test eax, eax
je 0x4abfc4
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x4abfd7
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x4abfda
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.004ac580
cmp rbx, 0x17f
jbe 0x4abef8
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x4ac5e0
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov ebx, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.0040e430
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x4ac63a
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 0x4ac6c2
mov edx, 1
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.0040c7c0
mov rdi, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
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 0x4ac697
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x4ac6aa
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 0x4ac6c2
mov edx, 1
mov rcx, rdi
call fcn.0040c7c0
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x4ac5e0
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1e8
mov rsi, rcx
mov r14, qword [rdx]
mov rbx, qword [rdx + 8]
movzx edi, word [rdx + 0x10]
mov rax, qword [0x00542108]
cmp rax, 3
jne 0x4abfe7
cmp rbx, 0x17f
ja 0x4abff9
lea rcx, [rsp + 0x68]
mov rdx, r14
mov r8, rbx
call sub.ntdll.dll_memcpy
mov byte [rsp + rbx + 0x68], 0
lea r8, [rbx + 1]
cmp rbx, 0xe
ja 0x4abf39
lea rcx, [rbx + 1]
xor eax, eax
xor edx, edx
nop
cmp byte [rsp + rdx + 0x68], 0
je 0x4abf4c
inc rdx
cmp rcx, rdx
jne 0x4abf20
mov rdx, r8
test rax, rax
jne 0x4abf56
jmp 0x4abfb0
lea rdx, [rsp + 0x68]
xor ecx, ecx
call fcn.00412860
test rax, rax
jne 0x4abf56
jmp 0x4abfb0
mov eax, 1
test rax, rax
je 0x4abfb0
cmp rdx, rbx
jne 0x4abfb0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x68]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
xor edx, edx
call sub.WS2_32.dll_getaddrinfo
test eax, eax
je 0x4abfc4
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x4abfd7
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x4abfda
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.004ac580
cmp rbx, 0x17f
jbe 0x4abef8
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x4ac5e0
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov ebx, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.0040e430
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x4ac63a
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 0x4ac6c2
mov edx, 1
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.0040c7c0
mov rdi, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
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 0x4ac697
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x4ac6aa
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 0x4ac6c2
mov edx, 1
mov rcx, rdi
call fcn.0040c7c0
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x4b37e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rcx
lea rcx, [rsp + 0x20]
call fcn.004b36b0
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x4b3824
mov rbx, qword [rsp + 0x20]
mov r14, qword [rsp + 0x30]
mov rcx, rdi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4b3877
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r14
jmp 0x4b386d
mov rbx, qword [rsp + 0x20]
mov eax, ebx
and eax, 3
cmp eax, 1
jne 0x4b3865
lea rdi, [rbx - 1]
mov rcx, qword [rbx - 1]
mov rax, qword [rbx + 7]
call qword [rax]
mov rax, qword [rbx + 7]
cmp qword [rax + 8], 0
je 0x4b3858
mov rdx, qword [rax + 0x10]
mov rcx, qword [rdi]
call fcn.0040c7c0
mov edx, 8
mov rcx, rdi
call fcn.0040c7c0
mov qword [rsi + 8], 0
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov qword [rsi + 8], 0
test rbx, rbx
je 0x4b386d
mov edx, 2
mov rcx, rdi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.0040c7c0
Function at 0x4b50b0
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rbx, r8
mov r14, rdx
mov rdi, rcx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], r8
mov ecx, 0x10
mov edx, 8
call fcn.0040c730
test rax, rax
je 0x4b516b
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x004b5430]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x4b515e
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
call qword [rax]
mov rax, qword [rsi + 8]
cmp qword [rax + 8], 0
je 0x4b513d
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsi]
call fcn.0040c7c0
mov edx, 8
mov rcx, rsi
call fcn.0040c7c0
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 0x10
mov edx, 8
call fcn.0040e250
ud2