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

Disassembly:
sub esp, 0x814
mov eax, dword [0x486d80]
xor eax, esp
mov dword [esp + 0x80c], eax
push ebx
push esi
push 0x4788e0
xor ebx, ebx
mov eax, edi
call fcn.00402bd0
push 0x800
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.0044efc0
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
push 0x478060
push str.SoftwareKingsoftKSWSVC
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov esi, eax
neg esi
sbb esi, esi
add esi, 1
je 0x402242
lea eax, [esp + 0x10]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402200
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x10]
mov ebx, eax
push ecx
mov eax, edi
call fcn.00402bd0
mov ebx, edi
call fcn.00402f40
mov eax, 0x22
call fcn.00403060
mov eax, 0x5c
call fcn.00403060
call fcn.00402fc0
call fcn.004030e0
mov ecx, dword [esp + 0x814]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0044efac
add esp, 0x814
ret

Function at 0x402260
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x814
mov eax, dword [0x486d80]
xor eax, esp
mov dword [esp + 0x80c], eax
push ebx
push esi
push 0x4788e0
xor ebx, ebx
mov eax, edi
call fcn.00402bd0
push 0x800
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.0044efc0
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
push str.ImagePath
push str.SYSTEMCurrentControlSetServicesKingsoft_Antivirus_WebShield_Service
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov esi, eax
neg esi
sbb esi, esi
add esi, 1
je 0x402322
lea eax, [esp + 0x10]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4022e0
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x10]
mov ebx, eax
push ecx
mov eax, edi
call fcn.00402bd0
mov ebx, edi
call fcn.00402f40
mov eax, 0x22
call fcn.00403060
mov eax, 0x5c
call fcn.00403060
call fcn.00402fc0
call fcn.004030e0
mov ecx, dword [esp + 0x814]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0044efac
add esp, 0x814
ret
Function at 0x4024c0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x698
mov eax, dword [0x486d80]
xor eax, esp
mov dword [esp + 0x694], eax
mov eax, dword [ebp + 8]
push ebx
push edi
push 0x478774
push esi
xor edi, edi
push 0x478778
lea edx, [esp + 0x49c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edi
call fcn.00402e50
add esp, 0xc
test eax, eax
je 0x40251f
xor eax, eax
pop edi
pop ebx
mov ecx, dword [esp + 0x694]
xor ecx, esp
call fcn.0044efac
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x494]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x402604
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
inc edi
test byte [esp + 0x38], 0x10
je 0x4025c2
cmp word [esp + 0x64], 0x2e
jne 0x40256d
mov ax, word [esp + 0x66]
test ax, ax
je 0x4025c2
cmp ax, 0x2e
jne 0x40256d
cmp word [esp + 0x68], 0
je 0x4025c2
lea eax, [esp + 0x64]
push eax
push esi
lea ecx, [esp + 0x290]
push ecx
call ebx
test eax, eax
je 0x4025c2
push str.kwsmain.exe
lea edx, [esp + 0x28c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x4025c2
lea eax, [esp + 0x14]
push eax
push 0
lea ecx, [esp + 0x290]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x4025c2
test byte [esp + 0x14], 0x10
jne 0x4025c2
cmp dword [esp + 0x34], 0x1000
ja 0x4025e4
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x38]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4025f9
cmp edi, 0x3e8
jl 0x402545
jmp 0x4025f9
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x64]
push ecx
push esi
push edx
call ebx
mov dword [esp + 8], 1
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x69c]
mov eax, dword [esp + 8]
pop edi
pop ebx
xor ecx, esp
call fcn.0044efac
mov esp, ebp
pop ebp
ret 4
Function at 0x402620
Capabilities:
Enumerate process modules
Suspend thread

Disassembly:
sub esp, 0x43c
mov eax, dword [0x486d80]
xor eax, esp
mov dword [esp + 0x434], eax
cmp dword [0x48a240], 0
push esi
push edi
mov esi, ecx
jne 0x402665
push str.NtQueryInformationThread
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x48a240], eax
test eax, eax
je 0x402723
push esi
push 0
push 0x42
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x402723
push 0
push 4
lea eax, [esp + 0x14]
push eax
push 9
push edi
call dword [0x48a240]
test eax, eax
je 0x4026ae
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [esp + 0x434]
xor ecx, esp
call fcn.0044efac
add esp, 0x43c
ret
push ebx
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x402690
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], 0x428
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x402717
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
cmp eax, ecx
ja 0x4026ff
mov edx, dword [esp + 0x28]
add edx, eax
cmp edx, ecx
jbe 0x4026ff
lea eax, [esp + 0x30]
push str.kswebshield.dll
push eax
call fcn.0044fde8
add esp, 8
test eax, eax
je 0x402710
lea ecx, [esp + 0x10]
push ecx
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x4026d3
jmp 0x402717
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
xor ecx, esp
call fcn.0044efac
add esp, 0x43c
ret

Function at 0x402740
Capabilities:
Enumerate threads
Find taskbar

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push ebx
push esi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x4027c9
lea ecx, [esp + 8]
push ecx
push eax
mov dword [esp + 0x10], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 8]
test eax, eax
je 0x4027c9
push eax
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x4027c9
lea edx, [esp + 0xc]
push edx
push esi
mov dword [esp + 0x14], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x4027c2
lea ecx, [ecx]
mov ebx, dword [esp + 8]
cmp dword [esp + 0x18], ebx
jne 0x4027b3
mov ecx, dword [esp + 0x14]
call fcn.00402620
lea eax, [esp + 0xc]
push eax
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x4027a0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4027d0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
sub esp, 0x61c
mov eax, dword [0x486d80]
xor eax, esp
mov dword [esp + 0x618], eax
mov eax, dword [esp + 0x620]
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push esi
mov esi, ecx
test eax, eax
je 0x402851
cmp word [eax], 0
je 0x402851
push esi
push eax
lea eax, [esp + 0x218]
push eax
call ebx
test eax, eax
je 0x402851
lea ecx, [esp + 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402851
lea edx, [esp + 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x210]
push 0x478808
push eax
call fcn.00450eff
add esp, 8
test eax, eax
je 0x402851
push eax
call fcn.00450803
add esp, 4
push esi
push edi
lea ecx, [esp + 0x10]
push ecx
call ebx
test eax, eax
je 0x4028a7
lea edx, [esp + 8]
push edx
push str._s.tmp
lea edx, [esp + 0x420]
call fcn.00402e50
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 8
push 1
lea eax, [esp + 0x41c]
push eax
lea ecx, [esp + 0x10]
push ecx
call esi
push 4
push 0
lea edx, [esp + 0x10]
push edx
call esi
push 4
push 0
lea eax, [esp + 0x420]
push eax
call esi
mov ecx, dword [esp + 0x620]
pop esi
pop ebx
xor ecx, esp
call fcn.0044efac
add esp, 0x61c
ret 4
Function at 0x402980
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x82c
mov eax, dword [0x486d80]
xor eax, esp
mov dword [esp + 0x828], eax
mov ecx, dword [0x478850]
mov edx, dword [0x478854]
mov eax, dword [str.qQ]
push ebx
push esi
mov dword [esp + 0x820], ecx
movzx ecx, word [0x47885c]
push edi
mov dword [esp + 0x828], edx
mov edx, dword [0x4780ac]
mov dword [esp + 0x820], eax
mov eax, dword [0x478858]
mov word [esp + 0x830], cx
movzx ecx, word [0x4780b4]
push 0x800
mov dword [esp + 0x818], edx
mov dword [esp + 0x830], eax
mov eax, dword [0x4780b0]
lea edx, [esp + 0x14]
push 0
push edx
mov dword [esp + 0x824], eax
mov word [esp + 0x828], cx
call fcn.0044efc0
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0xc
push 1
push 0x10
lea eax, [esp + 0x18]
push eax
push 0
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x820]
push ecx
lea edx, [esp + 0x14]
push edx
mov eax, edx
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x10]
push ecx
call ebx
push 1
push 0x19
lea edx, [esp + 0x18]
push edx
push 0
call esi
lea eax, [esp + 0x820]
push eax
lea ecx, [esp + 0x14]
push ecx
mov edx, ecx
push edx
call edi
lea eax, [esp + 0x10]
push eax
call ebx
push 1
push 0x1a
lea ecx, [esp + 0x18]
push ecx
push 0
call esi
push str.MicrosoftInternet_ExplorerQuick_Launch_
lea edx, [esp + 0x14]
push edx
mov eax, edx
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
call ebx
push 1
push 0xb
lea edx, [esp + 0x18]
push edx
push 0
call esi
lea eax, [esp + 0x814]
push eax
lea ecx, [esp + 0x14]
push ecx
mov edx, ecx
push edx
call edi
lea eax, [esp + 0x10]
push eax
call fcn.00401d70
add esp, 4
push 1
push 0x16
lea ecx, [esp + 0x18]
push ecx
push 0
call esi
lea edx, [esp + 0x814]
push edx
lea eax, [esp + 0x14]
push eax
mov ecx, eax
push ecx
call edi
lea edx, [esp + 0x10]
push edx
call fcn.00401d70
mov ecx, dword [esp + 0x838]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044efac
mov esp, ebp
pop ebp
ret
Function at 0x403300
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x110c
call fcn.0044fef0
mov eax, dword [0x486d80]
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.0044efc0
add esp, 0xc
push 0x800
lea edx, [esp + 0x114]
push 0
push edx
call fcn.0044efc0
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.0044efc0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
xor esi, esi
jmp 0x403390
lea edx, [esp + 0x10]
push 0x80
push edx
call fcn.00403210
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 0x4033c3
mov ecx, dword [str..tmp]
mov edx, dword [0x47896c]
mov dword [eax], ecx
mov cx, word [0x478970]
mov dword [eax + 4], edx
lea edx, [esp + 0x110]
push edx
mov word [eax + 8], cx
call edi
test eax, eax
je 0x403416
inc esi
cmp esi, 0xa
jl 0x403390
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1108]
xor ecx, esp
call fcn.0044efac
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 0x403420
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x110]
mov ebx, eax
mov eax, dword [esp + 0xc]
push ecx
call fcn.00402bd0
mov ecx, dword [esp + 0x1114]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0044efac
mov esp, ebp
pop ebp
ret

Function at 0x403460
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 0x4034bc
test ecx, ecx
je 0x4034bc
push eax
push 0
push edx
push ecx
push 0
push 0
call fcn.0045147e
add esp, 0x18
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
ret 0x18
Function at 0x403b00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push esi
push edi
push 0x1418
call fcn.0043bf30
mov esi, eax
add esp, 4
test esi, esi
je 0x403b6e
mov eax, dword [ebp + 8]
push 0x1000
lea edi, [esi + 4]
push 0
push edi
mov dword [esi], eax
mov dword [esi + 0x1414], 1
call fcn.0044efc0
mov eax, dword [ebp + 0xc]
add esp, 0xc
test eax, eax
je 0x403b56
push 0x800
push eax
push edi
call fcn.0044ff5b
add esp, 0xc
push 0x410
lea ecx, [esi + 0x1004]
push 0
push ecx
call fcn.0044efc0
add esp, 0xc
jmp 0x403b70
xor esi, esi
xor eax, eax
mov edx, 0x403be0
mov edi, vtable.CSimpleThread.0
mov dword [esp + 8], edi
mov dword [esp + 0x20], 0x403be0
mov dword [esp + 0x24], esi
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 0x403bc5
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x403be0
push 0
push 0
call fcn.0045147e
add esp, 0x18
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
test eax, eax
je 0x403bd4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
sub esp, 0x414
mov eax, dword [0x486d80]
xor eax, esp
mov dword [esp + 0x410], eax
cmp word [esi], 0
mov eax, dword [esp + 0x418]
je 0x403d06
test eax, eax
je 0x403cac
cmp word [eax], 0
je 0x403cac
push 0
push 0
push eax
push esi
push 0
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jl 0x403d06
mov eax, 1
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.0044efac
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.0044efc0
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 0x403d06
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.0044efac
add esp, 0x414
ret 4
mov ecx, dword [esp + 0x410]
xor ecx, esp
xor eax, eax
call fcn.0044efac
add esp, 0x414
ret 4

Function at 0x404800
Capabilities:
Check if file exists

Disassembly:
push ecx
push esi
call fcn.004048a0
test eax, eax
jne 0x404841
mov esi, dword [esp + 0xc]
test esi, esi
je 0x40483c
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404841
push esi
call fcn.00404920
add esp, 4
test eax, eax
jne 0x404841
push 1
call fcn.0044eb40
push eax
push esi
call fcn.0044ed50
add esp, 0xc
xor eax, eax
pop esi
pop ecx
ret
mov eax, 1
pop esi
pop ecx
ret

Function at 0x404850
Capabilities:
Check if file exists

Disassembly:
push ecx
push esi
call fcn.004048a0
mov esi, dword [esp + 0xc]
test eax, eax
jne 0x404893
test esi, esi
je 0x40488c
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404893
push esi
call fcn.00404920
add esp, 4
test eax, eax
jne 0x404893
push 1
call fcn.0044eb40
push eax
push esi
call fcn.0044ed50
add esp, 0xc
xor eax, eax
pop esi
pop ecx
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
pop ecx
ret 4
Function at 0x4049f0
Capabilities:
Check if file exists

Disassembly:
cmp dword [0x48a244], 0
jne 0x4049fe
jmp fcn.00404850
push esi
call fcn.004048a0
mov esi, dword [esp + 8]
test eax, eax
jne 0x404a24
test esi, esi
je 0x404a2f
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404a24
push esi
call fcn.00404920
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 0x4074c0
Capabilities:
Access peb ldr_data
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x46c73b
mov eax, dword fs:[0]
push eax
mov eax, 0x1014
call fcn.0044fef0
mov eax, dword [0x486d80]
xor eax, esp
mov dword [esp + 0x1010], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x486d80]
xor eax, esp
push eax
lea eax, [esp + 0x1028]
mov dword fs:[0], eax
mov esi, ecx
lea ebp, [esi + 0x13c]
push 0x4788e0
xor ebx, ebx
mov eax, ebp
call fcn.00402bd0
lea eax, [esi + 0x138]
push 0x4788e0
mov dword [esp + 0x24], eax
call fcn.00402bd0
mov eax, dword [0x488d58]
mov edx, dword [eax + 0xc]
mov ecx, 0x488d58
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
push 0x800
lea eax, [esp + 0x28]
push ebx
push eax
mov dword [esp + 0x103c], ebx
call fcn.0044efc0
mov eax, dword [esi + 0x134]
mov ecx, dword [esi + 0x130]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [esi + 0xfc]
push ecx
mov ebx, 1
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x4075c6
lea eax, [edi - 0x10]
mov dword [esp + 0x1030], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4075bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4076b1
cmp dword [esp + 0x18], ebx
jne 0x407598
cmp word [esp + 0x24], 0
je 0x407598
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x24]
push ecx
call ebx
test eax, eax
jne 0x407602
lea eax, [edi - 0x10]
mov dword [esp + 0x1030], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4075b3
lea edx, [esp + 0x24]
lea edi, [esp + 0x14]
call fcn.00402b30
mov ecx, dword [esi + 0x11c]
mov edi, dword [esp + 0x14]
push ecx
push edi
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x24]
push eax
call ebx
test eax, eax
jne 0x40765c
mov ecx, dword [esi + 0x118]
push ecx
push edi
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x24]
push eax
call ebx
test eax, eax
jne 0x40765c
lea ecx, [esp + 0x14]
call fcn.00402b10
xor eax, eax
jmp 0x4076b1
push 0x800
lea ecx, [esp + 0x828]
push 0
push ecx
call fcn.0044efc0
add esp, 0xc
mov ecx, 0x400
lea edi, [esp + 0x824]
lea esi, [esp + 0x24]
call fcn.0040dcc0
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x14]
call fcn.00402b70
lea edx, [esp + 0x824]
mov edi, ebp
call fcn.00402b30
lea ecx, [esp + 0x14]
call fcn.00402b10
mov eax, 1
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.0044efac
add esp, 0x1020
ret
Function at 0x408090
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46c98b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x100c
call fcn.0044fef0
mov eax, dword [0x486d80]
xor eax, esp
mov dword [esp + 0x1008], eax
push esi
mov eax, dword [0x486d80]
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.0044efc0
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.0044efc0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0x400
lea ecx, [esp + 0x814]
push ecx
push 0x478ed4
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.004081c0
lea eax, [esp + 8]
push eax
mov dword [esp + 0x1024], 0
call fcn.004053e0
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 0x408195
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.0044efac
mov esp, ebp
pop ebp
ret 4

Function at 0x408b40
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 0x408b57
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408b88
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x408b84
cmp esi, eax
jae 0x408b88
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x408b74
cmp esi, eax
jb 0x408b8e
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
Function at 0x40a140
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x46c658
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x486d80]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebx, ecx
mov ebp, dword [esp + 0x44]
mov eax, dword [0x48a4d8]
mov ecx, dword [eax + 8]
push 0x48a4d8
lea esi, [ebp + 4]
call ecx
mov edi, eax
test edi, edi
jne 0x40a18f
mov eax, 0x80004005
jmp 0x40a2aa
mov eax, dword [esi]
test eax, eax
je 0x40a19d
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esi], 0
mov ecx, dword [edi]
mov edx, dword [ecx + 0x78]
push esi
push edi
call edx
mov dword [esp + 0x44], eax
test eax, eax
jge 0x40a1b9
jmp 0x40a2aa
lea edi, [ebp + 8]
call fcn.0040a050
xor edi, edi
mov dword [ebp + 0x10], edi
mov eax, dword [esi]
cmp eax, edi
jne 0x40a1d6
push 0x80004003
call fcn.0043e880
mov ecx, dword [eax]
mov edx, dword [ecx + 0x4c]
push 0xffffffffffffffff
push eax
call edx
mov eax, dword [esi]
cmp eax, edi
jne 0x40a1f0
push 0x80004003
call fcn.0043e880
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push edi
push eax
call edx
mov eax, dword [ebx]
mov dword [esp + 0x18], edi
cmp eax, edi
je 0x40a207
mov eax, dword [eax]
jmp 0x40a209
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a276
mov ecx, ebx
lea edi, [esp + 0x1c]
call fcn.00404170
mov dword [esp + 0x3c], 2
mov edx, dword [esi]
test edx, edx
jne 0x40a237
push 0x80004003
call fcn.0043e880
mov ebx, dword [eax]
mov edi, dword [edx]
lea ecx, [esp + 0x18]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], ebx
mov ebx, dword [eax + 4]
mov dword [ecx + 4], ebx
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], eax
mov ecx, dword [edi + 0x30]
push edx
call ecx
lea edx, [esp + 0x1c]
push edx
mov edi, eax
mov dword [esp + 0x40], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x40a27a
mov edi, dword [esp + 0x44]
cmp word [esp + 0x18], 0
jne 0x40a290
mov dword [esp + 0x44], 0x80004005
mov edi, dword [esp + 0x44]
jmp 0x40a294
test edi, edi
jge 0x40a2a8
mov eax, dword [esi]
test eax, eax
je 0x40a2a8
mov dword [esi], 0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4