joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5e2f00
Capabilities:
Parse credit card information

Disassembly:
lea ecx, [rax - 0x61]
cmp cl, 0x19
jbe 0x5e2f18
lea ecx, [rax - 0x41]
cmp cl, 0x19
jbe 0x5e2f18
lea ecx, [rax - 0x30]
cmp cl, 9
ja 0x5e2f20
xor eax, eax
ret
cmp rbx, 3
je 0x5e2f2c
cmp rbx, 4
jne 0x5e2f59
cmp al, 0x2c
ja 0x5e2f46
lea ecx, [rax - 0x21]
cmp cl, 1
jbe 0x5e2f56
cmp al, 0x24
je 0x5e2f56
nop dword [rax]
cmp al, 0x26
jae 0x5e2f56
jmp 0x5e2f59
lea ecx, [rax - 0x3a]
cmp cl, 4
jbe 0x5e2f56
cmp al, 0x5b
je 0x5e2f56
cmp al, 0x5d
jne 0x5e2f59
xor eax, eax
ret
cmp al, 0x2f
ja 0x5e2f92
nop dword [rax]
cmp al, 0x26
ja 0x5e2f71
cmp al, 0x24
je 0x5e2fb1
cmp al, 0x26
je 0x5e2fb1
jmp 0x5e302b
lea ecx, [rax - 0x2b]
cmp cl, 1
jbe 0x5e2fb1
lea ecx, [rax - 0x2d]
nop dword [rax]
cmp cl, 1
jbe 0x5e3028
cmp al, 0x2f
je 0x5e2fb1
jmp 0x5e302b
cmp al, 0x3d
ja 0x5e2fa9
lea ecx, [rax - 0x3a]
cmp cl, 1
jbe 0x5e2fb1
nop
cmp al, 0x3d
je 0x5e2fb1
jmp 0x5e302b
lea ecx, [rax - 0x3f]
cmp cl, 1
ja 0x5e3020
cmp rbx, 2
jg 0x5e2fe7
cmp rbx, 1
je 0x5e2fe1
nop dword [rax]
cmp rbx, 2
jne 0x5e302b
cmp al, 0x2f
je 0x5e2fd2
cmp al, 0x3b
je 0x5e2fd2
cmp al, 0x2c
jne 0x5e2fd9
mov ecx, 1
jmp 0x5e2fde
cmp al, 0x3f
sete cl
mov eax, ecx
ret
cmp al, 0x3f
sete al
ret
cmp rbx, 5
jne 0x5e300a
cmp al, 0x40
je 0x5e2ff9
cmp al, 0x2f
je 0x5e2ff9
cmp al, 0x3f
jne 0x5e3002
mov ecx, 1
nop
jmp 0x5e3007
cmp al, 0x3a
sete cl
mov eax, ecx
ret
cmp rbx, 6
je 0x5e3019
cmp rbx, 7
jne 0x5e302b
xor eax, eax
ret
mov eax, 1
ret
cmp al, 0x5f
je 0x5e3028
cmp al, 0x7e
jne 0x5e302b
xor eax, eax
ret
cmp rbx, 7
jne 0x5e3041
cmp al, 0x21
je 0x5e303d
lea ecx, [rax - 0x28]
cmp cl, 2
ja 0x5e3041
xor eax, eax
nop
ret
mov eax, 1
ret
Function at 0x625d7f
Capabilities:
Hash data using sha256

Disassembly:
push rbp
mov rbp, rsp
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov dword [rax], 0x6a09e667
mov rax, qword [rbp + 0x10]
mov dword [rax + 4], 0xbb67ae85
mov rax, qword [rbp + 0x10]
mov dword [rax + 8], 0x3c6ef372
mov rax, qword [rbp + 0x10]
mov dword [rax + 0xc], 0xa54ff53a
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x10], 0x510e527f
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x14], 0x9b05688c
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x18], 0x1f83d9ab
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x1c], 0x5be0cd19
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x60], 0
nop
pop rbp
ret
Function at 0x62f140
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov qword [0x008ca448], rax
mov rax, qword [0x008ca448]
test rax, rax
jne 0x62f1a7
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 0x3d
mov edx, 1
lea rcx, str.runtime:_failed_to_create_runtime_initialization_wait_event._n
call sym.fwrite
call sym.abort
lea rcx, [0x008ca420]
mov rax, qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call rax
nop
add rsp, 0x20
pop rbp
ret

Function at 0x62f280
Capabilities:
Create thread

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x28], rdx
mov rax, qword [rbp - 0x28]
mov r8, rax
mov edx, 0
mov rcx, qword [rbp - 0x30]
mov rax, qword [sym.imp.msvcrt.dll__beginthread]
call rax
mov qword [rbp - 0x58], rax
cmp qword [rbp - 0x58], 0xffffffffffffffff
jne 0x62f2ea
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov ebx, dword [rax]
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r8d, ebx
lea rdx, [0x0086a4a0]
mov rcx, rax
call sym.fprintf
call sym.abort
nop
add rsp, 0x38
pop rbx
pop rbp
ret

Function at 0x62f392
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
call sym._cgo_maybe_run_preinit
lea rcx, [0x008ca420]
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov dword [0x008ca450], 1
lea rcx, [0x008ca420]
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
mov rax, qword [0x008ca448]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetEvent]
call rax
test eax, eax
jne 0x62f411
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 0x3b
mov edx, 1
lea rcx, str.runtime:_failed_to_signal_runtime_initialization_complete._n
call sym.fwrite
call sym.abort
nop
add rsp, 0x20
pop rbp
ret

Function at 0x62f4a0
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov ecx, 0x18
call sym.malloc
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x62f4ee
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 0x2b
mov edx, 1
lea rcx, str.runtime_cgo:_out_of_memory_in_thread_start_n
call sym.fwrite
call sym.abort
mov rcx, qword [rbp - 8]
mov r8, qword [rbp + 0x10]
mov rax, qword [r8]
mov rdx, qword [r8 + 8]
mov qword [rcx], rax
mov qword [rcx + 8], rdx
mov rax, qword [r8 + 0x10]
mov qword [rcx + 0x10], rax
mov rax, qword [rbp - 8]
mov rcx, rax
call sym._cgo_sys_thread_start
nop
add rsp, 0x30
pop rbp
ret
Function at 0x62f542
Capabilities:
Create thread

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov qword [rbp - 0x30], rcx
mov r8, qword [rbp - 0x30]
mov edx, 0
lea rcx, [sym.threadentry]
mov rax, qword [sym.imp.msvcrt.dll__beginthread]
call rax
mov qword [rbp - 0x58], rax
cmp qword [rbp - 0x58], 0xffffffffffffffff
jne 0x62f5a8
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov ebx, dword [rax]
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r8d, ebx
lea rdx, str.runtime:_failed_to_create_new_OS_thread___d__n
mov rcx, rax
call sym.fprintf
call sym.abort
nop
add rsp, 0x38
pop rbx
pop rbp
ret

Function at 0x62fae0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x62fb50
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x008caa54]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x62fcf8
mov rax, qword [0x008caa58]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x62fb9c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x62fc27
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x62fb80
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x62fd32
mov rax, qword [0x008caa58]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x008caa58]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x62fd41
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x62fc20
sub eax, 4
and eax, 0xfffffffb
jne 0x62fcb0
add dword [0x008caa54], 1
cmp ebx, 8
jae 0x62fc58
test bl, 4
jne 0x62fd00
test ebx, ebx
je 0x62fc49
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x62fd20
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x62fc49
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x62fc8a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x008caa58]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x62fc20
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 edi, edi
jmp 0x62fba7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x62fc49
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x62fc49
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
mov rax, qword [0x008caa58]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
nop
nop dword [rax]
Function at 0x630520
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x008cad40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x008cad20]
test rbx, rbx
je 0x630574
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x63056b
test r12, r12
je 0x63056b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x630550
lea rcx, [0x008cad40]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x6307a0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x6307b0
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x6307c0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x630805
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x6307fc
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x630807
add rax, 0x28
cmp rax, r9
jne 0x6307e8
xor eax, eax
ret

Function at 0x6308b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x0086a910]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x630929
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x630929
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x630926
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x63091d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x630929
add r8, 0x28
cmp r8, r9
jne 0x630908
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x630a10
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x0086a910]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x630a7f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x630a7f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x630a7d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x630a74
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x630a88
add rax, 0x28
cmp rax, r9
jne 0x630a60
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x630aa0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x0086a910]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x630b18
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x630b18
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x630b18
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x630b18
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x630b0c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x630b20
add rdx, 0x28
cmp rdx, r10
jne 0x630af8
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x630b30
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x630b3e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x630b15
test r8d, r8d
jg 0x630b28
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x14000883c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140008886
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140008886
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140008886
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140008886
cmp dword [rcx + 0x84], 0xe
jbe 0x140008886
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140008888
xor al, al
add rsp, 0x28
ret
Function at 0x14000101e
Capabilities:
Terminate process

Disassembly:
jmp 0x14001dd78
push rbx
sub rsp, 0x20
test rcx, rcx
lea rbx, str.corrupt_pack_file_or_internal_error
mov rax, rdx
cmovne rbx, rcx
test rdx, rdx
jne 0x14001ddc0
call fcn.14000102d
test rax, rax
jne 0x14001ddc0
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.Error:_unpacker:__s_n
mov rcx, rax
call fcn.140001384
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp fcn.1400012c1

Function at 0x140001064
Capabilities:
Terminate process

Disassembly:
jmp 0x14001f9dc
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ecx, 1
call fcn.1400017a3
test al, al
je 0x14001f8a3
xor sil, sil
mov byte [rsp + 0x20], sil
call fcn.1400014b0
mov bl, al
mov ecx, dword [0x140032b38]
cmp ecx, 1
je 0x14001f8ae
test ecx, ecx
jne 0x14001f7d9
mov dword [0x140032b38], 1
lea rdx, [0x140025660]
lea rcx, [0x140025330]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
test eax, eax
je 0x14001f7ba
mov eax, 0xff
jmp 0x14001f893
lea rdx, [0x140025220]
lea rcx, [section..rdata]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0x140032b38], 2
jmp 0x14001f7e1
mov sil, 1
mov byte [rsp + 0x20], sil
mov cl, bl
call fcn.1400018ac
call fcn.14000141a
mov rbx, rax
cmp qword [rax], 0
je 0x14001f814
mov rcx, rax
call fcn.140001578
test al, al
je 0x14001f814
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [rbx]
call qword [0x140037010]
call fcn.1400014a6
mov rbx, rax
cmp qword [rax], 0
je 0x14001f836
mov rcx, rax
call fcn.140001578
test al, al
je 0x14001f836
mov rcx, qword [rbx]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argv
mov rdi, qword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argc
mov rbx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_initial_narrow_environment
mov r8, rax
mov rdx, rdi
mov ecx, dword [rbx]
call fcn.14000135c
mov ebx, eax
call fcn.1400016f4
test al, al
je 0x14001f8b8
test sil, sil
jne 0x14001f86d
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
xor edx, edx
mov cl, 1
call fcn.14000171c
mov eax, ebx
jmp 0x14001f893
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 7
call fcn.140001573
nop
mov ecx, 7
call fcn.140001573
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
nop
int3
sub rsp, 0x28
call fcn.1400c6000
add rsp, 0x28
jmp 0x14001f74c

Function at 0x140001073
Capabilities:
Terminate process

Disassembly:
jmp 0x140014eac
push rbx
sub rsp, 0x20
mov ebx, edx
mov edx, 2
call fcn.1400010b9
movzx ecx, bx
mov rdx, rax
cmp ebx, ecx
je 0x140014edb
xor edx, edx
lea rcx, str.Internal_buffer_overflow
add rsp, 0x20
pop rbx
jmp fcn.14000101e
mov eax, ebx
mov byte [rdx + 1], bl
sar eax, 8
mov byte [rdx], al
add rsp, 0x20
pop rbx
ret
Function at 0x14001c7d8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
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 rsi, rcx
cmp rdx, 0x10000
jae 0x14001c817
cmp dword [rcx + 0xe8], 0
jne 0x14001c817
movzx eax, di
mov dword [rcx + 0xe8], eax
call fcn.140031cac
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.14001cb9c
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14001c874
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14, r8
mov rbx, rdx
mov r15, rcx
xor edi, edi
call fcn.140031cac
lea r8d, [rdi + 5]
mov rdx, rbx
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x14001c8d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov r9, rbp
mov r8, r14
mov rdx, rdi
mov rcx, r15
call fcn.14001c908
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x14001ddb4
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x78
test rdx, rdx
je 0x14001de1c
mov r10, qword [rcx + 0x10]
test r10, r10
je 0x14001de06
cmp qword [rcx + 0x18], 0
jne 0x14001de01
mov eax, dword [rcx + 0xc]
cmp eax, dword [rcx + 0x30]
jae 0x14001de22
mov qword [rsp + 0x58], rdx
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0x50
mov edx, eax
mov dword [rsp + 0x24], 0x40
mov r8d, 1
mov rcx, qword [r10 + 8]
call qword [sym.imp.USER32.dll_SetMenuItemInfoW]
add rsp, 0x78
ret
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x14001de1c
mov rcx, qword [rcx + 0x40]
add rsp, 0x78
jmp fcn.14003a6c4
call fcn.14002d1f8
int3
call fcn.14002d1f8
int3
Function at 0x14001f858
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx + 0xb0], 0
mov edi, r9d
mov rbx, r8
mov rax, rdx
je 0x14001f8d3
xor r8d, r8d
call fcn.14001fb20
mov rsi, rax
test rax, rax
je 0x14001f8cf
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14001f8cf
mov eax, dword [rsp + 0x30]
jmp 0x14001f8e9
mov eax, edi
jmp 0x14001f8e9
mov r9, qword [rcx + 0xd8]
mov r8d, edi
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140020b30
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140020b97
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140020bab
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140020bab
mov rcx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call qword [case.0x14006074e.0]
jmp 0x140020bb0
cmp dword [rcx + 8], 0
je 0x140020bab
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x140020bb0
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1400247fc
Capabilities:
Extract resource via kernel32 functions

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 r14
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
mov rsi, rdx
mov r14, rcx
test rdx, rdx
je 0x140024864
call fcn.140031cac
mov r8d, 0xf0
mov rdx, rsi
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140024864
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x140024886
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, r14
call fcn.1400e0430
mov esi, eax
test rdi, rdi
je 0x140024884
test rbx, rbx
je 0x140024884
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140025f54
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x14002602c
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x14002602c
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14002602c
test rsi, rsi
je 0x14002602c
xor r15d, r15d
xor ebp, ebp
xor edi, edi
call fcn.140031cac
lea r8, str.AFX_DIALOG_LAYOUT
mov rdx, rsi
mov r14, qword [rax + 0x18]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x140025ff9
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rsi
mov rcx, r14
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x14002602c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
mov r8d, r15d
mov rdx, rbp
mov rcx, rbx
call fcn.1400e92b0
mov esi, eax
test rbp, rbp
je 0x14002601c
test rdi, rdi
je 0x14002601c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
test esi, esi
je 0x140026028
mov rcx, rbx
call fcn.140025b40
mov eax, esi
jmp 0x14002602e
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x140027064
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rbx, r8
mov rcx, qword [rcx + 0x40]
call fcn.14003aa28
mov rdi, rax
test rax, rax
je 0x1400270e0
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov esi, eax
test rbx, rbx
je 0x1400270db
cmp dword [rbx], 0x40
jb 0x1400270db
mov rcx, qword [rbp + 0x40]
xor r9d, r9d
or dword [rbx + 4], 1
xor r8d, r8d
or qword [rbx + 0x30], 0xffffffffffffffff
mov edx, 0x87
mov qword [rbx + 8], rcx
mov rcx, rdi
mov qword [rbx + 0x10], rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x1400270db
or dword [rbx + 4], 0x80000002
mov rax, rsi
jmp 0x1400270e4
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret