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

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov eax, dword [rsp + 0x90]
sub eax, 0x1320
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x80]
sub eax, 0xd2e
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x80]
xor eax, 0x3060
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x98]
sub eax, 0x19a5
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x98]
add eax, 0xc
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x70]
xor eax, 0x3ec4
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x90]
sub eax, 0xf21
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x88]
sub eax, 0x60
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x88]
xor eax, 0x1b76
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x80]
sub eax, 0x1135
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x2c]
xor eax, 0x3ba0
cmp dword [rsp + 0x28], eax
je 0x180002e55
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x9c]
sub eax, 0x962ff
mov rcx, qword [rsp + 0x78]
mov ecx, dword [rcx + 0x28]
sub ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x78]
mov dword [rcx + 0x28], eax
mov eax, dword [rsp + 0x24]
add eax, 0xcd4
mov dword [rsp + 0x24], eax
jmp 0x180002ef4
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x90]
mov dword [rsp + 0x20], eax
jmp 0x180002e71
mov eax, dword [rsp + 0x20]
add eax, 2
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
cmp dword [rsp + 0x20], eax
jge 0x180002ef4
mov eax, dword [rsp + 0x38]
sub eax, 0x2d13
sub eax, dword [rsp + 0x28]
mov dword [rsp + 0x44], eax
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x78]
mov eax, dword [rdx + rax + 0x3c]
mov ecx, dword [rcx + 0x38]
sub ecx, eax
mov eax, ecx
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x78]
and eax, dword [rdx + rcx + 0xa4]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x48]
sub eax, 0x159e
mov dword [rsp + 0x3c], eax
mov r8d, dword [rsp + 0x3c]
mov edx, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_OpenThread]
jmp 0x180002e66
mov eax, dword [rsp + 0x2c]
sub eax, 0x101
add rsp, 0x68
ret
Function at 0x180004670
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov eax, dword [rsp + 0x98]
add eax, 0x10b4
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0xa0]
add eax, 0x501
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x70]
sub eax, 0x19a5
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x70]
sub eax, 0x19a5
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x80]
xor eax, 0xf16
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xa0]
xor eax, 0x349
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x98]
sub eax, 0x1c5f
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x88]
sub eax, 0x2d13
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x98]
xor eax, 0x1c5f
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x24]
add eax, 0x2ddb
cmp dword [rsp + 0x2c], eax
je 0x180004806
mov eax, dword [rsp + 0x24]
add eax, 0x26d3
cmp dword [rsp + 0x2c], eax
jge 0x180004755
mov rax, qword [rsp + 0x78]
lea rcx, [0x1800af110]
mov qword [rax + 0x70], rcx
mov eax, dword [rsp + 0x20]
sub eax, 0x11fd
mov dword [rsp + 0x20], eax
jmp 0x180004806
mov eax, dword [rsp + 0x30]
or eax, 0x26d3
mov rcx, qword [rsp + 0x78]
sub eax, dword [rcx + 0x2c]
cmp dword [rsp + 0x20], eax
jb 0x180004806
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x28], eax
jmp 0x180004784
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx + rax + 0xa4]
add eax, dword [rsp + 0x34]
and eax, dword [rsp + 0x24]
cmp dword [rsp + 0x28], eax
jbe 0x180004806
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x78]
mov eax, dword [rdx + rax + 0xa4]
mov ecx, dword [rcx + 0x98]
xor ecx, eax
mov eax, ecx
mov eax, eax
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x98]
mov ecx, dword [rsp + 0x38]
or ecx, eax
mov eax, ecx
sub eax, 0x21d2
mov eax, eax
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
jmp 0x18000477a
mov eax, dword [rsp + 0x3c]
sub eax, 0xa74
add rsp, 0x68
ret
Function at 0x180008260
Capabilities:
Get file attributes
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov eax, dword [rsp + 0x68]
sub eax, 0x346
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x78]
xor eax, 0x2ddb
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x80]
add eax, 0xfd8
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x88]
add eax, 0xce8
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x68]
sub eax, 0xce9
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x68]
sub eax, 0x63c
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x78]
sub eax, 0x708
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x68]
add eax, 0xa78
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x2c]
xor eax, 0x3a8c
cmp dword [rsp + 0x20], eax
jg 0x180008302
mov eax, dword [rsp + 0x20]
xor eax, 0x19b1
mov dword [rsp + 0x20], eax
jmp 0x180008355
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x24], eax
jmp 0x180008317
mov eax, dword [rsp + 0x24]
add eax, 3
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x34]
and eax, 0x2d13
mov rcx, qword [rsp + 0x70]
or eax, dword [rcx + 0x90]
cmp dword [rsp + 0x24], eax
jb 0x180008355
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x2c]
mov ecx, dword [rsp + 0x28]
sub ecx, eax
mov eax, ecx
mov eax, eax
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x18000830c
mov eax, dword [rsp + 0x28]
sub eax, 0x136e
add rsp, 0x58
ret
Function at 0x1800215f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov eax, dword [rsp + 0xa8]
add eax, 0xb40
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xb0]
xor eax, 0x16b3
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xa8]
xor eax, 0x1d
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x90]
add eax, 0xb8f
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x98]
add eax, 0x407
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x98]
add eax, 0xfa2
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x80]
xor eax, 0x8af
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x90]
add eax, 0xb8f
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x34]
xor eax, 0x3cf1
cmp dword [rsp + 0x2c], eax
jle 0x18002183a
mov eax, dword [rsp + 0x20]
xor eax, 0xc09
cmp dword [rsp + 0x34], eax
jg 0x18002170a
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x88]
mov eax, dword [rcx + rax + 0x88]
xor eax, 0x1663b7
mov rcx, qword [rsp + 0x88]
mov ecx, dword [rcx + 0xa0]
imul ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x88]
mov dword [rcx + 0xa0], eax
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x88]
mov ecx, dword [rcx + 0xa0]
mov dword [rax + 0x64], ecx
jmp 0x18002183a
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x88]
mov eax, dword [rax + 0x44]
imul eax, dword [rcx + 0x48]
add eax, dword [rsp + 0x20]
cmp dword [rsp + 0x30], eax
jb 0x18002183a
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x24], eax
jmp 0x180021743
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x2c]
add eax, 0x4827
cmp dword [rsp + 0x24], eax
jae 0x18002183a
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x88]
mov eax, dword [rcx + rax + 0xb8]
mov dword [rsp + 0x28], eax
jmp 0x180021786
mov eax, dword [rsp + 0x28]
add eax, 4
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x90]
sub eax, 0x1b76
cmp dword [rsp + 0x28], eax
jae 0x180021835
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x2c]
or ecx, eax
mov eax, ecx
cdqe
mov qword [rsp + 0x50], rax
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x88]
mov edx, dword [rdx + 0x18]
mov eax, dword [rcx + rax + 0xb8]
xor eax, edx
mov eax, eax
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
mov eax, dword [rsp + 0x2c]
xor eax, 0x26d3
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x88]
add eax, dword [rdx + rcx + 8]
mov rcx, qword [rsp + 0x88]
mov ecx, dword [rcx + 0xb4]
xor ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x88]
mov dword [rcx + 0xb4], eax
jmp 0x18002177b
jmp 0x180021739
mov eax, dword [rsp + 0x30]
sub eax, 0x1265
add rsp, 0x68
ret
Function at 0x1400026e0
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x438
mov rax, qword [0x14098c648]
xor rax, rsp
mov qword [rsp + 0x420], rax
mov rbx, rcx
lea rdi, [r11 + 0x10]
call entry0
xor ebp, ebp
mov qword [rsp + 0x28], rdi
mov r9, rbx
mov qword [rsp + 0x20], rbp
mov r8d, 0x3e8
lea rdx, [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsprintf_s]
lea r8, [0x1400045fc]
mov edx, 0x3e8
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov r8, 0xffffffffffffffff
lea rax, [rsp + 0x30]
mov rbx, r8
inc rbx
cmp byte [rax + rbx], bpl
jne 0x140002765
movsxd rsi, ebx
mov eax, 2
lea rcx, [rsi + 1]
mul rcx
cmovo rax, r8
mov rcx, rax
call fcn.140002b0c
mov rdi, rax
mov r8d, ebp
test ebx, ebx
jle 0x140002851
cmp ebx, 0x20
jb 0x140002851
lea ecx, [rbx - 1]
movsxd rdx, ecx
lea rcx, [rsp + 0x30]
add rcx, rdx
lea rax, [rax + rdx*2]
cmp rdi, rcx
ja 0x1400027c5
lea rcx, [rsp + 0x30]
cmp rax, rcx
jae 0x140002851
mov eax, ebx
and eax, 0x8000001f
jge 0x1400027d5
dec eax
or eax, 0xffffffe0
inc eax
sub ebx, eax
mov rcx, rbp
movsxd rdx, ebx
lea rax, [rdi + 0x20]
nop dword [rax]
nop word [rax + rax]
movq xmm0, qword [rsp + rcx + 0x30]
lea rax, [rax + 0x40]
movq xmm1, qword [rsp + rcx + 0x38]
add r8d, 0x20
punpcklbw xmm0, xmm0
punpcklbw xmm1, xmm1
psraw xmm0, 8
movdqu xmmword [rax - 0x60], xmm0
movq xmm0, qword [rsp + rcx + 0x40]
psraw xmm1, 8
movdqu xmmword [rax - 0x50], xmm1
movq xmm1, qword [rsp + rcx + 0x48]
add rcx, 0x20
punpcklbw xmm0, xmm0
punpcklbw xmm1, xmm1
psraw xmm0, 8
psraw xmm1, 8
movdqu xmmword [rax - 0x40], xmm0
movdqu xmmword [rax - 0x30], xmm1
cmp rcx, rdx
jl 0x1400027f0
movsxd rax, r8d
cmp rax, rsi
jge 0x140002871
nop dword [rax]
movsx ecx, byte [rsp + rax + 0x30]
mov word [rdi + rax*2], cx
inc rax
cmp rax, rsi
jl 0x140002860
mov rcx, rdi
mov word [rdi + rsi*2], bp
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rdi
call fcn.140002b04
mov al, 1
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.140002a20
add rsp, 0x438
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140002b40
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x1409966e0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x14099670d
xor al, al
jmp 0x14099686f
mov rax, qword [0x1409b76c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1409b76c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1409b76d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1409b76d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1409b76e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1409b76e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1409b76f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1409b76f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x1409b7700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x140996861
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x1409967b9
mov r11d, 2
jmp 0x1409967dd
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x1409967d3
mov r11d, 1
jmp 0x1409967dd
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x140996885
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x140996822
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x14099683a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x14099684a
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x140996858
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x1409967a0
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x14099686a
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000a800]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000a810]
mov dword [rax], 1
mov rax, qword [0x14000a820]
mov dword [rax], 1
mov rax, qword [0x14000a7a0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000a7f0]
mov dword [0x14000e020], 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 [0x14000a8d0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000a8b0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000a750]
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 0x140001bf0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]

Function at 0x140001c60
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14000e0b4]
mov r12, rcx
test ebx, ebx
jle 0x140001d90
mov rax, qword [0x14000e0b8]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x140001cab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x140001d35
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x140001c90
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140001db2
mov rax, qword [0x14000e0b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000e0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001d97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001d2e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001d40
add dword [0x14000e0b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x14000e0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001d2e
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 ebx, ebx
jmp 0x140001cb8
mov rax, qword [0x14000e0b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002330
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x14000e120]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e100]
test rbx, rbx
je 0x14000238c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140002383
test r12, r12
je 0x140002383
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002368
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400025c0
Capabilities:
Parse pe header

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

Function at 0x1400025f0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140002635
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x14000262c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140002637
add rax, 0x28
cmp rax, r9
jne 0x140002618
xor eax, eax
ret

Function at 0x140002640
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x1400026d0
mov rdx, qword [0x14000a7a0]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x1400026be
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400026be
cmp word [rax + 0x18], 0x20b
jne 0x1400026be
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x1400026d0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x1400026a9
add r12, 0x28
cmp r12, rsi
je 0x1400026d0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x1400026a0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

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

Disassembly:
mov rdx, qword [0x14000a7a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002700
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002708
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002700
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002755
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000274c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002700
add rax, 0x28
cmp rax, r9
jne 0x140002738
xor eax, eax
ret

Function at 0x140002760
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a7a0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002780
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002788
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002780
movzx r8d, word [rax + 6]
mov eax, r8d
ret
Function at 0x1400027a0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000a7a0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400027c0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400027c8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400027c0
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002808
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400027ff
test rcx, rcx
je 0x1400027c0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400027f0
xor eax, eax
ret

Function at 0x140002810
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a7a0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002830
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002838
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

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

Disassembly:
mov rdx, qword [0x14000a7a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002870
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002878
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002870
sub rcx, rdx
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002870
lea eax, [r8 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop dword [rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400028bc
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400028d0
add rdx, 0x28
cmp rdx, r9
jne 0x1400028a8
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x14000a7a0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002902
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002910
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002902
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002902
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002902
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x14000295d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002970
add rdx, 0x28
cmp r10, rdx
jne 0x140002948
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000297f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000298f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002966
test ecx, ecx
jg 0x140002978
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret