joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008da60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor ebx, ebx
mov esi, r9d
mov r15d, r8d
mov r14d, edx
mov r13, rcx
mov r12d, ebx
test rcx, rcx
je 0x14008da9e
xor edx, edx
lea r8d, [rbx + 2]
call qword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov rdi, rax
jmp 0x14008daa5
mov rdi, qword [0x140104dd0]
test rdi, rdi
je 0x14008dc6f
mov qword [rsp + 0x80], rbp
lea rbp, [0x140107204]
test r14d, r14d
jns 0x14008dace
movzx eax, r14w
neg ax
movzx edx, ax
jmp 0x14008db06
test r14d, r14d
mov dword [rsp + 0x44], ebx
mov eax, 1
mov qword [rsp + 0x48], rbp
cmovne eax, r14d
lea r9, [rsp + 0x40]
lea r8, [0x14008da40]
mov dword [rsp + 0x40], eax
mov edx, SafeArrayGetElemsize
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_EnumResourceNamesW]
mov rdx, qword [rsp + 0x48]
cmp rdx, rbp
je 0x14008dc38
mov r8d, SafeArrayGetElemsize
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_FindResourceW]
test rax, rax
je 0x14008dc38
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_LoadResource]
test rax, rax
je 0x14008dc38
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_LockResource]
mov rbp, rax
test rax, rax
je 0x14008dc38
cmp r15d, 0xffffffff
cmovne esi, r15d
test esi, esi
jne 0x14008db68
lea ecx, [rsi + 0xb]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, eax
movzx eax, word [rbp + 4]
lea r8, [rbp + 6]
mov r11, rbx
mov r9d, ebx
test eax, eax
je 0x14008dc38
mov rdx, r8
mov r10d, eax
mov ebp, 0x100
nop dword [rax]
movzx eax, byte [r8]
mov ecx, ebx
test eax, eax
cmove eax, ebp
cmp eax, r9d
jle 0x14008dba8
cmp r9d, esi
setl cl
jmp 0x14008dbad
cmp eax, esi
setge cl
test ecx, ecx
je 0x14008dbb7
mov r11, rdx
mov r9d, eax
add rdx, 0xe
add r8, 0xe
sub r10, 1
jne 0x14008db90
test r11, r11
je 0x14008dc38
movzx edx, word [r11 + 0xc]
lea r8d, [r10 + 3]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_FindResourceW]
mov rsi, rax
test rax, rax
je 0x14008dc38
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_LoadResource]
test rax, rax
je 0x14008dc38
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_LockResource]
mov rbp, rax
test rax, rax
je 0x14008dc38
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [rsp + 0x30], ebx
mov r9d, 0x30000
mov edx, eax
mov dword [rsp + 0x28], ebx
mov r8d, 1
mov dword [rsp + 0x20], ebx
mov rcx, rbp
call qword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov r12, rax
mov rcx, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x80]
test rcx, rcx
je 0x14008dc57
test r12, r12
je 0x14008dc57
mov qword [rcx], rdi
jmp 0x14008dc65
test r13, r13
je 0x14008dc65
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_FreeLibrary]
test r12, r12
je 0x14008dc6f
mov rax, r12
jmp 0x14008dc90
test r14d, r14d
jle 0x14008dc7a
lea ebx, [r14 - 1]
jmp 0x14008dc82
cmp r14d, 0xffffffff
cmovl ebx, r14d
mov r8d, ebx
mov rdx, r13
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ExtractIconW]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14008ef00
Capabilities:
Write clipboard data

Disassembly:
push rbx
push rsi
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
lea rcx, [0x140107f00]
call fcn.1400057e0
test eax, eax
jne 0x14008ef3d
lea r8, [0x1400cef3c]
lea rdx, str.Cant_open_clipboard_for_writing.
lea rcx, [0x1401072b0]
add rsp, 0x28
pop rsi
pop rbx
jmp fcn.1400395f0
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x20], r15
call qword [sym.imp.USER32.dll_EmptyClipboard]
lea r14, [rsi + rbx]
xor r12d, r12d
lea rbx, [rsi + 4]
cmp rbx, r14
ja 0x14008f002
mov r15d, dword [rsi]
test r15d, r15d
je 0x14008f002
mov rax, rbx
add rbx, 8
cmp rbx, r14
ja 0x14008f002
mov edi, dword [rax]
mov rsi, rbx
add rbx, rdi
cmp rbx, r14
ja 0x14008f002
mov rdx, r12
test rdi, rdi
mov ecx, 0x42
sete dl
add rdx, rdi
call qword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov rbp, rax
test rax, rax
je 0x14008f0c0
test rdi, rdi
je 0x14008efe9
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GlobalLock]
test rax, rax
je 0x14008f061
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call fcn.1400a9a00
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov rsi, rbx
mov rdx, rbp
mov ecx, r15d
call qword [sym.imp.USER32.dll_SetClipboardData]
lea rbx, [rsi + 4]
cmp rbx, r14
jbe 0x14008ef70
cmp dword [0x140107f2c], r12d
je 0x14008f03c
cmp qword [0x140107f10], r12
je 0x14008f028
mov rcx, qword [0x140107f00]
call qword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov qword [0x140107f10], r12
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x140107f2c], r12d
mov qword [0x140107f00], r12
mov eax, 1
mov r14, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbx
ret
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GlobalFree]
cmp dword [0x140107f2c], r12d
je 0x14008f0a4
cmp qword [0x140107f10], r12
je 0x14008f090
mov rcx, qword [0x140107f00]
call qword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov qword [0x140107f10], r12
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x140107f2c], r12d
mov qword [0x140107f00], r12
lea r8, [0x1400cef3c]
lea rdx, [0x1400cf348]
lea rcx, [0x1401072b0]
call fcn.1400395f0
jmp 0x14008f041
cmp dword [0x140107f2c], r12d
je 0x14008f0fa
cmp qword [0x140107f10], r12
je 0x14008f0e6
mov rcx, qword [0x140107f00]
call qword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov qword [0x140107f10], r12
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x140107f2c], r12d
mov qword [0x140107f00], r12
lea r8, [0x1400cef3c]
lea rdx, str.Out_of_memory.
lea rcx, [0x1401072b0]
call fcn.1400395f0
jmp 0x14008f041
Function at 0x14008f570
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, rdx
movzx ecx, byte [rcx + 0x23]
test ecx, ecx
je 0x14008f7b0
mov qword [rsp + 0x50], rsi
sub ecx, 1
je 0x14008f60d
sub ecx, 1
je 0x14008f5d6
cmp ecx, 1
je 0x14008f5ba
mov rdx, qword [rdi + 0x28]
mov rcx, rbx
call qword [rdi + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
test rbx, rbx
je 0x14008f5c4
xor esi, esi
mov word [rdx], si
xor eax, eax
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
lea rcx, [0x140107f00]
call fcn.1400050a0
xor esi, esi
mov ecx, 0xffffffff
cmp rax, rcx
cmove rax, rsi
test rbx, rbx
je 0x14008f750
mov word [rbx + rax*2], si
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, rdi
call fcn.140001320
cmp dword [0x140105b28], 0
jne 0x14008f70e
cmp qword [rdi + 0x10], 0
jne 0x14008f70e
cmp qword [0x140109880], rdi
jne 0x14008f63b
test rbx, rbx
jne 0x14008f6ba
mov rcx, qword [rdi + 0x28]
lea rdx, [rsp + 0x40]
xor r8d, r8d
call qword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
test eax, eax
je 0x14008f6b5
xor esi, esi
mov qword [0x140109880], rsi
test rbx, rbx
je 0x14008f6a3
mov edx, dword [0x140105b3c]
test edx, edx
je 0x14008f685
mov r9, qword [rdi + 0x28]
lea r8, str.An_environment_variable_is_being_accessed__see_NoEnv.
lea rcx, [0x1401072b0]
mov qword [rsp + 0x20], rsi
call fcn.14003a040
mov rcx, qword [rdi + 0x28]
mov rdx, rbx
call fcn.14008d1b0
mov rsi, qword [rsp + 0x50]
mov eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
dec eax
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
test rbx, rbx
je 0x14008f6f5
cmp byte [rdi + 0x23], 0
jne 0x14008f6c6
mov rax, qword [rdi + 0x10]
jmp 0x14008f6c9
mov rax, rdi
test byte [rax + 0x21], 4
je 0x14008f6d7
mov rdx, rdi
call fcn.14003a190
xor esi, esi
mov word [rbx], si
xor eax, eax
mov qword [0x140109880], rsi
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rsi, qword [rsp + 0x50]
xor eax, eax
mov qword [0x140109880], rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov r8, qword [rdi + 0x10]
mov qword [rsp + 0x48], rbp
mov rbp, r8
shr rbp, 1
test rbx, rbx
je 0x14008f7ab
test r8, r8
jne 0x14008f760
xor esi, esi
mov rax, rdi
cmp byte [rdi + 0x23], sil
cmove rax, rsi
test byte [rax + 0x21], 4
je 0x14008f746
mov rdx, rdi
call fcn.14003a190
mov word [rbx], si
xor eax, eax
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rdx, qword [rdi + 8]
cmp rbx, rdx
je 0x14008f7ab
cmp r8, 0x186a0
jae 0x14008f79d
movzx eax, word [rdx]
test ax, ax
je 0x14008f793
nop word [rax + rax]
mov word [rbx], ax
lea rdx, [rdx + 2]
movzx eax, word [rdx]
add rbx, 2
test ax, ax
jne 0x14008f780
xor esi, esi
mov rax, rbp
mov word [rbx], si
jmp 0x14008f74b
mov rcx, rbx
call fcn.1400a9a00
xor esi, esi
mov word [rbx + rbp*2], si
mov rax, rbp
jmp 0x14008f74b
mov rcx, qword [rdi + 0x10]
call fcn.14008f570
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140090600
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov rbx, rcx
test r8b, r8b
je 0x140090620
call fcn.1400653e0
jmp 0x140090630
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_PostMessageW]
xor edi, edi
test esi, esi
cmovns edi, esi
test edi, edi
je 0x14009068c
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edx, 1
mov ecx, 0x8000012f
mov esi, eax
call fcn.1400016f0
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14009068c
add edi, esi
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x14009068c
mov edx, 1
mov ecx, 0x8000012f
call fcn.1400016f0
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x140090661
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140092840
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x20
cmp qword [rcx + 0x10], 0
movzx r14d, dl
mov rbx, rcx
jne 0x14009286a
mov eax, 1
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x40], rdi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, qword [0x140100a58]
mov rcx, rbx
mov rdx, rax
mov rdi, rax
call fcn.140092e10
cmp byte [rbx], 0
mov rbp, rax
je 0x1400928a1
test rax, rax
jne 0x1400928aa
jmp 0x140092942
test rbp, rbp
jne 0x14009293d
test rdi, rdi
je 0x14009293d
xor r9d, r9d
mov qword [rsp + 0x38], rsi
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_PostMessageW]
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edx, 1
mov ecx, 0x8000012f
mov esi, eax
call fcn.1400016f0
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14009291f
nop
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
lea ecx, [rsi + 0x1f4]
sub ecx, eax
cmp ecx, 5
jle 0x14009291f
mov edx, 1
mov ecx, 0x8000012f
call fcn.1400016f0
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1400928f0
mov rax, qword [0x140100a58]
mov rsi, qword [rsp + 0x38]
mov ecx, dword [rax + 0x74]
cmp ecx, 0xffffffff
jle 0x14009293d
mov edx, 1
call fcn.1400016f0
cmp byte [rbx], 0
je 0x140092956
xor r9d, r9d
mov r8, rbp
movzx edx, r14b
mov rcx, rbx
call fcn.140092980
jmp 0x140092962
movzx edx, r14b
mov rcx, rbx
call fcn.140092b70
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400aec68
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1400aea3c
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test rax, rax
je 0x1400aea3c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400aea3c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400aea3c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400aea3c
cmp dword [rcx + 0x84], 0xe
jbe 0x1400aea3c
cmp dword [rcx + 0xf8], esi
je 0x1400aea3c
mov ecx, r14d
call fcn.1400aeb84
mov ecx, 2
call fcn.1400b7ac8
nop
cmp byte [0x140103b08], 0
jne 0x1400aeb06
mov r15d, 1
mov eax, r15d
xchg dword [0x140103afc], eax
test ebx, ebx
jne 0x1400aeaaf
mov rdi, qword [0x140100018]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140103b00]
cmp rcx, rax
je 0x1400aeaa6
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140017f80]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140103d40]
jmp 0x1400aeabb
cmp ebx, r15d
jne 0x1400aeac1
lea rcx, [0x140103d58]
call fcn.1400b4a10
nop
test ebx, ebx
jne 0x1400aead8
lea rdx, [0x1400c6fa0]
lea rcx, [0x1400c6f80]
call fcn.1400b4da8
lea rdx, [0x1400c6fb0]
lea rcx, [0x1400c6fa8]
call fcn.1400b4da8
movzx eax, byte [0x140103b08]
test esi, esi
cmove eax, r15d
mov byte [0x140103b08], al
jmp 0x1400aeb06
mov ecx, 2
call fcn.1400b7b1c
test esi, esi
jne 0x1400aeb1d
mov ecx, r14d
call fcn.1400aeb38
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400ae9cc
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140b443e0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140b443f0]
mov dword [rax], 1
mov rax, qword [0x140b44400]
mov dword [rax], 1
mov rax, qword [0x140b44390]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140b443d0]
mov dword [0x140b4700c], 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 [0x140b444a0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140b44480]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140b44340]
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 0x140001740
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 0x1400017b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140b472b4]
mov rbx, rcx
test esi, esi
jle 0x1400018e0
mov rax, qword [0x140b472b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400017fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001885
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400017e0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001902
mov rax, qword [0x140b472b8]
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 [0x140b472b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400018e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000187e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001890
add dword [0x140b472b4], 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 [0x140b472b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000187e
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 0x140001808
mov rax, qword [0x140b472b8]
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 0x140001e70
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140b47320]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140b47300]
test rbx, rbx
je 0x140001ecc
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 0x140001ec3
test rsi, rsi
je 0x140001ec3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001ea8
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 0x1400020e0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400020f8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002100
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002110
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 0x14000215d
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 0x140002154
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000215f
add rax, 0x28
cmp rax, r9
jne 0x140002140
xor eax, eax
ret

Function at 0x140002160
Capabilities:
Parse pe header

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

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

Function at 0x140002280
Capabilities:
Parse pe header

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

Function at 0x1400022c0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140b44390]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400022e0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400022e8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400022e0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002330
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002327
test rcx, rcx
je 0x1400022e0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002318
xor eax, eax
ret
Function at 0x140002340
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x140b44390]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002432
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002440
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002432
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002432
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002432
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 0x140002495
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400024a8
add rdx, 0x28
cmp rdx, r10
jne 0x140002480
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400024b7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400024c7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000249e
test ecx, ecx
jg 0x1400024b0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret