joyce8/EMBER2024-capa huggingface dataset:
Function at 0x691a1770
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0x30
mov ebx, dword [rsp + 0x80]
mov r13, rdx
mov r12, rcx
mov rdx, r8
mov r15, r8
mov rcx, r13
mov r14, r9
call fcn.691b04c0
test al, al
jne 0x691a17c5
mov r8d, 0xb1
lea rdx, str.src_Cairo.cpp
lea rcx, str.pos1___pos2__pos1___pos3
add rsp, 0x30
pop rbx
pop r12
pop r13
pop r14
pop r15
jmp fcn.69187850
mov rdx, r14
mov rcx, r13
call fcn.691b04c0
test al, al
je 0x691a179f
mov rcx, r13
call fcn.691b0450
mov rcx, r13
movsx eax, word [rax]
cvtsi2sd xmm2, eax
movsd qword [rsp + 0x28], xmm2
call fcn.691b0440
movsd xmm2, qword [rsp + 0x28]
mov rcx, r12
movsx eax, word [rax]
cvtsi2sd xmm1, eax
call fcn.6921f510
mov rcx, r15
call fcn.691b0450
mov rcx, r15
movsx eax, word [rax]
cvtsi2sd xmm2, eax
movsd qword [rsp + 0x28], xmm2
call fcn.691b0440
movsd xmm2, qword [rsp + 0x28]
mov rcx, r12
movsx eax, word [rax]
cvtsi2sd xmm1, eax
call fcn.6921dea0
mov rcx, r14
call fcn.691b0450
mov rcx, r14
movsx eax, word [rax]
cvtsi2sd xmm2, eax
movsd qword [rsp + 0x28], xmm2
call fcn.691b0440
movsd xmm2, qword [rsp + 0x28]
mov rcx, r12
movsx eax, word [rax]
cvtsi2sd xmm1, eax
call fcn.6921dea0
mov rcx, r13
call fcn.691b0450
mov rcx, r13
movsx eax, word [rax]
cvtsi2sd xmm2, eax
movsd qword [rsp + 0x28], xmm2
call fcn.691b0440
movsd xmm2, qword [rsp + 0x28]
mov rcx, r12
movsx eax, word [rax]
cvtsi2sd xmm1, eax
call fcn.6921dea0
mov rcx, r12
test bl, bl
je 0x691a18b5
add rsp, 0x30
pop rbx
pop r12
pop r13
pop r14
pop r15
jmp fcn.69222ed0
add rsp, 0x30
pop rbx
pop r12
pop r13
pop r14
pop r15
jmp fcn.6921c8e0
Function at 0x691a18d0
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0x30
mov ebx, dword [rsp + 0x80]
mov r13, rdx
mov r12, rcx
mov rdx, r8
mov r15, r8
mov rcx, r13
mov r14, r9
call fcn.691b0560
test al, al
jne 0x691a1925
mov r8d, 0xb1
lea rdx, str.src_Cairo.cpp
lea rcx, str.pos1___pos2__pos1___pos3
add rsp, 0x30
pop rbx
pop r12
pop r13
pop r14
pop r15
jmp fcn.69187850
mov rdx, r14
mov rcx, r13
call fcn.691b0560
test al, al
je 0x691a18ff
mov rcx, r13
call fcn.691b04f0
mov rcx, r13
movzx eax, word [rax]
cvtsi2sd xmm2, eax
movsd qword [rsp + 0x28], xmm2
call fcn.691b04e0
movsd xmm2, qword [rsp + 0x28]
mov rcx, r12
movzx eax, word [rax]
cvtsi2sd xmm1, eax
call fcn.6921f510
mov rcx, r15
call fcn.691b04f0
mov rcx, r15
movzx eax, word [rax]
cvtsi2sd xmm2, eax
movsd qword [rsp + 0x28], xmm2
call fcn.691b04e0
movsd xmm2, qword [rsp + 0x28]
mov rcx, r12
movzx eax, word [rax]
cvtsi2sd xmm1, eax
call fcn.6921dea0
mov rcx, r14
call fcn.691b04f0
mov rcx, r14
movzx eax, word [rax]
cvtsi2sd xmm2, eax
movsd qword [rsp + 0x28], xmm2
call fcn.691b04e0
movsd xmm2, qword [rsp + 0x28]
mov rcx, r12
movzx eax, word [rax]
cvtsi2sd xmm1, eax
call fcn.6921dea0
mov rcx, r13
call fcn.691b04f0
mov rcx, r13
movzx eax, word [rax]
cvtsi2sd xmm2, eax
movsd qword [rsp + 0x28], xmm2
call fcn.691b04e0
movsd xmm2, qword [rsp + 0x28]
mov rcx, r12
movzx eax, word [rax]
cvtsi2sd xmm1, eax
call fcn.6921dea0
mov rcx, r12
test bl, bl
je 0x691a1a15
add rsp, 0x30
pop rbx
pop r12
pop r13
pop r14
pop r15
jmp fcn.69222ed0
add rsp, 0x30
pop rbx
pop r12
pop r13
pop r14
pop r15
jmp fcn.6921c8e0

Function at 0x691a1a30
Capabilities:
Log keystrokes via polling

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x10
call rsi
mov ecx, 0x11
movsx ebx, ax
call rsi
shr ebx, 0x1f
mov ecx, 0x12
shr eax, 0xe
and eax, 2
or ebx, eax
call rsi
mov ecx, 0x5b
shr eax, 0xd
and eax, 4
or ebx, eax
call rsi
mov ecx, 0x5c
shr eax, 0xc
and eax, 8
or ebx, eax
call rsi
mov ecx, 0x90
shr eax, 0xc
and eax, 8
or ebx, eax
call rsi
mov ecx, 0x91
shl eax, 4
and eax, 0x10
or ebx, eax
call rsi
mov ecx, 0x14
shl eax, 5
and eax, 0x20
or ebx, eax
call rsi
shl eax, 6
and eax, 0x40
or eax, ebx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x691a21c0
Capabilities:
Query environment variable

Disassembly:
xorps xmm1, xmm1
mov rax, qword [rcx + 0x10]
movsd xmm0, qword [rax + 0xd8]
comisd xmm0, xmm1
ja 0x69192c7a
jmp fcn.691a2ac0
ret
push r12
sub rsp, 0x20
mov r12, rcx
lea rcx, str.DPF_SCALE_FACTOR
call sub.msvcrt.dll_getenv
mov rcx, rax
test rax, rax
je 0x691a21ec
call sub.msvcrt.dll_atof
maxsd xmm0, qword [0x6932de48]
jmp 0x691a2207
test r12, r12
je 0x691a21ff
mov rcx, r12
add rsp, 0x20
pop r12
jmp 0x69192c60
movsd xmm0, qword [0x6932de48]
add rsp, 0x20
pop r12
ret

Function at 0x691a2400
Capabilities:
Query environment variable

Disassembly:
lea rcx, str.Window::PrivateData::renderToPicture
jmp 0x691a2400
mov rdx, rcx
lea rcx, str.cairo_function_not_implemented:__s
jmp fcn.69188ad0
Function at 0x691ab090
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
movups xmmword [rsp + 0x60], xmm6
movups xmmword [rsp + 0x70], xmm7
movups xmmword [rsp + 0x80], xmm8
mov r13, qword [0x69305750]
movsd xmm7, qword [0x6932d510]
movq xmm8, qword [0x6932d500]
movsd xmm6, qword [r13 + 0x38]
movupd xmm0, xmm6
andps xmm0, xmm8
comisd xmm0, xmm7
mov rdi, rcx
mov ebx, edx
mov esi, r8d
jae 0x691ab1d2
lea rcx, [0x6932d173]
mov r15, qword [r13 + 0x40]
call sub.msvcrt.dll_getenv
mov rcx, rax
test rax, rax
je 0x691ab11c
call sub.msvcrt.dll_atof
movsd xmm6, qword [0x6932d538]
maxsd xmm6, xmm0
jmp 0x691ab1d2
lea rcx, [0x6932d184]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
movsd xmm6, qword [0x6932d538]
mov r12, rax
test rax, rax
je 0x691ab1d2
mov rbp, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x6932d18f]
mov rcx, rax
call rbp
lea rdx, [0x6932d1a6]
mov rcx, r12
mov r14, rax
call rbp
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x5c], 0x64
mov rbp, rax
test r14, r14
je 0x691ab1b8
test rax, rax
je 0x691ab1b8
xor ecx, ecx
lea rdx, [rsp + 0x58]
call r14
test eax, eax
jne 0x691ab1b8
cmp dword [rsp + 0x58], 0
je 0x691ab1b8
mov edx, 1
test r15, r15
je 0x691ab1a6
mov rcx, r15
call qword [sym.imp.USER32.dll_MonitorFromWindow]
jmp 0x691ab1ae
xor ecx, ecx
call qword [sym.imp.USER32.dll_MonitorFromPoint]
mov rcx, rax
lea rdx, [rsp + 0x5c]
call rbp
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [rsp + 0x5c]
cvtsi2sd xmm6, rax
mulsd xmm6, qword [0x6932d540]
movupd xmm0, xmm6
andps xmm0, xmm8
comisd xmm0, xmm7
jb 0x691ab212
movupd xmm0, xmm6
subsd xmm0, qword [0x6932d538]
andps xmm0, xmm8
comisd xmm0, xmm7
jb 0x691ab212
cvtsi2sd xmm0, rbx
mulsd xmm0, xmm6
cvttsd2si rbx, xmm0
cvtsi2sd xmm0, rsi
mulsd xmm0, xmm6
cvttsd2si rsi, xmm0
movq r9, xmm6
mov r8d, esi
movupd xmm3, xmm6
mov edx, ebx
lea rcx, str.createNextWindow__u__u__f
call fcn.691880f0
mov ecx, 0x20
call fcn.691bc980
mov r8, qword [r13 + 0x40]
mov dword [rsp + 0x20], esi
mov r9d, ebx
mov dword [rsp + 0x48], 0
mov rdx, r13
mov rcx, rax
mov r12, rax
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 1
movsd qword [rsp + 0x28], xmm6
call fcn.6919bd70
mov rcx, qword [r12 + 8]
lea rax, fcn.691a5d80
mov qword [r12 + 0x10], rdi
mov qword [r12], rax
cmp qword [rcx + 0x20], 0
mov word [r12 + 0x18], 1
je 0x691ab2b0
call fcn.6919a8c0
test al, al
je 0x691ab2b0
mov rax, qword [r12 + 8]
mov rcx, qword [rax + 0x20]
call fcn.69191c00
mov rcx, qword [r13 + 0x10]
cmp r12, rcx
jne 0x691ab2c8
jmp 0x691ab2d7
mov qword [r13 + 0x10], r12
test rcx, rcx
je 0x691ab2d7
mov rax, qword [rcx]
call qword [rax + 8]
cmp qword [r13 + 0x58], 0
mov rax, qword [r13 + 0x10]
jne 0x691ab300
mov rdx, qword [rax + 8]
mov byte [rdx + 0x71], 1
jmp 0x691ab300
movups xmm6, xmmword [rsp + 0x60]
movups xmm7, xmmword [rsp + 0x70]
movups xmm8, xmmword [rsp + 0x80]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x691ac350
Capabilities:
Query environment variable

Disassembly:
mov r8, qword [rcx]
test r8, r8
jne 0x691ac378
mov r9d, 0xf2
lea r8, [0x6932b28b]
lea rdx, [0x6932b2ae]
lea rcx, [0x6932b2c1]
jmp fcn.69188410
cmp byte [rcx + 0x10], 0
je 0x691ac386
mov rcx, r8
jmp fcn.6915b4c0
ret

Function at 0x691ac3c0
Capabilities:
Query environment variable

Disassembly:
mov r8, qword [rcx]
test r8, r8
jne 0x691ac3e8
mov r9d, 0xf2
lea r8, str.src_.._.._distrho_extra_String.hpp
lea rdx, str.fBuffer___nullptr
lea rcx, [0x6932e401]
jmp fcn.69188c10
cmp byte [rcx + 0x10], 0
je 0x691ac3f6
mov rcx, r8
jmp fcn.6915b4c0
ret
Function at 0x691d7010
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0x1505
test rcx, rcx
je 0x691d7032
movsx edx, byte [rcx]
test dl, dl
je 0x691d7032
mov r8d, eax
inc rcx
shl r8d, 5
add edx, r8d
add eax, edx
jmp 0x691d7015
ret

Function at 0x691e6650
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor eax, eax
mov rdx, rcx
mov ecx, 0x811c9dc5
imul ecx, ecx, 0x1000193
movzx r8d, byte [rdx + rax + 0x38]
inc rax
xor ecx, r8d
cmp rax, 0x30
jne 0x691e6660
xor eax, eax
imul ecx, ecx, 0x1000193
movzx r8d, byte [rdx + rax + 0x68]
inc rax
xor ecx, r8d
cmp rax, 0x30
jne 0x691e667a
call fcn.691fc7e0
lea rcx, [rdx + 0x98]
mov rsi, qword [rdx + 0x28]
mov ebx, eax
call fcn.6921cd00
xor ebx, eax
mov ecx, ebx
xor ecx, esi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.691fc7e0

Function at 0x691f7350
Capabilities:
Check os version

Disassembly:
push r13
push r12
sub rsp, 0xc8
mov rax, qword [str._0i]
cmp dword [rax], 0
jne 0x691f736c
call fcn.691db980
mov r12, qword [0x69305ac0]
mov rcx, r12
test r12, r12
jne 0x691f7420
mov ecx, 0x70
call sub.msvcrt.dll_malloc
lea rdx, [0x693432a0]
mov rcx, rax
mov r13, rax
call fcn.691cfad0
call fcn.691f8cb0
mov qword [r13 + 0x58], 0
lea rcx, [rsp + 0x2c]
mov qword [r13 + 0x60], rax
mov dword [rsp + 0x2c], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x3c], 1
jne 0x691f73d4
cmp dword [rsp + 0x30], 4
jne 0x691f73d4
cmp dword [rsp + 0x34], 0xa
je 0x691f7400
lea rcx, str.msimg32
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [r13 + 0x58], rax
mov r12, rax
test rax, rax
je 0x691f7400
lea rdx, str.AlphaBlend
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
xor eax, eax
mov qword [r13 + 0x68], r12
lock cmpxchg qword [0x69305ac0], r13
mov rcx, r13
je 0x691f7420
call fcn.6915b4c0
mov rcx, qword [0x69305ac0]
call fcn.6921c790
add rsp, 0xc8
pop r12
pop r13
ret

Function at 0x691fc800
Capabilities:
Check os version

Disassembly:
push r12
sub rsp, 0xc0
mov dword [rsp + 0x2c], 0x94
lea rcx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
mov r12d, eax
test eax, eax
jne 0x691fc831
lea rcx, str._have_cleartype_quality
call fcn.691f9090
jmp 0x691fc852
cmp dword [rsp + 0x30], 5
mov r12d, 1
ja 0x691fc852
mov r12d, 0
jne 0x691fc852
xor r12d, r12d
cmp dword [rsp + 0x34], 0
setne r12b
mov eax, r12d
add rsp, 0xc0
pop r12
ret
Function at 0x691fe940
Capabilities:
Query environment variable

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, rcx
lea rcx, str.PIXMAN_DISABLE
call sub.msvcrt.dll_getenv
mov r14, rax
xor eax, eax
test r14, r14
je 0x691fe9eb
or rcx, 0xffffffffffffffff
mov rdi, r12
or rbp, 0xffffffffffffffff
xor r13d, r13d
repne scasb al, byte [rdi]
not rcx
lea rsi, [rcx - 1]
mov edx, 0x20
mov rcx, r14
call sub.msvcrt.dll_strchr
mov rbx, rax
test rax, rax
je 0x691fe99c
sub ebx, r14d
jmp 0x691fe9ad
mov rcx, rbp
mov rdi, r14
mov eax, r13d
repne scasb al, byte [rdi]
not rcx
lea ebx, [rcx - 1]
movsxd rbx, ebx
cmp rsi, rbx
jne 0x691fe9dd
mov r8, rsi
mov rdx, r14
mov rcx, r12
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x691fe9dd
mov rdx, r12
lea rcx, str.pixman:_Disabled__s_implementation_n
call fcn.692c9c50
mov eax, 1
jmp 0x691fe9eb
add rbx, r14
cmp byte [rbx], 0
lea r14, [rbx + 1]
jne 0x691fe982
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140042e60]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140042e70]
mov dword [rax], 1
mov rax, qword [0x140042e80]
mov dword [rax], 1
mov rax, qword [0x140042da0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140042e50]
mov dword [0x14004800c], 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 [0x140042f30]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140042f10]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140042d80]
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 0x14000f660
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, rdx
mov rsi, rdx
call sym.strlen
mov rcx, rsi
mov r9, rbx
mov edx, 1
mov r8, rax
call sym.fwrite
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
jmp sym.fflush
Function at 0x140021800
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rax, str.echoBinSafe
lea rdi, [0x14003f870]
mov rbx, rcx
mov rsi, rdx
xor edx, edx
mov qword [rsp + 0x38], rax
lea rcx, [0x14003e2c0]
mov word [rsp + 0x50], dx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], 0
call sym.__emutls_get_address
mov rdx, qword [rax]
mov r14, rax
test rdx, rdx
je 0x1400219a0
movzx eax, word [rdx + 0x22]
mov qword [rsp + 0x30], rdx
lea rdx, [rsp + 0x30]
mov qword [r14], rdx
add eax, 1
mov word [rsp + 0x52], ax
cmp ax, 0x7d0
je 0x140021920
mov qword [rsp + 0x40], 0xb4d
lea rcx, [0x140048040]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rsi, rsi
jle 0x14002192a
mov rbp, qword [dbg.__acrt_iob_func]
xor r15d, r15d
lea r13, [rsp + 0x20]
lea r12, [0x14003e360]
jmp 0x1400218c5
add r15, 1
add rbx, 0x10
cmp rsi, r15
je 0x140021938
mov ecx, 1
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], 0xb65
call rbp
movdqu xmm0, xmmword [rbx]
xor r8d, r8d
mov rdx, r13
mov rcx, rax
movups xmmword [rsp + 0x20], xmm0
call sym.writeWindows__system_u9148
mov rcx, r12
call sym.__emutls_get_address
cmp byte [rax], 0
je 0x1400218b8
mov rax, qword [r14]
mov rax, qword [rax]
mov qword [r14], rax
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call sym.callDepthLimitReached__system_u4653
jmp 0x14002187c
mov rbp, qword [dbg.__acrt_iob_func]
nop dword [rax]
mov qword [rsp + 0x40], 0xb69
mov ecx, 1
mov qword [rsp + 0x48], rdi
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x14003ff09]
mov r9, rax
call sym.fwrite
mov ecx, 1
mov qword [rsp + 0x40], 0xb6a
call rbp
mov rcx, rax
call sym.fflush
lea rcx, [0x140048040]
mov qword [rsp + 0x40], 0xb6e
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400218fe
mov qword [rsp + 0x30], 0
xor eax, eax
mov word [rsp + 0x52], ax
lea rax, [rsp + 0x30]
mov qword [r14], rax
jmp 0x14002187c

Function at 0x1400373d0
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 0x140037440
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140048504]
mov rbx, rcx
test esi, esi
jle 0x140037570
mov rax, qword [0x140048508]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14003748b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140037515
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140037470
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140037592
mov rax, qword [0x140048508]
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 [0x140048508]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140037577
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14003750e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140037520
add dword [0x140048504], 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 [0x140048508]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14003750e
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 0x140037498
mov rax, qword [0x140048508]
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 0x140037b20
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140048560]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140048540]
test rbx, rbx
je 0x140037b7c
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 rsi, rsi
je 0x140037b73
test eax, eax
jne 0x140037b73
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140037b58
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 0x140037d90
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140037da8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140037db0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140037dc0
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 0x140037e0d
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 0x140037e04
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140037e0f
add rax, 0x28
cmp rax, r9
jne 0x140037df0
xor eax, eax
ret

Function at 0x140037e10
Capabilities:
Parse pe header

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

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

Function at 0x140037f30
Capabilities:
Parse pe header

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

Function at 0x140037f70
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140042da0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140037f90
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140037f98
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140037f90
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140037fe0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140037fd7
test rcx, rcx
je 0x140037f90
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140037fc8
xor eax, eax
ret
Function at 0x140037ff0
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x140042da0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400380e2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400380f0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400380e2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400380e2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400380e2
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 0x140038145
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140038158
add rdx, 0x28
cmp r10, rdx
jne 0x140038130
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140038167
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140038177
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14003814e
test ecx, ecx
jg 0x140038160
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret