joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e3470
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov eax, 1
test rcx, rcx
jne 0x1400e35fe
mov rax, qword [0x140182270]
cmp rax, 3
jne 0x1400e3609
mov r14, rdx
cmp word [rdx], 0
mov eax, 2
mov edi, 0x17
cmove edi, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, edi
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400e350b
cmp word [r14], 0
je 0x1400e3581
movups xmm0, xmmword [r14 + 4]
mov eax, dword [r14 + 0x14]
mov edx, dword [r14 + 0x18]
movzx ecx, word [r14 + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x1400e3598
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x1400e3525
mov ebx, eax
cmp eax, 0x2726
jne 0x1400e35ee
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, edi
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x1400e35e6
mov rsi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
jne 0x1400e34de
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_closesocket]
jmp 0x1400e35ee
mov eax, dword [r14 + 2]
movzx ecx, word [r14 + 6]
mov r8d, 0x10
mov r9w, 2
xorps xmm0, xmm0
rol cx, 8
mov word [rbp - 0x1c], r9w
mov word [rbp - 0x1a], cx
mov dword [rbp - 0x18], eax
movups xmmword [rbp - 0x14], xmm0
mov dword [rbp - 4], edx
lea rdx, [rbp - 0x1c]
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1400e35c8
xor eax, eax
mov rdx, rsi
jmp 0x1400e35fe
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_closesocket]
mov rdx, rdi
jmp 0x1400e35f9
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov rdx, rbx
mov eax, 1
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov rsi, rdx
call fcn.1401104f0
mov rdx, rsi
jmp 0x1400e349e
Function at 0x1400e6e20
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov qword [rsp + 0x30], r8
mov rsi, qword [rcx + 0x10]
mov rbx, qword [rcx + 0x18]
cmp rbx, 0xffffffffffffffff
je 0x1400e6fb7
mov r14, qword [rdx]
cmp r9, 0x7fffffff
mov r15d, 0x7fffffff
cmovb r15, r9
mov r12, qword [rcx + 0x20]
jmp 0x1400e6e95
mov rcx, qword [0x140182268]
xor edx, edx
mov r8, rbp
call fcn.140101bb0
dec r13
mov rcx, qword [0x140182268]
xor edx, edx
mov r8, r13
call fcn.140101bb0
lea rcx, [rsp + 0x20]
mov rdx, rsi
mov r8, r14
mov r9b, 1
call fcn.1400e6750
movzx eax, byte [rsp + 0x29]
cmp al, 3
je 0x1400e6fd3
mov rbp, qword [rsp + 0x20]
cmp al, 2
je 0x1400e6fed
movzx edi, byte [rsp + 0x28]
mov rcx, rbx
mov rdx, qword [rsp + 0x30]
mov r8d, r15d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1400e6ff7
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r13d, eax
shl r13, 0x20
or r13, 2
mov rcx, r13
call fcn.1400483f0
cmp al, 0xd
jne 0x1400e6f34
test r12, r12
je 0x1400e6f34
mov rcx, qword [r12]
mov rdx, qword [r12 + 8]
lock inc qword [rdx]
jle 0x1400e7010
add rcx, 0x10
mov r8, qword [r12 + 0x10]
movzx r9d, byte [r12 + 0x18]
call fcn.140047240
test rax, rax
cmovne r13, rax
mov rcx, r13
call fcn.14001a310
cmp al, 0xd
jne 0x1400e6fe6
movzx ecx, dil
and ebp, 0x23
mov rax, qword [rsi + 0x90]
shl ecx, 0x10
xor rbp, 0x2f
nop dword [rax]
mov edx, eax
shr edx, 0x10
cmp dil, dl
jne 0x1400e6f7c
mov edx, eax
and edx, ebp
or rdx, rcx
lock cmpxchg qword [rsi + 0x90], rdx
jne 0x1400e6f60
mov eax, r13d
and eax, 3
cmp eax, 1
jne 0x1400e6e95
mov rbp, qword [r13 - 1]
mov rdi, qword [r13 + 7]
mov rcx, rbp
call qword [rdi]
cmp qword [rdi + 8], 0
je 0x1400e6e81
cmp qword [rdi + 0x10], 0x11
jb 0x1400e6e70
mov rbp, qword [rbp - 8]
jmp 0x1400e6e70
mov r8, qword [rdx]
lea rcx, [rsp + 0x20]
mov rdx, rsi
mov r9b, 1
call fcn.1400e6750
movzx eax, byte [rsp + 0x29]
cmp al, 3
jne 0x1400e6fdd
mov eax, 2
mov r13, rbp
jmp 0x1400e6ffc
cmp al, 2
jne 0x1400e7012
mov r13, qword [rsp + 0x20]
mov eax, 1
jmp 0x1400e6ffc
mov eax, 1
mov r13, rbp
jmp 0x1400e6ffc
movsxd r13, eax
xor eax, eax
mov rdx, r13
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
lea rcx, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.36.0_srciopoll_evented.rs
call fcn.140108610
int3
Function at 0x1400fb2e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x118
mov rbx, r9
mov rbp, r8
mov rdi, rdx
mov r15, rcx
mov r12, qword [rsp + 0x180]
mov eax, 0x2600
mov r13, r8
jmp 0x1400fb346

Function at 0x1401023a4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x1401023ee
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401023ee
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401023ee
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401023ee
cmp dword [rcx + 0x84], 0xe
jbe 0x1401023ee
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401023f0
xor al, al
add rsp, 0x28
ret

Function at 0x140106000
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140106028
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140106028
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14010c580
Capabilities:
Link many functions at runtime

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rcx, [0x14013bee5]
call sub.kernel32.dll_GetModuleHandleA
test rax, rax
je 0x14010c5d2
mov rdi, rax
lea rdx, [0x14013bf06]
mov rcx, rax
call sub.kernel32.dll_GetProcAddress
test rax, rax
je 0x14010c5d2
mov rsi, rax
lea rdx, [0x14013bf14]
mov rcx, rdi
call sub.kernel32.dll_GetProcAddress
test rax, rax
je 0x14010c5d2
mov r14, rax
xor edi, edi
jmp 0x14010c656
lea rcx, [0x14013bea0]
call sub.kernel32.dll_GetModuleHandleA
test rax, rax
je 0x14010c6bd
mov rsi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call sub.kernel32.dll_GetProcAddress
test rax, rax
je 0x14010c6bd
mov rbx, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rsi
call sub.kernel32.dll_GetProcAddress
test rax, rax
je 0x14010c6bd
mov rdi, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rsi
call sub.kernel32.dll_GetProcAddress
test rax, rax
je 0x14010c6bd
mov rsi, rax
lea rcx, [rsp + 0x20]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rbx
test eax, eax
jne 0x14010c6bd
mov r14, qword [rsp + 0x20]
movzx eax, byte [0x140182310]
mov edx, 0x18
xor ecx, ecx
call fcn.1400df540
test rax, rax
je 0x14010c6c2
mov rbx, rax
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], r14
xor eax, eax
lock cmpxchg qword [0x1401821c0], rbx
je 0x14010c6b0
mov rsi, rax
cmp qword [rbx], 0
je 0x14010c69c
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [0x140182268]
xor edx, edx
mov r8, rbx
call fcn.140101bb0
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14010c6e0
mov ecx, 8
mov edx, 0x18
call fcn.140107f90
int3
Function at 0x140110560
Capabilities:
Resolve dns

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov r14, r8
inc r14
sete r13b
je 0x140110785
js 0x140110791
mov rdi, r9
mov rbx, r8
mov r15, rdx
mov rsi, rcx
movzx eax, byte [0x140182310]
xor ecx, ecx
mov rdx, r14
call fcn.1400df540
test rax, rax
je 0x140110796
mov r12, rax
mov rcx, rax
mov rdx, r15
mov r8, rbx
call fcn.140106220
cmp rbx, 0x10
jae 0x1401105f8
test rbx, rbx
je 0x14011069f
xor eax, eax
nop word cs:[rax + rax]
cmp byte [r15 + rax], 0
je 0x140110707
inc rax
cmp rbx, rax
jne 0x1401105e0
jmp 0x14011069f
lea rax, [r15 + 7]
and rax, 0xfffffffffffffff8
sub rax, r15
jne 0x140110650
lea rcx, [rbx - 0x10]
xor eax, eax
movdqa xmm0, xmmword [0x140112770]
movabs rdx, 0x8080808080808080
nop dword [rax]
movdqu xmm1, xmmword [r15 + rax]
movdqa xmm2, xmm1
paddq xmm2, xmm0
pandn xmm1, xmm2
pshufd xmm2, xmm1, 0xee
por xmm2, xmm1
movq r8, xmm2
test r8, rdx
jne 0x14011067c
add rax, 0x10
cmp rax, rcx
jbe 0x140110620
jmp 0x14011067c
cmp rax, rbx
cmovae rax, rbx
xor ecx, ecx
nop dword [rax]
cmp byte [r15 + rcx], 0
je 0x140110707
inc rcx
cmp rax, rcx
jne 0x140110660
lea rcx, [rbx - 0x10]
cmp rax, rcx
jbe 0x14011060b
cmp rax, rbx
je 0x14011069f
nop word cs:[rax + rax]
cmp byte [r15 + rax], 0
je 0x140110707
inc rax
cmp rbx, rax
jne 0x140110690
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], rbx
lea rcx, [rbp - 0x30]
call fcn.140010da0
mov rbx, rax
mov r14, rdx
pxor xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
movdqa xmmword [rbp - 0x10], xmm0
movdqa xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x28], 1
mov qword [rbp], 0
lea r8, [rbp - 0x30]
mov r9, rbp
mov rcx, rax
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x14011073f
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x140110753
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
test r13b, r13b
jne 0x140110773
mov rcx, qword [0x140182268]
xor edx, edx
mov r8, r12
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp fcn.140101bb0
mov rcx, qword [rdi]
mov rax, qword [rbp]
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 [rbx], 0
test r14, r14
je 0x140110773
mov rcx, qword [0x140182268]
xor edx, edx
mov r8, rbx
call fcn.140101bb0
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, str.library_alloc_src_ffic_str.rs
call fcn.140108610
call fcn.140010c70
mov ecx, 1
mov rdx, r14
call fcn.140107f90
int3
Function at 0x33f101370
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov dword [rbp + 0x28], r9d
lea rax, [rbp - 8]
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
call rax
test eax, eax
sete al
test al, al
je 0x33f1013d8
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_in_CryptAcquireContextW___u__n
mov rcx, rax
call sym.printf_char_const__::_
jmp 0x33f1014de
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0x800c
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
call rax
test eax, eax
sete al
test al, al
je 0x33f10142a
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_in_CryptCreateHash___u__n
mov rcx, rax
call sym.printf_char_const__::_
jmp 0x33f1014de
mov rax, qword [rbp - 0x10]
mov ecx, dword [rbp + 0x28]
mov rdx, qword [rbp + 0x20]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptHashData]
call rax
mov rcx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8, rcx
mov edx, 0x6610
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
call rax
mov rax, qword [rbp - 0x18]
lea rdx, [rbp + 0x18]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rbp + 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
call rax
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
call rax
nop
add rsp, 0x50
pop rbp
ret
Function at 0x33f1014fe
Capabilities:
Create thread

Disassembly:
push rbp
mov eax, 0x19670
call fcn.33f102470
sub rsp, rax
lea rbp, [rsp + 0x80]
mov r9d, 0
lea r8, str.ITPSS
lea rax, str.OWNED_
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
movabs rax, 0x1d89462dc75e6d15
movabs rdx, 0xcf0989f8fbd4818c
mov qword [rbp + 0x195c0], rax
mov qword [rbp + 0x195c8], rdx
lea rax, [rbp - 0x40]
lea rdx, [0x33f1090e0]
mov ecx, 0x19600
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov dword [rbp + 0x195ec], 0x19600
mov r9d, 4
mov r8d, 0x3000
mov edx, 0x19600
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x195e0], rax
cmp qword [rbp + 0x195e0], 0
jne 0x33f1015d4
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_to_Allocate_memory___u__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0xffffffff
jmp 0x33f101706
lea rcx, [rbp + 0x195c0]
mov edx, dword [rbp + 0x195ec]
lea rax, [rbp - 0x40]
mov r9d, 0x10
mov r8, rcx
mov rcx, rax
call sym.DecriptAES_char__unsigned_long__char__unsigned_long_
lea rdx, [rbp - 0x40]
mov rax, qword [rbp + 0x195e0]
mov r8d, 0x19600
mov rcx, rax
call sym.memmove
lea rdx, [rbp - 0x44]
mov rax, qword [rbp + 0x195e0]
mov r9, rdx
mov r8d, 0x20
mov edx, 0x19600
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
sete al
test al, al
je 0x33f101661
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_to_change_memory_protection___u__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0xfffffffe
jmp 0x33f101706
mov rax, qword [rbp + 0x195e0]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp + 0x195d8], rax
cmp qword [rbp + 0x195d8], 0
jne 0x33f1016c7
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_to_Create_the_thread___u__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0xfffffffd
jmp 0x33f101706
mov rax, qword [rbp + 0x195e0]
mov rdx, rax
lea rax, str._n_nalloc_mem_:__p_n
mov rcx, rax
call sym.printf_char_const__::_
mov rax, qword [rbp + 0x195d8]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp + 0x195e0]
call rax
mov eax, 0
add rsp, 0x19670
pop rbp
ret

Function at 0x33f1018b0
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x33f101920
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x33f126064]
mov rbx, rcx
test esi, esi
jle 0x33f101a50
mov rax, qword [0x33f126068]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x33f10196b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x33f1019f5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x33f101950
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x33f101a72
mov rax, qword [0x33f126068]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x33f126068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x33f101a57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x33f1019ee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x33f101a00
add dword [0x33f126064], 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 [0x33f126068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x33f1019ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x33f101978
mov rax, qword [0x33f126068]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x33f101df0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x33f1260a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x33f126080]
test rbx, rbx
je 0x33f101e4c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x33f101e43
test rsi, rsi
je 0x33f101e43
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x33f101e28
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 0x33f102060
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x33f102078
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x33f102080
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x33f102090
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x33f1020dd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x33f1020d4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x33f1020df
add rax, 0x28
cmp rax, r9
jne 0x33f1020c0
xor eax, eax
ret

Function at 0x33f1020e0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x33f102170
mov rdx, qword [0x33f122c70]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x33f10215e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x33f10215e
cmp word [rax + 0x18], 0x20b
jne 0x33f10215e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x33f102170
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x33f102149
add rbx, 0x28
cmp rbx, rdi
je 0x33f102170
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x33f102140
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x33f102180
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x33f122c70]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x33f1021a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x33f1021a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x33f1021a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x33f1021fd
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 0x33f1021f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x33f1021a0
add rax, 0x28
cmp rax, r9
jne 0x33f1021e0
xor eax, eax
ret

Function at 0x33f102200
Capabilities:
Parse pe header

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

Function at 0x33f102240
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x33f122c70]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x33f102260
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x33f102268
ret
cmp word [rdx + 0x18], 0x20b
jne 0x33f102260
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x33f1022b0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x33f1022a7
test rcx, rcx
je 0x33f102260
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x33f102298
xor eax, eax
ret
Function at 0x33f1022c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x33f122c70]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x33f1022df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x33f1022e8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x33f102300
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x33f122c70]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x33f102320
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x33f102328
ret
cmp word [r8 + 0x18], 0x20b
jne 0x33f102320
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x33f102320
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x33f102374
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x33f102380
add rdx, 0x28
cmp r9, rdx
jne 0x33f102360
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x33f102390
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x33f122c70]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x33f1023b2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x33f1023c0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x33f1023b2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x33f1023b2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x33f1023b2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x33f102415
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x33f102428
add rdx, 0x28
cmp rdx, r10
jne 0x33f102400
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x33f102437
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x33f102447
mov edx, dword [rax + 0xc]
test edx, edx
je 0x33f10241e
test ecx, ecx
jg 0x33f102430
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret