joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800cc210
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rcx, [rax + 0x19a34f0]
call fcn.18008bbc0
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rcx, [rax + 0x1954de4]
call fcn.18008bbf0
test ebx, ebx
jne 0x1800cc268
test al, al
jne 0x1800cc268
mov ecx, edi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
setne al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor al, al
add rsp, 0x20
pop rdi
ret
Function at 0x1800fc160
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.1800fc3b0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x1800fc27a
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x1800fc1c4
mov rax, qword [0x180141008]
cmp qword [rsp + 0x20], rax
ja 0x1800fc1c4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800fc186
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x1800fc1f5
jmp 0x1800fc27a
cmp dword [rsp + 0x50], 0x10000
jne 0x1800fc25d
cmp qword [rsp + 0x48], 0x10000
jb 0x1800fc25d
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800fc23b
mov rax, qword [rsp + 0x28]
jmp 0x1800fc27c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1800fc24b
xor eax, eax
jmp 0x1800fc27c
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800fc275
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.1800fc3b0
mov qword [rsp + 0x20], rax
jmp 0x1800fc186
xor eax, eax
add rsp, 0x68
ret

Function at 0x1800fc290
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.1800fc3f0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x1800fc3a6
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x1800fc2eb
mov rax, qword [0x180141008]
cmp qword [rsp + 0x20], rax
ja 0x1800fc2eb
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800fc2ad
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x1800fc31c
jmp 0x1800fc3a6
cmp dword [rsp + 0x50], 0x10000
jne 0x1800fc384
cmp qword [rsp + 0x48], 0x10000
jb 0x1800fc384
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800fc362
mov rax, qword [rsp + 0x28]
jmp 0x1800fc3a8
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1800fc372
xor eax, eax
jmp 0x1800fc3a8
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800fc3a1
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.1800fc3f0
mov qword [rsp + 0x20], rax
jmp 0x1800fc2ad
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800fc440
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1800fc9d0
mov qword [rsp + 0x28], 0
cmp qword [0x1801415a8], 0
jne 0x1800fc488
cmp qword [0x1801415a0], 0
je 0x1800fc488
mov rax, qword [0x1801415a0]
mov qword [0x1801415a8], rax
cmp qword [0x1801415a8], 0
je 0x1800fc52e
mov rax, qword [0x1801415a8]
cmp qword [rax + 0x10], 0
je 0x1800fc52e
mov rax, qword [0x1801415a8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1800fc52e
mov rax, qword [0x1801415a8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1800fc52e
mov rax, qword [0x1801415a8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1800fc4f4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1800fc4fb
xor eax, eax
jmp 0x1800fc6a9
mov rax, qword [0x1801415a8]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x1800fc6a9
mov rax, qword [0x1801415a0]
mov qword [0x1801415a8], rax
jmp 0x1800fc550
mov rax, qword [0x1801415a8]
mov rax, qword [rax + 8]
mov qword [0x1801415a8], rax
cmp qword [0x1801415a8], 0
je 0x1800fc59d
cmp qword [0x1801415a8], 0
je 0x1800fc59b
mov rax, qword [0x1801415a8]
cmp qword [rax + 0x10], 0
je 0x1800fc59b
mov rax, qword [0x1801415a8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1800fc59b
mov rax, qword [0x1801415a8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1800fc59b
jmp 0x1800fc4cc
jmp 0x1800fc53e
mov rcx, qword [rsp + 0x60]
call fcn.1800fe8b0
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1800fc6b0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1800fc6a7
mov rax, qword [rsp + 0x48]
mov qword [0x1801415a8], rax
mov rax, qword [0x1801415a8]
mov dword [rax], 0x52727464
mov rax, qword [0x1801415a8]
mov qword [rax + 0x10], 0
mov rax, qword [0x1801415a8]
mov rcx, qword [0x1801415a0]
mov qword [rax + 8], rcx
mov rax, qword [0x1801415a8]
mov qword [0x1801415a0], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1801415a8]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x1800fc658
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x1800fc692
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x1800fc64e
mov rax, qword [0x1801415a8]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x1800fc4cc
xor eax, eax
add rsp, 0x58
ret
Function at 0x1800fd3c0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1800fd407
xor al, al
jmp 0x1800fd4a9
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x1800fd431
xor al, al
jmp 0x1800fd4a9
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x1800fd4a1
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x1800fd4a1
mov al, 1
jmp 0x1800fd4a9
jmp 0x1800fd4a7
xor al, al
add rsp, 0x78
ret

Function at 0x1800fd7b0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1801415a0]
mov qword [rsp + 0x28], rax
jmp 0x1800fd7d0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800fd7ff
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1800fd7fd
call sub.KERNEL32.dll_GetLastError
jmp 0x1800fd801
jmp 0x1800fd7c2
xor eax, eax
add rsp, 0x38
ret
Function at 0x1800fe070
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1801415b8], eax
je 0x1800fe08b
mov eax, 0x10dd
jmp 0x1800fe1b0
mov rax, qword [0x1801415d0]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800fe135
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x1800fe100
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x1800fe100
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.1800fcb10
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.18011e500
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x1800fe097
mov qword [0x1801415d0], 0
call fcn.1800fd570
mov rax, qword [0x1801415c8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1800fe199
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.18011e500
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x1800fe151
mov qword [0x1801415c8], 0
mov dword [0x1801415b8], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800fe6e0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x1801415bc], 0
je 0x1800fe6fd
mov eax, dword [0x1801415bc]
jmp 0x1800fe7c3
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x1800fe710
xor eax, eax
jmp 0x1800fe7c3
mov ecx, 0x10
call fcn.18011e144
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1800fe77e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x1800fe763
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.18011e500
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x1801415bc], eax
mov qword [0x1801415c0], 0
mov eax, dword [rsp + 0x20]
jmp 0x1800fe7c3
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1800fe798
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x1800fe739
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x1801415c8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x1801415c8], rax
xor eax, eax
add rsp, 0x48
ret
Function at 0x1800fe8c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x80], 0
jne 0x1800fe8ed
xor ecx, ecx
call sub.KERNEL32.dll_GetModuleHandleW
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1800fe90d
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1800fea86
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
je 0x1800fe944
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1800fea86
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x1800fe962
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1800fea86
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 0
jmp 0x1800fe98e
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jae 0x1800fea6a
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
lea rdx, str..detour
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1800fea65
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
cmp dword [rcx + rax + 0xc], 0
je 0x1800fe9f3
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
cmp dword [rcx + rax + 0x10], 0
jne 0x1800fe9f5
jmp 0x1800fea6a
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
cmp rax, 0x40
jb 0x1800fea3b
mov rax, qword [rsp + 0x28]
cmp dword [rax + 4], 0x727444
je 0x1800fea3d
jmp 0x1800fea6a
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x1800fea57
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx]
mov dword [rax + 8], ecx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
jmp 0x1800fea86
jmp 0x1800fe984
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1800fea86
add rsp, 0x78
ret
Function at 0x1800fea90
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
add rax, 0x10000
mov qword [rsp + 0x30], rax
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll_memset
jmp 0x1800fead8
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov r8d, 0x30
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
ja 0x1800feaf7
jmp 0x1800feb9b
cmp dword [rsp + 0x68], 0x1000
jne 0x1800feb1c
mov eax, dword [rsp + 0x6c]
and eax, 0xff
cmp eax, 1
je 0x1800feb1c
mov eax, dword [rsp + 0x6c]
and eax, 0x100
test eax, eax
je 0x1800feb1e
jmp 0x1800feac3
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x1800feb54
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, qword [rsp + 0x60]
ja 0x1800feb54
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x1800feb59
jmp 0x1800feac3
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
jne 0x1800feac3
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x20]
jmp 0x1800feb9d
xor eax, eax
add rsp, 0x88
ret

Function at 0x180101080
Capabilities:
Log keystrokes via polling

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x38
movzx eax, byte [rsp + 0x48]
test eax, eax
jne 0x1801010e4
mov eax, 2
imul rax, rax, 0
xor ecx, ecx
mov rdx, qword [rsp + 0x40]
mov word [rdx + rax], cx
mov dword [rsp + 0x20], 1
jmp 0x1801010be
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x100
jge 0x1801010e2
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x40]
mov word [rdx + rcx*2], ax
jmp 0x1801010b4
jmp 0x1801010ff
movzx eax, byte [rsp + 0x48]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, byte [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov word [rdx + rcx*2], ax
add rsp, 0x38
ret

Function at 0x180106440
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov ecx, 0x10
call fcn.18011e144
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 8], rcx
mov qword [0x180141cd0], 0
mov rdx, qword [rsp + 0x20]
lea rcx, [0x180106700]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x30]
call fcn.18011e500
mov rax, qword [0x180141cd0]
add rsp, 0x48
ret
Function at 0x180119fe0
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x68
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x58]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x2c], 0
jne 0x18011a0e5
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x2c], 1
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x80]
mov rdi, qword [rax + 0x38]
xor eax, eax
mov rcx, qword [rcx + 0x18]
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rax, qword [rsp + 0x80]
add rax, 0x40
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov rax, qword [rsp + 0x80]
mov r8d, dword [rax + 0x18]
mov rax, qword [rsp + 0x80]
mov rdx, qword [rax + 0x38]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x18011a0e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x18011a0e5
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CancelIo]
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x2c], 0
jmp 0x18011a22c
cmp dword [rsp + 0x98], 0
jl 0x18011a113
mov edx, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x18011a113
xor eax, eax
jmp 0x18011a252
mov rax, qword [rsp + 0x80]
add rax, 0x40
mov r9d, 1
lea r8, [rsp + 0x30]
mov rdx, rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x80]
mov dword [rax + 0x2c], 0
cmp dword [rsp + 0x34], 0
je 0x18011a22c
cmp dword [rsp + 0x30], 0
jbe 0x18011a22c
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x38]
movsx eax, byte [rcx + rax]
test eax, eax
jne 0x18011a1e1
mov eax, dword [rsp + 0x30]
dec eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
cmp qword [rsp + 0x90], rax
jbe 0x18011a1a7
mov eax, dword [rsp + 0x30]
mov qword [rsp + 0x48], rax
jmp 0x18011a1b4
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x38]
inc rax
mov rdi, qword [rsp + 0x88]
mov rsi, rax
mov rcx, qword [rsp + 0x38]
rep movsb byte [rdi], byte [rsi]
jmp 0x18011a22c
mov eax, dword [rsp + 0x30]
cmp qword [rsp + 0x90], rax
jbe 0x18011a1fa
mov eax, dword [rsp + 0x30]
mov qword [rsp + 0x50], rax
jmp 0x18011a207
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rax + 0x38]
mov rcx, qword [rsp + 0x38]
rep movsb byte [rdi], byte [rsi]
cmp dword [rsp + 0x34], 0
jne 0x18011a24e
lea rdx, [0x180125a58]
mov rcx, qword [rsp + 0x80]
call fcn.18011a9f0
mov eax, 0xffffffff
jmp 0x18011a252
mov eax, dword [rsp + 0x38]
add rsp, 0x68
pop rdi
pop rsi
ret
Function at 0x18011a2a0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x78
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x20
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x90]
movzx eax, word [rax + 0x14]
cmp qword [rsp + 0xa0], rax
jb 0x18011a2f0
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x40], rax
jmp 0x18011a36f
mov rax, qword [rsp + 0x90]
movzx eax, word [rax + 0x14]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x40], rax
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa0]
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x90]
movzx eax, word [rax + 0x14]
sub rax, qword [rsp + 0xa0]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0x40]
add rdx, rcx
mov rcx, rdx
mov rdi, rcx
mov eax, CMapStringToOb::HashKey
mov rcx, qword [rsp + 0x48]
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x90]
movzx eax, word [rax + 0x14]
mov qword [rsp + 0xa0], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rsp + 0xa0]
mov rdx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x18011a3d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0x3e5
je 0x18011a3d9
lea rdx, [0x180125a38]
mov rcx, qword [rsp + 0x90]
call fcn.18011a9f0
mov dword [rsp + 0x34], 0xffffffff
jmp 0x18011a44c
cmp dword [rsp + 0xa8], 0
jl 0x18011a404
mov edx, dword [rsp + 0xa8]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x18011a404
xor eax, eax
jmp 0x18011a46a
mov r9d, 1
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x50]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x18011a44c
lea rdx, [0x180125a48]
mov rcx, qword [rsp + 0x90]
call fcn.18011a9f0
mov dword [rsp + 0x34], 0xffffffff
mov rax, qword [rsp + 0x98]
cmp qword [rsp + 0x40], rax
je 0x18011a466
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [rsp + 0x34]
add rsp, 0x78
pop rdi
pop rsi
ret