joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18003d210
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push r13
sub rsp, 0x40
mov rdi, r9
mov rsi, r8
mov r12, rdx
mov r13, rcx
mov qword [rsp + 0x38], 0xffffffffffffffff
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov eax, dword [0x180142ce4]
test eax, eax
je 0x18003d263
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x180142ce4]
test eax, eax
jne 0x18003d270
call fcn.180016a00
test eax, eax
je 0x18003d286
lea rdx, [rsp + 0x30]
mov rcx, qword [0x18013c120]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x18003d28c
or rax, 0xffffffffffffffff
jmp 0x18003d2e2
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, rdi
mov r8, rsi
mov rdx, r12
mov rcx, r13
call qword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
mov rsi, rax
mov qword [rsp + 0x38], rax
mov edi, ebx
cmp rax, 0xffffffffffffffff
sete dil
test edi, edi
je 0x18003d2c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x18003d2df
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
add rsp, 0x40
pop r13
ret
Function at 0x18003d300
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov r13, r8
mov r12, rcx
call fcn.180023b40
or rdi, 0xffffffffffffffff
mov rcx, r12
lea edx, [rdi + 0x69]
lea r8d, [rdi + 6]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x18003d42a
lea edx, [rdi + 0x69]
mov r8d, 0xf0
mov rcx, r12
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor ebx, ebx
mov rbp, rbx
test rax, rax
je 0x18003d377
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x18003d3fa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x18003d3f0
mov rdx, rbp
mov rcx, rax
call fcn.18003cf20
lea r9, [0x18003cd60]
mov r8, r13
mov rcx, r12
mov rdx, rax
mov qword [rsp + 0x20], rbx
mov rbp, rax
call fcn.18003d210
mov rdi, rax
test rax, rax
je 0x18003d3cf
cmp rax, 0xffffffffffffffff
jne 0x18003d3d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp rbp, rsi
je 0x18003d402
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x18003d402
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x18003d402
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rbp, qword [rsp + 0x58]
test ebx, ebx
je 0x18003d413
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
mov rax, rdi
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret

Function at 0x18003de70
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
xor ebx, ebx
mov esi, ebx
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x48], rbx
mov eax, dword [0x180142ce4]
test eax, eax
je 0x18003deac
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x180142ce4]
test eax, eax
jne 0x18003deb9
call fcn.180016a00
test eax, eax
je 0x18003decf
lea rdx, [rsp + 0x48]
mov rcx, qword [0x18013c120]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x18003ded3
xor eax, eax
jmp 0x18003df31
mov rax, qword [0x180142d88]
test rax, rax
jne 0x18003def7
lea rcx, str.ImageList_Destroy
call fcn.18003e280
mov qword [0x180142d88], rax
test rax, rax
je 0x18003df02
mov rcx, rdi
call rax
mov esi, eax
mov dword [rsp + 0x20], eax
mov edi, ebx
test esi, esi
sete dil
test edi, edi
je 0x18003df16
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x18003df2f
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x18003e8a0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov rdi, r8
mov r12, rdx
mov r13, rcx
xor ebx, ebx
mov esi, ebx
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x68], rbx
mov eax, dword [0x180142ce4]
test eax, eax
je 0x18003e8e6
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x180142ce4]
test eax, eax
jne 0x18003e8f3
call fcn.180016a00
test eax, eax
je 0x18003e909
lea rdx, [rsp + 0x68]
mov rcx, qword [0x18013c120]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x18003e90d
xor eax, eax
jmp 0x18003e971
mov rax, qword [0x180142d98]
test rax, rax
jne 0x18003e931
lea rcx, [0x180106628]
call fcn.18003e280
mov qword [0x180142d98], rax
test rax, rax
je 0x18003e942
mov r8, rdi
mov rdx, r12
mov rcx, r13
call rax
mov esi, eax
mov dword [rsp + 0x20], eax
mov edi, ebx
test esi, esi
sete dil
test edi, edi
je 0x18003e956
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x18003e96f
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret

Function at 0x18003ec90
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x270
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x18013a210]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
mov rcx, qword [rsp + 0x2a0]
movzx eax, r8w
xor esi, esi
mov dword [rcx], esi
cmp eax, 0x5000
jne 0x18003eda9
shr r8, 0x10
cmp r8w, 9
jne 0x18003eda9
cmp dword [rbx + 0x50], esi
je 0x18003ecf7
xor eax, eax
jmp 0x18003edab
mov dword [rcx], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0x407
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdi, rax
mov word [rsp + 0x50], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x52]
call fcn.1800c1250
mov r8d, 0x208
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.180012d90
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_GetParent]
movsxd r8, dword [rbx + 0x48]
xor r9d, r9d
mov edx, VarUI4FromDisp
mov rcx, rax
call qword [sym.imp.USER32.dll_PostMessageW]
cmp qword [rsp + 0x48], 8
jb 0x18003eda9
mov rcx, qword [rsp + 0x30]
call fcn.1800bd964
nop
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1800bd980
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x18003ede0
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x260
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x18013a210]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rdx
mov qword [rsp + 0x28], rdx
xor esi, esi
mov dword [rsp + 0x20], esi
mov qword [rdx + 0x20], 7
mov qword [rdx + 0x18], rsi
mov word [rdx + 8], si
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0x407
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdi, rax
mov word [rsp + 0x40], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x42]
call fcn.1800c1250
mov r8d, 0x208
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
je 0x18003ee9f
mov r8, rcx
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.180012d90
nop
mov rax, rbx
jmp 0x18003eea9
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1800bd980
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x18003eed0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x18013a210]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov eax, dword [rdx + 0x10]
mov rbx, rcx
mov ecx, dword [rdx + 8]
mov rdi, rdx
cmp ecx, 0x101
jne 0x18003efd4
cmp eax, 0xd
jne 0x18003efd4
mov qword [rsp + 0x290], rsi
xor esi, esi
xor r9d, r9d
mov qword [rdx + 0x10], rsi
mov rcx, qword [rbx + 8]
xor r8d, r8d
mov edx, 0x407
call qword [sym.imp.USER32.dll_SendMessageW]
lea rcx, [rsp + 0x52]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x50], si
mov rdi, rax
call fcn.1800c1250
lea rdx, [rsp + 0x50]
mov r8d, 0x208
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
je 0x18003efc5
mov r8, rcx
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rsi
mov word [rsp + 0x28], si
call fcn.180012d90
movsxd r8, dword [rbx + 0x48]
mov rcx, qword [rbx + 0x60]
xor r9d, r9d
mov edx, VarUI4FromDisp
call qword [sym.imp.USER32.dll_SendMessageW]
cmp qword [rsp + 0x40], 8
jb 0x18003efc5
mov rcx, qword [rsp + 0x28]
call fcn.1800bd964
mov rsi, qword [rsp + 0x290]
mov eax, 1
jmp 0x18003f013
cmp ecx, 0x101
je 0x18003efe4
cmp ecx, 0x100
jne 0x18003efe9
cmp eax, 8
je 0x18003efff
cmp eax, 0x23
jl 0x18003eff3
cmp eax, 0x28
jle 0x18003efff
cmp eax, 0x2e
je 0x18003efff
mov eax, 1
jmp 0x18003f013
mov rcx, rdx
call qword [sym.imp.USER32.dll_TranslateMessage]
mov rcx, rdi
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1800bd980
mov rbx, qword [rsp + 0x298]
add rsp, 0x270
pop rdi
ret
Function at 0x18003f040
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
push r12
push r13
push r14
sub rsp, 0x1b0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x18013a210]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov rsi, rcx
cmp qword [rcx + 0xb0], 8
jb 0x18003f08d
mov rcx, qword [rcx + 0x98]
jmp 0x18003f094
add rcx, 0x98
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18003f1d0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x18003f1d0
movabs rax, 0x6d3a06d3a06d3a07
mul rbx
mov r12, rdx
shr r12, 7
cmp qword [rsi + 0xb0], 8
jb 0x18003f10c
mov rcx, qword [rsi + 0x98]
jmp 0x18003f113
lea rcx, [rsi + 0x98]
lea rdx, [0x180106660]
call fcn.1800bdbec
mov r13, rax
test rax, rax
je 0x18003f1d0
mov ebx, r14d
nop
cmp ebx, r12d
jge 0x18003f1c7
xor edx, edx
mov r8d, 0x12c
lea rcx, [rsp + 0x70]
call fcn.1800c1250
mov r9, r13
mov edx, 0x12c
mov r8d, 1
lea rcx, [rsp + 0x70]
call fcn.1800be018
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r14
mov word [rsp + 0x50], r14w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x70]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.180012d90
nop
lea rcx, [rsi + 0xb8]
lea rdx, [rsp + 0x48]
call fcn.1800024c0
nop
cmp qword [rsp + 0x68], 8
jb 0x18003f1c0
mov rcx, qword [rsp + 0x50]
call fcn.1800bd964
inc ebx
jmp 0x18003f130
mov rcx, r13
call fcn.1800bdc84
nop
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.1800bd980
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x18003f200
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1c0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x18013a210]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rdi, rcx
cmp qword [rcx + 0xb0], 8
jb 0x18003f24c
mov rcx, qword [rcx + 0x98]
jmp 0x18003f253
add rcx, 0x98
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r14 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
mov rcx, qword [rdi + 0xd8]
sub rcx, qword [rdi + 0xd0]
movabs r15, 0x6666666666666667
mov rax, r15
imul rcx
mov r13, rdx
sar r13, 4
mov rcx, r13
shr rcx, 0x3f
add r13, rcx
mov ebx, r14d
cmp ebx, r13d
jge 0x18003f3b2
xor edx, edx
mov r8d, 0x12c
lea rcx, [rsp + 0x80]
call fcn.1800c1250
movsxd rsi, ebx
mov rcx, qword [rdi + 0xd8]
sub rcx, qword [rdi + 0xd0]
mov rax, r15
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rsi, rdx
jb 0x18003f2ff
call fcn.1800bf138
lea rcx, [rsi + rsi*4]
mov rax, qword [rdi + 0xd0]
lea rdx, [rax + rcx*8]
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r14
mov word [rsp + 0x58], r14w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x50]
call fcn.180003570
cmp qword [rsp + 0x68], r14
je 0x18003f399
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x80]
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx], ax
add rcx, 2
add rdx, 2
test ax, ax
jne 0x18003f360
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x40]
mov r8d, 0x12c
lea rdx, [rsp + 0x80]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [rsp + 0x70], 8
jb 0x18003f3ab
mov rcx, qword [rsp + 0x58]
call fcn.1800bd964
inc ebx
jmp 0x18003f2b2
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1800bd980
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1800439a0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
push r13
push r14
sub rsp, 0x40
mov edi, r9d
mov r12, r8
mov r13d, edx
mov r14, rcx
xor ebx, ebx
mov esi, ebx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], rbx
mov eax, dword [0x180142ce4]
test eax, eax
je 0x1800439ef
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x180142ce4]
test eax, eax
jne 0x1800439fc
call fcn.180016a00
test eax, eax
je 0x180043a12
lea rdx, [rsp + 0x38]
mov rcx, qword [0x18013c120]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x180043a16
xor eax, eax
jmp 0x180043a81
mov rax, qword [0x180142da0]
test rax, rax
jne 0x180043a3a
lea rcx, str.ImageList_Copy
call fcn.18003e280
mov qword [0x180142da0], rax
test rax, rax
je 0x180043a52
mov dword [rsp + 0x20], ebx
mov r9d, edi
mov r8, r12
mov edx, r13d
mov rcx, r14
call rax
mov esi, eax
mov dword [rsp + 0x30], eax
mov edi, ebx
test esi, esi
sete dil
test edi, edi
je 0x180043a66
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rdx, qword [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x180043a7f
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop r13
pop r12
ret

Function at 0x180043aa0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push r13
sub rsp, 0x40
mov edi, r9d
mov r12d, edx
mov r13d, ecx
xor ebx, ebx
mov rsi, rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov eax, dword [0x180142ce4]
test eax, eax
je 0x180043aef
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x180142ce4]
test eax, eax
jne 0x180043afc
call fcn.180016a00
test eax, eax
je 0x180043b12
lea rdx, [rsp + 0x30]
mov rcx, qword [0x18013c120]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x180043b16
xor eax, eax
jmp 0x180043b90
mov r10, qword [0x180142db0]
test r10, r10
jne 0x180043b3d
lea rcx, [0x180106718]
call fcn.18003e280
mov r10, rax
mov qword [0x180142db0], rax
test rax, rax
je 0x180043b5f
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
mov r9d, edi
mov r8d, 0x20
mov edx, r12d
mov ecx, r13d
call r10
mov rsi, rax
mov qword [rsp + 0x38], rax
mov edi, ebx
test rsi, rsi
sete dil
test edi, edi
je 0x180043b74
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x180043b8d
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
add rsp, 0x40
pop r13
ret
Function at 0x180043bb0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
xor ebx, ebx
mov esi, ebx
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x48], rbx
mov eax, dword [0x180142ce4]
test eax, eax
je 0x180043bec
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x180142ce4]
test eax, eax
jne 0x180043bf9
call fcn.180016a00
test eax, eax
je 0x180043c0f
lea rdx, [rsp + 0x48]
mov rcx, qword [0x18013c120]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x180043c13
xor eax, eax
jmp 0x180043c71
mov rax, qword [0x180142da8]
test rax, rax
jne 0x180043c37
lea rcx, str.ImageList_GetImageCount
call fcn.18003e280
mov qword [0x180142da8], rax
test rax, rax
je 0x180043c42
mov rcx, rdi
call rax
mov esi, eax
mov dword [rsp + 0x20], eax
mov edi, ebx
test esi, esi
sete dil
test edi, edi
je 0x180043c56
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x180043c6f
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1800459e0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov eax, dword [rdx + 8]
mov ebx, dword [rdx + 0x10]
mov rdi, rdx
cmp eax, 0x100
jne 0x180045a2f
cmp ebx, 0xd
jne 0x180045a2f
mov qword [rdx + 0x10], 0
mov rcx, qword [rcx + 0x320]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x598
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp eax, 0x101
je 0x180045a3d
cmp eax, 0x100
jne 0x180045a1f
cmp ebx, 8
je 0x180045ab1
cmp ebx, 0x23
jl 0x180045a4c
cmp ebx, 0x28
jle 0x180045ab1
cmp ebx, 0x2e
je 0x180045ab1
cmp ebx, 0xd
je 0x180045ab1
cmp ebx, 0x1b
je 0x180045ab1
mov ecx, SafeArrayLock
call qword [sym.imp.USER32.dll_GetKeyState]
movsx rcx, ax
shr rcx, 0x10
test cx, cx
je 0x180045a8c
cmp ebx, 0x2d
je 0x180045ab1
cmp ebx, 0x63
je 0x180045ab1
cmp ebx, 0x43
je 0x180045ab1
cmp ebx, 0x76
je 0x180045ab1
cmp ebx, 0x56
jmp 0x180045aab
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.USER32.dll_GetKeyState]
movsx rcx, ax
shr rcx, 0x10
test cx, cx
je 0x180045a1f
cmp ebx, 0x2d
jne 0x180045a1f
mov rcx, rdi
call qword [sym.imp.USER32.dll_TranslateMessage]
mov rcx, rdi
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x180045ef0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x50
xor eax, eax
mov rbx, rcx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
cmp qword [rcx + 0x3b8], rax
jne 0x180045f2b
lea edx, [rax + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x3b8], rax
cmp qword [rbx + 0x3c0], 0
jne 0x180045f4c
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x3c0], rax
mov rax, qword [rbx + 0x3b8]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor ecx, ecx
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r8, [0x1800460d0]
xor edx, edx
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x60], ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rsp + 0x38]
or edx, 0xffffffff
mov qword [rbx + 0x3c8], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x3c0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
add rsp, 0x50
pop rbx
ret
Function at 0x18004b690
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov rsi, qword [0x180141d20]
xor ebx, ebx
mov edi, ebx
test rsi, rsi
je 0x18004b6fc
lea edx, [rbx + 0x6b]
lea r8d, [rbx + 0x17]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x18004b6e6
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r12, rax
test rax, rax
jne 0x18004b719
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x18004b6fa
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x18004b759
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, r12
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test edi, edi
je 0x18004b759
test rax, rax
jne 0x18004b759
mov edx, edi
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov rbx, rax
test rax, rax
jne 0x18004b77a
mov ecx, 0x8007000e
call fcn.180016c50
int3
mov edx, edi
mov rcx, rbx
call fcn.180012570
mov rbx, rax
test rax, rax
jne 0x18004b77a
test edi, edi
je 0x18004b77a
mov ecx, 0x8007000e
call fcn.180016c50
int3
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rax, rbx
jmp 0x18004b6fe
Function at 0x18004d200
Capabilities:
Get graphical window text

Disassembly:
push rdi
sub rsp, 0x260
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x280], rbx
mov rax, qword [0x18013a210]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rdx
xor eax, eax
mov dword [rsp + 0x20], eax
mov qword [rdx + 0x20], 7
mov qword [rdx + 0x18], rax
mov word [rdx + 8], ax
mov dword [rsp + 0x20], 1
mov word [rsp + 0x40], ax
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x42]
call fcn.1800c1250
mov r8d, 0x208
lea rdx, [rsp + 0x40]
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_GetWindowTextW]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
je 0x18004d2ad
mov r8, rcx
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.180012d90
mov rax, rbx
jmp 0x18004d2b0
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1800bd980
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret