joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10050d00
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1394
call fcn.100a1ec0
mov eax, dword [0x10115040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
push edi
mov edi, edx
mov dword [ebp - 0x1394], ebx
call dword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [ebp - 0xc], 0xffffffff
mov esi, 1
mov dword [ebp - 0x138c], eax
nop dword [eax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, esi
mov dword [ebp + esi*4 - 0x138c], eax
inc esi
cmp esi, 0x270
jb 0x10050d40
lea eax, [ebx - 0x80000000]
mov dword [ebp - 0x1390], 0x270
add ebx, 0x80000000
lea esi, [edi - 0x80000000]
cmp dword [ebp - 0x1394], 0x80000000
lea ecx, [ebp - 0x1390]
cmovae ebx, eax
cmp edi, 0x80000000
lea eax, [edi - 0x80000000]
cmovae esi, eax
sub esi, ebx
cmp esi, 0xffffffff
jne 0x10050dad
call fcn.10060370
mov ecx, eax
jmp 0x10050de6
inc esi
call fcn.10060370
mul esi
mov dword [ebp - 0x1394], eax
mov ecx, edx
cmp eax, esi
jae 0x10050de6
mov eax, esi
xor edx, edx
neg eax
div esi
mov edi, edx
cmp dword [ebp - 0x1394], edi
jae 0x10050de6
lea ecx, [ebp - 0x1390]
call fcn.10060370
mul esi
mov ecx, edx
cmp eax, edi
jb 0x10050dd3
add ecx, ebx
cmp ecx, 0x80000000
pop edi
pop esi
lea edx, [ecx - 0x80000000]
lea eax, [ecx - 0x80000000]
mov ecx, dword [ebp - 4]
cmovae eax, edx
xor ecx, ebp
pop ebx
call fcn.100a0c1e
mov esp, ebp
pop ebp
ret
Function at 0x100527e0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10115040]
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.0x1005280b.3
movzx eax, byte [ecx + 0x100529c4]
jmp dword [eax*4 + 0x10052978]
push 7
push str.LButton
jmp 0x10052947
push 7
push str.RButton
jmp 0x10052947
push 7
push str.MButton
jmp 0x10052947
push 8
push str.XButton1
jmp 0x10052947
push 8
push str.XButton2
jmp 0x10052947
push 7
push str.NumPad0
jmp 0x10052947
push 7
push str.NumPad1
jmp 0x10052947
push 7
push str.NumPad2
jmp 0x10052947
push 7
push str.NumPad3
jmp 0x10052947
push 7
push str.NumPad4
jmp 0x10052947
push 7
push str.NumPad5
jmp 0x10052947
push 7
push str.NumPad6
jmp 0x10052947
push 7
push str.NumPad7
jmp 0x10052947
push 7
push str.NumPad8
jmp 0x10052947
push 7
push str.NumPad9
jmp 0x10052947
push 3
push 0x10103730
jmp 0x10052947
push 9
push str.Caps_Lock
jmp 0x10052947
push 4
push str.None
jmp 0x10052947
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 0x10052940
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 0x10052930
sub ecx, edx
lea eax, [ebp - 0x14]
push ecx
push eax
jmp 0x1005295d
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.10015260
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100a0c1e
mov esp, ebp
pop ebp
ret 8
Function at 0x1005c230
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a5bf1
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10115040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x10118d8c]
mov ecx, dword [0x10118d98]
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ecx, dword [0x10118d8c]
push eax
call esi
mov edi, eax
push 3
test edi, edi
je 0x1005c29c
call fcn.1009baa0
mov ebx, dword [eax + 4]
mov dword [ebp - 0x14], ebx
call fcn.10050e80
test eax, eax
je 0x1005c2ab
mov ecx, 3
mov dword [ebp - 0x14], ebx
jmp 0x1005c2b0
xor edi, edi
call fcn.1009baa0
mov esi, dword [eax + 4]
mov ebx, esi
mov dword [ebp - 0x14], esi
mov ecx, 2
mov eax, dword [0x10115dac]
vmovss xmm0, dword [0x1010aeec]
imul ecx, ebx
push 3
mov dword [ebp - 0x10], 0xffc8c8c8
mov dword [ebp - 0x1c], 1
sub eax, ecx
add eax, 0xfffffffe
mov dword [ebp - 0x18], eax
mov eax, dword [0x10118db8]
vdivss xmm0, xmm0, dword [eax + 8]
vcvttss2si esi, xmm0
call fcn.1009baa0
push esi
mov esi, dword [ebp - 0x10]
push str.fps__d
push 1
push esi
push dword [ebp - 0x18]
push 2
push eax
push 0x10115da8
call fcn.10099e10
add esp, 0x20
call fcn.10050e80
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1005c3cc
test edi, edi
je 0x1005c3cc
mov edx, dword [edi + 8]
lea ecx, [edi + 8]
call dword [edx + 0x24]
mov ecx, dword fs:[0x2c]
mov edi, eax
mov edx, dword [0x10118d50]
mov edx, dword [ecx + edx*4]
mov ecx, dword [0x10119760]
cmp ecx, dword [edx + 4]
jle 0x1005c390
push 0x10119760
call fcn.100a102d
add esp, 4
cmp dword [0x10119760], 0xffffffff
jne 0x1005c390
mov edx, str.m_iPing
mov dword [ebp - 4], 0
mov ecx, str.CPlayerResource
call fcn.1009c920
push 0x10119760
mov dword [0x10119758], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100a0fdc
add esp, 4
mov eax, dword [0x10119758]
push 3
mov dword [ebp - 0x1c], 2
lea eax, [eax + edi*4]
mov edi, dword [ebp - 0x10]
mov edi, dword [eax + edi]
call fcn.1009baa0
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x18]
push edi
push str.ping__d
push 1
push esi
push ecx
push 2
push eax
push 0x10115da8
call fcn.10099e10
add esp, 0x20
mov eax, dword [0x10118d74]
push 3
mov edi, dword [eax + 0x4b28]
call fcn.1009baa0
mov ecx, dword [ebp - 0x1c]
push edi
push str.choked__d
imul ecx, ebx
push 1
push esi
add ecx, dword [ebp - 0x18]
push ecx
push 2
push eax
push 0x10115da8
call fcn.10099e10
add esp, 0x20
push 3
call fcn.1009baa0
mov ecx, dword [ebp - 0x1c]
push str.Dec_22_2023_23:27:23
inc ecx
push str.build__hs
imul ecx, ebx
push 1
push esi
add ecx, dword [ebp - 0x18]
push ecx
push 2
push eax
push 0x10115da8
call fcn.10099e10
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 0x10060370
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 0x100603cd
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 0x10060390
mov eax, dword [esi]
jmp 0x100604a7
cmp eax, 0x4e0
jb 0x100604a7
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 0x100603e6
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 0x10060430
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 0x1006bd70
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 0x1006bdb0
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 0x1006bd85
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10099da0
Capabilities:
Create thread

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

Function at 0x1009ac90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a8a41
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x10115040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x10118d8c]
mov ecx, dword [0x10118d98]
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ecx, dword [0x10118d8c]
push eax
call esi
mov esi, eax
test esi, esi
je 0x1009ad6d
mov ecx, dword fs:[0x2c]
mov edx, dword [0x10118d50]
mov edx, dword [ecx + edx*4]
mov ecx, dword [0x101196ac]
cmp ecx, dword [edx + 4]
jle 0x1009ad3e
push 0x101196ac
call fcn.100a102d
add esp, 4
cmp dword [0x101196ac], 0xffffffff
jne 0x1009ad3e
mov edx, str.m_hActiveWeapon
mov dword [ebp - 4], 0
mov ecx, str.CBaseCombatCharacter
call fcn.1009c920
push 0x101196ac
mov dword [0x1011966c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100a0fdc
add esp, 4
mov eax, dword [0x10118d8c]
mov eax, dword [eax]
mov edx, dword [eax + 0x10]
mov eax, dword [0x1011966c]
mov ecx, dword [eax + esi]
push ecx
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x10118d8c]
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 0x1009c770
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x10115040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x40
lea eax, [ebp - 0x48]
mov esi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, 0x20
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x48]
shr eax, 3
mov edx, 0x3f
and eax, 0x3f
mov dword [ebp - 0x5c], 0xefcdab89
add ecx, eax
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
sub edx, eax
mov dword [ebp - 0x4c], 0
add esp, 0xc
mov dword [ebp - 0x48], esi
mov byte [ecx], 0x80
inc ecx
cmp edx, 8
jae 0x1009c802
push edx
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x60]
call fcn.1009c0f0
push 0x38
lea eax, [ebp - 0x48]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
jmp 0x1009c811
lea eax, [edx - 8]
push eax
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x48]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x60]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xc], eax
call fcn.1009c0f0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x5a]
xor ecx, ebp
pop esi
call fcn.100a0c1e
mov esp, ebp
pop ebp
ret
Function at 0x1009e7b0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10115040]
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 0x1009e8c3
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1009e8bc
mov ebx, 1
nop dword [eax]
cmp dword [ebp - 0x20], 0x10
jb 0x1009e87f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1009e87f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1009e87f
mov edx, dword [esi]
test edx, edx
jne 0x1009e848
push 0x200
push edx
push dword [0x101194ec]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x1009e8a4
lea edi, [esi + 8]
jmp 0x1009e872
mov eax, dword [esi + 4]
lea edi, [esi + 8]
cmp dword [edi], eax
jb 0x1009e872
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x101194ec]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1009e8d6
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 0x1009e800
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1009e8bc
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
je 0x1009e8bc
push eax
push ebx
push dword [0x101194ec]
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.100a0c1e
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x24]
jmp 0x1009e8a4

Function at 0x1009e8e0
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.1009e7b0
test eax, eax
jne 0x1009e911
mov eax, 9
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [edi], 0
je 0x1009e962
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x1009e95a
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 0x1009e953
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.1009e640
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x1009e920
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 0x1009e970
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10115040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x1011ac90]
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 0x1009e9d1
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a0c1e
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x1009e9f2
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 0x1009ea13
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x1009ea13
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x1009ea0d
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x1009ea13
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.100a0c1e
mov esp, ebp
pop ebp
ret
Function at 0x1009ea70
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [0x1011ac98]
sub esp, 0x10
push ebx
push esi
xor esi, esi
mov ebx, ecx
test edx, edx
je 0x1009eaa4
mov eax, dword [0x1011ac90]
add eax, 0x14
nop
movzx ecx, byte [eax]
shr ecx, 1
and ecx, 1
cmp ecx, ebx
jne 0x1009eaac
inc esi
add eax, 0x2c
cmp esi, edx
jb 0x1009ea90
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp esi, 0xffffffff
je 0x1009eb62
test ebx, ebx
lea ecx, [ebp - 0x10]
setne al
or edx, 0xffffffff
push eax
call fcn.1009e8e0
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x1009eb62
mov ecx, dword [0x1011ac98]
push edi
cmp esi, ecx
jae 0x1009eb1a
imul edi, esi, 0x2c
mov eax, dword [0x1011ac90]
movzx eax, byte [edi + eax + 0x14]
shr eax, 1
and eax, 1
cmp eax, ebx
je 0x1009eb0f
mov edx, ebx
mov ecx, esi
call fcn.1009e970
mov dword [ebp - 4], eax
test eax, eax
jne 0x1009eb1a
mov ecx, dword [0x1011ac98]
jmp 0x1009eb12
mov eax, dword [ebp - 4]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x1009eae4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1009eb61
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x1009eb4f
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1009eb49
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 0x1009eb28
push ebx
push 0
push dword [0x101194ec]
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 0x100a0987
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 0x100a09ae
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x100a09b1
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.100a0963
pop esi
leave
ret 8
Function at 0x4028f4
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402931
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402951
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004047cc
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402b18
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040454c
test esi, esi
jne 0x402b4e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040463c
jmp 0x402b6c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029cc
mov edi, eax
test esi, esi
je 0x402b6c
cmp dword [ebx], 0
je 0x402b6c
dec esi
jmp 0x402b55
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40367c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x46c020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403714
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4036f4
xor eax, eax
push ebp
push 0x4036ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403730
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4036f4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x46c020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x46c020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4043d0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46f044], 0
je 0x404431
cmp word [0x46f218], 0xd7b2
jne 0x4043f9
cmp dword [0x46f220], 0
jbe 0x4043f9
mov eax, 0x46f214
call dword [0x46f230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46c090
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404458
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46c030], 0
jne 0x40444d
push 0
push 0x46c088
push 0x46c090
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret