joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140026144
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 0x1400261cb
mov rsi, rbx
cmp word [rax], bp
je 0x14002618a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140026174
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140026170
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001e2bc
mov rdi, rax
test rax, rax
je 0x1400261b8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000cca0
mov rbp, rdi
xor ecx, ecx
call fcn.14001e280
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 0x14002d1f0
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.140022230
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140022230
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002d340
cmp rax, 0xffffffffffffffff
je 0x14002d340
xor edi, edi
test rbp, rbp
jle 0x14002d2eb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001e208
mov rbx, rax
test rax, rax
jne 0x14002d278
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002d2e1
mov edx, 0x8000
mov ecx, r14d
call fcn.14001afdc
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.1400204e8
cmp eax, 0xffffffff
je 0x14002d2c1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002d288
mov edx, r15d
mov ecx, r14d
call fcn.14001afdc
jmp 0x14002d2e1
cmp byte [rsi + 0x38], dil
je 0x14002d2d8
cmp dword [rsi + 0x34], 5
jne 0x14002d2d8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002d2e1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001e280
jmp 0x14002d354
jns 0x14002d354
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140022230
cmp rax, 0xffffffffffffffff
jne 0x14002d30c
cmp byte [rsi + 0x30], dil
je 0x14002d354
mov edi, dword [rsi + 0x2c]
jmp 0x14002d354
mov ecx, r14d
call fcn.1400266c8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002d354
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 0x14002d354
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002d34d
mov eax, dword [rsi + 0x2c]
jmp 0x14002d352
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140022230
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 0x140031720
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x58
mov rbx, qword [0x1400a3cc0]
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x38]
mov dword [rbp - 0x38], 0x21001c
mov dword [rbp - 0x34], 0x3d0008
mov dword [rbp - 0x30], 0x540002
mov dword [rbp - 0x2c], 0xe005f
mov dword [rbp - 0x28], 0x4c0017
mov dword [rbp - 0x24], 0x750039
call fcn.140009010
mov rcx, qword [rax]
call rbx
mov rcx, qword [rbp - 0x20]
mov qword [0x1400a3cb0], rax
test rcx, rcx
je 0x1400317b4
mov rdx, qword [rbp - 0x10]
mov rax, rcx
sub rdx, rcx
sar rdx, 1
add rdx, rdx
cmp rdx, 0x1000
jb 0x1400317af
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003194c
call fcn.14000aab8
movdqa xmm0, xmmword [0x140044f80]
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x38]
mov word [rbp - 0x28], 0x506
movdqu xmmword [rbp - 0x38], xmm0
mov byte [rbp - 0x26], 0x57
call fcn.1400091a0
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140031812
mov rdx, qword [rbp - 0x10]
mov rax, rcx
sub rdx, rcx
cmp rdx, 0x1000
jb 0x14003180d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031952
call fcn.14000aab8
mov qword [rsp + 0x78], rsi
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x80], rdi
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x88], r14
mov qword [rsp + 0x50], r15
mov dword [rbp - 0x38], 0x3d08211c
mov dword [rbp - 0x34], 0x45152202
mov dword [rbp - 0x30], 0x10215510
mov word [rbp - 0x2c], 0x7515
call fcn.140008f40
mov r11, qword [0x1400a3cb0]
mov rdi, qword [rax]
test r11, r11
je 0x1400318e6
test rdi, rdi
je 0x1400318e6
movsxd rax, dword [r11 + 0x3c]
xor ebx, ebx
mov r9d, ebx
mov ecx, dword [rax + r11 + 0x88]
add rcx, r11
mov r14d, dword [rcx + 0x1c]
mov r10d, dword [rcx + 0x20]
add r14, r11
mov r15d, dword [rcx + 0x24]
add r10, r11
mov esi, dword [rcx + 0x18]
add r15, r11
test esi, esi
je 0x1400318e8
nop dword [rax]
mov eax, dword [r10]
mov r8, rdi
add rax, r11
sub r8, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400318c3
inc rax
test ecx, ecx
jne 0x1400318b0
test edx, edx
je 0x1400318d5
inc r9d
add r10, 4
cmp r9d, esi
jb 0x1400318a0
jmp 0x1400318e8
mov eax, r9d
movzx ecx, word [r15 + rax*2]
mov ebx, dword [r14 + rcx*4]
add rbx, r11
jmp 0x1400318e8
xor ebx, ebx
mov rcx, qword [rbp - 0x20]
mov r15, qword [rsp + 0x50]
mov r14, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x78]
mov qword [0x1400a3c98], rbx
test rcx, rcx
je 0x14003193f
mov rdx, qword [rbp - 0x10]
mov rax, rcx
sub rdx, rcx
cmp rdx, 0x1000
jb 0x14003193a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031946
call fcn.14000aab8
add rsp, 0x58
pop rbx
pop rbp
ret
call fcn.140011780
int3
call fcn.140011780
int3
call fcn.140011780
int3
Function at 0x140031cc0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov eax, 0x55
mov dword [rbp - 0x34], 0xc0004
lea rdx, [rbp - 0x18]
mov word [rbp - 0x20], ax
lea rcx, [rbp - 0x34]
mov dword [rbp - 0x30], 0x1f003f
mov dword [rbp - 0x2c], 0x2b002b
mov dword [rbp - 0x28], 0x61002f
mov dword [rbp - 0x24], 0x650020
call fcn.1400095a0
mov rsi, qword [rax]
mov rax, qword gs:[0x60]
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x140031d4d
nop dword [rax]
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
call fcn.14000bc38
test rax, rax
jne 0x140031e41
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x140031d30
xor eax, eax
mov rcx, qword [rbp - 0x18]
mov qword [0x1400a3cb8], rax
test rcx, rcx
je 0x140031d96
mov rdx, qword [rbp - 8]
mov rax, rcx
sub rdx, rcx
sar rdx, 1
add rdx, rdx
cmp rdx, 0x1000
jb 0x140031d91
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031e50
call fcn.14000aab8
lea rdx, [rbp - 0x18]
mov dword [rbp - 0x40], 0x3d0021
lea rcx, [rbp - 0x40]
mov dword [rbp - 0x3c], 0x3d0009
mov dword [rbp - 0x38], 0x670002
call fcn.1400094e0
mov rsi, qword [rax]
mov rax, qword gs:[0x60]
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x140031ded
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
call fcn.14000bc38
test rax, rax
jne 0x140031ded
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x140031dd4
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140031e29
mov rdx, qword [rbp - 8]
mov rax, rcx
sub rdx, rcx
sar rdx, 1
add rdx, rdx
cmp rdx, 0x1000
jb 0x140031e24
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031e4a
call fcn.14000aab8
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
add rsp, 0x60
pop rbp
ret
mov rax, qword [rbx + 0x20]
jmp 0x140031d4f
call fcn.140011780
int3
call fcn.140011780
int3
Function at 0x140035790
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
xor ebx, ebx
mov r13, rdx
mov rbp, rcx
mov edi, dword [rax + rcx + 0x88]
add rdi, rcx
mov r14d, dword [rdi + 0x1c]
mov r15d, dword [rdi + 0x20]
add r14, rcx
mov r12d, dword [rdi + 0x24]
add r15, rcx
add r12, rcx
cmp dword [rdi + 0x18], ebx
jbe 0x140035807
nop dword [rax]
movzx eax, word [r12 + rbx*2]
mov rdx, r13
mov ecx, dword [r15 + rbx*4]
add rcx, rbp
mov esi, dword [r14 + rax*4]
add rsi, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x140035826
inc ebx
cmp ebx, dword [rdi + 0x18]
jb 0x1400357e0
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rax, rsi
jmp 0x140035809
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140038ce0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140038cf0]
mov dword [rax], 1
mov rax, qword [0x140038d00]
mov dword [rax], 1
mov rax, qword [0x140038c80]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140038cd0]
mov dword [0x14003c020], 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 [0x140038db0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140038d90]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140038c30]
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 0x14002f270
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 0x14002f2e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14003c0b4]
mov rbx, rcx
test esi, esi
jle 0x14002f410
mov rax, qword [0x14003c0b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14002f32b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14002f3b5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14002f310
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14002f432
mov rax, qword [0x14003c0b8]
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 [0x14003c0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14002f417
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14002f3ae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14002f3c0
add dword [0x14003c0b4], 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 [0x14003c0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14002f3ae
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 0x14002f338
mov rax, qword [0x14003c0b8]
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 0x14002f9a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14003c120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14003c100]
test rbx, rbx
je 0x14002f9fc
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 eax, eax
jne 0x14002f9f3
test rsi, rsi
je 0x14002f9f3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14002f9d8
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 0x14002fc10
Capabilities:
Parse pe header

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

Function at 0x14002fc40
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 0x14002fc8d
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 0x14002fc84
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14002fc8f
add rax, 0x28
cmp rax, r9
jne 0x14002fc70
xor eax, eax
ret

Function at 0x14002fc90
Capabilities:
Parse pe header

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

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

Function at 0x14002fdb0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140038c80]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14002fdcf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14002fdd8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14002fdcf
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x14002fdf0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140038c80]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14002fe10
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14002fe18
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14002fe10
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x14002fe60
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14002fe57
test rcx, rcx
je 0x14002fe10
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x14002fe48
xor eax, eax
ret

Function at 0x14002fe70
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140038c80]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14002fe8f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14002fe98
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x140038c80]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14002fed0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14002fed8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14002fed0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x14002fed0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x14002ff24
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14002ff30
add rdx, 0x28
cmp r9, rdx
jne 0x14002ff10
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140038c80]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x14002ff62
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x14002ff70
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14002ff62
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x14002ff62
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x14002ff62
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x14002ffc5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x14002ffd8
add rdx, 0x28
cmp rdx, r10
jne 0x14002ffb0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14002ffe7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14002fff7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14002ffce
test ecx, ecx
jg 0x14002ffe0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x4175c0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x417766
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [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.00433dc0
xorps xmm15, xmm15
mov r14, qword [0x009381c0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x41762b
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x417640
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
nop
test rbx, rbx
jbe 0x417665
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x417679
cmp rbx, 0x1000
jae 0x417635
nop dword [rax]
jmp 0x4176e9
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop
cmp rbx, 0x1000
jae 0x41768d
xor edx, edx
jmp 0x4176e0
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.00433dc0
xorps xmm15, xmm15
mov r14, qword [0x009381c0]
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]
nop dword [rax]
test dl, dl
jne 0x41766f
jmp 0x417654
call fcn.004674a0
xorps xmm15, xmm15
mov r14, qword [0x009381c0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00438500
lea rax, [0x006d8770]
mov ebx, 0x18
call fcn.00438e00
mov rax, qword [rsp + 0x38]
call fcn.00438b00
lea rax, [0x006d88a8]
mov ebx, 0x19
call fcn.00438e00
mov rax, qword [rsp + 0x30]
nop
call fcn.00438b00
call fcn.00438760
call fcn.00438580
lea rax, [0x006dcc64]
mov ebx, 0x21
nop dword [rax + rax]
call fcn.00436bc0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.004638e0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp fcn.004175c0
Function at 0x4177a0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4179ca
sub rsp, 0x58
mov qword [rsp + 0x50], rbp
lea rbp, [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.00433e40
xorps xmm15, xmm15
mov r14, qword [0x009381c0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x417819
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x41782c
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x417850
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
nop
jmp 0x417864
cmp rbx, 0x1000
jae 0x417823
jmp 0x4178e5
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x417876
xor esi, esi
jmp 0x4178d6
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
nop dword [rax]
call fcn.00433e40
xorps xmm15, xmm15
mov r14, qword [0x009381c0]
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 0x41785a
nop
jmp 0x417842
call fcn.004674a0
xorps xmm15, xmm15
mov r14, qword [0x009381c0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x417965
call fcn.00438500
lea rax, [0x006d8f7e]
mov ebx, 0x19
call fcn.00438e00
mov rax, qword [rsp + 0x68]
call fcn.00438b00
lea rax, [0x006d88a8]
mov ebx, 0x19
call fcn.00438e00
mov eax, dword [rsp + 0x34]
nop dword [rax]
call fcn.00438b00
call fcn.00438760
call fcn.00438580
lea rax, [0x006d39c9]
mov ebx, 0xd
nop dword [rax + rax]
call fcn.00436bc0
cmp eax, 0x5af
je 0x417908
call fcn.00438500
lea rax, [0x006d8f7e]
mov ebx, 0x19
nop dword [rax]
call fcn.00438e00
mov rax, qword [rsp + 0x38]
call fcn.00438b00
lea rax, [0x006d88a8]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00438e00
mov eax, dword [rsp + 0x34]
call fcn.00438b00
call fcn.00438760
call fcn.00438580
lea rax, [0x006dbd2e]
mov ebx, 0x1f
call fcn.00436bc0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.004638e0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.004177a0