joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140272950
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
add rax, 0x10000
mov qword [rsp + 0x30], rax
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.140277b20
jmp 0x140272998
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov r8d, 0x30
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
ja 0x1402729b7
jmp 0x140272a5b
cmp dword [rsp + 0x68], 0x1000
jne 0x1402729dc
mov eax, dword [rsp + 0x6c]
and eax, 0xff
cmp eax, 1
je 0x1402729dc
mov eax, dword [rsp + 0x6c]
and eax, 0x100
test eax, eax
je 0x1402729de
jmp 0x140272983
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x140272a14
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, qword [rsp + 0x60]
ja 0x140272a14
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x140272a19
jmp 0x140272983
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
jne 0x140272983
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x20]
jmp 0x140272a5d
xor eax, eax
add rsp, 0x88
ret

Function at 0x140272cb0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140277b20
nop
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
ja 0x140272cfa
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140272dc2
cmp dword [rsp + 0x60], 0x1000
jne 0x140272d1f
mov eax, dword [rsp + 0x64]
and eax, 0xff
cmp eax, 1
je 0x140272d1f
mov eax, dword [rsp + 0x64]
and eax, 0x100
test eax, eax
je 0x140272d30
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140272dc2
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140272d57
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140272dc2
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x140272d8b
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140272dc2
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x140272da6
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140272dc2
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
jmp 0x140272dc2
add rsp, 0x78
ret
Function at 0x140273280
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.1402734d0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x14027339a
mov rax, qword [0x1402db0c0]
cmp qword [rsp + 0x20], rax
jb 0x1402732e4
mov rax, qword [0x1402db0c8]
cmp qword [rsp + 0x20], rax
ja 0x1402732e4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1402732a6
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140277b20
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x140273315
jmp 0x14027339a
cmp dword [rsp + 0x50], 0x10000
jne 0x14027337d
cmp qword [rsp + 0x48], 0x10000
jb 0x14027337d
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14027335b
mov rax, qword [rsp + 0x28]
jmp 0x14027339c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x14027336b
xor eax, eax
jmp 0x14027339c
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x140273395
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.1402734d0
mov qword [rsp + 0x20], rax
jmp 0x1402732a6
xor eax, eax
add rsp, 0x68
ret

Function at 0x1402733b0
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.140273510
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x1402734c6
mov rax, qword [0x1402db0c0]
cmp qword [rsp + 0x20], rax
jb 0x14027340b
mov rax, qword [0x1402db0c8]
cmp qword [rsp + 0x20], rax
ja 0x14027340b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1402733cd
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140277b20
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x14027343c
jmp 0x1402734c6
cmp dword [rsp + 0x50], 0x10000
jne 0x1402734a4
cmp qword [rsp + 0x48], 0x10000
jb 0x1402734a4
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140273482
mov rax, qword [rsp + 0x28]
jmp 0x1402734c8
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x140273492
xor eax, eax
jmp 0x1402734c8
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1402734c1
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140273510
mov qword [rsp + 0x20], rax
jmp 0x1402733cd
xor eax, eax
add rsp, 0x68
ret
Function at 0x140273560
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.140273af0
mov qword [rsp + 0x28], 0
cmp qword [0x1402dc1b8], 0
jne 0x1402735a8
cmp qword [0x1402dc1b0], 0
je 0x1402735a8
mov rax, qword [0x1402dc1b0]
mov qword [0x1402dc1b8], rax
cmp qword [0x1402dc1b8], 0
je 0x14027364e
mov rax, qword [0x1402dc1b8]
cmp qword [rax + 0x10], 0
je 0x14027364e
mov rax, qword [0x1402dc1b8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x14027364e
mov rax, qword [0x1402dc1b8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x14027364e
mov rax, qword [0x1402dc1b8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x140273614
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x14027361b
xor eax, eax
jmp 0x1402737c5
mov rax, qword [0x1402dc1b8]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call fcn.140277b20
mov rax, qword [rsp + 0x28]
jmp 0x1402737c5
mov rax, qword [0x1402dc1b0]
mov qword [0x1402dc1b8], rax
jmp 0x140273670
mov rax, qword [0x1402dc1b8]
mov rax, qword [rax + 8]
mov qword [0x1402dc1b8], rax
cmp qword [0x1402dc1b8], 0
je 0x1402736bd
cmp qword [0x1402dc1b8], 0
je 0x1402736bb
mov rax, qword [0x1402dc1b8]
cmp qword [rax + 0x10], 0
je 0x1402736bb
mov rax, qword [0x1402dc1b8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1402736bb
mov rax, qword [0x1402dc1b8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1402736bb
jmp 0x1402735ec
jmp 0x14027365e
mov rax, qword [rsp + 0x60]
and rax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1402737d0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1402737c3
mov rax, qword [rsp + 0x48]
mov qword [0x1402dc1b8], rax
mov rax, qword [0x1402dc1b8]
mov dword [rax], 0x52727464
mov rax, qword [0x1402dc1b8]
mov qword [rax + 0x10], 0
mov rax, qword [0x1402dc1b8]
mov rcx, qword [0x1402dc1b0]
mov qword [rax + 8], rcx
mov rax, qword [0x1402dc1b8]
mov qword [0x1402dc1b0], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1402dc1b8]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x140273774
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x1402737ae
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x14027376a
mov rax, qword [0x1402dc1b8]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x1402735ec
xor eax, eax
add rsp, 0x58
ret
Function at 0x1402744e0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140274527
xor al, al
jmp 0x1402745c9
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x140274551
xor al, al
jmp 0x1402745c9
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x1402745c1
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x1402745c1
mov al, 1
jmp 0x1402745c9
jmp 0x1402745c7
xor al, al
add rsp, 0x78
ret

Function at 0x1402748d0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1402dc1b0]
mov qword [rsp + 0x28], rax
jmp 0x1402748f0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14027491f
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x14027491d
call sub.KERNEL32.dll_GetLastError
jmp 0x140274921
jmp 0x1402748e2
xor eax, eax
add rsp, 0x38
ret
Function at 0x1402751c0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1402dc1c8], eax
je 0x1402751db
mov eax, 0x10dd
jmp 0x140275300
mov rax, qword [0x1402dc1e0]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140275285
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x140275250
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x140275250
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.140273c30
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.140271718
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x1402751e7
mov qword [0x1402dc1e0], 0
call fcn.140274690
mov rax, qword [0x1402dc1d8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1402752e9
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.140271718
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x1402752a1
mov qword [0x1402dc1d8], 0
mov dword [0x1402dc1c8], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x140275830
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x1402dc1cc], 0
je 0x14027584d
mov eax, dword [0x1402dc1cc]
jmp 0x140275913
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x140275860
xor eax, eax
jmp 0x140275913
mov ecx, 0x10
call fcn.1402717c4
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1402758ce
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x1402758b3
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.140271718
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x1402dc1cc], eax
mov qword [0x1402dc1d0], 0
mov eax, dword [rsp + 0x20]
jmp 0x140275913
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1402758e8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x140275889
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x1402dc1d8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x1402dc1d8], rax
xor eax, eax
add rsp, 0x48
ret

Function at 0x14027adcc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14027abf8
Function at 0x140014e00
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x140014eb9
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x140014e85
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x140014e9d
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x140014e9d
mov rdx, qword [rdi]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call qword [0x1400355d8]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp dword [rdi + 8], 0
je case.default.0x140014e9d
mov rcx, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp byte [0x14004ac38], 0
jne 0x140014f04
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140014ef4
lea rdx, [0x140036ea8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14004ac30], rax
mov byte [0x14004ac38], 1
jmp 0x140014f0b
mov rax, qword [0x14004ac30]
mov byte [0x14004ac38], 1
jmp 0x140014f0b
mov rax, qword [0x14004ac30]
mov rcx, qword [rbx]
mov rdx, rsi
test rax, rax
je 0x140014e8e
mov r8d, dword [rbx + 8]
xor r9d, r9d
call qword [0x1400355d8]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
push rdi
test al, 0x21
cli
push rbp
nop
jmp 0x14007cc7c
mov bh, 0xa
or ah, byte [rdi]
ja 0x14007cc83
invalid
invalid
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00404500]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00404510]
mov dword [rax], 1
mov rax, qword [0x00404520]
mov dword [rax], 1
mov rax, qword [0x004044f0]
mov dword [rax], 1
mov rax, qword [0x004043e0]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x004044e0]
mov dword [0x00407008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x004044a0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x00404390]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x401bc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00407624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x401d48
mov rax, qword [0x00407628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401c0c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401c95
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401bf0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x401d7d
mov rax, qword [0x00407628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00407628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401d60
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401c8e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x401cf0
add dword [0x00407624], 1
cmp edi, 8
jae 0x401cc3
test dil, 4
jne 0x401d34
test edi, edi
je 0x401cb8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x401d4f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x401cb8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x401cdc
jmp 0x401cb8
add rsi, qword [0x00407628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401c8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x401cb8
xor esi, esi
jmp 0x401c17
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x401cb8
mov rax, qword [0x00407628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x4024d0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00407900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004078e0]
test rbx, rbx
je 0x402524
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40251b
test rsi, rsi
je 0x40251b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402500
lea rcx, [0x00407900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402760
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x402770
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x402780
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 0x4027c1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x4027b8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x4027c3
add rax, 0x28
cmp rax, r9
jne 0x4027a4
xor eax, eax
ret

Function at 0x402860
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004043e0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x4028cd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4028cd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4028cd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4028c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4028cf
add rax, 0x28
cmp rax, r9
jne 0x4028b0
xor eax, eax
add rsp, 0x28
ret

Function at 0x4029d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004043e0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x4029f0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4029e8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402a4d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402a44
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402a54
add rax, 0x28
cmp rax, r9
jne 0x402a30
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x402a70
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x004043e0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x402ade
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402ade
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x402ade
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402ade
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x402ad5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x402ae5
add rcx, 0x28
cmp rcx, rax
jne 0x402ac0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x402af8
jmp 0x402ade
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x402b06
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x402ade
test r9d, r9d
jg 0x402af0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret