joyce8/EMBER2024-capa huggingface dataset:
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.00448770
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.0045cc9c
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 [0x494db8]
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.0045bbec
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.0045bc00
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.0045bbec
add esp, 0x414
ret 4
mov ecx, dword [esp + 0x410]
xor ecx, esp
xor eax, eax
call fcn.0045bbec
add esp, 0x414
ret 4
Function at 0x401cc0
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4782e8
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x494db8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
test edi, edi
je 0x401db7
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401db7
push edi
call fcn.00402030
add esp, 4
test eax, eax
je 0x401db7
mov eax, dword [0x496df8]
mov edx, dword [eax + 0xc]
mov ecx, 0x496df8
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x1c], 0
call fcn.004010f0
mov esi, dword [esp + 0x28]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, dword [esp + 0x20]
add edi, 0x37c
lea eax, [esp + 0x24]
call fcn.00401e10
mov eax, dword [edi]
push eax
call fcn.00448990
mov edi, dword [edi]
add esp, 4
push 4
push 0
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
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 0x401da0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8

Function at 0x402030
Capabilities:
Check if file exists

Disassembly:
push ecx
push esi
call fcn.00401ee0
test eax, eax
jne 0x402071
mov esi, dword [esp + 0xc]
test esi, esi
je 0x40206c
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402071
push esi
call fcn.00401f60
add esp, 4
test eax, eax
jne 0x402071
push 1
call fcn.0045b750
push eax
push esi
call fcn.0045b960
add esp, 0xc
xor eax, eax
pop esi
pop ecx
ret
mov eax, 1
pop esi
pop ecx
ret

Function at 0x4023b0
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 0x4023c7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4023f8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4023f4
cmp esi, eax
jae 0x4023f8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x4023e4
cmp esi, eax
jb 0x4023fe
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 0x402aa0
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4782e8
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x494db8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
test esi, esi
je 0x402b72
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402b72
push esi
call fcn.00402030
add esp, 4
test eax, eax
je 0x402b72
mov eax, dword [0x496df8]
mov edx, dword [eax + 0xc]
mov ecx, 0x496df8
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x1c], 0
call fcn.004010f0
mov ebx, dword [esp + 0x28]
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [esp + 0x20]
lea edi, [esi + 8]
lea eax, [esp + 0x24]
call fcn.00401e10
mov eax, dword [edi]
push eax
call fcn.00402e70
mov dword [esi + 0x10], eax
test eax, eax
jne 0x402b89
lea eax, [ebx - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402b72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
mov dword [0x4982d8], eax
mov ecx, dword [esi + 0x10]
push str.GetMiniUI4
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x402bac
lea ecx, [esp + 0x24]
call fcn.00401df0
jmp 0x402b72
call eax
mov edx, dword [edi]
push 4
push 0
push edx
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [esp + 0x24]
call fcn.00401df0
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8

Function at 0x402e20
Capabilities:
Check if file exists

Disassembly:
push ecx
push esi
call fcn.00401ee0
mov esi, dword [esp + 0xc]
test eax, eax
jne 0x402e63
test esi, esi
je 0x402e5c
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402e63
push esi
call fcn.00401f60
add esp, 4
test eax, eax
jne 0x402e63
push 1
call fcn.0045b750
push eax
push esi
call fcn.0045b960
add esp, 0xc
xor eax, eax
pop esi
pop ecx
ret 4
push esi
call sub.KERNEL32.dll_LoadLibraryW
pop esi
pop ecx
ret 4

Function at 0x402e70
Capabilities:
Check if file exists

Disassembly:
cmp dword [0x4982d4], 0
jne 0x402e7e
jmp fcn.00402e20
push esi
call fcn.00401ee0
mov esi, dword [esp + 8]
test eax, eax
jne 0x402ea4
test esi, esi
je 0x402eaf
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402ea4
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 0x403070
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x494db8]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x218]
cmp dword [eax + 8], 5
jne 0x403123
cmp dword [eax + 0xc], 1
jb 0x403123
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.0045bc00
add esp, 0xc
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push str.CSDVersion
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x403123
lea edx, [esp + 8]
push str.Service_Pack_2
push edx
call fcn.0045ca28
add esp, 8
test eax, eax
jl 0x403123
mov eax, 1
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0045bbec
add esp, 0x214
ret 4
mov ecx, dword [esp + 0x210]
xor ecx, esp
xor eax, eax
call fcn.0045bbec
add esp, 0x214
ret 4

Function at 0x403140
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push esi
lea ecx, [esp + 0xc]
push ecx
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x40318a
mov edx, dword [esp]
push edx
push esi
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4031c6
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403190
sub eax, edx
sar eax, 1
mov dword [esp], eax
cmp word [esi + eax*2 - 2], 0x5c
je 0x4031bd
mov ecx, 0x5c
mov word [esi + eax*2], cx
mov eax, dword [esp]
xor edx, edx
mov word [esi + eax*2 + 2], dx
mov eax, 1
add esp, 8
ret
xor eax, eax
add esp, 8
ret

Function at 0x4031d0
Capabilities:
Get file version info

Disassembly:
mov eax, 0x2010
call fcn.0045cb30
mov eax, dword [0x494db8]
xor eax, esp
mov dword [esp + 0x200c], eax
push 0x1fff
lea eax, [esp + 0x11]
push 0
push eax
mov byte [esp + 0x18], 0
call fcn.0045bc00
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x403269
cmp eax, 0x1fff
ja 0x403269
lea edx, [esp + 0xc]
push edx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x403269
lea eax, [esp + 8]
push eax
lea ecx, [esp + 4]
push ecx
push 0x484358
lea edx, [esp + 0x18]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x403269
mov eax, dword [esp]
movzx ecx, word [eax + 0xa]
mov dword [edi], ecx
mov eax, 1
mov ecx, dword [esp + 0x200c]
xor ecx, esp
call fcn.0045bbec
add esp, 0x2010
ret
mov ecx, dword [esp + 0x200c]
xor ecx, esp
xor eax, eax
call fcn.0045bbec
add esp, 0x2010
ret
Function at 0x4033d0
Capabilities:
Check os version

Disassembly:
sub esp, 0x144
mov eax, dword [0x494db8]
xor eax, esp
mov dword [esp + 0x140], eax
mov eax, dword [0x496474]
test eax, eax
jl 0x40340d
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0045bbec
add esp, 0x144
ret 4
xor eax, eax
push esi
push 0x11c
push eax
lea edx, [esp + 0x30]
push edx
mov dword [0x496474], 0
mov dword [esp + 0x10], 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 dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call fcn.0045bc00
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], 0x11c
call esi
test eax, eax
jne 0x40347d
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], 0x114
call esi
test eax, eax
je 0x4034d1
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4034d1
lea edx, [esp + 4]
push edx
call eax
mov eax, dword [esp + 4]
cmp ax, 9
je 0x4034af
cmp ax, 6
jne 0x4034d1
mov eax, 1
mov dword [0x496474], eax
pop esi
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0045bbec
add esp, 0x144
ret 4
mov ecx, dword [esp + 0x144]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0045bbec
add esp, 0x144
ret 4
Function at 0x406100
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x477f7b
mov eax, dword fs:[0]
push eax
mov eax, 0x1014
call fcn.0045cb30
mov eax, dword [0x494db8]
xor eax, esp
mov dword [esp + 0x1010], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x494db8]
xor eax, esp
push eax
lea eax, [esp + 0x1028]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x158]
push 0x484624
xor ebx, ebx
mov dword [esp + 0x20], eax
call fcn.00402230
lea eax, [esi + 0x154]
push 0x484624
mov dword [esp + 0x24], eax
call fcn.00402230
mov eax, dword [0x496df8]
mov edx, dword [eax + 0xc]
mov ecx, 0x496df8
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.0045bc00
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00407260
test eax, eax
jne 0x4061d9
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
jg 0x4061d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x406335
lea eax, [esp + 0x24]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4061e0
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.0045bc00
mov esi, dword [esi + 0x138]
mov ebp, dword [esp + 0x24]
add esp, 0xc
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push ebp
lea eax, [esp + 0x2c]
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x24]
push ecx
call edi
test eax, eax
je 0x406257
mov ecx, 0x400
lea edi, [esp + 0x824]
lea esi, [esp + 0x24]
call fcn.0040ed40
jmp 0x4062d0
push str.safemon360tray.exe
push ebp
lea edx, [esp + 0x2c]
push edx
call esi
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
jne 0x40628f
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
jmp 0x4061c6
lea eax, [esp + 0x824]
mov esi, str.1.0.0.1001
mov ecx, eax
mov edx, 0x400
sub esi, ecx
lea ecx, [edx + 0x7ffffbfe]
test ecx, ecx
je 0x4062c4
movzx ecx, word [esi + eax]
test cx, cx
je 0x4062c4
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4062a4
jmp 0x4062c8
test edx, edx
jne 0x4062cb
sub eax, 2
xor edx, edx
mov word [eax], dx
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x18]
call fcn.00401e10
lea eax, [esp + 0x824]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4062e7
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x824]
mov ebx, eax
mov eax, dword [esp + 0x1c]
push ecx
call fcn.00402230
lea eax, [ebp - 0x10]
mov dword [esp + 0x1030], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406330
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.0045bbec
add esp, 0x1020
ret
Function at 0x406fb0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47888b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x100c
call fcn.0045cb30
mov eax, dword [0x494db8]
xor eax, esp
mov dword [esp + 0x1008], eax
push esi
mov eax, dword [0x494db8]
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.0045bc00
mov esi, dword [esi + 0x154]
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.0045bc00
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0x400
lea ecx, [esp + 0x814]
push ecx
push 0x4848a4
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.00402700
lea eax, [esp + 8]
push eax
mov dword [esp + 0x1024], 0
call fcn.00403960
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 0x4070b5
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.0045bbec
mov esp, ebp
pop ebp
ret 4

Function at 0x4070e0
Capabilities:
Check os version

Disassembly:
sub esp, 0x144
mov eax, dword [0x494db8]
xor eax, esp
mov dword [esp + 0x140], eax
xor eax, eax
push esi
push 0x11c
push eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 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 dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push eax
mov dword [0x496528], 0
call fcn.0045bc00
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], 0x11c
call esi
test eax, eax
jne 0x407164
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], 0x114
call esi
test eax, eax
je 0x4071b6
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4071b6
lea ecx, [esp + 4]
push ecx
call eax
mov eax, dword [esp + 4]
cmp ax, 9
je 0x407196
cmp ax, 6
jne 0x4071b6
mov eax, 1
mov dword [0x496528], eax
pop esi
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0045bbec
add esp, 0x144
ret
mov ecx, dword [esp + 0x144]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0045bbec
add esp, 0x144
ret
Function at 0x4071d0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ecx
mov eax, dword [0x496528]
test eax, eax
jl 0x4071e5
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
jmp 0x4071ea
call fcn.004070e0
test eax, eax
jne 0x407207
lea edx, [esp]
push edx
mov dword [esp + 4], eax
call fcn.004038d0
add esp, 4
neg eax
sbb eax, eax
and eax, dword [esp]
pop ecx
ret
push 4
lea eax, [esp + 4]
push eax
push 4
push str.QIBegin
push str.SOFTWARE360Safe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 1
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
jne 0x40724a
push str.QIBegin
push str.SOFTWARE360Safe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
xor eax, eax
pop ecx
ret
mov eax, 1
pop ecx
ret
Function at 0x409020
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40908e
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x40905f
cmp eax, 2
jne 0x40907a
mov eax, dword [esp]
test esi, esi
je 0x409088
test eax, eax
je 0x409083
test al, 1
jne 0x40907a
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x409088
mov eax, 0xd
pop ecx
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8

Function at 0x40a6a0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x477468
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x494db8]
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 [0x498640]
mov ecx, dword [eax + 0xc]
push 0x498640
lea esi, [ebp + 4]
call ecx
mov edi, eax
test edi, edi
jne 0x40a6ef
mov eax, 0x80004005
jmp 0x40a80a
mov eax, dword [esi]
test eax, eax
je 0x40a6fd
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 0x40a719
jmp 0x40a80a
lea edi, [ebp + 8]
call fcn.0040a5b0
xor edi, edi
mov dword [ebp + 0x10], edi
mov eax, dword [esi]
cmp eax, edi
jne 0x40a736
push 0x80004003
call fcn.0044b560
mov ecx, dword [eax]
mov edx, dword [ecx + 0x4c]
push 0xffffffffffffffff
push eax
call edx
mov eax, dword [esi]
cmp eax, edi
jne 0x40a750
push 0x80004003
call fcn.0044b560
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 0x40a767
mov eax, dword [eax]
jmp 0x40a769
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a7d6
mov ecx, ebx
lea edi, [esp + 0x1c]
call fcn.00402580
mov dword [esp + 0x3c], 2
mov edx, dword [esi]
test edx, edx
jne 0x40a797
push 0x80004003
call fcn.0044b560
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 0x40a7da
mov edi, dword [esp + 0x44]
cmp word [esp + 0x18], 0
jne 0x40a7f0
mov dword [esp + 0x44], 0x80004005
mov edi, dword [esp + 0x44]
jmp 0x40a7f4
test edi, edi
jge 0x40a808
mov eax, dword [esi]
test eax, eax
je 0x40a808
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
Function at 0x40a9a0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x478bbe
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x494db8]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
mov dword [edi], vtable.CSetupBaseCall.0
mov eax, dword [0x496df8]
mov edx, dword [eax + 0xc]
mov ecx, 0x496df8
call edx
add eax, 0x10
mov dword [edi + 4], eax
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [0x496df8]
mov edx, dword [eax + 0xc]
mov ecx, 0x496df8
call edx
add eax, 0x10
mov dword [edi + 8], eax
mov eax, 1
mov byte [esp + 0x1c], al
lea esi, [edi + 0x18]
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [esi + 8], eax
lea eax, [esi + 0xc]
push eax
mov dword [esp + 0x14], esi
mov dword [esi], vtable.CINIReader.0
call fcn.00416e20
mov byte [esp + 0x1c], 2
mov dword [esi + 0x30], vtable.CFileInfo.0
mov eax, dword [0x496df8]
mov edx, dword [eax + 0xc]
mov ecx, 0x496df8
call edx
add eax, 0x10
mov dword [esi + 0x38], eax
xor eax, eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
lea eax, [edi + 0x78]
push eax
mov byte [esp + 0x20], 3
call fcn.00407a90
lea ecx, [edi + 0x94]
push ecx
mov dword [edi + 0x90], vtable._BaseModule::CCriticalSection.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4