joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180134d88
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180134da8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18011acf4
or eax, 0xffffffff
jmp 0x180134daa
xor eax, eax
add rsp, 0x28
ret
Function at 0x1801374b4
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1801374e4
xor eax, eax
jmp 0x1801375a7
mov rbp, rbx
cmp word [rax], si
je 0x180137509
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1801374f0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1801374ec
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18012e9f0
movsxd r14, eax
test eax, eax
jne 0x180137547
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1801374dd
mov rcx, r14
call fcn.18012e900
mov rdi, rax
test rax, rax
jne 0x180137560
xor ecx, ecx
call fcn.18012ab54
jmp 0x18013753c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18012e9f0
test eax, eax
jne 0x180137591
mov rcx, rdi
call fcn.18012ab54
jmp 0x18013759b
xor ecx, ecx
call fcn.18012ab54
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1801375c4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x18013764b
mov rsi, rbx
cmp word [rax], bp
je 0x18013760a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1801375f4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1801375f0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.18012e900
mov rdi, rax
test rax, rax
je 0x180137638
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1801430b0
mov rbp, rdi
xor ecx, ecx
call fcn.18012ab54
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18013bc90
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.18012cc48
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x18013bd31
cmp ebx, dword [rsp + 0x30]
je 0x18013bd2a
test esi, esi
je 0x18013bd2a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18013bd05
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18013bd12
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18013bcef
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18013bd16
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18013bd33
mov eax, 1
jmp 0x18013bd33
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18013ddd8
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1802ad040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x18013de22
call fcn.18011ad60
mov dword [rax], 0xf
call fcn.18011ad80
mov dword [rax], 0xd
call fcn.18011bf04
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18010fee0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x18013de2d
lea eax, [rbx + 1]
jmp 0x18013de0f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x18013de0d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x18013de0f
Function at 0x18013fd5c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.18011a490
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x18013fde6
cmp byte [rbp - 0x21], r15b
je 0x18013fde1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x18013fe1c
call fcn.18012ef64
test eax, eax
jne 0x18013fe08
cmp byte [rbp - 0x21], r15b
je 0x18013fe00
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x18013fe1c
cmp byte [rbp - 0x21], r15b
je 0x18013fe19
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.18011a864
test eax, eax
jne 0x18013febc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.18011a490
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x18013fe5b
cmp byte [rbp - 0x21], r15b
je 0x18013fe90
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x18013fe90
call fcn.18012ef64
test eax, eax
jne 0x18013fe7c
cmp byte [rbp - 0x21], r15b
je 0x18013fe75
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x18013fe90
cmp byte [rbp - 0x21], r15b
je 0x18013fe8d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.18011a864
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x18013febc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x18013febf
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x18013fecd
mov rcx, rdi
call fcn.18012ab54
cmp byte [rbp + 0x3f], r15b
je 0x18013fedc
mov rcx, qword [rbp + 0x27]
call fcn.18012ab54
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180140ef8
Capabilities:
Clear file content

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
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1801346c4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1801346c4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180141048
cmp rax, 0xffffffffffffffff
je 0x180141048
xor edi, edi
test rbp, rbp
jle 0x180140ff3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18012f8e8
mov rbx, rax
test rax, rax
jne 0x180140f80
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180140fe9
mov edx, 0x8000
mov ecx, r14d
call fcn.180140d7c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.180131eb8
cmp eax, 0xffffffff
je 0x180140fc9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180140f90
mov edx, r15d
mov ecx, r14d
call fcn.180140d7c
jmp 0x180140fe9
cmp byte [rsi + 0x38], dil
je 0x180140fe0
cmp dword [rsi + 0x34], 5
jne 0x180140fe0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180140fe9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18012ab54
jmp 0x18014105c
jns 0x18014105c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1801346c4
cmp rax, 0xffffffffffffffff
jne 0x180141014
cmp byte [rsi + 0x30], dil
je 0x18014105c
mov edi, dword [rsi + 0x2c]
jmp 0x18014105c
mov ecx, r14d
call fcn.1801331a4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18014105c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x18014105c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180141055
mov eax, dword [rsi + 0x2c]
jmp 0x18014105a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1801346c4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1801417a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1801417c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1801417c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400015b0
Capabilities:
Create process on windows
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x80], rax
movdqa xmm1, xmmword [0x140003300]
mov dl, 0x67
movd ecx, xmm1
movdqa xmm0, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov r8b, 0x6a
mov r9b, 0x21
xor dl, cl
psrldq xmm0, 1
xor byte [rsp + 0x32], cl
xor r8b, cl
xor byte [rsp + 0x33], cl
xor r9b, cl
xor byte [rsp + 0x34], cl
mov r10b, 0x39
xor byte [rsp + 0x35], cl
xor r10b, cl
xor byte [rsp + 0x36], cl
mov r11b, 0x3d
xor byte [rsp + 0x37], cl
xor r11b, cl
xor byte [rsp + 0x38], cl
mov bl, 0x3e
xor byte [rsp + 0x39], cl
xor bl, cl
xor byte [rsp + 0x3a], cl
xor byte [rsp + 0x3b], cl
xor byte [rsp + 0x3c], cl
xor byte [rsp + 0x3d], cl
xor byte [rsp + 0x3e], cl
xor byte [rsp + 0x3f], cl
mov byte [rsp + 0x40], dl
mov dl, 0x33
mov byte [rsp + 0x41], r8b
xor dl, 0x56
movd eax, xmm0
mov r8b, 0x38
xor r8b, 0x56
mov byte [rsp + 0x42], r9b
xor r9d, r9d
mov byte [rsp + 0x4b], dl
xor al, cl
mov byte [rsp + 0x4c], r8b
mov byte [rsp + 0x31], al
lea r8, [rsp + 0x31]
mov cl, 0x26
mov dword [rsp + 0x28], r9d
xor cl, 0x56
mov byte [rsp + 0x43], r10b
mov al, 0x39
mov byte [rsp + 0x4a], cl
xor al, 0x56
mov byte [rsp + 0x44], r11b
xor ecx, ecx
mov byte [rsp + 0x49], al
lea rdx, [rsp + 0x49]
mov byte [rsp + 0x45], bl
mov byte [rsp + 0x46], 0
mov byte [rsp + 0x48], 0x56
mov byte [rsp + 0x4d], r9b
mov qword [rsp + 0x20], r9
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001799
lea rdi, str.cs2.exe
nop word [rax + rax]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x130
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140001790
nop
xor eax, eax
lea rdx, [rsp + 0x7c]
nop word [rax + rax]
movzx ecx, byte [rdx + rax]
inc rax
cmp cl, byte [rdi + rax - 1]
jne 0x140001750
cmp rax, 8
jne 0x140001720
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x1f40
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140001000
xor eax, eax
jmp 0x14000179e
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140001710
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400016f0
jmp 0x140001799
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.1400017e0
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140002340
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000238a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000238a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000238a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000238a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000238a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000238c
xor al, al
add rsp, 0x28
ret
Function at 0x2fc4cdd50
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.2fc4cee30
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4ce752
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f1108]
test eax, eax
je 0x2fc4ce7ea
lea rax, [0x2fc4f10e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f1110]
mov qword [rbp - 8], rax
jmp 0x2fc4ce7ce
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 0x2fc4ce7c2
cmp qword [rbp - 0x10], 0
je 0x2fc4ce7c2
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 0x2fc4ce788
lea rax, [0x2fc4f10e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4ce7eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4ce8f0
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 0x2fc4ce918
mov eax, 0
jmp 0x2fc4ce966
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 0x2fc4ce941
mov eax, 0
jmp 0x2fc4ce966
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 0x2fc4ce961
mov eax, 0
jmp 0x2fc4ce966
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4ce96c
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 0x2fc4ce9ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4ce9e1
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 0x2fc4ce9e1
mov rax, qword [rbp - 8]
jmp 0x2fc4ce9ff
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 0x2fc4ce9b4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x10001ce40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rsi, rax
test rbx, rbx
je 0x10001ce74
cmp rbx, rax
je 0x10001ce74
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetLastActivePopup]
mov rsi, rax
lea rbx, [rdi + 0x10]
test rbx, rbx
je 0x10001cf98
test rdi, rdi
je 0x10001cf98
mov qword [rbx], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rcx, [0x1000c6a58]
mov dword [rbx + 8], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r11, qword [0x1000c6a80]
mov qword [rbx + 0x10], r11
lea rcx, [0x1000c6a58]
mov qword [0x1000c6a80], rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx edx, word [rdi + 0x40]
mov rcx, qword [0x1000c6a00]
mov r8d, 5
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x10001cf92
mov rcx, qword [0x1000c6a00]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x10001cf92
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x10001cf92
mov rcx, qword [0x1000c6ba0]
and qword [rsp + 0x20], 0
lea r9, [0x10001d1ec]
mov dil, byte [rcx + 0x5c31]
mov byte [rcx + 0x5c31], 1
mov rcx, qword [0x1000c6a00]
mov r8, rsi
mov rdx, rax
call qword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x10001cf82
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [0x1000c6ba0]
lea ecx, [rbx + 9]
test eax, eax
mov byte [rdx + 0x5c31], dil
cmove eax, ecx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rax, qword [0x1000c6ba0]
mov byte [rax + 0x5c31], dil
jmp 0x10001cf6f
or rax, 0xffffffffffffffff
jmp 0x10001cf72
xor r9d, r9d
xor r8d, r8d
mov ecx, 0xc0000005
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x10001d10c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
and qword [rdx], 0
lea rsi, [rcx + 0x10]
mov rdi, rdx
mov rbx, rcx
test rsi, rsi
je 0x10001d1ce
test rcx, rcx
je 0x10001d1ce
mov qword [rsi], rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rcx, [0x1000c6a58]
mov dword [rsi + 8], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r11, qword [0x1000c6a80]
mov qword [rsi + 0x10], r11
lea rcx, [0x1000c6a58]
mov qword [0x1000c6a80], rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx edx, word [rbx + 0x40]
mov rcx, qword [0x1000c6a00]
mov r8d, 5
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
jne 0x10001d1a1
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [0x1000c6a00]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x10001d18f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x10001d18f
mov qword [rdi], rax
mov eax, 1
jmp 0x10001d191
xor r9d, r9d
xor r8d, r8d
mov ecx, 0xc0000005
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]

Function at 0x10001e3c4
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rdx, [rcx + 0x70]
mov rcx, qword [rcx + 0x288]
mov r8d, 0x104
call qword [sym.imp.USER32.dll_GetWindowTextW]
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
lea rcx, [rdi + 0x70]
call fcn.10002f32c
mov ebx, eax
test eax, eax
jns 0x10001e41a
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x10001e441
or edx, 0xffffffff
lock xadd dword [rcx + 8], edx
dec edx
test edx, edx
jmp 0x10001e430
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x10001e441
or ecx, 0xffffffff
lock xadd dword [rax + 8], ecx
dec ecx
test ecx, ecx
jg 0x10001e441
mov rcx, qword [rsp + 0x30]
mov edx, 1
mov rax, qword [rcx]
call qword [rax]
test ebx, ebx
js 0x10001e456
mov rcx, qword [rdi + 8]
mov edx, 1
call qword [sym.imp.USER32.dll_EndDialog]
jmp 0x10001e47b
mov rcx, qword [rdi + 0x288]
call qword [sym.imp.USER32.dll_SetFocus]
mov rcx, qword [0x1000c6ba0]
xor r9d, r9d
lea r8d, [r9 + 0x10]
mov edx, 0x18a6
call fcn.100023b84
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1000254e8
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
xor r8d, r8d
mov edi, edx
mov rbx, rcx
call fcn.100026bc4
test eax, eax
jne 0x100025669
cmp byte [rbx + 0x5c30], al
jne 0x100025669
test edi, edi
je 0x100025646
mov rcx, qword [rbx + 0x5c28]
test rcx, rcx
je 0x10002553f
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x10002553f
lea edi, [rax + 1]
jmp 0x100025541
xor edi, edi
cmp qword [rbx + 0x5c28], 0
mov esi, 5
je 0x100025598
mov rcx, qword [rbx + 0x5c28]
mov rax, qword [rcx]
call qword [rax + 0x28]
test edi, edi
je 0x100025598
mov rcx, qword [rbx + 0x5c28]
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x100025585
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x100025669
mov rcx, qword [rbx + 0x5c28]
mov edx, esi
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x2c
call qword [sym.imp.USER32.dll_GetWindowPlacement]
cmp dword [rsp + 0x28], 2
mov rcx, qword [rbx + 8]
mov eax, 9
cmove esi, eax
call qword [sym.imp.USER32.dll_IsWindowVisible]
mov rcx, qword [rbx + 8]
mov edx, esi
mov edi, eax
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rbx
call fcn.10002788c
cmp dword [rbx + 0x5c68], 0
jne 0x100025621
test edi, edi
jne 0x100025621
cmp dword [rbx + 0xb64], edi
jne 0x100025621
cmp dword [rbx + 0xb68], edi
jle 0x100025602
lea rdx, [0x100005ce8]
jmp 0x100025619
lea rax, [rbx + 0xfa8]
cmp rax, qword [rbx + 0x5c28]
je 0x100025621
lea rdx, [0x100005e08]
mov rcx, rbx
call fcn.100023340
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_GetLastActivePopup]
mov rcx, qword [rbx + 0x5c58]
test rcx, rcx
je 0x10002563b
mov rax, qword [rcx + 8]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x100025669
cmp qword [rbx + 0x5c28], 0
je 0x10002565d
mov rcx, qword [rbx + 0x5c28]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rcx, qword [rbx + 8]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret