joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003dc0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
push ebx
mov ebx, ecx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
test eax, eax
jg 0x10003deb
jl 0x10003dde
test esi, esi
jne 0x10003deb
pop esi
pop ebp
xor eax, eax
xor edx, edx
pop ebx
add esp, 8
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10003e03
push eax
push esi
push ebp
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, esi
mov edx, dword [eax]
test edx, edx
je 0x10003e45
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
test eax, eax
je 0x10003e4c
cmp eax, dword [esp + 0x20]
cmovb esi, eax
push esi
push edx
push ebp
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add ebp, esi
sub edi, esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x20]
jmp 0x10003e4c
lea eax, [ebx + 0x2c]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x4c], 0
je 0x10003eb9
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10003e76
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x10003ea7
push dword [ebx + 0x4c]
push 0xfff
push 1
push ebp
call eax
add esp, 0x10
add ebp, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10003eb9
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10003e83
test edi, edi
je 0x10003eb9
push dword [ebx + 0x4c]
push edi
push 1
push ebp
call eax
add esp, 0x10
sub edi, eax
mov edx, dword [esp + 0x24]
sub esi, edi
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x10004220
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x1005b00c]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10004250
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10049096
add esp, 0x30
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10004281
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10004281
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10049096
add esp, 0x30
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x10004367
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x100042aa
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100042b6
movsx eax, bl
jmp 0x100042f6
lea eax, [esp + 0xc]
mov byte [esp + 0x17], bl
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x2b]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x10004321
sub eax, 1
je 0x10004321
sub eax, 2
jne 0x10004367
movsx eax, byte [esp + 0x17]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10049096
add esp, 0x30
ret 4
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x18]
sub edi, eax
je 0x10004341
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10004367
lea ecx, [esp + 0x17]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [esp + 0x10], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10049096
add esp, 0x30
ret 4
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10049096
add esp, 0x30
ret 4
Function at 0x10005850
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x1005b00c]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10005912
cmp byte [esi + 0x3d], 0
je 0x10005912
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x100058ff
mov ecx, dword [esi + 0x38]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x100058c3
sub eax, 1
je 0x100058c7
sub eax, 2
jne 0x100058ff
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10049096
add esp, 0x28
ret
mov byte [esi + 0x3d], 0
mov edi, dword [esp + 8]
lea eax, [esp + 0xc]
sub edi, eax
je 0x100058e7
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x100058ff
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10049096
add esp, 0x28
ret
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10049096
add esp, 0x28
ret
mov ecx, dword [esp + 0x28]
mov al, 1
pop esi
xor ecx, esp
call fcn.10049096
add esp, 0x28
ret

Function at 0x10017af0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x10017b4e
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x10017b32
cmp edi, 2
jb 0x10017b32
cmp byte [esi], cl
jne 0x10017b32
cmp byte [esi + 1], cl
jne 0x10017b32
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10050120]
jmp 0x10017b03
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10050120]
test edi, edi
jne 0x10017b03
pop edi
pop esi
not eax
pop ebx
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x10017b7d
cmp cl, 0x23
jne 0x10017b64
cmp byte [esi], cl
jne 0x10017b64
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x10050120]
test cl, cl
jne 0x10017b55
pop edi
pop esi
not eax
pop ebx
ret
Function at 0x10017c90
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x10017ca2
mov dword [edi], 0
mov edx, 0x1005431c
call fcn.10017b90
mov esi, eax
test esi, esi
je 0x10017d8a
mov ebp, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call ebp
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x10017d80
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10017d80
push esi
call ebp
mov ebp, eax
add esp, 4
cmp ebp, 0xffffffff
je 0x10017d80
push 0
push ebx
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10017d80
mov eax, dword [0x1005be30]
test eax, eax
je 0x10017d14
inc dword [eax + 0x370]
push dword [0x1005be28]
push ebp
call fcn.10017400
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10017d80
push esi
push ebp
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, ebp
je 0x10017d6a
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x1005be30]
add esp, 4
test eax, eax
je 0x10017d54
dec dword [eax + 0x370]
push dword [0x1005be28]
push ebx
call fcn.10017410
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test edi, edi
je 0x10017d79
mov dword [edi], ebp
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x1001e4c0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push ebp
push esi
or ebp, 0xffffffff
lea esi, [ecx + 1]
push edi
test bl, bl
je 0x1001e4fb
cmp bl, 0x23
jne 0x1001e4e2
cmp byte [esi], bl
jne 0x1001e4e2
cmp byte [esi + 1], bl
cmove eax, ebp
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x10050120]
test bl, bl
jne 0x1001e4d3
mov ecx, dword [0x1005be30]
not eax
mov esi, dword [ecx + 0x1b84]
mov edi, dword [ecx + 0x1b8c]
lea ebx, [edi + esi*8]
test esi, esi
je 0x1001e533
mov edx, esi
shr edx, 1
cmp dword [edi + edx*8], eax
lea ecx, [edi + edx*8]
jae 0x1001e52d
lea edi, [ecx + 8]
mov ecx, ebp
sub ecx, edx
add esi, ecx
jmp 0x1001e52f
mov esi, edx
test esi, esi
jne 0x1001e516
cmp edi, ebx
je 0x1001e543
cmp dword [edi], eax
jne 0x1001e543
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x10028020
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x2eec], 0
lea esi, [edi + 0x2ef0]
je 0x100280a2
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x1002805c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.100299a0
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.10018460
mov edx, dword [esi]
mov ecx, 0x1005be2c
push dword [edi + 0x2eec]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x2ef8]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.10018460
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10028700
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x1005be30]
sub esp, 8
vxorps xmm0, xmm0, xmm0
push esi
mov esi, ecx
push edi
vmovss dword [eax + 0x2ea0], xmm0
test esi, esi
je 0x1002875f
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.10028770
mov edx, 0x10054320
mov ecx, esi
mov edi, eax
call fcn.10017b90
mov esi, eax
test esi, esi
je 0x1002875f
push esi
push dword [esp + 0x10]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1002b260
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x34
mov eax, dword [0x1005b00c]
xor eax, esp
mov dword [esp + 0x30], eax
vmovq xmm0, qword [esp + 0x3c]
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x48]
mov edx, 0x12
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
vmovq qword [esp + 0x24], xmm0
vmovq xmm0, qword [esp + 0x50]
push edi
push eax
mov dword [esp + 0x34], ebx
vmovq qword [esp + 0x1c], xmm0
mov dword [esp + 0x28], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
call fcn.1002adb0
add esp, 4
xor esi, esi
vmovq xmm0, qword [eax]
mov eax, dword [eax + 8]
vmovq qword [esp + 0x18], xmm0
mov dword [esp + 0x20], eax
nop word [eax + eax]
cmp dword [esp + 0x1c], eax
jge 0x1002b2ff
lea ecx, [esp + 0x18]
call fcn.1002ac10
mov dword [esp + esi*4 + 0x34], eax
inc esi
cmp esi, 2
jge 0x1002b2ff
mov eax, dword [esp + 0x20]
jmp 0x1002b2e0
mov edi, dword [esp + 0x38]
test edi, edi
je 0x1002b3f2
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x1002b3f2
xor edx, edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
test edi, edi
js 0x1002b349
test ecx, ecx
js 0x1002b349
cmp edi, ebx
jg 0x1002b349
mov eax, ebx
sub eax, edi
cmp ecx, eax
jg 0x1002b349
mov eax, dword [esp + 0x28]
mov edx, ecx
add eax, edi
mov dword [esp + 0x18], eax
vmovq xmm0, qword [esp + 0x18]
lea eax, [esp + 0xc]
mov dword [esp + 0x20], edx
push eax
mov edx, 0x13
lea ecx, [esp + 0x1c]
vmovq qword [esp + 0x1c], xmm0
call fcn.1002adb0
add esp, 4
xor esi, esi
vmovq xmm0, qword [eax]
mov eax, dword [eax + 8]
vmovq qword [esp + 0x18], xmm0
mov dword [esp + 0x20], eax
cmp dword [esp + 0x1c], eax
jge 0x1002b3a1
lea ecx, [esp + 0x18]
call fcn.1002ac10
mov dword [esp + esi*4 + 0x24], eax
inc esi
cmp esi, 1
jge 0x1002b3a1
mov eax, dword [esp + 0x20]
jmp 0x1002b382
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1002b3f2
add eax, edi
cmp eax, ebx
jg 0x1002b3b7
mov dword [esp + 0x2c], eax
test eax, eax
jns 0x1002b3bb
mov dword [esp + 0x2c], ebx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x2c]
call fcn.1002ab20
mov edx, dword [esp + 0x48]
add esp, 4
vmovq xmm0, qword [eax]
mov ecx, dword [eax + 8]
mov eax, edx
pop edi
pop esi
vmovq qword [edx], xmm0
mov dword [edx + 8], ecx
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.10049096
add esp, 0x34
ret
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
vmovq xmm0, qword [esp + 0x10]
pop ebx
vmovq qword [eax], xmm0
xor ecx, esp
mov dword [eax + 8], 0
call fcn.10049096
add esp, 0x34
ret
Function at 0x10031c70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10031cac
mov eax, dword [0x1005be30]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x10031c96
dec dword [eax + 0x370]
push dword [0x1005be28]
push ecx
call fcn.10017410
add esp, 8
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x10031ce6
mov eax, dword [0x1005be30]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x10031cd0
dec dword [eax + 0x370]
push dword [0x1005be28]
push ecx
call fcn.10017410
add esp, 8
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x10031d20
mov eax, dword [0x1005be30]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x10031d0a
dec dword [eax + 0x370]
push dword [0x1005be28]
push ecx
call fcn.10017410
add esp, 8
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 ecx, dword [esi + 0x44]
test ecx, ecx
je 0x10031d76
mov eax, dword [0x1005be30]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x10031d60
dec dword [eax + 0x370]
push dword [0x1005be28]
push ecx
call fcn.10017410
add esp, 8
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x10031db0
mov eax, dword [0x1005be30]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x10031d9a
dec dword [eax + 0x370]
push dword [0x1005be28]
push ecx
call fcn.10017410
add esp, 8
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x10031dea
mov eax, dword [0x1005be30]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x10031dd4
dec dword [eax + 0x370]
push dword [0x1005be28]
push ecx
call fcn.10017410
add esp, 8
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.10034600
Function at 0x10039f90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x1005b00c]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [0x1005be30]
lea eax, [esp + 0x10]
push esi
push edi
push eax
push dword [0x1005bea8]
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [esp + 0x20], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
vxorps xmm1, xmm1, xmm1
vcvtsi2ss xmm1, xmm1, eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, eax
vmovss dword [ebx + 0x14], xmm0
lea eax, [esp + 0x30]
vxorpd xmm0, xmm0, xmm0
push eax
vmovss dword [ebx + 0x10], xmm1
vmovlpd qword [esp + 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [esp + 0x30]
mov ecx, edi
sub ecx, dword [0x1005beb0]
mov esi, dword [esp + 0x34]
mov edx, esi
sbb edx, dword [0x1005beb4]
call fcn.1004a590
mov edx, dword [0x1005bebc]
mov ecx, dword [0x1005beb8]
vcvtsd2ss xmm0, xmm0, xmm0
vmovss dword [esp + 0x28], xmm0
call fcn.1004a590
vmovss xmm1, dword [esp + 0x28]
vcvtsd2ss xmm0, xmm0, xmm0
vdivss xmm0, xmm1, xmm0
vmovss dword [ebx + 0x18], xmm0
mov dword [0x1005beb4], esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
mov dword [0x1005beb0], edi
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [ebx + 0xfc], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [ebx + 0xfd], al
call esi
mov esi, dword [0x1005be30]
shr eax, 0xf
and al, 1
mov byte [ebx + 0xff], 0
mov byte [ebx + 0xfe], al
cmp byte [esi + 0x357], 0
je 0x1003a0e2
vcvttss2si eax, dword [esi + 0xe4]
mov dword [esp + 0x28], eax
vcvttss2si eax, dword [esi + 0xe8]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
push eax
push dword [0x1005bea8]
call dword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x1003a0e2
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_SetCursorPos]
vmovss xmm0, dword [0x10054cc8]
vmovss dword [esi + 0xe4], xmm0
vmovss dword [esi + 0xe8], xmm0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x1003a162
mov ecx, dword [0x1005bea8]
cmp eax, ecx
je 0x1003a11a
push ecx
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x1003a162
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1003a162
lea eax, [esp + 0x10]
push eax
push dword [0x1005bea8]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x1003a162
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, dword [esp + 0x10]
vxorps xmm1, xmm1, xmm1
vcvtsi2ss xmm1, xmm1, dword [esp + 0x14]
vmovss dword [esi + 0xe4], xmm0
vmovss dword [esi + 0xe8], xmm1
cmp byte [ebx + 0xb0], 0
je 0x1003a170
or eax, 0xffffffff
jmp 0x1003a17b
mov eax, dword [0x1005be30]
mov eax, dword [eax + 0x1e40]
cmp dword [0x1005b41c], eax
je 0x1003a18d
mov dword [0x1005b41c], eax
call fcn.10039ba0
call fcn.10039cd0
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10049096
mov esp, ebp
pop ebp
ret
Function at 0x100430d0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
sub esp, 0x24
mov eax, dword [0x1005b00c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], edx
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x100431db
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x100431d4
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
nop dword [eax]
cmp dword [esp + 0x14], 0x10
jb 0x100431b8
call ebx
cmp dword [esp + 0x20], eax
jne 0x100431b8
call ebp
cmp dword [esp + 0x1c], eax
je 0x100431b8
mov edx, dword [esi]
test edx, edx
jne 0x10043180
push 0x200
push edx
push dword [0x1005be3c]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x100431d4
jmp 0x100431ab
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x100431ab
shl eax, 3
push eax
push edx
push 0
push dword [0x1005be3c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x100431d4
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 + 0x1c]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10043140
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x10043228
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x10043228
mov ebp, dword [esp + 0x38]
nop dword [eax + eax]
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10043222
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [esp + 0x10]
mov ecx, ebx
push ebp
call fcn.10042f60
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x100431f0
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10049096
add esp, 0x24
ret
Function at 0x10043240
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 8
mov eax, dword [0x1005b00c]
xor eax, esp
mov dword [esp + 4], eax
push ebx
push ebp
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x1005c1e0]
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 + 0x10]
push eax
push 0x40
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100432a0
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.10049096
add esp, 8
ret
test ebx, ebx
je 0x100432c1
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 0x100432e2
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x100432e2
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x100432dc
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x100432e2
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, byte [esi + 0x14]
and bl, 1
and cl, 0xfd
mov al, bl
add al, al
shl bl, 2
or cl, al
xor eax, eax
and cl, 0xfb
or cl, bl
pop edi
mov byte [esi + 0x14], cl
mov ecx, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10049096
add esp, 8
ret

Function at 0x10043340
Capabilities:
Resume thread

Disassembly:
mov edx, dword [0x1005c1e8]
sub esp, 0xc
push ebx
push ebp
push esi
xor ebp, ebp
xor esi, esi
mov ebx, ecx
test edx, edx
je 0x10043428
mov eax, dword [0x1005c1e0]
add eax, 0x14
movzx ecx, byte [eax]
shr ecx, 1
and ecx, 1
cmp ecx, ebx
jne 0x1004337f
inc esi
add eax, 0x2c
cmp esi, edx
jb 0x10043362
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
cmp esi, 0xffffffff
je 0x10043428
xor eax, eax
lea ecx, [esp + 0xc]
test ebx, ebx
push edi
setne al
or edx, 0xffffffff
push eax
call fcn.100430d0
mov ecx, dword [0x1005c1e8]
add esp, 4
cmp esi, ecx
jae 0x100433e0
imul edi, esi, 0x2c
nop dword [eax]
mov eax, dword [0x1005c1e0]
movzx eax, byte [edi + eax + 0x14]
shr eax, 1
and eax, 1
cmp eax, ebx
je 0x100433d8
mov edx, ebx
mov ecx, esi
call fcn.10043240
mov ebp, eax
test ebp, ebp
jne 0x100433e0
mov ecx, dword [0x1005c1e8]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x100433b0
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x10043427
xor esi, esi
cmp dword [esp + 0x18], esi
jbe 0x10043418
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10043411
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [esp + 0x18]
jb 0x100433f0
push ebx
push 0
push dword [0x1005be3c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret