joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f70
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x38
test eax, eax
push edi
mov edi, ecx
je 0x4020c1
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4020c1
mov eax, dword [str.DevicePriority]
mov edx, dword [0x409368]
mov ecx, dword [0x409364]
push 0x10
mov dword [esp + 0x10], eax
mov ax, word [0x40936c]
mov dword [esp + 0x18], edx
lea edx, [esp + 0x20]
mov dword [esp + 0x14], ecx
mov cl, byte [0x40936e]
push edx
mov word [esp + 0x20], ax
push str.Count
lea eax, [esp + 0x18]
mov byte [esp + 0x26], cl
push eax
mov ecx, edi
call fcn.00401f20
test eax, eax
je 0x4020c1
lea ecx, [esp + 0x1c]
push ecx
call fcn.00403dbd
add esp, 4
cmp eax, 1
mov dword [esp + 4], eax
jl 0x4020c1
cmp eax, 4
jl 0x40200b
mov dword [esp + 4], 4
mov eax, dword [esp + 4]
mov ecx, dword [edi + 0x104]
test ecx, ecx
je 0x4020c1
push esi
xor esi, esi
test eax, eax
jle 0x4020ae
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.Device
lea edx, [esp + 0x3c]
push edx
call ebx
push 0xa
lea eax, [esp + 0x18]
push eax
inc esi
push esi
call fcn.004085b6
add esp, 0xc
push eax
lea ecx, [esp + 0x3c]
push ecx
call ebp
push edi
push 0x10
lea edx, [esp + 0x30]
push edx
push str.NoData
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x28]
push edx
push str.NoData
call fcn.00403d22
add esp, 8
test eax, eax
je 0x4020a4
mov eax, dword [esp + 0x4c]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [edi + 0x104]
call fcn.004012c0
add dword [esp + 0x4c], 4
mov eax, dword [esp + 0x10]
cmp esi, eax
jl 0x402032
pop ebp
pop ebx
mov edx, dword [esp + 0x48]
pop esi
mov dword [edx], eax
mov eax, 1
pop edi
add esp, 0x38
ret 8
xor eax, eax
pop edi
add esp, 0x38
ret 8

Function at 0x4022e0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
test eax, eax
je 0x402330
push ecx
push 0x10
lea ecx, [esp + 8]
push ecx
push str.NoData
push eax
push str.SettingFlag
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp]
push edx
push str.NoData
call fcn.00403d22
add esp, 8
test eax, eax
je 0x402330
lea eax, [esp]
push eax
call fcn.00403dbd
add esp, 4
cmp eax, 1
jne 0x402330
add esp, 0x10
ret 4
xor eax, eax
add esp, 0x10
ret 4

Function at 0x402340
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x50
mov edx, dword [esp + 0x54]
push esi
push edi
mov esi, ecx
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0xf
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x60]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00402240
push esi
push 0x10
lea eax, [esp + 0x10]
push eax
push str.NoData
push str.SaveCurrentMode
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 8]
push edx
push str.NoData
call fcn.00403d22
add esp, 8
test eax, eax
pop edi
pop esi
je 0x4023be
lea eax, [esp]
push eax
call fcn.00403dbd
add esp, 4
cmp eax, 1
jne 0x4023be
add esp, 0x50
ret 8
xor eax, eax
add esp, 0x50
ret 8
Function at 0x402450
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x60
mov edx, dword [esp + 0x64]
push ebx
push esi
push edi
mov esi, ecx
xor eax, eax
mov byte [esp + 0x2c], 0
mov ecx, 0xf
lea edi, [esp + 0x2d]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x74]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x2c]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00402240
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push 0x20
lea eax, [esp + 0x14]
push eax
push str.NoData
push str.FREQUENCY
lea ecx, [esp + 0x40]
push ecx
call ebx
lea edx, [esp + 0xc]
push edx
push str.NoData
call fcn.00403d22
add esp, 8
test eax, eax
je 0x402548
lea eax, [esp + 0xc]
push eax
call fcn.00403dbd
mov edi, dword [esp + 0x7c]
add esp, 4
push esi
push 0x20
lea ecx, [esp + 0x14]
push ecx
push str.NoData
push str.HRESOLUTION
lea edx, [esp + 0x40]
push edx
mov dword [edi + 8], eax
call ebx
lea eax, [esp + 0xc]
push eax
push str.NoData
call fcn.00403d22
add esp, 8
test eax, eax
je 0x402548
lea ecx, [esp + 0xc]
push ecx
call fcn.00403dbd
add esp, 4
push 0x20
lea edx, [esp + 0x10]
push edx
mov dword [edi], eax
push str.VRESOLUTION
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call fcn.00401f20
test eax, eax
je 0x402548
lea ecx, [esp + 0xc]
push ecx
call fcn.00403dbd
add esp, 4
mov dword [edi + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x60
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x60
ret 0xc

Function at 0x4028c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x128
push esi
push edi
mov ecx, 6
mov esi, str.SOFTWARES3VTS3Display
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
mov ecx, 0x3a
lea edi, [esp + 0x41]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x34]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402975
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push str.TVLargeFont
push edx
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40294f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x4094dc
lea eax, [esp + 0x1c]
push eax
call esi
test eax, eax
je 0x40297d
push 0x4094d8
lea ecx, [esp + 0x1c]
push ecx
call esi
test eax, eax
je 0x40297d
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402b10
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
push esi
push edi
mov ecx, 5
mov esi, str.SOFTWARES3VTS3Timer
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
mov ecx, 0x3b
lea edi, [esp + 0x27]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402b67
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
push str.NeverLaunched
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x402b95
mov eax, dword [esp + 0xc]
push str.NeverLaunched
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x402ba4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4034a0
Capabilities:
Query or enumerate registry key

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x110
push edi
lea eax, [esp + 4]
push eax
push 0xf003f
mov edi, ecx
mov ecx, dword [esp + 0x124]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp + 4]
test eax, eax
je 0x40355b
push ebx
push esi
push eax
mov ecx, edi
call fcn.00403380
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
xor esi, esi
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x30]
push edx
push esi
push eax
mov dword [esp + 0x30], 0x100
call ebx
cmp eax, 0x103
je 0x40354e
nop
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov ecx, edi
call fcn.004034a0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x30]
push edx
inc esi
push esi
push eax
mov dword [esp + 0x30], 0x100
call ebx
cmp eax, 0x103
jne 0x403510
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop edi
add esp, 0x110
ret 8
Function at 0x403630
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
push esi
push edi
mov esi, ecx
xor eax, eax
mov ecx, 0x25
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x403708
mov eax, dword [esp + 0x18]
cmp eax, 1
jne 0x4036b2
cmp dword [esp + 0xc], 4
jne 0x403708
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x403690
mov dword [esi], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0xa
jne 0x4036a1
mov dword [esi], 2
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0x5a
jne 0x403708
mov dword [esi], 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x403708
mov eax, dword [esp + 0xc]
cmp eax, 3
jne 0x4036cc
mov dword [esi], 5
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 4
jne 0x4036dd
mov dword [esi], 6
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x403708
mov eax, dword [esp + 0x10]
cmp eax, 1
mov dword [esi], 7
jne 0x4036fd
mov dword [esi], 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x403708
mov dword [esi], 9
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404c1e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40b380], esi
push edi
jne 0x404c3e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40b37c], esi
mov byte [0x40b378], al
jne 0x404ca4
mov ecx, dword [0x40b8a8]
test ecx, ecx
je 0x404c85
mov eax, dword [0x40b8a4]
sub eax, 4
cmp eax, ecx
jmp 0x404c7e
mov eax, dword [eax]
test eax, eax
je 0x404c70
call eax
mov eax, dword [0x40b8a4]
sub eax, 4
cmp eax, dword [0x40b8a8]
mov dword [0x40b8a4], eax
jae 0x404c68
mov eax, 0x40b020
mov esi, 0x40b024
cmp eax, esi
mov edi, eax
jae 0x404ca4
mov eax, dword [edi]
test eax, eax
je 0x404c9d
call eax
add edi, 4
cmp edi, esi
jb 0x404c95
mov eax, 0x40b028
mov esi, 0x40b030
cmp eax, esi
mov edi, eax
jae 0x404cc3
mov eax, dword [edi]
test eax, eax
je 0x404cbc
call eax
add edi, 4
cmp edi, esi
jb 0x404cb4
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x404cdd
push dword [ebp + 8]
mov dword [0x40b380], 1
call fcn.00404b84
pop ebp
ret
Function at 0x404d1f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40b078]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40b0a0]
je 0x404d54
inc eax
cmp eax, 0x13
jb 0x404d45
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40b0a0]
jne 0x404e7a
mov eax, dword [0x40b2fc]
cmp eax, 1
je 0x404e52
cmp eax, edx
jne 0x404d84
cmp dword [0x40b070], 1
je 0x404e52
cmp ecx, 0xfc
je 0x404e7a
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404dba
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00407450
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00407680
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x404dee
mov eax, edi
push eax
call fcn.00407680
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x409a78
push edi
call fcn.00407550
add esp, 0x10
push edi
call fcn.00407680
push dword [esi + 0x40b0a4]
mov ebx, eax
call fcn.00407680
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00405890
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00407450
push edi
push ebx
call fcn.00407460
push 0x409a58
push ebx
call fcn.00407460
push dword [esi + 0x40b0a4]
push ebx
call fcn.00407460
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040734d
add esp, 0x2c
jmp 0x404e7a
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40b0a4]
push dword [esi]
call fcn.00407680
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040773c
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40734d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40b4b4], ebx
push esi
push edi
jne 0x4073cd
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x407408
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40b4b4], eax
je 0x407408
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40b4b8], eax
call esi
cmp dword [0x40b340], 2
mov dword [0x40b4bc], eax
jne 0x4073cd
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40b4c4], eax
je 0x4073cd
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40b4c0], eax
mov eax, dword [0x40b4c0]
test eax, eax
je 0x407412
call eax
test eax, eax
je 0x4073f9
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40b4c4]
test eax, eax
je 0x4073f9
test byte [ebp - 8], 1
jne 0x407412
cmp dword [0x40b34c], 4
jb 0x40740c
or byte [ebp + 0x12], 0x20
jmp 0x407431
xor eax, eax
jmp 0x407441
or byte [ebp + 0x12], 4
jmp 0x407431
mov eax, dword [0x40b4b8]
test eax, eax
je 0x407431
call eax
mov ebx, eax
test ebx, ebx
je 0x407431
mov eax, dword [0x40b4bc]
test eax, eax
je 0x407431
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40b4b4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407acd
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x407afb
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x407b02
cmp ebx, dword [eax + 4]
jae 0x407b02
xor eax, eax
jmp 0x407cf2
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x407b13
xor eax, eax
inc eax
jmp 0x407cf1
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x407b29
cmp ecx, edx
jae 0x407c6e
cmp dword [eax + 4], 0
je 0x407b32
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x407b1a
cmp dword [ebp + 8], 0
je 0x407b54
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x407c6e
cmp eax, esi
jae 0x407c6e
mov eax, dword [0x40b4c8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x407b79
cmp dword [esi*4 + 0x40b4d0], edi
je 0x407c72
inc esi
cmp esi, eax
jl 0x407b67
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407cee
cmp dword [ebp - 8], 0x1000000
jne 0x407cee
test byte [ebp - 0xc], 0xcc
je 0x407bf7
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x407cee
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407cee
cmp word [eax + 0x18], 0x10b
jne 0x407cee
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x407cee
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x407bf7
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x407bf7
test byte [ecx + 0x27], 0x80
jne 0x407c6e
push 1
push 0x40b510
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x407b0b
mov ecx, dword [0x40b4c8]
test ecx, ecx
mov edx, ecx
jle 0x407c2b
lea eax, [ecx*4 + 0x40b4cc]
cmp dword [eax], edi
je 0x407c2b
dec edx
sub eax, 4
test edx, edx
jg 0x407c1f
test edx, edx
jne 0x407c5c
push 0xf
pop ebx
cmp ecx, ebx
jg 0x407c38
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x407c50
lea eax, [edx*4 + 0x40b4d0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x407c3e
cmp ecx, 0x10
jge 0x407c5c
inc ecx
mov dword [0x40b4c8], ecx
push 0
push 0x40b510
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x407b0b
xor eax, eax
jmp 0x407cf1
test esi, esi
jle 0x407b0b
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40b510
call ebx
test eax, eax
jne 0x407b0b
cmp dword [esi*4 + 0x40b4d0], edi
je 0x407cc8
mov eax, dword [0x40b4c8]
lea esi, [eax - 1]
test esi, esi
jl 0x407cb6
cmp dword [esi*4 + 0x40b4d0], edi
je 0x407cb2
dec esi
jns 0x407ca6
test esi, esi
jge 0x407cc6
cmp eax, 0x10
jge 0x407cc1
inc eax
mov dword [0x40b4c8], eax
lea esi, [eax - 1]
jmp 0x407cc8
je 0x407ce0
xor ecx, ecx
test esi, esi
jl 0x407ce0
lea eax, [ecx*4 + 0x40b4d0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x407cce
push 0
push 0x40b510
call ebx
jmp 0x407b0b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4080cc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00405890
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x408167
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40b340]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x408167
cmp eax, 1
je 0x408188
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x408167
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x408134
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x408163
xor eax, eax
inc eax
jmp 0x4081a7
cmp edi, eax
jae 0x40816b
xor eax, eax
jmp 0x4081a7
cmp eax, esi
jae 0x408172
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40b340]
jmp 0x40818b
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401250
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push str.Config
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
push 0x552b6c
mov ecx, dword [ebp - 4]
add ecx, 0x62c
push ecx
call fcn.004b7a6c
add esp, 0x10
mov edx, dword [ebp - 4]
add edx, 0x62c
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40129f
mov eax, dword [ebp - 4]
add eax, 0x62c
push eax
call fcn.0040fa40
add esp, 4
push 0x552b78
mov ecx, dword [ebp - 4]
add ecx, 0x62c
push ecx
call fcn.004b7b6c
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x4012c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5b2390]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], ecx
mov eax, dword [ebp - 0x214]
add eax, 0x14
push eax
push str._sUseData_
lea ecx, [ebp - 0x210]
push ecx
call fcn.004b7a6c
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401317
lea eax, [ebp - 0x210]
push eax
call fcn.0040fa40
add esp, 4
lea ecx, [ebp - 0x210]
push ecx
push str._sUseData.ini
mov edx, dword [ebp - 0x214]
add edx, 0x424
push edx
call fcn.004b7a6c
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7b5d
mov esp, ebp
pop ebp
ret

Function at 0x4013d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x5b2390]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x12c], ecx
push 0x11c
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.004b7bc0
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x124], 6
jne 0x401441
cmp dword [ebp - 0x120], 0
je 0x401431
cmp dword [ebp - 0x120], 1
jne 0x401441
movzx edx, byte [ebp - 0xe]
cmp edx, 1
jne 0x401441
mov eax, 1
jmp 0x401443
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7b5d
mov esp, ebp
pop ebp
ret
Function at 0x401b90
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
push 0x1a
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x552db8
mov ecx, dword [ebp - 4]
add ecx, 0x14
push ecx
call fcn.004b7b6c
add esp, 8
push 0x552dbc
mov edx, dword [ebp - 4]
add edx, 0x14
push edx
call fcn.004b7b6c
add esp, 8
push 0x552dcc
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
call fcn.004b7b6c
add esp, 8
push 0x552dd0
mov ecx, dword [ebp - 4]
add ecx, 0x14
push ecx
call fcn.004b7b6c
add esp, 8
push 0x552de4
mov edx, dword [ebp - 4]
add edx, 0x14
push edx
call fcn.004b7b6c
add esp, 8
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401c2e
mov ecx, dword [ebp - 4]
add ecx, 0x14
push ecx
call fcn.0040fa40
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x401c50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x5b2390]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], ecx
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
lea ecx, [ebp - 0x210]
push ecx
call fcn.00401d20
add esp, 8
xor edx, edx
mov word [eax + 2], dx
xor eax, eax
mov word [ebp - 0x418], ax
push 0x206
push 0
lea ecx, [ebp - 0x416]
push ecx
call fcn.004b7bc0
add esp, 0xc
push 0x552de8
lea edx, [ebp - 0x210]
push edx
push 0x552dfc
push 0x104
lea eax, [ebp - 0x418]
push eax
call fcn.004b7b04
add esp, 0x14
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401cf7
mov edx, dword [ebp - 0x41c]
mov dword [edx], 1
jmp 0x401d03
mov eax, dword [ebp - 0x41c]
mov dword [eax], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7b5d
mov esp, ebp
pop ebp
ret
Function at 0x401d60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5459d6
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x5b2390]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.004b7bc0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x21c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.004048c0
mov dword [ebp - 4], 0
push 0x5c
lea ecx, [ebp - 0x220]
call fcn.004020e0
add eax, 1
push eax
push 0
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x220]
call fcn.00402130
mov dword [ebp - 0x228], eax
mov edx, dword [ebp - 0x228]
mov dword [ebp - 0x22c], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x220]
call fcn.00404960
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x224]
call fcn.00404940
push 0x552e68
lea ecx, [ebp - 0x220]
call fcn.004020c0
lea ecx, [ebp - 0x220]
call fcn.004049e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401e9b
lea ecx, [ebp - 0x220]
call fcn.004049e0
push eax
push 0x552e80
push 0x552e88
push 0x552e90
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x220]
call fcn.004049e0
push eax
push 0x552ea4
push 0x552eac
push 0x552ebc
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.00404940
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b7b5d
mov esp, ebp
pop ebp
ret