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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
xorps xmm0, xmm0
mov qword [rsp + 0x78], rbp
movups xmmword [rcx], xmm0
xor eax, eax
mov qword [rsp + 0x28], r12
mov qword [rcx + 0x10], rax
mov r14, rdx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor ebx, ebx
mov rsi, 0xffffffffffffffff
mov dword [rsp + 0x70], ebx
mov r12, rax
mov ebp, ebx
mov r8d, ebx
test rax, rax
jne 0x1400017de
lea rdx, str.LibInjector
lea rcx, str.__s_:_Couldnt_find_ntdll.dll_base_n
call fcn.140001010
mov ebx, 1
lea rdx, str.LibInjector
lea rcx, str.__s_:_Couldnt_find_location_to_store_lib_path_n
call fcn.140001010
mov r15, qword [rsp + 0x60]
mov r12, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x78]
mov qword [r15], rbx
nop word [rax + rax]
cmp word [r14 + rsi*2 + 2], 0
lea rsi, [rsi + 1]
jne 0x140001710
lea eax, [rsi*2 + 2]
movsxd rcx, eax
mov dword [r15 + 0x10], eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, qword [r15]
mov rcx, rax
movsxd r8, dword [r15 + 0x10]
mov rdx, rbx
mov qword [r15 + 8], rax
call sub.VCRUNTIME140.dll_memcpy
call fcn.1400012b0
shr rbx, 9
movabs rsi, 0x7ffffffff8
and rbx, rsi
lea rdi, [rbx + rax]
mov rcx, rdi
call qword [0x140006080]
or rax, 2
mov rcx, rdi
mov rdx, rax
call qword [0x140006078]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rbx, qword [r15]
mov rdx, r14
movsxd r8, dword [r15 + 0x10]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
call fcn.1400012b0
shr rbx, 9
and rbx, rsi
lea rdi, [rbx + rax]
mov rcx, rdi
call qword [0x140006080]
or rax, 2
mov rcx, rdi
xor rax, 2
mov rdx, rax
call qword [0x140006078]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, r15
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov eax, _register_thread_local_exe_atexit_callback
cmp word [r12], ax
jne 0x1400016f4
movsxd r15, dword [r12 + 0x3c]
add r15, r12
cmp dword [r15], 0x4550
jne 0x1400016f4
mov qword [rsp + 0x20], r13
movzx edi, bx
movzx r13d, word [r15 + 0x14]
add r13, r15
cmp bx, word [r15 + 6]
jae 0x140001875
nop word [rax + rax]
movzx eax, di
lea rdx, [0x14000457c]
mov r8d, 5
lea rcx, [rax + rax*4]
lea r14, [rcx*8]
lea rcx, [r13 + 0x18]
add rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x140001861
mov ebp, dword [r14 + r13 + 0x24]
mov r8d, dword [r14 + r13 + 0x28]
add rbp, r12
mov dword [rsp + 0x70], r8d
jmp 0x140001866
mov r8d, dword [rsp + 0x70]
inc di
cmp di, word [r15 + 6]
jb 0x140001820
mov r14, qword [rsp + 0x68]
mov r13, qword [rsp + 0x20]
mov edx, ebx
test r8d, r8d
je 0x1400016dc
lea r9, str.KERNEL32.DLL
nop dword [rax]
movsxd rbx, edx
mov rax, rsi
add rbx, rbp
nop dword [rax]
movzx ecx, word [rbx + rax*2 + 2]
cmp cx, word [r9 + rax*2 + 2]
jne 0x1400018c2
add rax, 2
cmp rax, 0xd
je 0x1400018ce
movzx ecx, word [rbx + rax*2]
cmp cx, word [r9 + rax*2]
je 0x1400018a0
inc edx
cmp edx, r8d
jb 0x140001890
jmp 0x1400016dc
cmp rbx, 1
jne 0x1400016f4
jmp 0x1400016e1
Function at 0x1400039d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003a1a
mov ecx, _register_thread_local_exe_atexit_callback
cmp word [rax], cx
jne 0x140003a1a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003a1a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003a1a
cmp dword [rcx + 0x84], 0xe
jbe 0x140003a1a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003a1c
xor al, al
add rsp, 0x28
ret
Function at 0x141089058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1410891df
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 0x141089089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14108906f
add dl, dl
jne 0x141089096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410890f6
xor eax, eax
add dl, dl
jne 0x1410890a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410891ad
add dl, dl
jne 0x1410890b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410890c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410890d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410890dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1410890ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14108907e
mov eax, 1
add dl, dl
jne 0x141089106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141089113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410890fb
sub eax, ebx
mov ebx, 1
jne 0x14108914c
mov ecx, 1
add dl, dl
jne 0x14108912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14108913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141089123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14108907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141089168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141089175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14108915d
cmp eax, 0x7d00
jae 0x14108919b
cmp eax, 0x500
jb 0x141089196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14108907e
cmp eax, 0x7f
ja 0x14108919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14108907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1410891d2
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 0x14108907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140009860]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140009870]
mov dword [rax], 1
mov rax, qword [0x140009880]
mov dword [rax], 1
mov rax, qword [0x1400097f0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140009850]
mov dword [0x14000d00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140009940]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140009920]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400097d0]
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 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x1400098b0]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x1400098c0]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x14000d008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x140009820]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call dbg._pei386_runtime_relocator
mov rcx, qword [dbg._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x1400098a0]
lea rcx, [dbg.__mingw_invalidParameterHandler]
mov qword [rdx], rax
call sym._set_invalid_parameter_handler
call dbg._fpreset
mov ebx, dword [0x14000d028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sym.malloc
mov r12, qword [0x14000d020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sym.strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sym.malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sym.memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x14000d020], rbp
call dbg.__main
mov rax, qword [0x140009830]
mov r8, qword [0x14000d018]
mov ecx, dword [0x14000d028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x14000d020]
call sym.main
mov ecx, dword [0x14000d00c]
mov dword [0x14000d010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x14000d008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x1400098c0]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call dbg._amsg_exit
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x1400098f0]
mov rcx, qword [0x1400098e0]
call sym._initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sym._cexit
mov eax, dword [0x14000d010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140009910]
mov rcx, qword [0x140009900]
mov dword [rsi], 1
call sym._initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sym.exit
nop
Function at 0x140001450
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
call dbg.__main
mov rax, qword [section..data]
mov rdx, rax
lea rax, str._s_good_
mov rcx, rax
call sym.printf_char_const__::_
cmp dword [rbp + 0x10], 1
jg 0x1400014a6
mov rax, qword [0x140008010]
mov rdx, rax
lea rax, str._s_usage:_program__PID_
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 1
jmp 0x14000159e
mov rax, qword [rbp + 0x18]
add rax, 8
mov rax, qword [rax]
mov rcx, rax
call sym.atoi
mov dword [0x14000d030], eax
mov edx, dword [0x14000d030]
mov rax, qword [0x140008008]
mov r8d, edx
mov rdx, rax
lea rax, str._s_trying_to_open_handle_to_process___ld_
mov rcx, rax
call sym.printf_char_const__::_
mov eax, dword [0x14000d030]
mov r8d, eax
mov edx, 0
mov ecx, 0x1fffff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [0x14000d038], rax
mov rax, qword [0x14000d038]
test rax, rax
jne 0x140001547
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
mov ecx, dword [0x14000d030]
mov rax, qword [0x140008010]
mov r9d, edx
mov r8d, ecx
mov rdx, rax
lea rax, str._s_couldnt_get_a_handle_to_the_process___ld___error:__ld
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 1
jmp 0x14000159e
mov rax, qword [0x14000d038]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 9
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call rax
mov qword [0x14000d048], rax
mov rax, qword [section..data]
mov r8d, 9
mov rdx, rax
lea rax, str._s_allocated__zu_bytes_with_PAGE_EXECUTE_READWRITE_permissions
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x140001870
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 sym.__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 sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call dbg.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x1400018e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000d0b4]
mov rbx, rcx
test esi, esi
jle 0x140001a10
mov rax, qword [0x14000d0b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000192b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400019b5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001910
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001a32
mov rax, qword [0x14000d0b8]
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 [0x14000d0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a17
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400019ae
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400019c0
add dword [0x14000d0b4], 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 [0x14000d0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400019ae
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 0x140001938
mov rax, qword [0x14000d0b8]
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 0x140001fc0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000d120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d100]
test rbx, rbx
je 0x14000201c
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 rsi, rsi
je 0x140002013
test eax, eax
jne 0x140002013
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001ff8
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 0x140002230
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002248
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002250
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002260
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 0x1400022ad
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 0x1400022a4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400022af
add rax, 0x28
cmp rax, r9
jne 0x140002290
xor eax, eax
ret

Function at 0x1400022b0
Capabilities:
Parse pe header

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

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

Function at 0x1400023d0
Capabilities:
Parse pe header

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

Function at 0x140002410
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400097f0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002430
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002438
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002430
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002480
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002477
test rcx, rcx
je 0x140002430
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002468
xor eax, eax
ret
Function at 0x140002490
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x1400097f0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002582
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002590
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002582
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002582
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002582
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 0x1400025e5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400025f8
add rdx, 0x28
cmp r10, rdx
jne 0x1400025d0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002607
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002617
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400025ee
test ecx, ecx
jg 0x140002600
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14000b373
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov esi, edx
mov rdi, rcx
mov eax, edx
shr eax, 4
inc eax
movzx edx, ax
mov r8d, 6
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14000b3ad
mov rcx, rdi
mov rdx, rax
mov r8d, esi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14000b442
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x14000b442
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov edi, r8d
mov rbx, rdx
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000b4bf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x14000b4bf
mov rsi, rax
mov rcx, r14
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
setne cl
and edi, 0xf
je 0x14000b4af
test eax, eax
je 0x14000b4af
mov ecx, eax
mov rax, rsi
add rax, rcx
dec edi
movzx ecx, word [rsi]
lea rsi, [rsi + rcx*2]
add rsi, 2
cmp rsi, rax
setb cl
add edi, 0xffffffff
jae 0x14000b4af
cmp rsi, rax
jb 0x14000b494
test cl, cl
je 0x14000b4bf
xor eax, eax
cmp word [rsi], 0
cmovne rax, rsi
jmp 0x14000b4c1
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14000b58c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CDialog.virtual_720
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov qword [rcx + 0xf0], rdx
mov rbp, r8
mov rdi, rdx
mov rbx, rcx
cmp rdx, 0x10000
jae 0x1400209a3
cmp dword [rcx + 0xe8], 0
jne 0x1400209a3
movzx eax, dx
mov dword [rcx + 0xe8], eax
call fcn.140023ca4
mov r8d, 5
mov rdx, rdi
mov rsi, qword [rax + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1400209e7
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400209e7
mov r9, rsi
mov r8, rbp
mov rdx, rax
mov rcx, rbx
call fcn.1400211e0
jmp 0x1400209e9
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret