joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10169830
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [edi + 0x7f30]
sub esp, 0xc
push esi
cmp dword [edi + 0xc], eax
jne 0x101698fe
test eax, eax
je 0x10169858
lea esi, [eax + eax]
mov dword [esp + 4], esi
jmp 0x10169864
mov dword [esp + 4], 0x400
mov esi, dword [esp + 4]
cmp esi, eax
jae 0x10169874
mov eax, 0x80070216
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.1016a960
mov esi, eax
test esi, esi
jne 0x1016988b
mov eax, 0x8007000e
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x7f34]
add eax, eax
add eax, eax
push eax
push ecx
push esi
call sub.msvcrt.dll_memcpy
mov eax, dword [edi + 0xc]
mov edx, dword [esp + 0x10]
sub edx, eax
add edx, edx
add edx, edx
push edx
lea eax, [esi + eax*4]
push 0
push eax
call sub.msvcrt.dll_memset
mov ecx, dword [edi + 0x7f34]
add esp, 0x18
mov dword [esp + 8], ecx
test ecx, ecx
je 0x101698ee
mov eax, dword [0x101e316c]
test eax, eax
jge 0x101698d7
xor eax, eax
jmp 0x101698e2
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ecx, dword [esp + 8]
push ecx
mov ecx, dword [eax]
push 0
push ecx
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [esp + 4]
mov dword [edi + 0x7f34], esi
mov dword [edi + 0x7f30], edx
cmp byte [ebp + 8], 0
je 0x10169962
mov eax, dword [ebx + 0x50]
mov eax, dword [eax + 8]
and eax, 0x100
xor ecx, ecx
or eax, ecx
je 0x10169962
or eax, 0xffffffff
cmp dword [ebx + 0x5c], eax
jne 0x10169962
cmp dword [ebx + 0x58], eax
jne 0x10169962
mov eax, dword [ebx + 0x44]
fld qword [ebx + 0xb8]
or dword [ebx + 0x40], 0x800010
fld st(0)
mov dword [ebx + 0x44], eax
call fcn.101dc8f9
mov dword [esp + 8], eax
fild dword [esp + 8]
fsubp st(1)
fabs
fcomp qword [0x100a3010]
fnstsw ax
test ah, 5
jp 0x10169962
mov ecx, dword [ebx + 0x44]
or dword [ebx + 0x40], 0x100000
mov dword [ebx + 0x44], ecx
mov eax, dword [ebx + 0x50]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 8]
mov eax, ecx
mov dword [esp + 0xc], edx
and eax, 0x10
xor edx, edx
or eax, edx
je 0x10169990
and ecx, 0x200000
xor eax, eax
or ecx, eax
je 0x10169990
mov eax, dword [ebx + 0x44]
or dword [ebx + 0x40], 0x10
mov dword [ebx + 0x44], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0x48], eax
mov ecx, dword [edi + 0x7f34]
mov dword [ecx + eax*4], ebx
inc dword [edi + 0xc]
or dword [edi + 0x18], 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10171ee0
Capabilities:
Get thread local storage value

Disassembly:
cmp word [esi + 0x40], 0
push edi
mov edi, dword [sym.imp.kernel32.dll_TlsGetValue]
je 0x10171f2f
mov eax, dword [0x101e316c]
test eax, eax
jge 0x10171efb
xor eax, eax
jmp 0x10171efe
push eax
call edi
movzx ecx, word [esi + 0x40]
cmp ecx, dword [eax + 0x128]
ja 0x10171f26
mov edx, dword [esi + 4]
mov eax, dword [eax + 0x124]
shl ecx, 4
lea eax, [ecx + eax - 0x10]
test edx, edx
je 0x10171f26
mov ecx, dword [eax + 4]
mov dword [edx], ecx
mov dword [eax + 4], edx
xor edx, edx
mov word [esi + 0x40], dx
mov dword [esi + 4], edx
cmp word [esi + 0x42], 0
je 0x10171f77
mov eax, dword [0x101e316c]
test eax, eax
jge 0x10171f43
xor eax, eax
jmp 0x10171f46
push eax
call edi
movzx ecx, word [esi + 0x42]
cmp ecx, dword [eax + 0x128]
ja 0x10171f6e
mov edx, dword [esi + 0xc]
mov eax, dword [eax + 0x124]
shl ecx, 4
lea eax, [ecx + eax - 0x10]
test edx, edx
je 0x10171f6e
mov ecx, dword [eax + 4]
mov dword [edx], ecx
mov dword [eax + 4], edx
xor edx, edx
mov word [esi + 0x42], dx
mov dword [esi + 0xc], edx
pop edi
ret

Function at 0x101751f0
Capabilities:
Get thread local storage value

Disassembly:
test esi, esi
je 0x10175236
mov eax, dword [0x101e316c]
test eax, eax
jl 0x10175236
push edi
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x10175235
push 0x44
push 0xfe
push esi
call sub.msvcrt.dll_memset
mov dword [esi], 0
mov eax, dword [edi + 0x1c]
add esp, 0xc
test eax, eax
je 0x1017522f
mov dword [eax], esi
mov dword [edi + 0x1c], esi
pop edi
ret
mov dword [edi + 0x18], esi
mov dword [edi + 0x1c], esi
pop edi
ret
Function at 0x41dc10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x12000]
push edi
jmp 0x41dc2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41dc31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41dc20
mov eax, 1
add ebx, ebx
jne 0x41dc43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41dc38
jne 0x41dc54
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41dc38
xor ecx, ecx
sub eax, 3
jb 0x41dc68
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41dcda
mov ebp, eax
add ebx, ebx
jne 0x41dc73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41dc80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41dca4
inc ecx
add ebx, ebx
jne 0x41dc90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41dc85
jne 0x41dca1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41dc85
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41dcc4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41dcb5
jmp 0x41dc26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41dcc4
add edi, ecx
jmp 0x41dc26
pop esi
mov edi, esi
mov ecx, 0x4df
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41dce2
cmp byte [edi], 5
jne 0x41dce2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41dce7
lea edi, [esi + 0x1b000]
mov eax, dword [edi]
or eax, eax
je 0x41dd5f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1e2e0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1e394]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41dd14
mov ecx, edi
jns 0x41dd43
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 + 0x1e398]
or eax, eax
je 0x41dd59
mov dword [ebx], eax
add ebx, 4
jmp 0x41dd31
call dword [esi + 0x1e3a8]
mov ebp, dword [esi + 0x1e39c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x41dd93
sub esp, 0xffffff80
jmp 0x40cd2c
Function at 0x40b4c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4fe3a0]
test esi, esi
jle 0x40b5d0
mov edi, dword [0x4fe3a4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x40b4f4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x40b575
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x40b4e0
mov dword [esp], eax
mov ebx, eax
call sym.___mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x40b5f7
mov eax, dword [0x4fe3a4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
add eax, dword [edi + 0xc]
mov edx, dword [0x4fe3a4]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40b5d7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40b56e
sub eax, 4
and eax, 0xfffffffb
jne 0x40b580
add dword [0x4fe3a0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x4fe3a4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40b56e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
xor esi, esi
jmp 0x40b4fe
mov eax, dword [0x4fe3a4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
mov esi, esi
lea edi, [edi]

Function at 0x40ba30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4fe3b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4fe3b0]
sub esp, 4
test ebx, ebx
je 0x40ba85
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40ba7e
test esi, esi
je 0x40ba7e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40ba60
mov dword [esp], 0x4fe3b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4104e0
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
mov dword [0x4fe404], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
sub esp, 0x10
mov dword [0x4fe408], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x410550
mov dword [esp + 4], dbg.emutls_destroy
mov dword [esp], eax
mov dword [0x4fe400], eax
call sym.___mingwthr_key_dtor
test eax, eax
jne sym._emutls_init.cold.6
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41053a
Function at 0x41e280
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x4b4ae0], 0
jne 0x41e3a6
mov byte [0x4b4ae0], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x41e374
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 0
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call sym.___cxa_demangle
mov dword [esp], 2
mov esi, dword [sym.___acrt_iob_func]
mov edi, eax
call esi
mov dword [esp + 8], 0x30
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sym._fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp], 2
test edx, edx
je 0x41e364
call esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._fputs
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x4b52b9
call sym._fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4aad78
jmp 0x4aad70
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._fputs
jmp 0x41e32a
mov dword [esp], 2
call dword [0x4b3088]
mov dword [esp + 8], 0x2d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sym._fwrite
jmp 0x4aad6b
mov dword [esp], 2
call dword [0x4b3088]
mov dword [esp + 8], 0x1d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
call sym._fwrite
call sym._abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x4ac960
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
nop
nop
nop
Function at 0x401000
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push 0
mov eax, dword [str.RZR1911REGSETUP]
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40104b
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x40103a
push 9
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
jmp 0x401162
mov ecx, dword [0x405038]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x401095
mov edx, dword [str.Star_Wars:_Episode_I_Racer]
push edx
push str.You_must_run_SETUP_from_the_directory_where_n_s_has_been_installed.
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x10
push 0x405130
lea ecx, [ebp - 0x104]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x401162
push 0x65
mov edx, dword [ebp + 8]
push edx
call fcn.00401168
add esp, 8
test eax, eax
jne 0x4010ae
xor eax, eax
jmp 0x401162
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040121c
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4010ce
xor eax, eax
jmp 0x401162
lea edx, [ebp - 0x204]
push edx
push 0xff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x204]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00401354
add esp, 8
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 1
jne 0x401116
push 0x40
push str.RAZOR_1911_Registry_Setup
push str.Registry_setup_has_been_successfully_completed_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0
push 0xe141
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
push 0
push 0
push 0
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x40115c
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x401129
mov eax, dword [ebp - 0x21c]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401354
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [str.SoftwareLucasArts_Entertainment_Company_LLCStar_Wars:_Episode_I_Racer_v1.0]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x401381
xor eax, eax
jmp 0x401596
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.004015a0
add esp, 8
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashA]
lea edx, [ebp - 0x20c]
push edx
call fcn.00401690
add esp, 4
add eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push str.Install_Path
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [ebp - 0x20c]
push edx
call fcn.00401690
add esp, 4
add eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push str.Source_Path
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [ebp - 0x20c]
push edx
call fcn.00401690
add esp, 4
add eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push str.Source_Dir
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push str.SWEP1RCR.EXE
lea edx, [ebp - 0x20c]
push edx
call fcn.004015b0
add esp, 8
lea eax, [ebp - 0x20c]
push eax
call fcn.00401690
add esp, 4
add eax, 1
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 1
push 0
push str.Executable
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004015a0
add esp, 8
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push str.SysCheck.exe
lea eax, [ebp - 0x20c]
push eax
call fcn.004015b0
add esp, 8
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00401690
add esp, 4
add eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
push 1
push 0
push str.Analyze_Path
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x405690
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004015a0
add esp, 8
lea edx, [ebp - 0x20c]
push edx
call fcn.00401690
add esp, 4
add eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push str.CD_Path
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x405204
lea edx, [ebp - 0x20c]
push edx
call fcn.004015a0
add esp, 8
lea eax, [ebp - 0x20c]
push eax
call fcn.00401690
add esp, 4
add eax, 1
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 1
push 0
push str.JoystickID
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], 9
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push str.Install_Type
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x402351
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4052e0
cmp edx, dword [eax]
je 0x402373
add eax, 8
inc ecx
cmp eax, 0x405370
jl 0x402364
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4052e0]
jne 0x4024a1
mov eax, dword [0x40569c]
cmp eax, 1
je 0x40247b
test eax, eax
jne 0x4023a4
cmp dword [0x405234], 1
je 0x40247b
cmp edx, 0xfc
je 0x4024a1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4023db
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004015a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00401690
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40241e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00401690
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4043e8
push edi
call fcn.00403580
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004015a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004015b0
lea eax, [ebp - 0xa0]
push 0x4043c8
push eax
call fcn.004015b0
push dword [esi + 0x4052e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004015b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004034ee
add esp, 0x2c
pop edi
jmp 0x4024a1
lea eax, [ebp + 8]
lea esi, [esi + 0x4052e4]
push 0
push eax
push dword [esi]
call fcn.00401690
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4046d8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00406894
test esi, esi
jne 0x40470e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004069fc
jmp 0x40472c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040461c
mov edi, eax
test esi, esi
je 0x40472c
cmp dword [ebx], 0
je 0x40472c
dec esi
jmp 0x404715
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405640
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405a2c
mov byte [esp], al
cmp byte [esp], 0
jne 0x4057c9
test edi, edi
je 0x4057c9
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405700
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x4056db
cmp edi, 0xffffffff
je 0x40569f
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40569f
mov byte [esp], 0
jmp 0x4057c9
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4056db
test ebx, ebx
jne 0x4056d4
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402568
test eax, eax
jne 0x4056d4
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4057c9
pause
dec ebp
test ebp, ebp
jg 0x405684
cmp edi, 0xffffffff
je 0x405700
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4056fe
mov byte [esp], 0
jmp 0x4057c9
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40564e
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402568
cmp ebx, eax
jne 0x405700
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040583c
mov edx, eax
mov ebx, dword [0x4d68c8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405767
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405765
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405767
xor edi, edi
cmp byte [esp], 0
je 0x405790
mov ebx, dword [esi]
test bl, 1
jne 0x4057a9
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402568
cmp ebx, eax
jne 0x40576d
mov byte [esp + 1], 1
jmp 0x4057a9
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402568
cmp ebx, eax
jne 0x405790
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40571a
cmp byte [esp], 0
je 0x4057c9
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406544
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d6050], 0
je 0x4065a5
cmp word [0x4d632c], 0xd7b2
jne 0x40656d
cmp dword [0x4d6334], 0
jbe 0x40656d
mov eax, 0x4d6328
call dword [0x4d6344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
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 0x4065d0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d3028], 0
jne 0x4065c1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406750
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x4d302c], 0
je 0x40677b
mov edx, edi
mov eax, esi
call dword [0x4d302c]
mov ebx, eax
jmp 0x40678c
mov eax, 8
call fcn.00404350
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4d6051], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406718
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x4067c1
mov edx, 8
mov eax, ebx
call fcn.0040436c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc