joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459c40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
sub rsp, 0xe8
mov rax, r8
mov rdi, rcx
mov r10d, dword [rsp + 0x120]
xorps xmm0, xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], 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
mov dword [rsp + 0x3c], pe_nt_image_headers64
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8d, r9d
lea rcx, [rsp + 0x3c]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov rcx, rdx
mov rdx, rax
mov r9d, r10d
call sub.WS2_32.dll_recvfrom
cmp eax, 0xffffffff
je 0x459d2d
mov ecx, dword [rsp + 0x3c]
movzx edx, word [rsp + 0x60]
cmp dx, 0x17
je 0x459d9b
cmp dx, 2
jne 0x459d92
cmp ecx, 0x10
jb 0x459e81
movzx ecx, word [rsp + 0x62]
rol cx, 8
mov edx, dword [rsp + 0x64]
mov rsi, rdx
shl rsi, 0x10
movzx ecx, cx
or rcx, rsi
mov word [rsp + 0x30], 0
shr rdx, 0x10
mov word [rsp + 0x36], dx
mov dword [rsp + 0x32], ecx
jmp 0x459dd0
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x459e06
mov eax, dword [rsp + 0x3c]
movzx ecx, word [rsp + 0x60]
cmp cx, 0x17
je 0x459e1b
cmp cx, 2
jne 0x459d92
cmp eax, 0x10
jb 0x459e81
movzx eax, word [rsp + 0x62]
rol ax, 8
mov ecx, dword [rsp + 0x64]
mov rdx, rcx
shl rdx, 0x10
movzx eax, ax
or rax, rdx
mov word [rsp + 0x30], 0
shr rcx, 0x10
mov word [rsp + 0x36], cx
mov dword [rsp + 0x32], eax
jmp 0x459e4a
lea rax, str.invalid_argumenth
jmp 0x459e0e
cmp ecx, 0x1c
jb 0x459e9b
movzx ecx, word [rsp + 0x62]
mov edx, dword [rsp + 0x64]
mov r8d, dword [rsp + 0x78]
rol cx, 8
mov word [rsp + 0x30], 1
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x38], r8d
movups xmm0, xmmword [rsp + 0x68]
movaps xmmword [rsp + 0x50], xmm0
cdqe
mov edx, dword [rsp + 0x30]
mov rsi, qword [rsp + 0x34]
movaps xmm0, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x40], xmm0
mov qword [rdi + 8], rax
mov dword [rdi + 0x10], edx
mov qword [rdi + 0x14], rsi
mov word [rdi + 0x1c], cx
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rdi + 0x1e], xmm0
mov qword [rdi], 0
jmp 0x459e77
shl rax, 0x20
or rax, 2
mov qword [rdi + 8], rax
mov qword [rdi], 1
jmp 0x459e77
cmp eax, 0x1c
jb 0x459e9b
movzx eax, word [rsp + 0x62]
mov ecx, dword [rsp + 0x64]
mov edx, dword [rsp + 0x78]
rol ax, 8
mov word [rsp + 0x30], 1
mov dword [rsp + 0x34], ecx
mov dword [rsp + 0x38], edx
movups xmm0, xmmword [rsp + 0x68]
movaps xmmword [rsp + 0x50], xmm0
mov ecx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x34]
movaps xmm0, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x40], xmm0
mov dword [rdi + 0x10], ecx
mov qword [rdi + 0x14], rdx
mov word [rdi + 0x1c], ax
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rdi + 0x1e], xmm0
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
add rsp, 0xe8
pop rdi
pop rsi
ret
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___
lea r8, [0x0090cc58]
mov edx, 0x42
call fcn.004a3ff0
ud2
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___library_std_src_sys_common_net.rs
lea r8, [0x0090cbf8]
mov edx, 0x43
call fcn.004a3ff0
ud2
Function at 0x45d110
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rax, r8
mov rsi, rcx
mov ecx, 0xffffffff
cmp r9, rcx
mov r8d, 0xffffffff
cmovb r8d, r9d
mov dword [rsp + 0x30], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x58], rcx
lea rcx, [0x0045d1f0]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x40]
mov rcx, rdx
mov rdx, rax
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x45d1b1
nop word cs:[rax + rax]
nop dword [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x30], 1
jne 0x45d180
mov edi, dword [rsp + 0x34]
test edi, edi
je 0x45d1d2
mov ecx, edi
call fcn.004631d0
cmp al, 0xb
jne 0x45d1c3
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x45d1df
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov ecx, edi
call fcn.004631d0
cmp al, 0xb
je 0x45d1a9
shl rdi, 0x20
or rdi, 2
mov eax, 1
jmp 0x45d1d8
mov edi, dword [rsp + 0x38]
xor eax, eax
mov qword [rsi], rax
mov qword [rsi + 8], rdi
add rsp, 0x68
pop rdi
pop rsi
ret

Function at 0x45d2f0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
cmp qword [rdx + 0x20], 0
jne 0x45d401
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rdx, qword [rbx + 8]
test rdx, rdx
jne 0x45d329
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x45d3c7
xor edx, edx
mov rax, qword [rbx + 0x10]
cmp rdx, rax
je 0x45d3e6
sub rdx, rax
add rax, qword [rbx]
mov rbx, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rdx, rcx
mov r8d, 0xffffffff
cmovb r8d, edx
mov dword [rsp + 0x30], 0
mov rcx, qword [rdi]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x30]
mov rdx, rax
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x45d383
mov eax, dword [rsp + 0x30]
mov ecx, 2
test rax, rax
jne 0x45d39f
jmp 0x45d394
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x3e5
je 0x45d39a
cmp eax, 0x6d
jne 0x45d3b7
mov byte [rsi + 1], 0
jmp 0x45d3ab
mov ecx, 1
mov qword [rdi + 0x20], rcx
mov qword [rdi + 0x28], rax
mov byte [rsi + 1], 1
xor eax, eax
mov byte [rsi], al
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x45d3ad
mov r8d, 0x10
mov rcx, rbx
call fcn.004245b0
mov rdx, qword [rbx + 8]
mov rax, qword [rbx + 0x10]
cmp rdx, rax
jne 0x45d336
mov r8d, 1
mov rcx, rbx
call fcn.004245b0
mov rdx, qword [rbx + 8]
mov rax, qword [rbx + 0x10]
jmp 0x45d336
mov qword [rsp + 0x30], 0
add rdi, 0x20
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.0041c9b0
ud2
Function at 0x461f20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movdqa xmmword [rsp + 0x40], xmm6
mov rsi, rcx
lea rcx, [rsp + 0x20]
call fcn.0045beb0
cmp qword [rsp + 0x20], 0
je 0x461f8d
mov rbx, qword [rsp + 0x28]
mov eax, ebx
and eax, 3
cmp eax, 1
jne 0x461fb4
lea rdi, [rbx - 1]
mov rcx, qword [rbx - 1]
mov rax, qword [rbx + 7]
call qword [rax]
mov rax, qword [rbx + 7]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x461f78
mov r8, qword [rax + 0x10]
mov rcx, qword [rdi]
call fcn.0040a2d0
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call fcn.0040a2d0
jmp 0x461fb4
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x461fb4
movdqu xmm6, xmmword [rsp + 0x30]
mov rcx, rdi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x461fc8
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x461fbb
mov qword [rsi], 0
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
mov qword [rsi], 0
movq rdx, xmm6
test rdx, rdx
je 0x461fbb
lea rax, [rdx + rdx]
add rdx, rdx
jb 0x461fbb
movabs rcx, 0x8000000000000001
add rax, rcx
add rcx, 1
cmp rax, rcx
jb 0x461fbb
mov r8d, 2
mov rcx, rdi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
jmp fcn.0040a2d0

Function at 0x4629f0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x80
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
mov edx, 0x10
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x462a26
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, [0x0043b620]
mov qword [rsp + 0x48], rax
lea rax, [0x0090bef0]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rsp + 0x50]
call fcn.004a41c0
ud2

Function at 0x462ab0
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rbx, r8
mov rdi, rdx
mov r14, rcx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], r8
mov ecx, 0x10
mov edx, 8
call fcn.0040a2c0
test rax, rax
je 0x462b76
mov rsi, rax
mov qword [rax], rdi
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x00462bd0]
xor ebx, ebx
xor ecx, ecx
mov rdx, r14
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rcx, rax
test rax, rax
jne 0x462b66
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
call qword [rax]
mov rax, qword [rsi + 8]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x462b3f
mov r8, qword [rax + 0x10]
mov rcx, qword [rsi]
call fcn.0040a2d0
mov edx, 0x10
mov r8d, 8
mov rcx, rsi
call fcn.0040a2d0
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
shl rcx, 0x20
or rcx, 2
mov ebx, 1
mov rax, rbx
mov rdx, rcx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 0x10
mov edx, 8
call fcn.00498280
ud2
Function at 0x465de0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov rcx, qword [0x004cd0c8]
test rcx, rcx
je 0x465e02
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x465e1c
jmp 0x465e2b
lea rcx, [0x004cd0c8]
call fcn.00450d00
mov rcx, rax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x465e2b
cmp byte [rax + 8], 0
je 0x465e2b
add rax, 9
jmp 0x465ed1
mov rcx, qword [0x004cd0c8]
test rcx, rcx
je 0x465ea6
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x465ec0
mov rdi, rax
test rax, rax
jne 0x465e92
mov ecx, 0x10
mov edx, 8
call fcn.0040a2c0
test rax, rax
je 0x465ed8
mov rdi, rax
mov byte [rax + 8], 0
lea rax, [0x004cd0c8]
mov qword [rdi], rax
mov rcx, qword [0x004cd0c8]
test rcx, rcx
jne 0x465e8a
lea rcx, [0x004cd0c8]
call fcn.00450d00
mov rcx, rax
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
test rsi, rsi
je 0x465ec4
mov cl, byte [rsi]
and cl, 1
neg cl
mov byte [rsi], 0
and cl, byte [rsi + 1]
jmp 0x465ec6
lea rcx, [0x004cd0c8]
call fcn.00450d00
mov rcx, rax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x465e42
xor eax, eax
jmp 0x465ed1
xor ecx, ecx
lea rax, [rdi + 9]
mov byte [rdi + 8], 1
mov byte [rdi + 9], cl
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0x10
mov edx, 8
call fcn.00498280
ud2

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rcx
mov rcx, qword [0x004cd0d8]
test rcx, rcx
je 0x465f13
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x465f2d
jmp 0x465f3f
lea rcx, [0x004cd0d8]
call fcn.00450d00
mov rcx, rax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x465f3f
mov rbx, rax
cmp qword [rax], 0
je 0x465f3f
add rbx, 8
jmp 0x466042
mov rcx, qword [0x004cd0d8]
test rcx, rcx
je 0x466022
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x466040
mov rdi, rax
test rax, rax
jne 0x465fb6
mov ecx, 0x20
mov edx, 8
call fcn.0040a2c0
test rax, rax
je 0x46604d
mov rdi, rax
mov qword [rax], 0
lea rax, [0x004cd0d8]
mov qword [rdi + 0x18], rax
mov rcx, qword [0x004cd0d8]
test rcx, rcx
jne 0x465fae
lea rcx, [0x004cd0d8]
call fcn.00450d00
mov rcx, rax
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
test rsi, rsi
je 0x465fd5
mov rax, qword [rsi]
mov qword [rsi], 0
cmp rax, 1
jne 0x465fd5
mov rax, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
jmp 0x465fd9
xor eax, eax
xor ecx, ecx
mov rdx, qword [rdi + 0x10]
mov qword [rsp + 0x30], rdx
movups xmm0, xmmword [rdi]
movaps xmmword [rsp + 0x20], xmm0
mov qword [rdi], 1
lea rbx, [rdi + 8]
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rcx
cmp qword [rsp + 0x20], 0
je 0x466042
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x466042
lock sub qword [rax], 1
jne 0x466042
lea rcx, [rsp + 0x30]
call fcn.00423580
jmp 0x466042
lea rcx, [0x004cd0d8]
call fcn.00450d00
mov rcx, rax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x465f5e
xor ebx, ebx
mov rax, rbx
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
mov ecx, 0x20
mov edx, 8
call fcn.00498280
ud2
Function at 0x466240
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rsi, rcx
mov rdi, qword [rdx]
mov rbx, qword [rdx + 8]
movzx ebp, word [rdx + 0x10]
mov rax, qword [0x00943178]
cmp rax, 3
jne 0x46636c
lea rcx, [rsp + 0x30]
mov rdx, rdi
mov r8, rbx
call fcn.00498a80
cmp qword [rsp + 0x30], 0
je 0x4662b4
mov rdx, qword [rsp + 0x48]
test rdx, rdx
jle 0x46629d
mov rcx, qword [rsp + 0x40]
mov r8, rdx
not r8
shr r8, 0x3f
call fcn.0040a2d0
lea rax, [0x00908388]
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x466340
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], rbx
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
mov rcx, rdi
mov rdx, rbx
call fcn.004a39d0
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
mov rcx, rax
xor edx, edx
call sub.WS2_32.dll_getaddrinfo
test eax, eax
je 0x46634c
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
je 0x466340
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.0040a2d0
mov rax, rsi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bp
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
jne 0x46632f
jmp 0x466340
call fcn.0044e6f0
jmp 0x466267
Function at 0x466940
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 0x4669ef
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x30]
cmp cx, 2
je 0x466a0f
cmp cx, 0x17
jne 0x466a43
cmp eax, 0x1c
jb 0x466a5e
movzx eax, word [rsp + 0x32]
mov ecx, dword [rsp + 0x34]
mov edx, dword [rsp + 0x48]
rol ax, 8
mov word [rsi + 4], 1
mov dword [rsi + 8], ecx
mov dword [rsi + 0xc], edx
mov word [rsi + 0x10], ax
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rsi + 0x12], xmm0
jmp 0x466a3f
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov dword [rsi], 1
add rsp, 0xb0
pop rsi
ret
cmp eax, 0x10
jb 0x466a78
movzx eax, word [rsp + 0x32]
rol ax, 8
mov ecx, dword [rsp + 0x34]
mov rdx, rcx
shl rdx, 0x10
movzx eax, ax
or rax, rdx
mov word [rsi + 4], 0
shr rcx, 0x10
mov word [rsi + 0xa], cx
mov dword [rsi + 6], eax
xor eax, eax
jmp 0x466a53
lea rax, str.invalid_argumenth
mov qword [rsi + 8], rax
mov eax, 1
mov dword [rsi], eax
add rsp, 0xb0
pop rsi
ret
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___library_std_src_sys_common_net.rs
lea r8, [0x0090cbf8]
mov edx, 0x43
call fcn.004a3ff0
ud2
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___
lea r8, [0x0090cc58]
mov edx, 0x42
call fcn.004a3ff0
ud2

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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov rcx, qword [0x004cd0e8]
test rcx, rcx
je 0x4670a2
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x4670bc
jmp 0x4670cb
lea rcx, [0x004cd0e8]
call fcn.00450d00
mov rcx, rax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x4670cb
cmp qword [rax], 0
je 0x4670cb
add rax, 8
jmp 0x467190
mov rcx, qword [0x004cd0e8]
test rcx, rcx
je 0x467170
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x46718e
mov rdi, rax
test rax, rax
jne 0x467142
mov ecx, 0x18
mov edx, 8
call fcn.0040a2c0
test rax, rax
je 0x467197
mov rdi, rax
mov qword [rax], 0
lea rax, [0x004cd0e8]
mov qword [rdi + 0x10], rax
mov rcx, qword [0x004cd0e8]
test rcx, rcx
jne 0x46713a
lea rcx, [0x004cd0e8]
call fcn.00450d00
mov rcx, rax
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
test rsi, rsi
je 0x46715d
mov rax, qword [rsi]
mov qword [rsi], 0
cmp rax, 1
jne 0x46715d
mov rcx, qword [rsi + 8]
jmp 0x46715f
xor ecx, ecx
lea rax, [rdi + 8]
mov qword [rdi], 1
mov qword [rdi + 8], rcx
jmp 0x467190
lea rcx, [0x004cd0e8]
call fcn.00450d00
mov rcx, rax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x4670ea
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0x18
mov edx, 8
call fcn.00498280
ud2
Function at 0x4673f0
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x98
mov rax, r8
mov rdi, rcx
mov dword [rsp + 0x60], 0
mov word [rsp + 0x64], 0
mov dword [rsp + 0x54], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x58], 7
mov byte [rsp + 0x60], 1
lea r8, [rsp + 0x40]
mov rcx, rdx
mov rdx, rax
call fcn.004563e0
mov rbx, rdx
mov rsi, rdx
test rax, rax
je 0x46749b
mov eax, esi
and eax, 3
cmp eax, 1
jne 0x467492
add rbx, 0xffffffffffffffff
mov rcx, qword [rsi - 1]
mov rax, qword [rsi + 7]
call qword [rax]
mov rax, qword [rsi + 7]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x46747f
mov r8, qword [rax + 0x10]
mov rcx, qword [rbx]
call fcn.0040a2d0
mov edx, 0x18
mov r8d, 8
mov rcx, rbx
call fcn.0040a2d0
mov qword [rdi], 0
jmp 0x467512
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.004565c0
cmp qword [rsp + 0x40], 0
je 0x4674fb
mov rbx, qword [rsp + 0x48]
mov eax, ebx
and eax, 3
cmp eax, 1
jne 0x467503
lea r14, [rbx - 1]
mov rcx, qword [rbx - 1]
mov rax, qword [rbx + 7]
call qword [rax]
mov rax, qword [rbx + 7]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x4674e6
mov r8, qword [rax + 0x10]
mov rcx, qword [r14]
call fcn.0040a2d0
mov edx, 0x18
mov r8d, 8
mov rcx, r14
call fcn.0040a2d0
jmp 0x467503
cmp qword [rsp + 0x50], 2
jne 0x467524
mov qword [rdi], 0
mov rcx, rsi
call sub.KERNEL32.dll_CloseHandle
nop
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r12, qword [rsp + 0x48]
test rbx, rbx
je 0x467576
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 0x4675f9
mov r14, qword [rsp + 0x40]
jmp 0x467579
xor r14d, r14d
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, r14
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingA
test rax, rax
je 0x4675e5
mov rbx, 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, rbx
call sub.KERNEL32.dll_CloseHandle
test r15, r15
je 0x4675e5
mov qword [rdi + 8], r14
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r12
mov qword [rdi], 1
jmp 0x46750a
mov qword [rdi], 0
mov rcx, r14
call sub.KERNEL32.dll_CloseHandle
jmp 0x46750a
call sub.KERNEL32.dll_GetLastError
jmp 0x467503
Function at 0x4af020
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test r8, r8
je 0x4af09a
mov r11, qword [rsp + 0x70]
mov ebp, ecx
shr ebp, 8
lea r8, [rdx + r8*2]
xor eax, eax
mov rbx, rdx
movzx edi, byte [rdx + 1]
add rdx, 2
lea r10, [rax + rdi]
cmp byte [rbx], bpl
jne 0x4af090
cmp r10, rax
jb 0x4af12d
cmp r10, r11
ja 0x4af13a
add rax, r9
xor ebx, ebx
nop dword [rax + rax]
cmp rdi, rbx
je 0x4af092
lea rsi, [rbx + 1]
cmp byte [rax + rbx], cl
mov rbx, rsi
jne 0x4af070
jmp 0x4af102
ja 0x4af09a
mov rax, r10
cmp r8, rdx
jne 0x4af03d
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x4af106
mov rbx, qword [rsp + 0x78]
add rdx, rbx
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
nop
lea rsi, [rbx + 1]
movzx edi, byte [rbx]
test dil, dil
js 0x4af0e0
mov rbx, rsi
sub ecx, edi
jns 0x4af0f9
jmp 0x4af108
cmp rsi, rdx
je 0x4af113
movzx ebp, byte [rbx + 1]
add rbx, 2
and edi, 0x7f
shl edi, 8
or edi, ebp
sub ecx, edi
js 0x4af108
xor al, 1
cmp rbx, rdx
jne 0x4af0c0
jmp 0x4af108
xor eax, eax
jmp 0x4af108
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x0091d2d1]
lea r8, [0x0091eff8]
mov edx, 0x2b
call fcn.004a3ff0
ud2
mov rcx, rax
mov rdx, r10
call fcn.004ab2a0
ud2
mov rcx, r10
mov rdx, r11
call fcn.004ab1c0
ud2
Function at 0x4cb210
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.004cc2d0
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.004cc2d0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x4cb280
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x00943814]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x4cb428
mov rax, qword [0x00943818]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x4cb2cc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x4cb357
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x4cb2b0
mov rcx, r12
call fcn.004cbfe0
mov rbp, rax
test rax, rax
je 0x4cb462
mov rax, qword [0x00943818]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.004cc110
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00943818]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4cb471
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x4cb350
sub eax, 4
and eax, 0xfffffffb
jne 0x4cb3e0
add dword [0x00943814], 1
cmp ebx, 8
jae 0x4cb388
test bl, 4
jne 0x4cb430
test ebx, ebx
je 0x4cb379
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x4cb450
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x4cb379
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x4cb3ba
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x00943818]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4cb350
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004cb210
nop dword [rax]
xor edi, edi
jmp 0x4cb2d7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x4cb379
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x4cb379
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.004cb210
mov rax, qword [0x00943818]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.004cb210
nop
nop dword [rax]