joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fd80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cf28
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x437610]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 0x1c
mov ecx, esp
xor ebx, ebx
mov dword [ebp - 0x20], esp
mov dword [ebp - 0x1c], ebx
push 0x26
mov esi, 0xf
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push str.6bae6e63_df53_5e73_929e_23c470749b19
mov byte [ecx], bl
call fcn.00401360
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x24], esp
mov dword [ebp - 4], ebx
push 0x5a
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExtStats6bae6e63_df53_5e73_929e_23c470749b19
mov byte [ecx], bl
call fcn.00401360
mov dword [ebp - 4], 0xffffffff
call fcn.004104d0
lea eax, [ebp - 0x10]
push eax
push 0x2001f
push ebx
push str.SoftwareMicrosoft
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ff1b
mov edx, dword [ebp - 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea ecx, [ebp - 0x10]
push ecx
push str.Windows
push edx
call edi
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push ebx
push 1
push ebx
push ebx
push eax
call esi
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
push ecx
push str.CurrentVersion
push edx
call edi
mov eax, dword [ebp - 0x10]
push 1
push ebx
push 1
push ebx
push ebx
push eax
call esi
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
push ecx
push 0x432b58
push edx
call edi
mov eax, dword [ebp - 0x10]
push 1
push ebx
push 1
push ebx
push ebx
push eax
call esi
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
push ecx
push str.Stats
push edx
call edi
mov eax, dword [ebp - 0x10]
push 1
push ebx
push 1
push ebx
push ebx
push eax
call esi
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push ecx
push str.6bae6e63_df53_5e73_929e_23c470749b19
push edx
call edi
mov eax, dword [ebp - 0x18]
push 1
push ebx
push 1
push ebx
push ebx
push eax
call esi
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push ecx
push str.iexplore
push edx
call edi
push 1
push ebx
push 1
mov eax, dword [ebp - 0x14]
push ebx
push ebx
push eax
call esi
mov edx, dword [ebp - 0x14]
push 4
lea ecx, [ebp - 0x1c]
push ecx
push 4
push ebx
push str.Count
push edx
call esi
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x14]
push eax
push str.AllowedDomains
push ecx
call edi
mov edx, dword [ebp - 0x14]
push 1
push ebx
push 1
push ebx
push ebx
push edx
call esi
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x14]
push eax
push 0x4325e8
push ecx
call edi
mov edx, dword [ebp - 0x14]
push 1
push ebx
push 1
push ebx
push ebx
push edx
call esi
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 0x40ff30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cef8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x437610]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ecx + 0xa8158]
mov edx, 0x10
cmp dword [eax + 0x14], edx
jb 0x40ff6a
mov eax, dword [eax]
cmp dword [ecx + 0xa81a4], edx
mov dword [ebp - 0x1c], eax
lea eax, [ecx + 0xa8190]
jb 0x40ff82
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
jmp 0x40ff85
mov dword [ebp - 0x28], eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2c], esp
xor ebx, ebx
push 0x26
mov esi, 0xf
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push str.889E7066_8C96_538A_BEE3_3DF8364C8B51
mov byte [ecx], bl
call fcn.00401360
sub esp, 0x1c
mov dword [ebp - 4], ebx
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x3f
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push str.SoftwareClassesTypeLib889E7066_8C96_538A_BEE3_3DF8364C8B51
mov byte [ecx], bl
call fcn.00401360
mov dword [ebp - 4], 0xffffffff
call fcn.004104d0
lea edx, [ebp - 0x10]
push edx
push 0x2001f
push ebx
push str.SoftwareClasses
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4100f6
mov ecx, dword [ebp - 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea eax, [ebp - 0x10]
push eax
push str.TypeLib
push ecx
call esi
mov edx, dword [ebp - 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
push ebx
push 1
push ebx
push ebx
push edx
call edi
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x24]
push eax
push str.889E7066_8C96_538A_BEE3_3DF8364C8B51
push ecx
call esi
mov edx, dword [ebp - 0x24]
push 1
push ebx
push 1
push ebx
push ebx
push edx
call edi
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x18]
push eax
push 0x432be8
push ecx
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push str.MtGamePlugin_1.0_Type_Library
call ebx
mov edx, dword [ebp - 0x18]
push eax
push str.MtGamePlugin_1.0_Type_Library
push 1
push 0
push 0
push edx
call edi
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push 0x4329cc
push ecx
call esi
mov edx, dword [ebp - 0x14]
push 1
push 0
push 1
push 0
push 0
push edx
call edi
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push eax
push str.win32
push ecx
call esi
mov edx, dword [ebp - 0x1c]
push edx
call ebx
mov ecx, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 1
push 0
push 0
push ecx
call edi
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push str.FLAGS
push eax
call esi
push 0x4329cc
call ebx
mov ecx, dword [ebp - 0x14]
push eax
push 0x4329cc
push 1
push 0
push 0
push ecx
call edi
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x20]
push edx
push str.HELPDIR
push eax
call esi
mov esi, dword [ebp - 0x28]
push esi
call ebx
mov ecx, dword [ebp - 0x20]
push eax
push esi
push 1
push 0
push 0
push ecx
call 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
Function at 0x410110
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cf88
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x437610]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ecx + 0xa8188], 0x10
lea edi, [ecx + 0xa8174]
jb 0x410149
mov edi, dword [edi]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x25
mov ebx, 0xf
xor esi, esi
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x10], esi
push str.locojoymtgameplugins.com_MtGamePlugin
mov byte [ecx], 0
call fcn.00401360
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
mov dword [ebp - 4], esi
push 0x3d
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x10], esi
push str.SoftwareMozillaPluginslocojoymtgameplugins.com_MtGamePlugin
mov byte [ecx], 0
call fcn.00401360
mov dword [ebp - 4], 0xffffffff
call fcn.004104d0
lea eax, [ebp - 0x10]
push eax
push 0x2001f
push esi
push str.Software
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410216
mov edx, dword [ebp - 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea ecx, [ebp - 0x10]
push ecx
push str.MozillaPlugins
push edx
call ebx
mov eax, dword [ebp - 0x10]
push esi
push esi
push 1
push esi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
call esi
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
push ecx
push str.locojoymtgameplugins.com_MtGamePlugin
push edx
call ebx
mov eax, dword [ebp - 0x14]
push 1
push 0
push 1
push 0
push 0
push eax
call esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x14]
inc eax
push eax
push edi
push 1
push 0
push str.Path
push ecx
call esi
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 0x4104d0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x437610]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, 0x10
cmp dword [ebp + 0x1c], edi
jae 0x4104f5
lea eax, [ebp + 8]
lea ecx, [ebp - 0x108]
push ecx
push 0x2001f
xor ebx, ebx
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4105be
mov eax, dword [ebp - 0x108]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x10c]
push edx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4105a5
push esi
mov esi, dword [ebp - 0x10c]
cmp esi, ebx
jbe 0x4105a4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x410550
push 0xff
lea ecx, [ebp - 0x103]
push ebx
push ecx
mov byte [ebp - 0x104], bl
call fcn.0041f350
mov ecx, dword [ebp - 0x108]
add esp, 0xc
push 0x101
lea edx, [ebp - 0x104]
push edx
lea eax, [esi - 1]
push eax
push ecx
call edi
test eax, eax
jne 0x41059c
mov eax, dword [ebp - 0x108]
lea edx, [ebp - 0x104]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
dec esi
jne 0x410550
mov edi, 0x10
pop esi
mov eax, dword [ebp + 0x24]
cmp dword [ebp + 0x38], edi
jae 0x4105b0
lea eax, [ebp + 0x24]
mov ecx, dword [ebp - 0x108]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp + 0x1c], edi
jb 0x4105cf
mov edx, dword [ebp + 8]
push edx
call fcn.00416084
add esp, 4
cmp dword [ebp + 0x38], edi
pop edi
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
mov dword [ebp + 0x1c], 0xf
pop ebx
jb 0x4105ef
mov eax, dword [ebp + 0x24]
push eax
call fcn.00416084
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415ac1
mov esp, ebp
pop ebp
ret 0x38
Function at 0x410f90
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d619
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x437610]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test byte [0x4e346c], 1
mov edi, ecx
jne 0x41100e
or dword [0x4e346c], 1
xor eax, eax
mov dword [ebp - 4], eax
push 0x1a
push 0x432728
mov ecx, 0x4e3450
mov dword [0x4e3464], 0xf
mov dword [0x4e3460], eax
mov byte [0x4e3450], al
call fcn.00401360
push 0x42db20
call fcn.0041679c
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push eax
push ecx
lea eax, [ebp - 0x134]
push eax
push edi
call fcn.0040b380
push 0x103
xor esi, esi
lea ecx, [ebp - 0x113]
push esi
push ecx
mov ebx, 1
mov byte [ebp - 0x114], 0
call fcn.0041f350
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x134], eax
test eax, eax
je 0x411161
lea esp, [esp]
cmp esi, dword [0x4e3460]
ja 0x411161
test ebx, eax
je 0x41114a
push 0x104
lea edx, [ebp - 0x114]
push 0
push edx
call fcn.0041f350
mov eax, dword [0x4e3450]
add esp, 0xc
cmp dword [0x4e3464], 0x10
jae 0x41109d
mov eax, 0x4e3450
push 2
add eax, esi
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x432744
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x411144
lea eax, [ebp - 0x114]
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4110f7
sub eax, edx
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x130]
call fcn.00401360
lea ecx, [ebp - 0x130]
mov dword [ebp - 4], 1
call fcn.00411900
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x11c], 0x10
jb 0x411144
mov ecx, dword [ebp - 0x130]
push ecx
call fcn.00416084
add esp, 4
mov eax, dword [ebp - 0x134]
mov edx, ebx
not edx
and eax, edx
add ebx, ebx
inc esi
mov dword [ebp - 0x134], eax
test eax, eax
jne 0x411060
mov eax, dword [edi]
xor ecx, ecx
cmp eax, dword [edi + 4]
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00415ac1
mov esp, ebp
pop ebp
ret
Function at 0x411190
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d5d1
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x437610]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], ebx
jb 0x4111cc
mov eax, dword [esi]
jmp 0x4111ce
mov eax, esi
mov byte [eax], bl
push 0x103
lea eax, [ebp - 0x117]
push ebx
push eax
mov byte [ebp - 0x118], bl
call fcn.0041f350
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, ebx
jbe 0x41131e
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 4], ebx
push 1
mov edi, 0xf
push 0x432e0c
lea ecx, [ebp - 0x150]
mov dword [ebp - 0x13c], edi
mov dword [ebp - 0x140], ebx
mov byte [ebp - 0x150], bl
call fcn.00401360
mov byte [ebp - 4], 1
lea eax, [ebp - 0x118]
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x124], ebx
mov byte [ebp - 0x134], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x411262
sub eax, edx
push eax
lea edx, [ebp - 0x118]
push edx
lea ecx, [ebp - 0x134]
call fcn.00401360
mov byte [ebp - 4], 2
test byte [0x4e344c], 1
jne 0x41129f
or dword [0x4e344c], 1
push 0x42dae0
call fcn.0041679c
add esp, 4
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x160]
lea edi, [ebp - 0x134]
call fcn.0040b140
mov edi, 0x10
cmp dword [ebp - 0x120], edi
jb 0x4112d3
mov ecx, dword [ebp - 0x134]
push ecx
call fcn.00416084
add esp, 4
mov byte [ebp - 4], bl
mov dword [ebp - 0x120], 0xf
mov dword [ebp - 0x124], ebx
mov byte [ebp - 0x134], bl
cmp dword [ebp - 0x13c], edi
jb 0x411303
mov edx, dword [ebp - 0x150]
push edx
call fcn.00416084
add esp, 4
mov edi, dword [ebp - 0x160]
mov eax, dword [ebp - 0x15c]
cmp edi, eax
jne 0x411322
lea ebx, [ebp - 0x160]
call fcn.00411bc0
xor al, al
jmp 0x41136b
sub eax, edi
mov ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x411345
push str.invalid_vector_T__subscript
call fcn.0041508c
push 0xffffffffffffffff
push ebx
push edi
mov ecx, esi
call fcn.00401260
push 2
mov eax, 0x432744
mov ecx, esi
call fcn.004039a0
lea ebx, [ebp - 0x160]
call fcn.00411bc0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00415ac1
mov esp, ebp
pop ebp
ret
Function at 0x4115c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, eax
lea eax, [ebp - 8]
push eax
push 0x20006
xor ebx, ebx
push ebx
push str.Software
push 0x80000001
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41167b
mov edx, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
push str.Mt2GameData
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x411661
mov eax, dword [ebp - 4]
push ebx
push ebx
push 1
push ebx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
call ebx
test eax, eax
jne 0x411661
cmp dword [edi + 0x14], 0x10
jb 0x41162b
mov eax, dword [edi]
jmp 0x41162d
mov eax, edi
mov edx, dword [ebp - 4]
lea ecx, [ebp - 4]
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x411661
cmp dword [esi + 0x14], 0x10
mov ecx, dword [esi + 0x10]
jb 0x41164d
mov eax, dword [esi]
jmp 0x41164f
mov eax, esi
push ecx
push eax
mov eax, dword [ebp - 4]
push 1
push 0
push 0
push eax
call ebx
test eax, eax
je 0x411683
mov eax, dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x411671
push eax
call esi
mov eax, dword [ebp - 8]
test eax, eax
je 0x41167b
push eax
call esi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [ebp - 8]
push edx
call esi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4116a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x437610]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
xor ebx, ebx
cmp dword [esi + 0x14], 0x10
push edi
mov edi, ecx
mov dword [esi + 0x10], ebx
jb 0x4116c9
mov eax, dword [esi]
jmp 0x4116cb
mov eax, esi
mov byte [eax], bl
push 0x103
lea eax, [ebp - 0x107]
push ebx
push eax
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x110], ebx
mov byte [ebp - 0x108], bl
call fcn.0041f350
add esp, 0xc
lea ecx, [ebp - 0x10c]
push ecx
push 0x20019
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push str.SoftwareMt2GameData
push 0x80000001
mov dword [ebp - 0x114], 0x104
call ebx
test eax, eax
jne 0x41176b
cmp dword [edi + 0x14], 0x10
jb 0x41172b
mov eax, dword [edi]
jmp 0x41172d
mov eax, edi
lea edx, [ebp - 0x110]
push edx
push 0x20019
push 0
push eax
mov eax, dword [ebp - 0x10c]
push eax
call ebx
test eax, eax
jne 0x41176b
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x108]
push edx
push eax
push eax
push eax
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41179e
mov eax, dword [ebp - 0x110]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x41177e
push eax
call esi
mov eax, dword [ebp - 0x10c]
test eax, eax
je 0x41178b
push eax
call esi
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415ac1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x110]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call edi
mov edx, dword [ebp - 0x10c]
push edx
call edi
mov eax, dword [ebp - 0x114]
dec eax
push eax
lea eax, [ebp - 0x108]
mov ecx, esi
call fcn.004039a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00415ac1
mov esp, ebp
pop ebp
ret
Function at 0x413880
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d1c7
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x437610]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [edi], 0x433080
mov dword [edi + 0x10], 0x433088
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 0x18]
push esi
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x10], 1
call fcn.00414510
mov dword [ebp - 4], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
call fcn.00414b10
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], bl
mov byte [esi + 0x49], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x4e3448]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ebx
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 4
Function at 0x413a90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cba8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x437610]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x413acc
xor eax, eax
jmp 0x413c51
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x413af5
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x413af5
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 1]
mov dword [edi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x413c51
cmp dword [edi + 0x54], 0
je 0x413c4e
mov ecx, dword [edi + 0x10]
lea edx, [edi + 0x48]
cmp dword [ecx], edx
jne 0x413b1d
mov edx, dword [edi + 0x3c]
mov eax, dword [edi + 0x40]
mov dword [ecx], edx
mov ecx, dword [edi + 0x20]
mov dword [ecx], eax
mov edx, dword [edi + 0x30]
sub eax, eax
mov dword [edx], eax
cmp dword [edi + 0x44], 0
jne 0x413b43
mov edi, dword [edi + 0x54]
movsx eax, bl
push edi
push eax
call fcn.00416bdc
add esp, 8
cmp eax, 0xffffffff
je 0x413c4e
mov eax, ebx
jmp 0x413c51
lea esi, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
call fcn.00414470
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
jmp 0x413b60
mov edx, eax
cmp ebx, 0x10
jae 0x413b6c
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push edx
push eax
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x2d]
push edx
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x14]
call eax
test eax, eax
js 0x413c46
cmp eax, 1
jg 0x413c00
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x413bac
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, ecx
je 0x413bd5
cmp ebx, 0x10
jae 0x413bbb
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004172cc
add esp, 0x10
cmp esi, eax
jne 0x413c46
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x2d]
mov byte [edi + 0x49], 1
cmp dword [ebp - 0x38], edx
jne 0x413c39
test esi, esi
jne 0x413b60
cmp dword [ebp - 0x1c], 0x20
jae 0x413c46
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.00403d00
jmp 0x413b55
cmp eax, 3
jne 0x413c46
mov edi, dword [edi + 0x54]
movsx eax, byte [ebp - 0x2d]
push edi
push eax
call fcn.00416bdc
add esp, 8
cmp eax, 0xffffffff
je 0x413c2a
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.00401190
mov eax, esi
jmp 0x413c51
lea ecx, [ebp - 0x2c]
or esi, 0xffffffff
call fcn.00401190
mov eax, esi
jmp 0x413c51
lea ecx, [ebp - 0x2c]
call fcn.00401190
mov eax, dword [ebp + 8]
jmp 0x413c51
lea ecx, [ebp - 0x2c]
call fcn.00401190
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00415ac1
mov esp, ebp
pop ebp
ret 4