joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b190
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
push ebx
push esi
push edi
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str.Volatile_Environment
or ecx, 0xffffffff
xor eax, eax
mov ebx, 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], ebx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x10], 0x80
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
push ebx
push 0
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b242
mov ecx, dword [esp + 0x9c]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push str.USERDNSDOMAIN
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40b22b
xor ebx, ebx
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x8c
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x8c
ret
Function at 0x40bb20
Capabilities:
Check os version

Disassembly:
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x40bc21
mov edi, str.WinNT3
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x94
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40bd09
mov ecx, 0x25
xor eax, eax
mov edi, ebx
push ebx
rep stosd dword es:[edi], eax
mov dword [ebx], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebx + 4]
cmp eax, 4
jne 0x40bb9d
mov edi, str.WinNT4
jmp 0x40bce2
cmp eax, 5
jne 0x40bbe0
mov ecx, dword [ebx + 8]
test ecx, ecx
jne 0x40bbcb
mov edi, str.Win2000
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x40bcfa
cmp eax, 5
jne 0x40bbe0
cmp dword [ebx + 8], 1
jne 0x40bbe0
mov edi, str.WinXP
jmp 0x40bce2
cmp eax, 6
jne 0x40bc11
mov ecx, dword [ebx + 8]
test ecx, ecx
jne 0x40bc0e
mov edi, str.WinVista
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x40bcfa
cmp eax, 6
jb 0x40bcff
mov edi, str.Win7
jmp 0x40bce2
cmp al, 4
jae 0x40bc53
mov edi, str.Win32s
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
ret
mov edi, str.Win95
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x94
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40bd09
mov ecx, 0x25
xor eax, eax
mov edi, ebx
push ebx
rep stosd dword es:[edi], eax
mov dword [ebx], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebx + 4]
cmp eax, 4
jne 0x40bcff
cmp dword [ebx + 8], 0xa
jne 0x40bcd2
mov edi, str.Win98
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x40bcfa
cmp eax, 4
jne 0x40bcff
cmp dword [ebx + 8], 0x5a
jne 0x40bcff
mov edi, str.WinME
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x40bf70
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
xor ebp, ebp
push esi
cmp ebx, 2
push edi
jbe 0x40c04d
mov esi, dword [esp + 0x1c]
mov edi, 4
mov cl, byte [esi]
mov dl, byte [esi + 1]
sub ebx, 3
inc esi
mov dword [esp + 0x20], ebx
mov bl, cl
mov al, byte [esi + 1]
and cl, 3
shr bl, 2
mov byte [esp + 0x10], bl
mov bl, dl
inc esi
and dl, 0xf
shl cl, 4
shr bl, 4
add cl, bl
inc esi
mov byte [esp + 0x11], cl
mov cl, al
and al, 0x3f
shl dl, 2
shr cl, 6
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x28]
add dl, cl
cmp edi, eax
mov byte [esp + 0x12], dl
ja 0x40c11e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
and edx, 0xff
inc ebp
inc edi
mov ebx, dword [esp + 0x20]
mov cl, byte [edx + 0x41ad28]
mov edx, dword [esp + 0x11]
and edx, 0xff
mov byte [eax + ebp - 1], cl
inc ebp
inc edi
mov cl, byte [edx + 0x41ad28]
mov edx, dword [esp + 0x12]
and edx, 0xff
mov byte [eax + ebp - 1], cl
inc ebp
inc edi
mov cl, byte [edx + 0x41ad28]
mov edx, dword [esp + 0x13]
and edx, 0xff
mov byte [eax + ebp - 1], cl
inc ebp
inc edi
mov cl, byte [edx + 0x41ad28]
cmp ebx, 2
mov byte [eax + ebp - 1], cl
ja 0x40bf93
jmp 0x40c051
mov esi, dword [esp + 0x1c]
xor ecx, ecx
cmp ebx, ecx
je 0x40c118
mov byte [esp + 0x22], cl
mov byte [esp + 0x21], cl
mov byte [esp + 0x20], cl
jbe 0x40c081
mov ecx, ebx
lea edi, [esp + 0x20]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cl, byte [esp + 0x20]
mov dl, cl
and cl, 3
shr dl, 2
mov byte [esp + 0x10], dl
mov dl, byte [esp + 0x21]
shl cl, 4
shr dl, 4
add cl, dl
mov dl, byte [esp + 0x22]
mov byte [esp + 0x11], cl
mov cl, byte [esp + 0x21]
and cl, 0xf
shl cl, 2
shr dl, 6
add cl, dl
mov edx, dword [esp + 0x28]
mov byte [esp + 0x12], cl
lea ecx, [ebp + 4]
cmp ecx, edx
jbe 0x40c0ca
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
and edx, 0xff
inc ebp
mov cl, byte [edx + 0x41ad28]
mov edx, dword [esp + 0x11]
and edx, 0xff
mov byte [eax + ebp - 1], cl
inc ebp
cmp ebx, 1
mov cl, byte [edx + 0x41ad28]
mov byte [eax + ebp - 1], cl
jne 0x40c0ff
mov byte [eax + ebp], 0x3d
jmp 0x40c112
mov edx, dword [esp + 0x12]
and edx, 0xff
mov cl, byte [edx + 0x41ad28]
mov byte [eax + ebp], cl
inc ebp
mov byte [eax + ebp], 0x3d
inc ebp
cmp ebp, dword [esp + 0x28]
jb 0x40c129
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret
mov byte [eax + ebp], 0
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x40c140
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x40de60
Capabilities:
Check for software breakpoints
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x630
mov ecx, dword [esp + 0x634]
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push 4
push eax
push 0x1006
push 0xffff
push ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0x2710
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
test eax, eax
je 0x40deda
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call ebp
push eax
lea edx, [esp + 0x2c]
push str.ERROR::_Set_AdmissionCheck_SockOpt_Error__Code__d
push edx
call ebx
lea eax, [esp + 0x34]
push eax
call fcn.0040b9a0
add esp, 0x10
mov cx, word [0x4225d6]
mov word [esp + 0x18], 2
push ecx
call dword [sym.imp.WS2_32.dll_htons]
push 0x4225d8
mov word [esp + 0x1e], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x1c], eax
mov ecx, 0x162
xor eax, eax
lea edi, [esp + 0xb8]
rep stosd dword es:[edi], eax
mov edi, 0x41e0e4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xb8]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x650]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x64c]
mov esi, dword [esp + 0x648]
mov dword [esp + 0xc4], ecx
mov ecx, eax
lea edi, [esp + 0xc8]
mov dword [esp + 0xbc], 0x67
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0xc0], eax
mov edi, dword [esp + 0x644]
lea edx, [esp + 0x18]
push 0x10
push edx
push 0
lea eax, [esp + 0xc4]
push 0x588
push eax
push edi
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jg 0x40dfd5
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x69]
mov byte [esp + 0x68], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call ebp
push eax
lea ecx, [esp + 0x6c]
push 0x41fb1c
push ecx
call ebx
lea edx, [esp + 0x74]
push edx
call fcn.00418650
lea eax, [esp + 0x78]
jmp 0x40e036
lea ecx, [esp + 0x10]
lea edx, [esp + 0xa8]
push ecx
push edx
push 0
lea eax, [esp + 0xc4]
push 0x588
push eax
push edi
mov dword [esp + 0x28], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jg 0x40e04b
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call ebp
push eax
lea ecx, [esp + 0x2c]
push 0x41faf8
push ecx
call ebx
lea edx, [esp + 0x34]
push edx
call fcn.00418650
lea eax, [esp + 0x38]
push eax
call fcn.0040b9a0
add esp, 0x14
push 0xbb8
call esi
jmp 0x40df79
cmp dword [esp + 0xbc], 0xcc
je 0x40e06a
push 0x41fad4
call fcn.00418650
add esp, 4
jmp 0x40df79
mov edi, dword [esp + 0x654]
mov ecx, 0x102
lea esi, [esp + 0xc8]
push 0x41fab8
rep movsd dword es:[edi], dword [esi]
call fcn.00418650
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x630
ret
Function at 0x40e0a0
Capabilities:
Check os version

Disassembly:
sub esp, 0xbc
push ebx
mov ebx, dword [esp + 0xc8]
push esi
mov esi, dword [esp + 0xc8]
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x9c
mov dword [esi], 0
push eax
mov dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40e20c
mov eax, dword [esp + 0x38]
sub eax, 0
je 0x40e19d
dec eax
je 0x40e183
dec eax
jne 0x40e1a3
mov eax, dword [esp + 0x2c]
sub eax, 4
je 0x40e17b
dec eax
je 0x40e154
dec eax
jne 0x40e1a3
mov eax, dword [esp + 0x30]
sub eax, 0
je 0x40e13d
dec eax
je 0x40e126
dec eax
jne 0x40e1a3
mov dword [esi], 8
jmp 0x40e1a3
mov cl, byte [esp + 0xc2]
dec cl
neg cl
sbb ecx, ecx
and ecx, 3
add ecx, 7
mov dword [esi], ecx
jmp 0x40e1a3
mov dl, byte [esp + 0xc2]
dec dl
neg dl
sbb edx, edx
and edx, 3
add edx, 6
mov dword [esi], edx
jmp 0x40e1a3
mov eax, dword [esp + 0x30]
sub eax, 0
je 0x40e173
dec eax
je 0x40e16b
dec eax
jne 0x40e1a3
mov dword [esi], 5
jmp 0x40e1a3
mov dword [esi], 4
jmp 0x40e1a3
mov dword [esi], 3
jmp 0x40e1a3
mov dword [esi], 2
jmp 0x40e1a3
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40e19d
cmp eax, 0xa
je 0x40e195
cmp eax, 0x5a
jne 0x40e1a3
mov dword [esi], 1
jmp 0x40e1a3
mov dword [esi], 0
lea eax, [esp + 0x3c]
push 0x20
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
je 0x40e1c4
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebx], eax
push edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov edx, dword [esi]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx]
stosw word es:[edi], ax
stosb byte es:[edi], al
push ecx
push edx
lea eax, [esp + 0x14]
push 0x41fb8c
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x1c]
push ecx
call fcn.00418650
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0xbc
ret
push 0x41fb70
call fcn.0040b9a0
add esp, 4
xor eax, eax
pop esi
pop ebx
add esp, 0xbc
ret

Function at 0x40e230
Capabilities:
Enumerate processes

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
xor eax, eax
mov ecx, 0x2500
mov edi, esi
push eax
push 2
rep stosd dword es:[edi], eax
xor ebx, ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40e268
push 0x41fbb0
call fcn.00418650
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push ebp
mov dword [esi], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40e2a7
mov ebx, 1
add esi, 0x128
mov edi, ebx
push esi
push ebp
mov dword [esi], 0x128
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40e2a7
inc ebx
inc edi
add esi, 0x128
cmp edi, 0x80
jl 0x40e286
test ebp, ebp
je 0x40e2b2
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret
Function at 0x40ef90
Capabilities:
Enumerate process modules

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x250
push ebx
push ebp
push esi
xor esi, esi
xor ebx, ebx
cmp eax, esi
push edi
jle 0x40f09b
mov eax, dword [esp + 0x268]
add eax, 8
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edx
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
cmp ebp, esi
je 0x40f07d
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push 4
push ecx
push ebp
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x40f076
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push 0x104
push edx
push eax
push ebp
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x40f076
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
cmp eax, esi
je 0x40f076
mov edi, dword [esp + 0x264]
lea edx, [eax + 1]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x120]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x40f0a8
xor esi, esi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x26c]
inc ebx
add ecx, 0x128
cmp ebx, eax
mov dword [esp + 0x10], ecx
jl 0x40efb8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x250
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x41fd8c
call fcn.0040b9a0
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x268]
lea eax, [ebx + ebx*8]
pop edi
pop esi
lea ecx, [ebx + eax*4]
pop ebp
pop ebx
mov eax, dword [edx + ecx*8 + 8]
add esp, 0x250
ret
Function at 0x40f0e0
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x258
mov eax, dword [esp + 0x264]
push ebx
push ebp
push esi
xor esi, esi
push edi
cmp eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
jle 0x40f235
mov ecx, dword [esp + 0x270]
mov eax, dword [esp + 0x278]
mov dword [esp + 0x18], eax
lea ebx, [ecx + 8]
mov edx, dword [ebx]
push edx
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
cmp ebp, esi
je 0x40f201
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
lea ecx, [esp + 0x1c]
push eax
push 4
push ecx
push ebp
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x40f1fa
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x24]
push 0x104
push edx
push eax
push ebp
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x40f1fa
lea ecx, [esp + 0x24]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
cmp eax, esi
je 0x40f1fa
mov edi, dword [esp + 0x26c]
lea edx, [eax + 1]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x128]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40f1f8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx]
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
inc eax
add ecx, 4
cmp eax, 0x20
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
jge 0x40f22e
xor esi, esi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x274]
inc eax
add ebx, 0x128
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x40f118
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x258
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x258
ret
Function at 0x40f250
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push ebx
push esi
xor ebx, ebx
push 1
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x40f2e6
mov eax, dword [esp + 0x28]
push ebp
push edi
push 5
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x40f2cc
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40f2af
cmp dword [esp + 0x14], 4
jne 0x40f2bc
push edi
mov ebx, 1
call ebp
push esi
call ebp
pop edi
pop ebp
mov eax, ebx
pop esi
pop ebx
add esp, 0x1c
ret
push 0x41fdd0
call fcn.00418650
add esp, 4
push edi
call ebp
push esi
call ebp
pop edi
pop ebp
mov eax, ebx
pop esi
pop ebx
add esp, 0x1c
ret
push 0x41fdbc
call fcn.00418650
add esp, 4
push esi
call ebp
pop edi
pop ebp
mov eax, ebx
pop esi
pop ebx
add esp, 0x1c
ret
push 0x41fda8
call fcn.00418650
add esp, 4
mov eax, ebx
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x40f940
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x5d8
mov ax, word [0x4225d6]
push esi
push edi
push eax
mov word [esp + 0xc], 2
call dword [sym.imp.WS2_32.dll_htons]
push 0x4225d8
mov word [esp + 0xe], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0xc], eax
mov ecx, 0x162
xor eax, eax
lea edi, [esp + 0x58]
rep stosd dword es:[edi], eax
mov edi, 0x41e0e4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x58]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x10
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x5e8]
and ecx, 3
lea edx, [esp + 0x5c]
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x5ec]
mov ecx, 5
lea edi, [esp + 0x6c]
mov dword [esp + 0x60], 0x66
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 1
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x24
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jg 0x40fa3e
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [esp + 0x1c]
push 0x41ffa4
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edx, [esp + 0x24]
push edx
call fcn.00418650
lea eax, [esp + 0x28]
push eax
call fcn.0040b9a0
add esp, 0x14
mov eax, 1
pop edi
pop esi
add esp, 0x5d8
ret
push 0x41ff8c
call fcn.00418650
add esp, 4
mov eax, 1
pop edi
pop esi
add esp, 0x5d8
ret
Function at 0x410940
Capabilities:
Create service

Disassembly:
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
mov ecx, dword [esp + 0x10]
push 0
push 0
push eax
mov eax, dword [esp + 0x20]
push 1
push 3
push 1
push 0xf01ff
push eax
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x410970
ret
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
ret

Function at 0x410a60
Capabilities:
Stop service

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x1c
push esi
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x410a84
pop esi
add esp, 0x1c
ret
lea edx, [esp + 4]
push edi
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x410b90
Capabilities:
Get disk information

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x20a
mov dword [esp + 0x14], 0x105
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
test edi, edi
je 0x410c52
mov esi, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push ecx
push edi
push esi
call ebx
test eax, eax
jne 0x410c01
call ebp
cmp eax, 0xea
jne 0x410c45
push edi
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x14]
lea eax, [edx + edx]
push eax
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 8
test edi, edi
jne 0x410bc4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp word [edi], 0
mov esi, edi
je 0x410c37
mov ebx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.MSVCRT.dll_wcslen]
push esi
push 0x42029c
call dword [sym.imp.MSVCRT.dll_wprintf]
push esi
push ebx
call dword [sym.imp.MSVCRT.dll_wcscpy]
push esi
call ebp
lea esi, [esi + eax*2 + 2]
add esp, 0x14
cmp word [esi], 0
jne 0x410c13
push 0x420298
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 4
test edi, edi
je 0x410c52
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret