joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413240
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4166e1
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4211a0]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [0x4211a0]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
lea eax, [esp + 8]
push eax
push 0x1a
push 0
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, dword [esp + 8]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea eax, [esp + 0x10]
push eax
push 0x41adc4
mov dword [esp + 0x22c], 0
push esi
mov dword [esp + 0x10], 1
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
mov eax, dword [esi]
add esp, 0xc
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.QPUpdate.xml
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_899]
mov eax, esi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0040e482
add esp, 0x224
ret

Function at 0x413ad0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push 0x20006
push 0
push str.SoftwareTencentQQPlayerOption
push connect
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x413b29
mov ecx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 4]
push 4
lea edx, [esp + 0xc]
push edx
push 4
push eax
push str.LastUpdateTime
push esi
mov dword [esp + 0x20], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x413b28
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 8
ret

Function at 0x413b30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0x20019
xor esi, esi
push esi
push 0x41acf8
push connect
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x413bae
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push 0x41ad3c
mov edi, 4
push esi
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x413b9d
cmp dword [esp + 0x18], edi
je 0x413ba5
mov dword [esp + 0xc], 0
test esi, esi
je 0x413bae
push esi
call ebp
xor esi, esi
test esi, esi
mov edi, dword [esp + 0xc]
je 0x413bb9
push esi
call ebp
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x413bd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0x20019
xor esi, esi
push esi
push 0x41ac98
push connect
mov dword [esp + 0x20], 0x3f480
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x413c4e
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push str.UpdatePeriod
mov edi, 4
push esi
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x413c3d
cmp dword [esp + 0x18], edi
je 0x413c45
mov dword [esp + 0xc], 0x3f480
test esi, esi
je 0x413c4e
push esi
call ebx
xor esi, esi
test esi, esi
mov edi, dword [esp + 0xc]
je 0x413c59
push esi
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x413f00
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push str.A7AC626F_0C9F_45e7_A8C5_005C30A30389
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x421ac8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x413ff1
lea edi, [eax + 0x11]
lea eax, [esp + 0x14]
push 0x41b04c
push eax
call fcn.004147a0
mov eax, dword [eax]
mov ebx, dword [sym.imp.USER32.dll_FindWindowW]
add esp, 8
push 0
push eax
call ebx
lea ecx, [esp + 0x14]
mov esi, eax
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
test esi, esi
jne 0x413f9e
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
test edi, edi
jle 0x413f9a
push 0x64
call ebp
lea ecx, [esp + 0x18]
push str.IDS_QPUpdate_DialogTitle
push ecx
call fcn.004147a0
mov eax, dword [eax]
add esp, 8
push eax
push 0
call ebx
lea ecx, [esp + 0x18]
mov esi, eax
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
sub edi, 0x64
test esi, esi
je 0x413f64
jmp 0x413f9e
test esi, esi
je 0x413fd3
push 0
push 0x64
push 2
push 0
push 0
push 0x47f
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x413fd3
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x413fd3
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x421ac8]
cmp eax, 0xffffffff
je 0x413fe4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x401450
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x401476
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x40150a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x4014c5
cmp eax, 0x40
je 0x4014c5
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401469
cmp eax, 0x40
je 0x401469
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x401469
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sub.msvcrt.dll__assert
lea esi, [esi]
lea edi, [edi]
Function at 0x4010f0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x110c
call fcn.00462620
mov eax, dword [0x4a30f8]
xor eax, esp
mov dword [esp + 0x1108], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x800
lea ecx, [esp + 0x914]
push 0
push ecx
mov dword [esp + 0x18], eax
call fcn.00461880
add esp, 0xc
push 0x800
lea edx, [esp + 0x114]
push 0
push edx
call fcn.00461880
add esp, 0xc
lea eax, [esp + 0x910]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x100
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.00461880
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
xor esi, esi
jmp 0x401180
lea edx, [esp + 0x10]
push 0x80
push edx
call fcn.00401000
add esp, 8
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x914]
push ecx
lea edx, [esp + 0x118]
push edx
call ebx
lea eax, [esp + 0x110]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4011b3
mov ecx, dword [str..tmp]
mov edx, dword [0x4911c4]
mov dword [eax], ecx
mov cx, word [0x4911c8]
mov dword [eax + 4], edx
lea edx, [esp + 0x110]
push edx
mov word [eax + 8], cx
call edi
test eax, eax
je 0x401206
inc esi
cmp esi, 0xa
jl 0x401180
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1108]
xor ecx, esp
call fcn.00461862
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x110]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401210
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x110]
mov ebx, eax
mov eax, dword [esp + 0xc]
push ecx
call fcn.00402230
mov ecx, dword [esp + 0x1114]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00461862
mov esp, ebp
pop ebp
ret

Function at 0x401250
Capabilities:
Create thread

Disassembly:
cmp dword [esp + 0x10], 0
mov edx, dword [esp + 8]
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x14]
mov dword [esi + 0xc], edi
mov edi, dword [esp + 0x1c]
mov dword [esi + 0x10], edi
mov edi, dword [esp + 0x20]
lea eax, [esi + 8]
mov dword [esi], vtable.CSimpleThread.0
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], edx
mov dword [esi + 4], 0
mov dword [eax], 0xffffffff
mov dword [esi + 0x14], edi
je 0x4012ac
test ecx, ecx
je 0x4012ac
push eax
push 0
push edx
push ecx
push 0
push 0
call fcn.004627bd
add esp, 0x18
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
ret 0x18
Function at 0x401820
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push ebx
push esi
push 0x1418
call fcn.0044d6c0
mov esi, eax
add esp, 4
test esi, esi
je 0x40184d
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
call fcn.004017d0
mov ecx, eax
jmp 0x40184f
xor ecx, ecx
xor eax, eax
mov edx, 0x4018e0
mov esi, vtable.CSimpleThread.0
mov dword [esp + 8], esi
mov dword [esp + 0x20], 0x4018e0
mov dword [esp + 0x24], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
test edx, edx
je 0x4018a4
lea eax, [esp + 0x10]
push eax
push 0
push ecx
push 0x4018e0
push 0
push 0
call fcn.004627bd
add esp, 0x18
mov dword [esp + 0xc], eax
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4018bb
test eax, eax
je 0x4018bb
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0xc]
mov dword [esp + 8], esi
test eax, eax
je 0x4018ca
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x401950
Capabilities:
Delete file
Download url
Receive data

Disassembly:
sub esp, 0x414
mov eax, dword [0x4a30f8]
xor eax, esp
mov dword [esp + 0x410], eax
cmp word [esi], 0
mov eax, dword [esp + 0x418]
je 0x401a06
test eax, eax
je 0x4019ac
cmp word [eax], 0
je 0x4019ac
push 0
push 0
push eax
push esi
push 0
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jl 0x401a06
mov eax, 1
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.00461862
add esp, 0x414
ret 4
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.00461880
add esp, 0xc
push 0
push 0
push 0x104
lea edx, [esp + 0xc]
push edx
push esi
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
jl 0x401a06
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.00461862
add esp, 0x414
ret 4
mov ecx, dword [esp + 0x410]
xor ecx, esp
xor eax, eax
call fcn.00461862
add esp, 0x414
ret 4

Function at 0x402030
Capabilities:
Check if file exists

Disassembly:
call fcn.00401ee0
test eax, eax
je 0x40203f
mov eax, 1
ret
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x402071
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402075
push esi
call fcn.00401f60
add esp, 4
test eax, eax
jne 0x402075
push 1
call fcn.00461230
push eax
push esi
call fcn.004614b0
add esp, 0xc
xor eax, eax
pop esi
ret
mov eax, 1
pop esi
ret

Function at 0x402b20
Capabilities:
Check if file exists

Disassembly:
push esi
call fcn.00401ee0
mov esi, dword [esp + 8]
test eax, eax
jne 0x402b61
test esi, esi
je 0x402b5b
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402b61
push esi
call fcn.00401f60
add esp, 4
test eax, eax
jne 0x402b61
push 1
call fcn.00461230
push eax
push esi
call fcn.004614b0
add esp, 0xc
xor eax, eax
pop esi
ret 4
push esi
call sub.KERNEL32.dll_LoadLibraryW
pop esi
ret 4
Function at 0x402b70
Capabilities:
Check if file exists

Disassembly:
cmp dword [0x4a644c], 0
jne 0x402b7e
jmp fcn.00402b20
push esi
call fcn.00401ee0
mov esi, dword [esp + 8]
test eax, eax
jne 0x402ba4
test esi, esi
je 0x402baf
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402ba4
push esi
call fcn.00401f60
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
ret 4
xor eax, eax
pop esi
ret 4

Function at 0x403590
Capabilities:
Check if file exists
Check os version

Disassembly:
mov eax, 0x2140
call fcn.00462620
mov eax, dword [0x4a30f8]
xor eax, esp
mov dword [esp + 0x213c], eax
push esi
mov esi, dword [esp + 0x2148]
test esi, esi
jne 0x4035cc
xor eax, eax
pop esi
mov ecx, dword [esp + 0x213c]
xor ecx, esp
call fcn.00461862
add esp, 0x2140
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4035f2
mov eax, 1
pop esi
mov ecx, dword [esp + 0x213c]
xor ecx, esp
call fcn.00461862
add esp, 0x2140
ret
xor eax, eax
push 0x2000
mov dword [esp + 0xc], eax
push eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov word [esp + 0x28], ax
lea eax, [esp + 0x148]
push eax
mov dword [esp + 0x14], 3
call fcn.00461880
push 0x1000
lea ecx, [esp + 0x150]
push esi
push ecx
call fcn.004625ca
push 0x11c
lea edx, [esp + 0x40]
push 0
push edx
call fcn.00461880
add esp, 0x24
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x28], 6
jb 0x40367f
lea ecx, [esp + 0x140]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [esp + 4]
lea edx, [esp + 0x140]
mov eax, 0x614
push ecx
mov dword [esp + 0x10], edx
mov word [esp + 0x18], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [esp + 0x2140]
neg eax
sbb eax, eax
pop esi
xor ecx, esp
inc eax
call fcn.00461862
add esp, 0x2140
ret
Function at 0x403a20
Capabilities:
Delete file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x483b20
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a30f8]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
xor ebp, ebp
push eax
mov dword [esp + 0x44], ebp
call fcn.00407760
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x48]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
call fcn.00401e70
lea ecx, [esp + 0x20]
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00403790
cmp eax, ebp
jne 0x403ac9
lea ecx, [esp + 0x1c]
call fcn.004036c0
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403ab3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x18]
push edx
mov ebx, str.wftest.tf
call fcn.00407580
mov eax, dword [esp + 0x1c]
add esp, 8
push 0
push 0x80
push 2
push 0
push 2
push 0x120116
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x403b58
mov eax, str.wftest
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403b10
push 0
sub eax, edx
lea ecx, [esp + 0x1c]
push ecx
mov esi, eax
push esi
push str.wftest
push edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403b46
cmp esi, dword [esp + 0x18]
jne 0x403b46
mov ebp, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403b78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
call fcn.004036c0
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403ba9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x406520
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x483e2b
mov eax, dword fs:[0]
push eax
mov eax, 0x1014
call fcn.00462620
mov eax, dword [0x4a30f8]
xor eax, esp
mov dword [esp + 0x1010], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a30f8]
xor eax, esp
push eax
lea eax, [esp + 0x1028]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x13c]
push 0x491898
xor ebx, ebx
mov dword [esp + 0x20], eax
call fcn.00402230
lea eax, [esi + 0x138]
push 0x491898
mov dword [esp + 0x24], eax
call fcn.00402230
mov eax, dword [0x4a4e50]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a4e50
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
push 0x800
lea eax, [esp + 0x28]
push ebx
push eax
mov dword [esp + 0x103c], ebx
call fcn.00461880
add esp, 0xc
lea ebx, [esp + 0x24]
mov ecx, esi
call fcn.004071c0
test eax, eax
jne 0x4065d2
lea eax, [edi - 0x10]
jmp 0x4066c3
lea eax, [esp + 0x24]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4065e0
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x24]
mov ebx, eax
push ecx
lea eax, [esp + 0x1c]
call fcn.00402230
push 0x800
lea edx, [esp + 0x828]
push 0
push edx
call fcn.00461880
mov esi, dword [esi + 0x11c]
mov ebp, dword [esp + 0x24]
add esp, 0xc
push esi
push ebp
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4066c0
mov ecx, 0x400
lea edi, [esp + 0x824]
lea esi, [esp + 0x24]
call fcn.00410c10
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x18]
call fcn.00401e10
lea eax, [esp + 0x824]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406670
sub eax, edx
sar eax, 1
lea edx, [esp + 0x824]
mov ebx, eax
mov eax, dword [esp + 0x1c]
push edx
call fcn.00402230
lea eax, [ebp - 0x10]
mov dword [esp + 0x1030], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4066b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4066e5
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x1030], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4066e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1028]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1010]
xor ecx, esp
call fcn.00461862
add esp, 0x1020
ret
Function at 0x407090
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x483d4b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x100c
call fcn.00462620
mov eax, dword [0x4a30f8]
xor eax, esp
mov dword [esp + 0x1008], eax
push esi
mov eax, dword [0x4a30f8]
xor eax, esp
push eax
lea eax, [esp + 0x1018]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0x800
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00461880
mov esi, dword [esi + 0x138]
add esp, 0xc
push str.i18ni18n.ini
push esi
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x800
lea edx, [esp + 0x810]
push 0
push edx
call fcn.00461880
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0x400
lea ecx, [esp + 0x814]
push ecx
push 0x491afc
push str.Language
push str.Main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 8]
push edx
lea ecx, [esp + 0x810]
call fcn.00407340
lea eax, [esp + 8]
push eax
mov dword [esp + 0x1024], 0
call fcn.00403c60
mov esi, eax
mov dword [esp + 0x1024], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407195
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1018]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.00461862
mov esp, ebp
pop ebp
ret 4
Function at 0x4071c0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x820
mov eax, dword [0x4a30f8]
xor eax, esp
mov dword [esp + 0x818], eax
push ebp
push esi
push edi
xor ebp, ebp
push 0x800
lea eax, [esp + 0x24]
push ebp
push eax
mov esi, ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call fcn.00461880
mov eax, dword [esi + 0x130]
mov ecx, dword [esi + 0xfc]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 1
push ebp
push eax
push ecx
mov dword [esp + 0x24], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x4072d9
mov esi, dword [esi + 0x134]
mov eax, dword [esp + 0x10]
push esi
lea ecx, [esp + 0x18]
push ecx
lea edi, [esp + 0x24]
lea esi, [esp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], 0x400
call fcn.00408d80
test eax, eax
jne 0x4072ca
mov edx, esi
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4072ca
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4072ca
mov edx, 0x400
mov eax, ebx
sub esi, ebx
lea ecx, [edx + 0x7ffffbfe]
test ecx, ecx
je 0x407292
movzx ecx, word [esi + eax]
cmp cx, bp
je 0x407292
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x407272
jmp 0x407296
cmp edx, ebp
jne 0x407299
sub eax, 2
xor edx, edx
mov word [eax], dx
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x4072ad
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x818]
xor ecx, esp
call fcn.00461862
add esp, 0x820
ret
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x4072d9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x824]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.00461862
add esp, 0x820
ret

Function at 0x408d20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x408d37
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408d68
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x408d64
cmp esi, eax
jae 0x408d68
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x408d54
cmp esi, eax
jb 0x408d6e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret