joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140088480
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.14006f6e0
sub rsp, rax
mov rax, qword [0x1400fb028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140081148
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400884cf
mov rax, rbp
jmp 0x1400885d7
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 + 0x10a6d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140092678
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x10a6d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400885d3
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 0x1400885d3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140092678
test rax, rax
js 0x1400885d3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400885d3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400885c5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400885c5
cmp byte [rcx], 0xd
jne 0x1400885ab
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400885ba
cmp byte [rcx + 1], 0xa
jne 0x1400885ba
inc rcx
jmp 0x1400885ba
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xfb310]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14008858d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400885d7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14006f740
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 0x14008b190
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14008b1b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14008b1b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140095198
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.14008ed14
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 0x140095239
cmp ebx, dword [rsp + 0x30]
je 0x140095232
test esi, esi
je 0x140095232
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14009520d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14009521a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400951f7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14009521e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14009523b
mov eax, 1
jmp 0x14009523b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140096184
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 0x14009620b
mov rsi, rbx
cmp word [rax], bp
je 0x1400961ca
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400961b4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400961b0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140031260
mov rdi, rax
test rax, rax
je 0x1400961f8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400711b0
mov rbp, rdi
xor ecx, ecx
call fcn.140058d80
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 0x1400987a0
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400fb028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400987ea
call fcn.140080d70
mov dword [rax], 0xf
call fcn.140080d50
mov dword [rax], 0xd
call fcn.140081bd8
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14006f740
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400987f5
lea eax, [rbx + 1]
jmp 0x1400987d7
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400987d5
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400987d7

Function at 0x140098dc0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140098dd6
mov al, 1
jmp 0x140098e36
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140098de7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140098e34
mov ecx, dword [rcx + 0x18]
nop
call fcn.140081198
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140098e34
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140098e34
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140098e34
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140098e36
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400bbe70
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x1400fb028]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x14010c9d8], 0
je 0x1400bbeb6
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.14006f740
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x14010c9b0]
test rdi, rdi
je 0x1400bbf57
test byte [0x1400fd1c8], 1
je 0x1400bbe99
cmp byte [rdi + 0x17], 0
jns 0x1400bbed8
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14010c9d8], rax
inc rax
cmp rax, 1
ja 0x1400bbe99
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140071860
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x1400bc019
xor esi, esi
jmp 0x1400bbe99
mov ecx, 0x18
call fcn.14006e2b4
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140071860
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x1400ddf00]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.1400a0670
movzx eax, byte [rdi + 0x17]
mov rcx, rdi
test al, al
jns 0x1400bbfbf
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
test rax, rax
jne 0x1400bbfe5
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.14004ca80
mov qword [0x14010c9b0], rdi
jmp 0x1400bbec6
add rax, rax
test rax, rax
je 0x1400bbfc4
lea rdx, [rax - 2]
cmp word [rcx + rax - 2], 0x5c
mov rax, rdx
jne 0x1400bbfe8
cmp rdx, 0xfffffffffffffffe
je 0x1400bbfc4
sar rdx, 1
inc rdx
mov rcx, rdi
mov r8, 0xffffffffffffffff
call fcn.14004a180
jmp 0x1400bbfc4
mov rcx, qword [0x14010c9b0]
lea rdx, [rsp + 0x40]
call fcn.140029ef0
mov rcx, qword [0x14010c9b0]
call fcn.1400b6f90
cmp word [rax], 0x5c
je 0x1400bc055
mov rcx, qword [0x14010c9b0]
lea rdx, [0x1400e0388]
mov r8d, 1
call fcn.14004ca80
mov rcx, qword [0x14010c9b0]
lea rdx, str.debug.log
mov r8d, 9
call fcn.14004ca80
mov rcx, qword [0x14010c9b0]
cmp byte [rcx + 0x17], 0
jns 0x1400bc07e
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14010c9d8], rax
inc rax
cmp rax, 1
ja 0x1400bbe99
mov qword [0x14010c9d8], 0
jmp 0x1400bbf50
Function at 0x1400cd9d0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rdx, rdx
je 0x1400cd9e3
cmp dword [0x140111238], ecx
jle 0x1400cd9ea
add rsp, 0x28
pop rdi
pop rsi
ret
mov rsi, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rdi, eax
mov rcx, rsi
mov rdx, rdi
call fcn.1400cda30
test edi, edi
je 0x1400cd9e3
cmp byte [rsi + rdi - 1], 0xa
je 0x1400cd9e3
lea rcx, [0x1400de927]
mov edx, 1
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400cda30

Function at 0x1400cda30
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1400fb028]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
lea r14, [rsp + 0x34]
mov r15, qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rdi, rsi
jae 0x1400cdaa7
mov dword [rsp + 0x34], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r15
mov ecx, dword [rsp + 0x34]
test eax, eax
cmovne eax, ecx
je 0x1400cdaa7
add rdi, rax
test ecx, ecx
jne 0x1400cda6d
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14006f740
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x180002230
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x18001c008]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov esi, edx
mov dword [rsp + 0x30], 0x6165682e
mov rbp, rcx
lea rdx, [0x180019740]
mov rcx, r8
mov r14, r9
mov r12b, 0x72
xor r15d, r15d
call fcn.180004bd0
mov rbx, rax
test rax, rax
je 0x18000236a
xor edx, edx
mov qword [rsp + 0x90], rdi
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.180004ecc
test eax, eax
jne 0x180002358
mov rcx, rbx
call fcn.180004b0c
movsxd rdi, eax
cmp rdi, 0x15
jbe 0x180002358
cmp edi, 0x12c00000
jg 0x180002358
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.180004ecc
test eax, eax
jne 0x180002358
mov r9, rbx
lea edx, [rax + 1]
lea r8d, [rax + 5]
lea rcx, [rsp + 0x38]
call fcn.180005148
cmp rax, 5
jne 0x180002358
mov eax, dword [rsp + 0x30]
cmp eax, dword [rsp + 0x38]
jne 0x180002358
cmp r12b, byte [rsp + 0x3c]
jne 0x180002358
mov edx, 1
lea rcx, [rsp + 0x40]
mov r9, rbx
lea r8d, [rdx + 0xf]
call fcn.180005148
cmp rax, 0x10
jne 0x180002358
lea eax, [rdi - 0x15]
movsxd rcx, eax
mov dword [r14], eax
call fcn.180005210
mov rdi, rax
test rax, rax
je 0x180002358
movsxd r8, dword [r14]
mov r9, rbx
mov edx, 1
mov rcx, rax
call fcn.180005148
mov rcx, rax
movsxd rax, dword [r14]
cmp rcx, rax
je 0x18000238c
mov rcx, rdi
call fcn.180004ed4
mov rcx, rbx
call fcn.180004c60
xor eax, eax
mov rdi, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180002400
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop r15
pop r14
pop r12
pop rsi
pop rbp
ret
test rbp, rbp
je 0x1800023d6
cmp sil, 0x20
jne 0x1800023d6
mov ecx, 0x120
call fcn.180005210
mov rdx, rbp
mov rcx, rax
mov rsi, rax
call section..text
test rsi, rsi
je 0x1800023d6
mov eax, dword [r14]
lea rdx, [rsp + 0x40]
mov r9, rdi
mov dword [rsp + 0x20], eax
mov rcx, rsi
call fcn.180001ef0
mov rcx, rsi
mov r15, rax
call fcn.180004ed4
mov rcx, rdi
call fcn.180004ed4
mov rcx, rbx
call fcn.180004c60
mov rax, r15
jmp 0x180002362

Function at 0x18000ff30
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18000ff58
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18000ff58
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140003974
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
call qword [sym.imp.USER32.dll_GetFocus]
mov rbx, rax
test rax, rax
je 0x140003a40
mov ecx, 9
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x140003a40
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
js 0x140003a40
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
js 0x140003a40
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
js 0x140003a40
lea rdx, [rsp + 0x20]
mov r8d, 0x10
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetClassNameW]
lea rdx, str.RichE
lea rcx, [rsp + 0x20]
mov r8d, 5
call sub.msvcrt.dll_wcsncmp
test eax, eax
je 0x140003a21
lea rdx, str.RICHE
lea rcx, [rsp + 0x20]
mov r8d, 4
call sub.msvcrt.dll_wcsncmp
test eax, eax
jne 0x140003a40
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xb
jae 0x140003aea
test rdi, rdi
je 0x140003a7f
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
js 0x140003a72
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
js 0x140003a72
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x140003a7f
mov edx, 1
mov rcx, rdi
call fcn.140003af8
test rbx, rbx
je 0x140003a99
lea rdx, str.PB_Hotkey
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetPropW]
test rax, rax
jne 0x140003aea
lea rdx, str.PB_WindowID
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetPropW]
mov rbx, rax
test rax, rax
je 0x140003aea
lea rdx, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x140003aea
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x58], eax
jne 0x140003aea
mov rcx, qword [0x1400149c0]
lea rdx, [rbx - 1]
call fcn.14000d584
test rax, rax
je 0x140003aea
mov rax, qword [rax + 0x10]
jmp 0x140003aec
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x14000415c
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140014b40], eax
add rsp, 0x28
ret
Function at 0x2fc4ca780
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 0x2fc4cb182
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ef108]
test eax, eax
je 0x2fc4cb21a
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ef110]
mov qword [rbp - 8], rax
jmp 0x2fc4cb1fe
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 0x2fc4cb1f2
cmp qword [rbp - 0x10], 0
je 0x2fc4cb1f2
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 0x2fc4cb1b8
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cb21b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cb320
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 0x2fc4cb348
mov eax, 0
jmp 0x2fc4cb396
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 0x2fc4cb371
mov eax, 0
jmp 0x2fc4cb396
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 0x2fc4cb391
mov eax, 0
jmp 0x2fc4cb396
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cb39c
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 0x2fc4cb41a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cb411
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 0x2fc4cb411
mov rax, qword [rbp - 8]
jmp 0x2fc4cb42f
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 0x2fc4cb3e4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x416de0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x416f6b
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.004352a0
xorps xmm15, xmm15
mov r14, qword [0x0063f190]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x416e45
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x416e54
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x416e73
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x416e83
cmp rbx, 0x1000
jae 0x416e4b
jmp 0x416eed
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x416e95
xor edx, edx
jmp 0x416ee4
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.004352a0
xorps xmm15, xmm15
mov r14, qword [0x0063f190]
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 0x416e79
jmp 0x416e68
call fcn.0046a6a0
xorps xmm15, xmm15
mov r14, qword [0x0063f190]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00439780
lea rax, [0x004eecca]
mov ebx, 0x18
nop dword [rax]
call fcn.0043a000
mov rax, qword [rsp + 0x38]
call fcn.00439d40
lea rax, [0x004ef312]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.0043a000
mov rax, qword [rsp + 0x30]
call fcn.00439d40
call fcn.004399c0
call fcn.004397e0
lea rax, [0x004f1de2]
mov ebx, 0x21
call fcn.00437ce0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00466f40
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00416de0
Function at 0x416fa0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4171c6
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.00435320
xorps xmm15, xmm15
mov r14, qword [0x0063f190]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x417013
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x417022
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x417045
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x417055
cmp rbx, 0x1000
jae 0x417019
nop
jmp 0x4170d8
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 0x41706d
xor esi, esi
jmp 0x4170ca
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.00435320
xorps xmm15, xmm15
mov r14, qword [0x0063f190]
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 0x41704b
jmp 0x417036
call fcn.0046a6a0
xorps xmm15, xmm15
mov r14, qword [0x0063f190]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x417160
nop dword [rax + rax]
call fcn.00439780
lea rax, [0x004ef32b]
mov ebx, 0x19
call fcn.0043a000
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call fcn.00439d40
lea rax, [0x004ef312]
mov ebx, 0x19
call fcn.0043a000
mov eax, dword [rsp + 0x34]
call fcn.00439d40
nop
call fcn.004399c0
call fcn.004397e0
lea rax, [0x004eac4a]
mov ebx, 0xd
call fcn.00437ce0
nop dword [rax + rax]
cmp eax, 0x5af
je 0x417100
call fcn.00439780
lea rax, [0x004ef32b]
mov ebx, 0x19
call fcn.0043a000
mov rax, qword [rsp + 0x38]
call fcn.00439d40
lea rax, [0x004ef312]
mov ebx, 0x19
call fcn.0043a000
mov eax, dword [rsp + 0x34]
nop dword [rax]
call fcn.00439d40
call fcn.004399c0
call fcn.004397e0
lea rax, [0x004f15a4]
mov ebx, 0x1f
nop dword [rax + rax]
call fcn.00437ce0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00466f40
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp fcn.00416fa0