joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140063130
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14008b180]
xor rax, rsp
mov qword [rsp + 0x50], rax
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x140063225
nop dword [rax]
cmp rbx, qword [0x14008b150]
jb 0x14006318e
cmp rbx, qword [0x14008b158]
ja 0x14006318e
sub rbx, 0x8000000
jmp 0x14006321c
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
je 0x140063225
cmp dword [rsp + 0x40], 0x10000
jne 0x140063200
cmp qword [rsp + 0x38], 0x10000
jb 0x140063200
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call sub.KERNEL32.dll_VirtualAlloc
test rax, rax
jne 0x140063227
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x140063225
sub rbx, 0x10000
jmp 0x14006321c
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
cmp rbx, rdi
ja 0x140063170
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400673e0
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret

Function at 0x140063240
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14008b180]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
test rax, rax
je 0x140063271
sub rbx, rax
add rbx, 0x10000
cmp rbx, rdi
jae 0x140063337
nop word [rax + rax]
cmp rbx, qword [0x14008b150]
jb 0x14006329e
cmp rbx, qword [0x14008b158]
ja 0x14006329e
add rbx, 0x8000000
jmp 0x14006332e
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
je 0x140063337
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x140063313
cmp rcx, 0x10000
jb 0x140063313
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call sub.KERNEL32.dll_VirtualAlloc
test rax, rax
jne 0x140063339
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x140063337
add rbx, 0x10000
jmp 0x14006332e
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x14006332e
mov eax, 0x10000
sub rax, rcx
add rbx, rax
cmp rbx, rdi
jb 0x140063280
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400673e0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140063360
Capabilities:
Hook routines via microsoft detours

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, [rcx - 0x7ff80000]
mov r9, rcx
cmp rcx, 0x7ff80000
ja 0x14006337e
mov ebx, 0x80000
mov qword [rsp + 0x30], rdi
lea rdi, [rcx + 0x7ff80000]
cmp r9, 0xffffffff80000000
jb 0x14006339a
mov rdi, 0xfffffffffff80000
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x1400633b1
cmp byte [rcx + 1], 0x25
jne 0x1400633f5
movsxd rax, dword [rcx + 2]
add rcx, 6
jmp 0x1400633bd
cmp al, 0xe9
jne 0x1400633f5
movsxd rax, dword [rcx + 1]
add rcx, 5
add rcx, rax
cmp rcx, r9
jae 0x1400633e0
cmp rcx, 0xffffffff80000000
jae 0x1400633d7
lea rdi, [rcx + 0x7ff80000]
jmp 0x1400633f5
mov rdi, 0xfffffffffff80000
jmp 0x1400633f5
lea rbx, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
ja 0x1400633f5
mov ebx, 0x80000
mov rax, qword [0x14008de38]
mov rcx, qword [0x14008de30]
test rax, rax
jne 0x140063417
test rcx, rcx
je 0x14006342e
mov rax, rcx
mov qword [0x14008de38], rcx
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x14006342e
cmp rdx, rbx
jb 0x14006342e
cmp rdx, rdi
jbe 0x1400634d9
mov qword [0x14008de38], rcx
mov rax, rcx
test rcx, rcx
je 0x140063469
test rcx, rcx
je 0x140063459
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x140063459
cmp rcx, rbx
jb 0x140063459
cmp rcx, rdi
jbe 0x1400634d9
mov rax, qword [rax + 8]
mov qword [0x14008de38], rax
test rax, rax
jne 0x140063442
movzx eax, r9w
mov r8, rdi
sub r9, rax
mov rdx, rbx
mov rcx, r9
call fcn.140063530
test rax, rax
je 0x14006351c
mov dword [rax], 0x52727464
lea rdx, [rax + 0xffa8]
xor r8d, r8d
mov qword [0x14008de38], rax
mov qword [rax + 0x10], r8
mov r9d, 0x2a7
mov rcx, qword [0x14008de30]
mov qword [rax + 8], rcx
lea rcx, [rax + 0xff60]
mov qword [0x14008de30], rax
mov qword [rdx], r8
lea rdx, [rdx - 0x60]
mov r8, rcx
sub rcx, 0x60
sub r9, 1
jne 0x1400634c1
mov qword [rax + 0x10], r8
mov rdx, qword [rax + 0x10]
cmp rdx, rbx
jb 0x14006351c
cmp rdx, rdi
ja 0x14006351c
mov rcx, qword [rdx + 0x48]
movdqa xmm0, xmmword [0x1400737d0]
mov qword [rax + 0x10], rcx
mov rax, rdx
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm0
movups xmmword [rdx + 0x20], xmm0
movups xmmword [rdx + 0x30], xmm0
movups xmmword [rdx + 0x40], xmm0
movups xmmword [rdx + 0x50], xmm0
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140063850
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14008b180]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x14006388c
xor al, al
jmp 0x1400638db
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x14006389d
xor al, al
jmp 0x1400638db
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x1400638c4
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x1400638c4
mov al, 1
jmp 0x1400638db
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400673e0
add rsp, 0x60
pop rbx
ret
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400673e0
add rsp, 0x60
pop rbx
ret
Function at 0x140063e40
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rsi
sub rsp, 0x38
mov rax, qword [0x14008b180]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbp, rdx
mov rsi, rcx
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x14008de48], eax
je 0x140063e73
mov eax, 0x10dd
jmp 0x140063f9c
mov eax, dword [0x14008de4c]
test eax, eax
jne 0x140063f9c
test rbp, rbp
jne 0x140063e8e
lea eax, [rbp + 0x57]
jmp 0x140063f9c
test rsi, rsi
je 0x140063eaa
cmp qword [rsi], 0
jne 0x140063eb4
mov dword [0x14008de4c], 6
mov qword [0x14008de50], rsi
mov eax, 6
jmp 0x140063f9c
mov qword [rsp + 0x60], rbx
mov ecx, 0x30
mov qword [rsp + 0x30], rdi
call fcn.140067450
mov rbx, rax
test rax, rax
jne 0x140063ed8
lea edi, [rax + 8]
jmp 0x140063f71
mov rcx, qword [rsi]
xor edx, edx
call fcn.140063d90
xor edx, edx
mov rcx, rbp
mov rdi, rax
call fcn.140063d90
movzx ecx, byte [rdi + 0x3e]
mov rbp, qword [rdi + 0x48]
sub rbp, rcx
test cl, cl
je 0x140063f63
mov edx, ecx
cmp rcx, 0x1e
ja 0x140063f63
cmp qword [rdi + 0x50], rax
jne 0x140063f63
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0
mov r8d, 0x40
mov rcx, rbp
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x140063f34
call sub.KERNEL32.dll_GetLastError
mov edi, eax
jmp 0x140063f71
mov dword [rbx + 8], 1
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x20], rdi
mov qword [rbx + 0x18], rbp
mov eax, dword [rsp + 0x20]
mov dword [rbx + 0x28], eax
mov rax, qword [0x14008de60]
mov qword [rbx], rax
xor eax, eax
mov qword [0x14008de60], rbx
jmp 0x140063f92
cmp dword [0x14008de40], 0
mov edi, 9
jne 0x140063f7c
mov dword [0x14008de4c], edi
test rbx, rbx
je 0x140063f89
mov edx, 0x30
mov rcx, rbx
call fcn.140067440
mov qword [0x14008de50], rsi
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400673e0
add rsp, 0x38
pop rsi
pop rbp
ret
Function at 0x140063fb0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14008b180]
xor rax, rsp
mov qword [rsp + 0x28], rax
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x14008de48], eax
je 0x140063fe7
mov eax, 0x10dd
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400673e0
add rsp, 0x38
ret
mov qword [rsp + 0x40], rbx
mov rbx, qword [0x14008de60]
mov qword [rsp + 0x48], rsi
xor esi, esi
mov qword [rsp + 0x30], rdi
test rbx, rbx
je 0x140064084
nop dword [rax + rax]
mov rax, qword [rbx + 0x20]
lea r9, [rsp + 0x20]
mov r8d, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x18]
movzx edx, byte [rax + 0x3e]
call sub.KERNEL32.dll_VirtualProtect
cmp dword [rbx + 8], esi
jne 0x14006406c
mov rdx, qword [rbx + 0x20]
test rdx, rdx
je 0x14006406c
xorps xmm0, xmm0
mov rcx, rdx
movups xmmword [rdx], xmm0
and rcx, 0xffffffffffff0000
movups xmmword [rdx + 0x10], xmm0
movups xmmword [rdx + 0x20], xmm0
movups xmmword [rdx + 0x30], xmm0
movups xmmword [rdx + 0x40], xmm0
movups xmmword [rdx + 0x50], xmm0
mov rax, qword [rcx + 0x10]
mov qword [rdx + 0x48], rax
mov qword [rcx + 0x10], rdx
mov qword [rbx + 0x20], rsi
mov rdi, qword [rbx]
mov edx, 0x30
mov rcx, rbx
call fcn.140067440
mov rbx, rdi
test rdi, rdi
jne 0x140064010
mov qword [0x14008de60], rsi
call fcn.1400638f0
mov rdi, qword [0x14008de58]
test rdi, rdi
je 0x1400640c1
nop dword [rax]
mov rcx, qword [rdi + 8]
call sub.KERNEL32.dll_ResumeThread
mov rbx, qword [rdi]
mov edx, 0x10
mov rcx, rdi
call fcn.140067440
mov rdi, rbx
test rbx, rbx
jne 0x1400640a0
mov rdi, qword [rsp + 0x30]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov qword [0x14008de58], rsi
mov dword [0x14008de48], esi
mov rsi, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400673e0
add rsp, 0x38
ret

Function at 0x140064100
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14008b180]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp dword [0x14008de48], 0
jne 0x1400641c2
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x14008de48], ecx
jne 0x1400641c2
mov qword [rsp + 0x40], rbx
mov rbx, qword [0x14008de30]
mov qword [rsp + 0x30], rdi
xor edi, edi
mov qword [0x14008de60], rdi
mov qword [0x14008de58], rdi
mov qword [0x14008de50], rdi
test rbx, rbx
je 0x14006419e
nop dword [rax]
nop dword [rax + rax]
lea r9, [rsp + 0x20]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x140064197
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140064170
jmp 0x14006419e
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov dword [0x14008de4c], edi
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400673e0
add rsp, 0x38
ret
mov eax, 0x10dd
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400673e0
add rsp, 0x38
ret
Function at 0x140064780
Capabilities:
Suspend thread

Disassembly:
push rdi
sub rsp, 0x20
mov eax, dword [0x14008de4c]
mov rdi, rcx
test eax, eax
jne 0x140064820
call sub.KERNEL32.dll_GetCurrentThread
cmp rdi, rax
jne 0x1400647a9
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov ecx, 0x10
mov qword [rsp + 0x30], rbx
call fcn.140067450
mov rbx, rax
test rax, rax
jne 0x1400647c5
lea edi, [rax + 8]
jmp 0x1400647e6
mov rcx, rdi
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x140064804
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov edx, 0x10
mov rcx, rbx
call fcn.140067440
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov dword [0x14008de4c], edi
mov qword [0x14008de50], 0
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x14008de58]
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 8], rdi
mov qword [0x14008de58], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400385b0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400385c0]
mov dword [rax], 1
mov rax, qword [0x1400385d0]
mov dword [rax], 1
mov rax, qword [0x140038550]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400385a0]
mov dword [0x14003d00c], 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 [0x140038680]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140038660]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140038500]
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 0x14002cae0
Capabilities:
Parse pe header

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

