joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403cc6
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov dword [ebp - 4], eax
push ebx
lea ecx, [eax + 8]
push edi
mov di, word [eax]
mov dword [ebp - 4], ecx
mov ax, word [ecx]
call fcn.004213da
test al, al
jne 0x403ceb
inc ecx
inc ecx
mov dword [ebp - 4], ecx
push 0x63
lea eax, [ebp - 0x74]
push eax
xor ebx, ebx
push str.DEBUGMDG
mov byte [ebp - 0x74], bl
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
cmp byte [ebp - 0x74], 0x31
jne 0x403d0e
mov byte [0x48ab8c], 1
push esi
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push dword [ebp - 4]
lea ecx, [ebp - 0x10]
mov dword [0x48ab90], eax
mov dword [ebp - 0xc], ebx
call fcn.0042a183
lea ecx, [ebp - 8]
call fcn.0042460b
push 1
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
mov ecx, 0x48aec0
call fcn.0043cace
push dword [ebp - 8]
lea ecx, [ebp - 0xc]
call fcn.00424710
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 8]
mov dword [ebp - 4], eax
call fcn.00424686
lea ecx, [ebp - 0x10]
call fcn.00424686
mov ecx, dword [ebp - 4]
call fcn.00402f5a
push 0x1e
push eax
push str._InstallService
mov dword [ebp - 4], eax
mov esi, eax
call fcn.00461880
add esp, 0xc
test eax, eax
jne 0x403dbc
movzx esi, word [esi + 0x1e]
mov eax, esi
call fcn.004213da
test al, al
jne 0x403d9a
cmp si, bx
jne 0x403dbc
push 0x1e
push 0x475db8
push dword [ebp - 4]
call fcn.00461a50
mov ecx, dword [ebp - 4]
add esp, 0xc
add ecx, 0x1e
call fcn.00402f5a
mov dword [ebp - 4], eax
jmp 0x403dd3
push 8
lea eax, [ebp - 4]
push eax
push 0x475dac
call fcn.0042c9b5
add esp, 0xc
test al, al
je 0x403e16
cmp di, 0x22
jne 0x403e0c
push dword [ebp - 4]
call fcn.0046176a
mov edx, dword [ebp - 4]
pop ecx
lea ecx, [edx + eax*2 - 2]
cmp ecx, edx
jbe 0x403e0c
mov ax, word [ecx]
call fcn.004213da
test al, al
je 0x403dff
dec ecx
dec ecx
cmp ecx, edx
ja 0x403ded
cmp ecx, edx
jbe 0x403e0c
cmp word [ecx], 0x22
jne 0x403e0c
mov word [ecx], bx
push dword [ebp - 4]
call fcn.0040924e
jmp 0x403e36
push 0xe
lea eax, [ebp - 4]
push eax
push 0x475d9c
call fcn.0042c9b5
add esp, 0xc
test al, al
pop esi
je 0x403e3e
push dword [ebp - 4]
call fcn.00404888
pop ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
lea ecx, [ebp - 0xc]
call fcn.00424686
pop edi
xor eax, eax
pop ebx
leave
ret

Function at 0x403e4c
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, eax
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push dword [esi]
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [0x48ab94], 0
call ebx
and dword [esi], 0
test edi, edi
je 0x403e8b
mov eax, dword [edi]
test eax, eax
je 0x403e8b
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateJobObject]
push dword [edi]
call ebx
and dword [edi], 0
cmp byte [esp + 0x10], 0
je 0x403ea3
push 1
push 0
push str.shutdown__a
call fcn.00403125
add esp, 0xc
push dword [0x48abdc]
call fcn.004030a4
cmp byte [esp + 0x10], 0
pop ecx
je 0x403ecf
push 3
pop esi
push 0
call dword [sym.imp.ADVAPI32.dll_AbortSystemShutdownW]
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
dec esi
jne 0x403eb9
pop esi
pop ebx
ret
Function at 0x4046dc
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push ebx
push esi
push edi
mov edi, ecx
xor eax, eax
mov dword [0x48ab98], ecx
mov dword [ebp - 0xc], edi
xor ebx, ebx
jmp 0x404704
call fcn.004213da
test al, al
jne 0x40470c
inc ecx
inc ecx
mov ax, word [ecx]
cmp ax, bx
jne 0x4046f9
sub ecx, edi
sar ecx, 1
mov eax, 0x400
cmp ecx, eax
jle 0x40471b
mov ecx, eax
lea esi, [ecx + ecx]
push esi
lea eax, [ebp - 0x820]
push edi
push eax
call fcn.00461a50
push edi
mov word [ebp + esi - 0x820], bx
mov byte [0x48ae0e], bl
call fcn.0046176a
mov edi, eax
add esp, 0x10
inc edi
lea eax, [edi + 0x226]
push eax
lea ecx, [ebp - 4]
call fcn.0042465d
mov eax, dword [ebp - 4]
push 0x1cc
add eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
mov ecx, eax
cmp ecx, ebx
jle 0x40487b
mov eax, dword [ebp - 4]
mov word [eax + ecx*2 + 2], bx
mov eax, dword [ebp - 4]
lea esi, [eax + ecx*2 + 2]
mov dword [ebp - 8], esi
lea edx, [eax + 2]
xor esi, esi
mov word [eax], 0x22
jmp 0x4047a1
mov ax, word [edx]
call fcn.004213da
test al, al
je 0x40479f
xor esi, esi
inc esi
inc edx
inc edx
cmp edx, dword [ebp - 8]
jb 0x404790
cmp si, bx
mov edx, dword [ebp - 4]
lea eax, [edx + 2]
mov dword [ebp - 8], eax
je 0x4047c2
dec eax
dec eax
mov word [edx + ecx*2 + 2], 0x22
inc ecx
mov dword [ebp - 8], eax
inc ecx
push 0x1e
lea esi, [eax + ecx*2]
push 0x475f4c
push esi
call fcn.00461a50
push edi
push dword [ebp - 0xc]
add esi, 0x1e
push esi
call fcn.0040391f
add esp, 0x18
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
cmp edi, ebx
je 0x40486d
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 8]
lea eax, [ebp - 0x820]
push ebx
push 2
push pe_nt_image_headers32
push 0xf01ff
push eax
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp eax, ebx
je 0x40486d
push eax
call esi
push 0x20000000
lea eax, [ebp - 0x820]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x404866
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x404854
push 0x475f40
jmp 0x404859
push 0x475f34
call fcn.0040319e
pop ecx
push dword [ebp - 0xc]
call esi
jmp 0x404878
push 0x475f28
jmp 0x404872
push 0x475f1c
call fcn.0040319e
pop ecx
push edi
call esi
lea ecx, [ebp - 4]
call fcn.00424686
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404888
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edx, esi
xor ebx, ebx
jmp 0x4048aa
call fcn.004213da
test al, al
jne 0x4048b2
inc esi
inc esi
mov ax, word [esi]
cmp ax, bx
jne 0x40489f
mov eax, esi
sub eax, edx
sar eax, 1
mov ecx, 0x400
cmp eax, ecx
jle 0x4048c3
mov eax, ecx
lea edi, [eax + eax]
push edi
push edx
lea eax, [ebp - 0x824]
push eax
call fcn.00461a50
add esp, 0xc
mov word [ebp + edi - 0x824], bx
jmp 0x4048e3
inc esi
inc esi
mov ax, word [esi]
call fcn.004213da
test al, al
jne 0x4048e1
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], eax
je 0x404976
push 0x10020
lea ecx, [ebp - 0x824]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
mov dword [ebp + 8], eax
je 0x404976
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40493f
push 0x475f9c
call fcn.0040319e
pop ecx
mov esi, dword [sym.imp.KERNEL32.DLL_Sleep]
mov edi, 0xc8
push edi
call esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x404961
push 0x475f90
jmp 0x404966
push 0x475f84
call fcn.0040319e
pop ecx
push dword [ebp + 8]
call ebx
push edi
call esi
jmp 0x404995
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x424
jne 0x40498a
push 0x475f78
jmp 0x40498f
push 0x475f6c
call fcn.0040319e
pop ecx
push dword [ebp - 4]
call ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404a85
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7f8
push ebx
push esi
push edi
mov esi, 0x475fa8
lea edi, [ebp - 0x7f8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
mov ecx, 0x1f9
lea edi, [ebp - 0x7e6]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
call fcn.00402f5a
mov edx, eax
mov ecx, edx
call fcn.00403026
mov esi, eax
sub esi, edx
sar esi, 1
mov eax, 0x3e8
cmp esi, eax
jl 0x404ad3
mov esi, eax
push esi
push edx
lea eax, [ebp - 0x7e8]
push eax
call fcn.0040391f
add esp, 0xc
lea eax, [ebp - 0x7f8]
push eax
push 0x64
xor edi, edi
push edi
push 0x8000004
push edi
push 0xffffffffffffffff
mov word [ebp + esi*2 - 0x7e8], di
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
mov ebx, eax
cmp ebx, edi
je 0x404b48
push edi
push edi
push edi
push 6
push ebx
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp esi, edi
je 0x404b48
push 0x64
push edi
push esi
call fcn.00402f6d
mov dword [esi], 0xffffffff
mov dword [esi + 8], edi
lea eax, [esi + 4]
add esp, 0xc
mov dword [0x4890f4], eax
mov dword [0x48ab9c], esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409822
Capabilities:
Check os version
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0x48ac28
mov dword [0x48ac28], 0x114
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
cmp dword [0x48ac2c], 5
je 0x40984a
xor eax, eax
leave
ret
mov eax, dword [0x48ac30]
push ebx
push edi
xor edi, edi
sub eax, edi
je 0x409865
dec eax
jne 0x4098e6
mov ebx, 0x39000
jmp 0x40986a
mov ebx, 0x30000
push esi
push str.DevicePhysicalMemory
lea eax, [ebp - 8]
push eax
call dword [0x48ad3c]
lea eax, [ebp - 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push 6
mov esi, 0x48ad4c
push esi
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call dword [0x48abf0]
cmp eax, 0xc0000022
jne 0x4098e1
lea eax, [ebp - 0x20]
push eax
push 0x60000
push esi
call dword [0x48abf0]
push dword [0x48ad4c]
call fcn.00409754
pop ecx
push dword [0x48ad4c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x20]
push eax
push 6
push esi
call dword [0x48abf0]
cmp eax, edi
pop esi
jge 0x4098ea
xor eax, eax
jmp 0x40990e
push 0x1000
push ebx
push edi
push 6
push dword [0x48ad4c]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [0x48ad48], eax
neg eax
sbb eax, eax
and eax, dword [0x48ad4c]
pop edi
pop ebx
leave
ret

Function at 0x409912
Capabilities:
Read file via mapping

Disassembly:
mov ecx, dword [esp + 4]
push edi
mov edi, dword [esp + 0xc]
mov eax, edi
shr eax, 0x16
mov eax, dword [ecx + eax*4]
test al, 1
jne 0x40992b
xor eax, eax
pop edi
ret
test al, al
push esi
jns 0x40993e
mov esi, eax
xor esi, edi
and esi, 0x3fffff
xor esi, eax
jmp 0x409986
push 0x1000
and eax, 0xfffff000
push eax
push 0
push 4
push dword [0x48ad4c]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov ecx, edi
shr ecx, 0xc
and ecx, 0x3ff
mov ecx, dword [eax + ecx*4]
test ecx, 1
jne 0x409973
xor eax, eax
jmp 0x409988
mov esi, ecx
xor esi, edi
and esi, 0xfff
push eax
xor esi, ecx
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov eax, esi
pop esi
pop edi
ret

Function at 0x40998b
Capabilities:
Read file via mapping

Disassembly:
push esi
push dword [esp + 8]
push dword [0x48ad48]
call fcn.00409912
pop ecx
pop ecx
push 0x1000
mov esi, eax
and eax, 0xfffff000
push eax
push 0
push 6
push dword [0x48ad4c]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
test eax, eax
jne 0x4099c0
pop esi
ret
shr esi, 2
and esi, 0x3ff
mov esi, dword [eax + esi*4]
push eax
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov eax, esi
pop esi
ret
Function at 0x409d4f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
push 0x80000000
push dword [ebp + 8]
call fcn.00409ccf
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 4], eax
je 0x409de6
push esi
push eax
call fcn.00409d2d
mov esi, dword [ebp + 0x10]
test esi, esi
pop ecx
mov dword [ebp - 8], eax
je 0x409d81
mov dword [esi], eax
jmp 0x409d84
lea esi, [ebp - 8]
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x409daa
add eax, 0x10
push eax
lea ecx, [ebp + 0xc]
call fcn.00424576
mov edi, dword [ebp + 0xc]
and dword [ebp + 0xc], 0
lea ecx, [ebp + 0xc]
call fcn.00424686
test edi, edi
je 0x409dda
and dword [ebp + 0xc], 0
push 0
lea eax, [ebp + 0xc]
push eax
push dword [esi]
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [ebp + 0xc]
test eax, eax
jge 0x409dc9
xor eax, eax
push 6
mov dword [esi], eax
add eax, edi
push 0
push eax
call fcn.00461780
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
jmp 0x409de9
mov edi, dword [ebp + 0xc]
mov eax, edi
pop edi
leave
ret

Function at 0x40a3ba
Capabilities:
Parse pe header

Disassembly:
cmp dword [esp + 8], 0x40
jb 0x40a3cf
mov eax, dword [esp + 4]
mov dword [ecx + 0xc], eax
cmp word [eax], 0x5a4d
je 0x40a3d3
xor eax, eax
jmp 0x40a43e
mov edx, dword [eax + 0x3c]
push esi
lea esi, [edx + 0xf8]
cmp dword [esp + 0xc], esi
jae 0x40a3e7
xor eax, eax
jmp 0x40a43d
add eax, edx
mov dword [ecx + 0x10], eax
cmp dword [eax], 0x4550
jne 0x40a3e3
mov dx, word [eax + 0x16]
test dh, 0x20
je 0x40a3e3
test dl, 2
je 0x40a3e3
cmp word [eax + 0x14], 0xe0
jne 0x40a3e3
mov esi, dword [ecx + 0x10]
add eax, 0xf8
xor edx, edx
mov dword [ecx + 0x14], eax
cmp word [esi + 6], dx
jbe 0x40a43a
add eax, 0x10
mov esi, dword [eax + 4]
add esi, dword [eax]
cmp esi, dword [esp + 0xc]
ja 0x40a3e3
mov esi, dword [ecx + 0x10]
movzx esi, word [esi + 6]
inc edx
add eax, 0x28
cmp edx, esi
jl 0x40a420
xor eax, eax
inc eax
pop esi
ret 8

Function at 0x40a56f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [0x48ade4], ebx
push esi
je 0x40a5d5
cmp byte [ebp + 8], bl
je 0x40a5d5
mov eax, dword [0x48aea8]
cmp word [eax], bx
je 0x40a5d5
test byte [0x48b138], 2
mov esi, eax
je 0x40a5b6
push ebx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push eax
push esi
push dword [0x48ade4]
call dword [sym.imp.KERNEL32.DLL_WriteConsoleW]
jmp 0x40a5d5
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push ebx
lea ecx, [ebp - 4]
push ecx
shl eax, 1
push eax
push esi
push dword [0x48ade4]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov esi, 0x10000
push esi
mov ecx, 0x48aea8
call fcn.00424699
mov eax, dword [0x48aea8]
mov word [eax], bx
mov dword [0x48aeb0], esi
pop esi
mov dword [0x48aeac], ebx
pop ebx
leave
ret
Function at 0x40a998
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
xor esi, esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExW]
cmp dword [ebp + 0x10], esi
je 0x40a9d0
cdq
jmp 0x40a9e3
cmp dword [ebp + 0xc], esi
je 0x40a9dd
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
jmp 0x40a9e3
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
leave
ret

Function at 0x40ad58
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
push esi
push edi
push 0x325
lea ecx, [ebp - 8]
call fcn.0042465d
mov esi, dword [ebp - 8]
push esi
push 0x324
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_CharUpperW]
push ebx
call edi
push esi
call edi
cmp word [esi], 0
je 0x40adec
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
add eax, 0x10
mov dword [ebp - 0xc], eax
push esi
call fcn.0040a9e6
cmp eax, dword [ebp - 0xc]
pop ecx
jb 0x40addb
push esi
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
dec eax
dec eax
je 0x40add5
dec eax
jne 0x40addb
mov ax, word [esi]
mov word [edi + 2], ax
mov cx, word [esi]
xor eax, eax
inc eax
cmp cx, word [ebx]
mov dword [ebp - 4], eax
jb 0x40addb
mov esi, eax
jmp 0x40adef
mov ax, word [esi]
mov word [edi], ax
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x40ada2
mov esi, dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00424686
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40b300
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
mov esi, 0x476bdc
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
mov byte [ebp - 1], 0
mov byte [ebp - 2], 0
mov edi, 0x48aec0
movsx ax, byte [ebp - 2]
add eax, 0x41
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 5
jne 0x40b39a
movsx ebx, byte [ebp - 1]
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x218]
push str.HKLMSYSTEMCurrentControlSetControlSession_ManagerEnvironmentCDROM_u_s
push eax
call esi
add esp, 0x10
push 0
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.004499d6
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x218]
push str.CDROM_u
push eax
call esi
add esp, 0x10
inc byte [ebp - 1]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.00428e1b
inc byte [ebp - 2]
cmp byte [ebp - 2], 0x1a
jl 0x40b32a
cmp byte [ebp - 1], 0
pop edi
pop esi
pop ebx
jle 0x40b3be
mov ecx, dword [ebp + 8]
xor eax, eax
push eax
push eax
push eax
push str.THREAD_Envi
call fcn.0041e84e
leave
ret
Function at 0x40b5b9
Capabilities:
Check mutex on windows

Disassembly:
push esi
push dword [esp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40b5d7
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, esi
pop esi
ret

Function at 0x40b989
Capabilities:
Log keystrokes via application hook

Disassembly:
cmp dword [0x48adc4], 0
jne 0x40b9ac
push 0
push dword [0x48add0]
push 0x40b8d1
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x48adc4], eax
ret

Function at 0x40bacf
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
jne 0x40baea
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov esi, eax
push esi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x22c], 0x22c
mov dword [ebp - 0x228], ebx
mov ecx, 0x89
lea edi, [ebp - 0x224]
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [ebp - 0x22c]
push eax
push edi
call sub.KERNEL32.DLL_Process32FirstW
jmp 0x40bb39
cmp dword [ebp - 0x224], esi
je 0x40bb3f
lea eax, [ebp - 0x22c]
push eax
push edi
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x40bb24
jmp 0x40bb45
mov ebx, dword [ebp - 0x214]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
dec dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0
mov esi, ebx
jg 0x40baea
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x40bbef
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
push edi
je 0x40bc13
cmp dword [ebp + 0xc], 2
jne 0x40bc42
mov edi, dword [ebp + 0x14]
push 0x104
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
jmp 0x40bc16
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x18], 0
je 0x40bc26
push dword [ebp + 0x18]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [esi + 2]
push eax
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
push edi
push esi
mov ecx, 0x48aec0
call fcn.00428e1b
pop esi
pop edi
pop ebp
ret
Function at 0x40bcc3
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x411
lea ecx, [ebp - 0xc]
mov byte [0x48aecb], 1
call fcn.0042465d
push 0x822
push 0
push dword [ebp - 0xc]
call fcn.00461780
mov esi, dword [ebp - 0xc]
add esp, 0xc
push 0x104
mov dword [ebp - 0x10], esi
add esi, 0x410
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push str.PE_IDBASE
push 0x1000
mov edi, 0x48aec0
push edi
call fcn.0042d52d
push str.WM_PE_BASE
push 0x5000
push edi
call fcn.0042d52d
mov edi, dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
add esp, 0x18
push esi
push 0x476e4a
call edi
push esi
mov ebx, 0x48aec0
push str.MyName
mov ecx, ebx
call fcn.00428e1b
push 0x5c
push 0
push esi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
je 0x40bd80
add eax, 2
push eax
push 0x476e36
mov dword [ebp - 0x18], eax
call edi
push dword [ebp - 0x18]
mov ecx, ebx
push str.MyName0
call fcn.00428e1b
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push str.Desktop
call fcn.0040bc45
mov dword [esp], str.Favorites
call fcn.0040bc45
mov dword [esp], str.IECache
call fcn.0040bc45
mov dword [esp], str.Programs
call fcn.0040bc45
mov dword [esp], str.SendTo
call fcn.0040bc45
mov dword [esp], str.Personal
call fcn.0040bc45
lea ecx, [ebp - 0x14]
mov dword [esp], 0x476e0c
call fcn.0042a183
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
mov ebx, 0x476538
push ebx
mov edi, 0x80000001
push edi
mov dword [ebp - 8], 0x410
call fcn.0042548c
add esp, 0x18
test eax, eax
je 0x40be28
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push str.Start_Menu
push ebx
push edi
call fcn.0042548c
add esp, 0x18
test eax, eax
jne 0x40be3e
push 0
push dword [ebp - 0x10]
push esi
push dword [ebp - 4]
push 0x47663c
call fcn.0040bbef
add esp, 0x14
push str.Startup
call fcn.0040bc45
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push str.AppData
push ebx
push edi
mov dword [ebp - 8], 0x410
call fcn.0042548c
add esp, 0x1c
test eax, eax
jne 0x40be88
push str.MicrosoftInternet_ExplorerQuick_Launch
push dword [ebp - 0x10]
push esi
push dword [ebp - 4]
push str.QuickLaunch
call fcn.0040bbef
add esp, 0x14
lea ecx, [ebp - 0x14]
call fcn.00424686
lea ecx, [ebp - 0xc]
call fcn.00424686
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c8c4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
push 6
pop ecx
push dword [ebp + 8]
mov esi, str.format.com
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
call fcn.0046176a
mov esi, dword [ebp + 0xc]
push esi
mov edi, eax
call fcn.0046176a
add edi, eax
pop ecx
pop ecx
lea eax, [edi + edi + 0x1a]
add eax, 0x1e
push eax
lea ecx, [ebp - 4]
call fcn.00424576
mov ebx, dword [ebp - 4]
push 0x10
pop ecx
xor eax, eax
mov dword [ebp - 0x70], 0x44
lea edi, [ebp - 0x6c]
rep stosd dword es:[edi], eax
or dword [ebp - 0x44], 1
lea eax, [ebp - 0x2c]
push eax
xor edi, edi
push ebx
mov word [ebp - 0x40], di
call fcn.004624db
push dword [ebp + 8]
push ebx
call fcn.004624b1
push 0x476010
push ebx
call fcn.004624b1
add esp, 0x18
cmp word [esi], 0x22
jne 0x40c960
inc esi
inc esi
push esi
call fcn.0046176a
cmp eax, edi
pop ecx
jle 0x40c960
lea eax, [esi + eax*2 - 2]
cmp word [eax], 0x22
jne 0x40c960
mov word [eax], di
push esi
push ebx
call fcn.004624b1
pop ecx
pop ecx
push 0x477650
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x40c986
push 0x477644
push ebx
call fcn.004624b1
pop ecx
pop ecx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x70]
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
jne 0x40c9b1
push str.Cannot_format_drive:
call fcn.0040c346
pop ecx
push 8
pop edi
jmp 0x40c9cc
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 0x14]
call esi
lea ecx, [ebp - 4]
call fcn.00424686
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret