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

Disassembly:
cld
pop r11
jmp 0x14005e9fd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14005ea0d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14005e9f5
lea eax, [rcx + 1]
jmp 0x14005ea1b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14005ea2e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14005ea14
sub eax, 3
jb 0x14005ea4e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14005ea9d
sar eax, 1
movsxd rbp, eax
jb 0x14005ea84
jmp 0x14005ea5c
add ebx, ebx
jne 0x14005ea5a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14005ea84
inc ecx
add ebx, ebx
jne 0x14005ea6a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14005ea84
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14005ea7d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14005ea6c
add ecx, 2
jmp 0x14005ea89
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14005e9b2
jmp 0x14005e9fd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x23e00
mov dl, 0x12
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14005eae9
cmp rsi, rcx
jae 0x14005eaf1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14005ead0
cmp al, 0x8f
ja 0x14005ead0
cmp byte [rsi - 2], 0xf
je 0x14005ead6
sub al, 0xe8
cmp al, 1
ja 0x14005eaba
cmp rsi, rcx
jae 0x14005eaf1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14005eac0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14005eaf1
lodsb al, byte [rsi]
jmp 0x14005ead0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x5c000]
mov eax, dword [rdi]
or eax, eax
je 0x14005eb5a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x6d4bc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14005eafe
jns 0x14005eb33
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14005eb3d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14005eb54
mov qword [rbx], rax
add rbx, 8
jmp 0x14005eb1e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14005eb94
cmp al, 0xef
ja 0x14005eb86
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14005eb66
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14005eb75
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14005ebe8
sub rsp, 0xffffffffffffff80
jmp 0x14000af60
Function at 0x14000ff84
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x220
mov dword [rsp + 4], 0
mov dword [rsp + 8], 0
lea rax, [rsp + 0x120]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
mov byte [rsp], 0
mov dword [rsp + 4], 0
jmp 0x14000ffec
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
cmp dword [rsp + 4], 0x100
jge 0x14001002d
movsxd rax, dword [rsp + 4]
mov cl, byte [rsp + 4]
mov byte [rsp + rax + 0x20], cl
xor edx, edx
mov eax, dword [rsp + 4]
div dword [rsp + 0x248]
mov eax, edx
mov eax, eax
movsxd rcx, dword [rsp + 4]
mov rdx, qword [rsp + 0x240]
mov al, byte [rdx + rax]
mov byte [rsp + rcx + 0x120], al
jmp 0x14000ffe2
mov dword [rsp + 4], 0
jmp 0x140010041
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
cmp dword [rsp + 4], 0x100
jge 0x1400100ac
movsxd rax, dword [rsp + 4]
movzx eax, byte [rsp + rax + 0x20]
mov ecx, dword [rsp + 8]
add ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 4]
movzx ecx, byte [rsp + rcx + 0x120]
add eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 8], eax
movsxd rax, dword [rsp + 4]
mov al, byte [rsp + rax + 0x20]
mov byte [rsp], al
movsxd rax, dword [rsp + 8]
movsxd rcx, dword [rsp + 4]
mov al, byte [rsp + rax + 0x20]
mov byte [rsp + rcx + 0x20], al
movsxd rax, dword [rsp + 8]
mov cl, byte [rsp]
mov byte [rsp + rax + 0x20], cl
jmp 0x140010037
mov dword [rsp + 0x10], 0
mov dword [rsp + 4], 0
mov dword [rsp + 8], 0
mov byte [rsp], 0
mov dword [rsp + 0xc], 0
mov dword [rsp + 0xc], 0
jmp 0x1400100e4
mov eax, dword [rsp + 0xc]
inc eax
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0x238]
cmp dword [rsp + 0xc], eax
jae 0x1400101bb
mov eax, dword [rsp + 4]
inc eax
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 4], eax
movsxd rax, dword [rsp + 4]
movzx eax, byte [rsp + rax + 0x20]
mov ecx, dword [rsp + 8]
add ecx, eax
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 8], eax
movsxd rax, dword [rsp + 4]
mov al, byte [rsp + rax + 0x20]
mov byte [rsp], al
movsxd rax, dword [rsp + 8]
movsxd rcx, dword [rsp + 4]
mov al, byte [rsp + rax + 0x20]
mov byte [rsp + rcx + 0x20], al
movsxd rax, dword [rsp + 8]
mov cl, byte [rsp]
mov byte [rsp + rax + 0x20], cl
movsxd rax, dword [rsp + 4]
movzx eax, byte [rsp + rax + 0x20]
movsxd rcx, dword [rsp + 8]
movzx ecx, byte [rsp + rcx + 0x20]
add eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 0x10], eax
movsxd rax, dword [rsp + 0x10]
movzx eax, byte [rsp + rax + 0x20]
mov ecx, dword [rsp + 0xc]
mov rdx, qword [rsp + 0x230]
movzx ecx, byte [rdx + rcx]
xor ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0xc]
mov rdx, qword [rsp + 0x230]
mov byte [rdx + rcx], al
jmp 0x1400100da
add rsp, 0x220
pop rdi
ret
Function at 0x1400101c4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
cmp qword [rsp + 0x80], 0
je 0x1400101e8
cmp qword [rsp + 0x88], 0
jne 0x1400101ef
xor eax, eax
jmp 0x1400103da
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rax, 0x88
mov qword [rsp + 0x48], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14001024b
xor eax, eax
jmp 0x1400103da
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call fcn.1400136b8
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x14001026b
xor eax, eax
jmp 0x1400103da
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x14001029c
xor eax, eax
jmp 0x1400103da
mov rax, qword [rsp + 0x38]
mov edx, dword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
call fcn.1400136b8
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x1400102c0
xor eax, eax
jmp 0x1400103da
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x38]
mov edx, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x28]
call fcn.1400136b8
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x1400102fb
xor eax, eax
jmp 0x1400103da
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x38]
mov edx, dword [rax + 0x24]
mov rcx, qword [rsp + 0x28]
call fcn.1400136b8
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x140010336
xor eax, eax
jmp 0x1400103da
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x24]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0x50]
mov edx, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x28]
call fcn.1400136b8
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x58]
call fcn.1401dd470
test eax, eax
jne 0x1400103c3
mov eax, dword [rsp + 0x24]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0x60]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x68]
mov edx, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x28]
call fcn.1400136b8
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
jmp 0x1400103da
mov eax, dword [rsp + 0x24]
dec eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x14001034d
xor eax, eax
add rsp, 0x78
ret
Function at 0x140012964
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x48
cmp dword [rsp + 0x58], 0
je 0x1400129b1
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x1400103e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x50], 0
je 0x1400129d4
call fcn.14000eeec
test eax, eax
je 0x1400129ca
call fcn.14001040c
test eax, eax
jne 0x1400129d4
mov ecx, 1
call fcn.1401dd7fc
cmp dword [rsp + 0x60], 0
je 0x1400129ee
call fcn.14000ee98
test eax, eax
jne 0x1400129ee
mov ecx, 1
call fcn.1401dd7fc
add rsp, 0x48
ret
Function at 0x1400136b8
Capabilities:
Enumerate pe sections

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
cmp dword [rsp + 0x28], 0
jne 0x1400136d8
mov rax, 0xffffffffffffffff
jmp 0x140013780
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x20]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 6]
dec eax
mov dword [rsp], eax
jmp 0x140013708
mov eax, dword [rsp]
dec eax
mov dword [rsp], eax
cmp dword [rsp], 0
jl 0x140013779
movsxd rax, dword [rsp]
imul rax, rax, 0x28
mov rcx, qword [rsp + 8]
mov edx, dword [rsp + 0x28]
cmp dword [rcx + rax + 0xc], edx
ja 0x140013777
movsxd rax, dword [rsp]
imul rax, rax, 0x28
movsxd rcx, dword [rsp]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 8]
mov eax, dword [rdx + rax + 0xc]
mov rdx, qword [rsp + 8]
add eax, dword [rdx + rcx + 0x10]
cmp dword [rsp + 0x28], eax
ja 0x140013777
movsxd rax, dword [rsp]
imul rax, rax, 0x28
mov rcx, qword [rsp + 8]
mov eax, dword [rcx + rax + 0x14]
add eax, dword [rsp + 0x28]
movsxd rcx, dword [rsp]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 8]
sub eax, dword [rdx + rcx + 0xc]
mov eax, eax
jmp 0x140013780
jmp 0x140013700
mov rax, 0xffffffffffffffff
add rsp, 0x18
ret

Function at 0x140016254
Capabilities:
Log keystrokes via application hook

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
add rax, 0x30
mov rcx, rax
call fcn.140015eb0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, eax
xor r8d, r8d
lea rdx, [0x140029b00]
mov ecx, 2
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x28], rax
mov rax, qword [rsp + 0x30]
add rsp, 0x28
ret
Function at 0x140038110
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x78
test rdx, rdx
je 0x140038178
mov r10, qword [rcx + 0x10]
test r10, r10
je 0x140038162
cmp qword [rcx + 0x18], 0
jne 0x14003815d
mov eax, dword [rcx + 0xc]
cmp eax, dword [rcx + 0x30]
jae 0x14003817e
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 0x140038178
mov rcx, qword [rcx + 0x40]
add rsp, 0x78
jmp fcn.1400598a8
call fcn.140032d88
int3
call fcn.140032d88
int3

Function at 0x140038a7c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movsxd rsi, r8d
mov rbx, rdx
mov rdi, rcx
xor ebp, ebp
cmp qword [rcx + 0xd0], rbp
jne 0x140038ab6
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x140038b5a
call fcn.1400345ec
mov rcx, rax
test rax, rax
je 0x140038b75
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400887c2.0]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov rcx, qword [rdi + 0xd0]
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
mov rax, qword [rax + 0x118]
call qword [case.0x1400887c2.0]
mov rdx, rsi
or rdi, 0xffffffffffffffff
mov r9, rdi
mov r8, qword [rsp + 0x30]
mov rcx, rbx
call fcn.1401dede4
test eax, eax
je 0x140038b1e
cmp eax, 0xc
je 0x140038b6f
cmp eax, 0x50
jne 0x140038b80
test rbx, rbx
jne 0x140038b27
mov ebx, ebp
jmp 0x140038b32
mov rcx, rbx
call fcn.1401da378
mov rbx, rax
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov ecx, edi
lock xadd dword [rdx + 0x10], ecx
add ecx, edi
test ecx, ecx
jg 0x140038b58
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400887c2.0]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
call fcn.140032dac
nop
mov ecx, 0x80004005
call fcn.140004150
nop
call fcn.140032d88
int3

Function at 0x14003bb0c
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
xor ebx, ebx
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
je 0x14003bb6a
call fcn.140045490
mov r8d, 0xf0
mov rdx, rdi
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14003bb6a
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14003bb75
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
mov rdx, rbx
mov rcx, rsi
call fcn.14005acb0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14003bd14
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 rdi, rcx
mov rbx, r8
lea rcx, [0x140213dc8]
mov esi, edx
call fcn.1401da378
mov r8d, eax
lea rdx, [0x140213dc8]
mov rcx, rbx
call fcn.1400084b4
xor ebp, ebp
mov edx, esi
cmp qword [rdi + 0xc8], rbp
jne 0x14003bdf6
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rsi, rax
test rax, rax
je 0x14003be0e
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rdi, eax
test eax, eax
js 0x14003be29
mov rcx, qword [rbx]
lea r8d, [rbp + 1]
mov edx, dword [rcx - 0xc]
sub r8d, dword [rcx - 8]
sub edx, edi
or r8d, edx
jge 0x14003bda8
mov edx, edi
mov rcx, rbx
call fcn.1400080dc
mov rdx, qword [rbx]
cmp edi, dword [rdx - 0xc]
jg 0x14003be29
mov dword [rdx - 0x10], edi
lea r8d, [rdi + 1]
mov rax, qword [rbx]
mov rcx, rsi
mov word [rax + rdi*2], bp
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14003bdd3
mov eax, ebp
jmp 0x14003bde0
movsxd rdx, dword [rcx - 0xc]
call fcn.1401da4a4
test eax, eax
js 0x14003be29
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14003be29
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
jmp 0x14003be0e
mov rcx, rdi
call fcn.140038544
test rax, rax
je 0x14003be0e
mov rdx, rbx
mov rcx, rax
call fcn.14003c2ac
mov rax, qword [rbx]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, dword [rax - 0x10]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80070057
call fcn.140004150
int3

Function at 0x14003c2ac
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 rsi, rcx
xor ebp, ebp
mov rcx, qword [rcx + 0xd0]
mov rbx, rdx
test rcx, rcx
jne 0x14003c35b
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rdi, eax
test eax, eax
js 0x14003c380
mov rcx, qword [rbx]
lea r8d, [rbp + 1]
mov edx, dword [rcx - 0xc]
sub r8d, dword [rcx - 8]
sub edx, edi
or r8d, edx
jge 0x14003c30c
mov edx, edi
mov rcx, rbx
call fcn.1400080dc
mov rdx, qword [rbx]
cmp edi, dword [rdx - 0xc]
jg 0x14003c380
mov dword [rdx - 0x10], edi
lea r8d, [rdi + 1]
mov rax, qword [rbx]
mov word [rax + rdi*2], bp
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14003c338
mov eax, ebp
jmp 0x14003c345
movsxd rdx, dword [rcx - 0xc]
call fcn.1401da4a4
test eax, eax
js 0x14003c380
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14003c380
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
jmp 0x14003c36b
mov rax, qword [rcx]
mov rax, qword [rax + 0x118]
call qword [case.0x1400887c2.0]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80070057
call fcn.140004150
int3
Function at 0x14003c920
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
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x14003c9d9
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x14003c9d9
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14003c9d9
test rdi, rdi
je 0x14003c9d9
xor r14d, r14d
xor esi, esi
call fcn.140045490
lea r8, str.AFX_DIALOG_LAYOUT
mov rdx, rdi
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x14003c9b9
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rdi
mov rcx, rbp
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14003c9d9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
mov r8d, r14d
mov rdx, rsi
mov rcx, rbx
call fcn.14005b7f4
mov edi, eax
test eax, eax
je 0x14003c9d5
mov rcx, rbx
call fcn.14003c5e8
mov eax, edi
jmp 0x14003c9db
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 r14
ret

Function at 0x14003d958
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.140059c08
mov rdi, rax
test rax, rax
je 0x14003d9d4
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov esi, eax
test rbx, rbx
je 0x14003d9cf
cmp dword [rbx], 0x40
jb 0x14003d9cf
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 0x14003d9cf
or dword [rbx + 4], 0x80000002
mov rax, rsi
jmp 0x14003d9d8
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140042358
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
mov rbx, qword [rcx + 0x100]
xor r14d, r14d
mov rdi, rcx
mov rsi, qword [rcx + 0xf8]
cmp qword [rcx + 0xf0], r14
je 0x1400423bf
call fcn.140045490
mov rdx, qword [rdi + 0xf0]
lea r8d, [r14 + 5]
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1400423bf
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rsi, rsi
je 0x1400423d0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
mov eax, 1
test rbx, rbx
je 0x140042415
mov edx, 0xffff
lea rcx, [rbx + 0xc]
cmp word [rbx + 2], dx
jne 0x1400423f4
movzx r8d, word [rbx + 0x12]
movzx edx, word [rbx + 0x14]
jmp 0x1400423ff
movzx edx, word [rcx]
mov rcx, rbx
movzx r8d, word [rbx + 0xa]
test dword [rcx], 0x1801
jne 0x140042412
test r8w, r8w
jne 0x140042412
test dx, dx
je 0x140042415
mov eax, r14d
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 0x140042430
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 rbx, rcx
cmp rdx, 0x10000
jae 0x14004246f
cmp dword [rcx + 0xe8], 0
jne 0x14004246f
movzx eax, dx
mov dword [rcx + 0xe8], eax
call fcn.140045490
mov r8d, 5
mov rdx, rdi
mov rsi, qword [rax + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1400424b3
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400424b3
mov r9, rsi
mov r8, rbp
mov rdx, rax
mov rcx, rbx
call fcn.1400427e8
jmp 0x1400424b5
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400424cc
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 rsi, r8
mov rbx, rdx
mov rbp, rcx
call fcn.140045490
mov r8d, 5
mov rdx, rbx
mov rdi, qword [rax + 0x18]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140042536
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140042536
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r9, rdi
mov r8, rsi
mov rdx, rax
mov rcx, rbp
call fcn.140042550
jmp 0x140042538
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004e4dc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14, rdx
mov rbp, rcx
call fcn.140045490
mov r8d, 0xf1
mov rdx, r14
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor r15d, r15d
test rax, rax
je 0x14004e5ed
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14004e5ed
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14004e5ed
movzx ecx, word [rax + 6]
lea eax, [r15 + 4]
mul rcx
lea rcx, [r15 - 1]
cmovo rax, rcx
mov rcx, rax
call fcn.140053394
mov rsi, rax
mov r9d, r15d
movzx eax, word [rbx + 6]
cmp r15w, ax
jae 0x14004e58f
mov rdx, rsi
lea r8, [rbx + 8]
movzx ecx, word [r8]
inc r9d
mov dword [rdx], ecx
lea r8, [r8 + 2]
movzx eax, word [rbx + 6]
lea rdx, [rdx + 4]
cmp r9d, eax
jl 0x14004e575
movzx r8d, ax
mov rdx, rsi
mov rcx, rbp
call fcn.14004edf8
mov rcx, rsi
mov edi, eax
call fcn.140034950
test edi, edi
je 0x14004e5e9
movzx ecx, word [rbx + 4]
movzx eax, word [rbx + 2]
mov dword [rsp + 0x60], eax
add eax, 7
mov dword [rsp + 0x68], eax
lea eax, [rcx + 7]
mov dword [rsp + 0x64], ecx
mov r8, qword [rsp + 0x60]
mov rcx, rbp
mov dword [rsp + 0x6c], eax
mov rdx, qword [rsp + 0x68]
call fcn.14004f000
mov rdx, r14
mov rcx, rbp
call fcn.14004e460
mov edi, eax
mov eax, edi
jmp 0x14004e5ef
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret