joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ad98c
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe1c
xor edx, edx
mov dword [ebp - 0x1e4], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ada86
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1e0]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, dword [ebp - 4]
call fcn.0040528c
push 0x40
lea eax, [ebp - 0x50]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x50]
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4ada6d
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x4ada35
mov eax, dword [ebp - 4]
push dword [eax]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x1e4]
call fcn.00405484
push dword [ebp - 0x1e4]
push 0x4ada9c
mov eax, dword [ebp - 4]
mov edx, 3
call fcn.0040560c
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
cmp dword [eax + edx*4], 0
jne 0x4ad9f8
call sub.wsock32.dll_WSACleanup
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040554c
test eax, eax
jle 0x4ada6d
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040554c
mov edx, eax
mov eax, dword [ebp - 4]
mov ecx, 1
call fcn.004057ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ada8d
lea eax, [ebp - 0x1e4]
call fcn.0040528c
ret
Function at 0x4add18
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff67c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x980], ebx
mov dword [ebp - 0x984], ebx
mov dword [ebp - 0x97c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4adfb5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x24], 3
mov eax, 0x4adfd0
call fcn.004be23c
test al, al
je 0x4add71
mov dword [ebp - 0x24], 2
lea eax, [ebp - 0x82c]
xor ecx, ecx
mov edx, 0x800
call fcn.00403464
mov dword [ebp - 0x20], 0x16c
lea eax, [ebp - 0x28]
push eax
mov eax, dword [0x892514]
mov eax, dword [eax]
mov cl, 1
mov edx, 0x4adfe0
call fcn.004bfaf8
cmp dword [ebp - 0x28], 0
je 0x4addd1
or edx, 0xffffffff
mov eax, dword [ebp - 0x28]
call fcn.0040a934
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jle 0x4addc1
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x5dc
jle 0x4addd1
mov dword [ebp - 0x20], 0x5dc
mov eax, dword [ebp - 4]
call fcn.0040554c
sub dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
call fcn.0040554c
sub dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jg 0x4addf4
mov dword [ebp - 0x20], 0x64
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.004057ac
xor eax, eax
mov dword [ebp - 0x18], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push 0x4adff4
push dword [ebp - 8]
push 0x4ae000
lea eax, [ebp - 0x97c]
mov edx, 3
call fcn.0040560c
mov eax, dword [ebp - 0x97c]
call fcn.0040574c
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x1c]
lea eax, [ebp - 0x82c]
mov edx, 0x7ff
call fcn.004c1f3c
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x1c]
lea eax, [ebp - 0x82c]
mov edx, 0x7ff
call fcn.004c1f3c
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
lea eax, [ebp - 0x82c]
mov edx, 0x7ff
call fcn.004c1f3c
xor eax, eax
push ebp
push 0x4adef9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x14], 0xffffffff
setne byte [ebp - 0xd]
cmp byte [ebp - 0xd], 0
je 0x4adee2
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x82c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4adf00
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
Function at 0x4afb74
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0
lea eax, [ebp - 8]
push eax
call sub.wininet.dll_InternetGetConnectedState
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x4afba6
mov edx, 0xbb8
mov eax, 0x4afbbc
call fcn.004a3f80
mov byte [ebp - 9], al
mov al, byte [ebp - 9]
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x4afbd0
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 8], ecx
mov byte [ebp - 2], dl
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x4afdff
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [ebp - 1]
call fcn.00402cd8
mov byte [ebp - 1], al
mov eax, dword [ebp - 8]
call fcn.0040528c
mov dword [ebp - 0x20], 1
cmp byte [ebp - 2], 0
je 0x4afc25
mov dword [ebp - 0x20], 3
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
call sub.mpr.dll_WNetOpenEnumA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4afde4
mov eax, dword [0x884904]
push eax
push 0x40
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
push 0x884904
mov eax, dword [ebp - 0x18]
push eax
push 0x884908
mov eax, dword [ebp - 0x14]
push eax
call sub.mpr.dll_WNetEnumResourceA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4afd64
cmp dword [0x884908], 0
jbe 0x4afd64
cmp dword [0x884908], 0xffffffff
jae 0x4afd64
mov eax, dword [0x884908]
dec eax
test eax, eax
jb 0x4afda3
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x10], 0
je 0x4afd52
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x10]
call fcn.00405484
mov eax, dword [ebp - 0x30]
mov ecx, 1
mov edx, 1
call fcn.004057ac
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.0040a048
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
mov dl, byte [ebp - 1]
call fcn.00405474
mov edx, dword [ebp - 0x34]
pop eax
call fcn.00405698
jne 0x4afd52
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x14]
call fcn.00405484
xor eax, eax
push ebp
push 0x4afd43
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GlobalFree
mov eax, dword [ebp - 0x14]
push eax
call sub.mpr.dll_WNetCloseEnum
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4afde4
add dword [ebp - 0x18], 0x20
inc dword [ebp - 0xc]
dec dword [ebp - 0x24]
jne 0x4afcb2
jmp 0x4afda3
cmp dword [ebp - 0x10], 0x103
je 0x4afda3
xor eax, eax
push ebp
push 0x4afd97
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GlobalFree
mov eax, dword [ebp - 0x14]
push eax
call sub.mpr.dll_WNetCloseEnum
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4afde4
xor eax, eax
push ebp
push 0x4afdc4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GlobalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4afdce
cmp dword [ebp - 0x10], 0x103
jne 0x4afc45
mov eax, dword [ebp - 0x14]
push eax
call sub.mpr.dll_WNetCloseEnum
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4afe06
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.004052b0
ret
Function at 0x4afeb4
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
xor edx, edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x4aff74
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 2], 0
mov dword [ebp - 0x28], 1
lea eax, [ebp - 0x30]
mov dl, byte [ebp - 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x34]
call fcn.004032c4
mov edx, 0x4aff84
lea eax, [ebp - 0x34]
mov cl, 2
call fcn.00403294
lea edx, [ebp - 0x34]
lea eax, [ebp - 8]
call fcn.004054f0
mov eax, dword [ebp - 8]
call fcn.0040574c
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x38]
mov dl, 1
mov al, byte [ebp - 1]
call fcn.004afbd0
mov eax, dword [ebp - 0x38]
call fcn.0040574c
mov dword [ebp - 0x18], eax
mov eax, 0x4aff88
mov dword [ebp - 0x10], eax
push 1
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
call sub.mpr.dll_WNetAddConnection2A
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4aff56
mov byte [ebp - 2], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aff7b
lea eax, [ebp - 0x38]
call fcn.0040528c
lea eax, [ebp - 8]
call fcn.0040528c
ret

Function at 0x4b7cd0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo
cmp dword [ebp - 0x10], 0x1e6
je 0x4b7cf5
cmp dword [ebp - 0x10], 0x24a
je 0x4b7cf5
xor eax, eax
jmp 0x4b7cf7
mov al, 1
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x4b9ec4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040573c
mov eax, dword [ebp - 8]
call fcn.0040573c
xor eax, eax
push ebp
push 0x4b9fd3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.0040528c
xor eax, eax
push ebp
push 0x4b9f91
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], pe_nt_image_headers32
lea eax, [ebp - 0x118]
xor ecx, ecx
mov edx, dword [ebp - 0x14]
call fcn.00403464
lea eax, [ebp - 0x10]
push eax
push 0x20119
push 0
mov eax, dword [ebp - 4]
call fcn.0040574c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4b9f87
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x118]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0040574c
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4b9f7e
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x118]
mov ecx, pe_nt_image_headers32
call fcn.004054fc
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
jmp 0x4b9fb8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b9fda
lea eax, [ebp - 8]
mov edx, 2
call fcn.004052b0
ret
Function at 0x4bbcd0
Capabilities:
Get session user name
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf0
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4bbd97
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x400
mov eax, dword [ebp - 8]
call fcn.0040b6d0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x4bbd1f
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0040b6bc
jmp 0x4bbd6e
call fcn.004b9354
test al, al
je 0x4bbd5c
push 0x400
lea eax, [ebp - 0x410]
push eax
push 0x4bbda4
call sub.kernel32.dll_GetEnvironmentVariableA
test eax, eax
je 0x4bbd52
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x410]
call fcn.0040b6bc
jmp 0x4bbd6e
lea eax, [ebp - 0xc]
call fcn.0040528c
jmp 0x4bbd6e
lea ecx, [ebp - 0xc]
mov edx, 0x4bbdb8
mov eax, 0x4bbdcc
call fcn.004b8150
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.004052e0
mov eax, dword [ebp - 0x10]
call fcn.0040b71c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bbd9e
lea eax, [ebp - 0xc]
call fcn.0040528c
ret

Function at 0x4bbddc
Capabilities:
Get hostname
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf0
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4bbea3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x400
mov eax, dword [ebp - 8]
call fcn.0040b6d0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4bbe2b
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0040b6bc
jmp 0x4bbe7a
call fcn.004b9354
test al, al
je 0x4bbe68
push 0x400
lea eax, [ebp - 0x410]
push eax
push 0x4bbeb0
call sub.kernel32.dll_GetEnvironmentVariableA
test eax, eax
je 0x4bbe5e
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x410]
call fcn.0040b6bc
jmp 0x4bbe7a
lea eax, [ebp - 0xc]
call fcn.0040528c
jmp 0x4bbe7a
lea ecx, [ebp - 0xc]
mov edx, 0x4bbec8
mov eax, 0x4bbedc
call fcn.004b8150
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.004052e0
mov eax, dword [ebp - 0x10]
call fcn.0040b71c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bbeaa
lea eax, [ebp - 0xc]
call fcn.0040528c
ret

Function at 0x4bbf0c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x105
mov eax, dword [ebp - 8]
call fcn.0040b6d0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0040b6bc
mov eax, dword [ebp - 0xc]
call fcn.0040b71c
mov esp, ebp
pop ebp
ret
Function at 0x4bbf4c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x105
mov eax, dword [ebp - 8]
call fcn.0040b6d0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetTempPathA
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0040b6bc
mov eax, dword [ebp - 0xc]
call fcn.0040b71c
mov esp, ebp
pop ebp
ret

Function at 0x4bcb28
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040528c
call fcn.004b9354
test al, al
je 0x4bcb6d
push 0x400
lea eax, [ebp - 0x404]
push eax
push 0x4bcb74
call sub.kernel32.dll_GetEnvironmentVariableA
test eax, eax
je 0x4bcb6d
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x404]
call fcn.0040b6bc
mov esp, ebp
pop ebp
ret

Function at 0x4bdff8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040573c
xor eax, eax
push ebp
push 0x4be0aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0xaa
lea eax, [ebp - 0x14]
call fcn.0040528c
mov eax, dword [ebp - 4]
call fcn.0040554c
test eax, eax
jle 0x4be079
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov al, byte [eax + edx - 1]
mov byte [ebp - 0xe], al
mov al, byte [ebp - 0xd]
xor byte [ebp - 0xe], al
add byte [ebp - 0xd], 0x11
lea edx, [ebp - 0x1c]
mov al, byte [ebp - 0xe]
call fcn.004bde90
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
call fcn.00405554
inc dword [ebp - 0xc]
dec dword [ebp - 0x18]
jne 0x4be044
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.004052e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4be0b1
lea eax, [ebp - 0x1c]
call fcn.0040528c
lea eax, [ebp - 0x14]
call fcn.0040528c
lea eax, [ebp - 4]
call fcn.0040528c
ret
Function at 0x4be0b8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040573c
xor eax, eax
push ebp
push 0x4be1d9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xaa
lea eax, [ebp - 0x20]
call fcn.0040528c
mov eax, dword [ebp - 4]
call fcn.0040554c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
and eax, 0x80000001
jns 0x4be111
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
je 0x4be122
lea eax, [ebp - 4]
mov edx, 0x4be1ec
call fcn.00405554
mov eax, dword [ebp - 4]
call fcn.0040554c
sar eax, 1
jns 0x4be131
adc eax, 0
test eax, eax
jle 0x4be1a3
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], 1
lea eax, [ebp - 0x2c]
push eax
mov edx, dword [ebp - 0x14]
add edx, edx
dec edx
mov ecx, 2
mov eax, dword [ebp - 4]
call fcn.004057ac
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov edx, 0x4be1f8
call fcn.00405598
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x18]
call fcn.004038b4
mov byte [ebp - 0x19], al
mov al, byte [ebp - 0xc]
xor byte [ebp - 0x19], al
add dword [ebp - 0xc], 0x11
and dword [ebp - 0xc], 0xff
lea eax, [ebp - 0x30]
mov dl, byte [ebp - 0x19]
call fcn.00405474
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x20]
call fcn.00405554
inc dword [ebp - 0x14]
dec dword [ebp - 0x24]
jne 0x4be13f
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
call fcn.004052e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4be1e0
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.004052b0
lea eax, [ebp - 0x20]
call fcn.0040528c
lea eax, [ebp - 4]
call fcn.0040528c
ret

Function at 0x4be1fc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x105
mov eax, dword [ebp - 8]
call fcn.0040b6d0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetTempPathA
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0040b6bc
mov eax, dword [ebp - 0xc]
call fcn.0040b71c
mov esp, ebp
pop ebp
ret

Function at 0x4c1678
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 8], eax
push 1
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 8]
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
mov eax, dword [ebp - 4]
cdq
cmp edx, dword [esp + 4]
jne 0x4c16bb
cmp eax, dword [esp]
pop edx
pop eax
ja 0x4c1689
jmp 0x4c16bf
pop edx
pop eax
jg 0x4c1689
pop ecx
pop ecx
pop ebp
ret
Function at 0x4c7038
Capabilities:
Access the windows event log

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 - 8]
call fcn.0040573c
xor eax, eax
push ebp
push 0x4c70c6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.0040574c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x4c708a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0040574c
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceA
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
mov ax, word [ebp + 0xc]
push eax
mov ax, word [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.advapi32.dll_ReportEventA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c70cd
lea eax, [ebp - 8]
call fcn.0040528c
ret
Function at 0x4c841c
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c860b
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.00402c0c
mov eax, dword [ebp - 4]
cmp word [eax + 0xa2], 0
je 0x4c8470
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x4c848a
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], eax
jmp 0x4c848f
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x80], 0
jne 0x4c84a2
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x4c84b3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
call fcn.0040574c
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
call fcn.0040574c
push eax
mov eax, dword [ebp - 0x18]
push eax
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.004c795c
mov eax, dword [ebp - 0x24]
call fcn.0040574c
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
call fcn.0040574c
push eax
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
call fcn.004bd540
mov eax, dword [ebp - 0x28]
call fcn.0040574c
push eax
mov eax, dword [ebp - 4]
call fcn.004c7b08
push eax
mov eax, dword [ebp - 4]
call fcn.004c7ac4
push eax
mov eax, dword [ebp - 4]
call fcn.004c7a5c
push eax
push 0xf01ff
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.004c77a4
mov eax, dword [ebp - 0x2c]
call fcn.0040574c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.0040574c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x90], edx
cmp dword [ebp - 0x10], 0
jne 0x4c855e
call fcn.00410e80
xor eax, eax
push ebp
push 0x4c85e1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4c85a3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp word [eax + 0xaa], 0
je 0x4c8599
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c85ca
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c85e8
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x4c861c
Capabilities:
Delete service

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 word [eax + 0xb2], 0
je 0x4c8648
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xb4]
call dword [ebx + 0xb0]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.0040574c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4c8670
call fcn.00410e80
xor eax, eax
push ebp
push 0x4c86a7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x4c8690
call fcn.00410e80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c86ae
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret