joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400166f0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140026878], rbx
je 0x14001673c
cmp rax, rbx
jne 0x14001672f
mov ebx, 1
mov esi, ebx
jmp 0x140016741
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140016714
mov ebx, 1
mov eax, dword [0x140026880]
cmp eax, ebx
jne 0x140016757
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1400167bc
mov eax, dword [0x140026880]
test eax, eax
jne 0x1400167b6
mov dword [0x140026880], ebx
lea r15, [0x14001a6f0]
lea rdi, [0x14001a6d8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x1400167a8
test eax, eax
jne 0x1400167ac
cmp qword [rdi], 0
je 0x14001679d
mov rax, qword [rdi]
mov rcx, qword [case.0x140006774.0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14001677e
test eax, eax
je 0x1400167bc
mov eax, 0xff
jmp 0x140016898
mov dword [0x140026178], ebx
mov eax, dword [0x140026880]
cmp eax, ebx
jne 0x1400167e3
lea rdx, [0x14001a6d0]
lea rcx, [0x14001a618]
call sub.msvcrt.dll__initterm
mov dword [0x140026880], 2
test esi, esi
jne 0x1400167f0
xor eax, eax
xchg qword [0x140026878], rax
cmp qword [0x140026898], 0
je 0x140016824
lea rcx, [0x140026898]
call fcn.140017310
test eax, eax
je 0x140016824
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140026898]
mov r9, qword [case.0x140006774.0]
call r9
mov r8, qword [0x140026190]
mov rdx, qword [0x140026188]
mov ecx, dword [0x140026180]
call fcn.140002c70
mov dword [0x140026174], eax
cmp dword [0x140026198], 0
jne 0x140016854
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140026178], 0
jne 0x140016869
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140026174]
jmp 0x140016898
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.14019d000
add rsp, 0x28
jmp 0x1400166f0

Function at 0x140016e34
Capabilities:
Print debug messages

Disassembly:
jmp 0x140016e40
push rbx
sub rsp, 0x540
mov rax, qword [0x140026110]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140016ebd
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x140016edd
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.1400168f0
add rsp, 0x540
pop rbx
ret
Function at 0x140001710
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.140002560
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x140001780
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007094]
test esi, esi
mov rbx, rcx
jle 0x1400018b0
mov rax, qword [0x140007098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400017cb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001855
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400017b0
mov rcx, rbx
call fcn.1400021f0
test rax, rax
mov rdi, rax
je 0x1400018d2
mov rax, qword [0x140007098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002330
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140007098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400018b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000184e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001860
add dword [0x140007094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140007098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000184e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001710
nop dword [rax]
xor esi, esi
jmp 0x1400017d8
mov rax, qword [0x140007098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.140001710
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.140001710
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140001e40
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140001e9c
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 0x140001e93
test rsi, rsi
je 0x140001e93
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001e78
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 0x1400020b0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400020e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400020f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400020c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400020e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400020f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400020d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400020e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400020f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

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

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

Function at 0x140002270
Capabilities:
Parse pe header

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

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

Function at 0x140002510
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov r8d, 0x2c
mov ecx, 2
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x140002540
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x140002cf0
Capabilities:
Access peb ldr_data

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rbx, qword [rax + 0x20]
mov rsi, rcx
test rbx, rbx
je 0x140002d33
cmp word [rbx + 0x48], 0
je 0x140002d31
mov rcx, qword [rbx + 0x50]
mov rdx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
jne 0x140002d2c
mov rbx, qword [rbx + 0x20]
jmp 0x140002d33
mov rbx, qword [rbx]
jmp 0x140002d0a
xor ebx, ebx
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x140002d40
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
xor eax, eax
cmp word [rcx], 0x5a4d
mov rbx, rcx
mov rbp, rdx
jne 0x140002dc1
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140002dc1
mov edi, dword [rdx + 0x88]
xor esi, esi
add rdi, rcx
mov r12d, dword [rdi + 0x20]
mov r13d, dword [rdi + 0x14]
add r12, rcx
cmp esi, r13d
jae 0x140002dbf
mov edx, dword [r12 + rsi*4]
mov rcx, rbp
add rdx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
mov edx, eax
lea rax, [rsi + 1]
test edx, edx
jne 0x140002dba
mov eax, dword [rdi + 0x24]
add rsi, rsi
add rsi, rbx
movzx edx, word [rsi + rax]
mov eax, dword [rdi + 0x1c]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
add rax, rbx
jmp 0x140002dc1
mov rsi, rax
jmp 0x140002d80
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x140008670
Capabilities:
Terminate thread

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov rbx, rcx
lea rax, vtable.CLiveDataSource.0
mov qword [rcx], rax
mov rdi, qword [rcx + 0x30]
test rdi, rdi
je 0x14000876e
mov dword [rdi + 0x10], 1
xor edx, edx
mov rcx, qword [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
cmp eax, 0x102
jne 0x1400086c9
mov edx, 0x1388
mov rcx, qword [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
mov dword [rdi + 0x14], 1
mov dword [rdi + 0x10], 1
mov rcx, qword [rdi + 0x60]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop
mov edx, 0x1388
mov rcx, qword [rdi + 0xa0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
cmp eax, 0x102
jne 0x14000870c
xor edx, edx
mov rcx, qword [rdi + 0xa0]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
nop
mov rcx, qword [rdi + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
and qword [rdi + 0xa0], 0
lea rcx, [rdi + 0x68]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
nop
lea rcx, [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
nop
mov rcx, qword [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rdi + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rdi + 0x28]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop
lea rcx, [rdi + 8]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop
mov rcx, rdi
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop
lea rcx, [rbx + 0x38]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x140008790
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140022378]
nop
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400087a7
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140022378]
nop
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400087be
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140022378]
nop
lea rax, vtable.CDataSource.0
mov qword [rbx], rax
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x1400087df
mov rcx, rbx
call fcn.140006580
nop
and qword [rbx + 8], 0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140008920
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0x30]
test rbx, rbx
jne 0x14000893a
mov eax, 0x80004005
jmp 0x1400089ac
mov rdi, qword [rbx + 0x98]
and qword [rbx + 0x98], 0
and qword [rbx], 0
cmp qword [rbx + 0xa0], 0
jne 0x140008997
mov rcx, qword [rbx + 0x58]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rcx, [rbx + 0xa8]
mov r9, rbx
mov qword [rsp + 0x28], rcx
lea r8, [0x140009370]
and dword [rsp + 0x20], 0
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0xa0], rax
mov rcx, rbx
call fcn.14000932c
mov eax, dword [rbx + 0x94]
mov qword [rbx + 0x98], rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400089b8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x170
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x140035868]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rsi, r9
mov rbx, r8
mov rdi, rcx
mov qword [rsp + 0x30], rcx
mov rbp, qword [rsp + 0x1c8]
lea rax, vtable.CMSInfoCategory.0
mov qword [rcx], rax
xor r14d, r14d
mov qword [rcx + 8], r14
mov rax, qword [rsp + 0x1b8]
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], r14
mov qword [rcx + 0x20], r14
mov rax, qword [rsp + 0x1c0]
mov qword [rcx + 0x28], rax
or dword [rcx + 0x30], 0xffffffff
mov dword [rcx + 0x3c], r14d
mov qword [rcx + 0x40], 1
mov dword [rcx + 0x48], r14d
mov rax, qword [rsp + 0x1d0]
mov qword [rcx + 0x50], rax
mov dword [rcx + 0x58], r14d
mov qword [rcx + 0x60], r14
mov qword [rcx + 0x68], r14
mov qword [rcx + 0x70], r14
mov dword [rcx + 0x78], edx
mov dword [rcx + 0x7c], edx
sub rcx, 0xffffffffffffff80
call qword [sym.imp.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop
lea rcx, [rdi + 0x88]
mov rdx, rbx
call qword [sym.imp.MFC42u.dll_CDaoException::CDaoException]
mov dword [rdi + 0x90], r14d
mov rdx, qword [rdi + 0x50]
mov rcx, rdx
test rdx, rdx
je 0x140008ac9
cmp dword [rcx + 8], r14d
jne 0x140008aa4
mov rax, qword [rcx + 0x10]
cmp dword [rax - 8], r14d
je 0x140008aad
inc dword [rdi + 0x48]
add rcx, 0x28
jne 0x140008a94
test rdx, rdx
je 0x140008ac9
cmp dword [rdx + 0x1c], r14d
je 0x140008ac9
mov dword [rdi + 0x30], r14d
mov dword [rdi + 0x38], 1
mov eax, dword [rdx + 0x20]
mov dword [rdi + 0x34], eax
mov ebx, dword [rsp + 0x1e0]
test ebx, ebx
je 0x140008b08
mov dword [rsp + 0x40], 0x114
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140008b08
mov eax, r14d
cmp ebx, 1
jne 0x140008afd
cmp dword [rsp + 0x50], 2
setne al
jmp 0x140008b05
cmp dword [rsp + 0x50], 2
sete al
mov dword [rdi + 0x3c], eax
lea rax, vtable.CMSInfoLiveCategory.0
mov qword [rdi], rax
mov dword [rdi + 0x98], r14d
mov eax, dword [rsp + 0x1b0]
mov dword [rdi + 0x9c], eax
mov qword [rdi + 0xa0], rsi
lea rcx, [rdi + 0xa8]
lea rdx, [0x140022b78]
call qword [sym.imp.MFC42u.dll_CDaoException::CDaoException]
nop
lea rcx, [rdi + 0xb0]
mov rdx, rbp
call qword [sym.imp.MFC42u.dll_CControlBar::CControlBar]
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x140008b65
cmp qword [rax + 0x18], r14
jne 0x140008b65
mov qword [rax + 0x18], rdi
mov rcx, qword [rdi + 0x28]
test rcx, rcx
je 0x140008b93
mov rax, qword [rcx + 0x20]
test rax, rax
jne 0x140008b7d
mov qword [rcx + 0x20], rdi
jmp 0x140008b93
mov rcx, qword [rax + 0x20]
jmp 0x140008b8a
mov rax, rcx
mov rcx, qword [rcx + 0x20]
test rcx, rcx
jne 0x140008b83
mov qword [rax + 0x20], rdi
mov rax, rdi
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14001cbc0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140009278
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ebx, r8d
mov dword [rcx + 0x10], 1
mov rdi, rdx
mov rsi, rcx
call fcn.14000932c
cmp qword [rsi + 0xa0], 0
mov rcx, qword [rsi + 0x58]
mov dword [rsi + 0x10], 0
mov dword [rsi + 0x18], ebx
mov dword [rsi + 0x1c], 0
mov qword [rsi], rdi
mov dword [rsi + 0x10], 0
mov dword [rsi + 0x20], 0
jne 0x14000930a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rsi + 0x60]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rax, [rsi + 0xa8]
mov r9, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140009370]
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi + 0xa0], rax
jmp 0x14000931a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rsi + 0x60]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140009cec
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
push rbp
push rbx
push rdi
lea rbp, [rax - 0x1c8]
sub rsp, 0x2b0
mov qword [rsp + 0x68], 0xfffffffffffffffe
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x140035868]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov ebx, r8d
movaps xmm6, xmm1
mov rdi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x80]
call sub.msvcrt.dll_memset
mov qword [rsp + 0x78], 0x2c
mov qword [rsp + 0x70], 0x2e
mov r9d, 4
lea r8, [rsp + 0x78]
lea edx, [r9 + 0xb]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov r9d, 4
lea r8, [rsp + 0x70]
lea edx, [r9 + 0xa]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
lea r8d, [rdx + 0x28]
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x48], 3
lea rcx, [0x140022b78]
lea rax, [rsp + 0x70]
test ebx, ebx
cmove rax, rcx
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x40], ebx
lea rax, [rsp + 0x78]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop
mov r8d, ebx
lea rdx, str.__._df
lea rcx, [rsp + 0x38]
call qword [sym.imp.MFC42u.dll_CPtrList::FreeNode]
movaps xmm2, xmm6
movq r8, xmm2
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MFC42u.dll_CPtrList::FreeNode]
lea r8, [0x1400239c8]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.1400138b0
mov dword [rsp + 0x28], 0x104
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov r8, qword [rsp + 0x30]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetNumberFormatW]
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.MFC42u.dll_CDaoException::CDaoException]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
mov rax, rdi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14001cbc0
movaps xmm6, xmmword [rsp + 0x2a0]
add rsp, 0x2b0
pop rdi
pop rbx
pop rbp
ret
Function at 0x1400107e8
Capabilities:
Get system information on windows

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, rdx
mov rbx, rcx
lea rcx, [rbp - 0x10]
call qword [sym.imp.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop
lea rcx, [rbp + 0x38]
call qword [sym.imp.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop
test rbx, rbx
je 0x1400108b9
mov edx, 0x41b
lea rcx, [rbp - 0x10]
call qword [sym.imp.MFC42u.dll_CPropertySheet::OnCtlColor]
mov edx, 0x153
lea rcx, [rbp + 0x38]
call qword [sym.imp.MFC42u.dll_CPropertySheet::OnCtlColor]
or dword [rbp + 0x30], 0xffffffff
lea r9, [rbp + 0x30]
mov r8d, 1
lea rdx, [rbp + 0x20]
mov ecx, 0xca
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x140010879
lea rcx, [rbp + 0x38]
cmp byte [rbp + 0x20], 1
mov edx, 0x2f0
je 0x140010873
mov edx, 0x2f1
call qword [sym.imp.MFC42u.dll_CPropertySheet::OnCtlColor]
mov rax, qword [rbx]
and dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp - 0x10]
mov rdx, rdi
mov rcx, rbx
mov rax, qword [rax + 0x60]
call qword [0x140022378]
mov rax, qword [rbx]
lea rdx, [rdi + 0x38]
and dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp + 0x38]
mov rcx, rbx
mov rax, qword [rax + 0x60]
call qword [0x140022378]
nop
lea rcx, [rbp + 0x38]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop
lea rcx, [rbp - 0x10]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
xor eax, eax
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret