joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4d0710
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d17f0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d1112
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f3108]
test eax, eax
je 0x2fc4d11aa
lea rax, [0x2fc4f30e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f3110]
mov qword [rbp - 8], rax
jmp 0x2fc4d118e
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 0x2fc4d1182
cmp qword [rbp - 0x10], 0
je 0x2fc4d1182
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 0x2fc4d1148
lea rax, [0x2fc4f30e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d11ab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d12b0
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 0x2fc4d12d8
mov eax, 0
jmp 0x2fc4d1326
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 0x2fc4d1301
mov eax, 0
jmp 0x2fc4d1326
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 0x2fc4d1321
mov eax, 0
jmp 0x2fc4d1326
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d132c
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 0x2fc4d13aa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d13a1
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 0x2fc4d13a1
mov rax, qword [rbp - 8]
jmp 0x2fc4d13bf
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 0x2fc4d1374
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140003480
Capabilities:
Access peb ldr_data

Disassembly:
push r12
push r14
push r15
sub r12, r12
add r12, 0x60
mov r14, qword gs:[r12]
push r11
mov r11, qword [r14 + 0x10]
add r14, 0x18
mov r15, qword [r14]
mov r12, r15
add r12, 0x10
mov r14, qword [r12]
push rax
mov r12, qword [r14 + 0x30]
cmp r12, 0
cmp esp, 0
je 0x1400034da
mov r15, qword [r14 + 0x60]
mov rax, qword [r15]
and eax, 0xdf00df
mov r15, qword [r15 + 0xb]
add r15d, eax
shr r15d, 2
sub r15d, 0xc914cd2
cmp r15, 0
je 0x1400034e2
mov r14, qword [r14]
jmp 0x1400034ab
mov r14d, dword [r12 + 0x3c]
add r14, r12
add r14, 0x10
mov r15d, dword [r14 + 0x78]
add r15, r12
push r10
mov eax, dword [r15 + 0x20]
add rax, r12
mov r10d, dword [rax]
add r10, r12
mov r14d, dword [r10 + 0xb]
sub r14d, 0x746365
cmp r14d, 0
jne 0x140003517
jmp 0x140003525
inc rax
inc rax
inc rax
inc rax
jmp 0x1400034fe
mov r14d, dword [r15 + 0x20]
sub rax, r14
sub rax, r12
shr eax, 1
mov r14d, dword [r15 + 0x24]
add r14, rax
add r14, r12
mov eax, dword [r14]
mov r14d, dword [r15 + 0x1c]
shl eax, 0x10
shr eax, 0xe
add r14, r12
add r14, rax
mov eax, dword [r14]
add rax, r12
mov r14d, 0x6d000
add r14, r11
push r12
push r11
push r14
push r10
push r10
push rax
mov rcx, r14
mov r9, rsp
mov r8d, 0x40
mov edx, 0x55000
call rax
pop r15
pop r10
pop r10
pop r14
pop r11
mov r12d, 0x1220
push rax
movabs r15, 0x3ae00
mov eax, 8
imul r12, rax
movabs rax, 0x711
add byte [rax], al
add rax, r11
add r12, rax
call fcn.1400035dc
mov r12d, 0x45611
movabs r14, 0xad000
add r12, r11
mov r15d, 0x3b30
add r14, r11
call fcn.1400035dc
pop rax
jmp 0x140003602
mov r12d, 0x8000000
mov r15d, 0x3eb
movabs r14, 0x6d000
mov eax, 4
imul r15d, eax
add r15d, 0x54
add r14, r11
sub r14, r15
mov r15, r14
sub r15, r12
mov r12d, 0x4a211
add r12, r11
mov eax, dword [r12]
xor eax, 0xfaaef571
dec eax
cmp eax, 0
je 0x14000365f
add rax, r14
mov r10, qword [rax]
add r10, r15
mov qword [rax], r10
add r12, 4
jmp 0x14000363d
invalid
Function at 0x180002380
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
mov eax, dword [0x18016a224]
test eax, eax
jne 0x18000248d
mov edx, dword [0x18016a220]
cmp edx, 3
jge 0x18000248d
cmp dword [0x18015504c], 0
lea rax, str.OcpFrame32.dll
lea rcx, str.OcpFrame64.dll
cmove rcx, rax
inc edx
mov qword [rsp + 0x20], rbx
mov dword [0x18016a220], edx
xor edx, edx
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
je 0x180002482
lea rdx, str.OFCInit
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.OFCUnInit
mov rcx, rbx
mov qword [0x18016a1f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.OFCDoFunc
mov rcx, rbx
mov qword [0x18016a1f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.OFFreeReply
mov rcx, rbx
mov qword [0x18016a200], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.OFCIsServerStart
mov rcx, rbx
mov qword [0x18016a208], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.OFSSetReqAndWaitReply
mov rcx, rbx
mov qword [0x18016a210], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x20]
mov qword [0x18016a218], rax
mov dword [0x18016a224], 1
mov eax, 1
add rsp, 0x28
ret
mov eax, dword [0x18016a224]
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret

Function at 0x1800048f0
Capabilities:
Hide graphical window

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [0x1801730a0], 0
je 0x18000472c
lea r9, str.ShowFloatTip_____
lea r8, str.FloatTip
lea rcx, [0x1801727b8]
or edx, 0xffffffff
call fcn.18009ee20
lea rcx, [0x18016a240]
mov dword [0x18016a23c], 0
call fcn.180003730
mov ebx, eax
sub ebx, 1
js 0x1800047c5
mov qword [rsp + 0x40], rdi
nop
lea rcx, [0x18016a240]
mov edx, ebx
call fcn.1800044f0
mov rdi, qword [rax]
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x180004782
lea r8d, [rax + 1]
lea rcx, [0x18016a240]
mov edx, ebx
call fcn.180004500
jmp 0x1800047bb
mov edx, 5
mov rcx, rdi
call qword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x1801730a0], 0
je 0x1800047bb
lea r9, str.ShowFloatTip_hWnd_0x_08x_
lea r8, str.FloatTip
lea rcx, [0x1801727b8]
or edx, 0xffffffff
mov qword [rsp + 0x20], rdi
call fcn.18009ee20
sub ebx, 1
jns 0x180004750
mov rdi, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rbx
ret
jmp 0x180004700
Function at 0x180004900
Capabilities:
Hide graphical window

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [0x1801730a0], 0
je 0x1800047fc
lea r9, str.HideFloatTip_____
lea r8, str.FloatTip
lea rcx, [0x1801727b8]
or edx, 0xffffffff
call fcn.18009ee20
lea rcx, [0x18016a240]
mov dword [0x18016a23c], 1
call fcn.180003730
mov ebx, eax
sub ebx, 1
js 0x180004892
mov qword [rsp + 0x40], rdi
nop
lea rcx, [0x18016a240]
mov edx, ebx
call fcn.1800044f0
mov rdi, qword [rax]
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x180004852
lea r8d, [rax + 1]
lea rcx, [0x18016a240]
mov edx, ebx
call fcn.180004500
jmp 0x180004888
xor edx, edx
mov rcx, rdi
call qword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x1801730a0], 0
je 0x180004888
lea r9, str.HideFloatTip_hWnd_0x_08x_
lea r8, str.FloatTip
lea rcx, [0x1801727b8]
or edx, 0xffffffff
mov qword [rsp + 0x20], rdi
call fcn.18009ee20
sub ebx, 1
jns 0x180004820
mov rdi, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rbx
ret
jmp 0x1800047d0
Function at 0x18000be10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x18004c430
mov r11, rsp
push rbp
push rsi
sub rsp, 0xf8
mov eax, r8d
mov rsi, rdx
mov rbp, rcx
test rcx, rcx
je 0x18004c6e4
test rdx, rdx
je 0x18004c6e4
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x28], r14
xor r14d, r14d
lea r8, [r11 + 8]
lea rdx, [r11 + 0x20]
mov ecx, eax
mov qword [r11 + 0x20], r14
mov dword [r11 + 8], r14d
call fcn.18003c0c0
cmp qword [rsp + 0x128], r14
je 0x18004c6dd
mov ebx, dword [rsp + 0x110]
test ebx, ebx
je 0x18004c6dd
mov qword [rsp + 0x120], rdi
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0xbc
mov qword [rsp + 0xf0], r12
mov edi, 0xe8080000
mov qword [rsp + 0xe8], r13
call fcn.18006a0a0
mov r11d, dword [rsp + 0xc8]
mov eax, dword [0x18017139c]
lea r12d, [r11 + rax*2 + 0xc2]
add r12d, dword [rsp + 0xcc]
add r12d, dword [rsp + 0xd0]
add r12d, dword [rsp + 0xd4]
add r12d, dword [rsp + 0xd8]
add r12d, ebx
mov ecx, r12d
mov r13d, r12d
call fcn.18006b890
mov rbx, rax
test rax, rax
jne 0x18004c51b
mov edi, 0xe8082017
jmp 0x18004c68a
mov r8, r13
xor edx, edx
mov rcx, rax
call fcn.18006a0a0
mov dword [rbx], 0xe8081234
mov eax, dword [rsp + 0x110]
mov dword [rbx + 0xa0], eax
mov r8d, dword [rsp + 0x110]
mov rdx, qword [rsp + 0x128]
lea rcx, [rbx + 0xc0]
call fcn.18006b1c0
mov eax, dword [rbx + 0xa0]
mov r11d, dword [0x18017139c]
lea rdx, [rax + rbx + 0xc0]
mov dword [rbx + 0xa4], r11d
lea rcx, str.___:__
nop word [rax + rax]
movzx eax, word [rcx]
add rdx, 2
add rcx, 2
mov word [rdx - 2], ax
test ax, ax
jne 0x18004c580
movabs rax, 0x4000000000000000
movabs rcx, 0x4059000000000000
mov dword [rbx + 0x3c], 1
mov qword [rbx + 0x78], rax
mov dword [rbx + 0x40], r14d
mov dword [rbx + 0x44], 0xffffff
mov dword [rbx + 0x48], r14d
mov qword [rbx + 0x70], rcx
mov dword [rbx + 0x54], 0x2710
mov dword [rbx + 0x58], 0xffffd8f0
mov dword [rbx + 0x2c], 0x104
mov dword [rbx + 0x30], 1
mov dword [rbx + 0x24], 0x1e
mov dword [rbx + 0x28], 1
mov dword [rbx + 0x34], 0xffffffff
mov dword [rbx + 0x38], 1
mov dword [rbx + 0xc], 0xfe
mov dword [rbx + 0x10], 1
mov dword [rbx + 0x1c], 0xffffffff
mov dword [rbx + 0x20], 1
mov qword [rbx + 0x98], r14
mov qword [rbx + 0x80], rcx
mov qword [rbx + 0x88], r14
mov dword [rbx + 0x4c], 0x2710
mov dword [rbx + 0x50], r14d
mov dword [rbx + 4], 6
mov dword [rbx + 8], 1
mov dword [rbx + 0x14], 0x208
mov dword [rbx + 0x18], 1
mov dword [rbx + 0x5c], 0x7fffffff
mov dword [rbx + 0x60], 0x80000000
mov dword [rbx + 0x64], 0x7fffffff
mov dword [rbx + 0x68], 0x80000000
movabs rax, 0x4056800000000000
mov qword [rbx + 0x90], rax
mov qword [rbp], rbx
mov dword [rsi], r12d
mov r13, qword [rsp + 0xe8]
mov r12, qword [rsp + 0xf0]
cmp qword [rsp + 0x128], r14
je 0x18004c6b9
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0x128]
call fcn.18003c120
mov eax, edi
mov rdi, qword [rsp + 0x120]
mov rbx, qword [rsp + 0x118]
mov r14, qword [rsp + 0xe0]
add rsp, 0xf8
pop rsi
pop rbp
ret
mov eax, 0xe808000e
jmp 0x18004c6c3
mov eax, 0xe8080003
add rsp, 0xf8
pop rsi
pop rbp
ret
Function at 0x180018490
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push r12
sub rsp, 0x30
mov edi, r9d
mov r12d, r8d
mov rbp, rcx
cmp rcx, 0xffffffffffffffff
jne 0x1800184b3
xor eax, eax
add rsp, 0x30
pop r12
pop rdi
pop rbp
ret
lea eax, [r8 + r9]
cmp edx, eax
jb 0x1800184a8
mov qword [rsp + 0x58], rbx
mov rbx, qword [rsp + 0x70]
or r8d, 0xffffffff
mov edx, r9d
mov rcx, rbx
mov qword [rsp + 0x60], rsi
call fcn.180068cb0
mov rcx, rbx
call fcn.180069140
mov rsi, rax
test rax, rax
je 0x18001854a
mov qword [rsp + 0x68], r13
xor r13d, r13d
mov ebx, r13d
test edi, edi
je 0x180018542
nop dword [rax + rax]
lea edx, [rbx + r12]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
mov dword [rsp + 0x50], r13d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r8d, edi
mov edx, ebx
lea r9, [rsp + 0x50]
mov rcx, rbp
sub r8d, ebx
add rdx, rsi
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180018542
add ebx, dword [rsp + 0x50]
cmp ebx, edi
jb 0x180018500
mov r13, qword [rsp + 0x68]
mov rax, rsi
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rbp
ret

Function at 0x180018db0
Capabilities:
Get file size

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x40
mov r12, r8
mov rdi, rdx
mov rsi, rcx
test rcx, rcx
jne 0x180018dd2
xor eax, eax
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
mov qword [rsp + 0x60], rbx
xor ebx, ebx
xor r9d, r9d
mov dword [rdx], ebx
mov dword [rdx + 4], ebx
mov dword [r8], ebx
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x68], rbp
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x180018e5f
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x70], r13
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, rbp
mov edx, eax
mov r13d, eax
call fcn.180018590
mov dword [r12], eax
test eax, eax
je 0x180018e51
mov r8d, eax
mov edx, r13d
mov rcx, rbp
call fcn.180018cb0
mov ebx, 1
mov qword [rdi], rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13, qword [rsp + 0x70]
cmp dword [0x1801730a0], 0
mov rbp, qword [rsp + 0x68]
je 0x180018ea4
mov ecx, dword [rdi + 4]
mov qword [rsp + 0x38], rsi
lea r9, str.CTWMPicParser::GetImgMessage___d___d_d___s_
mov dword [rsp + 0x30], ecx
mov ecx, dword [rdi]
lea r8, [0x180103320]
mov dword [rsp + 0x28], ecx
mov ecx, dword [r12]
or edx, 0xffffffff
mov dword [rsp + 0x20], ecx
lea rcx, [0x1801727b8]
call fcn.18009ee20
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x180019a90
Capabilities:
Get graphical window text

Disassembly:
test rcx, rcx
je 0x180019ba0
mov r11, rsp
push rbx
push rbp
push rsi
sub rsp, 0x480
mov rax, qword [0x1801580d0]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbp, r8
mov ebx, edx
mov rsi, rcx
test edx, edx
je 0x180019b86
mov qword [r11 - 0x20], rdi
mov rcx, r8
mov qword [r11 - 0x28], r12
call qword [sym.imp.USER32.dll_GetParent]
lea rcx, [rsp + 0x252]
xor r12d, r12d
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x250], r12w
mov rdi, rax
call fcn.18006a0a0
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], r12w
call fcn.18006a0a0
mov r12, qword [rsp + 0x470]
test rdi, rdi
je 0x180019b4d
lea rdx, [rsp + 0x250]
mov r8d, 0x103
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetClassNameW]
lea rdx, [rsp + 0x40]
mov r8d, 0x103
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rax, [rsp + 0x40]
lea edx, [rbx - 1]
lea r8, str.Wnd:_08x_PWnd:_08x__PClass:_s__PTitle:_s_
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x250]
mov r9, rbp
mov qword [rsp + 0x28], rax
mov rcx, rsi
mov qword [rsp + 0x20], rdi
call fcn.18006ba3c
mov rdi, qword [rsp + 0x478]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.18006b190
add rsp, 0x480
pop rsi
pop rbp
pop rbx
repz ret

Function at 0x180019a99
Capabilities:
Get graphical window text

Disassembly:
test rcx, rcx
je 0x180019ba0
mov r11, rsp
push rbx
push rbp
push rsi
sub rsp, 0x480
mov rax, qword [0x1801580d0]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbp, r8
mov ebx, edx
mov rsi, rcx
test edx, edx
je 0x180019b86
mov qword [r11 - 0x20], rdi
mov rcx, r8
mov qword [r11 - 0x28], r12
call qword [sym.imp.USER32.dll_GetParent]
lea rcx, [rsp + 0x252]
xor r12d, r12d
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x250], r12w
mov rdi, rax
call fcn.18006a0a0
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], r12w
call fcn.18006a0a0
mov r12, qword [rsp + 0x470]
test rdi, rdi
je 0x180019b4d
lea rdx, [rsp + 0x250]
mov r8d, 0x103
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetClassNameW]
lea rdx, [rsp + 0x40]
mov r8d, 0x103
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rax, [rsp + 0x40]
lea edx, [rbx - 1]
lea r8, str.Wnd:_08x_PWnd:_08x__PClass:_s__PTitle:_s_
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x250]
mov r9, rbp
mov qword [rsp + 0x28], rax
mov rcx, rsi
mov qword [rsp + 0x20], rdi
call fcn.18006ba3c
mov rdi, qword [rsp + 0x478]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.18006b190
add rsp, 0x480
pop rsi
pop rbp
pop rbx
repz ret
Function at 0x18001a440
Capabilities:
Get file size
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x490
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1801580d0]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rbx, r8
mov rbp, rdx
mov rsi, rcx
call fcn.180068ca0
test eax, eax
je 0x18001a686
test rbx, rbx
je 0x18001a686
xor r12d, r12d
mov word [rsp + 0x60], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x62]
call fcn.18006a0a0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x18001a4cd
mov r8d, 0x103
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.18006a270
jmp 0x18001a4eb
call fcn.180022050
mov r9, rax
lea r8, str._sPrintData
mov edx, 0x103
lea rcx, [rsp + 0x60]
call fcn.18006ba3c
mov rdx, rbp
lea rcx, [rsp + 0x48]
call fcn.18006a000
nop
mov word [rsp + 0x270], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x272]
call fcn.18006a0a0
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x60]
lea r8, str._s_s.wmr
mov edx, 0x103
lea rcx, [rsp + 0x270]
call fcn.18006ba3c
lea rcx, [rsp + 0x44]
call fcn.18003a3c0
nop
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
lea rax, [rsp + 0x270]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, str.CTWMPolicyHelper::SaveImageData__Create___File:__08x___Path:__s_
lea r8, str.Policy
or edx, 0xffffffff
lea rcx, [0x1801727b8]
call fcn.18009ee20
cmp rbx, 0xffffffffffffffff
je 0x18001a671
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov rcx, rsi
call fcn.180068ca0
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edi
lea r9, str.CTWMPolicyHelper::SaveImageData__Compare___Size:__d__d_
lea r8, str.Policy
or edx, 0xffffffff
lea rcx, [0x1801727b8]
call fcn.18009ee20
mov rcx, rsi
call fcn.180068ca0
cmp edi, eax
je 0x18001a667
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [rsp + 0x40], r12d
mov rcx, rsi
call fcn.180068ca0
mov edi, eax
mov rcx, rsi
call fcn.180069140
mov rdx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
lea r9, str.CTWMPolicyHelper::SaveImageData_____Save___Written:__d_
lea r8, str.Policy
or edx, 0xffffffff
lea rcx, [0x1801727b8]
call fcn.18009ee20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x44]
call fcn.18003a3f0
nop
lea rcx, [rsp + 0x48]
call fcn.180057b10
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.18006b190
add rsp, 0x490
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180021420
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x18016bfc4], 0
jne 0x180021457
lea rbx, [0x18016bec0]
mov edx, 0x104
mov dword [0x18016bfc4], 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x18016bec0]
add rsp, 0x20
pop rbx
ret

Function at 0x180021750
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x18016c838], 0
jne 0x180021787
lea rbx, [0x18016c630]
mov edx, 0x104
mov dword [0x18016c838], 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x18016c630]
add rsp, 0x20
pop rbx
ret

Function at 0x180021bf0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x18016d9c4], 0
jne 0x180021c83
mov dword [0x18016d9c4], 1
call fcn.1800a3670
test eax, eax
je 0x180021c65
lea rbx, [0x18016d8c0]
xor r8d, r8d
mov edx, 0x104
mov rcx, rbx
call fcn.1800abbd0
test eax, eax
je 0x180021c7a
mov qword [rsp + 0x30], rdi
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasb al, byte [rdi]
mov rcx, qword [0x18010bba0]
mov rax, rbx
mov qword [rdi - 1], rcx
movzx ecx, word [reloc.WS2_32.dll_gethostbyname]
mov word [rdi + 7], cx
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
lea rbx, [0x18016d8c0]
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x18016d8c0]
add rsp, 0x20
pop rbx
ret

Function at 0x180021f20
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x18016e128], 0
jne 0x180021fbd
mov dword [0x18016e128], 1
call fcn.1800a3670
test eax, eax
je 0x180021f9f
lea rbx, [0x18016df20]
xor r8d, r8d
mov edx, 0x104
mov rcx, rbx
call fcn.1800a51d0
test eax, eax
je 0x180021fb4
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x30], rdi
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
mov rcx, qword [str.SysWow64]
mov rax, rbx
mov qword [rdi - 2], rcx
mov rcx, qword [0x18010bbb8]
mov qword [rdi + 6], rcx
mov ecx, dword [reloc.WS2_32.dll_gethostbyname]
mov dword [rdi + 0xe], ecx
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
lea rbx, [0x18016df20]
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x18016df20]
add rsp, 0x20
pop rbx
ret
Function at 0x180022f70
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x18016fd70], 0
je 0x180022f8a
mov eax, 1
add rsp, 0x20
pop rbx
ret
or rcx, 0xffffffffffffffff
lea rdx, [0x18016fd80]
xor eax, eax
mov qword [rsp + 0x30], rdi
mov rdi, rdx
mov ebx, 1
repne scasw ax, word [rdi]
mov dword [0x18016fd70], ebx
not rcx
cmp rcx, rbx
lea rcx, str.snapb2p64.dll
cmovne rcx, rdx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, qword [rsp + 0x30]
mov qword [0x18016fd78], rax
test rax, rax
je 0x1800230af
lea rdx, str.TB2P_Initialize
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18016fd78]
lea rdx, str.TB2P_Uninitialize
mov qword [0x18016fd30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18016fd78]
lea rdx, str.TB2P_Conver
mov qword [0x18016fd38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18016fd78]
lea rdx, str.TP2B_Conver
mov qword [0x18016fd40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18016fd78]
lea rdx, str.TP2J_Conver
mov qword [0x18016fd48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18016fd78]
lea rdx, str.TJ2J_Conver
mov qword [0x18016fd50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18016fd78]
lea rdx, str.TX2B_Conver
mov qword [0x18016fd58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18016fd78]
lea rdx, str.TX2B_Free
mov qword [0x18016fd60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18016fd68], rax
jmp 0x1800230b6
mov rax, qword [0x18016fd68]
cmp qword [0x18016fd30], 0
je 0x180023101
cmp qword [0x18016fd38], 0
je 0x180023101
cmp qword [0x18016fd40], 0
je 0x180023101
cmp qword [0x18016fd48], 0
je 0x180023101
cmp qword [0x18016fd50], 0
je 0x180023101
cmp qword [0x18016fd58], 0
je 0x180023101
cmp qword [0x18016fd60], 0
je 0x180023101
test rax, rax
jne 0x180023103
xor ebx, ebx
mov eax, ebx
add rsp, 0x20
pop rbx
ret