joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140269cf8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp qword [rcx], 0
je 0x140269d0d
add rcx, 8
xor r8d, r8d
xor r9d, r9d
jmp fcn.140269d19
add rcx, 8
xor r8d, r8d
jmp 0x14026d3bb

Function at 0x14026c30e
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
cmp rcx, 0xffffffffffffffff
je 0x14026c358
movzx eax, dl
lea r9, [rsp + 0x34]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14026c345
xor eax, eax
jmp 0x14026c353
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuecalled__Result::unwrap____on_an__Err__value
lea r8, str.C:Usersuser1.cargo_registry_srcgithub.com_1ecc6299db9ec823_tokio_1.34.0_srciopoll_evented.rs
mov edx, 0x2b
call fcn.1403af950
ud2
Function at 0x14026c674
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, 0x78
mov qword [rsp + 0x60], r9
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x30], rcx
mov rax, qword [rsp + 0xe0]
lea rcx, [rdx + 0x10]
mov qword [rsp + 0x50], rcx
lea rbp, [rsp + 0x42]
mov rcx, qword [rdx + 0x20]
mov qword [rsp + 0x68], rcx
mov rcx, qword [rdx]
mov qword [rsp + 0x48], rcx
mov rsi, qword [rdx + 8]
mov ecx, 0x7fffffff
cmp rax, rcx
cmovb rcx, rax
mov qword [rsp + 0x58], rcx
lea rdi, [rsp + 0x38]
mov rcx, rdi
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
mov r9b, 1
call fcn.1402696fd
mov r13b, byte [rsp + 0x41]
cmp r13b, 3
je 0x14026c830
mov r12, qword [rsp + 0x38]
cmp r13b, 2
je 0x14026c83e
mov bl, byte [rsp + 0x40]
movzx eax, word [rbp + 4]
mov word [rsp + 0x2c], ax
mov eax, dword [rbp]
mov dword [rsp + 0x28], eax
cmp rsi, 0xffffffffffffffff
je 0x14026c886
mov rcx, rsi
mov rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x58]
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
jne 0x14026c850
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r14, rax
shl r14, 0x20
or r14, 2
mov ecx, eax
call fcn.14023d1d0
cmp al, 0xd
jne 0x14026c7b8
cmp qword [rsp + 0x48], 0
je 0x14026c7b8
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 8]
mov rdx, qword [rax + 0x10]
lock inc qword [rdx]
jle 0x14026c8a0
add rcx, 0x10
mov r8, qword [rax]
mov r9b, byte [rax + 0x18]
call fcn.140126b95
test rax, rax
je 0x14026c7b8
mov r15, rax
mov rcx, r14
call fcn.14007eeac
mov eax, r15d
and eax, 3
lea rcx, [0x14026c8a4]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
mov r14, r15
jmp rax
mov eax, r14d
and eax, 3
lea rcx, [0x14026c8a4]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov al, byte [r14 + 0x10]
jmp 0x14026c7e6
mov al, byte [r14 + 0xf]
jmp 0x14026c7e6
mov rcx, r14
shr rcx, 0x20
call fcn.14023d1d0
cmp al, 0xd
je 0x14026c7f8
jmp 0x14026c865
mov rax, r14
shr rax, 0x20
cmp eax, 0xd
jne 0x14026c865
mov qword [rsp + 0x38], r12
mov byte [rsp + 0x40], bl
mov byte [rsp + 0x41], r13b
movzx eax, word [rsp + 0x2c]
mov word [rbp + 4], ax
mov eax, dword [rsp + 0x28]
mov dword [rbp], eax
mov rcx, qword [rsp + 0x50]
mov rdx, rdi
call fcn.140269949
mov rcx, r14
call fcn.14007eeac
jmp 0x14026c6d4
mov rax, qword [rsp + 0x30]
mov qword [rax], 2
jmp 0x14026c875
mov rax, qword [rsp + 0x30]
mov qword [rax], 1
mov qword [rax + 8], r12
jmp 0x14026c875
movsxd rcx, eax
mov rax, qword [rsp + 0x30]
mov qword [rax], 0
mov qword [rax + 8], rcx
jmp 0x14026c875
mov rax, qword [rsp + 0x30]
mov qword [rax], 1
mov qword [rax + 8], r14
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuecalled__Result::unwrap____on_an__Err__value
lea r8, str.PL_
mov edx, 0x2b
call fcn.1403af950
ud2
ud2
Function at 0x14026da0b
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x14026da12
test al, 1
je 0x14026da31
test al, 2
jne 0x14026da46
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1404c8418]
mov edx, 0x23
jmp 0x14026da59
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1404c8458]
mov edx, 0x25
call fcn.1403af950
ud2
Function at 0x140281337
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov r14, r8
mov rdi, rdx
mov rsi, rcx
lea rax, [rsp + 0x60]
mov qword [rax], 0
mov qword [rsp + 0x20], rax
lea rcx, [0x1404ede08]
lea r9, [0x1404ede18]
xor edx, edx
mov r8d, 1
call sub.ole32.dll_CoCreateInstance
test eax, eax
js 0x140281454
mov r15, qword [rsp + 0x60]
test r15, r15
je 0x140281501
mov qword [rsp + 0x58], 0
lea rbx, [rsp + 0x60]
mov rcx, rbx
mov rdx, rdi
mov r8, r14
call fcn.140281123
mov al, byte [rbx]
cmp al, 0x14
jne 0x14028145f
mov r14, qword [rsp + 0x68]
mov rax, qword [r15]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x40], rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
mov rcx, r15
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [rax + 0x18]
test eax, eax
js 0x140281499
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x140281511
mov rcx, r14
call qword [sym.imp.oleaut32.dll_SysFreeString]
mov eax, 3
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov rcx, rbx
mov edx, 0xa
xor r8d, r8d
xor r9d, r9d
call sub.ole32.dll_CoSetProxyBlanket
test eax, eax
js 0x1402814f0
mov qword [rsi + 8], rbx
mov byte [rsi], 0x14
jmp 0x1402814d7
mov byte [rsi], 0
mov dword [rsi + 4], eax
jmp 0x1402814e0
mov cl, byte [rsp + 0x63]
mov byte [rsp + 0x56], cl
movzx ecx, word [rsp + 0x61]
mov word [rsp + 0x54], cx
mov ebx, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x68]
movups xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x90], xmm0
movups xmm0, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0xa0], xmm0
jmp 0x1402814a6
mov ebx, eax
mov rcx, r14
call qword [sym.imp.oleaut32.dll_SysFreeString]
xor eax, eax
mov dl, byte [rsp + 0x56]
mov byte [rsi + 3], dl
movzx edx, word [rsp + 0x54]
mov word [rsi + 1], dx
movaps xmm0, xmmword [rsp + 0x90]
movaps xmm1, xmmword [rsp + 0xa0]
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi + 0x20], xmm1
mov byte [rsi], al
mov dword [rsi + 4], ebx
mov qword [rsi + 8], rcx
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x10]
nop
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov byte [rsi], 0
mov dword [rsi + 4], eax
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
jmp 0x1402814d7
lea rcx, str.called__Option::unwrap____on_a__None__valuecalled__Result::unwrap____on_an__Err__value
lea r8, str.C:Usersuser1.cargo_registry_srcgithub.com_1ecc6299db9ec823wmi_0.11.5_srcconnection.rsROOTCIMV2
jmp 0x14028151f
lea rcx, str.called__Option::unwrap____on_a__None__valuecalled__Result::unwrap____on_an__Err__value
lea r8, str.C:Usersuser1.cargo_registry_srcgithub.com_1ecc6299db9ec823wmi_0.11.5_srcconnection.rsROOTCIMV2
mov edx, 0x2b
call fcn.1403af950
ud2
Function at 0x2fc4d4d30
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d5e10
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d5732
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f8108]
test eax, eax
je 0x2fc4d57ca
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f8110]
mov qword [rbp - 8], rax
jmp 0x2fc4d57ae
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d57a2
cmp qword [rbp - 0x10], 0
je 0x2fc4d57a2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d5768
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d57cb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d58d0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d58f8
mov eax, 0
jmp 0x2fc4d5946
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d5921
mov eax, 0
jmp 0x2fc4d5946
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d5941
mov eax, 0
jmp 0x2fc4d5946
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d594c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d59ca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d59c1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d59c1
mov rax, qword [rbp - 8]
jmp 0x2fc4d59df
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d5994
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001524
Capabilities:
Create process on windows

Disassembly:
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0xf0]
mov qword [rbp + 0x20], rcx
lea rdx, [rbp - 0xd0]
mov eax, 0
mov ecx, 0xe
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0xd0], 0x70
mov dword [rbp - 0xcc], 0x40
mov qword [rbp - 0xc8], 0
lea rax, [rbp - 0x5b]
lea rdx, [rbp - 0x56]
mov rcx, rax
call sym.ExecuteCommandHidden_char_const_::lambda__1::operator_____const
lea rax, [rbp - 0x5b]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax + 4]
test al, al
setne al
test al, al
je 0x14000160d
mov rax, qword [rbp - 8]
mov rdx, qword [rbp - 8]
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x24], 0
jmp 0x140001606
mov eax, dword [rbp - 0x24]
cdqe
mov rdx, qword [rbp - 0x20]
add rax, rdx
movzx r8d, byte [rax]
mov eax, dword [rbp - 0x24]
movsxd rdx, eax
imul rdx, rdx, 0xffffffff92492493
shr rdx, 0x20
add edx, eax
sar edx, 5
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x38
sub eax, ecx
mov edx, eax
mov eax, edx
add eax, 0x31
xor eax, r8d
mov rcx, qword [rbp - 0x18]
mov edx, dword [rbp - 0x24]
movsxd rdx, edx
mov byte [rcx + rdx], al
add dword [rbp - 0x24], 1
cmp dword [rbp - 0x24], 4
jle 0x1400015b9
nop
lea rax, [rbp - 0x5b]
mov qword [rbp - 0xc0], rax
lea rax, [rbp - 0x4d]
mov rcx, rax
call sym.ExecuteCommandHidden_char_const_::lambda__2::operator_____const
mov qword [rbp - 0x55], rax
lea rax, [rbp - 0x55]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x38]
movzx eax, byte [rax + 7]
test al, al
setne al
test al, al
je 0x1400016b6
mov rax, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x30]
mov qword [rbp - 0x40], rdx
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x4c], 0
jmp 0x1400016af
mov eax, dword [rbp - 0x4c]
cdqe
mov rdx, qword [rbp - 0x48]
add rax, rdx
movzx r8d, byte [rax]
mov eax, dword [rbp - 0x4c]
movsxd rdx, eax
imul rdx, rdx, 0xffffffff92492493
shr rdx, 0x20
add edx, eax
sar edx, 5
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x38
sub eax, ecx
mov edx, eax
mov eax, edx
add eax, 0x31
xor eax, r8d
mov rcx, qword [rbp - 0x40]
mov edx, dword [rbp - 0x4c]
movsxd rdx, edx
mov byte [rcx + rdx], al
add dword [rbp - 0x4c], 1
cmp dword [rbp - 0x4c], 7
jle 0x140001662
nop
lea rax, [rbp - 0x55]
mov qword [rbp - 0xb8], rax
mov rax, qword [rbp + 0x20]
mov qword [rbp - 0xb0], rax
mov qword [rbp - 0xa8], 0
mov dword [rbp - 0xa0], 0
mov qword [rbp - 0x98], 0
lea rax, [rbp - 0xd0]
mov rcx, rax
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
mov rax, qword [rbp - 0x68]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 0x68]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0xf8
pop rdi
pop rbp
ret
Function at 0x1400028a0
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 sym.__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 sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140002910
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140008094]
test esi, esi
mov rbx, rcx
jle 0x140002a40
mov rax, qword [0x140008098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000295b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400029e5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002940
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140002a62
mov rax, qword [0x140008098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140008098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002a47
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400029de
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400029f0
add dword [0x140008094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140008098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400029de
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140002968
mov rax, qword [0x140008098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002fd0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400080e0]
test rbx, rbx
je 0x14000302c
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 0x140003023
test rsi, rsi
je 0x140003023
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003008
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 0x140003240
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop

Function at 0x140003250
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop

Function at 0x140003260
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140003278
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140003280
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140003290
Capabilities:
Enumerate pe sections

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

Function at 0x1400032e0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140003370
mov rdx, qword [0x140005570]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000335e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000335e
cmp word [rax + 0x18], 0x20b
jne 0x14000335e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140003370
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140003349
add rbx, 0x28
cmp rbx, rdi
je 0x140003370
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140003340
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 0x140003380
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140003400
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005570]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000341f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003428
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000341f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140003440
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140005570]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140003460
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140003468
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140003460
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x1400034b0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400034a7
test rcx, rcx
je 0x140003460
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140003498
xor eax, eax
ret

Function at 0x1400034c0
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140005570]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003520
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003528
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003520
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x140003520
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]
cmp rcx, r8
mov rax, r8
jb 0x140003574
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140003580
add rdx, 0x28
cmp r9, rdx
jne 0x140003560
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140005570]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400035b2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400035c0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400035b2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400035b2
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x1400035b2
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]
cmp rax, r9
mov r8, r9
jb 0x140003615
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140003628
add rdx, 0x28
cmp rdx, r10
jne 0x140003600
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140003637
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140003647
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000361e
test ecx, ecx
jg 0x140003630
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret