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

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

Function at 0x14006744c
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x28
call fcn.14007cb20
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x14006749e
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov r9d, 2
lea edx, [r9 + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx ecx, word [rsp + 0x30]
sub ecx, 0x30
je 0x14006749e
sub ecx, 1
je 0x140067497
cmp ecx, 1
je 0x140067490
xor eax, eax
jmp 0x1400674a3
mov eax, 3
jmp 0x1400674a3
mov eax, 1
jmp 0x1400674a3
mov eax, 2
add rsp, 0x28
ret

Function at 0x14006cbd0
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.140091da0
sub rsp, rax
mov rax, qword [0x1400b8040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14008062c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14006cc1f
mov rax, rbp
jmp 0x14006cd27
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 + 0xbc6d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400808bc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xbc6d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14006cd23
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 0x14006cd23
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400808bc
test rax, rax
js 0x14006cd23
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14006cd23
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14006cd15
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14006cd15
cmp byte [rcx], 0xd
jne 0x14006ccfb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14006cd0a
cmp byte [rcx + 1], 0xa
jne 0x14006cd0a
inc rcx
jmp 0x14006cd0a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xb8530]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14006ccdd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14006cd27
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14003f810
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 0x140079580
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400795b7
call fcn.14007d348
mov dword [rax], 0x16
call fcn.140077758
xor eax, eax
jmp 0x140079645
mov rdx, r9
mov rcx, r8
call fcn.14007951c
mov rbx, rax
test rax, rax
je 0x140079642
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140079448]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14007962f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14007d2bc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140079616
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140079625
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14008250c
jmp 0x140079642
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14007963f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140079b18
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140079b87
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140079b87
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140079b87
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140079b87
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140079b87
cmp dword [rcx + 0x84], 0xe
jbe 0x140079b87
cmp dword [rcx + 0xf8], 0
je 0x140079b87
mov ecx, ebx
call fcn.140079c38
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140079a14
nop
cmp dword [rbp + 0x20], 0
je 0x140079bd5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140079be0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140079b18
Function at 0x140081040
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, [0x1400bc6d0]
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 0x140081097
cmp word [rdx], r13w
jne 0x140081097
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14008109c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400811c1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400811e2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400810d5
mov rdx, r9
mov word [rbx], cx
jmp 0x1400810fc
cmp r9, r8
jae 0x14008110c
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 0x1400810b6
jmp 0x1400811c1
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 0x1400811b6
cmp dword [rsp + 0x80], esi
je 0x1400811b6
lea r8, [0x1400bc6d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14008118e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14008115e
mov word [rbx], r13w
jmp 0x1400811be
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 0x14008116b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400811be
cmp word [rsp + 0x70], r13w
jne 0x14008119b
cmp rbx, r14
je 0x140081158
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400808c4
cmp word [rsp + 0x70], r13w
je 0x1400811c1
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, [0x1400bc6d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400811bb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400811c1
Function at 0x140084370
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140084386
mov al, 1
jmp 0x1400843e6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140084397
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400843e4
mov ecx, dword [rcx + 0x18]
nop
call fcn.140088e04
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400843e4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400843e4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400843e4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400843e6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140087e3c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140087ec3
mov rsi, rbx
cmp word [rax], bp
je 0x140087e82
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140087e6c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140087e68
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140082830
mov rdi, rax
test rax, rax
je 0x140087eb0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140092620
mov rbp, rdi
xor ecx, ecx
call fcn.14008250c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14008b4e8
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.140080ce0
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 0x14008b589
cmp ebx, dword [rsp + 0x30]
je 0x14008b582
test esi, esi
je 0x14008b582
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14008b55d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14008b56a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14008b547
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14008b56e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14008b58b
mov eax, 1
jmp 0x14008b58b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14009085c
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.1400808c4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400808c4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400909ac
cmp rax, 0xffffffffffffffff
je 0x1400909ac
xor edi, edi
test rbp, rbp
jle 0x140090957
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140083d80
mov rbx, rax
test rax, rax
jne 0x1400908e4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14009094d
mov edx, 0x8000
mov ecx, r14d
call fcn.14007ab6c
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.140084f98
cmp eax, 0xffffffff
je 0x14009092d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400908f4
mov edx, r15d
mov ecx, r14d
call fcn.14007ab6c
jmp 0x14009094d
cmp byte [rsi + 0x38], dil
je 0x140090944
cmp dword [rsi + 0x34], 5
jne 0x140090944
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14009094d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14008250c
jmp 0x1400909c0
jns 0x1400909c0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400808c4
cmp rax, 0xffffffffffffffff
jne 0x140090978
cmp byte [rsi + 0x30], dil
je 0x1400909c0
mov edi, dword [rsi + 0x2c]
jmp 0x1400909c0
mov ecx, r14d
call fcn.140088e04
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400909c0
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 0x1400909c0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400909b9
mov eax, dword [rsi + 0x2c]
jmp 0x1400909be
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400808c4
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 0x140091e90
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140091eb8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140091eb8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002250
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x38
mov rax, qword [sym.imp.msvcrt.dll__iob]
add rax, 0x60
mov r8d, dword [rsp + 0x40]
lea rdx, [0x140001228]
mov rcx, rax
call qword [sym.imp.msvcrt.dll_fprintf]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.msvcrt.dll__iob]
add rax, 0x60
mov r8, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.msvcrt.dll_vfprintf]
mov qword [rsp + 0x20], 0
mov ecx, 1
call qword [sym.imp.msvcrt.dll_exit]
add rsp, 0x38
ret

Function at 0x140002898
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r13
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140006aa8], rbx
je 0x1400028e4
cmp rax, rbx
jne 0x1400028d7
mov ebx, 1
mov esi, ebx
jmp 0x1400028e9
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400028bc
mov ebx, 1
mov eax, dword [0x140006aa0]
cmp eax, ebx
jne 0x1400028ff
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x14000295c
mov eax, dword [0x140006aa0]
test eax, eax
jne 0x140002956
mov dword [0x140006aa0], ebx
lea r13, [0x140001168]
lea rdi, [0x140001150]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r13
jae 0x140002948
test eax, eax
jne 0x14000294c
mov rcx, qword [rdi]
test rcx, rcx
je 0x14000293d
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x140002926
test eax, eax
je 0x14000295c
mov eax, 0xff
jmp 0x140002a2d
mov dword [0x140004e5c], ebx
mov eax, dword [0x140006aa0]
cmp eax, ebx
jne 0x140002983
lea rdx, [0x140001148]
lea rcx, [0x140001138]
call sub.msvcrt.dll__initterm
mov dword [0x140006aa0], 2
test esi, esi
jne 0x140002990
xor eax, eax
xchg qword [0x140006aa8], rax
cmp qword [0x140006ab0], 0
je 0x1400029b9
lea rcx, [0x140006ab0]
call fcn.140002d1c
test eax, eax
je 0x1400029b9
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x140006ab0]
mov r8, qword [0x140004e40]
mov rdx, qword [0x140004e48]
mov ecx, dword [0x140004e38]
call fcn.140002580
mov dword [0x140004e58], eax
cmp dword [0x140004e3c], 0
jne 0x1400029e9
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140004e5c], 0
jne 0x1400029fe
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140004e58]
jmp 0x140002a2d
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r13
ret
sub rsp, 0x28
call fcn.140002e30
add rsp, 0x28
jmp 0x140002898
Function at 0x140002b50
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140004100]
jne 0x140002b6b
rol rcx, 0x10
test cx, 0xffff
jne 0x140002b67
ret 0
ror rcx, 0x10
jmp 0x140002eec
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140004f10]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140005008]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140002f71
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140004f10]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140002f93
mov rax, qword [rsp + 0x88]
mov qword [0x140005008], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140004fa8], rax
mov rax, qword [0x140005008]
mov qword [0x140004e80], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140004f90], rax
mov dword [0x140004e70], 0xc0000409
mov dword [0x140004e74], 1
mov rax, qword [0x140004100]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140004108]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140001190]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x140002d88
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
test rcx, rcx
je 0x140002dd5
cmp rcx, 0xffffffffffffffff
je 0x140002dd5
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140002dcd
cmp dword [rcx + 0x3c], edx
jl 0x140002dcd
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140002dcd
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140002dd5
mov rax, rdx
add rsp, 0x18
ret
Function at 0x412420
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4125ab
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 fcn.00431640
xorps xmm15, xmm15
mov r14, qword [0x0059c8c0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x412485
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x412494
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x4124b3
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x4124c3
cmp rbx, 0x1000
jae 0x41248b
jmp 0x41252d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x4124d5
xor edx, edx
jmp 0x412524
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 fcn.00431640
xorps xmm15, xmm15
mov r14, qword [0x0059c8c0]
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 0x4124b9
jmp 0x4124a8
call fcn.0046cbe0
xorps xmm15, xmm15
mov r14, qword [0x0059c8c0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00435d80
lea rax, [0x004b3c7b]
mov ebx, 0x18
nop dword [rax]
call fcn.00436600
mov rax, qword [rsp + 0x38]
call fcn.00436340
lea rax, [0x004b411a]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00436600
mov rax, qword [rsp + 0x30]
call fcn.00436340
call fcn.00435fc0
call fcn.00435de0
lea rax, [0x004b649a]
mov ebx, 0x21
call fcn.00464400
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.004694e0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00412420
Function at 0x4125e0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x412806
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 fcn.004316c0
xorps xmm15, xmm15
mov r14, qword [0x0059c8c0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x412653
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x412662
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x412685
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x412695
cmp rbx, 0x1000
jae 0x412659
nop
jmp 0x412718
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 0x4126ad
xor esi, esi
jmp 0x41270a
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 fcn.004316c0
xorps xmm15, xmm15
mov r14, qword [0x0059c8c0]
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 0x41268b
jmp 0x412676
call fcn.0046cbe0
xorps xmm15, xmm15
mov r14, qword [0x0059c8c0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x4127a0
nop dword [rax + rax]
call fcn.00435d80
lea rax, [0x004b4133]
mov ebx, 0x19
call fcn.00436600
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call fcn.00436340
lea rax, [0x004b411a]
mov ebx, 0x19
call fcn.00436600
mov eax, dword [rsp + 0x34]
call fcn.00436340
nop
call fcn.00435fc0
call fcn.00435de0
lea rax, [0x004b0a5a]
mov ebx, 0xd
call fcn.00464400
nop dword [rax + rax]
cmp eax, 0x5af
je 0x412740
call fcn.00435d80
lea rax, [0x004b4133]
mov ebx, 0x19
call fcn.00436600
mov rax, qword [rsp + 0x38]
call fcn.00436340
lea rax, [0x004b411a]
mov ebx, 0x19
call fcn.00436600
mov eax, dword [rsp + 0x34]
nop dword [rax]
call fcn.00436340
call fcn.00435fc0
call fcn.00435de0
lea rax, [0x004b5da4]
mov ebx, 0x1f
nop dword [rax + rax]
call fcn.00464400
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.004694e0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp fcn.004125e0