joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005f8f0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x450
mov r14, rdx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebp, ebp
test rax, rax
je 0x14005f934
lea r8d, [rbp + 0x64]
mov rcx, rax
lea rdx, [rsp + 0x180]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x14005f93c
mov word [rsp + 0x180], bp
mov rbx, qword [0x140127d48]
mov rsi, 0xffffffffffffffff
mov word [rsp + 0x80], bp
test rbx, rbx
je 0x14005fa18
nop dword [rax + rax]
cmp byte [rbx + 0x16], bpl
je 0x14005f9b2
mov rcx, qword [rbx]
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
mov dword [rsp + 0x20], ebp
xor edx, edx
call fcn.1400da524
test rax, rax
je 0x14005f98d
mov rax, qword [rax + 0x20]
jmp 0x14005f996
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r9, rax
lea r8, [0x140106a68]
mov edx, 0x7d
lea rcx, [rsp + 0x80]
call fcn.14009c920
mov rbx, qword [rbx + 0x18]
test rbx, rbx
jne 0x14005f960
cmp word [rsp + 0x80], bp
je 0x14005fa18
lea rcx, [rsp + 0x80]
mov rax, rsi
inc rax
cmp word [rcx + rax*2], bp
jne 0x14005f9d0
cmp rax, 0x7b
jbe 0x14005fa0b
lea rdi, [rsp + 0x80]
mov ebx, 0x7f
lea rdi, [rdi + rax*2]
sub rbx, rax
mov r8, rbx
lea rdx, [0x140103150]
mov rcx, rdi
call fcn.1400cee44
mov word [rdi + rbx*2], bp
jmp 0x14005fa18
cmp word [rsp + rax*2 + 0x7e], 0x20
jne 0x14005fa18
mov word [rsp + rax*2 + 0x7e], bp
mov rax, qword [0x140125ae0]
cmp byte [rax + 0x7c], bpl
je 0x14005fa33
cmp byte [0x140127dbd], bpl
mov ebx, 1
je 0x14005fa35
mov ebx, ebp
mov eax, dword [0x140125b08]
cmp eax, 1
jle 0x14005fa43
lea ebp, [rax - 1]
mov cl, 1
call fcn.140022750
movzx ecx, al
lea rdx, [rsp + 0x250]
call fcn.140022b80
mov edx, dword [0x140125b08]
lea r11, [0x140100a30]
mov r10d, dword [0x140125ae8]
lea r8, [0x140106a70]
mov qword [rsp + 0x70], rax
lea r9, [0x140100a28]
mov eax, dword [0x140125b30]
lea rcx, [0x1400fbbd0]
mov dword [rsp + 0x68], eax
sub r10d, ebx
mov dword [rsp + 0x60], edx
lea rax, [rsp + 0x80]
mov dword [rsp + 0x58], r10d
cmp edx, 1
mov edi, 0xfffe
cmovg rcx, r8
mov edx, edi
cmp qword [0x140125e00], 0
mov r8, r9
mov qword [rsp + 0x50], rcx
mov rcx, r14
mov dword [rsp + 0x48], ebp
cmove r8, r11
cmp qword [0x140125e08], 0
mov qword [rsp + 0x40], rax
mov eax, dword [0x140127d58]
cmove r9, r11
mov dword [rsp + 0x38], eax
mov eax, dword [0x140127d5c]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea r8, [0x140106af0]
mov qword [rsp + 0x20], r9
lea r9, [rsp + 0x180]
call fcn.14009c880
movsxd rcx, eax
mov edx, edi
sub edx, eax
lea rbx, [r14 + rcx*2]
mov rcx, rbx
call fcn.140017810
nop word [rax + rax]
cmp word [rbx + rsi*2 + 2], 0
lea rsi, [rsi + 1]
jne 0x14005fb30
cmp qword [0x140125b40], 0
lea rax, [0x140106820]
lea rbx, [rbx + rsi*2]
lea r8, [0x140106c60]
mov rcx, rbx
cmovne r8, rax
mov rax, rbx
sub rax, r14
sar rax, 1
sub edi, eax
mov edx, edi
call fcn.14009c880
lea r11, [rsp + 0x450]
movsxd rcx, eax
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
lea rax, [rbx + rcx*2]
mov rbx, qword [r11 + 0x10]
mov rsp, r11
pop r14
ret
Function at 0x140061b00
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value
Set current directory

Disassembly:
push rbx
push rbp
sub rsp, 0x458
mov rbp, rcx
mov rbx, rdx
mov rcx, qword [0x140127da8]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne r8b
mov byte [rbx], r8b
jne 0x140061cbd
mov qword [rsp + 0x470], rsi
mov qword [rsp + 0x450], rdi
xor edi, edi
mov esi, edi
nop word [rax + rax]
mov r9d, esi
lea rax, [rsp + 0x480]
or r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x140107428]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140061c9c
mov rcx, qword [rsp + 0x480]
lea rax, [rsp + 0x478]
mov qword [rsp + 0x28], rax
lea rdx, [0x140107410]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x478], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x480]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140061c9c
mov edx, dword [rsp + 0x478]
test edx, edx
je 0x140061c9c
shr edx, 1
mov ecx, edx
dec edx
mov dword [rsp + 0x478], edx
cmp word [rsp + rdx*2 + 0x30], di
jne 0x140061c31
test edx, edx
je 0x140061ca3
mov ecx, edx
mov r8d, edx
nop dword [rax + rax]
lea eax, [r8 - 1]
mov edx, ecx
mov r8d, eax
cmp word [rsp + rax*2 + 0x30], di
jne 0x140061c47
mov dword [rsp + 0x478], eax
mov ecx, eax
mov edx, eax
test eax, eax
jne 0x140061c10
jmp 0x140061c47
mov dword [rsp + 0x478], ecx
cmp ecx, 0x104
jae 0x140061c9c
mov word [rsp + rcx*2 + 0x30], di
mov edx, ecx
test edx, edx
je 0x140061ca3
mov rsi, qword [rsp + 0x470]
movzx eax, word [rsp + rdi + 0x30]
mov word [rsp + rdi + 0x240], ax
lea rdi, [rdi + 2]
test ax, ax
jne 0x140061c53
mov rdi, qword [rsp + 0x450]
test edx, edx
je 0x140061cb1
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
add rsp, 0x458
pop rbp
pop rbx
ret
mov word [rsp + 0x30], di
mov edx, edi
test esi, esi
jne 0x140061c4b
mov esi, 0x200
jmp 0x140061b50
xor al, al
add rsp, 0x458
pop rbp
pop rbx
ret
mov al, 1
add rsp, 0x458
pop rbp
pop rbx
ret
Function at 0x140061cd0
Capabilities:
Set current directory

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x150
movzx ebp, dl
lea rsi, [0x1400fbbd0]
lea rdx, [rax + 8]
mov rbx, rcx
mov rdi, rcx
call fcn.140061b00
test al, al
je 0x140061dc8
test bpl, bpl
je 0x140061d3c
cmp byte [rsp + 0x160], 0
je 0x140061d3c
mov r9, rbx
lea r8, [0x140107290]
mov edx, 0x40
lea rcx, [rsp + 0x50]
call fcn.14009c880
mov rdi, qword [0x140127da0]
lea rsi, [rsp + 0x50]
mov byte [rsp + 0x40], 0
lea rcx, [0x140127620]
xor ebp, ebp
mov byte [rsp + 0x38], 0
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov qword [rsp + 0x28], rbp
mov r8, rsi
mov rdx, rdi
mov byte [rsp + 0x20], bpl
call fcn.14005fba0
test eax, eax
jne 0x140061da5
mov r9, rbx
lea r8, [0x1401072a8]
lea edx, [rbp + 0x40]
lea rcx, [rsp + 0xd0]
call fcn.14009c880
xorps xmm3, xmm3
mov qword [rsp + 0x20], rbp
xor r8d, r8d
lea edx, [rbp + 0x10]
lea rcx, [rsp + 0xd0]
call fcn.1400a34f0
mov rax, qword [0x140121b10]
lea rcx, [0x1400fbbd0]
test rax, rax
je 0x140061dc2
mov rax, qword [rax]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400635c0
Capabilities:
Set current directory

Disassembly:
push rbx
sub rsp, 0x20
movzx eax, word [rcx]
mov rbx, rcx
test ax, ax
je 0x1400635f8
cmp word [rcx + 2], 0x3a
jne 0x1400635f8
cmp word [rcx + 4], 0
jne 0x1400635f8
mov word [rsp + 0x30], ax
lea rbx, [rsp + 0x30]
xor eax, eax
mov dword [rsp + 0x32], 0x5c003a
mov word [rsp + 0x36], ax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x140063610
mov eax, 0xa0070000
add rsp, 0x20
pop rbx
ret
cmp byte [0x140127dbc], 0
je 0x140063621
mov rcx, rbx
call fcn.140063630
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x140063630
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x10020
call fcn.1400d9ac0
sub rsp, rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x8000
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
lea rdx, [rsp + 0x20]
cmove rdx, rbx
test rdx, rdx
je 0x14006366e
lea rcx, vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
call fcn.140060660
add rsp, 0x10020
pop rbx
ret

Function at 0x140063680
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10028
call fcn.1400d9ac0
sub rsp, rax
lea rdx, [rsp + 0x20]
mov ecx, 0x8000
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1400636b3
lea rcx, [rsp + 0x20]
call fcn.1400cc210
add rsp, 0x10028
ret
xor eax, eax
add rsp, 0x10028
ret
Function at 0x140089690
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x30
mov r14, rdx
mov rbx, rcx
movzx eax, word [rbx]
cmp ax, 0x20
je 0x1400896b0
cmp ax, 9
jne 0x1400896b6
add rbx, 2
jmp 0x1400896a1
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
test ax, ax
je 0x1400898d6
cmp word [rbx + 2], 0
lea rcx, [rbx + 2]
jne 0x1400896e7
mov word [rdx + 2], ax
mov al, 1
mov byte [rdx], 0
jmp 0x1400898d8
mov byte [rdx], 1
xor sil, sil
mov edx, 0x2b
call fcn.1400bb988
mov rbp, rax
test rax, rax
je 0x1400897c8
lea rdi, [rbp - 2]
cmp rdi, rbx
jbe 0x140089728
nop dword [rax]
movzx eax, word [rdi]
cmp ax, 0x20
je 0x14008971f
cmp ax, 9
jne 0x140089728
sub rdi, 2
cmp rdi, rbx
ja 0x140089710
sub rdi, rbx
lea rdx, [0x1401004e0]
sar rdi, 1
mov rcx, rbx
inc rdi
mov r8, rdi
call fcn.1400c04f0
test eax, eax
jne 0x14008974d
or sil, 1
jmp 0x140089787
mov r8, rdi
lea rdx, [0x1401004f0]
mov rcx, rbx
call fcn.1400c04f0
test eax, eax
jne 0x140089769
or sil, 4
jmp 0x140089787
mov r8, rdi
lea rdx, [0x1401004f8]
mov rcx, rbx
call fcn.1400c04f0
test eax, eax
jne 0x1400898d6
or sil, 0x10
lea rbx, [rbp + 2]
nop dword [rax + rax]
movzx eax, word [rbx]
cmp ax, 0x20
je 0x14008979f
cmp ax, 9
jne 0x1400897a5
add rbx, 2
jmp 0x140089790
test ax, ax
je 0x1400898d6
mov edx, 0x2b
lea rcx, [rbx + 2]
call fcn.1400bb988
mov rbp, rax
test rax, rax
jne 0x140089703
xor ecx, ecx
cmp word [rbx + 2], cx
jne 0x14008988e
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, word [rbx]
mov rdi, rax
call qword [sym.imp.USER32.dll_CharLowerW]
mov rbx, rax
cmp ax, 0xa
jne 0x1400897f6
mov dl, 0xd
jmp 0x1400898a9
mov rdx, rdi
movzx ecx, bx
call qword [sym.imp.USER32.dll_VkKeyScanExW]
movsx rdx, ax
mov rcx, rdx
shr rcx, 8
cmp cl, 0xff
jne 0x140089847
cmp dl, 0xff
jne 0x140089847
cmp bx, 0x5a
ja 0x140089836
cmp bx, 0x41
jb 0x14008984c
movzx edx, bl
cmp bx, 0x5a
ja 0x140089845
cmp bx, 0x41
jb 0x140089845
mov cl, 1
jmp 0x140089847
lea eax, [rbx - 0x61]
cmp ax, 0x19
ja 0x14008984c
movzx edx, bl
and dl, 0xdf
xor cl, cl
test cl, 0x38
je 0x140089850
xor dl, dl
jmp 0x1400898a9
movzx eax, cl
and al, 6
cmp al, 6
jne 0x14008985f
or sil, 8
jmp 0x14008987d
test cl, 2
je 0x14008986e
test sil, 3
jne 0x14008986e
or sil, 1
test cl, 4
je 0x14008987d
test sil, 0xc
jne 0x14008987d
or sil, 4
test cl, 1
je 0x1400898a9
test sil, 0x30
jne 0x1400898a9
or sil, 0x10
jmp 0x1400898a9
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140023350
movzx edx, al
movzx eax, dl
mov word [r14 + 2], ax
test sil, 1
je 0x1400898bb
or byte [r14], 8
test sil, 4
je 0x1400898c5
or byte [r14], 0x10
test sil, 0x10
je 0x1400898cf
or byte [r14], 4
test dl, dl
setne al
jmp 0x1400898d8
xor al, al
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140097c50
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x30], rbx
mov r14, rdx
mov qword [rbp + 0x38], rsi
mov rbx, rcx
mov esi, 1
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140097d44
xor r12d, r12d
xor r9d, r9d
mov qword [rsp + 0x30], r12
xor r8d, r8d
mov dword [rsp + 0x28], r12d
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140097d44
mov rbx, 0xffffffffffffffff
nop dword [rax]
cmp word [r14 + rbx*2 + 2], r12w
lea rbx, [rbx + 1]
jne 0x140097cc0
lea edx, [rbx + 4]
lea eax, [rdx + rdx]
mov ecx, eax
add rax, 0xf
cmp rax, rcx
ja 0x140097ce7
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400d9ac0
sub rsp, rax
lea r8, [0x14010a1e8]
mov r9, r14
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.14009c880
lea ebx, [rbx*2 + 6]
mov qword [rsp + 0x20], r12
mov r8d, ebx
lea r9, [rbp + 0x40]
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140097d32
cmp dword [rbp + 0x40], ebx
je 0x140097d35
mov esi, r12d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
cmove esi, r12d
mov rbx, qword [rbp + 0x30]
mov eax, esi
mov rsi, qword [rbp + 0x38]
mov rsp, rbp
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400988a0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
sub rsp, 0x240
xor esi, esi
mov dword [r11 + 0x10], 0xff
lea rax, [r11 + 0x20]
xor edx, edx
mov qword [rsp + 0x38], rax
lea r9, [r11 + 0x10]
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x40]
mov qword [rsp + 0x28], rsi
mov rdi, rcx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x1400989ac
nop
mov rax, qword [0x14011f188]
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov rcx, rdi
mov r9d, dword [rax + 0xb0]
lea rax, [rsp + 0x270]
or r9d, 0x20019
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400989b9
mov rcx, qword [rsp + 0x270]
call fcn.1400988a0
mov rcx, qword [rsp + 0x270]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1400989b9
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
test eax, eax
jne 0x1400989b9
lea rax, [rsp + 0x278]
mov dword [rsp + 0x268], 0xff
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x268]
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x40]
mov qword [rsp + 0x28], rsi
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x1400988f0
xor eax, eax
add rsp, 0x240
pop rdi
pop rsi
pop rbx
ret
mov eax, ebx
add rsp, 0x240
pop rdi
pop rsi
pop rbx
ret

Function at 0x14009a450
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 0x40]
lea r9, [rsp + 0x40]
xor eax, eax
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x40]
add rsp, 0x38
ret

Function at 0x14009a480
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 0x40]
lea r9, [rsp + 0x40]
xor eax, eax
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x40]
add rsp, 0x38
ret

Function at 0x14009a510
Capabilities:
Get file size

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0x40]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor ecx, ecx
test eax, eax
cmovne rcx, qword [rsp + 0x30]
mov rax, rcx
add rsp, 0x28
ret

Function at 0x14009e0d0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x10020
call fcn.1400d9ac0
sub rsp, rax
mov rdi, rdx
lea rcx, [0x140102e68]
lea rdx, [rsp + 0x20]
mov r8d, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test eax, eax
je 0x14009e139
lea rcx, [rbx + 1]
cmp rcx, 0x7fff
ja 0x14009e139
lea r8, [rbx*2 + 2]
mov rcx, rdi
lea rdx, [rsp + 0x20]
call fcn.1400bba40
mov eax, ebx
mov rbx, qword [rsp + 0x10030]
add rsp, 0x10020
pop rdi
ret
xor eax, eax
mov word [rdi], ax
mov eax, ebx
mov rbx, qword [rsp + 0x10030]
add rsp, 0x10020
pop rdi
ret
Function at 0x1400a4c30
Capabilities:
Enumerate gui resources
Find taskbar

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x104f0
call fcn.1400d9ac0
sub rsp, rax
movzx ebp, dl
mov rdi, rcx
mov byte [rcx], 0
xor ebx, ebx
cmp qword [0x1401275d8], rcx
je 0x1400a4c6e
mov qword [0x1401275d8], rcx
mov dword [0x1401275e8], ebx
cmp qword [0x1401275e0], rbx
jne 0x1400a4c91
mov ecx, 0xfa0
call fcn.1400990d0
test rax, rax
je 0x1400a4e66
mov qword [0x1401275e0], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rsi, rax
mov edx, 4
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindow]
test rax, rax
je 0x1400a4cc6
nop dword [rax]
mov rsi, rax
mov edx, 4
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindow]
test rax, rax
jne 0x1400a4cb0
mov r8, qword [0x14011f188]
sub r8, 0xffffffffffffff80
mov rdx, rsi
mov rcx, rdi
call fcn.1400a4e70
test rax, rax
je 0x1400a4ceb
mov ecx, ebx
mov dword [0x1401275e8], ebx
jmp 0x1400a4cf1
mov ecx, dword [0x1401275e8]
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
lea rax, [0x1400fbbd0]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x9c], ebx
xorps xmm0, xmm0
movdqa xmmword [rsp + 0xa0], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0xd0], xmm1
test bpl, bpl
je 0x1400a4d3b
test ecx, ecx
mov byte [rsp + 0x99], 0
je 0x1400a4d43
mov byte [rsp + 0x99], 1
mov rax, qword [0x1401275e0]
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0xb8], ecx
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0xc0], rax
lea rdx, [rsp + 0x20]
lea rcx, [0x1400a4f90]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x1400a4df1
call qword [sym.imp.USER32.dll_GetLastActivePopup]
mov rcx, rax
call fcn.1400a1c10
mov rdx, qword [rsp + 0xa0]
mov r8, qword [0x1401275e0]
movsxd rcx, dword [0x1401275e8]
test ecx, ecx
jle 0x1400a4dbf
mov rax, r8
nop
cmp qword [rax], rdx
je 0x1400a4dd3
inc ebx
add rax, 8
cmp ebx, ecx
jl 0x1400a4db0
cmp ecx, 0x1f4
jge 0x1400a4dd3
mov qword [r8 + rcx*8], rdx
inc ecx
mov dword [0x1401275e8], ecx
mov rax, qword [0x14011f188]
mov ecx, dword [rax + 0x90]
cmp ecx, 0xffffffff
jle 0x1400a4e43
mov edx, 1
call fcn.1400016f0
jmp 0x1400a4e43
mov eax, dword [0x1401275e8]
test eax, eax
je 0x1400a4e2b
cmp eax, 1
setg al
mov dword [0x1401275e8], ebx
test al, al
je 0x1400a4e43
mov rax, qword [0x1401275e0]
mov qword [rax], rsi
mov dword [0x1401275e8], 1
xor edx, edx
mov rcx, rdi
call fcn.1400a4c30
jmp 0x1400a4e43
xor edx, edx
lea rcx, [0x1401030e0]
call qword [sym.imp.USER32.dll_FindWindowW]
mov rcx, rax
call fcn.1400a1c10
nop
mov rcx, qword [rsp + 0x30]
call fcn.1400c0480
lea r11, [rsp + 0x104f0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.1400111a0
int3
Function at 0x2fc4dba50
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.2fc4dcb30
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4dc452
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fe108]
test eax, eax
je 0x2fc4dc4ea
lea rax, [0x2fc4fe0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fe110]
mov qword [rbp - 8], rax
jmp 0x2fc4dc4ce
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 0x2fc4dc4c2
cmp qword [rbp - 0x10], 0
je 0x2fc4dc4c2
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 0x2fc4dc488
lea rax, [0x2fc4fe0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4dc4eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4dc5f0
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 0x2fc4dc618
mov eax, 0
jmp 0x2fc4dc666
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 0x2fc4dc641
mov eax, 0
jmp 0x2fc4dc666
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 0x2fc4dc661
mov eax, 0
jmp 0x2fc4dc666
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4dc66c
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 0x2fc4dc6ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4dc6e1
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 0x2fc4dc6e1
mov rax, qword [rbp - 8]
jmp 0x2fc4dc6ff
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 0x2fc4dc6b4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d5620
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.2fc4d6700
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d6022
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f8108]
test eax, eax
je 0x2fc4d60ba
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f8110]
mov qword [rbp - 8], rax
jmp 0x2fc4d609e
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 0x2fc4d6092
cmp qword [rbp - 0x10], 0
je 0x2fc4d6092
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 0x2fc4d6058
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d60bb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d61c0
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 0x2fc4d61e8
mov eax, 0
jmp 0x2fc4d6236
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 0x2fc4d6211
mov eax, 0
jmp 0x2fc4d6236
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 0x2fc4d6231
mov eax, 0
jmp 0x2fc4d6236
mov eax, 1
add rsp, 0x20
pop rbp
ret