joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180096170
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
call qword [rax + reloc.WS2_32.dll_recv]
test al, al
jne 0x1800961a9
mov rax, 0xffffffffffffffff
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov rdi, qword [rdi + 8]
mov qword [rsp + 0x38], rbx
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
jns 0x1800961d6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1800961b2
mov rbp, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x180098868
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1800988ec
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x18010daa0]
cmp byte [rcx + rax], 0
je 0x1800988ec
dec r8
sub rdx, 1
jne 0x1800988d2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x180099350
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.1800995a0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x18009946a
mov rax, qword [0x1802c0790]
cmp qword [rsp + 0x20], rax
jb 0x1800993b4
mov rax, qword [0x1802c0798]
cmp qword [rsp + 0x20], rax
ja 0x1800993b4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180099376
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x1800993e5
jmp 0x18009946a
cmp dword [rsp + 0x50], 0x10000
jne 0x18009944d
cmp qword [rsp + 0x48], 0x10000
jb 0x18009944d
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18009942b
mov rax, qword [rsp + 0x28]
jmp 0x18009946c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x18009943b
xor eax, eax
jmp 0x18009946c
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180099465
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.1800995a0
mov qword [rsp + 0x20], rax
jmp 0x180099376
xor eax, eax
add rsp, 0x68
ret
Function at 0x180099480
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.1800995e0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180099596
mov rax, qword [0x1802c0790]
cmp qword [rsp + 0x20], rax
jb 0x1800994db
mov rax, qword [0x1802c0798]
cmp qword [rsp + 0x20], rax
ja 0x1800994db
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18009949d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x18009950c
jmp 0x180099596
cmp dword [rsp + 0x50], 0x10000
jne 0x180099574
cmp qword [rsp + 0x48], 0x10000
jb 0x180099574
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180099552
mov rax, qword [rsp + 0x28]
jmp 0x180099598
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x180099562
xor eax, eax
jmp 0x180099598
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180099591
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.1800995e0
mov qword [rsp + 0x20], rax
jmp 0x18009949d
xor eax, eax
add rsp, 0x68
ret
Function at 0x180099630
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180099bc0
mov qword [rsp + 0x28], 0
cmp qword [0x1802c5db8], 0
jne 0x180099678
cmp qword [0x1802c5db0], 0
je 0x180099678
mov rax, qword [0x1802c5db0]
mov qword [0x1802c5db8], rax
cmp qword [0x1802c5db8], 0
je 0x18009971e
mov rax, qword [0x1802c5db8]
cmp qword [rax + 0x10], 0
je 0x18009971e
mov rax, qword [0x1802c5db8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18009971e
mov rax, qword [0x1802c5db8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18009971e
mov rax, qword [0x1802c5db8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1800996e4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1800996eb
xor eax, eax
jmp 0x180099899
mov rax, qword [0x1802c5db8]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x180099899
mov rax, qword [0x1802c5db0]
mov qword [0x1802c5db8], rax
jmp 0x180099740
mov rax, qword [0x1802c5db8]
mov rax, qword [rax + 8]
mov qword [0x1802c5db8], rax
cmp qword [0x1802c5db8], 0
je 0x18009978d
cmp qword [0x1802c5db8], 0
je 0x18009978b
mov rax, qword [0x1802c5db8]
cmp qword [rax + 0x10], 0
je 0x18009978b
mov rax, qword [0x1802c5db8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18009978b
mov rax, qword [0x1802c5db8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18009978b
jmp 0x1800996bc
jmp 0x18009972e
mov rcx, qword [rsp + 0x60]
call fcn.18009b810
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1800998a0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180099897
mov rax, qword [rsp + 0x48]
mov qword [0x1802c5db8], rax
mov rax, qword [0x1802c5db8]
mov dword [rax], 0x52727464
mov rax, qword [0x1802c5db8]
mov qword [rax + 0x10], 0
mov rax, qword [0x1802c5db8]
mov rcx, qword [0x1802c5db0]
mov qword [rax + 8], rcx
mov rax, qword [0x1802c5db8]
mov qword [0x1802c5db0], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1802c5db8]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180099848
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180099882
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18009983e
mov rax, qword [0x1802c5db8]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x1800996bc
xor eax, eax
add rsp, 0x58
ret
Function at 0x18009a5b0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x18009a5f7
xor al, al
jmp 0x18009a699
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x18009a621
xor al, al
jmp 0x18009a699
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x18009a691
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x18009a691
mov al, 1
jmp 0x18009a699
jmp 0x18009a697
xor al, al
add rsp, 0x78
ret

Function at 0x18009a9a0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1802c5db0]
mov qword [rsp + 0x28], rax
jmp 0x18009a9c0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18009a9ef
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x18009a9ed
call sub.KERNEL32.dll_GetLastError
jmp 0x18009a9f1
jmp 0x18009a9b2
xor eax, eax
add rsp, 0x38
ret
Function at 0x18009b0b0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1802c5dc8], eax
je 0x18009b0cb
mov eax, 0x10dd
jmp 0x18009b1f0
mov rax, qword [0x1802c5de0]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18009b175
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x18009b140
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x18009b140
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.180099d00
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.180097778
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x18009b0d7
mov qword [0x1802c5de0], 0
call fcn.18009a760
mov rax, qword [0x1802c5dd8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x18009b1d9
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x48]
call fcn.180097778
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x18009b191
mov qword [0x1802c5dd8], 0
mov dword [0x1802c5dc8], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x18009b720
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x1802c5dcc], 0
je 0x18009b73d
mov eax, dword [0x1802c5dcc]
jmp 0x18009b803
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x18009b750
xor eax, eax
jmp 0x18009b803
mov ecx, reloc.WS2_32.dll_recv
call fcn.18009773c
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18009b7be
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x18009b7a3
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x38]
call fcn.180097778
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x1802c5dcc], eax
mov qword [0x1802c5dd0], 0
mov eax, dword [rsp + 0x20]
jmp 0x18009b803
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x18009b7d8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x18009b779
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x1802c5dd8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x1802c5dd8], rax
xor eax, eax
add rsp, 0x48
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [str.x_._]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [str.t_._]
mov dword [rax], 1
mov rax, qword [str.p_._]
mov dword [rax], 1
mov rax, qword [0x1402e1050]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1402e1090]
mov dword [0x1402e400c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1402e1160]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1402e1140]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1402e1000]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x14010d190
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 0x14010d200
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1402e40a4]
mov rbx, rcx
test esi, esi
jle 0x14010d330
mov rax, qword [0x1402e40a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14010d24b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14010d2d5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14010d230
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14010d352
mov rax, qword [0x1402e40a8]
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 [0x1402e40a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14010d337
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14010d2ce
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14010d2e0
add dword [0x1402e40a4], 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 [0x1402e40a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14010d2ce
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 0x14010d258
mov rax, qword [0x1402e40a8]
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 0x14010d8c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1402e4100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1402e40e0]
test rbx, rbx
je 0x14010d91c
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 0x14010d913
test rsi, rsi
je 0x14010d913
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14010d8f8
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 0x14010db30
Capabilities:
Parse pe header

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

Function at 0x14010db60
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 0x14010dbad
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 0x14010dba4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14010dbaf
add rax, 0x28
cmp rax, r9
jne 0x14010db90
xor eax, eax
ret

Function at 0x14010dbb0
Capabilities:
Parse pe header

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

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

Function at 0x14010dcd0
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x1402e1050]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14010dd30
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14010dd38
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14010dd30
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x14010dd80
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14010dd77
test rcx, rcx
je 0x14010dd30
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x14010dd68
xor eax, eax
ret

Function at 0x14010dd90
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x1402e1050]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x14010de82
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x14010de90
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14010de82
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x14010de82
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x14010de82
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 0x14010dee5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x14010def8
add rdx, 0x28
cmp rdx, r10
jne 0x14010ded0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14010df07
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14010df17
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14010deee
test ecx, ecx
jg 0x14010df00
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x415c40
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x415deb
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.KERNEL32.DLL_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00430080
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
nop
jne 0x415cae
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x415cc1
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x415ce5
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x415cf9
cmp rbx, 0x1000
jae 0x415cb8
nop
jmp 0x415d69
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop
cmp rbx, 0x1000
jae 0x415d0d
xor edx, edx
jmp 0x415d60
mov rcx, qword [sym.imp.KERNEL32.DLL_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00430080
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
nop
test dl, dl
jne 0x415cef
jmp 0x415cd5
call fcn.0045efc0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00435040
lea rax, [0x004adddf]
mov ebx, 0x18
nop dword [rax + rax]
call fcn.00435940
mov rax, qword [rsp + 0x38]
call fcn.00435640
lea rax, [0x004ade6f]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00435940
mov rax, qword [rsp + 0x30]
call fcn.00435640
call fcn.004352a0
call fcn.004350c0
lea rax, [0x004aff44]
mov ebx, 0x21
call fcn.004338c0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045b440
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00415c40