joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18007c550
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 0x18007c57d
xor al, al
jmp 0x18007c6df
mov rax, qword [0x18009c6b0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x18009c6b8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x18009c6c0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x18009c6c8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x18009c6d0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x18009c6d8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x18009c6e0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x18009c6e8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x18009c6f0]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x18007c6d1
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x18007c629
mov r11d, 2
jmp 0x18007c64d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x18007c643
mov r11d, 1
jmp 0x18007c64d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x18007c6f5
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 0x18007c692
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x18007c6aa
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 0x18007c6ba
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x18007c6c8
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x18007c610
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 0x18007c6da
Function at 0x140009d0c
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov r10, rcx
test edx, edx
je 0x140009d42
mov r9, rcx
mov rax, r9
lea rcx, [0x140068ab0]
sub rax, r10
and eax, 0xf
mov cl, byte [rax + rcx]
xor cl, byte [r9]
xor cl, r8b
inc r8d
not cl
mov byte [r9], cl
inc r9
cmp r8d, edx
jb 0x140009d19
ret
Function at 0x14005a1d8
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
xor r12d, r12d
mov r14d, 1
cmp qword [0x1400b6218], r12
jne 0x14005a339
xor ecx, ecx
call fcn.140060b38
mov rcx, rax
mov rdi, rax
call fcn.14005add8
test al, al
jne 0x14005a229
mov eax, r14d
jmp 0x14005a3a2
mov eax, 0x5a4d
cmp word [rdi], ax
je 0x14005a23d
mov eax, 2
jmp 0x14005a3a2
cmp dword [rdi + 0x3c], 0x400
jl 0x14005a250
mov eax, 3
jmp 0x14005a3a2
movsxd rbx, dword [rdi + 0x3c]
add rbx, rdi
cmp dword [rbx], 0x4550
je 0x14005a269
mov eax, 4
jmp 0x14005a3a2
mov qword [0x1400b6218], r12
movzx r15d, r12w
movzx esi, word [rbx + 0x14]
add rsi, rbx
cmp r12w, word [rbx + 6]
jae 0x14005a357
movsx rax, r15w
lea rbp, [rax + rax*4]
mov eax, dword [rsi + rbp*8 + 0x3c]
test eax, 0x22000020
jne 0x14005a2c1
and eax, 0xc0000000
cmp eax, 0xc0000000
jne 0x14005a2c1
cmp dword [rsi + rbp*8 + 0x20], 0x10
jb 0x14005a2c1
mov eax, dword [rsi + rbp*8 + 0x24]
test eax, eax
je 0x14005a2c1
lea rcx, [rdi + rax]
call fcn.14005add8
test al, al
jne 0x14005a2f0
movzx ecx, word [rbx + 6]
add r15w, r14w
movsx eax, r15w
cmp eax, ecx
jl 0x14005a286
mov rcx, qword [0x1400b6218]
test rcx, rcx
je 0x14005a357
call fcn.14005add8
test al, al
jne 0x14005a30b
mov eax, 6
jmp 0x14005a3a2
mov eax, dword [rsi + rbp*8 + 0x24]
mov ecx, dword [rsi + rbp*8 + 0x20]
add rax, rdi
add rcx, 0xfffffffffffffff0
add rcx, rax
mov qword [0x1400b6218], rcx
jmp 0x14005a2d8
mov rdx, qword [0x1400b6218]
lea rcx, [0x1400b6208]
mov r8d, 0x10
call sub.ntdll.dll_memcpy
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPriorityClass]
mov dword [0x1400b6220], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x4000
call fcn.14005a404
test eax, eax
jne 0x14005a35e
mov eax, 7
jmp 0x14005a3a2
mov eax, 5
jmp 0x14005a3a2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, r14d
call fcn.14005a454
test eax, eax
jne 0x14005a37a
mov eax, 8
jmp 0x14005a3a2
mov rax, qword [0x1400b6218]
movabs rcx, 0xcccccccc100001f7
mov qword [rax], rcx
lea rcx, [0x1400b61a0]
mov rax, qword [0x1400b6218]
mov qword [rax + 8], rcx
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14005ca7c
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x250
lea rdx, [rsp + 0x40]
mov rbx, rcx
call fcn.140009a9c
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call fcn.140046d08
mov rdx, rax
lea rdi, [rsp + 0x40]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
cmp rdx, 0xffffffffffffffff
jne 0x14005cafe
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14005cafa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x14005cafa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
jne 0x14005cb19
xor al, al
jmp 0x14005cb08
mov rcx, rdx
call fcn.140007074
mov al, 1
mov rbx, qword [rsp + 0x260]
add rsp, 0x250
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
lea rcx, [0x1400a2d86]
mov r8d, eax
call fcn.14005e468
call fcn.140061c8c
int3
Function at 0x140060d30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
mov rsi, rdx
mov rbx, rcx
mov edx, dword [rax + rcx + 0x88]
test edx, edx
je 0x140060e11
cmp dword [rax + rcx + 0x8c], 0
je 0x140060e11
call 0x1400624e4
mov r14d, eax
mov rcx, rbx
add r14, rbx
mov edx, dword [r14 + 0x20]
call 0x1400624e4
mov edx, dword [r14 + 0x24]
mov rcx, rbx
mov r13d, eax
add r13, rbx
call 0x1400624e4
mov edx, dword [r14 + 0x1c]
mov rcx, rbx
mov r15d, eax
add r15, rbx
call 0x1400624e4
mov r12d, eax
xor edi, edi
add r12, rbx
cmp dword [r14 + 0x18], edi
jbe 0x140060e23
mov edx, dword [r13 + rdi*4]
mov rcx, rbx
call 0x1400624e4
mov edx, eax
mov rcx, rsi
add rdx, rbx
call fcn.1400473b8
test al, al
jne 0x140060de4
inc edi
cmp edi, dword [r14 + 0x18]
jae 0x140060e23
jmp 0x140060dbc
movzx edx, word [r15 + rdi*2]
mov rcx, rbx
mov edx, dword [r12 + rdx*4]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
jmp 0x1400624e4
lea rcx, [0x1400a2fb4]
call fcn.14005e468
call fcn.140061c8c
int3
mov rdx, rsi
lea rcx, [0x1400a302a]
call fcn.14005e468
call fcn.140061c8c
int3
push rbx
sub rsp, 0x20
movsxd r10, dword [rcx + 0x3c]
xor r8d, r8d
add r10, rcx
mov r11d, edx
movzx ebx, word [r10 + 6]
test rbx, rbx
je 0x140062540
lea r9, [r10 + 0x110]
mov edx, dword [r9 + 4]
cmp r11d, edx
jb 0x14006251b
mov ecx, dword [r9]
add ecx, edx
cmp r11d, ecx
jb 0x140062529
inc r8
add r9, 0x28
cmp r8, rbx
jae 0x140062540
jmp 0x140062508
lea rax, [r8 + r8*4]
mov eax, dword [r10 + rax*8 + 0x11c]
sub eax, edx
add eax, r11d
add rsp, 0x20
pop rbx
ret
lea rcx, [0x1400a2f96]
call fcn.14005e468
call fcn.140061c8c
int3

Function at 0x140060e38
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf0
mov r15, rdx
lea rdx, [rsp + 0x20]
call fcn.140009ac4
lea rcx, [rsp + 0x20]
call fcn.140060bc8
mov rdi, rax
movsxd rax, dword [rax + 0x3c]
mov ecx, dword [rax + rdi + 0x88]
test ecx, ecx
je 0x140060efe
cmp dword [rax + rdi + 0x8c], 0
je 0x140060efe
lea rbx, [rdi + rcx]
mov r14d, dword [rbx + 0x24]
mov esi, dword [rbx + 0x1c]
add r14, rdi
add rsi, rdi
cmp r15, 0x10000
jae 0x140060eca
mov eax, dword [rsi + r15*4 - 4]
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov r12d, dword [rbx + 0x20]
xor ebp, ebp
add r12, rdi
cmp dword [rbx + 0x18], ebp
jbe 0x140060f10
mov edx, dword [r12 + rbp*4]
mov rcx, r15
add rdx, rdi
call sub.ntdll.dll_strcmp
test eax, eax
je 0x140060ef4
inc ebp
cmp ebp, dword [rbx + 0x18]
jae 0x140060f10
jmp 0x140060ed8
movzx eax, word [r14 + rbp*2]
mov eax, dword [rsi + rax*4]
jmp 0x140060ea9
lea rcx, [0x1400a3090]
call fcn.14005e468
call fcn.140061c8c
int3
lea rcx, [0x1400a310c]
call fcn.14005e468
call fcn.140061c8c
int3
Function at 0x140061038
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x150
and dword [rcx], 0
xor edx, edx
mov r15, rcx
mov dword [rsp + 0x20], 0x130
xor r14d, r14d
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140061132
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x14006114c
lea rdx, [rsp + 0x20]
mov rcx, rbx
inc r14d
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140061095
mov eax, r14d
imul rcx, rax, 0x130
call fcn.14005dee4
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov r12, rax
xor ebp, ebp
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x140061166
mov eax, ebp
lea rsi, [rsp + 0x20]
imul rdi, rax, 0x130
inc ebp
mov ecx, 0x130
add rdi, r12
rep movsb byte [rdi], byte [rsi]
cmp ebp, r14d
jae 0x140061102
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1400610d2
mov rcx, rbx
call fcn.140007074
lea r11, [rsp + 0x150]
mov dword [r15], ebp
mov rbx, qword [r11 + 0x20]
mov rax, r12
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x1400a2eb4]
call fcn.14005e468
call fcn.140061c8c
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x1400a2ef6]
call fcn.14005e468
call fcn.140061c8c
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x1400a2f38]
call fcn.14005e468
call fcn.140061c8c
int3
Function at 0x140001605
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor r15d, r15d
mov r12d, 0xffffffff
lea r14, [rsp + 0x34]
cmp r15, rsi
je 0x14000165d
mov rcx, qword [rbx]
lea rdx, [rdi + r15]
mov r8, rsi
sub r8, r15
cmp r8, r12
cmovae r8, r12
and qword [rsp + 0x20], 0
mov r9, r14
call sub.KERNEL32.dll_WriteFile
test eax, eax
je 0x140001661
mov eax, dword [rsp + 0x34]
add r15, rax
jmp 0x140001629
xor eax, eax
jmp 0x1400016b6
call sub.KERNEL32.dll_GetLastError
cmp ax, 6
je 0x1400016a0
movzx ecx, ax
cmp ecx, 8
je 0x14000169a
cmp ecx, 0x21
je 0x1400016b2
cmp ecx, 0x6d
je 0x1400016a6
cmp ecx, 0x3e3
je 0x1400016ac
cmp ecx, 0x718
je 0x14000169a
mov ax, 2
cmp ecx, 0x6f8
jne 0x1400016b6
mov ax, 0xb
jmp 0x1400016b6
mov ax, 0xd
jmp 0x1400016b6
mov ax, 0xa
jmp 0x1400016b6
mov ax, 0xc
jmp 0x1400016b6
mov ax, 0xe
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140002de0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rbp + 0x190], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xor esi, esi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], si
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
lea r9d, [rsi - 1]
lea r8, str.cs2.exe
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
test eax, eax
jle 0x140002f07
mov r8, qword [rsp + 0x40]
cmp rbx, r8
ja 0x140002e7f
lea rax, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rbx
mov word [rax + rbx*2], si
jmp 0x140002ed3
mov rdx, rbx
sub rdx, r8
mov rdi, qword [rsp + 0x48]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x140002ec6
mov qword [rsp + 0x40], rbx
lea r9, [rsp + 0x30]
cmp rdi, 8
cmovae r9, qword [rsp + 0x30]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x140002ebb
movzx eax, si
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], si
jmp 0x140002ed3
mov r9, rdx
lea rcx, [rsp + 0x30]
call fcn.1400033f0
lea rax, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rax, qword [rsp + 0x30]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
lea r8, str.cs2.exe
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x54]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x50], 0x238
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140002f8b
lea rdi, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x7c]
sub rdi, rax
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + rdi]
sub edx, ecx
jne 0x140002f73
add rax, 2
test ecx, ecx
jne 0x140002f60
test edx, edx
je 0x140002f87
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x140002f3d
mov esi, dword [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140002fda
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002fd5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002fd5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003884
mov eax, esi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1400035d0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140003010
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor esi, esi
mov edi, edx
mov ebx, esi
nop word [rax + rax]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExA]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [rsp + 0x20], edi
jne 0x140003094
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x140003094
cmp byte [rsp + 0x30], sil
jne 0x1400030c0
test rbx, rbx
jne 0x140003040
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400035d0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov rax, rbx
jmp 0x14000309b

Function at 0x140004004
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000404e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000404e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000404e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000404e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000404e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004050
xor al, al
add rsp, 0x28
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14001c170]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14001c180]
mov dword [rax], 1
mov rax, qword [0x14001c190]
mov dword [rax], 1
mov rax, qword [0x14001c160]
mov dword [rax], 1
mov rax, qword [0x14001c000]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x14001c150]
mov dword [0x14001f020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14001c110]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14001c0f0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14001bf90]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

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

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14001f0b4]
mov r12, rcx
test ebx, ebx
jle 0x140001d00
mov rax, qword [0x14001f0b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x140001c1c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001ca3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140001c00
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140001d22
mov rax, qword [0x14001f0b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14001f0b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001d07
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001c9c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001cb0
add dword [0x14001f0b4], 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 [0x14001f0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001c9c
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 0x140001c27
mov rax, qword [0x14001f0b8]
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 0x1400021e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14001f120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001f100]
test rbx, rbx
je 0x140002234
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000222b
test r12, r12
je 0x14000222b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002210
lea rcx, [0x14001f120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002450
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002468
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002470
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002480
Capabilities:
Enumerate pe sections

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

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x140002560
mov rdx, qword [0x14001c000]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x14000254e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000254e
cmp word [rax + 0x18], 0x20b
jne 0x14000254e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x140002560
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x140002539
add r12, 0x28
cmp r12, rsi
je 0x140002560
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x140002530
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 0x140002570
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14001c000]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002590
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002598
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002590
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1400025e5
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 0x1400025dc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002590
add rax, 0x28
cmp rax, r9
jne 0x1400025c8
xor eax, eax
ret

Function at 0x1400025f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001c000]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002610
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002618
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002610
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140002630
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14001c000]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002650
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002658
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002650
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002698
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000268f
test rcx, rcx
je 0x140002650
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002680
xor eax, eax
ret