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

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
push edi
mov eax, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push 1
mov esi, ecx
mov ecx, dword [esi + 0x508]
push 0
lea edi, [esi + 8]
push edi
push ecx
mov dword [esp + 0x20], 0
call ebp
test eax, eax
jne 0x401c25
push ebx
lea edx, [esp + 0x14]
push edx
lea eax, [esi + 0x50c]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
push 0
lea edx, [esi + 0x408]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x10]
push ecx
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
pop ebx
je 0x401c7f
lea edx, [esp + 0xc]
push edx
push 1
push 0
push edi
push SysReAllocStringLen
call ebp
test eax, eax
jne 0x401c8d
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 0x50c]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push 0
lea eax, [esi + 0x408]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0xc]
push edx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x401c8d
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x401c7f
mov ecx, esi
call fcn.00401a30
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0xc
ret 4
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret 4

Function at 0x4021f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x425a1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
mov eax, dword [0x431468]
push esi
push edi
mov dword [esp + 0x21c], eax
call fcn.00410080
test eax, eax
push 0
jne 0x4022b1
mov byte [esp + 0x114], al
mov ecx, 0x40
lea edi, [esp + 0x115]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x118]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edx, [esp + 0x10]
mov esi, eax
mov dword [esp + 0xc], edx
call dword [fcn.00430090]
push eax
lea eax, [esp + 0x114]
push eax
lea ecx, [esp + 0x14]
call fcn.00402170
mov ecx, dword [esp + 0xc]
mov edx, dword [ebp + 0xc]
push ecx
push edx
mov dword [esp + 0x234], 0
call fcn.004101c0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
add esp, 8
cmp eax, ecx
je 0x4022ad
push eax
call fcn.004132e2
add esp, 4
mov eax, esi
jmp 0x4022c1
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push edx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x21c]
call fcn.00412e0b
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404200
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x425bae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
mov eax, dword [0x431468]
mov dword [esp + 0x20c], eax
test byte [0x432c14], 1
push esi
push edi
jne 0x404271
or dword [0x432c14], 1
push 0x4274bc
mov ecx, 0x432c10
mov dword [esp + 0x228], 0
call fcn.00401f70
push 0x426ae0
call fcn.00413c04
add esp, 4
mov dword [esp + 0x224], 0xffffffff
mov eax, dword [0x432c10]
push 0x4274bc
push eax
call fcn.004137ad
add esp, 8
test eax, eax
jne 0x4042d3
mov word [esp + 8], ax
mov ecx, 0x81
lea edi, [esp + 0xa]
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
push ecx
push 1
push 0xffffffffffffffff
push 0x28
push 0
stosw word es:[edi], ax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
test esi, esi
je 0x4042c7
push esi
call fcn.00413353
add esp, 4
push eax
push esi
mov ecx, 0x432c10
call fcn.00401e70
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x214]
mov eax, 0x432c10
call fcn.00412e0b
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4054d0
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x425cfe
push eax
test byte [0x432c34], 1
mov dword fs:[0], esp
push esi
jne 0x405522
or dword [0x432c34], 1
push 0x4274bc
mov ecx, 0x432c30
mov dword [esp + 0x10], 0
call fcn.00401f70
push 0x426b00
call fcn.00413c04
add esp, 4
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [0x432c30]
push 0x4274bc
push eax
call fcn.004137ad
add esp, 8
test eax, eax
jne 0x405619
mov eax, dword [0x432c30]
mov edx, dword [eax - 4]
mov ecx, 1
sub ecx, edx
mov edx, dword [eax - 8]
sub edx, 0x104
or ecx, edx
jge 0x40556d
push 0x104
mov ecx, 0x432c30
call fcn.00401530
mov eax, dword [0x432c30]
cmp dword [eax - 8], 0x104
mov esi, eax
jge 0x405582
push 0x80070057
call fcn.00401220
mov dword [eax - 0xc], 0x104
mov eax, dword [0x432c30]
push esi
push 0x104
mov word [eax + 0x208], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x4279f0
push esi
call fcn.00410490
mov ecx, dword [0x432c30]
add esp, 8
test ecx, ecx
jne 0x4055bf
xor eax, eax
jmp 0x4055d2
push ecx
call fcn.00413353
add esp, 4
test eax, eax
jl 0x405578
mov ecx, dword [0x432c30]
cmp eax, dword [ecx - 8]
jg 0x405578
push 0x8e
mov dword [ecx - 0xc], eax
mov ecx, dword [0x432c30]
push str.ProjectMui_svnCommonLibCommonAPI.cpp
push str._n__s:__d_
mov word [ecx + eax*2], 0
call fcn.0040fe40
mov edx, dword [0x432c30]
push edx
push str.GetTempUserProgram:__s_n
call fcn.004100a0
mov eax, dword [0x432c30]
push eax
call fcn.004052c0
add esp, 0x18
mov ecx, dword [esp + 4]
mov eax, 0x432c30
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
Function at 0x406bd0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x431468]
push esi
xor esi, esi
mov dword [esp + 0x218], eax
push edi
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [esp + 0x10], si
mov ecx, 0x81
lea edi, [esp + 0x12]
push 0x104
mov edx, eax
xor eax, eax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push eax
movzx ecx, dx
push 3
push ecx
call fcn.004101f0
push 0xad
push str.ProjectMui_svnCommonLibMiscHelp.cpp
push str._n__s:__d_
call fcn.0040fe40
lea edx, [esp + 0x1c]
push edx
push str.GetLocale:_s_n
call fcn.004100a0
mov esi, dword [ebp + 8]
add esp, 0x14
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00401f70
mov ecx, dword [esp + 0x21c]
mov eax, esi
call fcn.00412e0b
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407350
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x431468]
mov cl, byte [0x432c38]
mov dword [esp + 0x214], eax
push esi
xor esi, esi
mov eax, 1
test al, cl
push edi
mov dword [esp + 0xc], esi
jne 0x40739a
mov edi, dword [0x432c38]
push esi
push esi
or edi, eax
push 0x406e90
mov dword [0x432c38], edi
call dword [sym.imp.KERNEL32.dll_EnumUILanguagesW]
cmp dword [ebp + 0xc], esi
je 0x4073b9
call fcn.0040fea0
cmp eax, 8
jne 0x4073b1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
jmp 0x4073bf
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
jmp 0x4073bf
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov edx, eax
xor eax, eax
mov word [esp + 0x10], si
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
push 0x104
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push eax
movzx ecx, dx
push 3
push ecx
call fcn.004101f0
push 0xc3
push str.ProjectMui_svnCommonLibMiscHelp.cpp
push str._n__s:__d_
call fcn.0040fe40
lea edx, [esp + 0x1c]
push edx
push str.GetUserDefaultLanguageFromOS:_s_n
call fcn.004100a0
mov esi, dword [ebp + 8]
add esp, 0x14
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00401f70
mov ecx, dword [esp + 0x21c]
mov eax, esi
call fcn.00412e0b
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a100
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4260d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.0040a060
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401580
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40a192
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40ba40
Capabilities:
Check if file exists

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4262e8
push eax
mov dword fs:[0], esp
push ebx
push esi
mov esi, dword [esp + 0x18]
mov eax, dword [esi]
push edi
push eax
call fcn.004103e0
add esp, 4
test eax, eax
je 0x40bc17
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.00401580
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x1c], esi
mov edi, dword [esi - 4]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, edi
mov edi, 0x104
xor ebx, ebx
sub eax, edi
or eax, ecx
mov dword [esp + 0x14], ebx
jge 0x40bab0
push edi
lea ecx, [esp + 0x20]
call fcn.00401530
mov esi, dword [esp + 0x1c]
cmp dword [esi - 8], edi
jge 0x40babf
push 0x80070057
call fcn.00401220
mov dword [esi - 0xc], edi
mov edi, dword [esp + 0x20]
mov word [esi + 0x208], bx
mov eax, dword [edi + 0x10]
push eax
push esi
call fcn.00410490
add esp, 8
push str..lnk
push esi
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
push esi
call fcn.00413353
add esp, 4
cmp eax, ebx
jl 0x40bab5
cmp eax, dword [esi - 8]
jg 0x40bab5
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], bx
call fcn.004103e0
add esp, 4
test eax, eax
je 0x40bb44
lea eax, [esi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bb2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
mov eax, dword [edi + 0x28]
push str.Always
push eax
call fcn.0041397b
add esp, 8
test eax, eax
je 0x40bba2
mov eax, dword [edi + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40bba2
lea eax, [esi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bb89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 0x80004005
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
push 0x195
push str..StartMenuBuilder.cpp
push str._n__s:__d_
call fcn.0040fe40
push esi
push str.ShortCut_creating:__s_n
call fcn.004100a0
add esp, 0x14
call fcn.00410080
mov ecx, dword [edi + 0x24]
mov edx, dword [edi + 0x1c]
mov ebx, dword [edi + 0x14]
test eax, eax
mov eax, dword [edi + 0x2c]
mov edi, dword [edi + 0x18]
push eax
push ecx
push edx
push esi
push ebx
push edi
jne 0x40bbe9
call fcn.00402b20
jmp 0x40bbee
call fcn.00402790
mov edi, eax
lea eax, [esi - 0x10]
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bc40
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x40bc40
push 0x19e
push str..StartMenuBuilder.cpp
push str._n__s:__d_
mov edi, 0x80000102
call fcn.0040fe40
mov eax, dword [esi]
push eax
push str.ShortCut_directory_doesnt_existed__s_n
call fcn.004100a0
add esp, 0x14
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8
Function at 0x40bc60
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x426308
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
call fcn.00405630
mov esi, eax
mov eax, dword [esi]
push eax
call fcn.004103e0
add esp, 4
test eax, eax
je 0x40be3b
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.00401580
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0xc], esi
mov edi, dword [esi - 4]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, edi
mov edi, 0x104
xor ebx, ebx
sub eax, edi
or eax, ecx
mov dword [esp + 0x18], ebx
jge 0x40bcd4
push edi
lea ecx, [esp + 0x10]
call fcn.00401530
mov esi, dword [esp + 0xc]
cmp dword [esi - 8], edi
jge 0x40bce3
push 0x80070057
call fcn.00401220
mov dword [esi - 0xc], edi
mov edi, dword [esp + 0x20]
mov word [esi + 0x208], bx
mov eax, dword [edi + 0x10]
push eax
push esi
call fcn.00410490
add esp, 8
push str..lnk
push esi
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
push esi
call fcn.00413353
add esp, 4
cmp eax, ebx
jl 0x40bcd9
cmp eax, dword [esi - 8]
jg 0x40bcd9
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], bx
call fcn.004103e0
add esp, 4
test eax, eax
je 0x40bd68
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bd52
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
mov eax, dword [edi + 0x28]
push str.Always
push eax
call fcn.0041397b
add esp, 8
test eax, eax
je 0x40bdc6
mov eax, dword [edi + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40bdc6
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bdad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
push 0x1b7
push str..StartMenuBuilder.cpp
push str._n__s:__d_
call fcn.0040fe40
push esi
push str.Desktop_ShortCut_creating:__s_n
call fcn.004100a0
add esp, 0x14
call fcn.00410080
mov ecx, dword [edi + 0x24]
mov edx, dword [edi + 0x1c]
mov ebx, dword [edi + 0x14]
test eax, eax
mov eax, dword [edi + 0x2c]
mov edi, dword [edi + 0x18]
push eax
push ecx
push edx
push esi
push ebx
push edi
jne 0x40be0d
call fcn.00402b20
jmp 0x40be12
call fcn.00402790
mov edi, eax
lea eax, [esi - 0x10]
add esp, 0x18
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40be64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x40be64
push 0x1c0
push str..StartMenuBuilder.cpp
push str._n__s:__d_
mov edi, 0x80000102
call fcn.0040fe40
mov eax, dword [esi]
push eax
push str.ShortCut_directory_doesnt_existed__s_n
call fcn.004100a0
add esp, 0x14
mov ecx, dword [esp + 0x10]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x40eb00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x426668
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push 0x4274bc
lea ecx, [esp + 8]
call fcn.00401f70
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [esp + 0xc]
push str._s_s.lnk
push ecx
mov dword [esp + 0x20], 0
call fcn.00403a10
mov edx, dword [esp + 0x30]
mov esi, dword [edx]
call fcn.00404200
mov eax, dword [eax]
push esi
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00404460
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004103e0
add esp, 0x20
test eax, eax
pop esi
je 0x40ebdf
mov edx, dword [esp]
push edx
call fcn.00410980
test eax, eax
je 0x40ebdf
push 0x4b
push str..StartMenuBuilderEx.cpp
push str._n__s:__d_
call fcn.0040fe40
mov eax, dword [esp + 0xc]
push eax
push 0x428b04
call fcn.004100a0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 0x14
mov dword [esp + 0xc], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ebcc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
mov eax, dword [esp]
add eax, 0xfffffff0
mov dword [esp + 0xc], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ec04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 4]
mov eax, 0x80004005
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x40fe40
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x404
mov eax, dword [0x431468]
mov dword [esp + 0x400], eax
call fcn.0040fd70
test eax, eax
je 0x40fe87
mov ecx, dword [esp + 0x408]
lea eax, [esp + 0x40c]
push eax
push ecx
lea edx, [esp + 8]
push 0x3ff
push edx
call fcn.004142fe
add esp, 0x10
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x400]
call fcn.00412e0b
add esp, 0x404
ret

Function at 0x40fea0
Capabilities:
Check os version

Disassembly:
sub esp, 0x1ac
mov eax, dword [0x431468]
mov dword [esp + 0x1a8], eax
mov eax, dword [0x432c88]
test eax, eax
jne 0x41004a
mov eax, 0x114
push esi
push edi
or edi, 0xffffffff
mov dword [esp + 0x9c], eax
mov dword [esp + 8], eax
lea eax, [esp + 0x9c]
push eax
mov dword [esp + 0xb0], edi
mov dword [esp + 0xa8], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40ff6a
push 0x80
push str.._stdafx.cpp
push str._n__s:__d_
call fcn.0040fe40
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0xc
call esi
push eax
push str.The_GetVersionExW_Fail:_d_n
call fcn.0040fe40
add esp, 8
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40ff6a
push 0x84
push str.._stdafx.cpp
push str._n__s:__d_
call fcn.0040fe40
add esp, 0xc
call esi
push eax
push str.The_GetVersionExA_Fail:_d_n
call fcn.0040fe40
add esp, 8
mov eax, dword [esp + 0xac]
cmp eax, edi
mov esi, dword [esp + 0x18]
je 0x40ff7b
mov esi, eax
mov eax, dword [esp + 0xa4]
cmp eax, edi
jne 0x40ff8a
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xa0]
cmp edx, edi
jne 0x40ff99
mov edx, dword [esp + 0xc]
mov ecx, esi
dec ecx
je 0x410018
dec ecx
je 0x40ffc8
push 0xce
push str.._stdafx.cpp
push str._n__s:__d_
call fcn.0040fe40
push esi
push str.The_OS_Ver_d_n
call fcn.0040fe40
add esp, 0x14
jmp case.0x40ffd0.1
lea ecx, [edx - 1]
cmp ecx, 5
ja case.0x40ffd0.6
jmp dword [ecx*4 + 0x410064]
mov dword [0x432c88], 4
jmp case.0x40ffd0.1
mov dword [0x432c88], 5
jmp case.0x40ffd0.1
sub eax, 0
je 0x410000
mov dword [0x432c88], 7
jmp case.0x40ffd0.1
mov dword [0x432c88], 6
jmp case.0x40ffd0.1
mov dword [0x432c88], 8
jmp case.0x40ffd0.1
test eax, eax
je 0x41003e
cmp eax, 0xa
je 0x410032
cmp eax, 0x5a
jne case.0x40ffd0.1
mov dword [0x432c88], 3
jmp case.0x40ffd0.1
mov dword [0x432c88], 2
jmp case.0x40ffd0.1
mov dword [0x432c88], 1
pop edi
pop esi
mov ecx, dword [esp + 0x1a8]
mov eax, dword [0x432c88]
call fcn.00412e0b
add esp, 0x1ac
ret
Function at 0x4100a0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x888
mov eax, dword [0x431468]
mov dword [esp + 0x884], eax
call fcn.0040fd70
test eax, eax
je 0x41017b
call fcn.0040fea0
cmp eax, 4
jl 0x4100ce
cmp eax, 8
jle 0x410148
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x890]
mov dword [esp + 4], eax
call dword [fcn.00430090]
push eax
push esi
lea ecx, [esp + 0xc]
call fcn.00401350
mov edx, dword [esp + 4]
lea ecx, [esp + 0x88]
push ecx
push edx
lea eax, [esp + 0x90]
push 0x3ff
push eax
call fcn.004142fe
add esp, 0x10
lea ecx, [esp + 0x88]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 4]
lea edx, [esp + 8]
cmp eax, edx
pop esi
je 0x41017b
push eax
call fcn.004132e2
add esp, 4
mov ecx, dword [esp + 0x884]
call fcn.00412e0b
add esp, 0x888
ret
mov ecx, dword [esp + 0x88c]
lea eax, [esp + 0x890]
push eax
push ecx
lea edx, [esp + 0x8c]
push 0x3ff
push edx
call fcn.00414354
add esp, 0x10
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x884]
call fcn.00412e0b
add esp, 0x888
ret

Function at 0x4101f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x431468]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
call fcn.00410080
test eax, eax
jne 0x4102b7
mov edx, dword [ebp + 0xc]
mov byte [ebp - 0x108], al
mov ecx, 0x40
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x108]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp + 0x14], eax
call dword [fcn.00430090]
lea ecx, [ebp - 0x108]
push ecx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.00413770
mov edi, esp
test edi, edi
je 0x410292
push esi
push edi
push 0xffffffffffffffff
lea edx, [ebp - 0x108]
push edx
push 0
push ebx
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
neg esi
sbb esi, esi
and esi, edi
jmp 0x410294
xor esi, esi
push esi
call fcn.00413353
mov edi, dword [ebp + 0x10]
add esp, 4
inc eax
lea ecx, [eax + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4102cd
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea esp, [ebp - 0x114]
mov ecx, dword [ebp - 4]
call fcn.00412e0b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10