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

Disassembly:
push esi
push edi
call fcn.0040c630
push 0x104
mov dword [0x43ab8c], 0
call fcn.0040c690
push eax
push 0x43aa84
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x43aa84
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov edi, str.Ncstudio.string
or ecx, 0xffffffff
xor eax, eax
push 0x43aa84
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, 0x43aa84
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push str.MaxIndex
and ecx, 3
push str.Attribute
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
mov dword [0x43ab8c], eax
test eax, eax
pop esi
je 0x40c623
inc eax
push 4
push eax
call fcn.00413b08
push 0x43a4b0
mov dword [0x43ab88], eax
call fcn.00412388
mov ecx, dword [0x43ab88]
add esp, 0xc
mov dword [ecx], eax
mov al, 1
ret

Function at 0x40c6b0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x42ab71
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov eax, dword [0x436dd0]
push esi
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x124]
lea ecx, [esp + 4]
push esi
mov dword [esp + 0x120], 0
call fcn.00420eb4
push str.Lang_
lea ecx, [esp + 8]
mov byte [esp + 0x120], 1
call fcn.00421195
push esi
lea ecx, [esp + 0xc]
call fcn.00420eb4
push str.Lang_
lea ecx, [esp + 0xc]
mov byte [esp + 0x120], 2
call fcn.00421195
push str.Lang.ini
lea ecx, [esp + 0xc]
call fcn.00421195
mov ecx, dword [esp + 4]
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
push ecx
call esi
test eax, eax
je 0x40c7d8
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40c76e
mov edx, dword [esp + 4]
push edx
push 0x43660c
call fcn.0040c2c0
add esp, 4
push eax
jmp 0x40c7e2
mov ecx, dword [esp + 8]
lea edx, [esp + 0x10]
push ecx
push 0x104
push edx
push 0x43a4b0
push str.ActiveLang
push str.ActiveLang
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x10]
test al, al
jne 0x40c7b4
mov eax, dword [esp + 8]
push eax
push 0x436614
call fcn.0040c2c0
add esp, 4
lea ecx, [esp + 0x10]
push eax
push ecx
jmp 0x40c7e7
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea eax, [esp + 0x10]
lea ecx, [esp + 4]
push eax
call fcn.00421195
mov ecx, dword [esp + 4]
push ecx
call esi
test eax, eax
jne 0x40c7ff
mov edx, dword [esp + 4]
push edx
push str.The_path__s__to_specify_language_information_does_not_exist.
lea eax, [esp + 0x14]
push eax
call fcn.0042044f
mov ecx, dword [esp + 0x18]
add esp, 0xc
push 0
push 0x10
push ecx
call fcn.00427dee
jmp 0x40c816
mov edx, dword [esp + 4]
push 0x104
push edx
push 0x43ab90
call fcn.00412c80
add esp, 0xc
lea ecx, [esp + 8]
mov byte [esp + 0x11c], 1
call fcn.00420e46
lea ecx, [esp + 4]
mov byte [esp + 0x11c], 0
call fcn.00420e46
lea ecx, [esp + 0xc]
mov dword [esp + 0x11c], 0xffffffff
call fcn.00420e46
mov ecx, dword [esp + 0x114]
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x40ddb0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42ad39
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebp
push esi
push edi
mov ebp, ecx
push eax
push 0x66
mov dword [esp + 0x14], ebp
call fcn.00410870
add esp, 4
mov ecx, ebp
push eax
call fcn.0042293d
mov ecx, dword [0x436dd0]
xor esi, esi
mov dword [esp + 0x18], esi
mov dword [ebp + 0x78], ecx
lea ecx, [ebp + 0x80]
mov byte [esp + 0x18], 1
mov dword [ebp + 0x7c], esi
call fcn.00406b10
mov byte [esp + 0x18], 2
mov dword [ebp], method.CDialog.virtual_0
call fcn.00428d58
call fcn.00428d58
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp + 0x74], eax
lea eax, [ebp + 0x64]
xor edx, edx
mov dword [ebp + 0x60], esi
mov dword [ebp + 0x5c], esi
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov ecx, dword [0x436dd0]
mov dword [esp + 0x20], ecx
push 0x104
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 3
call fcn.004211e9
mov edi, eax
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xffffffffffffffff
mov edx, ecx
mov esi, edi
mov edi, 0x43af68
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
call fcn.00421238
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 2
call fcn.00420e46
mov ecx, dword [esp + 0x10]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x40f090
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42ae1b
push eax
mov al, byte [0x43ae5c]
mov dword fs:[0], esp
sub esp, 0x108
test al, al
jne 0x40f169
push esi
push edi
push 1
lea eax, [esp + 0x10]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
call fcn.00420eb4
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push 0x104
push edx
push eax
mov dword [esp + 0x124], 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
call fcn.00420f83
push 0x436244
lea ecx, [esp + 0xc]
call fcn.00421195
mov edi, dword [esp + 8]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x118], 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x43ae5c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
call fcn.00420e46
pop edi
mov eax, 0x43ae5c
pop esi
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
add esp, 0x114
ret
mov ecx, dword [esp + 0x108]
mov eax, 0x43ae5c
mov dword fs:[0], ecx
add esp, 0x114
ret

Function at 0x40f190
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42ae3b
push eax
mov al, byte [0x43ad58]
mov dword fs:[0], esp
sub esp, 0x108
test al, al
jne 0x40f269
push esi
push edi
push 1
lea eax, [esp + 0x10]
push 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
call fcn.00420eb4
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push 0x104
push edx
push eax
mov dword [esp + 0x124], 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
call fcn.00420f83
push 0x436244
lea ecx, [esp + 0xc]
call fcn.00421195
mov edi, dword [esp + 8]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x118], 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x43ad58
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
call fcn.00420e46
pop edi
mov eax, 0x43ad58
pop esi
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
add esp, 0x114
ret
mov ecx, dword [esp + 0x108]
mov eax, 0x43ad58
mov dword fs:[0], ecx
add esp, 0x114
ret
Function at 0x40f300
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
call fcn.0040f290
test al, al
je 0x40f360
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret
Function at 0x40fb90
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42af58
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
push esi
call edi
test eax, eax
jne 0x40fc72
push esi
lea ecx, [esp + 0x28]
call fcn.00420eb4
mov eax, dword [0x436dd0]
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0xc], eax
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esp + 0x1c], 1
push esi
push 0x436244
lea ecx, [esp + 0x2c]
call fcn.004200d7
mov esi, eax
cmp esi, 0xffffffff
je 0x40fc40
lea ecx, [esp + 0x10]
push esi
push ecx
lea ecx, [esp + 0x2c]
call fcn.0042002f
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 2
call fcn.00420f33
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 1
call fcn.00420e46
mov edx, dword [esp + 0xc]
push edx
call edi
test eax, eax
jne 0x40fc3d
push eax
mov eax, dword [esp + 0x10]
push eax
call ebp
test eax, eax
je 0x40fc53
inc esi
jmp 0x40fbe4
mov ecx, dword [esp + 0x24]
push ecx
call edi
test eax, eax
jne 0x40fc53
mov edx, dword [esp + 0x24]
push eax
push edx
call ebp
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call fcn.00420e46
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00420e46
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x40fcf0
Capabilities:
Check if file exists

Disassembly:
mov al, byte [0x43af60]
sub esp, 0x104
test al, al
jne 0x40fd61
mov eax, dword [str.a:cfinfo.sys]
mov ecx, dword [0x436cc8]
mov edx, dword [0x436ccc]
mov dword [esp], eax
mov ax, word [0x436cd0]
push ebx
push esi
push edi
mov dword [esp + 0x10], ecx
mov word [esp + 0x18], ax
mov ecx, 0x3d
xor eax, eax
lea edi, [esp + 0x1a]
mov dword [esp + 0x14], edx
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov bl, 0x64
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
mov byte [esp + 0xc], bl
push ecx
call esi
test eax, eax
jne 0x40fd57
inc bl
cmp bl, 0x7a
jle 0x40fd41
mov al, bl
pop edi
pop esi
mov byte [0x43af60], al
pop ebx
add esp, 0x104
ret
Function at 0x4106b0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x42b058
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov al, byte [esp + 0x18]
push ebx
push ebp
lea ecx, [esp + 0x20]
push esi
push ecx
mov byte [esp + 0x28], al
call fcn.00413d4e
mov ebp, dword [esp + 0x24]
add esp, 4
mov bl, byte [ebp]
movsx esi, bl
sub esi, 0x41
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, esi
shr eax, cl
test eax, eax
mov dword [esp + 0xc], eax
je 0x410760
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test al, 1
je 0x410756
cmp bl, byte [esp + 0x24]
je 0x410756
mov edx, dword [0x436dd0]
mov dword [esp + 0x20], edx
movsx eax, bl
push eax
lea ecx, [esp + 0x24]
push 0x436d40
push ecx
mov dword [esp + 0x24], 0
call fcn.0042044f
mov edx, dword [esp + 0x2c]
add esp, 0xc
push edx
call esi
cmp eax, 3
je 0x410774
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.00420e46
mov eax, dword [esp + 0xc]
inc bl
shr eax, 1
mov dword [esp + 0xc], eax
jne 0x410703
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0x20]
mov byte [ebp], bl
mov dword [esp + 0x18], 0xffffffff
call fcn.00420e46
mov ecx, dword [esp + 0x10]
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x41398f
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4139ba
test byte [esp + 8], 0x80
je 0x4139a9
and al, 0xfe
jmp 0x4139ab
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4139cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00414d70
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x425168
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4251aa
call fcn.00428d58
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4251aa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4251a1
xor eax, eax
jmp 0x4251b2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004251b8
pop edi
pop esi
pop ebx
ret 4

Function at 0x42983c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42986a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x429888
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004297a2
jmp 0x429888
mov eax, dword [esi + 0x14]
test eax, eax
je 0x429888
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004297a2
test edi, edi
mov eax, edi
jne 0x429872
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401a60
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable

Function at 0x401ac0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4053a0]
test esi, esi
jle 0x401bad
mov edi, dword [0x4053a4]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x401af4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x401ba6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x401ae0
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x401bea
lea ebx, [esi + esi*2]
mov esi, dword [0x4053a4]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x4053a4]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401bca
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401b9f
sub eax, 0x40
and eax, 0xffffffbf
je 0x401b9f
mov eax, dword [esp + 0x20]
add ebx, dword [0x4053a4]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x401bb4
add dword [0x4053a0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x401afe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
mov eax, dword [0x4053a4]
mov eax, dword [eax + ebx + 4]
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 dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
Function at 0x402050
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4053b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4053b0]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x4020a5
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 0x40209e
test esi, esi
je 0x40209e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402080
mov dword [esp], 0x4053b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401150
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x40d020]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
push edi
push 0x104
push 0
push esi
call sub.MSVCR80.dll_memset
push 0x104
lea edi, [esi + 0x104]
push 0
push edi
call sub.MSVCR80.dll_memset
mov edx, str.kernel
add esp, 0x18
mov ebp, 0x104
mov eax, esi
sub edx, esi
mov cl, byte [edx + eax]
test cl, cl
je 0x4011aa
mov byte [eax], cl
add eax, 1
sub ebp, 1
jne 0x401197
jmp 0x4011ae
test ebp, ebp
jne 0x4011b1
sub eax, 1
push 0x103
mov byte [eax], 0
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 1
push 0x23
lea ecx, [esp + 0x10]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push esi
lea edx, [esp + 0xc]
push edx
push str._sQQPetRegistrar_s.ini
mov eax, 0x104
call fcn.00401050
push 0x103
lea eax, [esp + 0x11d]
push 0
push eax
mov byte [esp + 0x124], 0
call sub.MSVCR80.dll_memset
lea ecx, [esp + 0x20]
push ecx
push str._sQQPetRegistrar
mov eax, 0x104
lea edi, [esp + 0x12c]
call fcn.00401050
add esp, 0x20
mov edx, edi
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop edi
pop ebp
jne 0x40124a
lea eax, [esp + 0x104]
push eax
call fcn.00401270
mov ecx, dword [esp + 0x208]
xor ecx, esp
mov eax, esi
call fcn.00407568
add esp, 0x20c
ret
Function at 0x401e80
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x40803b
mov eax, dword fs:[0]
push eax
sub esp, 0xc3c
mov eax, dword [0x40d020]
xor eax, esp
mov dword [esp + 0xc38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40d020]
xor eax, esp
push eax
lea eax, [esp + 0xc50]
mov dword fs:[0], eax
mov eax, dword [esp + 0xc64]
mov ebp, dword [esp + 0xc60]
xor ebx, ebx
push 0x3ff
lea ecx, [esp + 0x51]
push ebx
push ecx
mov dword [esp + 0x28], eax
mov byte [esp + 0x58], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
mov esi, str.exe.zip
lea ecx, [esp + 0x4c]
call fcn.004020f0
test eax, eax
je 0x401f20
push 0x4095ac
push 0x82
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x401f20
lea edx, [esp + 0x4c]
push edx
call fcn.00402060
cmp eax, ebx
je 0x401f20
lea esi, [ebx + 1]
jmp 0x401f22
xor esi, esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], vtable.FileOperator_class_CZipUtility_.0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], vtable.CZipUtility.0
lea eax, [esp + 0x4c]
mov dword [esp + 0xc58], ebx
push eax
lea edx, [esp + 0x1c]
mov ecx, ebp
mov dword [esp + 0x1c], ebx
call fcn.00407100
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.MSVCR80.dll__unlink]
add esp, 4
cmp esi, ebx
je 0x401f82
cmp dword [esp + 0x18], ebx
jne 0x401f82
mov esi, 1
jmp 0x401f84
xor esi, esi
push 0x3ff
lea edx, [esp + 0x851]
push ebx
push edx
mov byte [esp + 0x858], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
push ebp
push str._sKernelSmartLoader.exe
mov eax, 0x400
lea edi, [esp + 0x854]
call fcn.00401050
push 0x3ff
lea eax, [esp + 0x459]
push ebx
push eax
mov byte [esp + 0x460], bl
call sub.MSVCR80.dll_memset
mov ecx, dword [esp + 0x30]
add esp, 0x14
push ecx
push ebp
push str._s_s.exe
mov eax, 0x400
lea edi, [esp + 0x458]
call fcn.00401050
add esp, 0xc
cmp esi, ebx
je 0x402013
mov edx, edi
push edx
lea eax, [esp + 0x850]
push eax
call dword [sym.imp.MSVCR80.dll_rename]
add esp, 8
test eax, eax
jne 0x402013
lea ebx, [eax + 1]
lea ecx, [esp + 0x30]
mov dword [esp + 0xc58], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, ebx
mov ecx, dword [esp + 0xc50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc38]
xor ecx, esp
call fcn.00407568
add esp, 0xc48
ret 8
Function at 0x402060
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x40207a
pop esi
pop ebx
pop ecx
ret 4
push ebp
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
mov eax, dword [esp + 0x18]
push 0x4095e0
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.MSVCR80.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x4020d5
push esi
push edi
push 1
push ebp
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4020cb
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret 4

Function at 0x4020f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x404
mov eax, dword [0x40d020]
xor eax, esp
mov dword [esp + 0x400], eax
push edi
push 0x3ff
lea eax, [esp + 9]
push 0
push eax
mov edi, ecx
mov byte [esp + 0x10], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea edx, [esp + 0xc]
push edx
push str._s_d__s
mov eax, 0x400
call fcn.00401050
mov ecx, dword [esp + 0x414]
add esp, 0x10
pop edi
xor ecx, esp
mov eax, 1
call fcn.00407568
add esp, 0x404
ret

Function at 0x402170
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebp
push esi
push edi
xor ebp, ebp
push ebp
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
push esi
call fcn.0040754b
add esp, 4
cmp esi, ebp
mov edi, eax
jbe 0x4021d4
push edi
push esi
push ebp
push ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4021d4
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0x4095f0
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4021d4
mov edx, dword [esp + 0xc]
mov ecx, dword [edx + 8]
mov eax, ecx
shr eax, 0x10
imul eax, eax, 0x64
movzx ecx, cx
add eax, ecx
mov ebp, eax
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret