joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4544b0
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x004c9598]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.00404330
test rax, rax
je 0x454573
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x004545e0]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x454566
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
mov rcx, rbx
call qword [r14]
mov rdx, qword [r14 + 8]
test rdx, rdx
je 0x45453f
mov r8, qword [r14 + 0x10]
mov rcx, rbx
call fcn.00404340
mov edx, 0x10
mov r8d, 8
mov rcx, rsi
call fcn.00404340
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call fcn.0047c6c0
ud2

Function at 0x454810
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x4548a0
mov rax, qword [0x004db040]
mov dword [rsp + 0x2c], 0
lea rdi, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rdi
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x4548e1
cmp dword [rsp + 0x2c], 0
je 0x4548c5
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x454907
mov ebx, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x004d8158]
nop dword [rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x004d8158], rsi
jne 0x454880
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
mov eax, ebx
jmp 0x4548d9
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x454951
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x4548ca
mov eax, dword [rsp + 0x28]
jmp 0x4548d9
mov eax, dword [rsi + 0x18]
jmp 0x4548d7
mov ecx, dword [rsp + 0x28]
mov esi, eax
call sub.KERNEL32.dll_TlsFree
mov eax, esi
dec eax
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rdx, [0x004ab768]
lea r9, str.library_std_src_syspalwindows_thread_local_key.rs
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0x30]
call fcn.004111a0
mov rcx, rdi
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, [0x004a6a98]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syspalwindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.0048b9c0
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, [0x004a6a98]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.00411150
int3
Function at 0x458df0
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x200
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov rdi, qword [rax + 8]
movzx eax, word [rax + 0x10]
mov word [rsp + 0x26], ax
mov rax, qword [0x004d8138]
cmp rax, 3
jne 0x458efc
lea rax, [rsp + 0x26]
mov qword [rsp + 0x30], rax
cmp rdi, 0x17f
ja 0x458f1e
lea rbx, [rsp + 0x80]
mov rcx, rbx
mov r8, rdi
call sub.ntdll.dll_memcpy
mov byte [rsp + rdi + 0x80], 0
inc rdi
lea rcx, [rsp + 0x38]
mov rdx, rbx
mov r8, rdi
call fcn.00488a70
cmp qword [rsp + 0x38], 0
je 0x458e82
lea rax, [0x004aa038]
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x458eee
mov rcx, 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]
xor edx, edx
call sub.WS2_32.dll_getaddrinfo
test eax, eax
je 0x458ed3
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x458ee7
mov rax, qword [rsp + 0x28]
movzx ecx, word [rsp + 0x26]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov rax, rsi
add rsp, 0x200
pop rbx
pop rdi
pop rsi
ret
mov rbx, rdx
call fcn.004408c0
mov rdx, rbx
lea rax, [rsp + 0x26]
mov qword [rsp + 0x30], rax
cmp rdi, 0x17f
jbe 0x458e38
lea r9, [rsp + 0x30]
mov rcx, rsi
mov r8, rdi
call fcn.004415a0
jmp 0x458eee
Function at 0x459370
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
sub rsp, 0xb0
mov rax, rdx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x2c], pe_nt_image_headers64
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x2c]
mov rcx, rax
call sub.WS2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x45941f
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x30]
cmp ecx, 2
je 0x45942e
cmp ecx, 0x17
jne 0x459455
cmp eax, 0x1b
jbe 0x45946e
movzx eax, word [rsp + 0x32]
rol ax, 8
movups xmm0, xmmword [rsp + 0x38]
mov ecx, dword [rsp + 0x34]
mov edx, dword [rsp + 0x48]
mov word [rsi], 1
movups xmmword [rsi + 4], xmm0
mov dword [rsi + 0x14], ecx
mov dword [rsi + 0x18], edx
mov word [rsi + 0x1c], ax
add rsp, 0xb0
pop rsi
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
jmp 0x45945c
cmp eax, 0xf
jbe 0x459486
movzx eax, word [rsp + 0x32]
rol ax, 8
mov ecx, dword [rsp + 0x34]
mov word [rsi], 0
mov word [rsi + 6], ax
mov dword [rsi + 2], ecx
add rsp, 0xb0
pop rsi
ret
lea rax, str.invalid_argument0
mov qword [rsi + 8], rax
mov word [rsi], 2
add rsp, 0xb0
pop rsi
ret
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___
mov edx, 0x43
call fcn.0048ba70
lea rcx, [0x004ac571]
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___
mov edx, 0x42
call fcn.0048ba70
int3
Function at 0x45e050
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc8
mov rax, r8
mov rsi, rcx
mov dword [rsp + 0x38], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 7
mov qword [rsp + 0x54], 0
mov word [rsp + 0x5c], 0
mov byte [rsp + 0x58], 1
lea r8, [rsp + 0x38]
mov rcx, rdx
mov rdx, rax
call fcn.00447320
mov rdi, rdx
test rax, rax
je 0x45e0e0
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x88], rdi
call fcn.0040e270
mov qword [rsi], 0
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rsp + 0x38]
mov rdx, rdi
call fcn.004475a0
cmp dword [rsp + 0x38], 2
jne 0x45e10f
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x80], 2
jmp 0x45e15b
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmm2, xmmword [rsp + 0x58]
movups xmm3, xmmword [rsp + 0x68]
movaps xmmword [rsp + 0x80], xmm0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xc0], rax
movaps xmmword [rsp + 0xb0], xmm3
movaps xmmword [rsp + 0xa0], xmm2
movaps xmmword [rsp + 0x90], xmm1
cmp qword [rsp + 0x80], 2
jne 0x45e187
lea rcx, [rsp + 0x88]
call fcn.0040e270
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sub.KERNEL32.dll_CloseHandle
mov r12, qword [rsp + 0xb8]
test rdi, rdi
je 0x45e1e5
mov qword [rsp + 0x80], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x45e261
mov rbx, qword [rsp + 0x80]
jmp 0x45e1e7
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 0x45e250
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 0x45e250
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x45e28d
mov qword [rsi], 0
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
jmp 0x45e28d
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x38], 1
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
call fcn.0040e270
mov qword [rsi], 0
mov rcx, rdi
call sub.KERNEL32.dll_CloseHandle
jmp 0x45e0cf
Function at 0x4601b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x004a2080]
test ecx, ecx
je 0x4601e0
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x4601f9
cmp qword [rax + 8], 0
je 0x4601f9
add rax, 0x10
jmp 0x4602c4
lea rcx, [0x004a2068]
call fcn.00454810
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x4601d0
mov ecx, dword [0x004a2080]
test ecx, ecx
je 0x4602a5
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x4602c2
test rax, rax
jne 0x46026b
mov rax, qword [0x004c9598]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call fcn.00404330
test rax, rax
je 0x4602e4
lea rcx, [0x004a2068]
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x004a2080]
test ecx, ecx
je 0x4602cb
dec ecx
mov rdx, rax
mov rdi, rax
call sub.KERNEL32.dll_TlsSetValue
mov rax, rdi
xor ecx, ecx
test rsi, rsi
je 0x46028b
mov rdx, qword [rsi]
mov qword [rsi], 0
cmp rdx, 1
jne 0x46028b
mov rdx, qword [rsi + 8]
mov ecx, dword [rsi + 0x10]
jmp 0x46028d
xor edx, edx
mov qword [rax + 8], 1
lea r8, [rax + 0x10]
mov qword [rax + 0x10], rdx
mov byte [rax + 0x18], cl
mov rax, r8
jmp 0x4602c4
lea rcx, [0x004a2068]
call fcn.00454810
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x460218
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x004a2068]
mov rdi, rax
call fcn.00454810
mov ecx, eax
mov rax, rdi
jmp 0x46025d
mov ecx, 8
mov edx, 0x20
call fcn.0047c6c0
int3
Function at 0x460300
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x004a20a0]
test ecx, ecx
je 0x460419
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x46032f
cmp qword [rax + 8], 0
jne 0x460413
mov ecx, dword [0x004a20a0]
test ecx, ecx
je 0x46043b
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x460458
test rax, rax
jne 0x4603b9
mov qword [rsp + 0x28], 0
lea rax, [0x004a2088]
mov qword [rsp + 0x20], rax
mov rax, qword [0x004c9598]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call fcn.00404330
test rax, rax
je 0x46047a
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rax], xmm0
mov ecx, dword [0x004a20a0]
test ecx, ecx
je 0x460461
dec ecx
mov rdx, rax
mov rdi, rax
call sub.KERNEL32.dll_TlsSetValue
mov rax, rdi
test rsi, rsi
je 0x4603d3
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x4603d5
mov rcx, qword [rsi + 8]
jmp 0x4603d5
xor ecx, ecx
mov r8, qword [rax + 8]
mov rdx, qword [rax + 0x10]
mov qword [rsp + 0x20], r8
mov qword [rsp + 0x28], rdx
mov qword [rax + 8], 1
mov qword [rax + 0x10], rcx
test r8, r8
je 0x460413
test rdx, rdx
je 0x460413
lock dec qword [rdx]
jne 0x460413
lea rcx, [rsp + 0x28]
mov rsi, rax
call fcn.004182a0
mov rax, rsi
add rax, 0x10
jmp 0x46045a
lea rcx, [0x004a2088]
call fcn.00454810
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x460324
jmp 0x46032f
lea rcx, [0x004a2088]
call fcn.00454810
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x46034e
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x004a2088]
mov rdi, rax
call fcn.00454810
mov ecx, eax
mov rax, rdi
jmp 0x4603ab
mov ecx, 8
mov edx, 0x18
call fcn.0047c6c0
ud2
Function at 0x4604b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x004a20c0]
test ecx, ecx
je 0x4604df
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x4604f8
cmp byte [rax + 8], 0
je 0x4604f8
add rax, 9
jmp 0x4605ab
lea rcx, [0x004a20a8]
call fcn.00454810
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x4604d0
mov ecx, dword [0x004a20c0]
test ecx, ecx
je 0x46058c
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x4605a9
test rax, rax
jne 0x460566
mov rax, qword [0x004c9598]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.00404330
test rax, rax
je 0x4605c8
lea rcx, [0x004a20a8]
mov qword [rax], rcx
mov byte [rax + 8], 0
mov ecx, dword [0x004a20c0]
test ecx, ecx
je 0x4605b2
dec ecx
mov rdx, rax
mov rdi, rax
call sub.KERNEL32.dll_TlsSetValue
mov rax, rdi
xor ecx, ecx
test rsi, rsi
je 0x46057c
cmp byte [rsi], 0
mov byte [rsi], 0
movzx edx, byte [rsi + 1]
cmove edx, ecx
mov ecx, edx
lea rdx, [rax + 9]
mov byte [rax + 8], 1
mov byte [rax + 9], cl
mov rax, rdx
jmp 0x4605ab
lea rcx, [0x004a20a8]
call fcn.00454810
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x460517
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x004a20a8]
mov rdi, rax
call fcn.00454810
mov ecx, eax
mov rax, rdi
jmp 0x460558
mov ecx, 8
mov edx, 0x10
call fcn.0047c6c0
int3

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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x004a20e0]
test ecx, ecx
je 0x46060f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x460628
cmp byte [rax + 8], 0
je 0x460628
add rax, 9
jmp 0x4606db
lea rcx, [0x004a20c8]
call fcn.00454810
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x460600
mov ecx, dword [0x004a20e0]
test ecx, ecx
je 0x4606bc
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x4606d9
test rax, rax
jne 0x460696
mov rax, qword [0x004c9598]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.00404330
test rax, rax
je 0x4606f8
lea rcx, [0x004a20c8]
mov qword [rax], rcx
mov byte [rax + 8], 0
mov ecx, dword [0x004a20e0]
test ecx, ecx
je 0x4606e2
dec ecx
mov rdx, rax
mov rdi, rax
call sub.KERNEL32.dll_TlsSetValue
mov rax, rdi
xor ecx, ecx
test rsi, rsi
je 0x4606ac
cmp byte [rsi], 0
mov byte [rsi], 0
movzx edx, byte [rsi + 1]
cmove edx, ecx
mov ecx, edx
lea rdx, [rax + 9]
mov byte [rax + 8], 1
mov byte [rax + 9], cl
mov rax, rdx
jmp 0x4606db
lea rcx, [0x004a20c8]
call fcn.00454810
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x460647
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x004a20c8]
mov rdi, rax
call fcn.00454810
mov ecx, eax
mov rax, rdi
jmp 0x460688
mov ecx, 8
mov edx, 0x10
call fcn.0047c6c0
int3
Function at 0x4608c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x004a2120]
test ecx, ecx
je 0x4609d9
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x4608ef
cmp qword [rax + 8], 0
jne 0x4609d3
mov ecx, dword [0x004a2120]
test ecx, ecx
je 0x4609fb
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x460a18
test rax, rax
jne 0x460979
mov qword [rsp + 0x28], 0
lea rax, [0x004a2108]
mov qword [rsp + 0x20], rax
mov rax, qword [0x004c9598]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call fcn.00404330
test rax, rax
je 0x460a3a
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rax], xmm0
mov ecx, dword [0x004a2120]
test ecx, ecx
je 0x460a21
dec ecx
mov rdx, rax
mov rdi, rax
call sub.KERNEL32.dll_TlsSetValue
mov rax, rdi
test rsi, rsi
je 0x460993
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x460995
mov rcx, qword [rsi + 8]
jmp 0x460995
xor ecx, ecx
mov r8, qword [rax + 8]
mov rdx, qword [rax + 0x10]
mov qword [rsp + 0x20], r8
mov qword [rsp + 0x28], rdx
mov qword [rax + 8], 1
mov qword [rax + 0x10], rcx
test r8, r8
je 0x4609d3
test rdx, rdx
je 0x4609d3
lock dec qword [rdx]
jne 0x4609d3
lea rcx, [rsp + 0x28]
mov rsi, rax
call fcn.004181b0
mov rax, rsi
add rax, 0x10
jmp 0x460a1a
lea rcx, [0x004a2108]
call fcn.00454810
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x4608e4
jmp 0x4608ef
lea rcx, [0x004a2108]
call fcn.00454810
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x46090e
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x004a2108]
mov rdi, rax
call fcn.00454810
mov ecx, eax
mov rax, rdi
jmp 0x46096b
mov ecx, 8
mov edx, 0x18
call fcn.0047c6c0
ud2
Function at 0x494df0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x494e6a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x494e60
cmp r11, r10
ja 0x494ef5
cmp r10, rdx
ja 0x494f07
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x494e62
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x494e40
jmp 0x494ed7
ja 0x494e6a
mov r11, r10
cmp rax, r8
jne 0x494e12
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x494edb
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x494eb0
mov r8, r10
sub ecx, r9d
jns 0x494ece
jmp 0x494edd
cmp r10, rdx
je 0x494ee9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x494edd
xor al, 1
cmp r8, rdx
jne 0x494e90
jmp 0x494edd
xor eax, eax
jmp 0x494edd
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x004be6a0]
call fcn.0048b770
lea r8, [0x004be6b8]
mov rcx, r11
mov rdx, r10
call fcn.00492100
lea r8, [0x004be6b8]
mov rcx, r10
call fcn.00492070
int3
Function at 0x4a0a00
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x004d8764]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x4a0b88
mov rax, qword [0x004d8768]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x4a0a4c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4a0ad5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x4a0a30
mov rcx, rbx
call fcn.004a16a0
test rax, rax
mov r12, rax
je 0x4a0bbd
mov rax, qword [0x004d8768]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.004a17d0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004d8768]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4a0ba0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4a0ace
sub eax, 0x40
and eax, 0xffffffbf
jne 0x4a0b30
add dword [0x004d8764], 1
cmp edi, 8
jae 0x4a0b03
test dil, 4
jne 0x4a0b74
test edi, edi
je 0x4a0af8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4a0b8f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x4a0af8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x4a0b1c
jmp 0x4a0af8
add rsi, qword [0x004d8768]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4a0ace
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004a19d0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x4a0af8
xor esi, esi
jmp 0x4a0a57
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x4a0af8
mov rax, qword [0x004d8768]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.004a19d0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.004a19d0
nop
nop dword [rax]

Function at 0x4a1310
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004d8a40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004d8a20]
test rbx, rbx
je 0x4a1364
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4a135b
test rsi, rsi
je 0x4a135b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4a1340
lea rcx, [0x004d8a40]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4a16a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004c9520]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x4a170d
mov rcx, r8
call fcn.004a1580
test eax, eax
je 0x4a170d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4a170d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4a1704
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4a170f
add rax, 0x28
cmp rax, r9
jne 0x4a16f0
xor eax, eax
add rsp, 0x28
ret

Function at 0x4a19d0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.004a19a0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.004a19a0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
push rbp
mov rbp, rsp
pop rbp
jmp fcn.00401530