joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f694
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
lea eax, [ebp - 4]
push eax
call fcn.004145e4
pop ecx
push 0
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 4]
add edx, 0x48c
push edx
push 0x80000002
push ecx
call fcn.00414618
add esp, 0x10
test eax, eax
je 0x40f6f2
push 0
push 0x44e56c
lea eax, [ebp - 4]
push eax
call fcn.00414758
add esp, 0xc
mov dword [ebp - 8], eax
lea edx, [ebp - 4]
push edx
call fcn.00414740
cmp dword [ebp - 8], 0
pop ecx
jne 0x40f8dd
push 0
lea eax, [ebp - 4]
mov ecx, dword [ebp + 0xc]
add ecx, 0x48c
push ecx
push 0x80000002
push eax
call fcn.004146ac
add esp, 0x10
test eax, eax
je 0x40f730
push 1
push 0x44e56c
lea edx, [ebp - 4]
push edx
call fcn.00414844
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
call fcn.00414740
pop ecx
xor eax, eax
lea edx, [ebp - 4]
mov dword [ebp - 0xc], eax
push 0
push 0x44e576
push 0x80000002
push edx
call fcn.00414618
add esp, 0x10
test eax, eax
je 0x40f771
push 0
push 0x44e59a
lea ecx, [ebp - 4]
push ecx
call fcn.00414758
add esp, 0xc
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
call fcn.00414740
pop ecx
cmp dword [ebp - 0xc], 0
jle 0x40f7bc
push 0
push 0x44e576
push 0x80000002
lea edx, [ebp - 4]
push edx
call fcn.004146ac
add esp, 0x10
test eax, eax
je 0x40f8dd
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 4]
inc ecx
push ecx
push 0x44e59a
push eax
call fcn.00414844
add esp, 0xc
lea edx, [ebp - 4]
push edx
call fcn.00414740
pop ecx
jmp 0x40f8dd
push 0x7f02
push 0
call sub.USER32.dll_LoadCursorA
push eax
call sub.USER32.dll_SetCursor
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x118]
push ecx
push 0x104
call sub.KERNEL32.dll_GetTempPathA
push 0x44e5a4
lea eax, [ebp - 0x118]
push eax
lea edx, [ebp - 0x21c]
push edx
call fcn.0042cadc
add esp, 0xc
mov dword [ebp - 0x14], 1
jmp 0x40f8bf
mov ecx, dword [ebp - 0x14]
push ecx
mov eax, dword [ebp + 0xc]
add eax, 0x28
push eax
call fcn.00428b44
add esp, 8
cmp eax, 0xf
jne 0x40f8bc
lea edx, [ebp - 0x21c]
push edx
mov ecx, dword [ebp - 0x14]
push ecx
mov eax, dword [ebp + 0xc]
add eax, 0x28
push eax
call fcn.004299a8
add esp, 0xc
test eax, eax
je 0x40f851
mov edx, dword [ebp - 0x10]
push edx
call sub.USER32.dll_SetCursor
jmp 0x40f8dd
push 1
push 0
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0041a144
add esp, 0xc
test eax, eax
je 0x40f8b1
push 0
push 0x44e576
push 0x80000002
lea eax, [ebp - 4]
push eax
call fcn.004146ac
add esp, 0x10
test eax, eax
je 0x40f8a4
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 4]
inc edx
push edx
push 0x44e59a
push ecx
call fcn.00414844
add esp, 0xc
lea eax, [ebp - 4]
push eax
call fcn.00414740
pop ecx
lea edx, [ebp - 0x21c]
push edx
call fcn.004346dc
pop ecx
mov ecx, dword [ebp - 0x10]
push ecx
call sub.USER32.dll_SetCursor
jmp 0x40f8dd
inc dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x160]
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp - 0x14]
jg 0x40f809
mov eax, dword [ebp - 0x10]
push eax
call sub.USER32.dll_SetCursor
mov esp, ebp
pop ebp
ret
Function at 0x40f8e4
Capabilities:
Delete registry key
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde8
lea eax, [ebp - 4]
push eax
call fcn.004145e4
pop ecx
push 0
push 0x44e576
push 0x80000002
lea edx, [ebp - 4]
push edx
call fcn.004146ac
add esp, 0x10
test eax, eax
je 0x40f953
push 0
push 0x44e59a
lea ecx, [ebp - 4]
push ecx
call fcn.00414758
add esp, 0xc
dec eax
mov dword [ebp - 8], eax
lea edx, [ebp - 4]
mov eax, dword [ebp - 8]
push eax
push 0x44e59a
push edx
call fcn.00414844
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
call fcn.00414740
cmp dword [ebp - 8], 0
pop ecx
jg 0x40fa40
push 0x44e576
push 0x80000002
call sub.ADVAPI32.dll_RegDeleteKeyA
push 0x7f02
push 0
call sub.USER32.dll_LoadCursorA
push eax
call sub.USER32.dll_SetCursor
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x114]
push eax
push 0x104
call sub.KERNEL32.dll_GetTempPathA
push 0x44e5ae
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x218]
push ecx
call fcn.0042cadc
add esp, 0xc
mov dword [ebp - 0x10], 1
jmp 0x40fa22
mov eax, dword [ebp - 0x10]
push eax
mov edx, dword [ebp + 0xc]
add edx, 0x28
push edx
call fcn.00428b44
add esp, 8
cmp eax, 0x10
jne 0x40fa1f
lea ecx, [ebp - 0x218]
push ecx
mov eax, dword [ebp - 0x10]
push eax
mov edx, dword [ebp + 0xc]
add edx, 0x28
push edx
call fcn.004299a8
add esp, 0xc
test eax, eax
je 0x40f9ed
mov ecx, dword [ebp - 0xc]
push ecx
call sub.USER32.dll_SetCursor
jmp 0x40fa40
push 1
push 0x44e5b8
lea eax, [ebp - 0x218]
push eax
call fcn.0041a144
add esp, 0xc
test eax, eax
je 0x40fa14
lea edx, [ebp - 0x218]
push edx
call fcn.004346dc
pop ecx
mov ecx, dword [ebp - 0xc]
push ecx
call sub.USER32.dll_SetCursor
jmp 0x40fa40
inc dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x160]
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp - 0x10]
jg 0x40f9ac
mov eax, dword [ebp - 0xc]
push eax
call sub.USER32.dll_SetCursor
mov esp, ebp
pop ebp
ret
Function at 0x41440c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf8
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0x44edb8
push 0
call sub.SHELL32.dll_ShellExecuteA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x20
ja 0x41444a
push 1
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
push 0
call sub.SHELL32.dll_ShellExecuteA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x20
jbe 0x414457
xor eax, eax
jmp 0x414554
lea edx, [ebp - 0x408]
push edx
push 0x44edbd
push 0x80000000
call fcn.00414558
add esp, 0xc
test eax, eax
jne 0x414551
push 0x44edc2
lea ecx, [ebp - 0x408]
push ecx
call fcn.0040123c
add esp, 8
lea eax, [ebp - 0x408]
push eax
lea edx, [ebp - 0x408]
push edx
push 0x80000000
call fcn.00414558
add esp, 0xc
test eax, eax
jne 0x414551
push 0x44edd6
lea ecx, [ebp - 0x408]
push ecx
call fcn.004015c0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41450b
push 0x44eddb
lea eax, [ebp - 0x408]
push eax
call fcn.004015c0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x414503
lea edx, [ebp - 0x408]
push edx
call fcn.00401348
pop ecx
lea ecx, [ebp - 0x409]
add eax, ecx
mov dword [ebp - 8], eax
jmp 0x414511
mov eax, dword [ebp - 8]
mov byte [eax], 0
jmp 0x414511
mov edx, dword [ebp - 8]
mov byte [edx], 0
push 0x44edde
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040123c
add esp, 8
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 8]
push edx
call fcn.0040123c
add esp, 8
lea ecx, [ebp - 0x408]
push 0
push 0
push ecx
call fcn.0041a144
add esp, 0xc
test eax, eax
jne 0x414551
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x414558
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push esi
push edi
lea eax, [ebp - 8]
push eax
push 1
push 0
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.ADVAPI32.dll_RegOpenKeyExA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4145d8
mov dword [ebp - 0xc], pe_nt_image_headers32
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x10c]
push edx
push 0
mov ecx, dword [ebp - 8]
push ecx
call sub.ADVAPI32.dll_RegQueryValueA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4145cf
mov eax, dword [ebp + 0x10]
lea edi, [ebp - 0x10c]
mov esi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegCloseKey
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x415564
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push 0x200
lea eax, [ebp - 0x214]
push eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 4]
push ecx
call sub.USER32.dll_GetWindowTextA
lea eax, [ebp - 0x214]
push eax
call fcn.00401348
pop ecx
test eax, eax
je 0x41562e
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00415678
add esp, 0xc
mov edx, dword [ebp + 8]
cmp dword [edx + 0xc], 0
je 0x4155ca
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xc]
push eax
mov edx, dword [ebp + 0xc]
push edx
call sub.GDI32.dll_SelectObject
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x20]
push eax
mov edx, dword [ebp + 0xc]
push edx
call sub.GDI32.dll_SetTextColor
push 1
mov ecx, dword [ebp + 0xc]
push ecx
call sub.GDI32.dll_SetBkMode
push 0
lea eax, [ebp - 0x14]
push 0x8020
push eax
lea edx, [ebp - 0x214]
push 0xffffffffffffffff
push edx
mov ecx, dword [ebp + 0xc]
push ecx
call sub.USER32.dll_DrawTextExA
cmp dword [ebp + 0x10], 0
je 0x415618
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00415634
add esp, 8
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xc], 0
je 0x41562e
mov eax, dword [ebp - 4]
push eax
mov edx, dword [ebp + 0xc]
push edx
call sub.GDI32.dll_SelectObject
mov esp, ebp
pop ebp
ret
Function at 0x415678
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push 0x200
lea eax, [ebp - 0x220]
push eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 4]
push ecx
call sub.USER32.dll_GetWindowTextA
lea eax, [ebp - 0x220]
push eax
call fcn.00401348
pop ecx
test eax, eax
jne 0x4156c0
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
call sub.USER32.dll_SetRect
jmp 0x415790
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xc], 0
je 0x4156dc
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xc]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
call sub.GDI32.dll_SelectObject
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20]
mov edx, dword [eax + 4]
mov dword [ebp - 8], edx
push ecx
mov eax, dword [ebp - 8]
push eax
call sub.USER32.dll_GetClientRect
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x10]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0xc], edx
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp + 0x10]
push eax
call sub.USER32.dll_InflateRect
push 0
push 0x8420
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x220]
push edx
push 0xffffffffffffffff
push ecx
mov eax, dword [ebp + 0xc]
push eax
call sub.USER32.dll_DrawTextExA
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
mov ecx, dword [edx + 4]
add ecx, dword [ebp - 0xc]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0xc]
mov ecx, dword [edx + 4]
neg ecx
sar eax, 1
jns 0x415766
adc eax, 0
add ecx, eax
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
push 1
mov ecx, dword [ebp + 0x10]
push ecx
call sub.USER32.dll_OffsetRect
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
je 0x415790
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
call sub.GDI32.dll_SelectObject
mov esp, ebp
pop ebp
ret
Function at 0x41a144
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcac
push esi
push edi
push 0x44
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.00401198
lea edi, [ebp - 0x354]
add esp, 0xc
mov dword [ebp - 0x44], 0x44
mov eax, edi
mov esi, 0x44f97c
movsb byte es:[edi], byte [esi]
cmp dword [ebp + 8], 0
je 0x41a1a5
push pe_nt_image_headers32
lea edx, [ebp - 0x154]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_GetShortPathNameA
lea eax, [ebp - 0x154]
push eax
lea edx, [ebp - 0x354]
push edx
call fcn.0040123c
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x41a1d8
cmp dword [ebp + 8], 0
je 0x41a1c5
push 0x44f97d
lea ecx, [ebp - 0x354]
push ecx
call fcn.0040123c
add esp, 8
mov eax, dword [ebp + 0xc]
push eax
lea edx, [ebp - 0x354]
push edx
call fcn.0040123c
add esp, 8
lea ecx, [ebp - 0x54]
lea eax, [ebp - 0x44]
push ecx
push eax
push 0
push 0
push 0
push 1
push 0
lea edx, [ebp - 0x354]
push 0
push edx
push 0
call sub.KERNEL32.dll_CreateProcessA
test eax, eax
je 0x41a216
cmp dword [ebp + 0x10], 0
je 0x41a20f
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x54]
push ecx
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, 1
jmp 0x41a218
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4200cc
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 0x80000000
je 0x4200e7
mov edx, dword [ebp + 8]
cmp dword [edx + 0x20], 0
jne 0x4200ee
xor eax, eax
jmp 0x4201f3
mov dword [ebp - 0x10], 0x31584449
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 8]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x42013f
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0
jne 0x42011a
mov eax, 0xe
jmp 0x4201f3
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [ecx + edx*8 - 8]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
add ecx, dword [edx + eax*8 - 4]
mov dword [ebp - 8], ecx
jmp 0x42014b
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0xc]
add ecx, 0xc
mov dword [ebp - 8], ecx
push 0
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xc]
push edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push eax
call fcn.004346c0
add esp, 0xc
lea edx, [ebp - 0x10]
push 0xc
push edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push eax
call fcn.00434694
add esp, 0xc
cmp eax, 0xc
je 0x420182
mov eax, 5
jmp 0x4201f3
mov edx, dword [ebp + 8]
cmp dword [edx + 8], 0
jle 0x4201dc
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
shl eax, 3
mov dword [ebp - 4], eax
push 0
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push eax
call fcn.004346c0
add esp, 0xc
cmp eax, dword [ebp - 8]
je 0x4201b7
mov eax, 6
jmp 0x4201f3
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
push eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
push ecx
call fcn.00434694
add esp, 0xc
cmp eax, dword [ebp - 4]
je 0x4201dc
mov eax, 5
jmp 0x4201f3
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
mov eax, dword [ecx]
push eax
call sub.KERNEL32.dll_SetEndOfFile
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [edx + 0x20], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x425fcc
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.00422530
add esp, 8
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x42605a
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0
je 0x426001
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
sub eax, dword [ebp - 8]
dec eax
jmp 0x426004
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0x1c]
jge 0x42604d
mov ecx, dword [ebp + 0x2c]
push ecx
mov eax, dword [ebp + 0x28]
add eax, dword [ebp - 4]
push eax
mov edx, dword [ebp + 0x24]
push edx
mov ecx, dword [ebp + 0x20]
push ecx
push 1
mov eax, dword [ebp + 0x18]
push eax
mov edx, dword [ebp + 0x14]
add edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 0x10]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call sub.GDI32.dll_BitBlt
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 8]
add dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x1c]
jl 0x42600f
mov edx, dword [ebp + 8]
push edx
call fcn.00422598
pop ecx
inc dword [ebp - 8]
push 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x14]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
test eax, eax
je 0x42607b
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 8]
cmp edx, dword [ecx + 8]
jl 0x425fec
push 0
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x14]
push edx
call sub.KERNEL32.dll_WaitForSingleObject
test eax, eax
jne 0x426094
mov eax, 0x16
jmp 0x426096
xor eax, eax
pop ecx
pop ecx
pop ebp
ret

Function at 0x42609c
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.00422530
add esp, 8
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x42612a
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0
je 0x4260d1
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
sub eax, dword [ebp - 8]
dec eax
jmp 0x4260d4
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0x18]
jge 0x42611d
mov ecx, dword [ebp + 0x2c]
push ecx
mov eax, dword [ebp + 0x28]
push eax
mov edx, dword [ebp + 0x24]
add edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 0x20]
push ecx
mov eax, dword [ebp + 0x1c]
push eax
push 1
mov edx, dword [ebp + 0x14]
push edx
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 4]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call sub.GDI32.dll_BitBlt
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 8]
add dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x18]
jl 0x4260df
mov edx, dword [ebp + 8]
push edx
call fcn.00422598
pop ecx
inc dword [ebp - 8]
push 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x14]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
test eax, eax
je 0x42614b
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 8]
cmp edx, dword [ecx + 8]
jl 0x4260bc
push 0
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x14]
push edx
call sub.KERNEL32.dll_WaitForSingleObject
test eax, eax
jne 0x426164
mov eax, 0x16
jmp 0x426166
xor eax, eax
pop ecx
pop ecx
pop ebp
ret
Function at 0x42b2c8
Capabilities:
Create process on windows
Get common file path
Resume thread
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff99c
lea eax, [ebp - 0x160]
push eax
push 0x104
call sub.KERNEL32.dll_GetTempPathA
push 0x4509d1
lea edx, [ebp - 0x160]
push edx
lea ecx, [ebp - 0x264]
push ecx
call fcn.0042cadc
add esp, 0xc
lea eax, [ebp - 0x264]
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
push eax
call sub.KERNEL32.dll_CreateFileA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x42b359
push 0x4509a6
mov edx, dword [ebp + 0x10]
push edx
call fcn.0040123c
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00401348
pop ecx
add eax, dword [ebp + 0x10]
push eax
call fcn.0040123c
add esp, 8
mov eax, 1
jmp 0x42b46a
lea edx, [ebp - 0x264]
push edx
lea edx, [ebp - 0x664]
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [ebp + 0xc]
push eax
push 0x4509db
push edx
call fcn.00405ce0
add esp, 0x14
push 0
lea ecx, [ebp - 8]
push ecx
lea eax, [ebp - 0x664]
push eax
call fcn.00401348
pop ecx
push eax
lea edx, [ebp - 0x664]
push edx
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_WriteFile
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
push 0x44
push 0
lea edx, [ebp - 0x4c]
push edx
call fcn.00401198
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 1
mov word [ebp - 0x1c], 0
add esp, 0xc
lea ecx, [ebp - 0x5c]
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x264]
push ecx
push eax
push 0
push 0
push 0x44
push 0
push 0
push 0
push edx
push 0
call sub.KERNEL32.dll_CreateProcessA
test eax, eax
je 0x42b43a
push 0xfffffffffffffff1
mov ecx, dword [ebp - 0x58]
push ecx
call sub.KERNEL32.dll_SetThreadPriority
push 0xf
call sub.KERNEL32.dll_GetCurrentThread
push eax
call sub.KERNEL32.dll_SetThreadPriority
push 0x80
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.KERNEL32.dll_SetPriorityClass
mov eax, dword [ebp - 0x5c]
push eax
call sub.KERNEL32.dll_CloseHandle
mov edx, dword [ebp - 0x58]
push edx
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 0x58]
push ecx
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
jmp 0x42b46a
push 0x4509a6
mov edx, dword [ebp + 0x10]
push edx
call fcn.0040123c
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00401348
pop ecx
add eax, dword [ebp + 0x10]
push eax
call fcn.0040123c
add esp, 8
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x42c03c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 5
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [ebp + 0xc]
push edx
call sub.KERNEL32.dll_FindResourceA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x42c05e
xor eax, eax
jmp 0x42c081
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
call sub.KERNEL32.dll_LoadResource
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x42c078
xor eax, eax
jmp 0x42c081
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.dll_LockResource
pop ecx
pop ecx
pop ebp
ret
Function at 0x42d00c
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 0x114]
push edx
call sub.KERNEL32.dll_lstrcpyA
push 0x5c
lea ecx, [ebp - 0x114]
push ecx
call fcn.00401278
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x42d046
mov edx, dword [ebp - 4]
mov byte [edx + 1], 0
jmp 0x42d065
push 0x3a
lea ecx, [ebp - 0x114]
push ecx
call fcn.00401278
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x42d065
mov edx, dword [ebp - 4]
mov byte [edx + 1], 0
lea ecx, [ebp - 0x14]
push ecx
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 8]
push ecx
lea eax, [ebp - 0x114]
push eax
call sub.KERNEL32.dll_GetDiskFreeSpaceA
test eax, eax
jne 0x42d08d
fld xword [0x42d0dc]
jmp 0x42d0d6
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x118], ecx
fild qword [ebp - 0x11c]
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], edx
fild qword [ebp - 0x124]
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x128], eax
fmulp st(1)
fild qword [ebp - 0x12c]
fmulp st(1)
mov esp, ebp
pop ebp
ret

Function at 0x42d468
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov eax, 0x450f5c
call fcn.00403b30
mov edx, dword [ebp + 8]
mov dword [edx], 0x44e360
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx + 4], eax
mov edx, dword [ebp + 8]
mov dword [edx], 0x451008
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 0x450f87
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0xc], edx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0x450f91
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 8
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [edx + 0x18], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x64
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [edx + 0x54], ecx
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x2c], edx
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx + 0x30], eax
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [edx + 0x34], ecx
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x38], edx
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx + 0x5c], eax
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [edx + 0x60], ecx
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x68], edx
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx + 0x58], eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret

Function at 0x42e684
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], 4
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 4]
push edx
lea ecx, [ebp - 8]
push ecx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
push ecx
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
jne 0x42e6be
mov eax, dword [ebp - 4]
jmp 0x42e6c1
mov eax, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret