joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000c110
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.18000c220
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x18000c20d
mov rax, qword [0x1800162e0]
cmp qword [rsp + 0x20], rax
jb 0x18000c16b
mov rax, qword [0x1800162e8]
cmp qword [rsp + 0x20], rax
ja 0x18000c16b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18000c12d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.180002f70
mov r8d, 0x30
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18000c19a
jmp 0x18000c20d
cmp dword [rsp + 0x48], 0x10000
jne 0x18000c1f1
cmp qword [rsp + 0x40], 0x10000
jb 0x18000c1f1
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x18000c1df
mov rax, qword [rsp + 0x58]
jmp 0x18000c20f
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18000c208
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
add rcx, rax
call fcn.18000c220
mov qword [rsp + 0x20], rax
jmp 0x18000c12d
xor eax, eax
add rsp, 0x68
ret

Function at 0x18000c270
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x78]
sub rcx, 0x10000
call fcn.18000c380
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x18000c373
mov rax, qword [0x1800162e0]
cmp qword [rsp + 0x20], rax
jb 0x18000c2d2
mov rax, qword [0x1800162e8]
cmp qword [rsp + 0x20], rax
ja 0x18000c2d2
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18000c294
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.180002f70
mov r8d, 0x30
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18000c301
jmp 0x18000c373
cmp dword [rsp + 0x48], 0x10000
jne 0x18000c358
cmp qword [rsp + 0x40], 0x10000
jb 0x18000c358
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x18000c346
mov rax, qword [rsp + 0x58]
jmp 0x18000c375
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18000c36e
mov rcx, qword [rsp + 0x30]
sub rcx, 0x10000
call fcn.18000c380
mov qword [rsp + 0x20], rax
jmp 0x18000c294
xor eax, eax
add rsp, 0x68
ret
Function at 0x18000c560
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x18000c5a5
xor al, al
jmp 0x18000c623
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 0x3c]
mov rax, qword [rsp + 0x50]
add rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
cmp dword [rax], 0x4550
je 0x18000c5cc
xor al, al
jmp 0x18000c623
mov rax, qword [rsp + 0x58]
mov ecx, dword [rax + 0xe8]
mov rax, qword [rsp + 0x50]
add rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x18000c61b
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0xe8]
mov rdx, qword [rsp + 0x50]
add rdx, rax
mov rax, qword [rsp + 0x58]
mov ecx, dword [rax + 0xec]
mov rax, rdx
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x18000c61b
mov al, 1
jmp 0x18000c623
jmp 0x18000c621
xor al, al
add rsp, 0x78
ret

Function at 0x18000c6a0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x18001a088]
mov qword [rsp + 0x20], rax
jmp 0x18000c6c0
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 8]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x18000c6f1
lea r9, [rsp + 0x28]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18000c6ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18000c6f3
jmp 0x18000c6b2
xor eax, eax
add rsp, 0x38
ret
Function at 0x18000c700
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x18001a0a0], eax
je 0x18000c71c
mov eax, 0x10dd
jmp 0x18000c837
mov rax, qword [0x18001a0b8]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x18000c7c0
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x20]
movzx edx, byte [rax + 0x3e]
lea r9, [rsp + 0x30]
mov rax, qword [rsp + 0x20]
mov r8d, dword [rax + 0x28]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rsp + 0x20]
cmp dword [rax + 8], 0
jne 0x18000c790
mov rax, qword [rsp + 0x20]
cmp qword [rax + 0x20], 0
je 0x18000c790
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x20]
call fcn.18000c8b0
mov r11, qword [rsp + 0x20]
mov qword [r11 + 0x20], 0
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.18000f5bc
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
jmp 0x18000c728
mov qword [0x18001a0b8], 0
call fcn.18000c840
mov rax, qword [0x18001a0b0]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x18000c820
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.18000f5bc
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
jmp 0x18000c7dc
mov qword [0x18001a0b0], 0
mov dword [0x18001a0a0], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x18000cf40
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x52727464
je 0x18000cf5d
xor eax, eax
jmp 0x18000cff6
mov rax, qword [rsp + 0x30]
mov qword [rsp], rax
mov rax, qword [rsp]
add rax, 0x10000
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x30]
add rax, 0x60
mov qword [rsp + 0x10], rax
mov dword [rsp + 0x18], 0
jmp 0x18000cf98
mov eax, dword [rsp + 0x18]
add eax, 1
mov dword [rsp + 0x18], eax
cmp dword [rsp + 0x18], 0x2a9
jae 0x18000cff1
movsxd rcx, dword [rsp + 0x18]
imul rcx, rcx, 0x60
mov rax, qword [rsp + 0x10]
cmp qword [rax + rcx + 0x48], 0
je 0x18000cfef
movsxd rdx, dword [rsp + 0x18]
imul rdx, rdx, 0x60
mov rcx, qword [rsp + 0x10]
mov rax, qword [rsp]
cmp qword [rcx + rdx + 0x48], rax
jb 0x18000cfeb
movsxd rdx, dword [rsp + 0x18]
imul rdx, rdx, 0x60
mov rcx, qword [rsp + 0x10]
mov rax, qword [rsp + 8]
cmp qword [rcx + rdx + 0x48], rax
jb 0x18000cfef
xor eax, eax
jmp 0x18000cff6
jmp 0x18000cf8d
mov eax, 1
add rsp, 0x28
ret

Function at 0x18000d0e0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x18001a0a4], 0
je 0x18000d0fd
mov eax, dword [0x18001a0a4]
jmp 0x18000d1c1
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp qword [rsp + 0x50], rax
jne 0x18000d111
xor eax, eax
jmp 0x18000d1c1
mov ecx, reloc.WS2_32.dll_recv
call fcn.18000f634
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18000d17a
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x18000d15f
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call fcn.18000f5bc
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x18001a0a4], eax
mov qword [0x18001a0a8], 0
mov eax, dword [rsp + 0x20]
jmp 0x18000d1c1
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x18000d196
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
jmp 0x18000d13a
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x50]
mov qword [rcx + 8], rax
mov rcx, qword [rsp + 0x28]
mov rax, qword [0x18001a0b0]
mov qword [rcx], rax
mov rax, qword [rsp + 0x28]
mov qword [0x18001a0b0], rax
xor eax, eax
add rsp, 0x48
ret
Function at 0x18000dd60
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
call fcn.18000be50
mov qword [rsp + 0x38], 0
cmp qword [0x18001a090], 0
jne 0x18000dda8
cmp qword [0x18001a088], 0
je 0x18000dda8
mov rax, qword [0x18001a088]
mov qword [0x18001a090], rax
cmp qword [0x18001a090], 0
je 0x18000de4e
mov rax, qword [0x18001a090]
cmp qword [rax + 0x10], 0
je 0x18000de4e
mov rcx, qword [0x18001a090]
mov rax, qword [rsp + 0x28]
cmp qword [rcx + 0x10], rax
jb 0x18000de4e
mov rcx, qword [0x18001a090]
mov rax, qword [rsp + 0x30]
cmp qword [rcx + 0x10], rax
ja 0x18000de4e
mov rax, qword [0x18001a090]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x38], rax
jb 0x18000de14
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
jbe 0x18000de1b
xor eax, eax
jmp 0x18000dfc4
mov rcx, qword [0x18001a090]
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x48]
mov qword [rcx + 0x10], rax
mov r8d, WSAAsyncSelect
mov edx, 0xcc
mov rcx, qword [rsp + 0x38]
call fcn.180002f70
mov rax, qword [rsp + 0x38]
jmp 0x18000dfc4
mov rax, qword [0x18001a088]
mov qword [0x18001a090], rax
jmp 0x18000de70
mov rax, qword [0x18001a090]
mov rax, qword [rax + 8]
mov qword [0x18001a090], rax
cmp qword [0x18001a090], 0
je 0x18000debd
cmp qword [0x18001a090], 0
je 0x18000debb
mov rax, qword [0x18001a090]
cmp qword [rax + 0x10], 0
je 0x18000debb
mov rcx, qword [0x18001a090]
mov rax, qword [rsp + 0x28]
cmp qword [rcx + 0x10], rax
jb 0x18000debb
mov rcx, qword [0x18001a090]
mov rax, qword [rsp + 0x30]
cmp qword [rcx + 0x10], rax
ja 0x18000debb
jmp 0x18000ddec
jmp 0x18000de5e
mov rcx, qword [rsp + 0x60]
call fcn.18000dfd0
and eax, 0xffff
mov ecx, eax
mov rax, qword [rsp + 0x60]
sub rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
call fcn.18000bfe0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x18000dfc2
mov rax, qword [rsp + 0x20]
mov qword [0x18001a090], rax
mov rax, qword [0x18001a090]
mov dword [rax], 0x52727464
mov rax, qword [0x18001a090]
mov qword [rax + 0x10], 0
mov rcx, qword [0x18001a090]
mov rax, qword [0x18001a088]
mov qword [rcx + 8], rax
mov rax, qword [0x18001a090]
mov qword [0x18001a088], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x18001a090]
add rax, 0x60
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x48], 0x2a8
jmp 0x18000df76
mov eax, dword [rsp + 0x48]
sub eax, 1
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 1
jle 0x18000dfad
movsxd rdx, dword [rsp + 0x48]
imul rdx, rdx, 0x60
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
mov qword [rcx + rdx + 0x48], rax
movsxd rcx, dword [rsp + 0x48]
imul rcx, rcx, 0x60
mov rax, qword [rsp + 0x38]
add rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18000df6b
mov rcx, qword [0x18001a090]
mov rax, qword [rsp + 0x40]
mov qword [rcx + 0x10], rax
jmp 0x18000ddec
xor eax, eax
add rsp, 0x58
ret
Function at 0x18000dfe0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x2c], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x18001a0a0], eax
je 0x18000e00e
mov eax, 0x10dd
jmp 0x18000e21e
cmp dword [0x18001a0a4], 0
je 0x18000e022
mov eax, dword [0x18001a0a4]
jmp 0x18000e21e
cmp qword [rsp + 0x78], 0
jne 0x18000e034
mov eax, 0x57
jmp 0x18000e21e
cmp qword [rsp + 0x70], 0
jne 0x18000e046
mov eax, 6
jmp 0x18000e21e
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x18000e078
mov dword [rsp + 0x2c], 6
mov eax, dword [rsp + 0x2c]
mov dword [0x18001a0a4], eax
mov rax, qword [rsp + 0x70]
mov qword [0x18001a0a8], rax
mov eax, dword [rsp + 0x2c]
jmp 0x18000e21e
mov ecx, 0x30
call fcn.18000f634
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x18000e0e5
mov dword [rsp + 0x2c], 8
mov eax, dword [rsp + 0x2c]
mov dword [0x18001a0a4], eax
cmp qword [rsp + 0x40], 0
je 0x18000e0d0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.18000f5bc
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x70]
mov qword [0x18001a0a8], rax
mov eax, dword [rsp + 0x2c]
jmp 0x18000e21e
xor edx, edx
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
call fcn.18000c3c0
mov qword [rsp + 0x30], rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.18000c3c0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0x3e]
mov dword [rsp + 0x28], eax
movsxd rcx, dword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x48]
sub rax, rcx
mov qword [rsp + 0x20], rax
cmp dword [rsp + 0x28], 0
je 0x18000e13f
movsxd rax, dword [rsp + 0x28]
cmp rax, 0x1e
jbe 0x18000e15c
mov dword [rsp + 0x2c], 9
cmp dword [0x18001a098], 0
je 0x18000e157
jmp 0x18000e0ab
jmp 0x18000e0a1
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x78]
cmp qword [rcx + 0x50], rax
je 0x18000e189
mov dword [rsp + 0x2c], 9
cmp dword [0x18001a098], 0
je 0x18000e184
jmp 0x18000e0ab
jmp 0x18000e0a1
mov dword [rsp + 0x38], 0
movsxd rdx, dword [rsp + 0x28]
lea r9, [rsp + 0x38]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18000e1bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x2c], eax
jmp 0x18000e0a1
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], 1
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x70]
mov qword [rcx + 0x10], rax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x30]
mov qword [rcx + 0x20], rax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x20]
mov qword [rcx + 0x18], rax
mov rcx, qword [rsp + 0x40]
mov eax, dword [rsp + 0x38]
mov dword [rcx + 0x28], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [0x18001a0b8]
mov qword [rcx], rax
mov rax, qword [rsp + 0x40]
mov qword [0x18001a0b8], rax
xor eax, eax
add rsp, 0x68
ret
Function at 0x1400047e4
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400128b8]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea r14, str.en_US
mov rsi, rcx
mov qword [rcx], r14
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov word [rsp + 0x30], ax
mov ebx, 0x10
mov r9d, ebx
lea rdx, [0x140008110]
lea rax, [0x140004df0]
mov r8d, 0x1b3
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call sub.api_ms_win_crt_private_l1_1_0.dll__o_bsearch
xor ebp, ebp
test rax, rax
jne 0x14000485f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400048e5
cmp dword [rax + 0xc], 0x7c
jne 0x14000486c
cmp word [rax + 8], 0x7f
jne 0x14000484f
mov r8, qword [rax]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r8 + rcx*2], bp
jne 0x140004873
inc rcx
cmp rcx, 0x7ffffffe
jbe 0x140004890
mov word [rsp + 0x38], bp
jmp 0x1400048d7
lea rax, [rsp + 0x38]
mov r9d, ebp
sub r8, rax
lea rdx, [rsp + 0x38]
lea rax, [rbx - 0x10]
add rax, rcx
je 0x1400048c0
movzx eax, word [r8 + rdx]
test ax, ax
je 0x1400048c0
mov word [rdx], ax
add rdx, 2
sub rbx, 1
jne 0x1400048a0
test rbx, rbx
jne 0x1400048cf
sub rdx, 2
mov r9d, 0x8007007a
mov word [rdx], bp
test r9d, r9d
jns 0x1400048e1
mov ecx, 0x7a
jmp 0x140004854
test ecx, ecx
jne 0x1400048f1
mov rcx, qword [rsp + 0x78]
call fcn.14000494c
jmp 0x14000492a
mov rbx, rbp
mov rdi, rbp
mov rdx, qword [rdi + r14]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
je 0x14000491c
inc rbx
add rdi, 0x30
cmp rdi, 0x750
jb 0x1400048f7
jmp 0x14000492a
lea rax, [rbx + rbx*2]
shl rax, 4
add rax, r14
mov qword [rsi], rax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400050e0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140005104
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140012e60], eax
call fcn.1400056f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140012e60], 0
jne case.default.0x14000515a
mov ecx, 1
call fcn.1400056f0
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]
movabs al, byte [0x339a1528a68c0d3a]
mov bh, 0xec
invalid
movabs rdi, 0x5ad014311f188901
fadd qword [rdi + 0x7af033bd]
jg 0x14001acdd
push r14
cmp edi, dword [rdx]
popfq
mov bl, 0x6d
wait
mov ebx, 0x702b97f1
jno 0x14001ad45
invalid
ror ebp, 1
sub cl, byte [rdx - 0x2d]
sbb al, 0xe
movabs eax, dword [0x115b47d9ee1a819f]
mov esi, 0x44253ff3
xchg esp, eax
push rsp
pop rbp
imul edx, dword [rbp + 0x5fd6ff5f], 0xffffffc1
scasb al, byte [rdi]
invalid
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400044a0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400044b0]
mov dword [rax], 1
mov rax, qword [0x1400044c0]
mov dword [rax], 1
mov rax, qword [0x140004420]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004490]
mov dword [0x14000700c], 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 [0x140004560]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140004540]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400043d0]
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 0x140001990
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 0x140001a00
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400070a4]
mov rbx, rcx
test esi, esi
jle 0x140001b30
mov rax, qword [0x1400070a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001a4b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001ad5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001a30
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001b52
mov rax, qword [0x1400070a8]
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 [0x1400070a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001b37
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001ace
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001ae0
add dword [0x1400070a4], 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 [0x1400070a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001ace
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 0x140001a58
mov rax, qword [0x1400070a8]
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 0x1400020e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x14000213c
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 0x140002133
test eax, eax
jne 0x140002133
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002118
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 0x140002350
Capabilities:
Parse pe header

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

Function at 0x140002380
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 0x1400023cd
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 0x1400023c4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400023cf
add rax, 0x28
cmp rax, r9
jne 0x1400023b0
xor eax, eax
ret

Function at 0x1400023d0
Capabilities:
Parse pe header

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

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

Function at 0x1400024f0
Capabilities:
Parse pe header

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