joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ac10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x4a02f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
push edi
je 0x40adbc
cmp byte [0x56e34b], 0
je 0x40adbc
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x210]
push 0x5c
push ecx
call fcn.00472454
add esp, 8
test eax, eax
je 0x40ac6e
xor edx, edx
mov word [eax + 2], dx
push str.debug_message.exe
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00472482
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x40ac91
mov edi, dword [esi]
jmp 0x40ac93
mov edi, esi
mov esi, dword [esi + 0x10]
xor ecx, ecx
mov word [ebp - 0x22c], cx
push edi
lea ecx, [ebp - 0x22c]
mov eax, esi
mov dword [ebp - 0x218], 7
mov dword [ebp - 0x21c], 0
call fcn.0041fa00
push esi
push edi
lea ebx, [ebp - 0x22c]
call fcn.00413320
add esp, 0xc
cmp dword [ebp - 0x21c], 0
jne 0x40acf3
cmp dword [ebp - 0x218], 8
jb 0x40adbc
mov edx, dword [ebp - 0x22c]
push edx
jmp 0x40adb4
push 0x44
lea eax, [ebp - 0x288]
push 0
push eax
call fcn.0046e0e0
mov eax, dword [ebp - 0x22c]
mov edi, 8
add esp, 0xc
mov dword [ebp - 0x288], 0x44
cmp dword [ebp - 0x218], edi
jae 0x40ad29
lea eax, [ebp - 0x22c]
lea ecx, [ebp - 0x23c]
push ecx
lea edx, [ebp - 0x288]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40ad7e
mov ecx, dword [ebp - 0x23c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x238]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x23c]
push eax
call esi
jmp 0x40ada5
mov eax, dword [ebp - 0x22c]
cmp dword [ebp - 0x218], edi
jae 0x40ad92
lea eax, [ebp - 0x22c]
push 0x40010
push str.Fatal_error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [ebp - 0x218], edi
jb 0x40adbc
mov ecx, dword [ebp - 0x22c]
push ecx
call fcn.0046d64b
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
Function at 0x40c0d0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
push eax
push ecx
mov dword [esp + 0xc], 0
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov esp, ebp
pop ebp
ret 4

Function at 0x40c100
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
push eax
push ecx
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esp, ebp
pop ebp
ret 4

Function at 0x40c130
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
lea eax, [esp + 8]
push eax
lea edx, [esp + 0x10]
push edx
mov edx, dword [ebp + 8]
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x18], 0
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [esp + 0x1c], 4
mov dword [esp + 0x20], 4
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c1a4
mov ecx, dword [esp + 4]
cmp ecx, 4
je 0x40c189
cmp ecx, 3
jne 0x40c19f
cmp dword [esp + 8], 4
jne 0x40c19f
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0xc]
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1010
call fcn.004703d0
mov eax, dword [0x4a02f0]
xor eax, esp
mov dword [esp + 0x100c], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
lea edx, [esp + 8]
push edx
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x14]
push edx
push 0
mov dword [esp + 0x18], 0
push eax
mov eax, dword [ecx]
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x40c2ca
mov eax, dword [esp + 0xc]
cmp eax, 1
jne 0x40c257
lea eax, [esp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c223
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.00402ed0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret 8
cmp eax, 2
jne 0x40c2c5
push 0x400
lea edx, [esp + 0x814]
push edx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 8], eax
test eax, eax
je 0x40c2aa
cmp eax, 0x400
ja 0x40c2aa
lea ecx, [esp + 0x810]
push ecx
mov ecx, edi
call fcn.00401fb0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret 8
mov eax, 0xea
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
xor ecx, esp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret 8
Function at 0x40c310
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
push edi
mov dword [esp + 0xc], 0
lea edi, [eax + 2]
jmp 0x40c330
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40c330
mov edx, dword [ebp + 8]
sub eax, edi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
mov eax, dword [ecx]
push esi
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40c360
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push esi
push 0x20019
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c3aa
push eax
push eax
push eax
push eax
push eax
push eax
push eax
lea edx, [ebp + 0xc]
push edx
push eax
push eax
push eax
mov dword [ebp + 0xc], eax
mov eax, dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ecx, dword [esi]
test eax, eax
je 0x40c3bf
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov word [esi + 8], ax
mov dword [esi], 0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
dec eax
mov dword [esi + 4], eax
test ecx, ecx
je 0x40c3f3
test eax, eax
js 0x40c3f3
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0
lea edx, [ebp + 0xc]
push edx
lea edx, [esi + 8]
push edx
push eax
push ecx
mov dword [ebp + 0xc], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40c3f9
xor eax, eax
mov word [esi + 8], ax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40de50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10004
call fcn.004703d0
mov eax, dword [0x4a02f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
call fcn.00405b60
mov esi, eax
test esi, esi
jne 0x40de8c
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
push esi
push 0x10000
lea eax, [ebp - 0x10004]
push 1
push eax
call fcn.00470cea
add esp, 0x10
test eax, eax
je 0x40ded5
test edi, edi
je 0x40deba
push eax
lea ecx, [ebp - 0x10004]
push ecx
mov ecx, edi
call fcn.00408e50
push esi
push 0x10000
lea edx, [ebp - 0x10004]
push 1
push edx
call fcn.00470cea
add esp, 0x10
test eax, eax
jne 0x40dea7
push esi
call fcn.00470a2c
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
Function at 0x40e000
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
cmp dword [eax + 0x14], 8
mov dword [esp + 4], 0
jb 0x40e019
mov eax, dword [eax]
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x40e03d
xor al, al
mov esp, ebp
pop ebp
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
je 0x40e037
mov eax, dword [esi + 4]
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi], eax
test eax, eax
je 0x40e037
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 8], eax
setne al
mov esp, ebp
pop ebp
ret
Function at 0x40f020
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a02f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x40f15a
cmp byte [edi + 0x49], bl
je 0x40f15a
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
jne 0x40f068
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x20], bl
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 8
cmp ecx, 0x10
jae 0x40f08a
lea eax, [ebp - 0x20]
mov byte [eax + 8], bl
push esi
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0xc]
mov edx, eax
cmp ebx, 0x10
jae 0x40f0a0
lea edx, [ebp - 0x20]
mov eax, edx
add edx, dword [ebp - 0x10]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x24]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x40f0df
dec eax
je 0x40f0e3
sub eax, 2
lea ecx, [ebp - 0x20]
je 0x40f142
call fcn.00401e90
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
mov ecx, eax
cmp ebx, 0x10
jae 0x40f0f3
lea ecx, [ebp - 0x20]
mov esi, dword [ebp - 0x24]
sub esi, ecx
je 0x40f11c
cmp ebx, 0x10
jae 0x40f102
lea eax, [ebp - 0x20]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00473669
add esp, 0x10
cmp esi, eax
jne 0x40f13a
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
cmp byte [edi + 0x49], 0
je 0x40f13f
test esi, esi
jne 0x40f094
push esi
push 8
lea ecx, [ebp - 0x20]
call fcn.00408f70
jmp 0x40f08e
lea ecx, [ebp - 0x20]
jmp 0x40f0c7
lea ecx, [ebp - 0x20]
call fcn.00401e90
pop esi
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
Function at 0x40fea0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4a02f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x56e380], 0
je 0x40fec9
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
push 0x24
call fcn.0046e1e3
add esp, 4
test eax, eax
je 0x40fee7
push 0
mov ecx, eax
call fcn.0040fd50
mov dword [0x56e380], eax
jmp 0x40fef1
mov dword [0x56e380], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
mov word [ebp - 0x20], cx
mov ecx, eax
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40ff11
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.00402ed0
mov ecx, dword [0x56e380]
lea edx, [ebp - 0x20]
push edx
call fcn.00410bf0
cmp dword [ebp - 0xc], 8
pop esi
jb 0x40ff4c
mov eax, dword [ebp - 0x20]
push eax
call fcn.0046d64b
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret

Function at 0x410bf0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x4a02f0]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
push edi
xor esi, esi
mov dword [esp + 0xc], esi
lea edx, [esp + 0x10]
mov edi, ecx
mov ecx, dword [ebp + 8]
xor eax, eax
push edx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], esi
mov word [esp + 0x14], ax
call fcn.00412250
add esp, 4
cmp dword [esp + 0x20], esi
je 0x410c6c
cmp dword [esp + 0x24], 8
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], esi
jae 0x410c4a
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, dword [esp + 0xc]
mov esi, eax
push edx
push edi
mov ecx, esi
call fcn.00410000
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x24], 8
jb 0x410c80
mov eax, dword [esp + 0x10]
push eax
call fcn.0046d64b
add esp, 4
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor ecx, esp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret 4
Function at 0x412e80
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x150
mov eax, dword [0x4a02f0]
xor eax, esp
mov dword [esp + 0x14c], eax
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
push edi
mov dword [esi], ebx
mov dword [esi + 0x18], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process
push str.kernel32.dll
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x412ed2
xor eax, eax
jmp 0x412ef2
lea ecx, [esp + 8]
push ecx
push edi
mov dword [esp + 0x10], ebx
call eax
test eax, eax
jne 0x412ee9
mov eax, 2
jmp 0x412ef2
xor eax, eax
cmp dword [esp + 8], ebx
setne al
push 0x118
lea edx, [esp + 0x38]
push ebx
push edx
mov dword [esi + 0x24], eax
mov dword [esp + 0x3c], 0x11c
call fcn.0046e0e0
add esp, 0xc
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
cmp eax, 5
jne 0x412f46
cmp ecx, ebx
jle 0x412f72
xor eax, eax
cmp ecx, 1
setne al
inc eax
mov dword [esi], eax
jmp 0x412f72
cmp eax, 6
jne 0x412f6a
sub ecx, ebx
je 0x412f62
dec ecx
je 0x412f5a
mov dword [esi], 5
jmp 0x412f72
mov dword [esi], 4
jmp 0x412f72
mov dword [esi], 3
jmp 0x412f72
jle 0x412f72
mov dword [esi], 6
movzx ecx, word [esp + 0x144]
movzx edx, word [esp + 0x146]
xor eax, 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 + 0xc]
push eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [esp + 0xc]
cmp eax, ebx
je 0x412fde
cmp eax, 6
je 0x412fd5
cmp eax, 9
jne 0x412fe1
mov dword [esi + 0x18], 1
jmp 0x412fe1
mov dword [esi + 0x18], 2
jmp 0x412fe1
mov dword [esi + 0x18], ebx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x154]
pop edi
pop ebx
xor ecx, esp
mov dword [esi + 0x20], edx
mov eax, esi
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
Function at 0x413a70
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, dword [0x4a02f0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 0x265], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, edi
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp + 8]
push edi
push 2
mov dword [ebp - 0x264], 0x49b79c
mov byte [ebp - 0x25c], 0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0xffffffffffffffff
xor ecx, ecx
push edi
mov word [ebp - 0x28], cx
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x264], 0x49c534
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], edi
call fcn.00402710
lea esi, [ebp - 0x264]
call fcn.0041fc50
mov ebx, eax
cmp ebx, edi
je 0x413bac
mov dword [ebp - 0x27c], edi
mov dword [ebp - 0x278], edi
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push 0
push 0x3e8
push edx
push eax
call fcn.0046f500
mov esi, eax
mov edi, edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x26c]
xor ecx, ecx
sub esi, eax
sbb edi, ecx
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x270], edi
js 0x413b50
jg 0x413b48
test esi, esi
je 0x413b50
lea edi, [ebp - 0x274]
jmp 0x413b56
lea edi, [ebp - 0x27c]
mov edx, dword [ebx + 8]
push edx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov eax, dword [edi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x265], 0
je 0x413b90
mov byte [ebp - 0x265], 1
test edi, edi
je 0x413b97
mov byte [ebp - 0x265], 0
lea esi, [ebp - 0x264]
call fcn.0041fc50
mov ebx, eax
test ebx, ebx
jne 0x413b0a
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x264], 0x49c534
jb 0x413bc8
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0046d64b
add esp, 4
mov eax, dword [ebp - 0x260]
xor edx, edx
push eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], dx
mov dword [ebp - 0x264], 0x49b79c
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov al, byte [ebp - 0x265]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
Function at 0x414970
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get program files directory
Initialize iwebbrowser2
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44c
mov eax, dword [0x4a02f0]
xor eax, esp
mov dword [esp + 0x448], eax
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x42]
push ecx
mov word [esp + 0x44], ax
call fcn.0046e0e0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x256]
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0x208
mov word [esp + 0x258], dx
call fcn.0046e0e0
add esp, 0x18
push 0
push 0x26
lea ecx, [esp + 0x248]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [esp + 0x240]
push edx
lea eax, [esp + 0x3c]
push str._sInternet_Exploreriexplore.exe
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
lea ecx, [esp + 0x38]
push ecx
call esi
test eax, eax
jne 0x414a46
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x49b4f8
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea edx, [esp + 0x38]
push edx
call esi
test eax, eax
jne 0x414a46
mov word [esp + 0x38], ax
lea eax, [esp + 0x38]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414a50
sub eax, edx
sar eax, 1
je 0x414a99
push 0xa
push 0
push str.http:__chrome.360.cn_
lea ecx, [esp + 0x44]
push ecx
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, 1
pop esi
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
lea edx, [esp + 8]
push edx
push 0x496a8c
push 0x15
push 0
push 0x496a7c
mov dword [esp + 0x1c], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x414ad3
xor eax, eax
pop esi
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 8]
test eax, eax
je 0x414b64
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x94]
call eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x414b13
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [esp + 0xc]
push 1
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push str.http:__chrome.360.cn_
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
xor edx, edx
mov word [esp + 0x18], dx
lea edx, [esp + 0x18]
push edx
push edx
mov esi, eax
push edx
push edx
mov eax, 8
mov word [esp + 0x38], ax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x38]
mov dword [esp + 0x40], esi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xd0]
call eax
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [esp + 0x44c]
pop esi
xor ecx, esp
mov eax, 1
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
Function at 0x414b80
Capabilities:
Check if file exists
Get common file path
Get program files directory
Initialize iwebbrowser2
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4a02f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0046e0e0
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x412]
push eax
mov dword [ebp - 0x41c], 1
mov dword [ebp - 0x420], 0x208
mov word [ebp - 0x414], dx
call fcn.0046e0e0
add esp, 0x18
push 0
push 0x26
lea ecx, [ebp - 0x414]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x20c]
push str._sInternet_Exploreriexplore.exe
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
call esi
test eax, eax
jne 0x414c61
lea edx, [ebp - 0x420]
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x41c]
push ecx
push 0x49b4f8
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea edx, [ebp - 0x20c]
push edx
call esi
test eax, eax
jne 0x414c61
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
pop esi
jmp 0x414c70
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414c70
sub eax, edx
sar eax, 1
jne 0x414cbc
lea ecx, [ebp - 0x418]
push ecx
push 0x496a8c
push 0x15
push 0
push 0x496a7c
mov dword [ebp - 0x418], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x414ccf
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x414ccf
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret

Function at 0x4174b0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
sub esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x4174c4
mov eax, dword [eax]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x4174e7
or eax, 0xffffffff
or edx, eax
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 4]
mov eax, dword [esp]
mov edx, ecx
test ecx, ecx
jg 0x417502
jl 0x4174fa
test eax, eax
jae 0x417502
or eax, 0xffffffff
mov edx, SysReAllocString
mov esp, ebp
pop ebp
ret