joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140016438
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140006bf0
sub rsp, rax
mov rax, qword [0x140033080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400134cc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140016487
mov rax, rbp
jmp 0x14001658f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x35290]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140017384
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x35290]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001658b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001658b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140017384
test rax, rax
js 0x14001658b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001658b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001657d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001657d
cmp byte [rcx], 0xd
jne 0x140016563
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140016572
cmp byte [rcx + 1], 0xa
jne 0x140016572
inc rcx
jmp 0x140016572
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x33470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140016545
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001658f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140006580
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140016724
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140035290]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001677b
cmp word [rdx], r13w
jne 0x14001677b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140016780
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400168a5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400168c6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400167b9
mov rdx, r9
mov word [rbx], cx
jmp 0x1400167e0
cmp r9, r8
jae 0x1400167f0
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001679a
jmp 0x1400168a5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001689a
cmp dword [rsp + 0x80], esi
je 0x14001689a
lea r8, [0x140035290]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140016872
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140016842
mov word [rbx], r13w
jmp 0x1400168a2
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001684f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400168a2
cmp word [rsp + 0x70], r13w
jne 0x14001687f
cmp rbx, r14
je 0x14001683c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001738c
cmp word [rsp + 0x70], r13w
je 0x1400168a5
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140035290]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001689f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400168a5
Function at 0x14001afdc
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14001b00c
xor eax, eax
jmp 0x14001b0cf
mov rbp, rbx
cmp word [rax], si
je 0x14001b031
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001b018
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001b014
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400195dc
movsxd r14, eax
test eax, eax
jne 0x14001b06f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001b005
mov rcx, r14
call fcn.140017430
mov rdi, rax
test rax, rax
jne 0x14001b088
xor ecx, ecx
call fcn.140014e68
jmp 0x14001b064
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400195dc
test eax, eax
jne 0x14001b0b9
mov rcx, rdi
call fcn.140014e68
jmp 0x14001b0c3
xor ecx, ecx
call fcn.140014e68
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14001df98
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140013aac
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14001e039
cmp ebx, dword [rsp + 0x30]
je 0x14001e032
test esi, esi
je 0x14001e032
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14001e00d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14001e01a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14001dff7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14001e01e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14001e03b
mov eax, 1
jmp 0x14001e03b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140020604
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000f760
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002068e
cmp byte [rbp - 0x21], r15b
je 0x140020689
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400206c4
call fcn.140015794
test eax, eax
jne 0x1400206b0
cmp byte [rbp - 0x21], r15b
je 0x1400206a8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400206c4
cmp byte [rbp - 0x21], r15b
je 0x1400206c1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000f8e8
test eax, eax
jne 0x140020764
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000f760
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140020703
cmp byte [rbp - 0x21], r15b
je 0x140020738
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140020738
call fcn.140015794
test eax, eax
jne 0x140020724
cmp byte [rbp - 0x21], r15b
je 0x14002071d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140020738
cmp byte [rbp - 0x21], r15b
je 0x140020735
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000f8e8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140020764
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140020767
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140020775
mov rcx, rdi
call fcn.140014e68
cmp byte [rbp + 0x3f], r15b
je 0x140020784
mov rcx, qword [rbp + 0x27]
call fcn.140014e68
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140020dd0
Capabilities:
Clear file content

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
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001738c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001738c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140020f20
cmp rax, 0xffffffffffffffff
je 0x140020f20
xor edi, edi
test rbp, rbp
jle 0x140020ecb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140015454
mov rbx, rax
test rax, rax
jne 0x140020e58
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140020ec1
mov edx, 0x8000
mov ecx, r14d
call fcn.140010b70
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140014b60
cmp eax, 0xffffffff
je 0x140020ea1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140020e68
mov edx, r15d
mov ecx, r14d
call fcn.140010b70
jmp 0x140020ec1
cmp byte [rsi + 0x38], dil
je 0x140020eb8
cmp dword [rsi + 0x34], 5
jne 0x140020eb8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140020ec1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140014e68
jmp 0x140020f34
jns 0x140020f34
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001738c
cmp rax, 0xffffffffffffffff
jne 0x140020eec
cmp byte [rsi + 0x30], dil
je 0x140020f34
mov edi, dword [rsi + 0x2c]
jmp 0x140020f34
mov ecx, r14d
call fcn.14001ba44
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140020f34
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140020f34
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140020f2d
mov eax, dword [rsi + 0x2c]
jmp 0x140020f32
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001738c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14002ac40
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r14
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [str.___t_]
lea r14, str.___t_
cmp rcx, r14
je 0x14002ac87
test byte [rcx + 0x1c], 4
je 0x14002ac87
cmp byte [rcx + 0x19], 5
jb 0x14002ac87
mov rcx, qword [rcx + 0x10]
lea r8, [0x140081b70]
mov edx, 0x14
call fcn.140001010
lea rcx, [0x140098110]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbx + 8]
mov rcx, qword [rbx]
mov qword [rax], rcx
mov qword [rcx + 8], rax
and qword [rbx], 0
and qword [rbx + 8], 0
mov eax, dword [rbx + 0x18]
test eax, eax
jne 0x14002acc8
cmp dword [rbx + 0x2c], eax
jne 0x14002acc8
lea rcx, [0x140098028]
call fcn.14003363c
jmp case.default.0x14002ae49
cmp eax, 2
jne 0x14002ad37
mov rcx, qword [rbx + 0x38]
cmp rcx, 0xffffffffffffffff
je case.default.0x14002ae49
call qword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
jne case.default.0x14002ae49
mov rax, qword [str.___t_]
cmp rax, r14
je case.default.0x14002ae49
test byte [rax + 0x1c], 4
je case.default.0x14002ae49
cmp byte [rax + 0x19], 2
jb case.default.0x14002ae49
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea r8, [0x140081b70]
mov r9d, eax
mov edx, 0x15
mov rcx, qword [rcx + 0x10]
call fcn.140001030
jmp case.default.0x14002ae49
cmp eax, 3
jne case.default.0x14002ae49
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14002ad8b
mov rax, qword [str.___t_]
cmp rax, r14
je 0x14002ad8b
test byte [rax + 0x1c], 4
je 0x14002ad8b
cmp byte [rax + 0x19], 2
jb 0x14002ad8b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea r8, [0x140081b70]
mov r9d, eax
mov edx, 0x16
mov rcx, qword [rcx + 0x10]
call fcn.140001030
cmp dword [rbx + 0x660], 0
je 0x14002ade6
cmp dword [rbx + 0x65c], 0
je 0x14002adef
lea rcx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14002ade6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x14002ade6
test byte [rcx + 0x1c], 4
je 0x14002ade6
cmp byte [rcx + 0x19], 2
jb 0x14002ade6
mov rcx, qword [rcx + 0x10]
lea r9, [rbx + 0x40]
mov edx, 0x17
mov dword [rsp + 0x20], eax
lea r8, [0x140081b70]
call fcn.140001250
cmp dword [rbx + 0x65c], 0
jne case.default.0x14002ae49
cmp qword [rbx + 0x668], 0
je case.default.0x14002ae49
lea rcx, [0x1400981a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbx + 0x668]
mov edx, 1
mov r9d, edx
mov r8d, edx
call fcn.14003b3ec
lea rcx, [0x1400981a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rbx
call fcn.140062654
lea rcx, [0x140098110]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x30
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test al, r10b
cmc
mov ecx, 0x85710a38
pop rbp
adc bh, byte [rax]
cmp al, 0x6c
adc edi, edi
invalid
mov ch, 5
adc eax, 0x1725f2e3
invalid
fisubr word [rdi - 0xd]
fistp word [rdi + rsi]
in eax, dx
or bh, byte [rcx + 0x56]
test byte [rsi + 0x7a], ch
invalid
mov ebp, 0x7a7dd5a0
and byte [rax], 0xb4
test ebx, ebx
invalid
Function at 0x402720
Capabilities:
Parse pe header

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

Function at 0x402740
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 0x402781
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 0x402778
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402783
add rax, 0x28
cmp rax, r9
jne 0x402764
xor eax, eax
ret

Function at 0x402820
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00404360]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x40288d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40288d
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 0x40288d
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 0x402884
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40288f
add rax, 0x28
cmp rax, r9
jne 0x402870
xor eax, eax
add rsp, 0x28
ret

Function at 0x402990
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00404360]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x4029b0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4029a8
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 0x402a0d
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 0x402a04
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402a14
add rax, 0x28
cmp rax, r9
jne 0x4029f0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x402a30
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00404360]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x402a9e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402a9e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x402a9e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402a9e
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 0x402a95
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x402aa5
add rcx, 0x28
cmp rcx, rax
jne 0x402a80
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x402ab8
jmp 0x402a9e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x402ac6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x402a9e
test r9d, r9d
jg 0x402ab0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x415c80
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x415e0b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x00690370]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x415ce5
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x415cf4
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x415d13
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x415d23
cmp rbx, 0x1000
jae 0x415ceb
jmp 0x415d8d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x415d35
xor edx, edx
jmp 0x415d84
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x00690370]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x415d19
jmp 0x415d08
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x00690370]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call sym.runtime.printlock
lea rax, [0x005429d0]
mov ebx, 0x18
nop dword [rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x00542fd7]
mov ebx, 0x19
nop dword [rax + rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x30]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x005457dd]
mov ebx, 0x21
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.runtime.sysUnusedOS
Function at 0x415e40
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x416066
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call sym.runtime.stdcall4.abi0
xorps xmm15, xmm15
mov r14, qword [0x00690370]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x415eb3
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x415ec2
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x415ee5
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x415ef5
cmp rbx, 0x1000
jae 0x415eb9
nop
jmp 0x415f78
add rsp, 0x50
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
cmp rbx, 0x1000
jae 0x415f0d
xor esi, esi
jmp 0x415f6a
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call sym.runtime.stdcall4.abi0
xorps xmm15, xmm15
mov r14, qword [0x00690370]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x415eeb
jmp 0x415ed6
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x00690370]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x416000
nop dword [rax + rax]
call sym.runtime.printlock
lea rax, [0x00542ff0]
mov ebx, 0x19
call sym.runtime.printstring
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call sym.runtime.printuint
lea rax, [0x00542fd7]
mov ebx, 0x19
call sym.runtime.printstring
mov eax, dword [rsp + 0x34]
call sym.runtime.printuint
nop
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x0053f221]
mov ebx, 0xd
call sym.runtime.throw
nop dword [rax + rax]
cmp eax, 0x5af
je 0x415fa0
call sym.runtime.printlock
lea rax, [0x00542ff0]
mov ebx, 0x19
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x00542fd7]
mov ebx, 0x19
call sym.runtime.printstring
mov eax, dword [rsp + 0x34]
nop dword [rax]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x00544e9b]
mov ebx, 0x1f
nop dword [rax + rax]
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp sym.runtime.sysUsedOS