joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415450
Capabilities:
Change the wallpaper

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov ax, word [0x4472a4]
mov word [ebp - 0x13c], ax
mov cx, word [0x4472a8]
mov word [ebp - 0x138], cx
mov dx, word [0x4472ac]
mov word [ebp - 0x14], dx
lea eax, [ebp - 0x138]
mov dword [ebp - 0x140], eax
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], 0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [ebp - 0x10]
push edx
push 0x452124
push 1
push 0
push 0x452134
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
jl 0x415584
cmp dword [ebp - 0x10], 0
je 0x415584
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x10]
push eax
call dword [edx + 0x2c]
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x1c], 8
mov dword [ebp - 0x18], 1
cmp dword [ebp + 0xc], 1
jne 0x415522
mov dword [ebp - 0x18], 0
jmp 0x41552f
cmp dword [ebp + 0xc], 2
jne 0x41552f
mov dword [ebp - 0x18], 2
push 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [eax + 0x1c]
mov dword [ebp - 0x134], eax
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x10]
push edx
call dword [ecx + 0x14]
mov dword [ebp - 0x134], eax
push 7
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x10]
push edx
call dword [ecx + 0xc]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x10]
push edx
call dword [ecx + 8]
jmp 0x415607
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 1
je 0x4155a1
cmp dword [ebp - 0x144], 2
je 0x4155af
jmp 0x4155c1
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x140], ecx
jmp 0x4155c1
lea edx, [ebp - 0x13c]
mov dword [ebp - 0x140], edx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x140]
push edx
call fcn.00415620
add esp, 8
push 0
push 0
push 0x104
lea eax, [ebp - 0x130]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 3
lea edx, [ebp - 0x130]
push edx
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret
Function at 0x415620
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov eax, dword [0x447238]
mov dword [ebp - 0x1c], eax
mov ecx, dword [0x44723c]
mov dword [ebp - 0x18], ecx
mov edx, dword [0x447240]
mov dword [ebp - 0x14], edx
mov eax, dword [0x447244]
mov dword [ebp - 0x10], eax
mov ecx, dword [0x447248]
mov dword [ebp - 0xc], ecx
mov dx, word [0x44724c]
mov word [ebp - 8], dx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x1c]
push ecx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4156da
mov edx, dword [ebp + 8]
push edx
call fcn.00435fa0
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
push 1
push 0
push str.TileWallpaper
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4156da
mov edx, dword [ebp + 0xc]
push edx
call fcn.00435fa0
add esp, 4
push eax
mov eax, dword [ebp + 0xc]
push eax
push 1
push 0
push 0x447260
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 4], 0
je 0x4156ed
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x20], eax
mov esp, ebp
pop ebp
ret

Function at 0x4157c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push 0
push 0
lea edx, [ebp - 8]
push edx
push 0x4153f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x415801
push 0x7d0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esp, ebp
pop ebp
ret
Function at 0x415840
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov eax, dword [str.Control_PanelDesktop]
mov dword [ebp - 0x20], eax
mov ecx, dword [0x447274]
mov dword [ebp - 0x1c], ecx
mov edx, dword [0x447278]
mov dword [ebp - 0x18], edx
mov eax, dword [0x44727c]
mov dword [ebp - 0x14], eax
mov ecx, dword [0x447280]
mov dword [ebp - 0x10], ecx
mov dx, word [0x447284]
mov word [ebp - 0xc], dx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x20]
push ecx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4158f8
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push str.Wallpaper
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4158f8
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push str.WallpaperStyle
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 4], 0
je 0x41590b
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24], eax
mov esp, ebp
pop ebp
ret
Function at 0x417b10
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00416510
add esp, 0x10
mov eax, dword [ebp + 0x38]
push eax
mov ecx, dword [ebp + 0x30]
push ecx
mov edx, dword [ebp + 0x2c]
push edx
mov eax, dword [ebp + 0x28]
push eax
mov ecx, dword [ebp + 0x24]
push ecx
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004169c0
add esp, 0x30
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x417be1
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x417be1
cmp dword [ebp + 0x34], 0
je 0x417b8b
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
cmp dword [ebp + 0x20], 0
je 0x417bac
push 3
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp + 0x20], 0
je 0x417be1
mov eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x424370
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
call fcn.0043662c
mov esi, eax
shl esi, 0x10
call fcn.0043662c
or esi, eax
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
push 0
push 8
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.00402fe0
add esp, 0x10
push 0
lea eax, [ebp - 8]
push eax
push 8
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4243d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov byte [ebp - 5], 0
cmp dword [ebp + 0xc], 0
je 0x4243f3
mov eax, dword [ebp + 0xc]
push eax
call fcn.004361fa
add esp, 4
lea ecx, [eax + eax + 2]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00424370
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x42442a
push 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42442a
mov byte [ebp - 5], 1
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0x424440
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov byte [ebp - 9], 0
cmp dword [ebp + 0xc], 0
je 0x424470
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004361fa
add esp, 4
lea edx, [eax + eax + 2]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add eax, 0xe
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00424370
add esp, 8
movzx eax, al
test eax, eax
je 0x42450e
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0043609d
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42450e
mov edx, dword [ebp - 0x14]
push edx
call fcn.0043662c
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.00435620
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00436111
add esp, 8
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00402fe0
add esp, 0x10
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
push ecx
call fcn.004360af
add esp, 4
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret
Function at 0x424560
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [ebp - 1], 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00424370
add esp, 8
movzx edx, al
test edx, edx
je 0x4245a1
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4245a1
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x4245b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov byte [ebp - 5], 0
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00424370
add esp, 8
movzx eax, al
test eax, eax
je 0x42462d
mov ecx, dword [ebp + 0x10]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42462d
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00402fe0
add esp, 0x10
push 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 5], al
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x427010
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov byte [ebp - 0x19], 0
mov dword [ebp - 0x20], 4
push 1
call fcn.004270f0
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov dword [eax], 0xa
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0xa
cmp dword [ebp - 0x18], 0
je 0x42709a
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0x4501b4
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x427090
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
add ecx, 4
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0x4501bc
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x19], al
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x4270da
mov ecx, dword [ebp - 0x14]
add ecx, 0xa
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp - 0x10]
add eax, 0xa
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov al, byte [ebp - 0x19]
mov esp, ebp
pop ebp
ret

Function at 0x4271d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 1
call fcn.004270f0
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x427226
push 4
mov eax, dword [ebp + 8]
push eax
push 4
push 0
push str.Left
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
mov edx, dword [ebp + 8]
add edx, 4
push edx
push 4
push 0
push 0x450254
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x4274a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440c85
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
mov dword [ebp - 0x140], 0
mov byte [ebp - 0x29], 0
mov dword [ebp - 0x30], 0x100
push 0
call fcn.004270f0
add esp, 4
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x134], 0
cmp dword [ebp - 0x28], 0
je 0x42751f
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x134]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0
push str.UniqueId
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x29], al
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx edx, byte [ebp - 0x29]
test edx, edx
jne 0x427597
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreate]
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.RPCRT4.dll_UuidToStringA]
test eax, eax
jne 0x427597
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x134]
push ecx
call fcn.00435a20
add esp, 8
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp - 0x13c]
call fcn.0040f790
mov dword [ebp - 4], 0
lea eax, [ebp - 0x13c]
push eax
call fcn.004275d0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.0040cd30
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.RPCRT4.dll_RpcStringFreeA]
lea edx, [ebp - 0x134]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040f790
mov eax, dword [ebp - 0x140]
or eax, 1
mov dword [ebp - 0x140], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4275d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
call fcn.004270f0
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x427619
mov ecx, dword [ebp + 8]
call fcn.0040a540
add eax, 1
push eax
mov ecx, dword [ebp + 8]
call fcn.0040cd60
push eax
push 1
push 0
push 0x450258
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x428c50
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
movzx ecx, word [edx + 0x14]
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0
jmp 0x428c8f
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x28
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
movzx ecx, word [eax + 6]
cmp dword [ebp - 4], ecx
jge 0x428d40
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x10], 0
jne 0x428cf4
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jle 0x428cf2
push 4
push 0x1000
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.00435620
add esp, 0xc
jmp 0x428c7d
push 4
push 0x1000
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00435680
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax + 8], ecx
jmp 0x428c7d
mov esp, ebp
pop ebp
ret
Function at 0x428d50
Capabilities:
Enumerate pe sections
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movzx edx, word [eax + 0x14]
lea eax, [ecx + edx + 0x18]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x428d86
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
add edx, 0x28
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
movzx edx, word [ecx + 6]
cmp dword [ebp - 4], edx
jge 0x428e98
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
and ecx, 0x20000000
neg ecx
sbb ecx, ecx
neg ecx
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x24]
and eax, 0x40000000
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x24]
and edx, 0x80000000
neg edx
sbb edx, edx
neg edx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
and ecx, 0x2000000
je 0x428e02
push 0x4000
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x428d74
mov eax, dword [ebp - 0x14]
shl eax, 4
mov ecx, dword [ebp - 0x1c]
lea edx, [eax + ecx*8 + 0x47fa08]
mov eax, dword [ebp - 0x10]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x24]
and eax, 0x4000000
je 0x428e34
mov ecx, dword [ebp - 0x18]
or ecx, 0x200
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x428e74
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x24]
and edx, 0x40
je 0x428e5b
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x20], edx
jmp 0x428e74
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
and ecx, 0x80
je 0x428e74
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
jbe 0x428e93
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x428d74
mov esp, ebp
pop ebp
ret
Function at 0x429310
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440d78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov byte [ebp - 0xd], 1
movzx eax, byte [0x483258]
test eax, eax
je 0x429349
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x18], eax
jmp 0x429386
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0040a9b0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x24]
call fcn.0040aa10
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040a9e0
cmp dword [ebp - 0x18], 0xffffffff
jne 0x429399
mov byte [ebp - 0xd], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4298e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push eax
call fcn.00435fa0
add esp, 4
add eax, 1
push eax
call fcn.004355c1
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x4299d2
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00435a20
add esp, 8
push 0x5c
mov ecx, dword [ebp - 4]
push ecx
call fcn.00435cf0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4299c0
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 4]
je 0x4299a7
mov eax, dword [ebp - 8]
movsx ecx, byte [eax - 1]
cmp ecx, 0x3a
je 0x4299a7
mov edx, dword [ebp - 8]
mov byte [edx], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4299a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xb7
je 0x4299a1
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [ebp - 8]
mov byte [edx], 0x5c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004355bc
add esp, 4
xor eax, eax
jmp 0x4299e0
mov edx, dword [ebp - 8]
mov byte [edx], 0x5c
push 0x5c
mov eax, dword [ebp - 8]
add eax, 1
push eax
call fcn.00435cf0
add esp, 8
mov dword [ebp - 8], eax
jmp 0x429932
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.004355bc
add esp, 4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esp, ebp
pop ebp
ret