joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001be0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0
lea rax, str.wAaSeu30vf__WyB2wuk__coMWHdoDl_mtJ
mov qword [rsp + 0x20], rax
lea rcx, str.4096
call fcn.1001d320
mov dword [rsp + 0x34], eax
lea rcx, str.8192
call fcn.1001d320
mov ecx, dword [rsp + 0x34]
or ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x58]
mov r9d, 0x40
mov r8d, eax
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x10001c4f
xor eax, eax
jmp 0x10001cb5
mov dword [rsp + 0x30], 0
jmp 0x10001c64
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x30], eax
jae 0x10001cb0
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x30]
cdq
mov ecx, 0x24
idiv ecx
mov eax, edx
cdqe
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x38]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov byte [rdx + rcx], al
jmp 0x10001c59
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x10001cc0
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
cmp qword [rsp + 0x80], 0
jne 0x10001ceb
xor al, al
jmp 0x10001dda
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 1
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x10001d30
xor al, al
jmp 0x10001dda
mov rax, qword [rsp + 0x78]
mov eax, dword [rax]
add eax, 1
mov eax, eax
mov rcx, rax
call fcn.1001cf80
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rax
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x10001d5b
xor al, al
jmp 0x10001dda
mov rax, qword [rsp + 0x78]
mov eax, dword [rax]
add eax, 1
mov eax, eax
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov rdi, qword [rsp + 0x40]
xor eax, eax
mov rcx, qword [rsp + 0x50]
rep stosb byte [rdi], al
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
mov r9, qword [rax]
mov r8d, 1
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x10001dd8
xor al, al
jmp 0x10001dda
mov al, 1
add rsp, 0x60
pop rdi
ret
Function at 0x100070d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x88]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x24]
imul eax, dword [rsp + 0x70]
mov eax, eax
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x20], 0
jmp 0x10007184
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x18]
imul eax, dword [rsp + 0x70]
cmp dword [rsp + 0x20], eax
jae 0x100071fe
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x28]
call fcn.1001d5f0
test eax, eax
jne 0x100071f9
mov eax, dword [rsp + 0x20]
imul eax, dword [rsp + 0x70]
mov eax, eax
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax*4]
imul eax, dword [rsp + 0x70]
mov eax, eax
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
jmp 0x10007200
jmp 0x10007179
xor eax, eax
add rsp, 0x68
ret

Function at 0x1000f288
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x28
test rdx, 0xffffffffffff0000
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xb0], rdx
jne 0x1000f2bc
cmp dword [rcx + 0xa8], 0
jne 0x1000f2bc
movzx eax, dx
mov dword [rcx + 0xa8], eax
call fcn.1000ff58
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.1000f238
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
add rsp, 0x28
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x100176b8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
test rdx, rdx
mov rsi, rdx
mov rbp, rcx
je 0x10017712
call fcn.1000ff58
mov r8d, 0xf0
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x10017712
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
mov rbx, rax
je 0x10017734
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.10017138
test rdi, rdi
mov esi, eax
je 0x10017732
test rbx, rbx
je 0x10017732
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
add rsp, 0x20
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x100203d7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x10091038]
jne 0x1001cf5a
rol rcx, 0x10
test cx, 0xffff
jne 0x1001cf56
repz ret
ror rcx, 0x10
jmp 0x10020330
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x10096960]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x10096a58]
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 0x100203b5
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, [0x10096960]
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 0x100203d7
mov rax, qword [rsp + 0x88]
mov qword [0x10096a58], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x100969f8], rax
mov rax, qword [0x10096a58]
mov qword [0x100968d0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x100969e0], rax
mov dword [0x100968c0], 0xc0000409
mov dword [0x100968c4], 1
mov rax, qword [0x10091038]
mov qword [rsp + 0x68], rax
mov rax, qword [0x10091040]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x10096958], eax
mov ecx, 1
call fcn.1002caf0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x10080578]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x10096958], 0
jne 0x1002045e
mov ecx, 1
call fcn.1002caf0
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 0x1002cb00
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.10021310
xor ebx, ebx
cmp qword [0x10097630], rbx
mov rsi, rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
jne 0x1002cc31
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbp, rax
jne 0x1002cb63
xor eax, eax
jmp 0x1002cd11
lea rdx, [0x10080f00]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1002cb5c
mov rcx, rax
call fcn.100212a0
lea rdx, [0x10080ef0]
mov rcx, rbp
mov qword [0x10097630], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.100212a0
lea rdx, [0x10080ed8]
mov rcx, rbp
mov qword [0x10097638], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.100212a0
lea rcx, [rsp + 0x30]
mov qword [0x10097640], rax
call fcn.1001eb30
test eax, eax
je 0x1002cbe7
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.10020490
cmp dword [rsp + 0x30], 2
jne 0x1002cc31
lea rdx, str.GetUserObjectInformationA
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.100212a0
test rax, rax
mov qword [0x10097650], rax
je 0x1002cc31
lea rdx, str.GetProcessWindowStation
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.100212a0
mov qword [0x10097648], rax
mov rcx, qword [0x10097648]
cmp rcx, rsi
je 0x1002ccc3
cmp qword [0x10097650], rsi
je 0x1002ccc3
call fcn.10021370
call rax
test rax, rax
mov rbp, rax
je 0x1002cc8e
mov rcx, qword [0x10097650]
call fcn.10021370
lea rcx, [rsp + 0x38]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x40]
mov rcx, rbp
call rax
test eax, eax
je 0x1002cc8e
test byte [rsp + 0x48], 1
jne 0x1002ccc3
lea rcx, [rsp + 0x34]
call fcn.1001eb80
test eax, eax
je 0x1002ccb0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.10020490
cmp dword [rsp + 0x34], 4
jb 0x1002ccbd
bts edi, 0x15
jmp 0x1002ccf7
bts edi, 0x12
jmp 0x1002ccf7
mov rcx, qword [0x10097638]
cmp rcx, rsi
je 0x1002ccf7
call fcn.10021370
call rax
test rax, rax
mov rbx, rax
je 0x1002ccf7
mov rcx, qword [0x10097640]
cmp rcx, rsi
je 0x1002ccf7
call fcn.10021370
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x10097630]
call fcn.10021370
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 0x180e432f8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x180e43302
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x180e4332b
pop rbp
sub rbp, 0x33
sub rbp, 0xe432f8
cmp edx, 1
je 0x180e4336e
ldmxcsr dword [rsp]
add rsp, 8
popfq
pop r15
pop r14
pop r13
pop r12
pop r11
pop r10
pop r9
pop r8
pop rdi
pop rsi
pop rbp
pop rbx
pop rdx
pop rcx
pop rax
xor rax, rax
xor eax, eax
ret
sub rsp, 0x20
jmp 0x180e4337e
mov rax, 0xe432f8
add rax, rbp
add rax, 0xb8
mov rcx, 0x60b
mov rdx, 0x4e1af83d
xor byte [rax], dl
inc rax
dec rcx
jne 0x180e4339d
jmp 0x180e433b4
jne 0x180e4336a
invalid
Function at 0x10003a8b8
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
sub rsp, 0x468
mov rax, qword [0x1000af140]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor ecx, ecx
lea rax, [0x100015168]
cmp word [rax], 0x3a
je 0x10003a9a2
inc ecx
add rax, 2
cmp ecx, 0x1a
jb 0x10003a8da
lea rcx, [rsp + 0x240]
xor edx, edx
mov r8d, 0x104
call sub.msvcrt.dll_memset
xor r9d, r9d
lea r11, [rsp + 0x240]
lea edx, [r9 + 0x28]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], r11
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x104
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rcx, [0x100020260]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x10003a971
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp 0x10003a9ba
lea rcx, [0x10001fa00]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x10003a964
mov rcx, qword [0x1000bafb8]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x10003a964
lea rcx, [0x100015168]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x10003a964
lea r8, [0x100015168]
lea rdx, [0x10001fb10]
mov ecx, 0x80
call fcn.1000660b0
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1000a2150
add rsp, 0x468
ret

Function at 0x10003e1a4
Capabilities:
Get geographical location

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1000af140]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp byte [0x1000bbdc8], 0
movsxd rsi, r8d
mov rdi, rdx
mov ebx, ecx
jne 0x10003e237
xor edx, edx
lea rcx, [rsp + 0x34]
mov byte [0x1000bbdc8], 1
lea r8d, [rdx + 0x1c]
mov dword [rsp + 0x30], 0x31
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x30]
mov r9d, 0x10
mov edx, 0x1010
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x10003e21b
lea rdx, [0x10001b5f0]
mov ecx, 0x20001
call fcn.1000660b0
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0xa]
call qword [sym.imp.msvcrt.dll_wcstol]
mov r11d, eax
mov dword [0x1000b7fec], eax
jmp 0x10003e23e
mov r11d, dword [0x1000b7fec]
test ebx, ebx
js 0x10003e24b
lea r9, [0x10001b684]
jmp 0x10003e29d
neg ebx
test r11d, r11d
je 0x10003e296
or r8, 0xffffffffffffffff
sub r11d, 2
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x20], ebx
je 0x10003e28d
sub r11d, 1
je 0x10003e284
cmp r11d, 1
je 0x10003e27b
lea r9, [0x10001b6a0]
jmp 0x10003e2ab
lea r9, [0x10001b6c0]
jmp 0x10003e2ab
lea r9, [0x10001b6b8]
jmp 0x10003e2ab
lea r9, [0x10001b6a8]
jmp 0x10003e2ab
lea r9, [0x10001b690]
mov dword [rsp + 0x20], ebx
or r8, 0xffffffffffffffff
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll__snwprintf_s
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1000a2150
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
Function at 0x10003e970
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x50
and dword [rax + 0x10], 0
mov esi, edx
mov rdi, rcx
test edx, edx
jne 0x10003eaa8
and qword [rax - 0x48], 0
mov dword [rax - 0x50], 0x80
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov dword [rax - 0x58], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x10003e9d4
lea rdx, [0x10001ba40]
mov r8, rdi
mov ecx, 0x20001
call fcn.1000660b0
jmp 0x10003ec34
mov rcx, rax
call fcn.1000506e0
test eax, eax
jne 0x10003ea02
lea rdx, [0x10001ba90]
mov ecx, 0x80
mov r8, rdi
call fcn.1000660b0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10003ec34
and dword [rsp + 0x90], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x90]
lea rdx, [rsp + 0x88]
mov r8d, 4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10003ea9c
cmp dword [rsp + 0x90], 4
jne 0x10003ea9c
mov ecx, dword [rsp + 0x88]
call fcn.1000a1d24
mov esi, dword [rsp + 0x88]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x98]
mov r8d, esi
mov rdx, rax
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10003ea8b
cmp dword [rsp + 0x98], esi
jne 0x10003ea8b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10003eb96
lea rdx, [0x10001bbb0]
mov ecx, 0x20001
jmp 0x10003e9ec
lea rdx, [0x10001bb20]
jmp 0x10003e9e7
mov r9b, 1
mov r8d, edx
mov dword [rsp + 0x20], 0x65
mov dl, r9b
call fcn.10004fe74
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x10003e9bb
mov rcx, rax
call fcn.1000506e0
test eax, eax
jne 0x10003eae3
lea rdx, [0x10001ba90]
jmp 0x10003ec1a
and dword [rsp + 0x90], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x90]
lea rdx, [rsp + 0x88]
mov r8d, 4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10003ec13
cmp dword [rsp + 0x90], 4
jne 0x10003ec13
mov eax, dword [rsp + 0x88]
cmp eax, 0x4c4b40
jb 0x10003eb4d
lea rdx, [0x10001bc20]
mov r8d, eax
mov ecx, 0x80
call fcn.1000660b0
jmp 0x10003ec27
mov rcx, rax
call fcn.1000a1d24
mov r12d, dword [rsp + 0x88]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, r12d
mov rdx, rax
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10003ec05
cmp dword [rsp + 0x40], r12d
jne 0x10003ec05
mov r8b, 1
mov edx, esi
mov rcx, rbx
call fcn.10004fb60
mov ecx, 0x98
call fcn.1000a1c84
test rax, rax
je 0x10003ebb2
mov rcx, rax
call fcn.10006d000
mov rsi, rax
jmp 0x10003ebb4
xor esi, esi
mov r8d, dword [rsp + 0x88]
mov rdx, rbp
mov rcx, rsi
call fcn.10006d408
mov rcx, rbp
mov bl, al
call sub.msvcrt.dll_free
test bl, bl
jne 0x10003ec00
lea rdx, [0x10001bc90]
mov r8, rdi
mov ecx, 0x20001
call fcn.1000660b0
test rsi, rsi
je 0x10003ec34
mov rcx, rsi
call fcn.10006d08c
mov rcx, rsi
call sub.msvcrt.dll_free
jmp 0x10003ec34
mov rax, rsi
jmp 0x10003ec36
lea rdx, [0x10001bbb0]
mov ecx, 0x20001
jmp 0x10003ec1f
lea rdx, [0x10001bb20]
mov ecx, 0x80
mov r8, rdi
call fcn.1000660b0
mov r8b, 1
mov edx, esi
mov rcx, rbx
call fcn.10004fb60
xor eax, eax
add rsp, 0x50
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x100040244
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x28
lea rdx, [0x100020548]
mov ecx, 8
call fcn.1000660b0
cmp dword [0x1000b8904], 0
jne 0x100040297
lea rcx, [0x1000b8918]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x100040297
lea rdx, [0x1000204e0]
lea ecx, [rax + 8]
call fcn.1000660b0
mov ecx, 0x21
mov dword [0x1000b8904], 1
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
cmp dword [0x1000b8904], 1
jne 0x1000402ac
call qword [sym.imp.WINMM.dll_timeGetTime]
mov dword [0x1000b8918], eax
add rsp, 0x28
jmp fcn.100050a20

Function at 0x1000402bc
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x58
cmp byte [0x1000bae9c], 0
je 0x100040386
lea r9, [0x10001c168]
lea r8, [0x10001c190]
mov edx, 0x244
mov ecx, 0x10
call fcn.100065cf8
cmp byte [0x1000bb01d], 0
jne 0x100040366
mov edx, 0x373
mov byte [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea ecx, [rdx + 0x12]
mov r9d, 0xfffe
mov r8d, 1
call fcn.100068ab8
mov rcx, qword [0x1000bafc8]
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [0x1000b6e58]
mov r9d, dword [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
mov rcx, qword [0x1000bafc8]
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x28], eax
mov eax, dword [0x1000b6e54]
xor edx, edx
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x100040374
mov rcx, qword [0x1000bb010]
mov byte [rcx + 0xa5], 0
xor ecx, ecx
call fcn.10004eb88
test al, al
je 0x100040386
mov al, 1
add rsp, 0x58
ret
lea r9, [0x10001c1a0]
lea r8, [0x10001c190]
mov edx, 0x25d
mov ecx, 0x10
call fcn.100065cf8
mov edx, 0x37d
mov byte [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea ecx, [rdx + 8]
mov r9d, 0xfffe
mov r8d, 1
call fcn.100068ab8
mov cl, byte [0x1000bb01d]
call fcn.100067fdc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10004eb88
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov dil, cl
cmp cl, byte [0x1000bae9c]
je 0x10004ed24
mov rcx, qword [0x1000bafd0]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov cl, 1
call fcn.10004b578
mov rcx, qword [0x1000bafc8]
mov r9d, 0x107
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_RedrawWindow]
mov rbx, qword [0x1000bb0e8]
mov byte [0x1000bae9c], dil
test rbx, rbx
je 0x10004ec37
xor esi, esi
cmp dword [rbx + 0x18], esi
jbe 0x10004ec18
xor ebp, ebp
mov rax, qword [rbx + 0x10]
mov dl, dil
mov rcx, qword [rax + rbp]
mov rax, qword [rcx]
call qword [rax + 0x40]
inc esi
add rbp, 8
cmp esi, dword [rbx + 0x18]
jb 0x10004ebf5
mov rbx, qword [0x1000bb0e8]
mov rcx, rbx
call fcn.1000514a4
mov rcx, qword [0x1000bb0e8]
call fcn.1000513e4
test al, al
jne 0x10004ec37
xor al, al
jmp 0x10004ed26
mov rbx, qword [0x1000bb010]
test rbx, rbx
je 0x10004ecbc
cmp dword [rbx + 0xd4], 0
je 0x10004ecbc
lea r9, [0x10001d2b8]
lea r8, [0x10001cba0]
mov edx, 0x201
mov ecx, 2
call fcn.100065cf8
mov rcx, rbx
call fcn.100043bcc
mov rcx, rbx
call fcn.100043a48
test al, al
je 0x10004ec30
cmp dword [0x1000bb090], 0
jne 0x10004ecad
cmp byte [0x1000bae9c], 0
mov r8d, dword [0x1000b63c8]
mov edx, dword [0x1000b63c4]
mov rcx, qword [0x1000bb010]
je 0x10004eca8
add r8d, r8d
add edx, edx
call fcn.1000450a4
mov rax, qword [0x1000bb010]
mov byte [rax + 0x14], 1
mov byte [rax + 0x58], 1
call fcn.10004ed44
mov rcx, qword [0x1000bafd0]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1000bafc8]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_InvalidateRect]
cmp qword [0x1000bb010], 0
je 0x10004ed24
mov ecx, 0x25
call fcn.100051b84
mov rcx, qword [0x1000bb010]
mov rcx, qword [rcx + 0x78]
mov rdx, rax
mov rbx, rax
mov r8, qword [rcx]
call qword [r8 + 0x18]
test rbx, rbx
je 0x10004ed24
mov r8, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [r8]
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret