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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100df040]
xor eax, ebp
mov dword [ebp - 4], eax
movsx ecx, word [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], esi
cmp ecx, 0x69
ja case.0x10053acb.3
movzx eax, byte [ecx + 0x10053c84]
jmp dword [eax*4 + 0x10053c38]
push 7
push str.LButton
jmp 0x10053c07
push 7
push str.RButton
jmp 0x10053c07
push 7
push str.MButton
jmp 0x10053c07
push 8
push str.XButton1
jmp 0x10053c07
push 8
push str.XButton2
jmp 0x10053c07
push 7
push str.NumPad0
jmp 0x10053c07
push 7
push str.NumPad1
jmp 0x10053c07
push 7
push str.NumPad2
jmp 0x10053c07
push 7
push str.NumPad3
jmp 0x10053c07
push 7
push str.NumPad4
jmp 0x10053c07
push 7
push str.NumPad5
jmp 0x10053c07
push 7
push str.NumPad6
jmp 0x10053c07
push 7
push str.NumPad7
jmp 0x10053c07
push 7
push str.NumPad8
jmp 0x10053c07
push 7
push str.NumPad9
jmp 0x10053c07
push 3
push 0x100cf5f8
jmp 0x10053c07
push 9
push str.Caps_Lock
jmp 0x10053c07
push 4
push str.None
jmp 0x10053c07
xor eax, eax
push 0x10
mov word [ebp - 0x14], ax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x14]
push eax
push 0
vpxor xmm0, xmm0, xmm0
push ecx
vmovq qword [ebp - 0x12], xmm0
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
shl eax, 0x10
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
test eax, eax
je 0x10053c00
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [esi], xmm0
lea ecx, [ebp - 0x14]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10053bf0
sub ecx, edx
lea eax, [ebp - 0x14]
push ecx
push eax
jmp 0x10053c1d
push 0xd
push str.VK2STR_FAILED
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov ecx, esi
call fcn.10014760
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1009f72e
mov esp, ebp
pop ebp
ret 8
Function at 0x1005d5c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a4ad1
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100df040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x100e2f44]
mov ecx, dword [0x100e2f50]
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ecx, dword [0x100e2f44]
push eax
call esi
mov esi, eax
mov dword [ebp - 0x14], esi
push 3
test esi, esi
je 0x1005d632
call fcn.10099fe0
mov ebx, dword [eax + 4]
mov dword [ebp - 0x18], ebx
call fcn.10052150
test eax, eax
je 0x1005d646
mov ecx, 3
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], ebx
jmp 0x1005d64b
mov dword [ebp - 0x14], 0
call fcn.10099fe0
mov edi, dword [eax + 4]
mov ebx, edi
mov dword [ebp - 0x18], edi
mov ecx, 2
mov eax, dword [0x100dfd4c]
mov edi, 1
vmovss xmm0, dword [0x100d5534]
imul ecx, ebx
push 3
mov dword [ebp - 0x10], 0xffc8c8c8
sub eax, ecx
add eax, 0xfffffffe
mov dword [ebp - 0x1c], eax
mov eax, dword [0x100e2f70]
vdivss xmm0, xmm0, dword [eax + 8]
vcvttss2si esi, xmm0
call fcn.10099fe0
push esi
mov esi, dword [ebp - 0x10]
push str.fps__d
push edi
push esi
push dword [ebp - 0x1c]
push 2
push eax
push 0x100dfd48
call fcn.10098200
add esp, 0x20
call fcn.10052150
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1005d765
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1005d765
mov edx, dword [eax + 8]
lea ecx, [eax + 8]
call dword [edx + 0x24]
mov ecx, dword fs:[0x2c]
mov edi, eax
mov edx, dword [0x100e2f10]
mov edx, dword [ecx + edx*4]
mov ecx, dword [0x100e377c]
cmp ecx, dword [edx + 4]
jle 0x1005d72b
push 0x100e377c
call fcn.1009fb3d
add esp, 4
cmp dword [0x100e377c], 0xffffffff
jne 0x1005d72b
mov edx, str.m_iPing
mov dword [ebp - 4], 0
mov ecx, str.CPlayerResource
call fcn.1009b460
push 0x100e377c
mov dword [0x100e3778], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1009faec
add esp, 4
mov eax, dword [0x100e3778]
push 3
lea eax, [eax + edi*4]
mov edi, dword [ebp - 0x10]
mov edi, dword [eax + edi]
call fcn.10099fe0
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x1c]
push edi
push str.ping__d
push 1
push esi
push ecx
push 2
push eax
push 0x100dfd48
call fcn.10098200
add esp, 0x20
mov edi, 2
push 3
call fcn.10099fe0
push str.Mar__3_2024
push str.build__hs
push 1
imul edi, ebx
push esi
add edi, dword [ebp - 0x1c]
push edi
push 2
push eax
push 0x100dfd48
call fcn.10098200
add esp, 0x20
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 0x100604b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x1006050d
lea edx, [esi + 8]
mov edi, eax
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x100604d0
mov eax, dword [esi]
jmp 0x100605e7
cmp eax, 0x4e0
jb 0x100605e7
lea edi, [esi + 0x9c4]
mov esi, 0xe3
push ebx
mov ebx, dword [edi]
mov eax, ebx
lea edi, [edi + 4]
mov ebx, dword [edi]
mov ecx, ebx
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub esi, 1
jne 0x10060526
mov edi, dword [ebp - 4]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
nop
mov eax, ebx
lea edi, [edi + 4]
mov ebx, dword [edi]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd50]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub esi, 1
jne 0x10060570
mov esi, dword [ebp - 4]
pop ebx
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1006ccc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a5a30
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xac
mov eax, dword [0x100df040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x100e2f50]
mov edi, dword [ebx + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
cmp dword [ebx + 8], eax
je 0x1006cdf7
push 0x84
lea eax, [ebp - 0xa0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [0x100e2f50]
lea edx, [ebp - 0xa0]
add esp, 0xc
mov eax, dword [ecx]
push edx
push dword [ebx + 8]
mov eax, dword [eax + 0x20]
call eax
test al, al
je 0x1006cdf7
cmp byte [ebp - 0x34], 0
jne 0x1006cdf7
vpxor xmm0, xmm0, xmm0
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0xac], 0
vmovdqu xmmword [ebp - 0xbc], xmm0
mov dword [ebp - 0xa8], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006cd80
sub ecx, edx
lea eax, [ebp - 0x7c]
push ecx
push eax
lea ecx, [ebp - 0xbc]
call fcn.10014760
push edi
lea eax, [ebp - 0xbc]
mov dword [ebp - 4], 0
push eax
call fcn.1006ce20
mov ecx, dword [ebp - 0xa8]
mov byte [ebp - 0xa1], al
cmp ecx, 0xf
jbe 0x1006cdf9
mov edx, dword [ebp - 0xbc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006cde5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006cde5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1009fa90
mov al, byte [ebp - 0xa1]
add esp, 8
jmp 0x1006cdf9
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1009f72e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8

Function at 0x1006ce20
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x100df040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
cmp dword [edx + 0x14], 0xf
jbe 0x1006ce3f
mov edx, dword [edx]
xor eax, eax
cmp byte [edx], al
je 0x1006ce4c
inc eax
cmp byte [eax + edx], 0
jne 0x1006ce45
push ebx
push ecx
push eax
mov ecx, 0x811c9dc5
call fcn.1006d700
mov ebx, eax
add esp, 8
movzx ecx, bl
xor ecx, 0x811c9dc5
shr eax, 0x10
imul edx, ecx, 0x1000193
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
movzx eax, al
mov dword [ebp - 8], ebx
xor edx, ecx
shr ebx, 0x18
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
xor eax, ebx
imul eax, eax, 0x1000193
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.1006d750
mov edx, dword [0x100dfea4]
pop ebx
mov eax, dword [eax + 4]
test eax, eax
cmovne edx, eax
cmp edx, dword [0x100dfea4]
je 0x1006cede
mov ax, word [edx + 0xc]
mov word [esi], ax
mov al, byte [edx + 0xe]
mov byte [esi + 2], al
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009f72e
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.1009f72e
mov esp, ebp
pop ebp
ret 8
Function at 0x1006d210
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a5b25
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100df040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], edi
movzx eax, byte [ebx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [ebx + 1]
xor ecx, eax
movzx eax, byte [ebx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.1006d750
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1006d293
mov dword [edi], eax
mov byte [edi + 4], 0
jmp 0x1006d400
cmp dword [0x100dfea8], 0xfffffff
jne 0x1006d2aa
push str.unordered_map_set_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
mov dword [ebp - 0x28], 0x100dfea4
mov dword [ebp - 4], 0
push 0x10
mov dword [ebp - 0x24], 0
call fcn.1009f741
mov ecx, dword [ebx]
mov esi, eax
lea edi, [esi + 8]
xor eax, eax
mov dword [edi], ecx
add esp, 4
mov dword [ebp - 0x24], esi
mov word [edi + 5], ax
mov word [edi + 4], ax
mov byte [edi + 6], al
mov dword [ebp - 4], 1
mov ecx, dword [0x100dfea8]
mov ebx, dword [0x100dfebc]
vmovss xmm1, dword [0x100dfea0]
vxorps xmm0, xmm0, xmm0
lea eax, [ecx + 1]
vcvtsi2sd xmm0, xmm0, eax
shr eax, 0x1f
vaddsd xmm0, xmm0, qword [eax*8 + 0x100d57d0]
vcvtsd2ss xmm2, xmm0, xmm0
vxorps xmm0, xmm0, xmm0
mov eax, ebx
shr eax, 0x1f
vcvtsi2sd xmm0, xmm0, ebx
vaddsd xmm0, xmm0, qword [eax*8 + 0x100d57d0]
vcvtsd2ss xmm0, xmm0, xmm0
vdivss xmm0, xmm2, xmm0
vcomiss xmm0, xmm1
jbe 0x1006d3af
vdivss xmm0, xmm2, xmm1
vcvtss2sd xmm0, xmm0, xmm0
vmovsd qword [ebp - 0x18], xmm0
fld qword [ebp - 0x18]
vxorpd xmm0, xmm0, xmm0
fstp qword [ebp - 0x18]
vroundsd xmm0, xmm0, qword [ebp - 0x18], 2
vmovsd qword [ebp - 0x18], xmm0
fld qword [ebp - 0x18]
fstp qword [ebp - 0x18]
vmovsd xmm0, qword [ebp - 0x18]
vcvtpd2ps xmm0, xmm0
call fcn.100a0a00
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x1006d392
cmp ebx, 0x200
jae 0x1006d390
shl ebx, 3
cmp ebx, ecx
jae 0x1006d392
mov ebx, ecx
push ebx
call fcn.1006d440
push dword [ebp - 0x1c]
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.1006d750
mov ecx, dword [0x100dfea8]
mov edx, dword [eax]
jmp 0x1006d3b2
mov edx, dword [ebp - 0x18]
mov ebx, dword [edx + 4]
inc ecx
mov dword [0x100dfea8], ecx
mov dword [esi], edx
mov dword [esi + 4], ebx
mov dword [ebx], esi
mov dword [edx + 4], esi
mov eax, dword [0x100dfeb8]
and eax, dword [ebp - 0x1c]
mov ecx, dword [0x100dfeac]
mov edi, dword [ecx + eax*8]
cmp edi, dword [0x100dfea4]
jne 0x1006d3e4
mov dword [ecx + eax*8], esi
jmp 0x1006d3f3
cmp edi, edx
jne 0x1006d3ed
mov dword [ecx + eax*8], esi
jmp 0x1006d3f7
cmp dword [ecx + eax*8 + 4], ebx
jne 0x1006d3f7
mov dword [ecx + eax*8 + 4], esi
mov edi, dword [ebp - 0x20]
mov dword [edi], esi
mov byte [edi + 4], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1006d700
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ebx
push edi
mov edi, ecx
test esi, esi
je 0x1006d740
mov bl, byte [ebx]
lea eax, [ebx + 0x20]
lea ecx, [ebx - 0x41]
movzx edx, al
movzx eax, bl
cmp cl, 0x19
mov ebx, dword [ebp - 4]
cmova edx, eax
inc ebx
movsx eax, dl
xor eax, edi
mov dword [ebp - 4], ebx
imul edi, eax, 0x1000193
sub esi, 1
jne 0x1006d715
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10098190
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x100981ba
push 0
push 0
push dword [ebp + 8]
push 0x10098120
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x100981ba
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebp
ret 0xc

Function at 0x10099080
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a7671
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x100df040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x100e2f44]
mov ecx, dword [0x100e2f50]
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ecx, dword [0x100e2f44]
push eax
call esi
mov esi, eax
test esi, esi
je 0x1009915d
mov ecx, dword fs:[0x2c]
mov edx, dword [0x100e2f10]
mov edx, dword [ecx + edx*4]
mov ecx, dword [0x100e36c0]
cmp ecx, dword [edx + 4]
jle 0x1009912e
push 0x100e36c0
call fcn.1009fb3d
add esp, 4
cmp dword [0x100e36c0], 0xffffffff
jne 0x1009912e
mov edx, str.m_hActiveWeapon
mov dword [ebp - 4], 0
mov ecx, str.CBaseCombatCharacter
call fcn.1009b460
push 0x100e36c0
mov dword [0x100e3684], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1009faec
add esp, 4
mov eax, dword [0x100e2f44]
mov eax, dword [eax]
mov edx, dword [eax + 0x10]
mov eax, dword [0x100e3684]
mov ecx, dword [eax + esi]
push ecx
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x100e2f44]
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1009b290
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x100df040]
xor eax, esp
mov dword [esp + 0x60], eax
push esi
push 0x40
lea eax, [esp + 0x24]
mov esi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, 0x20
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x2c]
shr eax, 3
mov edx, 0x3f
and eax, 0x3f
mov dword [esp + 0x18], 0xefcdab89
add ecx, eax
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
sub edx, eax
mov dword [esp + 0x28], 0
add esp, 0xc
mov dword [esp + 0x20], esi
mov byte [ecx], 0x80
inc ecx
cmp edx, 8
jae 0x1009b332
push edx
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
call fcn.1009ac10
push 0x38
lea eax, [esp + 0x30]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
jmp 0x1009b341
lea eax, [edx - 8]
push eax
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x58], eax
lea ecx, [esp + 8]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x5c], eax
call fcn.1009ac10
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0xe]
pop esi
xor ecx, esp
call fcn.1009f72e
mov esp, ebp
pop ebp
ret
Function at 0x1009d2f0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100df040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, 0xffffffff
je 0x1009d403
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1009d3fc
mov ebx, 1
nop dword [eax]
cmp dword [ebp - 0x20], 0x10
jb 0x1009d3bf
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1009d3bf
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1009d3bf
mov edx, dword [esi]
test edx, edx
jne 0x1009d388
push 0x200
push edx
push dword [0x100e38e0]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x1009d3e4
lea edi, [esi + 8]
jmp 0x1009d3b2
mov eax, dword [esi + 4]
lea edi, [esi + 8]
cmp dword [edi], eax
jb 0x1009d3b2
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x100e38e0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1009d416
mov dword [esi], edx
mov ecx, dword [edi]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [edi]
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1009d340
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1009d3fc
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
je 0x1009d3fc
push eax
push ebx
push dword [0x100e38e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1009f72e
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x24]
jmp 0x1009d3e4

Function at 0x1009d420
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.1009d2f0
test eax, eax
jne 0x1009d451
mov eax, 9
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [edi], 0
je 0x1009d4a2
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x1009d49a
push ebx
nop
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 0x1009d493
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.1009d180
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x1009d460
pop ebx
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1009d4b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100df040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x100e4c90]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1009d511
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009f72e
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x1009d532
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 0x1009d553
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x1009d553
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x1009d54d
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x1009d553
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0xc]
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 [ebp - 4]
pop edi
mov byte [esi + 0x14], bl
xor ecx, ebp
pop esi
pop ebx
call fcn.1009f72e
mov esp, ebp
pop ebp
ret
Function at 0x1009d5b0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [0x100e4c98]
sub esp, 0x10
push ebx
push esi
xor esi, esi
mov ebx, ecx
test edx, edx
je 0x1009d5e4
mov eax, dword [0x100e4c90]
add eax, 0x14
nop
movzx ecx, byte [eax]
shr ecx, 1
and ecx, 1
cmp ecx, ebx
jne 0x1009d5ec
inc esi
add eax, 0x2c
cmp esi, edx
jb 0x1009d5d0
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp esi, 0xffffffff
je 0x1009d6a2
test ebx, ebx
lea ecx, [ebp - 0x10]
setne al
or edx, 0xffffffff
push eax
call fcn.1009d420
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x1009d6a2
mov ecx, dword [0x100e4c98]
push edi
cmp esi, ecx
jae 0x1009d65a
imul edi, esi, 0x2c
mov eax, dword [0x100e4c90]
movzx eax, byte [edi + eax + 0x14]
shr eax, 1
and eax, 1
cmp eax, ebx
je 0x1009d64f
mov edx, ebx
mov ecx, esi
call fcn.1009d4b0
mov dword [ebp - 4], eax
test eax, eax
jne 0x1009d65a
mov ecx, dword [0x100e4c98]
jmp 0x1009d652
mov eax, dword [ebp - 4]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x1009d624
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1009d6a1
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x1009d68f
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1009d689
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x1009d668
push ebx
push 0
push dword [0x100e38e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1009ed8a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x1009edb1
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x1009edb4
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.1009ed66
pop esi
leave
ret 8