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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14003be90]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14003bea0]
mov dword [rax], 1
mov rax, qword [0x14003beb0]
mov dword [rax], 1
mov rax, qword [0x14003be40]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14003be80]
mov dword [0x14003f00c], 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 [0x14003bf60]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14003bf40]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14003bdf0]
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 0x140001cdc
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x170
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x100], rcx
mov qword [rbp + 0x108], rdx
mov dword [rbp - 0x60], 0x130
mov dword [rbp + 0xec], 0
mov qword [rbp + 0xe0], 0
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0xd8], rax
cmp qword [rbp + 0xd8], 0
jne 0x140001d40
mov eax, 0
jmp 0x140001e10
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call sym.Process32First
test eax, eax
je 0x140001e0b
lea rax, [rbp - 0x60]
add rax, 0x2c
lea rdx, str.Notepad.exe
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x140001df0
lea rax, str._Info__Test5
mov rcx, rax
call sym.printf
mov edx, dword [rbp - 0x58]
mov rax, qword [rbp + 0x108]
mov dword [rax], edx
mov rax, qword [rbp + 0x108]
mov edx, dword [rax]
mov rax, qword [rbp + 0x100]
mov r8d, edx
mov rdx, rax
lea rax, str._Info___s_Process:__lu_n
mov rcx, rax
call sym.printf
mov rax, qword [rbp + 0x108]
mov eax, dword [rax]
mov r8d, eax
mov edx, 0
mov ecx, 0x1fffff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0xd0], rax
cmp qword [rbp + 0xd0], 0
je 0x140001def
mov rax, qword [rbp + 0xd0]
jmp 0x140001e10
nop
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call sym.Process32Next
test eax, eax
jne 0x140001d5b
mov eax, 0
add rsp, 0x170
pop rbp
ret

Function at 0x140001e19
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov dword [rbp - 0xc], 0
mov rax, qword [rbp + 0x18]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
and rax, 0xfffffffffff70000
sub rax, 0x70000000
mov qword [rbp - 8], rax
jmp 0x140001e9a
mov eax, dword [rbp + 0x20]
movsxd rcx, eax
mov rdx, qword [rbp - 8]
mov rax, qword [rbp + 0x10]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call rax
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
je 0x140001e91
mov dword [rbp - 0xc], 1
jmp 0x140001eaa
nop
add qword [rbp - 8], 0x10000
mov rax, qword [rbp - 0x18]
add rax, 0x70000000
cmp qword [rbp - 8], rax
jb 0x140001e52
cmp dword [rbp - 0xc], 1
jne 0x140001ecc
mov rax, qword [rbp - 8]
mov rdx, rax
lea rax, str._____Found_Memory_Hole:__p_n
mov rcx, rax
call sym.printf
mov rax, qword [rbp - 8]
jmp 0x140001ed1
mov eax, 0
add rsp, 0x50
pop rbp
ret

Function at 0x1400021e0
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 0x140002250
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14003f0a4]
mov rbx, rcx
test esi, esi
jle 0x140002380
mov rax, qword [0x14003f0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000229b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002325
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002280
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400023a2
mov rax, qword [0x14003f0a8]
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 [0x14003f0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002387
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000231e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002330
add dword [0x14003f0a4], 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 [0x14003f0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000231e
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 0x1400022a8
mov rax, qword [0x14003f0a8]
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 0x140002910
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14003f100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14003f0e0]
test rbx, rbx
je 0x14000296c
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 0x140002963
test rsi, rsi
je 0x140002963
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002948
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 0x140002b80
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002b98
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002ba0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002bb0
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 0x140002bfd
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 0x140002bf4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140002bff
add rax, 0x28
cmp rax, r9
jne 0x140002be0
xor eax, eax
ret

Function at 0x140002c00
Capabilities:
Parse pe header

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

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

Function at 0x140002d20
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14003be40]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140002d3f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002d48
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002d3f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002d60
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14003be40]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002d80
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002d88
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002d80
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002dd0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002dc7
test rcx, rcx
je 0x140002d80
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002db8
xor eax, eax
ret
Function at 0x140002de0
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x14003be40]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002ed2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002ee0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002ed2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002ed2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002ed2
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 0x140002f35
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002f48
add rdx, 0x28
cmp rdx, r10
jne 0x140002f20
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002f57
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002f67
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002f3e
test ecx, ecx
jg 0x140002f50
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1402dd2b0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1402dd2bd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1402dd2cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1402dd2b5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x1402dd2e5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1402dd2d2
sub eax, 3
jb 0x1402dd2ff
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1402dd336
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x1402dd326
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1402dd324
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1402dd313
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.1402dd272
jmp 0x1402dd2bd
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x2db000]
mov eax, dword [rdi]
or eax, eax
je 0x1402dd392
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x2dd1dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1402dd342
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1402dd38c
mov qword [rbx], rax
add rbx, 8
jmp 0x1402dd362
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1402dd3d6
cmp al, 0xef
ja 0x1402dd3be
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1402dd39e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1402dd3ad
mov eax, dword [rdi]
add rdi, 4
jmp 0x1402dd3ad
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1402dd42a
sub rsp, 0xffffffffffffff80
jmp 0x1401c9fa8
Function at 0x2fc4d2f90
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d3992
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f6108]
test eax, eax
je 0x2fc4d3a2a
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f6110]
mov qword [rbp - 8], rax
jmp 0x2fc4d3a0e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d3a02
cmp qword [rbp - 0x10], 0
je 0x2fc4d3a02
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d39c8
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d3a2b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d3b30
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d3b58
mov eax, 0
jmp 0x2fc4d3ba6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d3b81
mov eax, 0
jmp 0x2fc4d3ba6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d3ba1
mov eax, 0
jmp 0x2fc4d3ba6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d3bac
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d3c2a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d3c21
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d3c21
mov rax, qword [rbp - 8]
jmp 0x2fc4d3c3f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d3bf4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140a60058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140a601df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140a60089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a6006f
add dl, dl
jne 0x140a60096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a600f6
xor eax, eax
add dl, dl
jne 0x140a600a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a601ad
add dl, dl
jne 0x140a600b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a600c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a600d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a600dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140a600ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140a6007e
mov eax, 1
add dl, dl
jne 0x140a60106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a60113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a600fb
sub eax, ebx
mov ebx, 1
jne 0x140a6014c
mov ecx, 1
add dl, dl
jne 0x140a6012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a6013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a60123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a6007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140a60168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a60175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a6015d
cmp eax, 0x7d00
jae 0x140a6019b
cmp eax, 0x500
jb 0x140a60196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a6007e
cmp eax, 0x7f
ja 0x140a6019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a6007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140a601d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140a6007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001270
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x460
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor r12d, r12d
mov rdi, rcx
mov r8, rcx
mov dword [rsp + 0x28], r12d
mov rsi, 0xffffffffffffffff
mov qword [rsp + 0x20], r12
mov r9d, esi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
mov eax, 2
mul rbx
cmovo rax, rsi
mov rcx, rax
call fcn.140002070
mov r9d, esi
mov dword [rsp + 0x28], ebx
mov r8, rdi
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0xfde9
mov r14, rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, qword gs:[0x60]
mov rdx, qword [rcx + 0x18]
mov rsi, qword [rdx + 0x20]
test rsi, rsi
je 0x1400013ed
cmp word [rsi + 0x48], r12w
je 0x1400013ed
mov rbp, qword [rsi + 0x50]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, r14
movsxd rdi, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r15, eax
cmp edi, 0x104
jge 0x1400013e1
cmp r15d, 0x104
jge 0x1400013e1
mov rbx, r12
test rdi, rdi
jle 0x14000137b
nop dword [rax]
movzx ecx, word [rbp + rbx*2]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov word [rsp + rbx*2 + 0x240], ax
inc rbx
cmp rbx, rdi
jl 0x140001360
add rbx, rbx
cmp rbx, 0x208
jae 0x14000142d
mov word [rsp + rbx + 0x240], r12w
mov rbx, r12
test r15d, r15d
jle 0x1400013b8
nop dword [rax]
movzx ecx, word [r14 + rbx*2]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov word [rsp + rbx*2 + 0x30], ax
inc rbx
cmp rbx, r15
jl 0x1400013a0
add rbx, rbx
cmp rbx, 0x208
jae 0x14000142d
lea rdx, [rsp + 0x30]
mov word [rsp + rbx + 0x30], r12w
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140001427
mov rsi, qword [rsi]
test rsi, rsi
jne 0x140001315
lea rcx, str.___Module_not_found_in_PEB
call fcn.140001010
xor eax, eax
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140001d70
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov rax, qword [rsi + 0x20]
jmp 0x1400013fb
call fcn.140001e98
int3