Function at 0x14002cb10
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 0x14002cb5d
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 0x14002cb54
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14002cb5f
add rax, 0x28
cmp rax, r9
jne 0x14002cb40
xor eax, eax
ret

Function at 0x14002cb60
Capabilities:
Parse pe header

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

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

Function at 0x14002cc80
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x140038550]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14002cce0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14002cce8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14002cce0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x14002cd30
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14002cd27
test rcx, rcx
je 0x14002cce0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x14002cd18
xor eax, eax
ret

Function at 0x14002cd40
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140038550]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14002cda0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14002cda8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14002cda0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x14002cda0
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 0x14002cdf4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14002ce00
add rdx, 0x28
cmp r9, rdx
jne 0x14002cde0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140038550]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x14002ce32
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x14002ce40
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14002ce32
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x14002ce32
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x14002ce32
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 0x14002ce95
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x14002cea8
add rdx, 0x28
cmp rdx, r10
jne 0x14002ce80
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14002ceb7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14002cec7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14002ce9e
test ecx, ecx
jg 0x14002ceb0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001ad3
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, qword [fcn.140013a90]
xor ebx, ebx
mov rdi, rcx
mov rbp, rdx
cmp rbx, rbp
jl 0x140001b2b
mov ecx, 1
call rsi
mov r8d, 1
mov edx, 1
lea rcx, [0x14001611c]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rsi
mov rcx, rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp 0x140014070
mov r12, qword [rdi + rbx*8]
mov ecx, 1
inc rbx
call rsi
xor r8d, r8d
mov rcx, rax
mov rdx, r12
call fcn.140001a33
jmp 0x140001aec

Function at 0x140001c5b
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x140001c7a
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp 0x140014070
jmp qword [sym.imp.msvcrt.dll_fflush]
Function at 0x14000bfed
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
xor eax, eax
xor r15d, r15d
mov qword [rsp + 0xc0], rcx
lea rcx, [0x140036cc0]
mov qword [rsp + 0xc8], rdx
mov edx, 0x20787ebe
mov dword [rsp + 0x6c], eax
call fcn.14000bcf0
mov rcx, rax
call fcn.140005f00
xor edx, edx
xor r9d, r9d
mov r8d, 1
mov rcx, rax
mov rax, qword [0x140037600]
mov qword [rsp + 0x30], rdx
mov edx, 0x80000000
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [rax]
xor edx, edx
mov rcx, rax
mov rdi, rax
mov rax, qword [0x140037610]
call qword [rax]
mov ebp, eax
mov rax, qword [0x140037650]
call qword [rax]
movsxd r8, ebp
xor edx, edx
mov rcx, rax
mov rax, qword [0x140037640]
call qword [rax]
xor ecx, ecx
mov r8d, ebp
lea r9, [rsp + 0x6c]
mov rbx, rax
mov rdx, rax
mov rax, qword [0x140037620]
mov qword [rsp + 0x20], rcx
mov rcx, rdi
call qword [rax]
movsxd r8, dword [rbx + 0x3c]
lea r14, [rbx + r8]
movzx ebp, word [r14 + 0x14]
lea r12, [r14 + 0x18]
mov esi, dword [r14 + 0x88]
add rbp, r12
mov r13, rbp
cmp r15w, word [r14 + 6]
jb 0x14000c111
movsxd rcx, dword [r13 + 0xc]
movsxd r8, esi
movsxd rdx, dword [r13 + 0x14]
xor r12d, r12d
add r8, rbx
sub r8, rcx
lea r15, [r8 + rdx]
movsxd rax, dword [r15 + 0x20]
add rax, rbx
sub rax, rcx
add rax, rdx
mov qword [rsp + 0x50], rax
movsxd rax, dword [r15 + 0x1c]
add rax, rbx
sub rax, rcx
add rax, rdx
mov qword [rsp + 0x48], rax
jmp 0x14000c161
imul eax, r15d, 0x28
movzx edi, word [r14 + 0x14]
mov edx, 8
add rdi, r12
movzx eax, ax
add rdi, rax
mov rcx, rdi
call fcn.14000bfb5
mov edx, 0x5baf851a
lea rcx, [0x140036c90]
mov qword [rsp + 0x48], rax
call fcn.14000bcf0
mov rcx, qword [rsp + 0x48]
mov rdx, rax
call fcn.140005ea4
test al, al
cmovne r13, rdi
inc r15d
jmp 0x14000c0cc
cmp dword [r15 + 0x18], r12d
jle 0x14000c1eb
mov rcx, qword [rsp + 0x50]
mov rdx, r12
inc r12
call fcn.14000b9f5
movsxd rdx, dword [r13 + 0xc]
mov rcx, qword [rsp + 0x48]
movsxd rax, dword [rax]
add rax, rbx
sub rax, rdx
movsxd rdx, dword [r13 + 0x14]
add rax, rdx
mov rdx, r12
mov qword [rsp + 0x58], rax
call fcn.14000b9f5
movsxd r14, dword [rbp + 0xc]
movsxd rdi, dword [rbp + 0x14]
movsxd rsi, dword [rax]
mov rax, qword [0x1400376f0]
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x58]
call qword [rax]
test eax, eax
jne 0x14000c161
add rsi, rbx
mov rcx, qword [0x140015070]
mov eax, 1
mov rbx, rsi
sub rbx, r14
lea rsi, [rbx + rdi]
mov rdi, qword [rsp + 0xc8]
rep movsb byte [rdi], byte [rsi]
jmp 0x14000c1ed
xor eax, eax
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret