joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468048
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46805f
add esp, 0xfffffff0
call fcn.00404038
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00424450
mov eax, dword [0x4872ec]
cmp word [eax + 2], 0
jne 0x468087
mov eax, dword [0x4872ec]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00469d38
mov eax, dword [0x4873d4]
cmp word [eax + 2], 0
jne 0x4680a1
mov eax, dword [0x4873d4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00469f44
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41aff8]
call fcn.00403ce4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41aff8]
call fcn.00403ce4
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x41aff8]
call fcn.00403ce4
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x42a738]
call fcn.00431e1c
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x468258
mov eax, dword [0x4871c0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004321f0
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46a608
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4871c0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040dc9c
test eax, eax
je 0x4681a8
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409c50
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040dcd0
test eax, eax
je 0x4681bc
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404f44
mov byte [ebx + 0xd4], 0
push ebx
push 0x4697c4
call fcn.00425bec
mov dword [ebx + 0xc8], eax
mov eax, dword [0x487068]
cmp byte [eax], 0
jne 0x46820d
mov eax, ebx
call fcn.0046839c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0046a81c
mov eax, ebx
call fcn.0046b380
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46824d
call fcn.00404090
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46861c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x4686bb
cmp dword [ebx + 0x94], 0
jne 0x4686b5
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4685a4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4686b5
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x46867b
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4686b5
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041d6c0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46868a
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4688d4
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x48ccd4]
cmp dword [eax + 0x30], 0
je 0x468a31
test bl, bl
jne 0x468982
cmp dword [esi + 0x9c], 0
jne 0x468977
mov eax, esi
call fcn.0046b1fc
push eax
push 0x468800
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x468948
mov eax, dword [0x48ccd4]
call fcn.0046b8dc
test al, al
je 0x468948
mov eax, dword [0x48ccf8]
call fcn.00406014
mov edi, eax
cmp edi, 0
jl 0x468948
push 0
mov eax, dword [0x48ccf8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x468932
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x468977
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041d6c0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x468957
inc dword [esi + 0x9c]
jmp 0x468a31
cmp dword [esi + 0x9c], 0
jle 0x468a31
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x468a31
cmp dword [esi + 0x44], 0
je 0x4689dd
mov eax, dword [0x48ccd4]
call fcn.0046b8dc
test al, al
je 0x4689dd
mov eax, dword [0x48ccf8]
call fcn.00406014
mov edi, eax
cmp edi, 0
jl 0x4689dd
push 5
mov eax, dword [0x48ccf8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4689c7
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x468a0c
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041d6c0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4689ec
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x48ccf8
mov ecx, 1
mov edx, dword [0x4687e0]
call fcn.004061c8
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x469518
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x469582
mov eax, ebx
call fcn.0046b8dc
test al, al
jne 0x469582
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404dc4
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x46956f
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x46958f
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404d28
jmp 0x46958f
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404d28
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x46aa00
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46aa6e
mov eax, esi
call fcn.004534ec
test al, al
je 0x46aa6e
mov eax, dword [ebx + 0x84]
call fcn.0045314c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46aa6e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x46aa62
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045314c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0044afbc
jmp 0x46aa6e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0046a83c
pop esi
pop ebx
ret
Function at 0x46e144
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x407d94]
call fcn.004057c4
xor eax, eax
push ebp
push 0x46e2e5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x486b88], 0
jne 0x46e19f
mov ecx, dword [0x48707c]
mov dl, 1
mov eax, dword [0x40818c]
call fcn.0040cee4
call fcn.0040464c
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.00403634
mov eax, ebx
call fcn.00405614
mov dword [ebp - 0x24], eax
mov esi, 0x46e2f4
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.004069cc
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.00405624
test eax, eax
jle 0x46e288
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x46e274
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00404f44
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x46e21a
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.00404f5c
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x46e230
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.00404f5c
mov eax, dword [ebp - 0x54]
call fcn.00405164
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00404f44
mov eax, dword [ebp - 0x58]
call fcn.00405164
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x46e276
xor eax, eax
test al, al
je 0x46e281
mov ebx, 0x15
jmp 0x46e28d
mov ebx, 0x10
jmp 0x46e28d
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x486b88]
call fcn.0046dfc4
mov eax, dword [ebp - 4]
call fcn.0046dfc4
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.004069e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e2ec
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00404cf8
lea eax, [ebp - 0xc]
mov edx, dword [0x407d94]
call fcn.00405894
ret
Function at 0x47d010
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405154
xor eax, eax
push ebp
push 0x47d08e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405164
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x47d059
mov eax, dword [ebx + 4]
call fcn.00405164
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceA
mov dword [ebx + 8], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
movzx eax, word [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_ReportEventA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d095
lea eax, [ebp - 4]
call fcn.00404cd4
ret

Function at 0x47e100
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47e2a5
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
xor eax, eax
call fcn.0040336c
cmp word [ebx + 0xa2], 0
je 0x47e149
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
mov eax, dword [ebx + 0x90]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x47e15d
lea esi, [ebp - 0xc]
jmp 0x47e15f
xor esi, esi
cmp dword [ebx + 0x80], 0
jne 0x47e16c
xor edi, edi
jmp 0x47e179
mov eax, dword [ebx + 0x80]
call fcn.00405164
mov edi, eax
mov eax, dword [ebx + 0x7c]
call fcn.00405164
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0047d7e0
mov eax, dword [ebp - 0x14]
call fcn.00405164
push eax
push esi
mov eax, dword [ebx + 0x74]
call fcn.00405164
push eax
mov eax, dword [ebp - 4]
call fcn.00405164
push eax
mov eax, ebx
call fcn.0047d920
push eax
mov eax, ebx
call fcn.0047d8f4
push eax
mov eax, ebx
call fcn.0047d8ac
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.0047d6ac
mov eax, dword [ebp - 0x18]
call fcn.00405164
push eax
mov eax, dword [ebx + 8]
call fcn.00405164
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x90], eax
cmp dword [ebp - 0x10], 0
jne 0x47e202
call fcn.0040e670
xor edx, edx
push ebp
push 0x47e27b
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x47e240
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xaa], 0
je 0x47e236
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47e264
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e282
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x47e2b4
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xb2], 0
je 0x47e2e0
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00405164
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x47e305
call fcn.0040e670
xor eax, eax
push ebp
push 0x47e33c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x47e325
call fcn.0040e670
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e343
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x47f6a8
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
add esp, 0xffffffa8
mov esi, edx
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x44
call fcn.00403634
mov dword [esp + 4], 0x44
mov dword [esp + 0x30], 1
mov word [esp + 0x34], si
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
push ebx
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x47f701
mov dword [esp], 0x29a
jmp 0x47f72c
push 0xffffffffffffffff
mov eax, dword [esp + 0x4c]
push eax
call sub.kernel32.dll_WaitForSingleObject
push esp
mov eax, dword [esp + 0x4c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [esp + 0x4c]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [esp + 0x48]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [esp]
add esp, 0x58
pop esi
pop ebx
ret
Function at 0x4829dc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
xor ebx, ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00405154
mov eax, dword [ebp - 8]
call fcn.00405154
xor eax, eax
push ebp
push 0x482b55
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 4]
push 0x482b6c
push 0x482b78
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405068
lea edx, [ebp - 0x10]
mov eax, dword [0x4872bc]
call fcn.0046e02c
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ecx, 0x482b88
call fcn.00406a10
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov ecx, 0x482b98
call fcn.00406a10
mov eax, dword [ebp - 0xc]
call fcn.00405164
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
mov eax, dword [ebp - 4]
call fcn.00405164
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
mov eax, dword [ebp - 8]
mov edx, 0x482bb0
call fcn.004050fc
jne 0x482aaa
lea eax, [ebp - 0x20]
push eax
push 0x10
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
jmp 0x482ab7
lea eax, [ebp - 0x20]
push eax
push 0x17
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x125]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
lea eax, [ebp - 0x12c]
lea edx, [ebp - 0x125]
mov ecx, 0x105
call fcn.00404f44
lea eax, [ebp - 0x12c]
mov edx, 0x482bc0
call fcn.00404fa0
mov edx, dword [ebp - 0x12c]
lea eax, [ebp - 0x1c]
call fcn.00405604
push 0
mov eax, dword [ebp - 0x1c]
call fcn.00405614
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482b5c
lea eax, [ebp - 0x12c]
call fcn.00404cd4
lea eax, [ebp - 0x1c]
call fcn.004054b4
lea eax, [ebp - 0x18]
call fcn.004069cc
lea eax, [ebp - 0x14]
call fcn.004069cc
lea eax, [ebp - 0x10]
call fcn.004069cc
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404cf8
ret
Function at 0x4021a6
Capabilities:
Get disk information

Disassembly:
push esi
push dword [esp + 8]
call fcn.0040bfe2
push eax
call fcn.0040bd1b
push eax
call fcn.0040bd80
mov esi, dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
add esp, 0xc
push eax
call esi
cmp eax, 2
je 0x4021f1
push dword [esp + 8]
call fcn.0040bfe2
push eax
call fcn.0040bd1b
push eax
call fcn.0040bd80
add esp, 0xc
push eax
call esi
cmp eax, 5
je 0x4021f1
xor eax, eax
pop esi
ret
push 1
pop eax
pop esi
ret

Function at 0x4021f6
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.0040bfe2
push eax
call fcn.0040bd1b
push eax
call fcn.0040bd80
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceA]
test eax, eax
jne 0x402230
leave
ret
mov eax, dword [ebp - 4]
imul eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mul dword [ebp - 0x10]
test edx, edx
je 0x402249
mov eax, 0xffffffff
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
leave
ret

Function at 0x40246c
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 8]
push esi
push eax
push 0xf0004
push 0
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov esi, eax
test esi, esi
je 0x402495
push esi
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x402508
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.0040c415
test eax, eax
pop ecx
je 0x40253a
push esi
call fcn.0040c36c
push 0x80
push esi
mov edi, eax
call fcn.0040c3bf
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
je 0x40253f
push 1
pop eax
jmp 0x40254a
push edi
push esi
call fcn.0040c3bf
pop ecx
xor eax, eax
pop ecx
pop edi
pop esi
ret
Function at 0x40258c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
call fcn.0040249a
test eax, eax
je 0x402664
lea eax, [ebp - 0xc]
xor edi, edi
push eax
push 9
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4025c0
xor eax, eax
jmp 0x402675
push ebx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push edi
push edi
push edi
mov esi, eax
push edi
push edi
lea eax, [ebp - 4]
push edi
push eax
push edi
push edi
push edi
push edi
inc esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x402659
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add eax, esi
push eax
call fcn.00412ed8
pop ecx
mov ebx, eax
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push 0x41e044
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
mov dword [ebp - 8], edi
mov eax, dword [ebp - 4]
add eax, esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push edi
push edi
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebx + esi]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x40264e
push ebx
push dword [ebp + 8]
call fcn.0040258c
pop ecx
test eax, eax
pop ecx
jne 0x402613
inc dword [ebp - 8]
jmp 0x402613
cmp ebx, edi
je 0x402659
push ebx
call fcn.00412e70
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
inc eax
pop edi
leave
ret

Function at 0x402678
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
call fcn.0040249a
xor esi, esi
test eax, eax
je 0x4026de
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4026a5
xor eax, eax
jmp 0x4026ed
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x4026a1
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
pop esi
leave
ret
Function at 0x40278f
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0xc]
push eax
push 1
push 0
and byte [esi], 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4027f0
push 0x104
push esi
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.0040c94b
add esp, 0x10
test eax, eax
push dword [ebp + 0xc]
jne 0x4027d8
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4027f0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0040bd80
push eax
call fcn.0040bc3c
pop ecx
test eax, eax
pop ecx
je 0x4027f4
xor eax, eax
jmp 0x402811
push esi
call fcn.0040c42f
test eax, eax
pop ecx
jne 0x40280e
push esi
call fcn.0040c449
test eax, eax
pop ecx
je 0x40280e
push 0
jmp 0x402800
push 1
pop eax
pop esi
pop ebp
ret

Function at 0x402875
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push edi
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov edi, 0x104
mov esi, 0x421cd0
jne 0x4028d3
push edi
push esi
push str.ProgramFilesDir
push dword [ebp - 4]
call fcn.0040c94b
add esp, 0x10
test eax, eax
push dword [ebp - 4]
je 0x4028cd
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0040c42f
test eax, eax
pop ecx
jne 0x4028f6
jmp 0x4028ed
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push str.Program_Files
push 0x422748
call fcn.0040c26a
pop ecx
pop ecx
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpynA]
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
pop edi
pop esi
leave
ret

Function at 0x4028fa
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push edi
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov edi, 0x104
mov esi, 0x421104
jne 0x402958
push edi
push esi
push str.CommonFilesDir
push dword [ebp - 4]
call fcn.0040c94b
add esp, 0x10
test eax, eax
push dword [ebp - 4]
je 0x402952
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0040c42f
test eax, eax
pop ecx
jne 0x40297b
jmp 0x402972
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push str.Common_Files
push 0x421cd0
call fcn.0040c26a
pop ecx
pop ecx
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpynA]
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
pop edi
pop esi
leave
ret