joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000d220
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x1000d278
cmp byte [esi + ebx - 1], 0xa
je 0x1000d24c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x1001b0c4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x1000d820
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov edi, dword [0x1001b0d4]
mov esi, dword [ebp + 8]
test edi, edi
je 0x1000d9e0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x1001b0d4]
movzx eax, al
bt eax, esi
jae 0x1000da40
mov ecx, dword [0x1001b0c4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x1000d8e5
test byte [0x1000e23c], 8
jne 0x1000d980
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x1000e24c], 8
jne 0x1000d930
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x1000d8b4
cmp esi, 3
jbe 0x1000d8f0
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x100164e0]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x1000d8b4
mov ecx, dword [0x1001b0d4]
test ecx, ecx
je 0x1000da20
mov dword [esp], 0x1000e24c
call dword [0x1001b0d4]
test al, 8
je 0x1000d88b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x1000d88b
mov ebx, dword [0x1001b0d4]
test ebx, ebx
je 0x1000da00
mov dword [esp], 0x1000e23c
call dword [0x1001b0d4]
test al, 8
je 0x1000d876
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x1000d87e
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x1001b0d4
call sym._load_func.part.0
jmp 0x1000d83d
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x1001b0d4
call sym._load_func.part.0
jmp 0x1000d98a
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x1001b0d4
call sym._load_func.part.0
jmp 0x1000d93e
mov eax, 0xffffffff
jmp 0x1000d8e5
Function at 0x1000dbc0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x214
mov eax, dword [0x1001b0e0]
test eax, eax
je 0x1000dc78
mov dword [esp], ebx
call eax
mov dword [ebx + 8], eax
sub esp, 4
test eax, eax
jns 0x1000dc00
mov eax, dword [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x214]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.MODULE
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemRoot
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x1000dbec
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x1000dcad
mov dword [esp + 4], str.AtlCreateRegistrar
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x1001b0e0], eax
sub esp, 8
test eax, eax
jne 0x1000dbdd
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x1000dbee
Function at 0x1000dcc0
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov dword [esp + 4], eax
mov dword [ebp - 0x10], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edx, dword [ebp - 0x10]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
sub esp, 8
test ebx, ebx
je 0x1000de41
mov eax, dword [esi]
test eax, eax
je 0x1000de30
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
mov dword [ebp - 0x1c], edx
call edx
lea ecx, [eax + 1]
sub esp, 0x18
lea eax, [ecx + ecx]
mov dword [ebp - 0x18], ecx
mov ecx, eax
mov dword [ebp - 0x14], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x1000de45
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 4]
xor edx, edx
sub esp, 0x18
mov word [edi + eax - 2], dx
mov eax, dword [esi]
test ecx, ecx
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
jne 0x1000de28
call dword [edx + 0x28]
sub esp, 8
mov dword [esi + 8], eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 8]
sub esp, 0xc
not eax
shr eax, 0x1f
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
call dword [edx + 0x24]
sub esp, 8
jmp 0x1000dde9
mov edx, esi
mov eax, edi
call sym._create_registrar
test eax, eax
jne 0x1000dd26
xor eax, eax
jmp 0x1000de18
mov dword [esi + 8], 0x8007000e
xor eax, eax
jmp 0x1000de18
Function at 0x1003518
Capabilities:
Query environment variable
Set environment variable
Write file on windows

Disassembly:
push ecx
push ebx
xor ebx, ebx
push ebx
push ebx
push 0x1002388
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x10035e3
push esi
mov esi, 0x100afa0
push esi
push 0x1002378
push 0x100ad60
call fcn.01002a1f
push ebx
push 0x4000002
push 1
push ebx
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, eax
cmp edx, 0xffffffff
mov dword [0x100a024], edx
je 0x10035e2
push ebp
push edi
mov ebp, 0x100a5a0
xor eax, eax
push ebx
mov ecx, 0xc5
mov edi, ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
mov edi, 0x314
push edi
push ebp
push edx
mov dword [0x100a5a0], 0x6e776453
mov dword [0x100a5a4], 0x10000
mov dword [0x100a5a8], 0xc0000013
mov byte [0x100a7b0], bl
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10035cd
cmp dword [esp + 0x10], edi
jne 0x10035cd
push esi
push 0x1002388
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x10035e0
push dword [0x100a024]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x100a024], 0xffffffff
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x10035e6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x1003600
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [0x101b0c0], 0
jne 0x1003661
lea eax, [ebp - 0x280]
push eax
push 0x200
push esi
call fcn.01002b42
lea eax, [ebp - 0x280]
push eax
call fcn.0100323e
push 0x80
lea eax, [ebp - 0x80]
push eax
push 0x20000003
push dword [0x100a05c]
mov byte [ebp - 0x80], 0
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10010
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x280]
push eax
push dword [0x100aae4]
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.01002baa
test esi, esi
jne 0x100366b
inc esi
cmp dword [0x100a060], 0
je 0x1003686
push 0x100ad40
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
and dword [0x100a060], 0
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x10036ba
Capabilities:
Get common file path
Shutdown system

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x2c4
mov eax, dword [0x100a028]
push ebx
push esi
push 0x1002468
xor ebx, ebx
push ebx
push 0x100000
mov dword [ebp + 0x60], eax
mov dword [ebp - 0x250], 0x10
mov dword [ebp - 0x248], ebx
call dword [sym.imp.KERNEL32.dll_OpenEventA]
push 0x1002440
mov esi, eax
call fcn.0100323e
cmp esi, ebx
je 0x1003717
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100372e
cmp dword [ebp + 0x74], ebx
je 0x1003723
push 0xea60
jmp 0x1003728
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x260]
push eax
push ebx
push 0x13
jmp section..htext
Function at 0x178b850
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xfa6000]
lea eax, [edi + 0x12cab48]
push dword [eax]
mov dword [eax], 0xdb872d4f
push eax
push edi
jmp 0x178b87a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x178b881
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x178b870
mov eax, 1
add ebx, ebx
jne 0x178b893
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x178b8a4
jne 0x178b8c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x178b8c3
dec eax
add ebx, ebx
jne 0x178b8b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x178b888
add ebx, ebx
jne 0x178b8bf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x178b915
xor ecx, ecx
sub eax, 3
jb 0x178b8db
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x178b94a
sar eax, 1
mov ebp, eax
jmp 0x178b8e6
add ebx, ebx
jne 0x178b8e6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x178b8b4
inc ecx
add ebx, ebx
jne 0x178b8f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x178b8b4
add ebx, ebx
jne 0x178b901
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x178b8f6
jne 0x178b912
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x178b8f6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x178b934
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x178b926
jmp 0x178b876
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x178b934
add edi, ecx
jmp 0x178b876
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x77b88d
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x178b973
cmp byte [edi], 0x27
jne 0x178b958
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x178b956
lea edi, [esi + 0x1359000]
mov eax, dword [edi]
or eax, eax
je 0x178b9c4
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x139f60c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x139f884]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x178b979
mov ecx, edi
jns 0x178b9a8
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x139f88c]
or eax, eax
je 0x178b9be
mov dword [ebx], eax
add ebx, 4
jmp 0x178b996
call dword [esi + 0x139f888]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x178b9f5
cmp al, 0xef
ja 0x178b9e8
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x178b9ca
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x178b9d7
mov ebp, dword [esi + 0x139f890]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x277]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x178ba29
sub esp, 0xffffff80
jmp 0x8d3162
Function at 0x10055a50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x10055a5f
pop dword [ebp - 8]
mov eax, 0x45ef5ba1
sub eax, 0x35ea0142
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xfcaed330
sub dword [ebp - 0x18], 0xae5c8de5
mov dword [ebp - 0x14], 0x30f0a
add dword [ebp - 0x14], 0x32303d3b
mov dword [ebp - 0x10], 0x782eff13
sub dword [ebp - 0x10], 0x2be2bae5
mov dword [ebp - 0xc], 0x453cd449
sub dword [ebp - 0xc], 0x453cd449
lea eax, [ebp - 0x18]
push eax
mov eax, 0x478c44e5
sub eax, 0x3785a4ad
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x3c502ee0
sub dword [ebp - 0x18], 0xc7ddc58a
mov dword [ebp - 0x14], 0x15f4eb64
sub dword [ebp - 0x14], 0xd48889ef
mov dword [ebp - 0x10], 0x2992cb01
sub dword [ebp - 0x10], 0xc6235e95
mov dword [ebp - 0xc], 0x64bfb45a
sub dword [ebp - 0xc], 0x64bfb45a
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0x4bc69c81
add eax, 0xc44003bb
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x48108
push 0
call eax
mov ecx, 0x1bc7944e
add ecx, 0xe438bf2b
mov edx, eax
mov edi, 0x100a3400
add edi, dword [ebp - 8]
mov esi, 0x268038fb
sub dword [ebp - 4], esi
mov ebx, dword [edi]
xor ebx, esi
sub dword [ebp - 4], edx
mov dword [edx], ebx
sub dword [ebp - 4], 0x411416aa
add edx, 4
add edi, 0x505b1163
sub edi, 0x505b115f
loop 0x10055b75
add eax, 0x1daf6e9f
sub eax, 0x1dae2de8
xor ebx, ebx
add ebx, eax
add eax, 0x22ba5652
add eax, 0xdd45a9b3
mov ecx, 0x10000000
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x1005c13a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10094144]
jne 0x1005c144
repz ret
jmp fcn.1005c74e
Function at 0x10004820
Capabilities:
Hash data using fnv

Disassembly:
mov al, byte [ecx]
test al, al
jne 0x10004829
mov eax, edx
ret
movsx eax, al
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
jmp fcn.10004820
Function at 0x1000f4e0
Capabilities:
Hash data using fnv

Disassembly:
push ebx
mov ebx, ecx
mov ecx, dword [0x10213bfc]
push esi
push edi
mov eax, dword [ecx]
mov eax, dword [eax + 0x6c]
call eax
test al, al
je case.default.0x1000f5fb
mov ecx, dword [0x10213bfc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x68]
call eax
test al, al
je case.default.0x1000f5fb
mov edi, dword [0x10249c14]
test edi, edi
je case.default.0x1000f5fb
mov eax, dword [0x10249c10]
test eax, eax
jne 0x1000f554
mov edx, 0xe80c2f78
mov ecx, 0x101e7481
call fcn.10004820
mov edx, 0xc10bf213
mov ecx, 0x101e73a9
mov esi, eax
call fcn.10004820
mov edx, esi
mov ecx, eax
call fcn.10113840
mov dword [0x10249c10], eax
cmp dword [eax + edi], 0
jle case.default.0x1000f5fb
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov ecx, eax
mov al, byte [ecx]
test al, al
jne 0x1000f574
mov esi, 0x811c9dc5
jmp 0x1000f58a
movsx eax, al
inc ecx
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
call fcn.10004820
mov esi, eax
mov ecx, dword [ebx]
push 0
push str.attacker
mov edx, dword [ecx + 0x18]
mov ecx, ebx
call edx
mov ecx, dword [0x10213bfc]
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
call edx
mov ecx, dword [0x10249b98]
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
call edx
test eax, eax
je case.default.0x1000f5fb
test esi, esi
je case.default.0x1000f5fb
cmp esi, 0x1b30ddf0
jne case.default.0x1000f5fb
cmp eax, dword [0x10249c14]
jne case.default.0x1000f5fb
cmp byte [0x1024a0b5], 0
mov dword [0x1024a0ac], 0xff
je case.default.0x1000f5fb
mov eax, dword [0x1024a100]
cmp eax, 3
ja case.default.0x1000f5fb
jmp dword [eax*4 + 0x1000f668]
mov ecx, dword [0x1024a0a8]
push 0x101e7ad8
mov eax, dword [ecx]
mov eax, dword [eax + 0x148]
call eax
pop edi
pop esi
pop ebx
ret
mov ecx, dword [0x1024a0a8]
push str.buttons_button22.wav
mov eax, dword [ecx]
mov eax, dword [eax + 0x148]
call eax
pop edi
pop esi
pop ebx
ret
mov ecx, dword [0x1024a0a8]
push str.survivalmoney_collect_01.wav
mov eax, dword [ecx]
mov eax, dword [eax + 0x148]
call eax
pop edi
pop esi
pop ebx
ret
mov ecx, dword [0x1024a0a8]
push str.Ui_beep07.wav
mov eax, dword [ecx]
mov eax, dword [eax + 0x148]
call eax
pop edi
pop esi
pop ebx
ret
Function at 0x100126f0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [0x10249c14]
mov dword [esp + 8], edx
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x100128e3
mov eax, dword [0x10249c10]
test eax, eax
jne 0x10012741
mov edx, 0xe80c2f78
mov ecx, 0x101e7481
call fcn.10004820
mov edx, 0xc10bf213
mov ecx, 0x101e73a9
mov esi, eax
call fcn.10004820
mov edx, esi
mov ecx, eax
call fcn.10113840
mov dword [0x10249c10], eax
cmp dword [eax + ebx], 0
jle 0x100128e3
call fcn.1000ae70
cmp eax, 9
je 0x100128e3
cmp eax, 8
je 0x100128e3
cmp eax, 0xa
je 0x100128e3
cmp byte [0x1024a286], 0
je 0x100128e3
mov ecx, dword [0x10210290]
mov eax, dword [0x1024a2a8]
cmp ecx, 3
ja case.0x10012788.0
jmp dword [ecx*4 + 0x100128ec]
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
setne al
jmp 0x100127c0
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setne al
jmp 0x100127c0
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
sete al
test al, al
je 0x100128e3
test byte [esp + 0x10], 1
je 0x100128dc
mov eax, dword [0x10249c64]
mov ebx, dword [0x10249c14]
test eax, eax
jne 0x10012810
mov edx, 0xe80c2f78
mov ecx, 0x101e75b1
call fcn.10004820
mov edx, 0xc10bf213
mov ecx, 0x101e73a9
mov esi, eax
call fcn.10004820
mov edx, esi
mov ecx, eax
call fcn.10113840
mov dword [0x10249c64], eax
test byte [eax + ebx], 1
jne 0x100128dc
cmp byte [0x1024a2c9], 0
je 0x100128ca
cmp byte [0x1024a2b0], 0
je 0x100128ca
mov eax, dword [0x1024a28c]
test al, al
je 0x1001285d
mov ecx, dword [0x10213bfc]
and dword [edi + 0x30], 0xfffffff7
push 0
push str._forward
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c8]
call eax
mov eax, dword [0x1024a28c]
test ah, ah
je 0x1001287c
mov ecx, dword [0x10213bfc]
and dword [edi + 0x30], 0xffffffef
push 0
push str._back
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c8]
call eax
cmp byte [0x1024a28e], 0
je 0x100128a3
mov ecx, dword [0x10213bfc]
and dword [edi + 0x30], 0xfffffdff
push 0
push str._moveleft
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c8]
call eax
cmp byte [0x1024a28f], 0
je 0x100128ca
mov ecx, dword [0x10213bfc]
and dword [edi + 0x30], 0xfffffbff
push 0
push str._moveright
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c8]
call eax
or dword [edi + 0x30], 2
mov byte [0x1024ae56], 1
pop edi
pop esi
pop ebx
add esp, 8
ret
mov byte [0x1024ae56], 0
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x1001278f
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [0x10249c14]
mov dword [esp + 8], edx
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x100128e3
mov eax, dword [0x10249c10]
test eax, eax
jne 0x10012741
mov edx, 0xe80c2f78
mov ecx, 0x101e7481
call fcn.10004820
mov edx, 0xc10bf213
mov ecx, 0x101e73a9
mov esi, eax
call fcn.10004820
mov edx, esi
mov ecx, eax
call fcn.10113840
mov dword [0x10249c10], eax
cmp dword [eax + ebx], 0
jle 0x100128e3
call fcn.1000ae70
cmp eax, 9
je 0x100128e3
cmp eax, 8
je 0x100128e3
cmp eax, 0xa
je 0x100128e3
cmp byte [0x1024a286], 0
je 0x100128e3
mov ecx, dword [0x10210290]
mov eax, dword [0x1024a2a8]
cmp ecx, 3
ja case.0x10012788.0
jmp dword [ecx*4 + 0x100128ec]
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
setne al
jmp 0x100127c0
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setne al
jmp 0x100127c0
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
sete al
test al, al
je 0x100128e3
test byte [esp + 0x10], 1
je 0x100128dc
mov eax, dword [0x10249c64]
mov ebx, dword [0x10249c14]
test eax, eax
jne 0x10012810
mov edx, 0xe80c2f78
mov ecx, 0x101e75b1
call fcn.10004820
mov edx, 0xc10bf213
mov ecx, 0x101e73a9
mov esi, eax
call fcn.10004820
mov edx, esi
mov ecx, eax
call fcn.10113840
mov dword [0x10249c64], eax
test byte [eax + ebx], 1
jne 0x100128dc
cmp byte [0x1024a2c9], 0
je 0x100128ca
cmp byte [0x1024a2b0], 0
je 0x100128ca
mov eax, dword [0x1024a28c]
test al, al
je 0x1001285d
mov ecx, dword [0x10213bfc]
and dword [edi + 0x30], 0xfffffff7
push 0
push str._forward
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c8]
call eax
mov eax, dword [0x1024a28c]
test ah, ah
je 0x1001287c
mov ecx, dword [0x10213bfc]
and dword [edi + 0x30], 0xffffffef
push 0
push str._back
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c8]
call eax
cmp byte [0x1024a28e], 0
je 0x100128a3
mov ecx, dword [0x10213bfc]
and dword [edi + 0x30], 0xfffffdff
push 0
push str._moveleft
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c8]
call eax
cmp byte [0x1024a28f], 0
je 0x100128ca
mov ecx, dword [0x10213bfc]
and dword [edi + 0x30], 0xfffffbff
push 0
push str._moveright
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c8]
call eax
or dword [edi + 0x30], 2
mov byte [0x1024ae56], 1
pop edi
pop esi
pop ebx
add esp, 8
ret
mov byte [0x1024ae56], 0
pop edi
pop esi
pop ebx
add esp, 8
ret