joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4631a0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x463243
test eax, eax
jbe 0x463243
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x463243
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x4631ee
xor esi, esi
jmp 0x4631f4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x46321f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00403990
add esi, eax
push esi
mov ebx, esi
call fcn.00403990
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x463200
pop ebp
test edi, edi
pop edi
jne 0x463243
test ebx, ebx
je 0x463243
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00468ff0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x463365
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x46347d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46347d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0047a1c6
mov esi, eax
test esi, esi
je 0x46347d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x46347d
mov ecx, esi
call fcn.004632f0
cmp edi, eax
jge 0x46347d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x463403
mov dword [esp + 0x34], 1
jmp 0x46345e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x46347d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004628a0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x47abb1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47abe9
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00478c0f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00478be7
jmp 0x47abf5
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47c37b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47c3bd
call fcn.0048273f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47c3bd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47c3b4
xor eax, eax
jmp 0x47c3c5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047c3cb
pop edi
pop esi
pop ebx
ret 4

Function at 0x482c6f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x482c9d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x482cbb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00482bd5
jmp 0x482cbb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x482cbb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00482bd5
test edi, edi
mov eax, edi
jne 0x482ca5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401aa0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov dword [ebp - 0x224], ecx
mov dword [ebp - 4], 1
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x224]
add eax, 0x2c
push eax
push 0x104
mov ecx, dword [ebp - 0x224]
add ecx, 0x852
push ecx
push 0
push str.ProductName
push str.Setup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x401b32
push 0x104
mov edx, dword [ebp - 0x224]
add edx, 0x852
push edx
push 0x6a
mov ecx, dword [ebp - 0x224]
call fcn.00401040
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [ebp - 0x224]
movzx ecx, word [eax + 0x852]
test ecx, ecx
jne 0x401b32
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x224]
add eax, 0x852
mov esp, ebp
pop ebp
ret

Function at 0x401b50
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov dword [ebp - 0x224], ecx
mov dword [ebp - 4], 1
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x224]
add eax, 0x2c
push eax
push 0x104
mov ecx, dword [ebp - 0x224]
add ecx, 0xa5a
push ecx
push 0
push str.ProductVersion
push str.Setup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x401bc0
push str.10.1.0
push 0x104
mov edx, dword [ebp - 0x224]
add edx, 0xa5a
push edx
call fcn.004016e0
mov eax, dword [ebp - 0x224]
add eax, 0xa5a
mov esp, ebp
pop ebp
ret

Function at 0x401bd0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x454688]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 4], 1
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x224]
add eax, 0x2c
push eax
push 0x209
mov ecx, dword [ebp - 0x224]
add ecx, 0x4b78
push ecx
push 0
push 0x4491a0
push str.PreRequisites
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x401c4f
push 0x4491e4
push 0x209
mov edx, dword [ebp - 0x224]
add edx, 0x4b78
push edx
call fcn.004016e0
jmp 0x401cdf
mov eax, dword [ebp - 0x224]
add eax, 0x1898
push eax
push 0x105
lea ecx, [ebp - 0x220]
push ecx
call fcn.004016e0
mov edx, dword [ebp - 0x224]
add edx, 0x4b78
push edx
push 0x105
lea eax, [ebp - 0x220]
push eax
call fcn.00401730
lea ecx, [ebp - 0x220]
push ecx
push 0x209
mov edx, dword [ebp - 0x224]
add edx, 0x4b78
push edx
call fcn.004016e0
mov eax, dword [ebp - 0x224]
add eax, 0x4b78
push eax
mov ecx, dword [ebp - 0x224]
call fcn.00403160
test eax, eax
jne 0x401cdf
push 0x4491f0
push 0x209
mov ecx, dword [ebp - 0x224]
add ecx, 0x4b78
push ecx
call fcn.004016e0
mov eax, dword [ebp - 0x224]
add eax, 0x4b78
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00429c7e
mov esp, ebp
pop ebp
ret
Function at 0x402f20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
ja case.default.0x402f4d
mov ecx, dword [ebp - 0x20]
jmp dword [ecx*4 + 0x403038]
mov dword [ebp - 0x14], SysStringLen
jmp 0x402f7f
mov dword [ebp - 0x14], SysStringLen
jmp 0x402f7f
mov dword [ebp - 0x14], reloc.OLEAUT32.dll_SysReAllocString
jmp 0x402f7f
mov dword [ebp - 0x14], SysStringLen
jmp 0x402f7f
mov dword [ebp - 0x14], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x18], 0x104
push 0x44949c
push 0x104
mov edx, dword [ebp + 0x14]
push edx
call fcn.0042a621
add esp, 0xc
cmp dword [ebp + 0x18], 0
jne 0x402fc7
lea eax, [ebp - 0x14]
push eax
push 0x20119
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
jmp 0x402fe3
lea eax, [ebp - 0x14]
push eax
push 0x20219
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0xff
mov dword [ebp - 4], 1
cmp dword [ebp - 8], 0
jne 0x403023
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x403023
mov dword [ebp - 0x10], 1
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4031d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x30], ecx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp + 8]
call fcn.00405390
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40320b
mov dword [ebp - 0x1c], 0
lea ecx, [ebp + 8]
call fcn.00401130
mov eax, dword [ebp - 0x1c]
jmp 0x40332d
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00429f5e
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x403237
mov dword [ebp - 0x20], 0
lea ecx, [ebp + 8]
call fcn.00401130
mov eax, dword [ebp - 0x20]
jmp 0x40332d
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
push ecx
lea ecx, [ebp + 8]
call fcn.00405390
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x40327e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0xc]
push edx
call fcn.00429e81
add esp, 4
mov dword [ebp - 0x24], 0
lea ecx, [ebp + 8]
call fcn.00401130
mov eax, dword [ebp - 0x24]
jmp 0x40332d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0x4494ac
mov edx, dword [ebp - 0xc]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40330f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp + 0xc]
mov word [edx], cx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
and ecx, 0xffff
mov edx, dword [ebp + 0x10]
mov word [edx], cx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp + 0x14]
mov word [edx], cx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
and ecx, 0xffff
mov edx, dword [ebp + 0x18]
mov word [edx], cx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00429e81
add esp, 4
mov dword [ebp - 0x28], 1
lea ecx, [ebp + 8]
call fcn.00401130
mov eax, dword [ebp - 0x28]
jmp 0x40332d
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00429e81
add esp, 4
mov dword [ebp - 0x2c], 0
lea ecx, [ebp + 8]
call fcn.00401130
mov eax, dword [ebp - 0x2c]
mov esp, ebp
pop ebp
ret 0x14

Function at 0x403340
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x454688]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0x114
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.0042cd90
add esp, 0xc
mov dword [ebp - 0x128], 0x114
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x124], 6
ja 0x4033bb
cmp dword [ebp - 0x124], 6
jne 0x4033af
cmp dword [ebp - 0x120], 2
ja 0x4033bb
mov dword [ebp - 0x130], 0
jmp 0x4033c5
mov dword [ebp - 0x130], 1
mov edx, dword [ebp - 0x130]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x4033db
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00429c7e
mov esp, ebp
pop ebp
ret
Function at 0x404b50
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440333
mov eax, dword fs:[0]
push eax
mov eax, 0x3e9c
call fcn.0042f1d0
mov eax, dword [0x454688]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3ea8], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
call fcn.0040d336
xor eax, eax
mov word [ebp - 0x3e94], ax
push 0x3e7e
push 0
lea ecx, [ebp - 0x3e92]
push ecx
call fcn.0042cd90
add esp, 0xc
mov edx, dword [ebp - 0x3ea8]
add edx, 0x2c
push edx
push 0x1f40
lea eax, [ebp - 0x3e94]
push eax
lea ecx, [ebp + 8]
call fcn.00405390
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov dword [ebp - 0x3e98], eax
mov dword [ebp - 0x3e9c], 0
mov ecx, dword [ebp - 0x3e9c]
cmp ecx, dword [ebp - 0x3e98]
jae 0x404c63
mov edx, dword [ebp - 0x3e9c]
lea eax, [ebp + edx*2 - 0x3e94]
mov dword [ebp - 0x3ea4], eax
push 0x1f40
mov ecx, dword [ebp - 0x3ea4]
push ecx
call fcn.0042a028
add esp, 8
mov edx, dword [ebp - 0x3e9c]
lea eax, [edx + eax + 1]
mov dword [ebp - 0x3e9c], eax
mov ecx, dword [ebp - 0x3ea4]
push ecx
lea ecx, [ebp - 0x3ea0]
call fcn.00404f10
mov byte [ebp - 4], 1
lea edx, [ebp - 0x3ea0]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.0040d3aa
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3ea0]
call fcn.00401130
jmp 0x404be8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401130
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00429c7e
mov esp, ebp
pop ebp
ret 8

Function at 0x404ce0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x454688]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x434], ecx
mov dword [ebp - 4], 1
mov dword [ebp - 0x21c], 0
push 0x44a134
push 0x105
lea eax, [ebp - 0x218]
push eax
call fcn.004016e0
mov ecx, dword [ebp - 0x434]
add ecx, 0x2c
push ecx
push 0x209
mov edx, dword [ebp - 0x434]
add edx, 0x2cf2
push edx
push 0
lea eax, [ebp - 0x218]
push eax
push str.Setup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x434]
add eax, 0x2cf2
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00429c7e
mov esp, ebp
pop ebp
ret

Function at 0x406150
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 1
cmp dword [ebp + 8], 0
jne 0x406172
jmp 0x4061b1
mov edx, dword [ebp + 8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4061b1
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov dword [ecx], 0
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x406340
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x406349
xor ecx, ecx
jne 0x406349
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x406390
mov eax, dword [ebp - 0xc]
jmp 0x4063ed
cmp dword [ebp - 4], 1
je 0x4063a3
cmp dword [ebp - 4], 2
je 0x4063a3
mov eax, 0xd
jmp 0x4063ed
cmp dword [ebp + 0xc], 0
je 0x4063e1
cmp dword [ebp - 8], 0
je 0x4063d9
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x4063d0
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x4063d7
mov eax, 0xd
jmp 0x4063ed
jmp 0x4063e1
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax], dx
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406d50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0x24], 0
push 0x44
push 0
lea eax, [ebp - 0x70]
push eax
call fcn.0042cd90
add esp, 0xc
mov dword [ebp - 0x70], 0x44
mov dword [ebp - 0x44], 1
mov ecx, 5
mov word [ebp - 0x40], cx
mov dword [ebp - 0x7c], 0xc
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x20], 0xc
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0xb0]
add ecx, 0x55c8
call fcn.00404fb0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x70]
push ecx
push 0
push 0
push 8
push 0
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x7c]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x406e29
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406e99
mov ecx, dword [ebp + 8]
push ecx
push 0x643
push 0x10
push 0
push 0x6c
lea ecx, [ebp - 0x94]
call fcn.00401060
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0xac], edx
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0xa4], ecx
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0xa0], edx
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x98], ecx
push 0x44fe98
lea edx, [ebp - 0xac]
push edx
call fcn.0042b7b2
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x408730
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0xc]
push eax
push str.SystemCurrentControlSetControlProductOptions
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x408783
jmp 0x408841
lea ecx, [ebp - 8]
push ecx
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0x4485e4
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4087ad
cmp dword [ebp - 8], 0
jne 0x4087b7
jmp 0x408841
mov ecx, dword [ebp - 8]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4087d0
jmp 0x408841
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push str.ProductSuite
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4087fc
cmp dword [ebp - 4], 7
je 0x408800
jmp 0x408841
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
movsx edx, byte [ecx]
test edx, edx
je 0x408841
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40882b
mov dword [ebp - 0x14], 1
jmp 0x408841
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x1c]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x1c], edx
jmp 0x408806
cmp dword [ebp - 0x18], 0
je 0x408851
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xc], 0
je 0x408861
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 4
Function at 0x40b000
Capabilities:
Check if file exists
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x654
mov eax, dword [0x454688]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x654], ecx
movzx eax, word [ebp + 8]
test eax, eax
je 0x40b02f
movzx ecx, word [ebp + 8]
cmp ecx, 0x409
jne 0x40b036
xor eax, eax
jmp 0x40b1d4
push 0x55
lea edx, [ebp - 0x2c0]
push edx
push 0x5a
movzx eax, word [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x40b059
xor ecx, ecx
mov word [ebp - 0x2c0], cx
push 0x55
lea edx, [ebp - 0x378]
push edx
push 0x59
movzx eax, word [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x40b07c
xor ecx, ecx
mov word [ebp - 0x378], cx
mov ecx, 6
mov esi, str.resSetup.dll
lea edi, [ebp - 0x394]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x104
lea edx, [ebp - 0x210]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov dword [ebp - 0x2c4], 0
movzx ecx, word [ebp - 0x378]
test ecx, ecx
je 0x40b1ba
movzx edx, word [ebp - 0x2c0]
test edx, edx
je 0x40b168
lea eax, [ebp - 0x378]
push eax
push 0x55
lea ecx, [ebp - 0x650]
push ecx
call fcn.0042a621
add esp, 0xc
push 0x4476a4
push 0x55
lea edx, [ebp - 0x650]
push edx
call fcn.0042a8c0
add esp, 0xc
lea eax, [ebp - 0x2c0]
push eax
push 0x55
lea ecx, [ebp - 0x650]
push ecx
call fcn.0042a8c0
add esp, 0xc
lea edx, [ebp - 0x650]
push edx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x5a0]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x394]
push edx
lea eax, [ebp - 0x5a0]
push eax
lea ecx, [ebp - 0x5a0]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x5a0]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x2c4], eax
cmp dword [ebp - 0x2c4], 0
jne 0x40b1ba
lea eax, [ebp - 0x378]
push eax
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x5a0]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x394]
push eax
lea ecx, [ebp - 0x5a0]
push ecx
lea edx, [ebp - 0x5a0]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x5a0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x2c4], eax
cmp dword [ebp - 0x2c4], 0
je 0x40b1d2
lea ecx, [ebp - 0x5a0]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x40b1d4
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00429c7e
mov esp, ebp
pop ebp
ret 4