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

Disassembly:
cmp rcx, qword [0x0041d098]
jne 0x40c1aa
rol rcx, 0x10
test cx, 0xffff
jne 0x40c1a6
repz ret
ror rcx, 0x10
jmp 0x40d9c0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x0041e510]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x0041e608]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x40da45
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x0041e510]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x40da67
mov rax, qword [rsp + 0x88]
mov qword [0x0041e608], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x0041e5a8], rax
mov rax, qword [0x0041e608]
mov qword [0x0041e480], rax
mov rax, qword [rsp + 0x90]
mov qword [0x0041e590], rax
mov dword [0x0041e470], 0xc0000409
mov dword [0x0041e474], 1
mov rax, qword [0x0041d098]
mov qword [rsp + 0x68], rax
mov rax, qword [0x0041d0a0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x0041e508], eax
mov ecx, 1
call fcn.004119a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x00416678]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x0041e508], 0
jne 0x40daee
mov ecx, 1
call fcn.004119a0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x413180
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
mov r13, rcx
mov edi, r8d
mov r12, rdx
call fcn.0040de00
xor ebx, ebx
cmp qword [0x0041f2d0], rbx
mov rsi, rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
jne 0x4132b1
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbp, rax
jne 0x4131e3
xor eax, eax
jmp 0x413391
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x4131dc
mov rcx, rax
call fcn.0040dd90
lea rdx, str.GetActiveWindow
mov rcx, rbp
mov qword [0x0041f2d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0040dd90
lea rdx, str.GetLastActivePopup
mov rcx, rbp
mov qword [0x0041f2d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0040dd90
lea rcx, [rsp + 0x30]
mov qword [0x0041f2e0], rax
call fcn.0040ff70
test eax, eax
je 0x413267
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.0040d390
cmp dword [rsp + 0x30], 2
jne 0x4132b1
lea rdx, str.GetUserObjectInformationA
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0040dd90
test rax, rax
mov qword [0x0041f2f0], rax
je 0x4132b1
lea rdx, str.GetProcessWindowStation
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0040dd90
mov qword [0x0041f2e8], rax
mov rcx, qword [0x0041f2e8]
cmp rcx, rsi
je 0x413343
cmp qword [0x0041f2f0], rsi
je 0x413343
call fcn.0040de60
call rax
test rax, rax
mov rbp, rax
je 0x41330e
mov rcx, qword [0x0041f2f0]
call fcn.0040de60
lea rcx, [rsp + 0x38]
mov r9d, 0xc
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x40]
mov rcx, rbp
call rax
test eax, eax
je 0x41330e
test byte [rsp + 0x48], 1
jne 0x413343
lea rcx, [rsp + 0x34]
call fcn.0040ffc0
test eax, eax
je 0x413330
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.0040d390
cmp dword [rsp + 0x34], 4
jb 0x41333d
bts edi, 0x15
jmp 0x413377
bts edi, 0x12
jmp 0x413377
mov rcx, qword [0x0041f2d8]
cmp rcx, rsi
je 0x413377
call fcn.0040de60
call rax
test rax, rax
mov rbx, rax
je 0x413377
mov rcx, qword [0x0041f2e0]
cmp rcx, rsi
je 0x413377
call fcn.0040de60
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x0041f2d0]
call fcn.0040de60
mov r9d, edi
mov r8, r12
mov rdx, r13
mov rcx, rbx
call rax
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x140001020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140001053
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140001096
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140001091
cmp rbx, r11
jae 0x140001096
dec edi
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140001080
cmp rbx, r11
jb 0x14000109a
xor eax, eax
jmp 0x1400010a6
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140002120
Capabilities:
Reference http user-agent string

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140254f90]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rcx + 0x38], 0x10
lea r8, [rcx + 0x20]
mov rbx, rcx
jb 0x140002146
mov r8, qword [r8]
mov rcx, qword [rcx + 8]
mov edx, 0x2712
call fcn.14016b320
lea rdx, str.Mozilla_5.0__Macintosh__Intel_Mac_OS_X_10.6__rv:2.0.1__Gecko_20100101_Firefox_4.0.1
lea rcx, [rsp + 0x20]
mov r8d, 0x53
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x30], 0
mov byte [rsp + 0x20], 0
call fcn.140001fc0
cmp qword [rsp + 0x38], 0x10
mov rcx, qword [rbx + 8]
lea r8, [rsp + 0x20]
mov edx, 0x2722
cmovae r8, qword [rsp + 0x20]
call fcn.14016b320
mov rcx, qword [rbx + 8]
mov edx, 0x44
lea r8d, [rdx - 0x3f]
call fcn.14016b320
mov rcx, qword [rbx + 8]
mov edx, 0x34
lea r8d, [rdx - 0x33]
call fcn.14016b320
mov rcx, qword [rbx + 8]
mov edx, 0x63
lea r8d, [rdx - 0x62]
call fcn.14016b320
mov rcx, qword [rbx + 8]
xor r8d, r8d
lea edx, [r8 + 0x2f]
call fcn.14016b320
mov rcx, qword [rbx + 8]
lea r8, [0x140001ac0]
mov edx, 0x4e2b
call fcn.14016b320
mov rcx, qword [rbx + 8]
mov r8, rbx
mov edx, 0x2711
call fcn.14016b320
mov rcx, qword [rbx + 8]
xor r8d, r8d
lea edx, [r8 + 0x40]
call fcn.14016b320
mov rcx, qword [rbx + 8]
xor r8d, r8d
lea edx, [r8 + 0x51]
call fcn.14016b320
cmp qword [rsp + 0x38], 0x10
jb 0x14000223f
mov rcx, qword [rsp + 0x20]
call fcn.1400081f0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401517c0
add rsp, 0x50
pop rbx
ret
Function at 0x140002af0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rsi, rdx
xor edx, edx
mov r12, r8
mov rbx, rcx
xor ebp, ebp
call fcn.1401a842c
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r12
repne scasb al, byte [rdi]
lea rdx, [0x1401bb5f0]
not rcx
lea r13, [rcx - 1]
mov rcx, rbx
call fcn.1401518b8
lea rdx, [0x1401bae34]
mov rcx, rsi
mov rdi, rax
call fcn.1401518b8
mov rcx, rdi
mov rbx, rax
call fcn.140151ecc
test eax, eax
jne 0x140002bb6
nop dword [rax]
mov edx, 1
lea rcx, [rsp + 0x58]
mov r9, rdi
mov r8d, edx
call fcn.140151eac
mov rcx, rdi
call fcn.140151ecc
test eax, eax
jne 0x140002baa
mov eax, ebp
mov r9, rbx
cdq
idiv r13d
movsxd rax, edx
mov edx, 1
movzx ecx, byte [rax + r12]
mov r8d, edx
xor byte [rsp + 0x58], cl
lea rcx, [rsp + 0x58]
call fcn.140151520
inc ebp
mov rcx, rdi
call fcn.140151ecc
test eax, eax
je 0x140002b60
mov rcx, rdi
call fcn.14015162c
mov rcx, rbx
call fcn.14015162c
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x140002be0
Capabilities:
Delete file

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x160
mov rax, qword [0x140254f90]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbp, rdx
mov rdi, rcx
lea rdx, [0x1401bad4b]
mov rcx, rbp
call fcn.140007d90
mov rbx, rax
test rax, rax
je 0x140002c45
mov rdx, rdi
mov rcx, rax
call fcn.140005f20
mov rcx, rbx
test eax, eax
jne 0x140002c40
lea r8, [rsp + 0x20]
or edx, 0xffffffff
call fcn.140005ec0
test eax, eax
je 0x140002c49
mov rcx, rbx
call fcn.1400080c0
xor eax, eax
jmp 0x140002ca2
mov qword [rsp + 0x190], rsi
mov esi, dword [rsp + 0x20]
xor edi, edi
test esi, esi
jle 0x140002c84
nop dword [rax + rax]
lea r8, [rsp + 0x20]
mov edx, edi
mov rcx, rbx
call fcn.140005ec0
lea r8, [rsp + 0x24]
mov edx, edi
mov rcx, rbx
call fcn.140007da0
inc edi
cmp edi, esi
jl 0x140002c60
mov rcx, rbx
call fcn.1400080c0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rsi, qword [rsp + 0x190]
mov eax, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1401517c0
add rsp, 0x160
pop rdi
pop rbp
pop rbx
ret
Function at 0x140004200
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r11d, r8d
mov r10, rdx
mov r9d, ecx
test rdx, rdx
jne 0x140004219
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rdi
not r9d
lea rdi, [0x1401bd3b0]
cmp r11d, 8
jb 0x140004311
mov qword [rsp + 0x10], rbx
mov rbx, r11
shr rbx, 3
nop dword [rax]
movzx ecx, byte [r10]
mov eax, r9d
shr r9d, 8
xor rcx, rax
add r10, 8
add r11d, 0xfffffff8
movzx eax, cl
movzx ecx, byte [r10 - 7]
mov edx, dword [rdi + rax*4]
xor edx, r9d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 6]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 5]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 4]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 3]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 2]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 1]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov r9d, dword [rdi + rax*4]
xor r9d, edx
dec rbx
jne 0x140004240
mov rbx, qword [rsp + 0x10]
test r11d, r11d
je 0x14000433f
nop word [rax + rax]
movzx ecx, byte [r10]
mov eax, r9d
inc r10
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r9d, dword [rdi + rdx*4]
xor r9d, eax
dec r11d
jne 0x140004320
mov rdi, qword [rsp]
not r9d
mov eax, r9d
add rsp, 8
ret

Function at 0x140004350
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov r9d, dword [rcx + 8]
mov r10, rcx
movzx r11d, dl
mov edx, dword [rcx]
mov r8d, r9d
and r8d, 0xfffd
mov ecx, edx
shr edx, 8
or r8d, 2
mov eax, r8d
xor eax, 1
imul eax, r8d
lea r8, [0x1401bd3b0]
shr eax, 8
xor r11b, al
movsx rax, r11b
xor rcx, rax
movzx eax, cl
mov ecx, dword [r8 + rax*4]
xor ecx, edx
movzx eax, cl
mov dword [r10], ecx
movzx ecx, r9b
add eax, dword [r10 + 4]
shr r9d, 8
imul eax, eax, 0x8088405
inc eax
mov dword [r10 + 4], eax
movzx eax, byte [r10 + 7]
xor rcx, rax
mov eax, dword [r8 + rcx*4]
xor eax, r9d
mov dword [r10 + 8], eax
movzx eax, r11b
ret
Function at 0x140004850
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, r8
mov rdi, r9
mov rbp, rdx
mov r10, rcx
imul esi, edx
cmp byte [r9], 0
je 0x1400048a0
mov rdx, rcx
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x48]
mov r8d, esi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000489a
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x48]
jmp 0x1400048d1
mov edx, dword [r9 + 0x2c]
mov ecx, dword [r9 + 0x28]
mov qword [rsp + 0x40], rbx
lea eax, [rdx + rsi]
cmp eax, ecx
jbe 0x1400048b8
sub ecx, edx
mov esi, ecx
add rdx, qword [r9 + 0x20]
mov r8d, esi
mov rcx, r10
call fcn.140151060
add dword [rdi + 0x2c], esi
mov rbx, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x58]
xor edx, edx
div rbp
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400048f0
Capabilities:
Read file on windows

Disassembly:
push rbx
push r12
sub rsp, 0x38
cmp byte [rcx], 0
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x30], rdi
mov edi, 1
mov r12, rdx
mov rbx, rcx
je 0x140004940
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x60]
lea rdx, [rsp + 0x50]
mov r8d, edi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000493a
mov byte [rbx + 0x10], dil
mov esi, dword [rsp + 0x60]
jmp 0x14000497a
mov qword [rsp + 0x58], rbp
mov ebp, dword [rcx + 0x2c]
mov ecx, dword [rcx + 0x28]
lea eax, [rbp + 1]
cmp eax, ecx
jbe 0x140004956
mov edi, ecx
sub edi, ebp
mov rdx, rbp
lea rcx, [rsp + 0x50]
mov r8d, edi
add rdx, qword [rbx + 0x20]
mov esi, edi
call fcn.140151060
lea r11d, [rbp + rdi]
mov rbp, qword [rsp + 0x58]
mov dword [rbx + 0x2c], r11d
mov rdi, qword [rsp + 0x30]
cmp esi, 1
mov rsi, qword [rsp + 0x68]
jne 0x14000499c
movzx eax, byte [rsp + 0x50]
mov dword [r12], eax
xor eax, eax
add rsp, 0x38
pop r12
pop rbx
ret
cmp byte [rbx], 0
je 0x140004992
cmp byte [rbx + 0x10], 0
je 0x140004992
or eax, 0xffffffff
add rsp, 0x38
pop r12
pop rbx
ret
Function at 0x140005d80
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140254f90]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x140005dc0
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140005dc0
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
movzx eax, byte [rbx]
test al, al
je 0x140005e9c
mov qword [rsp + 0x270], rsi
mov rcx, rbx
mov rsi, rbx
nop dword [rax]
cmp al, 0x2f
je 0x140005de8
cmp al, 0x5c
jne 0x140005deb
mov rsi, rcx
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x140005de0
cmp rsi, rbx
je 0x140005e29
sub rsi, rbx
lea rcx, [rsp + 0x130]
mov rdx, rbx
mov r8, rsi
call fcn.140151060
lea rdx, [rsp + 0x130]
mov rcx, rdi
mov byte [rsp + rsi + 0x130], 0
call fcn.140005d80
mov rsi, qword [rsp + 0x270]
mov byte [rsp + 0x20], 0
test rdi, rdi
je 0x140005e5e
lea rcx, [rsp + 0x20]
sub rcx, rdi
nop word [rax + rax]
movzx eax, byte [rdi]
inc rdi
mov byte [rcx + rdi - 1], al
test al, al
jne 0x140005e50
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x20]
repne scasb al, byte [rdi]
xor ecx, ecx
nop dword [rax]
movzx eax, byte [rbx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x140005e70
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140005e9c
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401517c0
mov rbx, qword [rsp + 0x278]
add rsp, 0x250
pop rdi
ret
Function at 0x140007670
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
jne 0x14000768e
mov eax, 0xffffff9a
add rsp, 0x28
pop rdi
pop rsi
ret
cmp dword [rcx + 0x1c], 0
je 0x140007682
cmp qword [rcx + 0x80], 0
je 0x1400076a3
call fcn.140005590
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.1400052c0
test eax, eax
je 0x1400076ca
mov eax, 0xffffff99
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0xb0
mov qword [rsp + 0x48], rbx
call fcn.140152504
mov rbx, rax
test rax, rax
jne 0x1400076f0
lea eax, [rbx - 0x68]
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0x4000
mov qword [rsp + 0x20], rbp
call fcn.140152504
mov ecx, dword [rsp + 0x40]
xor ebp, ebp
mov dword [rbx + 0x68], ecx
mov ecx, dword [rsp + 0x50]
mov qword [rbx], rax
mov dword [rbx + 0x70], ebp
mov dword [rbx + 0x6c], ecx
test rax, rax
jne 0x140007736
mov rcx, rbx
call fcn.1401524c4
mov rbx, qword [rsp + 0x48]
lea eax, [rbp - 0x68]
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov dword [rbx + 0x64], ebp
mov eax, dword [rdi + 0x40]
mov ecx, ebp
cmp dword [rdi + 0x38], ecx
mov dword [rbx + 0x78], eax
mov dword [rbx + 0x74], ebp
mov eax, dword [rdi + 0x38]
sete cl
mov dword [rbx + 0x90], eax
mov rax, qword [rdi]
mov qword [rbx + 0x88], rax
mov eax, dword [rdi + 0x10]
mov dword [rbx + 0x24], ebp
mov dword [rbx + 0x94], eax
test ecx, ecx
jne 0x14000778d
lea rcx, [rbx + 8]
mov qword [rbx + 0x38], rbp
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x48], rbp
call fcn.140004610
test eax, eax
jne 0x14000778d
mov dword [rbx + 0x64], 1
mov eax, dword [rdi + 0x44]
mov dword [rbx + 0x7c], eax
mov eax, dword [rdi + 0x48]
mov dword [rbx + 0x80], eax
movzx eax, byte [rdi + 0x34]
and al, 1
mov byte [rbx + 0x98], al
mov eax, dword [rdi + 0x34]
shr eax, 3
test al, 1
je 0x1400077b8
movzx eax, byte [rdi + 0x3d]
jmp 0x1400077bc
movzx eax, byte [rdi + 0x43]
mov byte [rbx + 0xac], al
movzx eax, byte [rbx + 0x98]
mov dword [rbx + 0x9c], 0x12345678
neg al
mov dword [rbx + 0xa0], 0x23456789
mov dword [rbx + 0xa4], 0x34567890
sbb ecx, ecx
and ecx, 0xc
mov dword [rbx + 0xa8], ecx
test rsi, rsi
je 0x140007862
lea r8, [0x1401bd3b0]
movzx eax, byte [rsi]
test al, al
je 0x140007862
mov edx, dword [rbx + 0x9c]
mov ecx, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [r8 + rax*4]
xor ecx, edx
mov edx, dword [rbx + 0xa4]
movzx eax, cl
mov dword [rbx + 0x9c], ecx
movzx ecx, dl
add eax, dword [rbx + 0xa0]
shr edx, 8
imul eax, eax, 0x8088405
inc eax
mov dword [rbx + 0xa0], eax
movzx eax, byte [rbx + 0xa3]
xor rcx, rax
mov eax, dword [r8 + rcx*4]
xor eax, edx
inc rsi
mov dword [rbx + 0xa4], eax
jne 0x140007800
mov ecx, dword [rdi + 0x7c]
mov eax, dword [rsp + 0x58]
mov dword [rbx + 0x10], ebp
mov rbp, qword [rsp + 0x20]
lea ecx, [rcx + rax + 0x1e]
xor eax, eax
mov dword [rbx + 0x60], ecx
mov qword [rdi + 0x80], rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x140007b80
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r13
sub rsp, 0x20
cmp qword [rcx], 0
mov esi, r9d
mov r13d, r8d
mov rbp, rdx
mov rbx, rcx
jne 0x140007c8f
cmp dword [rcx + 8], 0xffffffff
jne 0x140007c8f
lea rdx, [rcx + 0x150]
mov ecx, 0x104
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbx + 0x150]
repne scasb al, byte [rdi]
not rcx
movzx eax, byte [rcx + rbx + 0x14e]
cmp al, 0x5c
je 0x140007c05
cmp al, 0x2f
je 0x140007c05
xor eax, eax
lea rdi, [rbx + 0x150]
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
movzx eax, word [0x1401bbb1c]
mov word [rdi - 1], ax
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
cmp esi, 1
jne 0x140007c3d
mov r9d, esi
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x140007c3d
mov eax, 0x2000000
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop rsi
pop rbp
ret
lea r9, [rsp + 0x40]
mov r8d, esi
mov edx, r13d
mov rcx, rbp
call fcn.1400046f0
test rax, rax
jne 0x140007c67
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop rsi
pop rbp
ret
mov rcx, rax
call fcn.140007340
xor ecx, ecx
mov edx, 0x200
test rax, rax
mov qword [rbx], rax
cmove ecx, edx
mov eax, ecx
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop rsi
pop rbp
ret
mov eax, 0x1000000
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop rsi
pop rbp
ret
Function at 0x14001572c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
mov r13, rcx
test r8, r8
jne 0x14001575d
call fcn.140034920
mov rdi, qword [rax + 0x18]
mov r8, qword [0x140258a08]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbp, rax
test rax, rax
jne 0x14001577c
xor eax, eax
jmp 0x1400157c8
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x140015778
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
test rax, rax
je 0x1400157bd
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, r12
mov rcx, r13
mov r8d, eax
call fcn.1400155f0
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x14002b350
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 rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.140066a18
mov rsi, rax
test rax, rax
je 0x14002b3cc
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x14002b3c7
cmp dword [rbx], 0x40
jb 0x14002b3c7
mov rcx, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
mov qword [rbx + 8], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageA]
bt rax, 0xd
jb 0x14002b3c7
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x14002b3d0
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 0x140032dac
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 r12
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x140032e14
call fcn.140034920
mov r8d, pe_nt_image_headers64
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x140032e14
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x140032e36
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.1400327a0
mov esi, eax
test rdi, rdi
je 0x140032e34
test rbx, rbx
je 0x140032e34
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret