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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00438250]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x00438260]
mov dword [rax], 1
mov rax, qword [0x00438270]
mov dword [rax], 1
mov rax, qword [0x00438240]
mov dword [rax], 1
mov rax, qword [0x00438090]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010d0
mov rax, qword [0x00438230]
mov dword [0x0043f020], ecx
mov eax, dword [rax]
test eax, eax
je 0x4010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x00438180]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x00438160]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00438040]
cmp dword [rax], 1
je 0x401108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401120
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067

Function at 0x4023d6
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rdi, qword [dbg.__acrt_iob_func]
xor r12d, r12d
mov rsi, rcx
lea rbp, [rdx - 1]
lea r13, [rsp + 0x28]
mov rbx, rdx
cmp r12, rbx
jl 0x402440
mov ecx, 1
call rdi
mov r8d, 1
mov edx, 1
lea rcx, [0x0043015c]
mov r9, rax
call sym.fwrite
mov ecx, 1
call rdi
mov rcx, rax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp sym.fflush
jb 0x40244d
mov rdx, rbp
mov rcx, r12
call sym.raiseIndexError2
mov r14, qword [rsi + r12*8]
mov ecx, 1
call rdi
xor r8d, r8d
mov rcx, rax
mov rdx, r14
call sym.writeWindows__systemZio_205
mov r8, r13
mov edx, 1
mov rcx, r12
call sym.nimAddInt_1
test al, al
je 0x40247f
call sym.raiseOverflow
mov r12, qword [rsp + 0x28]
jmp 0x4023fd

Function at 0x4027d4
Capabilities:
Read file on windows

Disassembly:
push r13
push rbx
sub rsp, 0x38
mov r13, rcx
mov rcx, rdx
mov edx, 1
mov rbx, r8
mov r9, r13
call sym.fread
cmp rbx, rax
je 0x402808
mov rcx, r13
mov qword [rsp + 0x28], rax
call sym.checkErr__systemZio_141
mov rax, qword [rsp + 0x28]
add rsp, 0x38
pop rbx
pop r13
ret

Function at 0x402ef4
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
mov rcx, rdx
mov edx, 1
mov r9, r12
call sym.fwrite
mov rcx, r12
mov rbx, rax
call sym.checkErr__systemZio_141
movsxd rax, ebx
add rsp, 0x28
pop rbx
pop r12
ret

Function at 0x4031dc
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x4031fd
mov rcx, rdx
call sym.strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sym.fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp sym.fflush
Function at 0x404aa6
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x38
mov qword [rsp + 0x28], rdx
mov r13, rcx
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8, qword [rsp + 0x28]
mov rcx, r13
mov edx, 1
mov r12, rax
mov r9, rax
call sym.fwrite
mov rcx, r12
add rsp, 0x38
pop r12
pop r13
jmp sym.fflush

Function at 0x40aab2
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbx, rcx
mov rsi, rdx
mov r13, r8
test rcx, rcx
je 0x40acba
mov rdx, qword [rcx]
cmp r8, rdx
jge 0x40accc
jb 0x40aaed
dec rdx
mov rcx, r13
call sym.raiseIndexError2
cmp byte [rbx + r13 + 0x10], 0x2b
jne 0x40accc
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, r13
call sym.nimAddInt_3
test al, al
je 0x40ab14
call sym.raiseOverflow
mov r12, qword [rsp + 0x38]
mov rdx, qword [rbx]
cmp rdx, r12
jg 0x40ab28
xor eax, eax
jmp 0x40acd4
cmp r12, rdx
jb 0x40ab38
dec rdx
mov rcx, r12
call sym.raiseIndexError2
mov al, byte [rbx + r12 + 0x10]
sub eax, 0x30
cmp al, 9
ja 0x40ab21
mov qword [rsi], 0
lea rbp, [rsp + 0x20]
lea r15, [rsp + 0x28]
mov rdx, qword [rbx]
cmp r12, rdx
jl 0x40ab7f
lea r8, [rsp + 0x38]
mov rdx, r13
mov rcx, r12
call sym.nimSubInt_4
test al, al
je 0x40acb3
call sym.raiseOverflow
jmp 0x40acb3
jb 0x40ab8c
dec rdx
mov rcx, r12
call sym.raiseIndexError2
mov al, byte [rbx + r12 + 0x10]
sub eax, 0x30
cmp al, 9
ja 0x40ab5d
mov rdx, qword [rbx]
cmp r12, rdx
jb 0x40abab
dec rdx
mov rcx, r12
call sym.raiseIndexError2
movzx ecx, byte [rbx + r12 + 0x10]
mov r8, rbp
mov edx, 0x30
call sym.nimSubInt_4
test al, al
je 0x40abc7
call sym.raiseOverflow
mov r14, qword [rsp + 0x20]
mov r8, r15
movabs rcx, 0x7fffffffffffffff
mov rdx, r14
call sym.nimSubInt_4
test al, al
je 0x40abea
call sym.raiseOverflow
mov rax, qword [rsp + 0x28]
mov edi, 0xa
mov rcx, qword [rsi]
cqo
idiv rdi
lea rdi, [rsp + 0x30]
cmp rcx, rax
jle 0x40ac12
movabs rax, 0x7fffffffffffffff
jmp 0x40ac48
mov r8, rdi
mov edx, 0xa
call sym.nimMulInt
test al, al
je 0x40ac28
call sym.raiseOverflow
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
mov rdx, r14
call sym.nimAddInt_3
test al, al
je 0x40ac43
call sym.raiseOverflow
mov rax, qword [rsp + 0x38]
mov qword [rsi], rax
mov r8, rdi
mov edx, 1
mov rcx, r12
call sym.nimAddInt_3
test al, al
je 0x40ac64
call sym.raiseOverflow
mov r12, qword [rsp + 0x30]
lea rdi, [rsp + 0x38]
mov rdx, qword [rbx]
cmp r12, rdx
jge 0x40ab55
jb 0x40ac87
dec rdx
mov rcx, r12
call sym.raiseIndexError2
cmp byte [rbx + r12 + 0x10], 0x5f
jne 0x40ab55
mov r8, rdi
mov edx, 1
mov rcx, r12
call sym.nimAddInt_3
test al, al
je 0x40acac
call sym.raiseOverflow
mov r12, qword [rsp + 0x38]
jmp 0x40ac6e
mov rax, qword [rsp + 0x38]
jmp 0x40acd4
or rdx, 0xffffffffffffffff
test r8, r8
js 0x40aae5
jmp 0x40ab21
mov r12, r13
jmp 0x40ab19
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x4104bb
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
lea r8, [0x00431cdf]
test rcx, rcx
je 0x4104d5
cmp qword [rcx], 0
je 0x4104d5
lea r8, [rcx + 0x10]
mov rcx, r8
call sym.getenv
mov rcx, rax
call sym.eqeq___system_7790.constprop.0
xor eax, 1
add rsp, 0x28
ret

Function at 0x4104ed
Capabilities:
Query environment variable

Disassembly:
push r12
sub rsp, 0x20
lea r8, [0x00431cdf]
mov r12, rdx
test rcx, rcx
je 0x41050c
cmp qword [rcx], 0
je 0x41050c
lea r8, [rcx + 0x10]
mov rcx, r8
call sym.getenv
mov rcx, rax
call sym.eqeq___system_7790.constprop.0
test al, al
jne 0x41052b
add rsp, 0x20
pop r12
jmp sym.cstrToNimstr
mov rcx, r12
add rsp, 0x20
pop r12
jmp sym.copyString

Function at 0x411c99
Capabilities:
Hash data using murmur3

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
movups xmmword [rsp + 0x30], xmm6
movups xmmword [rsp + 0x40], xmm7
movups xmmword [rsp + 0x50], xmm8
movups xmmword [rsp + 0x60], xmm9
xor r15d, r15d
xor esi, esi
movq xmm8, qword [0x004322b0]
mov rax, rdx
mov rbx, rdx
mov rdi, rcx
mov ecx, 4
cqo
lea r12, [rbx - 1]
idiv rcx
cvtsi2sd xmm6, rax
mulsd xmm6, qword [0x004322a0]
lea r13, [rax*4]
cvtsi2sd xmm7, r13
movups xmm9, xmm6
andps xmm9, xmm8
ucomisd xmm6, xmm7
jp 0x411d12
comisd xmm6, xmm7
je 0x411d33
movups xmm0, xmm7
subsd xmm0, xmm6
andps xmm0, xmm8
mulsd xmm0, qword [0x004322c0]
comisd xmm9, xmm0
jae 0x411d33
call sym.raiseOverflow
jmp 0x411d36
mov r14, r13
cmp r15, r14
jl 0x411d56
mov rax, rbx
mov ecx, 4
lea r13, [rbx - 1]
xor ebp, ebp
cqo
idiv rcx
mov r12, rdx
jmp 0x411ddf
cmp r15, rbx
jb 0x411d66
mov rdx, r12
mov rcx, r15
call sym.raiseIndexError2
mov eax, dword [rdi + r15]
lea rbp, [r15 + 4]
xor r15, rbp
mov dword [rsp + 0x2c], eax
jns 0x411d81
test rbp, rbp
jns 0x411d81
call sym.raiseOverflow
imul ecx, dword [rsp + 0x2c], 0xcc9e2d51
mov edx, 0xf
mov r15, rbp
call sym.rotl32__pureZhashes_180
mov edx, 0xd
imul ecx, eax, 0x1b873593
xor ecx, esi
call sym.rotl32__pureZhashes_180
lea esi, [rax + rax*4]
sub esi, 0x19ab949c
jmp 0x411d06
dec r12
mov rax, r15
lea r14, [r15 + r12]
xor rax, r14
js 0x411de6
cmp r14, rbx
jb 0x411dd5
mov rdx, r13
mov rcx, r14
call sym.raiseIndexError2
movzx ecx, byte [rdi + r14]
shl ebp, 8
or ebp, ecx
test r12, r12
jg 0x411db6
jmp 0x411df5
mov rax, r12
xor rax, r14
jns 0x411dc5
call sym.raiseOverflow
jmp 0x411dc5
imul ecx, ebp, 0xcc9e2d51
mov edx, 0xf
xor esi, ebx
call sym.rotl32__pureZhashes_180
nop
movups xmm6, xmmword [rsp + 0x30]
movups xmm7, xmmword [rsp + 0x40]
imul eax, eax, 0x1b873593
movups xmm8, xmmword [rsp + 0x50]
movups xmm9, xmmword [rsp + 0x60]
xor esi, eax
mov eax, esi
shr eax, 0x10
xor eax, esi
imul esi, eax, 0x85ebca6b
mov eax, esi
shr eax, 0xd
xor eax, esi
imul eax, eax, 0xc2b2ae35
mov edx, eax
shr edx, 0x10
xor eax, edx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x411e58
Capabilities:
Hash data using murmur3

Disassembly:
xor edx, edx
test rcx, rcx
je 0x411e65
mov rax, qword [rcx]
mov rdx, rax
add rcx, 0x10
jmp sym.murmurHash__pureZhashes_192
Function at 0x41208f
Capabilities:
Link many functions at runtime

Disassembly:
push r14
push r13
push r12
sub rsp, 0x20
mov r13, rcx
mov r14, rdx
mov r12, r8
test rcx, rcx
jne 0x4120bf
cmp qword [0x00454248], 0
jne 0x4120e5
call sym.loadLib__pureZdynlib_6
mov qword [0x00454248], rax
jmp 0x4120e5
mov rcx, rdx
call sym.nimToCStringConv_3
mov rcx, r13
mov rdx, rax
call sym.symAddr__pureZdynlib_30
test rax, rax
jne 0x412152
test r12, r12
je 0x4120a7
cmp qword [r12], 0
jg 0x412136
jmp 0x4120a7
mov r13, qword [0x00454248]
test r13, r13
jne 0x4120f5
xor eax, eax
jmp 0x412152
mov rcx, r14
call sym.nimToCStringConv_3
mov rcx, r13
mov rdx, rax
call sym.symAddr__pureZdynlib_30
test rax, rax
jne 0x412152
test r12, r12
je 0x4120f1
cmp qword [r12], 0
jle 0x4120f1
mov rcx, r12
call sym.nimToCStringConv_3
mov rcx, r13
mov rdx, rax
add rsp, 0x20
pop r12
pop r13
pop r14
jmp sym.symAddr__pureZdynlib_30
mov rcx, r12
call sym.nimToCStringConv_3
mov rcx, r13
mov rdx, rax
call sym.symAddr__pureZdynlib_30
test rax, rax
je 0x4120a7
add rsp, 0x20
pop r12
pop r13
pop r14
ret

Function at 0x41215d
Capabilities:
Link many functions at runtime

Disassembly:
push r12
sub rsp, 0x30
cmp qword [0x00454240], 0
mov r12, rcx
mov r8, rdx
jne 0x412192
mov qword [rsp + 0x28], rdx
lea rcx, [0x004328a0]
xor edx, edx
call sym.loadLibPattern__pureZdynlib_49
mov r8, qword [rsp + 0x28]
mov qword [0x00454240], rax
mov rcx, qword [0x00454240]
mov rdx, r12
add rsp, 0x30
pop r12
jmp sym.symNullable__wrappersZopenssl_181

Function at 0x41236a
Capabilities:
Link many functions at runtime

Disassembly:
push r12
sub rsp, 0x30
cmp qword [0x00454208], 0
mov r12, rcx
mov r8, rdx
jne 0x41239f
mov qword [rsp + 0x28], rdx
lea rcx, [0x00432740]
xor edx, edx
call sym.loadLibPattern__pureZdynlib_49
mov r8, qword [rsp + 0x28]
mov qword [0x00454208], rax
mov rcx, qword [0x00454208]
mov rdx, r12
add rsp, 0x30
pop r12
jmp sym.symNullable__wrappersZopenssl_181
Function at 0x41a607
Capabilities:
Read file on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov r12, rdx
mov rbx, r8
test rcx, rcx
je 0x41a635
mov rcx, qword [rcx]
lea rdx, [0x004557c0]
call sym.isObj
test al, al
jne 0x41a635
call sym.raiseObjectConversionError
test rbx, rbx
jns 0x41a64e
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbx
call sym.raiseRangeErrorI
mov rcx, qword [rsi + 0x58]
mov r8, rbx
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
jmp sym.readBuffer__systemZio_144
Function at 0x428690
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 0x428700
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x00457d54]
mov r12, rcx
test ebx, ebx
jle 0x428830
mov rax, qword [0x00457d58]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x42874c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x4287d3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x428730
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x428852
mov rax, qword [0x00457d58]
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 [0x00457d58]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x428837
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x4287cc
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x4287e0
add dword [0x00457d54], 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 [0x00457d58]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4287cc
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 0x428757
mov rax, qword [0x00457d58]
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 0x428d20
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00457dc0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00457da0]
test rbx, rbx
je 0x428d74
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 0x428d6b
test r12, r12
je 0x428d6b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x428d50
lea rcx, [0x00457dc0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x428f90
Capabilities:
Parse pe header

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

Function at 0x428fc0
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 0x42900c
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 0x429003
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x42900e
add rax, 0x28
cmp rax, r9
jne 0x428ff0
xor eax, eax
ret

Function at 0x429010
Capabilities:
Parse pe header

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

Disassembly:
mov rdx, qword [0x00438090]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x4290d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x4290d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x4290d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x429125
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 0x42911c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4290d0
add rax, 0x28
cmp rax, r9
jne 0x429108
xor eax, eax
ret

Function at 0x429130
Capabilities:
Parse pe header

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

Function at 0x429170
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x00438090]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x429190
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x429198
ret
cmp word [rdx + 0x18], 0x20b
jne 0x429190
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x4291d8
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x4291cf
test rcx, rcx
je 0x429190
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x4291c0
xor eax, eax
ret
Function at 0x4291e0
Capabilities:
Parse pe header

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

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

Disassembly:
mov rax, qword [0x00438090]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x429240
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x429248
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x429240
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x429240
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x429284
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x429298
add rax, 0x28
cmp r9, rax
jne 0x429270
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

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

Disassembly:
mov r11, qword [0x00438090]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x4292d2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x4292e0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x4292d2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x4292d2
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x4292d2
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 0x42932d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x429340
add rdx, 0x28
cmp r10, rdx
jne 0x429318
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x42934f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x42935f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x429336
test ecx, ecx
jg 0x429348
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400066c0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x14000f960], rbx
je 0x140006727
cmp rax, rbx
jne 0x14000671a
mov ebx, 1
mov esi, ebx
jmp 0x14000672c
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x1400066ff
mov ebx, 1
mov eax, dword [0x14000f968]
cmp eax, ebx
jne 0x140006744
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x1400067b0
mov eax, dword [0x14000f968]
test eax, eax
jne 0x1400067a5
mov dword [0x14000f968], ebx
lea r15, [0x1400089b8]
lea rdi, [0x1400089a0]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140006797
test eax, eax
jne 0x14000679b
cmp qword [rdi], r14
je 0x14000678c
mov rax, qword [rdi]
mov rcx, qword [0x140008920]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000676e
test eax, eax
je 0x1400067ab
mov eax, 0xff
jmp 0x140006906
mov dword [0x14000d3e4], ebx
mov edi, 0x1f
mov eax, dword [0x14000f968]
cmp eax, ebx
jne 0x1400067d7
lea rdx, [0x140008998]
lea rcx, [0x140008928]
call sub.msvcrt.dll__initterm
mov dword [0x14000f968], 2
test esi, esi
jne 0x1400067e5
mov rax, r14
xchg qword [0x14000f960], rax
cmp qword [0x14000f970], r14
je 0x140006818
lea rcx, [0x14000f970]
call fcn.140006b30
test eax, eax
je 0x140006818
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14000f970]
mov r9, qword [0x140008920]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140006831
mov eax, 0xff
jmp 0x140006906
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x1400068b7
test ax, ax
je 0x14000684c
test edx, edx
jne 0x1400068b7
sub ax, bx
cmp ax, di
ja 0x140006862
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000684c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400013dc
mov dword [0x14000d3e0], eax
cmp dword [0x14000d400], r14d
jne 0x1400068a0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000d3e4], r14d
jne 0x1400068b5
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000d3e0]
jmp 0x140006906
cmp ax, 0x22
jne 0x1400068cb
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000683a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140157000
add rsp, 0x28
jmp 0x1400066c0