joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f4c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c3a10
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x67c3c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
lea ecx, [esi + 0x54]
mov dword [ebp - 0x10], ecx
cmp dword [esi + 0x4c], ebx
jle 0x41f536
xor edi, edi
nop dword [eax]
mov eax, dword [ecx]
mov ecx, dword [edi + eax]
test ecx, ecx
je 0x41f528
cmp byte [edi + eax + 8], 0
je 0x41f528
push ecx
call fcn.00410c40
mov eax, dword [esi + 0x54]
lea ecx, [esi + 0x54]
add esp, 4
mov dword [edi + eax], 0
jmp 0x41f52b
lea ecx, [esi + 0x54]
inc ebx
add edi, 0x78
cmp ebx, dword [esi + 0x4c]
jl 0x41f500
jmp 0x41f539
mov dword [ebp - 0x10], ecx
lea edi, [esi + 0x34]
xor edx, edx
mov dword [ebp - 0x14], edi
cmp dword [edi], edx
jle 0x41f587
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + edx*4]
mov eax, dword [ecx]
mov dword [ebp - 0x14], eax
cmp dword [ebx + 0x34], eax
jb 0x41f57c
mov ecx, dword [esi + 0x4c]
shl ecx, 4
sub ecx, dword [esi + 0x4c]
lea eax, [eax + ecx*8]
cmp dword [ebx + 0x34], eax
jae 0x41f579
mov dword [ebx + 0x34], 0
xor ecx, ecx
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + edx*4]
mov word [eax + 0x38], cx
mov ecx, dword [ebp - 0x10]
inc edx
cmp edx, dword [edi]
jl 0x41f545
lea edi, [esi + 0x34]
mov dword [ebp - 0x14], edi
mov eax, dword [esi + 0x54]
test eax, eax
je 0x41f5ac
push eax
mov dword [esi + 0x50], 0
mov dword [esi + 0x4c], 0
call fcn.00410c40
add esp, 4
mov dword [esi + 0x54], 0
mov eax, dword [esi + 0x48]
mov ebx, edi
test eax, eax
je 0x41f5d6
push eax
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
call fcn.00410c40
add esp, 4
mov dword [esi + 0x48], 0
lea ebx, [esi + 0x34]
mov eax, dword [esi + 0x14]
mov dword [esi + 0x464], 0xffffffff
mov dword [esi + 0x460], 0xffffffff
test eax, eax
je 0x41f5ff
push eax
call fcn.00410c40
mov edi, ebx
add esp, 4
mov dword [ebp - 0x14], edi
mov eax, dword [esi + 0x18]
test eax, eax
je 0x41f60f
push eax
call fcn.00410c40
add esp, 4
xor ebx, ebx
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov byte [esi + 0x11], 0
cmp dword [edi], ebx
jle 0x41f696
mov eax, dword [esi + 0x3c]
mov edi, dword [eax + ebx*4]
test edi, edi
je 0x41f68b
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.0041f7a0
mov eax, dword [edi + 0x28]
mov byte [ebp - 4], 1
test eax, eax
je 0x41f653
push eax
call fcn.00410c40
add esp, 4
mov eax, dword [edi + 0x1c]
mov byte [ebp - 4], 2
test eax, eax
je 0x41f667
push eax
call fcn.00410c40
add esp, 4
mov eax, dword [edi + 8]
mov byte [ebp - 4], 3
test eax, eax
je 0x41f67b
push eax
call fcn.00410c40
add esp, 4
push edi
mov dword [ebp - 4], 0xffffffff
call fcn.00410c40
add esp, 4
mov eax, dword [ebp - 0x14]
inc ebx
cmp ebx, dword [eax]
jl 0x41f627
lea edi, [esi + 0x34]
mov eax, dword [edi + 8]
test eax, eax
je 0x41f6ba
push eax
mov dword [edi + 4], 0
mov dword [edi], 0
call fcn.00410c40
add esp, 4
mov dword [edi + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423330
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x423357
push eax
mov dword [esi + 4], 0
mov dword [esi], 0
call fcn.00410c40
add esp, 4
mov dword [esi + 8], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42337c
push eax
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
call fcn.00410c40
add esp, 4
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4233a1
push eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
call fcn.00410c40
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4233e2
push eax
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
call fcn.00410c40
add esp, 4
mov dword [esi + 0x44], 0
mov eax, dword [esi + 0x50]
test eax, eax
je 0x423407
push eax
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
call fcn.00410c40
add esp, 4
mov dword [esi + 0x50], 0
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x42342c
push eax
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
call fcn.00410c40
add esp, 4
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.0041f6e0
Function at 0x43f220
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x68749c]
test eax, eax
je 0x43f23c
nop dword [eax]
cmp dword [eax + 4], 0
jne 0x43f28b
mov eax, dword [eax]
test eax, eax
jne 0x43f230
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x43f299
push esi
push edi
xor edi, edi
mov dword [eax + 8], 0
lea edx, [eax + 0x20]
lea esi, [edi + 0x20]
mov dword [edx], edi
mov ecx, edx
mov dword [eax + 4], edx
add esi, 0x20
add edx, 0x20
mov edi, ecx
cmp esi, 0xfe0
jbe 0x43f265
mov ecx, dword [0x68749c]
pop edi
mov dword [eax], ecx
pop esi
mov dword [0x68749c], eax
mov edx, dword [eax + 4]
mov ecx, dword [edx]
inc dword [eax + 8]
mov dword [eax + 4], ecx
mov eax, edx
ret
xor eax, eax
ret

Function at 0x43f610
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 8
mov eax, dword [0x67c3c0]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc]
push ebp
push esi
imul esi, eax, 0x2c
push edi
add esi, dword [0x687490]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ebp, [eax*2 + 5]
lea eax, [esp + 0xc]
push eax
push 0x40
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x43f670
pop edi
pop esi
mov eax, 0xa
pop ebp
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0059a5ad
add esp, 8
ret
push ebx
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x43f696
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x43f6b7
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x43f6b7
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x43f6b1
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x43f6b7
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, bl
xor eax, eax
add cl, cl
shl bl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor bl, cl
and bl, 4
xor bl, cl
mov ecx, dword [esp + 0x14]
mov byte [esi + 0x14], bl
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0059a5ad
add esp, 8
ret
Function at 0x43f790
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
sub esp, 0x20
mov eax, dword [0x67c3c0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x43f88f
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x43f888
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esp + 0x10], 0x10
jb 0x43f86d
call ebx
cmp dword [esp + 0x1c], eax
jne 0x43f86d
call ebp
cmp dword [esp + 0x18], eax
je 0x43f86d
mov edx, dword [esi]
test edx, edx
jne 0x43f835
push 0x200
push edx
mov dword [esi + 4], 0x80
push dword [0x6820c0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x43f888
jmp 0x43f860
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x43f860
shl eax, 3
push eax
push edx
push 0
push dword [0x6820c0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x43f888
mov eax, dword [esi + 4]
add eax, eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x43f7f5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x43f8d7
xor ebx, ebx
cmp dword [esi + 8], ebx
jbe 0x43f8d7
mov ebp, dword [esp + 0x3c]
nop
mov eax, dword [esi]
push dword [eax + ebx*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x43f8d1
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push ebp
push dword [esp + 0x3c]
push edi
call fcn.0043fb80
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [esi + 8]
jb 0x43f8a0
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0059a5ad
add esp, 0x20
ret

Function at 0x43fd00
Capabilities:
Resume thread

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi], 0
je 0x43fd58
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x43fd47
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ResumeThread]
nop word [eax + eax]
mov eax, dword [edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x43fd3f
push ebx
call ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x43fd20
pop ebp
pop ebx
push dword [edi]
push 0
push dword [0x6820c0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
ret
Function at 0x440090
Capabilities:
Check for software breakpoints

Disassembly:
mov edx, dword [esp + 4]
push esi
mov cl, byte [edx]
test cl, cl
je 0x4400a5
cmp cl, 0x90
je 0x4400a5
cmp cl, 0xcc
jne 0x4400c3
mov esi, dword [esp + 0xc]
mov eax, 1
cmp esi, eax
jbe 0x4400bc
cmp byte [eax + edx], cl
jne 0x4400c3
inc eax
cmp eax, esi
jb 0x4400b2
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4400d0
Capabilities:
Create process on windows
Identify system language via api

Disassembly:
sub esp, 0x228
mov eax, dword [0x67c3c0]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push esi
mov esi, dword [esp + 0x23c]
call fcn.0045b330
push esi
call fcn.00465be0
add esp, 4
test al, al
jne 0x44023e
call fcn.0045d220
push str.thprac___Touhou_Practice_Toolmutex
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
push 1
mov ebx, eax
mov dword [esp + 0x20], 0
mov byte [esp + 0x13], 0
mov byte [esp + 0x12], 0
mov dword [esp + 0x18], 0
mov byte [esp + 0x14], 0
call fcn.00465270
add esp, 4
test al, al
je 0x4401aa
call fcn.004831e0
test al, al
jne 0x440157
call fcn.00482e70
lea eax, [esp + 0x1c]
push eax
push str.existing_game_launch_action
call fcn.00466020
lea eax, [esp + 0x17]
push eax
push str.dont_search_ongoing_game
call fcn.004662f0
lea eax, [esp + 0x1e]
push eax
push str.thprac_admin_rights
call fcn.004662f0
lea eax, [esp + 0x2c]
push eax
push str.check_update_timing
call fcn.00466020
lea eax, [esp + 0x30]
push eax
push str.update_without_confirmation
call fcn.004662f0
add esp, 0x28
call fcn.00465190
cmp byte [esp + 0xe], 0
je 0x440259
lea eax, [esp + 8]
xor esi, esi
push eax
push 8
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4401fe
lea eax, [esp + 0x20]
mov dword [esp + 0x18], esi
push eax
push 4
lea eax, [esp + 0x20]
mov dword [esp + 0x28], 4
push eax
push 0x14
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne esi, dword [esp + 0x18]
mov eax, dword [esp + 8]
test eax, eax
je 0x44020d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x440259
push 0x104
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 5
push esi
push esi
lea eax, [esp + 0x30]
push eax
push str.runas
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov ecx, dword [esp + 0x22c]
pop esi
pop ebx
xor ecx, esp
call fcn.0059a5ad
add esp, 0x228
ret 0x10
cmp dword [esp + 0x14], 1
jne 0x440270
push dword [esp + 0x10]
call fcn.00466730
add esp, 4
test al, al
jne 0x44023e
cmp byte [esp + 0xf], 0
jne 0x440285
push 0
call fcn.004839c0
add esp, 4
test al, al
jne 0x44023e
mov eax, dword [esp + 0x1c]
cmp eax, 1
je 0x4402a4
cmp eax, 2
sete al
movzx eax, al
push eax
call fcn.004836f0
add esp, 4
test al, al
jne 0x44023e
cmp dword [esp + 0x14], 0
jne 0x4402c6
cmp byte [esp + 0x10], 0
je 0x4402c6
push dword [esp + 0x10]
call fcn.00466730
add esp, 4
test al, al
jne 0x44023e
call fcn.0047dcf0
jmp 0x440240
Function at 0x442ea0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c3c70
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x67c3c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi + 8], 0
xorps xmm0, xmm0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi], vtable.THPrac::Gui::GameGuiWnd.0
mov dword [esi + 4], 0
movups xmmword [esi + 0x14], xmm0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0xf
mov byte [esi + 0x14], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], 0x2027
mov dword [esi + 0x40], 0xc2c80000
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov word [esi + 0x50], 0x101
mov byte [esi + 0x52], 0
mov dword [esi + 0x54], 0
call fcn.0040e260
or dword [eax], 2
mov eax, esi
mov dword [esi + 0x58], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x449950
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c409d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x67c3c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
mov dword [eax], 0
xor edi, edi
push 0x80000000
push dword [ebp + 8]
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor edx, edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], edx
cmp esi, 0xffffffff
je 0x449a39
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push eax
push ebx
push 2
push ebx
push esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
jne 0x4499fe
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ecx
xor eax, eax
xor edx, edx
mov dword [ebp - 0x10], eax
jmp 0x449a3b
push dword [ebp - 0x18]
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x14], ebx
mov ecx, ebx
mov dword [ebp - 0x10], ecx
mov edx, ecx
test ebx, ebx
jne 0x449a3b
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, eax
mov edx, ecx
mov dword [ebp - 0x10], ecx
jmp 0x449a3b
xor eax, eax
mov dword [ebp - 4], 0
test eax, eax
je 0x449a5e
push 0
push 0
push dword [ebp + 0xc]
push 0
push dword [ebp - 0x18]
push ebx
call fcn.0043ea10
mov edx, dword [ebp - 0x10]
add esp, 0x18
test edx, edx
je 0x449a69
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x449a76
push edi
call ebx
cmp esi, 0xffffffff
je 0x449a7e
push esi
call ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44aef0
Capabilities:
Create directory
Write file on windows

Disassembly:
sub esp, 0x3c
mov eax, dword [0x67c3c0]
xor eax, esp
mov dword [esp + 0x38], eax
movups xmm0, xmmword [str.snapshot_th000.bmp]
mov eax, dword [0x5d2648]
push ebx
push ebp
mov ebp, dword [esp + 0x48]
push esi
push edi
movups xmmword [esp + 0x20], xmm0
mov dword [esp + 0x40], eax
movups xmm0, xmmword [0x5d2638]
mov ax, word [0x5d264c]
push 0
push str.snapshot
movups xmmword [esp + 0x38], xmm0
mov word [esp + 0x4c], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor edi, edi
mov eax, 0x66666667
mov ecx, edi
imul edi
push 0
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
push 0x80
push 1
push 0
lea eax, [esi + esi*4]
add eax, eax
sub ecx, eax
mov eax, 0x51eb851f
imul edi
add ecx, 0x30
sar edx, 5
mov word [esp + 0x4a], cx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
push 0
push 0xc0000000
lea eax, [ecx + ecx*4]
imul ecx, ecx, 0x64
add eax, eax
sub esi, eax
mov eax, 0x51eb851f
add esi, 0x30
mov word [esp + 0x50], si
imul ecx
sar edx, 5
mov eax, edx
add edx, 0x30
shr eax, 0x1f
add eax, edx
mov word [esp + 0x4e], ax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x44afe3
inc edi
cmp edi, 0x3e8
jl 0x44af41
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0059a5ad
add esp, 0x3c
ret
mov eax, dword [ebp]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push ebp
mov dword [esp + 0x20], 0
call dword [eax + 0x40]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 0
xorps xmm0, xmm0
push 0
movlpd qword [esp + 0x1c], xmm0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x24]
push 0xe2000
call fcn.005aaec4
mov ebp, eax
add esp, 4
mov edx, ebp
mov edi, 0x1df
nop dword [eax]
mov ecx, dword [esp + 0x14]
mov esi, 0x280
imul ecx, edi
add ecx, dword [esp + 0x18]
mov ax, word [ecx]
lea ecx, [ecx + 4]
mov word [edx], ax
mov al, byte [ecx - 2]
mov byte [edx + 2], al
add edx, 3
sub esi, 1
jne 0x44b040
sub edi, 1
jns 0x44b030
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x20]
push eax
push 0x36
push 0x5d2664
push ebx
call esi
push 0
lea eax, [esp + 0x20]
push eax
push 0xe2000
push ebp
push ebx
call esi
push ebp
call fcn.005aaea9
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0059a5ad
add esp, 0x3c
ret
Function at 0x45ae60
Capabilities:
Execute shellcode via indirect call

Disassembly:
sub esp, 8
mov eax, dword [0x67c3c0]
xor eax, esp
mov dword [esp + 4], eax
push edi
mov edi, ecx
cmp byte [edi + 0x15], 0
jne 0x45ae89
xor al, al
pop edi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0059a5ad
add esp, 8
ret
cmp byte [edi + 0x14], 0
push esi
je 0x45aeec
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
push eax
mov eax, dword [edi]
add eax, dword [0x68225c]
push 0x40
push dword [edi + 0x10]
push eax
call esi
push dword [edi + 0x10]
mov eax, dword [edi]
push dword [edi + 0xc]
add eax, dword [0x68225c]
push eax
call fcn.0059ce90
add esp, 0xc
lea eax, [esp + 8]
push eax
push dword [esp + 0xc]
mov eax, dword [edi]
push dword [edi + 0x10]
add eax, dword [0x68225c]
push eax
call esi
pop esi
mov al, 1
pop edi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0059a5ad
add esp, 8
ret
mov eax, dword [0x682258]
mov ecx, dword [edi]
mov esi, dword [eax]
mov eax, dword [eax + 4]
cmp esi, eax
je 0x45af0b
nop dword [eax]
cmp dword [esi], ecx
je 0x45af0d
add esi, 0x10
cmp esi, eax
jne 0x45af00
mov esi, eax
cmp byte [esi + 0xd], 0
jne 0x45af55
mov edi, dword [esi]
lea eax, [esp + 8]
add edi, dword [0x68225c]
push ebx
push eax
push 0x40
push 1
push edi
lea ebx, [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x45af50
test ebx, ebx
je 0x45af3b
mov al, byte [edi]
mov byte [ebx], al
lea eax, [esp + 0xc]
mov byte [edi], 0xcc
push eax
push dword [esp + 0x10]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [esi + 0xd], 1
pop ebx
mov ecx, dword [esp + 0xc]
mov al, 1
pop esi
pop edi
xor ecx, esp
call fcn.0059a5ad
add esp, 8
ret

Function at 0x45b230
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0xc
mov eax, dword [0x67c3c0]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [0x682258]
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
cmp esi, eax
je 0x45b25c
mov ecx, dword [esp + 0x14]
cmp dword [esi], ecx
je 0x45b25e
add esi, 0x10
cmp esi, eax
jne 0x45b251
mov esi, eax
cmp byte [esi + 0xd], 0
je 0x45b2b7
mov al, byte [esi + 0xc]
push edi
mov edi, dword [esi]
add edi, dword [0x68225c]
mov byte [esp + 0xb], al
lea eax, [esp + 0xc]
push eax
push 0x40
push 1
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x45b2a0
mov al, byte [esp + 0xb]
mov byte [edi], al
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov byte [esi + 0xd], 0
pop edi
mov ecx, dword [esp + 0xc]
pop esi
xor ecx, esp
call fcn.0059a5ad
add esp, 0xc
ret
Function at 0x45c5b0
Capabilities:
Log keystrokes via polling

Disassembly:
mov ecx, dword [esp + 8]
cmp ecx, 0x100
jae 0x45c61d
mov eax, dword [esp + 4]
cmp eax, 0x100
je 0x45c5eb
cmp eax, 0x104
je 0x45c5eb
cmp eax, 0x101
je 0x45c5dc
cmp eax, 0x105
jne 0x45c61d
lea eax, [ecx + ecx*4]
mov dword [eax*8 + 0x682338], 0
ret
mov edx, dword [esp + 0xc]
lea ecx, [ecx + ecx*4]
movzx eax, dl
add dword [ecx*8 + 0x682338], eax
lea eax, [ecx*8 + 0x682340]
mov dword [ecx*8 + 0x68233c], 1
cmp byte [eax], 0
jne 0x45c61d
push 0x20
push eax
push edx
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
ret
Function at 0x465270
Capabilities:
Create directory
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c4b75
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x67c3c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x669ae8], 0xffffffff
je 0x4652aa
mov al, 1
jmp 0x4653d1
lea eax, [ebp - 0x2c]
push eax
call fcn.00465a70
add esp, 4
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
push 0
cmova eax, dword [ebp - 0x2c]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.thprac.json
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0045dab0
add esp, 0xc
movzx eax, byte [ebp + 8]
xor eax, 1
mov byte [ebp - 4], 1
push 0
push 0x80
lea ecx, [eax + 3]
push ecx
lea edx, [eax + 2]
push 0
shl edx, 0x1e
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 7
push 3
cmova eax, dword [ebp - 0x44]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x669ae8], eax
cmp eax, 0xffffffff
je 0x4653ba
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov eax, 0xffffffff
mov ecx, esi
add ecx, 1
cmovb ecx, eax
push ecx
call fcn.005aaec4
mov edi, eax
lea eax, [esi + 1]
push eax
push 0
push edi
call fcn.0059c4a0
add esp, 0x10
lea eax, [ebp - 0x14]
push 0
push eax
push esi
push edi
push dword [0x669ae8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4653ba
lea eax, [esi + 1]
mov ecx, 0x685088
push eax
push edi
call fcn.0045e2b0
cmp dword [eax + 0x30], 0
je 0x4653ac
mov ecx, 0x685088
call fcn.00444350
xorps xmm0, xmm0
mov eax, 3
movups xmmword [0x685088], xmm0
mov word [0x685096], ax
call fcn.00465890
mov byte [ebp - 0x45], al
jmp 0x4653be
mov al, byte [ebp + 8]
mov byte [0x685081], al
mov byte [ebp - 0x45], 1
jmp 0x4653be
mov byte [ebp - 0x45], 0
lea ecx, [ebp - 0x44]
call fcn.004443f0
lea ecx, [ebp - 0x2c]
call fcn.004443f0
mov al, byte [ebp - 0x45]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059a5ad
mov esp, ebp
pop ebp
ret