joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b7a0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b0858
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x44b7d9
inc eax
mov dword [esi + 0x10], eax
jmp 0x44b8ec
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x44b7ed
mov eax, 0xffffffc7
jmp 0x44b8ee
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x44b7fe
cmp dword [esi + 8], eax
jne 0x44b7ed
cmp dword [esi + 8], eax
jne 0x44b817
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x44b817
mov eax, 0xffffffc7
jmp 0x44b8ee
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x44b82b
push eax
mov ecx, ebx
call fcn.0044afd0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.004165f0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x44b85c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00416610
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0044a740
test eax, eax
mov dword [esp + 0x38], eax
je 0x44b88f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4c8d48
call fcn.004167f0
mov eax, dword [esp + 0x38]
jmp 0x44b8ee
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0044b600
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x44b8d3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0044b620
mov esi, eax
test esi, esi
jne 0x44b903
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0044b600
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x44b8a5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4c8d48
call fcn.004167f0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4c8d48
call fcn.004167f0
mov eax, esi
jmp 0x44b8ee

Function at 0x450360
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4503c0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4503c0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4503c0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4503c0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x450400
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x45c120
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b1148
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004a72f6
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0045ba80
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004a7224
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004a3a0e
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004a3a0e
push 1
push 0
push 0
mov ecx, esi
call fcn.004a39b6
push 1
push 0
push 1
mov ecx, esi
call fcn.004a39b6
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004a7368
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x45c2a0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b1168
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004a72f6
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0045ba80
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004a7224
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x45c364
cmp dword [esp + 0x40], 1
jne 0x45c362
cmp ecx, eax
jge 0x45c364
mov eax, ecx
cmp eax, 0xc8
jge 0x45c370
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0045c120
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004a7368
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x45cb60
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b1213
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004a1e2b
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004a759e
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004a8b39
test eax, eax
je 0x45cc7c
mov ecx, dword [esp + 0x3c]
call fcn.004a75cb
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x45cc40
push edi
mov ecx, esi
call fcn.004a4b8d
mov ecx, esi
call fcn.0045ce20
cmp dword [esp + 0x38], 1
jne 0x45cc75
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004a4cf7
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x45ee60
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x45ee93
push esi
call fcn.0046d220
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45ee8c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x45ef19
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x45ef02
mov eax, dword [esi + 8]
test eax, eax
je 0x45eeb7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45eefe
cmp eax, 2
je 0x45ef02
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45eeaa
cmp eax, 3
je 0x45eedd
cmp eax, 1
jne 0x45eeaa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45eeaa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45eeaa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0045ef40
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x45ef28
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0045ef40
add esp, 4
pop esi
ret

Function at 0x45f7c0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x45f7e1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x45f7e1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x45f7e1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x47ac00
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 0x47aca3
test eax, eax
jbe 0x47aca3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x47aca3
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 0x47ac4e
xor esi, esi
jmp 0x47ac54
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x47ac7f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00417040
add esi, eax
push esi
mov ebx, esi
call fcn.00417040
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x47ac60
pop ebp
test edi, edi
pop edi
jne 0x47aca3
test ebx, ebx
je 0x47aca3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00490550
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x47ae05
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 0x47af1d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47af1d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004a227d
mov esi, eax
test esi, esi
je 0x47af1d
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 0x47af1d
mov ecx, esi
call fcn.0047ad90
cmp edi, eax
jge 0x47af1d
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 0x47aea3
mov dword [esp + 0x34], 1
jmp 0x47aefe
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x47af1d
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.0047a300
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 0x483cd0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x483d1a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x483d49
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x483d8b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x4a2c21
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a2c59
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.004a0c0e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a0be6
jmp 0x4a2c65
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a4316
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 0x4a4358
call fcn.004aa03b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a4358
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a434f
xor eax, eax
jmp 0x4a4360
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a4366
pop edi
pop esi
pop ebx
ret 4

Function at 0x4aa56b
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 0x4aa599
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4aa5b7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004aa4d1
jmp 0x4aa5b7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4aa5b7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004aa4d1
test edi, edi
mov eax, edi
jne 0x4aa5a1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401050
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x41207c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x228
xor ebx, ebx
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.00408490
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea ecx, [ecx]
mov edx, dword [ebp + 8]
cmp dword [ebp - 0x228], edx
je 0x4010dc
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x4010b0
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402564
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402564
mov esp, ebp
pop ebp
ret

Function at 0x401100
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x41207c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.00408490
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x401160
cmp dword [ebp - 0x228], ebx
je 0x401178
lea edx, [ebp - 0x230]
push edx
push esi
call edi
test eax, eax
jne 0x401160
jmp 0x401197
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [ebp + eax - 0x20c]
mov word [eax + 0x413f00], cx
add eax, 2
test cx, cx
jne 0x401180
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 0x413f00
pop esi
call fcn.00402564
mov esp, ebp
pop ebp
ret
Function at 0x401440
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, edi
call fcn.004011b0
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
test al, al
setne cl
mov dword [edi + 0xc0], ecx
call esi
push str._uac
push eax
call fcn.00402cdb
add esp, 8
test eax, eax
je 0x401494
lea edx, [ebp - 4]
push edx
call esi
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov eax, dword [eax + 8]
push eax
call fcn.00403005
add esp, 4
mov dword [edi + 0xc4], eax
jmp 0x40149f
lea esi, [edi + 0xc4]
call fcn.00401380
mov eax, str.1001
lea edx, [edi + 0x40]
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4014b0
mov eax, str.woaiwanbox
lea edx, [edi + 0x80]
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4014d0
call fcn.00401040
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
mov ecx, 0x80000002
call fcn.00401ba0
test eax, eax
jne 0x401519
mov edx, str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall
mov ecx, 0x80000002
call fcn.00401ba0
test eax, eax
jne 0x401519
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionUninstall
mov ecx, 0x80000001
call fcn.00401ba0
xor ecx, ecx
test eax, eax
setne cl
lea esi, [edi + 0xcc]
mov dword [0x413ef8], eax
mov dword [edi + 0xc8], ecx
call fcn.004012c0
push 0
call fcn.00402a31
mov dword [edi + 0x2dc], edx
mov dword [edi + 0x2d8], eax
mov eax, str._aY_u
lea edx, [edi + 0x2e0]
add esp, 4
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401560
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401580
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x41207c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call fcn.00401040
push str.SOFTWARE
push 0x82
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4015c2
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402564
mov esp, ebp
pop ebp
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xa8], eax
test eax, eax
je 0x4015b1
call fcn.00401040
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4015b1
call fcn.00401040
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xa4], eax
test eax, eax
je 0x4015b1
push edi
mov dword [ebp - 0xa0], 0
lea edi, [ebx - 2]
lea ecx, [ecx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x401610
mov eax, dword [0x4102c0]
push 0
mov dword [edi], eax
call fcn.00402a31
push eax
call fcn.004030a7
xor eax, eax
xor ecx, ecx
add esp, 8
mov word [ebp - 0x1c], cx
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
xor esi, esi
lea esp, [esp]
call fcn.004030b9
cdq
mov ecx, 0x19
idiv ecx
inc esi
add edx, 0x61
mov word [ebp + esi*2 - 0x1e], dx
cmp esi, 0xa
jl 0x401650
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x9c]
push 0x4102c4
push eax
call fcn.00402d3b
lea eax, [ebp - 0x9c]
add esp, 0xc
mov edx, eax
jmp 0x401690
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401690
sub eax, edx
lea edi, [ebx - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4016a0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.0040308f
add esp, 8
test eax, eax
jne 0x4016d7
call fcn.00401040
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00401040
push 0x4102d4
push ebx
call fcn.00403198
mov esi, eax
add esp, 8
test esi, esi
je 0x401720
mov edi, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa4]
push esi
push edi
push 1
push ecx
call fcn.00403306
add esp, 0x10
cmp edi, eax
jne 0x401717
mov dword [ebp - 0xa0], 1
push esi
call fcn.004033ed
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xa0]
pop edi
xor ecx, ebp
pop esi
call fcn.00402564
mov esp, ebp
pop ebp
ret
Function at 0x401740
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x41207c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00408490
add esp, 0xc
call fcn.00401040
lea edx, [ebp - 0x210]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0040308f
add esp, 8
test eax, eax
je 0x4017b1
push 0
push 0x1a
lea ecx, [ebp - 0x210]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebp - 0x210], 0
je 0x401902
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
jmp 0x4017d0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4017d0
sub eax, edx
sar eax, 1
je 0x401902
call fcn.00401040
call fcn.00401040
lea ebx, [ebp - 0x210]
call fcn.00401580
test eax, eax
jne 0x40181f
push eax
push 0x4102dc
push 0x4102e8
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402564
mov esp, ebp
pop ebp
ret
call fcn.00401040
call fcn.00401040
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x416]
push eax
mov word [ebp - 0x418], dx
call fcn.00408490
mov edx, dword [esi + 0x2dc]
mov eax, dword [esi + 0x2d8]
lea ecx, [esi + 0x2e0]
push ecx
push edx
mov edx, dword [esi + 0xc8]
push eax
mov eax, dword [esi + 0xc4]
lea ecx, [esi + 0xcc]
push ecx
mov ecx, dword [esi + 0xc0]
push edx
push eax
push ecx
lea edx, [esi + 0x80]
push edx
lea eax, [esi + 0x40]
push eax
push esi
lea ecx, [ebp - 0x418]
push str._channelid_s__productid_s__productname_s__installmode_d__installppn_d__override_d__setupfilename_s__installtime_I64u__localarea_s
push ecx
call fcn.00402d3b
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x61e]
push eax
mov word [ebp - 0x620], dx
call fcn.00408490
add esp, 0x48
cmp dword [esi + 0xc0], 1
jne 0x4018d9
call fcn.00401040
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x620]
push str._s__VERYSILENT__SP_
push edx
call fcn.00402d3b
add esp, 0xc
call fcn.00401040
call fcn.00401040
push 0
push 0
lea eax, [ebp - 0x620]
push eax
lea ecx, [ebp - 0x210]
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00402564
mov esp, ebp
pop ebp
ret