joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402420
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x44
lea eax, [esp]
push ebx
lea edx, [esp + 8]
push esi
mov dword [esp + 8], 0x40
push eax
push edx
push 0
push 0
push str.Mixer
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402483
mov esi, 0x45c038
mov al, byte [esp + 0xc]
mov byte [0x45c034], al
mov eax, 7
mov cl, byte [esp + 0x10]
mov byte [0x45c030], cl
lea ecx, [esp + 0x14]
mov edx, dword [ecx]
add ecx, 4
mov dword [esi + 0x10], edx
add ecx, 4
add esi, 0x18
dec eax
mov dl, byte [ecx - 4]
mov byte [esi - 4], dl
jne 0x40246c
pop esi
pop ebx
add esp, 0x44
ret
Function at 0x402490
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x168
mov eax, dword [0x46be74]
test eax, eax
nop
push ebx
push esi
push edi
push ebp
mov edi, 0
je 0x4024e1
mov edi, ecx
sub eax, eax
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x74]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push str..AVI
and ecx, 3
lea edx, [esp + 0x78]
rep movsb byte es:[edi], byte [esi]
mov ecx, str.Video_
call fcn.0043e160
mov edi, eax
mov ebx, dword [esp + 0x17c]
test bl, 0x20
jne 0x402517
test bl, 1
jne 0x4024fe
mov ecx, 1
call fcn.00402fe0
jmp 0x402517
push 0
mov eax, dword [0x4b8920]
push 0
mov ecx, dword [0x46bedc]
push eax
mov ebp, dword [sym.imp.USER32.dll_PostThreadMessageA]
push ecx
call ebp
test edi, edi
je 0x4026be
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x74]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.USER32.dll_ShowCursor]
push 0
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebp
test bl, 1
mov dword [0x472518], eax
jne 0x402578
mov eax, dword [0x46be74]
cmp eax, 2
je 0x402578
mov ecx, str.Matte
mov edx, dword [0x46bee0]
call fcn.0041a8e0
jmp 0x4025a4
mov dword [esp + 0x10], 0x64
mov dword [esp + 0x60], 0
lea eax, [esp + 0x10]
mov ecx, dword [0x46bee8]
push eax
push 0x1000400
push 0
mov eax, dword [ecx]
push 0
push 0
push ecx
call dword [eax + 0x14]
mov ecx, dword [0x472518]
call fcn.00402b10
test eax, eax
je 0x4026b6
push 0
mov eax, dword [0x472518]
push eax
push 0
push 0
push 0x1e0
push 0x280
mov ecx, dword [str.AVI_Window]
push 0
mov ebp, dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push closesocket
push str.DigitalVideo
push ecx
push 8
call ebp
mov dword [0x472528], eax
test eax, eax
je 0x4026b6
lea ecx, [esp + 0x74]
mov edx, ebx
call fcn.004026e0
test eax, eax
jne 0x402692
push 1
mov eax, dword [0x472528]
push eax
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
call ebp
mov ecx, dword [0x472528]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
lea ecx, [esp + 0x10]
push 0
push 0
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push ecx
call esi
test eax, eax
je 0x402692
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [esp + 0x10]
mov edx, ebx
call fcn.00402bc0
test al, al
je 0x402665
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x402681
lea eax, [esp + 0x10]
push eax
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [0x472528]
cmp ecx, eax
jne 0x402681
lea eax, [esp + 0x10]
push eax
call ebp
lea eax, [esp + 0x10]
push 0
push 0
push 0
push eax
call esi
test eax, eax
jne 0x40264c
call fcn.00402a40
mov ecx, ebx
call fcn.00402cd0
mov eax, dword [0x472528]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push 1
call dword [sym.imp.USER32.dll_ShowCursor]
xor eax, eax
jmp 0x4026ca
push 1
call dword [sym.imp.USER32.dll_ShowCursor]
mov ecx, ebx
call fcn.00402cd0
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x168
ret 4
Function at 0x402cd0
Capabilities:
Create thread

Disassembly:
test cl, 0x20
push ebx
jne 0x402d74
test cl, 2
je 0x402cfe
mov ecx, dword [0x46bec4]
call fcn.00410340
test eax, eax
jne 0x402d74
mov dword [0x4b8978], 1
pop ebx
ret
test cl, 1
je 0x402d1c
push 0
mov eax, dword [0x4b8924]
push 0
mov ecx, dword [0x46bedc]
push eax
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
pop ebx
ret
mov ecx, dword [0x46bec4]
call fcn.00410340
test eax, eax
jne 0x402d74
mov dword [0x4b8978], 1
mov ecx, dword [0x46bec4]
call fcn.004104c0
test eax, eax
jne 0x402d74
push 0x46bedc
mov eax, dword [0x46bec4]
push 0
push eax
push 0x4030d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
mov ecx, dword [0x4aa320]
push ecx
mov dword [0x4b897c], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop ebx
ret
Function at 0x40e620
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 4
lea eax, [esp]
push ebx
mov dword [esp + 4], 0x16
push eax
push 0x45eef8
push 0
push 0
push str.Controls
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
pop ebx
add esp, 4
ret

Function at 0x40e650
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0xc
lea eax, [esp]
push ebx
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
lea ecx, [esp + 0xc]
push 0x10
push 0
push ecx
call fcn.00450a10
add esp, 0xc
and eax, 0x3ff
sub eax, 7
cmp eax, 9
ja case.0x40e687.12
xor ecx, ecx
mov cl, byte [eax + 0x40e6e4]
jmp dword [ecx*4 + 0x40e6cc]
mov esi, 0x45ef28
jmp 0x40e6b6
mov esi, 0x45f030
jmp 0x40e6b6
mov esi, 0x45f348
jmp 0x40e6b6
mov esi, 0x45f450
jmp 0x40e6b6
mov esi, 0x45f138
jmp 0x40e6b6
mov esi, 0x45f240
mov edi, 0x4b6690
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x40e6f0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx + 8]
sub eax, 0xa0
cmp eax, 2
nop
lea ecx, [eax*2 + 0x45eef8]
jl 0x40e70a
cmp eax, 3
jle 0x40e719
call fcn.0040e7c0
call fcn.0040e730
jmp fcn.0040e770
call fcn.0040fcd0
call fcn.0040e730
jmp fcn.0040e770
Function at 0x40fbb0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x11c
mov eax, dword [0x46bec4]
push ebx
push esi
push edi
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push 0x105
push 0x100
push eax
lea eax, [esp + 0x1c]
push eax
call esi
test eax, eax
mov eax, dword [0x46bec4]
jne 0x40fbc4
lea edi, [esp + 0x28]
xor eax, eax
mov ecx, 0x40
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x40fc28
xor ecx, ecx
mov edx, pe_nt_image_headers32
xor ebx, ebx
mov al, byte [esp + ecx + 0x28]
test dl, al
je 0x40fc1f
mov byte [0x4b64a0], 1
mov al, byte [ecx + 0x4b6690]
test al, al
jne 0x40fc34
inc ecx
cmp ecx, 0x100
jb 0x40fc06
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x11c
ret
xor eax, eax
pop edi
mov al, byte [ecx + 0x4b6690]
pop esi
pop ebx
add esp, 0x11c
ret

Function at 0x412150
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, edx
push 0
push 0x10000000
push 3
push 0
push 1
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x4121c6
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push 0
push edi
mov eax, dword [esi]
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, dword [esp + 0x10]
test eax, eax
mov dword [ebx], eax
je 0x4121bb
push edi
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x4121c8
mov eax, dword [ebx]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
jmp 0x4121c1
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
push eax
call edi
xor eax, eax
pop edi
pop esi
pop ebx
ret 4
Function at 0x4128d0
Capabilities:
Set registry value

Disassembly:
sub esp, 4
mov ecx, 1
push ebx
push esi
call fcn.00430f50
call fcn.0043d9e0
xor edx, edx
mov ecx, dword [0x46bec4]
call fcn.0041b7d0
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.SOFTWAREElectronic_ArtsRoadRash_95
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412967
mov eax, dword [esp + 8]
push 1
push 0x46ba30
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 3
push 0
push str.ChatState
push eax
call esi
mov ecx, dword [esp + 8]
push 1
push 0x45f8b0
push 3
push 0
push str.MiniDash
push ecx
call esi
mov eax, dword [esp + 8]
push 1
push 0x46be90
push 3
push 0
push str.OpponentList
push eax
call esi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [0x4b6670]
test al, al
je 0x412990
mov byte [0x4aa4a5], 0
xor ecx, ecx
call fcn.0042cb50
mov eax, 0xb
pop esi
mov byte [0x4b6670], 0
pop ebx
add esp, 4
ret
mov cl, byte [0x4b6450]
mov dl, byte [0x4b6449]
mov al, cl
or al, dl
je 0x4129dd
mov byte [0x4aa4a5], 0
mov eax, dword [0x463224]
cmp eax, 0x184
je 0x4129b9
test cl, cl
je 0x4129e7
xor ecx, ecx
mov cl, dl
call fcn.00436080
mov dl, byte [0x4b6449]
mov cl, byte [0x4b6450]
test eax, eax
je 0x4129e7
mov eax, 0xb
pop esi
pop ebx
add esp, 4
ret
mov al, byte [0x4b6678]
mov byte [0x4aa4a6], al
mov eax, dword [0x46be98]
test eax, eax
jne 0x4129fb
mov eax, 9
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x4b667c]
cmp eax, 2
je 0x412a33
cmp eax, 3
je 0x412a3e
cmp eax, 4
je 0x412a49
or cl, dl
je 0x412a28
push 1
xor ecx, ecx
push 0xffffffffffffffff
mov cl, byte [0x4aa4a0]
push 1
xor edx, edx
call fcn.0041d200
mov eax, 0x1c
pop esi
pop ebx
add esp, 4
ret
mov eax, 0x1e
pop esi
pop ebx
add esp, 4
ret
mov eax, 0x1f
pop esi
pop ebx
add esp, 4
ret
or cl, dl
je 0x412a62
push 1
xor ecx, ecx
push 0xffffffffffffffff
mov cl, byte [0x4aa4a0]
push 2
xor edx, edx
call fcn.0041d200
mov eax, 0x1d
pop esi
pop ebx
add esp, 4
ret
Function at 0x4132f0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, edx
mov ebx, ecx
test esi, esi
je 0x413343
lea eax, [esi + 0x5a]
lea ecx, [esi + 0x50]
lea edx, [esp + 0x10]
push eax
push ecx
push str._s__s
push edx
call fcn.00450c80
lea ecx, [esp + 0x20]
add esp, 0x10
push ecx
push 0
push 0xc
push 0xfa3
push ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
cmp esi, 0x476400
je 0x413365
mov edi, 0x476400
mov ecx, 0x1a
rep movsd dword es:[edi], dword [esi]
jmp 0x413365
mov edi, 0x476400
xor eax, eax
mov ecx, 0x1a
push 0x45fc78
rep stosd dword es:[edi], eax
push eax
push 0xc
push 0xfa3
push ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push str.SOFTWAREElectronic_ArtsRoadRash_95
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4133ba
mov edi, 0x476400
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
mov eax, dword [esp + 0xc]
push ecx
push 0x476400
push 1
push 0
push str.Reconnect
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x413460
Capabilities:
Set registry value

Disassembly:
sub esp, 0x14
mov dword [esp + 0x10], ecx
push ebx
push esi
mov ebx, edx
push edi
mov esi, 0xffffffff
push ebp
push 0x6c
call fcn.00450550
mov dword [esp + 0x18], eax
add esp, 4
test eax, eax
je 0x41361d
mov ecx, dword [0x4763e8]
mov dword [eax + 0x68], ecx
mov cl, byte [esp + 0x28]
mov dword [0x4763e8], eax
test cl, cl
je 0x4135d5
lea eax, [esp + 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0xf003f
push 0
push str.SOFTWAREElectronic_ArtsRoadRash_95
push reloc.WSOCK32.dll_bind
call edi
test eax, eax
jne 0x4135d5
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push eax
push 0xf003f
push 0
push str.IPX_Hosts
push ecx
call edi
test eax, eax
jne 0x4135c8
xor ebp, ebp
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
mov eax, ebp
inc ebp
push str.Entry_04d
push ebx
call fcn.00450c80
lea ecx, [esp + 0x1c]
mov eax, dword [esp + 0x24]
add esp, 0xc
push ecx
push 0xf003f
push 0
push ebx
push eax
call edi
test eax, eax
jne 0x413523
mov eax, dword [esp + 0x10]
push eax
call esi
jmp 0x4134f0
lea eax, [esp + 0x10]
push 0
push eax
push 0
mov ecx, dword [esp + 0x24]
push 0xf003f
push 0
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push str.RoadRash
push 0
push ebx
push ecx
call ebp
test eax, eax
jne 0x4135bf
lea edx, [ebx + 0x10]
mov ecx, 0xffffffff
mov edi, edx
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
mov eax, dword [esp + 0x10]
push ecx
push edx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push 0
push str.Name
push eax
call ebp
lea edx, [ebx + 0x50]
mov ecx, 0xffffffff
mov edi, edx
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
mov eax, dword [esp + 0x10]
push ecx
push edx
push 1
push 0
push 0x45fc48
push eax
call ebp
lea edx, [ebx + 0x5a]
mov ecx, 0xffffffff
mov edi, edx
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov ecx, dword [esp + 0x18]
push 1
push 0
push str.Node
push ecx
call ebp
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
jmp 0x4135ce
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
push eax
call esi
mov edi, dword [esp + 0x14]
mov esi, ebx
mov ecx, 0x1a
mov edx, 1
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x20]
add ebx, 0x10
mov byte [0x4763ec], 1
call fcn.004133d0
mov eax, dword [esp + 0x20]
push ebx
push 0
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x143
push 0xfa1
push eax
call ebp
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret 4
Function at 0x413d90
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
call fcn.00413d40
mov ebx, eax
test ebx, ebx
je 0x413eb8
mov esi, 0x476400
mov edi, ebx
mov ecx, 0x1a
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0xf003f
push 0
push str.SOFTWAREElectronic_ArtsRoadRash_95
push reloc.WSOCK32.dll_bind
call esi
test eax, eax
jne 0x413eb8
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
push 0xf003f
push 0
push str.IPX_Hosts
push ecx
call esi
test eax, eax
jne 0x413eab
lea eax, [esp + 0xc]
mov ecx, dword [esp + 0x10]
push eax
push 0xf003f
push 0
push ebx
push ecx
call esi
test eax, eax
jne 0x413e9c
mov edi, 0x476410
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
mov eax, dword [esp + 0xc]
push ecx
push 0x476410
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
mov edi, 0x476450
push 0
push str.Name
push eax
call esi
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x476450
mov ecx, dword [esp + 0x14]
push 1
push 0
mov edi, 0x47645a
push 0x45fc48
push ecx
call esi
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
mov eax, dword [esp + 0xc]
push ecx
push 0x47645a
push 1
push 0
push str.Node
push eax
call esi
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
jmp 0x413ea2
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
push eax
call esi
jmp 0x413eb1
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
push eax
call esi
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x41ac20
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x144
mov dword [esp + 4], edx
push ebx
push esi
push edi
push ebp
mov esi, ecx
xor edi, edi
push edi
mov eax, edi
inc edi
push 0x4a99c0
lea ecx, [esp + 0x58]
push str._s_Image_03d.BMP
push ecx
call fcn.00450c80
lea eax, [esp + 0x60]
add esp, 0x10
push 0
push eax
call fcn.0045ae00
add esp, 8
test eax, eax
je 0x41ac32
lea eax, [esp + 0x50]
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov edi, eax
je 0x41adab
mov eax, dword [esp + 0x15c]
mov ebp, 0
cmp eax, 1
mov eax, dword [esp + 0x158]
adc ebp, 0xffffffff
imul eax, esi
imul eax, dword [esp + 0x14]
cdq
and ebp, 0x400
and edx, 7
add eax, edx
sar eax, 3
lea ecx, [ebp + 0x36]
mov ebx, eax
mov dword [esp + 0x22], ecx
mov word [esp + 0x20], 0
lea eax, [ebx + ecx]
push 0
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1e], eax
push ecx
mov word [esp + 0x26], 0
mov word [esp + 0x20], 0x4d42
push 0xe
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41ada4
mov cx, word [esp + 0x158]
mov eax, dword [esp + 0x14]
mov word [esp + 0x36], cx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], 0x28
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x30], eax
push 0
mov dword [esp + 0x50], 0
mov word [esp + 0x38], 1
mov eax, 1
lea edx, [esp + 0x2c]
shl eax, cl
lea ecx, [esp + 0x14]
mov dword [esp + 0x4c], eax
push ecx
push 0x28
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41ada4
test ebp, ebp
je 0x41ad8d
lea eax, [esp + 0x10]
push 0
mov ecx, dword [esp + 0x160]
push eax
push ebp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41ada4
lea eax, [esp + 0x10]
push 0
mov ecx, dword [esp + 0x164]
push eax
push ebx
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x144
ret 0xc

Function at 0x41fb40
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 4
cmp dword [0x4b8908], eax
push ebx
push esi
jne 0x41fbed
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 8]
mov dword [0x46be58], eax
push edx
mov dword [0x46be5c], ecx
push 0xf003f
push 0
push str.SOFTWAREElectronic_ArtsRoadRash_95
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41fbc7
mov eax, dword [esp + 8]
push 4
push 0x46be58
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 3
push 0
push str.Group
push eax
call esi
mov ecx, dword [esp + 8]
push 4
push 0x46be5c
push 3
push 0
push str.Track
push ecx
call esi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x489964]
test eax, eax
je 0x41fbe3
mov ecx, dword [eax + 0x24]
test ch, 4
je 0x41fbe3
and ecx, 0x20f00
call fcn.0041cd10
xor eax, eax
pop esi
pop ebx
add esp, 4
ret 0xc
mov eax, 1
pop esi
pop ebx
add esp, 4
ret 0xc
Function at 0x4204d0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
mov eax, dword [ecx + 0x10]
push edi
push ebp
mov esi, ecx
cmp eax, 0xcc
je 0x4204f6
mov eax, dword [esi + 0x17c]
call dword [eax]
mov dword [esi + 0x78], 0
mov dword [esi + 0x10], 0xcc
xor ebx, ebx
mov eax, dword [esi + 0x17c]
mov cl, byte [eax + 8]
test cl, cl
je 0x420561
lea edi, [esi + 0x78]
mov ecx, dword [edi]
mov eax, dword [esi + 0x60]
cmp eax, ecx
jbe 0x420548
mov eax, dword [esi + 8]
test eax, eax
je 0x42052c
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 8]
mov dword [ecx + 8], eax
mov ecx, esi
mov ebp, dword [esi + 8]
call dword [ebp]
mov ebp, dword [edi]
push ebx
push edi
mov eax, dword [esi + 0x180]
xor edx, edx
mov ecx, esi
call dword [eax + 4]
cmp dword [edi], ebp
jne 0x420508
xor al, al
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0x17c]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esi + 0x17c]
mov ecx, esi
call dword [eax]
mov dword [edi], ebx
jmp 0x4204f8
mov al, byte [esi + 0x41]
pop ebp
pop edi
cmp al, 1
sbb eax, eax
add eax, 0xce
mov dword [esi + 0x10], eax
mov al, 1
pop esi
pop ebx
ret

Function at 0x42ab60
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x100
push ebx
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
mov edi, eax
push 7
push 0x48a910
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0xd
push edi
call esi
push 7
push 0x48a908
push 0xe
push edi
call esi
mov ecx, edi
call fcn.0042ac30
mov ebx, eax
test ebx, ebx
jne 0x42ac1a
and di, 0x3ff
or di, 0x400
and edi, 0xffff
mov ecx, edi
call fcn.0042ac30
mov ebx, eax
test ebx, ebx
jne 0x42ac1a
mov ecx, 0x409
call fcn.0042ac30
mov ebx, eax
test ebx, ebx
jne 0x42abd3
mov ecx, 6
xor ebp, ebp
jmp 0x42abdd
mov ecx, 7
mov ebp, 1
call fcn.0042aa90
mov edi, eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.0042aa90
push eax
call fcn.0043df00
add esp, 8
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x100
ret

Function at 0x42ac30
Capabilities:
Get geographical location

Disassembly:
sub esp, 8
lea eax, [esp]
push ebx
push ebp
push 7
push eax
push 3
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea edx, [esp + 8]
push str..dll
mov ecx, str.Text_d
call fcn.0043e160
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call ebp
pop ebp
pop ebx
add esp, 8
ret

Function at 0x42b240
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 4
push ebx
push esi
push edi
mov esi, ecx
push ebp
xor edi, edi
mov ebx, 0x48aa40
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [edi + 0x31]
mov ecx, dword [str.ChatFx]
lea edx, [esp + 0x10]
inc edi
push edx
mov byte [ecx + 5], al
push ebx
mov ecx, dword [str.ChatFx]
push 0
add ebx, 0x3c
mov dword [esp + 0x1c], 0x3c
push 0
push ecx
push esi
call ebp
cmp ebx, 0x48ac20
jb 0x42b256
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret