joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f5f8
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 0x45f736
lea eax, [ebp - 0x68]
call fcn.0045eb30
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 0x45f71f
xor eax, eax
push ebp
push 0x45f718
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 0x45f701
xor eax, eax
push ebp
push 0x45f6fa
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 0x45f6e3
xor eax, eax
push ebp
push 0x45f6dc
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.0045eb54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f6e3
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 0x45f701
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 0x45f71f
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
lea edx, [ebp - 0x78]
lea eax, [ebp - 0x68]
call fcn.0045ebe8
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 0x46044c
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push ecx
mov ebx, eax
cmp byte [ebx + 0x30], 0
jne 0x4604cc
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 0x4604cc
cmp byte [ebx + 0x31], 1
jne 0x4604b7
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 0x4606cc
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 0x46076a
movzx eax, byte [ebx]
add al, 0xd0
sub al, 0xa
jae 0x460709
mov eax, ebx
call fcn.004059dc
push eax
call sub.wsock32.dll_inet_addr
inc eax
je 0x460776
mov eax, esi
mov edx, ebx
call fcn.00405584
jmp 0x460776
mov eax, ebx
call fcn.004059dc
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x460776
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, 0x460788
call fcn.0040af98
jmp 0x460776
mov eax, esi
mov edx, 0x46079c
call fcn.00405584
add esp, 0x20
pop edi
pop esi
pop ebx
ret

Function at 0x4607e0
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 0x46081d
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 0x4619e4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, eax
movzx eax, bl
cmp eax, 0x5b
jge 0x461a20
cmp eax, 0x2e
jge 0x461a08
sub eax, 0x23
je 0x461a6e
sub eax, 2
je 0x461a4f
sub eax, 6
je 0x461a4f
jmp 0x461a89
add eax, 0xffffffd2
sub eax, 0xc
jb 0x461a4f
sub eax, 5
je 0x461a4f
dec eax
je 0x461a6e
dec eax
sub eax, 0x1a
jb 0x461a4f
jmp 0x461a89
cmp eax, 0xa3
jg 0x461a3e
je 0x461a4f
add eax, 0xffffffa5
sub eax, 4
jb 0x461a6e
dec eax
je 0x461a6e
add eax, 0xffffffe5
sub eax, 4
jb 0x461a6e
jmp 0x461a89
sub eax, 0xa7
je 0x461a4f
sub eax, 9
je 0x461a4f
sub eax, 5
jne 0x461a89
mov dl, 1
mov al, 0x10
call fcn.00461990
push ebx
call sub.user32.dll_VkKeyScanA
call fcn.004619c4
xor edx, edx
mov al, 0x10
call fcn.00461990
pop ebx
ret
mov al, 1
call fcn.004619ac
push ebx
call sub.user32.dll_VkKeyScanA
call fcn.004619c4
xor eax, eax
call fcn.004619ac
pop ebx
ret
push ebx
call sub.user32.dll_VkKeyScanA
call fcn.004619c4
pop ebx
ret

Function at 0x46587c
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
test eax, 0x4000000
je 0x465891
or edx, 0x200
test eax, 0x20000000
je 0x4658c4
test eax, 0x40000000
je 0x4658b0
test eax, 0x80000000
je 0x4658ab
or edx, 0x40
jmp 0x4658eb
or edx, 0x20
jmp 0x4658eb
test eax, 0x80000000
je 0x4658bf
or edx, 0x80
jmp 0x4658eb
or edx, 0x10
jmp 0x4658eb
test eax, 0x40000000
je 0x4658dc
test eax, 0x80000000
je 0x4658d7
or edx, 4
jmp 0x4658eb
or edx, 2
jmp 0x4658eb
test eax, 0x80000000
je 0x4658e8
or edx, 8
jmp 0x4658eb
or edx, 1
mov eax, edx
pop ebp
ret 4
Function at 0x4667dc
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 0x466858
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, 0x4667b4
lea eax, [esi + 5]
call fcn.004667d4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004667d4
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 0x46682d
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 0x4669d4
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 0x466aea
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 0x466af5
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 8]
mov eax, dword [ebp - 4]
cmp word [eax + 0xa2], 0
je 0x466a78
mov eax, ebx
call fcn.00402f00
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x466a71
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 0x466a78
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 0x466af5
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 0x466af5
jmp 0x466af5
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00466ca8
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x466afc
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 0x466b75
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 0x466b75
movzx esi, byte [ebx + 0x91]
test esi, esi
jle 0x466b54
mov eax, ebx
call fcn.00466c40
dec esi
jne 0x466b4a
mov eax, dword [ebx + 0x94]
push eax
call sub.winmm.dll_waveInStart
test eax, eax
jne 0x466b75
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 0x466c40
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.004661b8
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 0x466ca0
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 0x466d4c
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 0x466d72
mov byte [ebp - 1], 0
jmp 0x466f42
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 0x466f3b
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 0x466e0f
mov byte [ebp - 1], 0
call fcn.00404f70
jmp 0x466f42
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 0x466e49
mov byte [ebp - 1], 0
call fcn.00404f70
jmp 0x466f42
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 0x466ee6
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 0x466ef1
mov byte [ebp - 1], 0
call fcn.00404f70
jmp 0x466f42
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466f42
cmp dword [ebp - 0x14], 0
je 0x466f0d
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp dword [ebp - 0x10], 0
je 0x466f1c
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp dword [ebp - 0xc], 0
je 0x466f2b
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp dword [ebp - 8], 0
je 0x466f3a
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 0x468a60
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 0x468a8f
mov eax, dword [ebx + 0x28]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x68]
ja 0x468b0e
push esi
mov eax, dword [ebx + 0x34]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.004676d0
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 0x468adc
mov cx, word [esp]
sub cx, si
jmp 0x468ade
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x468ac5
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 0x468b04
mov cx, word [esp]
sub cx, si
jmp 0x468b06
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x468aed
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x468b6b
mov edx, dword [ebx + 0x34]
mov ecx, edi
add edx, dword [ebx + 0x68]
mov eax, ebp
add edx, dword [ebx + 0x70]
call fcn.00468750
add dword [ebx + 0x70], eax
cmp dword [ebx + 0x70], 3
jb 0x468b56
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 0x468b6b
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x468a6a
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x46d36c
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 0x46d3d9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, 0x46d3ec
call fcn.00405864
mov eax, dword [ebp - 8]
call fcn.004059dc
push eax
push 0x46d3f0
push 0x46d3f8
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d3e0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405554
ret
Function at 0x46d854
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x46d85c
push ecx
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
push ebp
push 0x46d995
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, 0x46d9ac
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 0x46d95e
lea eax, [ebp - 0x18]
call fcn.00489d40
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, 0x46d9b0
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 0x46d920
lea eax, [ebp - 8]
mov edx, 0x46d9bc
call fcn.004055c8
jmp 0x46d92f
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 0x46d9ac
push 0x46d9d0
push dword [ebp - 8]
push 0x46d9dc
lea eax, [ebp - 4]
mov edx, 6
call fcn.004058e0
inc ebx
cmp bl, 0x5b
jne 0x46d879
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 0x46d99c
lea eax, [ebp - 0x2c]
call fcn.00405530
lea eax, [ebp - 0x20]
mov edx, 8
call fcn.00405554
ret

Function at 0x46d9e0
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 0x46da50
Capabilities:
Hide graphical window

Disassembly:
push 0
push 0x46da84
call sub.user32.dll_FindWindowA
push 0
push 0x46da94
push 0
push eax
call sub.user32.dll_FindWindowExA
push 0
push 0x46daa4
push 0
push eax
call sub.user32.dll_FindWindowExA
push 0
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x46dab4
Capabilities:
Hide graphical window

Disassembly:
push 0
push 0x46dae8
call sub.user32.dll_FindWindowA
push 0
push 0x46daf8
push 0
push eax
call sub.user32.dll_FindWindowExA
push 0
push 0x46db08
push 0
push eax
call sub.user32.dll_FindWindowExA
push 5
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x46db18
Capabilities:
Hide graphical window

Disassembly:
push 0
push 0x46db3c
call sub.user32.dll_FindWindowA
push 0
push 0x46db4c
push 0
push eax
call sub.user32.dll_FindWindowExA
push 0
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x46db5c
Capabilities:
Hide graphical window

Disassembly:
push 0
push 0x46db80
call sub.user32.dll_FindWindowA
push 0
push 0x46db90
push 0
push eax
call sub.user32.dll_FindWindowExA
push 5
push eax
call sub.user32.dll_ShowWindow
ret
Function at 0x46dba0
Capabilities:
Hide graphical window

Disassembly:
push 0
push 0x46dbc4
call sub.user32.dll_FindWindowA
push 0
push 0x46dbd4
push 0
push eax
call sub.user32.dll_FindWindowExA
push 0
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x46dbe4
Capabilities:
Hide graphical window

Disassembly:
push 0
push 0x46dc08
call sub.user32.dll_FindWindowA
push 0
push 0x46dc18
push 0
push eax
call sub.user32.dll_FindWindowExA
push 5
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x46dc28
Capabilities:
Hide graphical window

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

Function at 0x46dc4c
Capabilities:
Hide graphical window

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

Function at 0x46dc70
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 0x46dd2b
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 0x46dd10
xor eax, eax
push ebp
push 0x46dd09
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 0x46dd10
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 0x46dd32
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405554
ret
Function at 0x46dd38
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
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 0x46ddf8
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 0x46dddd
xor eax, eax
push ebp
push 0x46ddd6
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
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push ebx
call sub.advapi32.dll_StartServiceA
push ebx
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46dddd
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 0x46ddff
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405554
ret

Function at 0x46e0dc
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
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
mov eax, dword [ebp - 0xc]
call fcn.004059cc
xor eax, eax
push ebp
push 0x46e238
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409edc
cmp eax, 5
ja case.default.0x46e122
jmp dword [eax*4 + 0x46e129]
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
mov eax, dword [ebp - 8]
call fcn.004059dc
push eax
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExA_1
jmp case.default.0x46e122
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
mov eax, dword [ebp - 8]
call fcn.004059dc
push eax
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
jmp case.default.0x46e122
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
mov eax, dword [ebp - 8]
call fcn.004059dc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
jmp case.default.0x46e122
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
mov eax, dword [ebp - 8]
call fcn.004059dc
push eax
push 0x80000003
call sub.advapi32.dll_RegOpenKeyExA_1
jmp case.default.0x46e122
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
mov eax, dword [ebp - 8]
call fcn.004059dc
push eax
push 0x80000005
call sub.advapi32.dll_RegOpenKeyExA_1
jmp case.default.0x46e122
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
mov eax, dword [ebp - 8]
call fcn.004059dc
push eax
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
mov eax, dword [ebp - 0xc]
call fcn.004059dc
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e23f
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405554
ret