joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48f23b
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x48f2a9
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x4f944c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x48f2a0
cmp dword [ebp - 0xc], 4
jne 0x48f2a0
cmp dword [ebp - 0x10], edi
je 0x48f2a0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x51f000], edi
xor eax, eax
jmp 0x48f2e8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x51f000], edi
jge 0x48f2e3
lea eax, [ebp - 0x34]
push eax
mov dword [0x51f000], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x48f2e3
cmp word [ebp - 0x14], 5
jb 0x48f2e3
call fcn.0048f216
test eax, eax
je 0x48f2e3
emms
mov dword [0x51f000], 1
mov eax, dword [0x51f000]
pop edi
leave
ret

Function at 0x4b0a48
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b0a80
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004aeb19
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004aeaf1
jmp 0x4b0a8c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b213d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b217f
call fcn.004b7ab6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b217f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b2176
xor eax, eax
jmp 0x4b2187
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b218d
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b7fe6
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b8014
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b8032
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b7f4c
jmp 0x4b8032
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b8032
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b7f4c
test edi, edi
mov eax, edi
jne 0x4b801c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401380
Capabilities:
Manipulate console buffer
Set console window title

Disassembly:
sub esp, 0x18
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 0x411380
push str.CONOUT_
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen]
add esp, 0xc
cmp dword [0x4156bc], 0
jne 0x4013c4
push 0x100
push 0x4156a8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0x208
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push str.heavens_gate
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x415728]
mov ecx, 0xb
add eax, 0x3d
nop
mov byte [eax], 0xff
lea eax, [eax + 0x44]
sub ecx, 1
jne 0x4013f0
mov ebp, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
call ebp
xor ecx, ecx
push ecx
push eax
mov dword [esp + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
push 0xfffffffffffffff5
mov dword [esp + 0x18], 0x100034
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
mov edi, eax
lea eax, [esp + 0x10]
push eax
push 1
push edi
call esi
mov dword [esp + 0xc], 0x110035
push dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
lea eax, [esp + 0x10]
push eax
push 1
push edi
call esi
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov edi, eax
test edi, edi
je 0x401486
mov esi, dword [sym.imp.USER32.dll_DeleteMenu]
push 0
push 0xf030
push edi
call esi
push 0
push 0xf000
push edi
call esi
push str._____heavens_gate___
push 0x85
call fcn.004014f0
push str.Feb_15_2024
push str.______________________s__n
push 0xf
call fcn.004014f0
add esp, 0x14
push 0x4113fc
push 0xf
call fcn.004014f0
add esp, 8
push 0xfffffffffffffff5
call ebp
mov esi, eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleCursorInfo]
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
pop edi
pop esi
pop ebp
add esp, 0x18
ret
Function at 0x401530
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x4156a8
mov bl, cl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx eax, bl
mov edx, eax
shl edx, 4
add edx, eax
mov eax, dword [0x415728]
lea esi, [eax + edx*4]
mov byte [esi + 0x3d], bl
push 0xfffffffffffffff5
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
xor ecx, ecx
add bl, 5
mov word [ebp - 4], cx
movzx ecx, bl
mov word [ebp - 2], cx
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
cmp byte [esi + 0x3e], 0
mov ecx, 8
mov eax, 0xf
cmove eax, ecx
mov byte [ebp - 8], al
push str._r_
push dword [ebp - 8]
call fcn.004014f0
movzx eax, byte [esi + 0x3b]
push esi
push eax
call fcn.004014f0
mov ecx, esi
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4015b4
lea ebx, [esi + 0x2f]
sub ecx, edx
mov edx, ebx
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4015c5
mov al, 0x2e
sub edx, esi
sub al, cl
sub al, dl
movzx edi, al
lea eax, [edi + 1]
call fcn.00410920
mov esi, esp
push edi
push 0x20
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov byte [edi + esi], 0
push esi
push 0
call fcn.004014f0
mov ecx, dword [ebp - 0xc]
add esp, 8
mov al, byte [ecx + 0x3c]
cmp al, 0xf
ja 0x40160e
cmp byte [ecx + 0x3e], 0
je 0x40160e
sub al, 0x80
mov byte [ebp - 4], al
push ebx
push dword [ebp - 4]
call fcn.004014f0
push 0x411408
push dword [ebp - 8]
call fcn.004014f0
add esp, 0x10
push 0x4156a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401640
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0x4156a8
mov bl, cl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx eax, bl
mov edx, eax
shl edx, 4
add edx, eax
mov eax, dword [0x415728]
push 0xfffffffffffffff5
mov word [eax + edx*4 + 0x3d], 0xff
mov dword [eax + edx*4 + 0x40], 0
mov byte [eax + edx*4 + 0x2f], 0
mov byte [eax + edx*4], 0
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
xor ecx, ecx
add bl, 5
mov word [ebp - 4], cx
movzx ecx, bl
mov word [ebp - 2], cx
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov eax, 0x38
call fcn.004108f0
mov esi, esp
push 0x34
push 0x20
push esi
call sub.VCRUNTIME140.dll_memset
push esi
push 0
mov byte [esi + 0x34], 0
call fcn.004014f0
add esp, 0x14
push 0x4156a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esp, [ebp - 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4016e0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x104
push ebx
push esi
push edi
push 0x4156a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [0x4156c0], 0
jne 0x4017eb
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
call edi
mov dword [esp + 0xc], 0x100000
push dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov bl, byte [ebp + 8]
movzx eax, bl
push eax
push 0xfffffffffffffff5
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push 0x100
lea eax, [esp + 0x14]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [esp + 0x1c]
push 0x100
push eax
call fcn.00401340
push dword [eax + 4]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsprintf_s]
mov esi, dword [0x415728]
lea ecx, [esp + 0x2c]
mov edx, ecx
mov eax, esi
add esp, 0x1c
sub eax, edx
lea edx, [eax + 0x2ec]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x401786
lea eax, [esp + 0x10]
mov byte [esi + 0x327], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4017a0
sub eax, edx
mov cl, 0x35
sub cl, al
movzx eax, al
movzx ecx, cl
push ecx
lea ecx, [esp + 0x14]
add eax, ecx
push 0x20
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov byte [esp + 0x44], 0
lea eax, [esp + 0x10]
push 0
push 0
push 0x34
push eax
push 0xfffffffffffffff5
call edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push 0x4156a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403830
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub esp, 0x70
mov eax, dword fs:[0x2c]
xorps xmm0, xmm0
push ebx
push esi
mov esi, dword [ecx]
mov ecx, dword [eax]
mov eax, dword [0x50a2e0]
push edi
movlpd qword [esp + 0x10], xmm0
cmp eax, dword [ecx + 4]
jle 0x4038f1
push 0x50a2e0
call fcn.0040fcde
add esp, 4
cmp dword [0x50a2e0], 0xffffffff
jne 0x4038f1
mov edx, 0x811c9dc5
xor eax, eax
nop dword [eax + eax]
movzx ecx, byte [eax + str.NtAllocateVirtualMemory]
inc eax
xor ecx, edx
imul edx, ecx, 0x1000193
cmp eax, 0x17
jb 0x403880
lea eax, [esp + 0x20]
mov ecx, edx
push eax
call fcn.0040c5f0
push 0x50a2e0
movups xmm0, xmmword [eax]
movups xmmword [0x509f98], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [0x509fa8], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [0x509fb8], xmm0
movups xmm0, xmmword [eax + 0x30]
movups xmmword [0x509fc8], xmm0
movups xmm0, xmmword [eax + 0x40]
movups xmmword [0x509fd8], xmm0
movq xmm0, qword [eax + 0x50]
movq qword [0x509fe8], xmm0
call fcn.0040fc94
add esp, 4
push 0
push dword [esp + 0x8c]
mov eax, esi
xorps xmm0, xmm0
cdq
mov ebx, eax
movlpd qword [esp + 0x20], xmm0
push 0
mov edi, edx
lea eax, [esp + 0x1c]
cdq
push 0x3000
mov esi, eax
mov ecx, edx
lea eax, [esp + 0x90]
cdq
push edx
push eax
push dword [esp + 0x34]
push dword [esp + 0x34]
push ecx
push esi
push edi
push ebx
push dword [0x509fe8]
call fcn.0040dbc0
add esp, 0x34
or eax, edx
je 0x40394f
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
add esp, 0x70
ret 0x10
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
add esp, 0x70
ret 0x10
Function at 0x4067c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov al, byte [esp + 0xc]
mov edx, dword [esp + 8]
push edi
mov edi, ecx
mov byte [edi + 4], al
xor eax, eax
mov dword [edi], vtable.SETTING_bool_.0
mov dword [edi + 8], 0x415118
mov dword [edi + 0xc], edx
cmp byte [edx], al
je 0x4067eb
inc eax
cmp byte [eax + edx], 0
jne 0x4067e4
push ebx
push esi
xor esi, esi
mov ebx, 0x811c9dc5
test eax, eax
je 0x406809
movzx ecx, byte [esi + edx]
inc esi
xor ecx, ebx
imul ebx, ecx, 0x1000193
cmp esi, eax
jb 0x4067f8
mov dword [edi + 0x10], ebx
mov eax, dword [0x415120]
pop esi
mov dword [esp + 0x14], edi
pop ebx
cmp eax, dword [0x415124]
je 0x40682e
mov dword [eax], edi
mov eax, edi
add dword [0x415120], 4
pop edi
ret 0xc
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, 0x41511c
call fcn.00407780
mov eax, edi
pop edi
ret 0xc

Function at 0x406850
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push edi
mov edi, ecx
mov dword [edi + 4], eax
xor eax, eax
mov dword [edi], vtable.SETTING_int_.0
mov dword [edi + 8], 0x415118
mov dword [edi + 0xc], edx
cmp byte [edx], al
je 0x40687b
inc eax
cmp byte [eax + edx], 0
jne 0x406874
push ebx
push esi
xor esi, esi
mov ebx, 0x811c9dc5
test eax, eax
je 0x406899
movzx ecx, byte [esi + edx]
inc esi
xor ecx, ebx
imul ebx, ecx, 0x1000193
cmp esi, eax
jb 0x406888
mov dword [edi + 0x10], ebx
mov eax, dword [0x415120]
pop esi
mov dword [esp + 0x14], edi
pop ebx
cmp eax, dword [0x415124]
je 0x4068be
mov dword [eax], edi
mov eax, edi
add dword [0x415120], 4
pop edi
ret 0xc
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, 0x41511c
call fcn.00407780
mov eax, edi
pop edi
ret 0xc
Function at 0x407b10
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub esp, 0x28
cmp dword [esp + 0x2c], 0
push ebx
push ebp
push esi
push edi
mov esi, ecx
je 0x407d8c
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x40]
call fcn.00404320
cmp dword [eax + 0x14], 0x28
jne 0x407d8c
push ecx
mov ecx, dword [esi]
lea edx, [esp + 0x1c]
push 4
push 0
push dword [0x4156dc]
mov dword [esp + 0x28], 0
call fcn.0040ca50
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword fs:[0x2c]
mov ebp, dword [eax]
mov eax, dword [0x509ed0]
cmp eax, dword [ebp + 4]
jle 0x407c00
push 0x509ed0
call fcn.0040fcde
add esp, 4
cmp dword [0x509ed0], 0xffffffff
jne 0x407c00
mov edi, 0x811c9dc5
xor edx, edx
nop dword [eax + eax]
movzx eax, byte [edx + str.aimteam_active]
xor eax, edi
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 0x412085]
add edx, 2
xor ecx, eax
imul edi, ecx, 0x1000193
cmp edx, 0xe
jb 0x407ba0
mov esi, dword [0x41511c]
mov ebx, dword [0x415120]
cmp esi, ebx
je 0x407bec
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 8]
cmp eax, edi
je 0x407ca0
add esi, 4
cmp esi, ebx
jne 0x407bd6
xor eax, eax
push 0x509ed0
mov dword [0x509ec8], eax
call fcn.0040fc94
add esp, 4
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x3c], eax
je 0x407d8c
lea ecx, [esp + 0x1c]
call fcn.004046b0
lea ecx, [esp + 0x3c]
mov esi, eax
call fcn.004046b0
cmp eax, esi
jne 0x407c35
mov eax, dword [0x509ec8]
cmp byte [eax + 4], 0
je 0x407d8c
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x17]
push ecx
mov ecx, dword [0x4156d4]
add eax, 0xed
push 1
push 0
push eax
mov ecx, dword [ecx]
mov byte [esp + 0x27], 0
call fcn.0040ca50
cmp byte [esp + 0x17], 0
jne 0x407d8c
mov eax, dword [0x415914]
cmp eax, dword [ebp + 4]
jle 0x407cc6
push 0x415914
call fcn.0040fcde
add esp, 4
cmp dword [0x415914], 0xffffffff
jne 0x407cc6
mov esi, dword [0x4156d4]
mov edx, str.DT_CSPlayer
mov ecx, esi
call fcn.00403f70
test eax, eax
jne 0x407ca7
jmp 0x407cb4
mov eax, dword [esi]
jmp 0x407bee
push eax
mov edx, str.m_lifeState
mov ecx, esi
call fcn.004041d0
push 0x415914
mov dword [0x415918], eax
call fcn.0040fc94
add esp, 4
mov eax, dword [0x415918]
lea edx, [esp + 0x18]
add eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [0x4156d4]
push 4
push 0
push eax
mov ecx, dword [ecx]
mov dword [esp + 0x28], 0
call fcn.0040ca50
cmp dword [esp + 0x18], 0
jne 0x407d8c
mov eax, dword [0x415910]
cmp eax, dword [ebp + 4]
jle 0x407d51
push 0x415910
call fcn.0040fcde
add esp, 4
cmp dword [0x415910], 0xffffffff
jne 0x407d51
mov esi, dword [0x4156d4]
mov edx, str.DT_BaseEntity
mov ecx, esi
call fcn.00403f70
test eax, eax
je 0x407d3f
push eax
mov edx, str.m_bSpottedByMask
mov ecx, esi
call fcn.004041d0
push 0x415910
mov dword [0x41590c], eax
call fcn.0040fc94
add esp, 4
mov eax, dword [0x41590c]
lea edx, [esp + 0x1c]
add eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [0x4156d4]
push 4
push 0
push eax
mov ecx, dword [ecx]
mov dword [esp + 0x2c], 0
call fcn.0040ca50
cmp dword [esp + 0x1c], 0
je 0x407d8c
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x28
ret 4
Function at 0x408800
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x33
call fcn.00408810
Function at 0x40bbd0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov al, byte [ebp + 0xc]
sub esp, 0x28
xorps xmm0, xmm0
push esi
push edi
cmp al, 1
jne 0x40bc7a
push 0xa2
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
mov ecx, dword [0x509f3c]
movss xmm2, dword [0x412c98]
jae 0x40bc3f
movss xmm0, dword [ecx + 4]
comiss xmm0, dword [0x412c00]
jbe 0x40bc21
subss xmm0, dword [0x412c54]
jmp 0x40bc5b
mov eax, dword [esp + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [ecx + 4], 0
mov dword [ecx + 0x10], eax
jmp 0x40bc60
movss xmm1, dword [ecx + 4]
xorps xmm0, xmm0
comiss xmm1, xmm0
jbe 0x40bc63
cvtps2pd xmm0, xmm1
subsd xmm0, qword [0x412c58]
cvtpd2ps xmm0, xmm0
movss dword [ecx + 4], xmm0
xorps xmm0, xmm0
movss xmm1, dword [ecx + 4]
comiss xmm1, xmm2
jbe 0x40bd21
subss xmm1, xmm2
jmp 0x40bd2a
cmp al, 2
jne 0x40bd0e
push 0xa2
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
mov ecx, dword [0x509f3c]
movss xmm0, dword [ecx + 4]
jae 0x40bced
movss xmm1, dword [0x412c98]
comiss xmm1, xmm0
jbe 0x40bcc3
addss xmm0, dword [0x412c54]
movss dword [ecx + 4], xmm0
movss xmm2, dword [0x412c98]
jmp 0x40bc60
mov eax, dword [esp + 0xc]
movaps xmm0, xmm1
mov dword [ecx + 8], eax
mov eax, dword [esp + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [ecx + 0x10], eax
movss dword [ecx + 4], xmm0
movss xmm2, dword [0x412c98]
jmp 0x40bc60
movss xmm2, dword [0x412c98]
comiss xmm2, xmm0
jbe 0x40bc60
cvtps2pd xmm0, xmm0
addsd xmm0, qword [0x412c58]
jmp 0x40bc57
mov ecx, dword [0x509f3c]
movss xmm2, dword [0x412c98]
jmp 0x40bc63
comiss xmm0, xmm1
jbe 0x40bd2f
addss xmm1, xmm2
movss dword [ecx + 4], xmm1
movaps xmmword [esp + 0x10], xmm0
lea eax, [esp + 0x10]
movaps xmmword [esp + 0x20], xmm0
sub esp, 8
cvtps2pd xmm0, xmm1
movsd qword [esp], xmm0
push str._.1f
push eax
call fcn.00402040
mov eax, dword [ebp + 8]
add esp, 0x10
mov al, byte [eax + 0x3d]
mov byte [esp + 0xb], al
cmp al, 0xb
ja 0x40bd9e
movzx eax, al
lea edx, [esp + 0x10]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [0x415728]
lea edi, [eax + ecx*4]
mov eax, edx
mov esi, edi
sub esi, eax
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [esi + edx + 0x2e], al
test al, al
jne 0x40bd80
mov cl, byte [esp + 0xb]
mov byte [edi + 0x3c], 9
mov byte [edi + 0x3e], 1
call fcn.00401530
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40c6b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov eax, dword fs:[0x2c]
sub esp, 0x90
mov edx, dword [eax]
mov eax, dword [0x509ff4]
push ebx
push esi
push edi
mov edi, ecx
cmp eax, dword [edx + 4]
jle 0x40c7a0
push 0x509ff4
call fcn.0040fcde
add esp, 4
cmp dword [0x509ff4], 0xffffffff
jne 0x40c7a0
mov edx, 0x811c9dc5
xor eax, eax
nop word [eax + eax]
movzx ecx, byte [eax + str.NtCreateThreadEx]
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [eax + 0x412a45]
xor edx, ecx
movzx ecx, byte [eax + 0x412a46]
imul edx, edx, 0x1000193
xor edx, ecx
movzx ecx, byte [eax + 0x412a47]
imul edx, edx, 0x1000193
add eax, 4
xor edx, ecx
imul edx, edx, 0x1000193
cmp eax, 0x10
jb 0x40c700
lea eax, [esp + 0x40]
mov ecx, edx
push eax
call fcn.0040c5f0
push 0x509ff4
movups xmm0, xmmword [eax]
movups xmmword [0x509ff8], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [0x50a008], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [0x50a018], xmm0
movups xmm0, xmmword [eax + 0x30]
movups xmmword [0x50a028], xmm0
movups xmm0, xmmword [eax + 0x40]
movups xmmword [0x50a038], xmm0
movq xmm0, qword [eax + 0x50]
movq qword [0x50a048], xmm0
call fcn.0040fc94
add esp, 4
mov eax, dword [esp + 0xa4]
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
push dword [esp + 0x14]
movlpd qword [esp + 0x1c], xmm0
push dword [esp + 0x14]
movlpd qword [esp + 0x28], xmm0
push dword [esp + 0x24]
cdq
push dword [esp + 0x24]
movlpd qword [esp + 0x38], xmm0
mov esi, eax
push dword [esp + 0x34]
mov ecx, edx
movlpd qword [esp + 0x44], xmm0
push dword [esp + 0x34]
mov eax, edi
movlpd qword [esp + 0x50], xmm0
push dword [esp + 0x44]
cdq
push dword [esp + 0x44]
mov ebx, eax
mov edi, edx
push dword [esp + 0x54]
mov eax, dword [esp + 0xd0]
push dword [esp + 0x54]
cdq
push edx
push eax
push 0
push dword [esp + 0xdc]
push ecx
push esi
push dword [esp + 0x7c]
push dword [esp + 0x7c]
push 0
push 0x1fffff
push edi
push ebx
push dword [0x50a048]
call fcn.0040cca0
add esp, 0x5c
pop edi
pop esi
pop ebx
add esp, 0x90
ret 0x20
Function at 0x40c900
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov eax, dword fs:[0x2c]
sub esp, 0x68
push ebx
push esi
mov esi, dword [eax]
mov ebx, ecx
mov eax, dword [0x50a0b4]
push edi
mov edi, edx
cmp eax, dword [esi + 4]
jle 0x40c9ff
push 0x50a0b4
call fcn.0040fcde
add esp, 4
cmp dword [0x50a0b4], 0xffffffff
jne 0x40c9ff
mov edx, 0x811c9dc5
xor eax, eax
nop dword [eax]
nop dword [eax + eax]
movzx ecx, byte [eax + str.NtWriteVirtualMemory]
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [eax + 0x412a69]
xor edx, ecx
movzx ecx, byte [eax + 0x412a6a]
imul edx, edx, 0x1000193
xor edx, ecx
movzx ecx, byte [eax + 0x412a6b]
imul edx, edx, 0x1000193
xor edx, ecx
movzx ecx, byte [eax + 0x412a6c]
imul edx, edx, 0x1000193
add eax, 5
xor edx, ecx
imul edx, edx, 0x1000193
cmp eax, 0x14
jb 0x40c950
lea eax, [esp + 0x18]
mov ecx, edx
push eax
call fcn.0040c4f0
push 0x50a0b4
movups xmm0, xmmword [eax]
movups xmmword [0x50a288], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [0x50a298], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [0x50a2a8], xmm0
movups xmm0, xmmword [eax + 0x30]
movups xmmword [0x50a2b8], xmm0
movups xmm0, xmmword [eax + 0x40]
movups xmmword [0x50a2c8], xmm0
movq xmm0, qword [eax + 0x50]
movq qword [0x50a2d8], xmm0
call fcn.0040fc94
add esp, 4
xorps xmm0, xmm0
mov eax, ebx
movlpd qword [esp + 0x10], xmm0
push dword [esp + 0x14]
cdq
push dword [esp + 0x14]
mov esi, eax
mov ecx, edx
push 0
push dword [esp + 0x8c]
mov eax, edi
cdq
push edx
push eax
push dword [esp + 0x94]
push dword [esp + 0x94]
push ecx
push esi
push dword [0x50a2d8]
call fcn.0040d7f0
add esp, 0x2c
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0x10

Function at 0x40ca50
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov eax, dword fs:[0x2c]
sub esp, 0x68
push ebx
push esi
mov esi, dword [eax]
mov ebx, ecx
mov eax, dword [0x50a050]
push edi
mov edi, edx
cmp eax, dword [esi + 4]
jle 0x40cb01
push 0x50a050
call fcn.0040fcde
add esp, 4
cmp dword [0x50a050], 0xffffffff
jne 0x40cb01
mov edx, 0x811c9dc5
xor eax, eax
movzx ecx, byte [eax + str.NtReadVirtualMemory]
inc eax
xor ecx, edx
imul edx, ecx, 0x1000193
cmp eax, 0x13
jb 0x40ca90
lea eax, [esp + 0x18]
mov ecx, edx
push eax
call fcn.0040c4f0
push 0x50a050
movups xmm0, xmmword [eax]
movups xmmword [0x50a118], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [0x50a128], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [0x50a138], xmm0
movups xmm0, xmmword [eax + 0x30]
movups xmmword [0x50a148], xmm0
movups xmm0, xmmword [eax + 0x40]
movups xmmword [0x50a158], xmm0
movq xmm0, qword [eax + 0x50]
movq qword [0x50a168], xmm0
call fcn.0040fc94
add esp, 4
xorps xmm0, xmm0
mov eax, ebx
movlpd qword [esp + 0x10], xmm0
push dword [esp + 0x14]
cdq
push dword [esp + 0x14]
mov esi, eax
mov ecx, edx
push 0
push dword [esp + 0x8c]
mov eax, edi
cdq
push edx
push eax
push dword [esp + 0x94]
push dword [esp + 0x94]
push ecx
push esi
push dword [0x50a168]
call fcn.0040d7f0
add esp, 0x2c
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0x10