joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45dab4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x45dc19
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
mov eax, esi
call fcn.00404fb0
mov ebx, eax
push ebx
call sub.version.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
seta byte [ebp - 0xd]
cmp byte [ebp - 0xd], 0
je 0x45dbfb
push edi
call fcn.004063e4
pop ecx
mov dword [ebp - 0x20], eax
xor edx, edx
push ebp
push 0x45dbf4
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x20]
push eax
push edi
push 0
push ebx
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x45dc30
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueA
mov esi, dword [ebp - 0xc]
test esi, esi
jb 0x45dbdc
inc esi
mov ebx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x24]
movzx eax, word [eax]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0
mov eax, dword [ebp - 0x24]
movzx eax, word [eax + 2]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
mov eax, dword [ebx]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0xb
lea edx, [ebp - 0x40]
mov ecx, 2
mov eax, 0x45dc54
call fcn.00409ad4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
call fcn.00404fb0
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueA
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebx]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 6
lea edx, [ebp - 0x54]
mov ecx, 1
mov eax, 0x45dc7c
call fcn.00409ad4
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
add ebx, 4
dec esi
jne 0x45db4a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45dbfb
mov eax, dword [ebp - 0x20]
push eax
call fcn.004063f4
pop ecx
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45dc20
lea eax, [ebp - 0x44]
call fcn.00404b20
lea eax, [ebp - 4]
call fcn.00404b20
ret

Function at 0x45dd84
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffec
mov ebx, eax
mov dword [esp], 0x10
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
mov edx, ebx
lea eax, [esp + 4]
call fcn.004095e4
add esp, 0x14
pop ebx
ret
Function at 0x45ddac
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd6c
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.00404b20
lea eax, [ebp - 0x294]
push eax
push 0x202
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x45de39
xor eax, eax
push ebp
push 0x45de32
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.wsock32.dll_gethostname
test eax, eax
jne 0x45de1f
lea eax, [ebp - 0x104]
push eax
call sub.wsock32.dll_gethostbyname
mov esi, eax
test esi, esi
je 0x45de1f
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, ebx
call fcn.00404d18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45de39
call sub.wsock32.dll_WSACleanup
ret
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45df04
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push 0x105
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
mov eax, esp
call fcn.004095e4
add esp, 0x108
pop ebx
ret

Function at 0x45df8c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x45e00b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push esi
lea eax, [ebp - 0x105]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathA
test eax, eax
je 0x45dfeb
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00404d90
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0045d578
jmp 0x45dff2
mov eax, ebx
call fcn.00404b20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e012
lea eax, [ebp - 0x10c]
call fcn.00404b20
ret

Function at 0x45e02c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
add esp, 0xfffffc00
mov esi, edx
mov ebx, eax
push 0x400
lea eax, [esp + 4]
push eax
mov eax, ebx
call fcn.00404fb0
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov eax, esi
mov edx, esp
mov ecx, 0x400
call fcn.00404d90
add esp, 0x400
pop esi
pop ebx
ret

Function at 0x45e1d4
Capabilities:
Get session user name

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
mov dword [esp], 0x105
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameA
mov edx, ebx
lea eax, [esp + 4]
call fcn.004095e4
add esp, 0x10c
pop ebx
ret
Function at 0x45e60c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov dword [esp], eax
mov esi, 0x46f754
mov eax, dword [esp]
movzx ecx, byte [eax + 0x40]
movzx edi, cl
mov eax, edi
add eax, 0x10
mov ebx, dword [esp]
mov byte [ebx + eax], dl
movzx eax, cl
mov ebx, dword [esp]
movzx ebx, byte [ebx + eax]
xor bl, dl
push ebx
add edi, 0x20
mov ebx, dword [esp + 4]
lea edi, [ebx + edi]
pop ebx
mov byte [edi], bl
mov ebx, dword [esp]
lea ebx, [ebx + eax + 0x30]
push ebx
mov ebx, dword [esp + 4]
xor dl, byte [ebx + 0x41]
and dl, 0xff
movzx edx, dl
movzx edx, byte [esi + edx]
pop ebx
xor byte [ebx], dl
mov edx, dword [esp]
movzx eax, byte [edx + eax + 0x30]
mov edx, dword [esp]
mov byte [edx + 0x41], al
lea eax, [ecx + 1]
and al, 0xf
mov edx, dword [esp]
mov byte [edx + 0x40], al
mov ecx, eax
test cl, cl
jne 0x45e6f1
xor eax, eax
mov byte [esp + 4], 0
mov edx, dword [esp]
mov cl, 8
movzx eax, al
movzx eax, byte [esi + eax]
xor byte [edx], al
movzx eax, byte [edx]
inc edx
movzx eax, al
movzx eax, byte [esi + eax]
xor byte [edx], al
movzx eax, byte [edx]
inc edx
movzx eax, al
movzx eax, byte [esi + eax]
xor byte [edx], al
movzx eax, byte [edx]
inc edx
movzx eax, al
movzx eax, byte [esi + eax]
xor byte [edx], al
movzx eax, byte [edx]
inc edx
movzx eax, al
movzx eax, byte [esi + eax]
xor byte [edx], al
movzx eax, byte [edx]
inc edx
movzx eax, al
movzx eax, byte [esi + eax]
xor byte [edx], al
movzx eax, byte [edx]
inc edx
dec cl
jne 0x45e690
add al, byte [esp + 4]
inc byte [esp + 4]
cmp byte [esp + 4], 0x12
jne 0x45e68b
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x45e898
Capabilities:
Hash data with md5

Disassembly:
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x45f798
Capabilities:
Encode data using xor

Disassembly:
push esi
push ebx
push eax
mov eax, dword [eax]
mov esi, edx
or ecx, ecx
je 0x45f7bc
mov edx, eax
shl edx, 8
mov bl, byte [esi]
shr eax, 0x18
xor al, bl
mov eax, dword [eax*4 + 0x46fc94]
xor eax, edx
inc esi
dec ecx
jne 0x45f7a3
mov ecx, eax
pop eax
mov dword [eax], ecx
pop ebx
pop esi
ret

Function at 0x45f7c4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
push ebx
push eax
mov eax, dword [eax]
mov esi, edx
xor ebx, ebx
or ecx, ecx
je 0x45f7f2
mov edx, eax
shr edx, 8
and edx, 0xffffff
mov bl, byte [esi]
xor eax, ebx
and eax, 0xff
mov eax, dword [eax*4 + 0x46f894]
xor eax, edx
inc esi
dec ecx
jne 0x45f7d1
mov ecx, eax
pop eax
mov dword [eax], ecx
pop ebx
pop esi
ret
Function at 0x45fb40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea4
push ebx
push esi
push edi
mov dword [ebp - 8], eax
lea edi, [ebp - 0x1c]
mov edx, edi
mov eax, dword [ebp - 8]
mov ecx, 0x14
call fcn.00403050
xor esi, esi
lea ebx, [ebp - 0x15c]
mov eax, dword [ebp - 8]
add eax, 0x30
mov edx, esi
add edx, edx
add edx, edx
add eax, edx
mov eax, dword [eax]
call fcn.0045e4c8
mov dword [ebx], eax
inc esi
add ebx, 4
cmp esi, 0x10
jne 0x45fb69
mov esi, 0x40
lea ebx, [ebp - 0x128]
mov eax, dword [ebx]
xor eax, dword [ebx - 0x14]
xor eax, dword [ebx - 0x2c]
xor eax, dword [ebx - 0x34]
mov dl, 1
call fcn.0045e470
mov dword [ebx + 0xc], eax
add ebx, 4
dec esi
jne 0x45fb94
xor esi, esi
lea ebx, [ebp - 0x15c]
mov eax, dword [edi + 0xc]
push eax
mov eax, esi
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
call fcn.0045fad4
push eax
mov dl, 5
mov eax, dword [edi]
call fcn.0045e470
pop edx
add edx, eax
add edx, dword [edi + 0x10]
push edx
mov eax, esi
call fcn.0045fb18
pop edx
add edx, eax
add edx, dword [ebx]
mov dword [ebp - 4], edx
mov eax, dword [edi + 0xc]
mov dword [edi + 0x10], eax
mov eax, dword [edi + 8]
mov dword [edi + 0xc], eax
mov dl, 0x1e
mov eax, dword [edi + 4]
call fcn.0045e470
mov dword [edi + 8], eax
mov eax, dword [edi]
mov dword [edi + 4], eax
mov eax, dword [ebp - 4]
mov dword [edi], eax
inc esi
add ebx, 4
cmp esi, 0x50
jne 0x45fbb7
mov esi, 5
mov eax, edi
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
add dword [edx], ecx
add edx, 4
add eax, 4
dec esi
jne 0x45fc1e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45ff30
Capabilities:
Hash data using sha1

Disassembly:
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret

Function at 0x45ff70
Capabilities:
Hash data using sha256

Disassembly:
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
ret

Function at 0x45ffc4
Capabilities:
Hash data using sha224

Disassembly:
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0xcbbb9d5d
mov dword [eax + 8], 0x367cd507
mov dword [eax + 0xc], 0x629a292a
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x14], 0x9159015a
mov dword [eax + 0x18], 0xf70e5939
mov dword [eax + 0x1c], 0x152fecd8
mov dword [eax + 0x20], 0xffc00b31
mov dword [eax + 0x24], 0x67332667
mov dword [eax + 0x28], 0x68581511
mov dword [eax + 0x2c], 0x8eb44a87
mov dword [eax + 0x30], 0x64f98fa7
mov dword [eax + 0x34], 0xdb0c2e0d
mov dword [eax + 0x38], 0xbefa4fa4
mov dword [eax + 0x3c], 0x47b5481d
ret
Function at 0x460050
Capabilities:
Hash data using sha256

Disassembly:
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax], 0xf3bcc908
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x3c], 0x5be0cd19
ret

Function at 0x460b3c
Capabilities:
Get disk information

Disassembly:
push ebx
add esp, 0xfffffff4
mov ebx, eax
xor eax, eax
mov dword [esp], eax
push 0
push 0
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
mov eax, ebx
call fcn.00404fb0
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
jne 0x460b74
call fcn.0040db50
mov eax, dword [esp]
add esp, 0xc
pop ebx
ret

Function at 0x460bc0
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x460c98
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040d160
push 0
push 0
push 3
push 0
push 3
push 0
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 4]
mov edx, 0x460cb0
call fcn.00404e38
mov eax, dword [ebp - 0x20]
call fcn.00404fb0
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x460c21
call fcn.0040db50
xor eax, eax
push ebp
push 0x460c73
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x10]
push eax
push 0xc
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0x2d1080
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
jne 0x460c56
call fcn.0040db50
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460c7a
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
Function at 0x4611b0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x89
push 0
push 0
dec ecx
jne 0x4611b9
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x461436
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 3
push 0
push 3
push 0
lea eax, [ebp - 0x418]
push eax
mov dword [ebp - 0x420], esi
mov byte [ebp - 0x41c], 0
lea edx, [ebp - 0x420]
xor ecx, ecx
mov eax, 0x46144c
call fcn.00409ad4
mov eax, dword [ebp - 0x418]
call fcn.00404fb0
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x404], eax
cmp dword [ebp - 0x404], 0xffffffff
jne 0x461232
call fcn.0040db50
xor eax, eax
push ebp
push 0x461406
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x414]
xor ecx, ecx
mov edx, 0xc
call fcn.00403558
xor eax, eax
mov dword [ebp - 0x414], eax
xor eax, eax
mov dword [ebp - 0x410], eax
push 0
lea eax, [ebp - 0x408]
push eax
push 0x400
lea eax, [ebp - 0x400]
push eax
push 0xc
lea eax, [ebp - 0x414]
push eax
push 0x2d1400
mov eax, dword [ebp - 0x404]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
jne 0x46129a
call fcn.0040db50
movzx eax, byte [ebp - 0x3f8]
mov byte [edi], al
mov esi, dword [ebp - 0x3f4]
test esi, esi
jbe 0x4612de
lea edx, [ebp - 0x428]
lea eax, [ebp + esi - 0x400]
call fcn.004095e4
mov eax, dword [ebp - 0x428]
lea edx, [ebp - 0x424]
call fcn.00408994
mov edx, dword [ebp - 0x424]
lea eax, [edi + 1]
call fcn.00404b74
mov esi, dword [ebp - 0x3f0]
test esi, esi
jbe 0x461319
lea edx, [ebp - 0x430]
lea eax, [ebp + esi - 0x400]
call fcn.004095e4
mov eax, dword [ebp - 0x430]
lea edx, [ebp - 0x42c]
call fcn.00408994
mov edx, dword [ebp - 0x42c]
lea eax, [edi + 5]
call fcn.00404b74
mov esi, dword [ebp - 0x3ec]
test esi, esi
jbe 0x461354
lea edx, [ebp - 0x438]
lea eax, [ebp + esi - 0x400]
call fcn.004095e4
mov eax, dword [ebp - 0x438]
lea edx, [ebp - 0x434]
call fcn.00408994
mov edx, dword [ebp - 0x434]
lea eax, [edi + 9]
call fcn.00404b74
mov esi, dword [ebp - 0x3e8]
test esi, esi
jbe 0x4613ec
test bl, bl
je 0x4613aa
lea edx, [ebp - 0x444]
lea eax, [ebp + esi - 0x400]
call fcn.004095e4
mov eax, dword [ebp - 0x444]
lea edx, [ebp - 0x440]
call fcn.00408994
mov eax, dword [ebp - 0x440]
lea edx, [ebp - 0x43c]
call fcn.00460e78
mov edx, dword [ebp - 0x43c]
lea eax, [edi + 0xd]
call fcn.00404b74
jmp 0x4613ec
lea edx, [ebp - 0x450]
lea eax, [ebp + esi - 0x400]
call fcn.004095e4
mov eax, dword [ebp - 0x450]
lea edx, [ebp - 0x44c]
call fcn.00461014
mov eax, dword [ebp - 0x44c]
lea edx, [ebp - 0x448]
call fcn.00408994
mov edx, dword [ebp - 0x448]
lea eax, [edi + 0xd]
call fcn.00404b74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46140d
mov eax, dword [ebp - 0x404]
push eax
call sub.kernel32.dll_CloseHandle
ret
Function at 0x461a20
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x461a33
add esp, 0xfffffff0
call fcn.00403f64
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
lea eax, [ebx + 4]
mov edx, dword [ebp + 8]
call fcn.00404b74
lea eax, [ebx + 8]
mov edx, esi
call fcn.00404b74
mov eax, dword [ebx + 8]
call fcn.00404fb0
push eax
push 0xffffffffffffffff
push 0
call fcn.00406b44
mov dword [ebx + 0x10], eax
call sub.kernel32.dll_GetLastError
cmp eax, 5
je 0x461a79
cmp eax, 0xb7
je 0x461a79
xor eax, eax
jmp 0x461a7b
mov al, 1
mov byte [ebx + 0x15], al
mov eax, dword [ebx + 4]
call fcn.00404fb0
push eax
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebx + 0xc], eax
call sub.kernel32.dll_GetLastError
cmp eax, 5
je 0x461aae
cmp eax, 0xb7
je 0x461aae
xor edx, edx
jmp 0x461ab0
mov dl, 1
mov byte [ebx + 0x14], dl
mov edi, dword [ebx + 0xc]
test edi, edi
je 0x461ad6
mov esi, 4
test dl, dl
jne 0x461ac6
or esi, 2
push 4
push 0
push 0
push esi
push edi
call sub.kernel32.dll_MapViewOfFile
mov dword [ebx + 0x18], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x461aed
call fcn.00403fbc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x46a020
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
mov ebx, eax
push 0x80000001
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
je 0x46a0e1
xor eax, eax
push ebp
push 0x46a0da
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
mov eax, ebx
call fcn.00404fb0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
je 0x46a0c3
xor eax, eax
push ebp
push 0x46a0bc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceStatus
cmp dword [ebp - 0x24], 4
sete byte [ebp - 1]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a0c3
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 0x46a0e1
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
movzx eax, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46a0ec
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
je 0x46a1c9
xor eax, eax
push ebp
push 0x46a1c2
push dword fs:[eax]
mov dword fs:[eax], esp
push 5
mov eax, edi
call fcn.00404fb0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
je 0x46a1ab
xor eax, eax
push ebp
push 0x46a1a4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push 3
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceConfig2A
test eax, eax
je 0x46a17c
movzx eax, byte [ebx]
mov edx, dword [ebp + 8]
mov byte [edx], al
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceConfigA
test eax, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a1ab
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 0x46a1c9
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x46a1d8
Capabilities:
Create service
Modify service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x46a34d
xor eax, eax
push ebp
push 0x46a346
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jbe 0x46a22b
mov eax, ebx
call fcn.00404fb0
mov ebx, eax
jmp 0x46a22d
xor ebx, ebx
cmp dword [ebp + 0x18], 0
jbe 0x46a23f
mov eax, dword [ebp + 0x18]
call fcn.00404fb0
mov esi, eax
jmp 0x46a241
xor esi, esi
cmp dword [ebp + 0x10], 0
jbe 0x46a253
mov eax, dword [ebp + 0x10]
call fcn.00404fb0
mov edi, eax
jmp 0x46a255
xor edi, edi
cmp dword [ebp + 0xc], 0
jbe 0x46a268
mov eax, dword [ebp + 0xc]
call fcn.00404fb0
mov dword [ebp - 0x1c], eax
jmp 0x46a26d
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], 0
jbe 0x46a280
mov eax, dword [ebp + 8]
call fcn.00404fb0
mov dword [ebp - 0x20], eax
jmp 0x46a285
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push edi
mov eax, dword [ebp + 0x14]
push eax
push esi
push ebx
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x24]
push eax
push 0xf01ff
mov eax, dword [ebp - 8]
call fcn.00404fb0
push eax
mov eax, dword [ebp - 4]
call fcn.00404fb0
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x46a31f
xor eax, eax
push ebp
push 0x46a318
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0x28], 0
jbe 0x46a301
mov eax, dword [ebp + 0x28]
call fcn.00404fb0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 1
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_ChangeServiceConfig2A
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a31f
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a34d
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
cmp byte [ebp - 9], 0
je 0x46a345
push 0x7d0
call sub.kernel32.dll_Sleep_1
ret
movzx eax, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24