joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41553f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x424070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040d4ad
and dword [ebp - 0x14], 0
cmp dword [0x426280], 0
mov dword [ebp - 0x18], eax
jne 0x4155f2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41569a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41569a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x426280], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x426284], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x426288], eax
call edi
push eax
call esi
mov dword [0x426290], eax
test eax, eax
je 0x4155f2
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42628c], eax
mov eax, dword [0x42628c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41564b
cmp dword [0x426290], ecx
je 0x41564b
push eax
call esi
push dword [0x426290]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41564b
test ebx, ebx
je 0x41564b
call edi
test eax, eax
je 0x415642
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x415642
test byte [ebp - 8], 1
jne 0x41564b
or dword [ebp + 0x10], 0x200000
jmp 0x41567e
mov eax, dword [0x426284]
cmp eax, dword [ebp - 0x18]
je 0x41567e
push eax
call esi
test eax, eax
je 0x41567e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41567e
mov eax, dword [0x426288]
cmp eax, dword [ebp - 0x18]
je 0x41567e
push eax
call esi
test eax, eax
je 0x41567e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x426280]
call esi
test eax, eax
je 0x41569a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41569c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409908
leave
ret
Function at 0x431004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
mov ecx, 0x55061144
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
mov ecx, 0x7ee17c2d
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x3ea2090f
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x6fb64453
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x402380
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402399
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4023d4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4023d0
lea ebx, [ebx]
cmp esi, eax
jae 0x4023d4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4023c0
cmp esi, eax
jb 0x4023da
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x404a50
Capabilities:
Accept command line arguments

Disassembly:
push esi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.00411ebf
test eax, eax
jne 0x404a7f
push 0x43e2a8
call fcn.0041ddcc
add esp, 4
lea eax, [esi + 1]
pop esi
ret
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push eax
call fcn.0040df60
add esp, 4
pop ebx
mov eax, esi
pop esi
ret
Function at 0x405810
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x18
push ebx
lea eax, [esp + 4]
push eax
push 0x20
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4058a0
lea ecx, [esp + 0xc]
push ecx
push str.SeDebugPrivilege
push 0
mov dword [esp + 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x405859
push str.Cant___lookup___privilege___value._n
call fcn.0041e751
add esp, 4
mov eax, dword [esp + 4]
push 0
push 0
push 0x10
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x40588a
push str.Cant___adjust___privilege___value._n
call fcn.0041e751
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 4]
test eax, eax
push ecx
sete bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
add esp, 0x18
ret
Function at 0x4093c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x43755b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x446d84]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00434f31
push 4
mov dword [esp + 0x24], 0
call fcn.00410a20
mov edi, eax
add esp, 4
test edi, edi
je 0x409442
call fcn.0043529b
mov dword [edi], eax
call fcn.004350c9
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00434ef2
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x409437
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.00434f1a
jmp 0x409444
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x40adf0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x437958
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x446d84]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.00403c40
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40ae46
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x10]
call fcn.00409550
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.00403c40
cmp dword [esp + 0x24], 8
jb 0x40ae8f
mov edx, dword [esp + 0x10]
push edx
call fcn.00410a4f
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x40d230
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x446d84]
xor eax, esp
mov dword [esp + 0x114], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 4]
cmp eax, 4
jne 0x40d2b0
mov eax, dword [esp + 8]
cmp eax, 0xa
jne 0x40d28a
mov eax, 1
cmp dword [esp + 0x10], eax
je 0x40d275
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0041c7c3
add esp, 0x118
ret
cmp eax, 0x5a
jne 0x40d273
cmp dword [esp + 0x10], 1
jne 0x40d273
mov eax, 2
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0041c7c3
add esp, 0x118
ret
cmp eax, 5
jne 0x40d331
mov eax, dword [esp + 8]
test eax, eax
jne 0x40d2de
cmp dword [esp + 0x10], 2
jne 0x40d273
mov eax, 3
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0041c7c3
add esp, 0x118
ret
cmp eax, 1
jne 0x40d304
cmp dword [esp + 0x10], 2
jne 0x40d273
mov eax, 4
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0041c7c3
add esp, 0x118
ret
cmp eax, 2
jne 0x40d273
cmp dword [esp + 0x10], eax
jne 0x40d273
mov eax, 5
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0041c7c3
add esp, 0x118
ret
cmp eax, 6
jne 0x40d273
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0041c7c3
add esp, 0x118
ret

Function at 0x40d400
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4378eb
mov eax, dword fs:[0]
push eax
sub esp, 0x824
mov eax, dword [0x446d84]
xor eax, esp
mov dword [esp + 0x820], eax
push esi
mov eax, dword [0x446d84]
xor eax, esp
push eax
lea eax, [esp + 0x82c]
mov dword fs:[0], eax
push 0x800
lea eax, [esp + 0x2c]
push 0
push eax
mov dword [esp + 0x30], 0
call fcn.0041fdf0
add esp, 0xc
push 0x400
lea ecx, [esp + 0x2c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edx, edx
lea eax, [esp + 0x28]
mov word [esp + 0xc], dx
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d484
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x2c]
lea esi, [esp + 0xc]
call fcn.00403820
mov eax, esi
mov ecx, edi
mov dword [esp + 0x834], 0
call fcn.0040d350
cmp dword [esp + 0x20], 8
jb 0x40d4c9
mov eax, dword [esp + 0xc]
push eax
call fcn.00410a4f
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x82c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x820]
xor ecx, esp
call fcn.0041c7c3
add esp, 0x830
ret
Function at 0x40d720
Capabilities:
Check for time delay via gettickcount
Modify service
Query service status
Start service

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
mov eax, edi
call fcn.0040d640
test al, al
je 0x40d777
mov eax, dword [edi + 0xc]
xor ebx, ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x40d780
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x34], esp
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0x19
mov eax, str.StartService_FAILED___d__n
mov word [esi + 4], cx
call fcn.00403820
call fcn.00406dd0
add esp, 0x20
xor al, al
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x30], esp
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0x19
mov eax, str.Service_start_pending..._n
mov word [esi + 4], dx
call fcn.00403820
call fcn.00406dd0
mov edx, dword [edi + 0xc]
add esp, 0x1c
lea eax, [esp + 0x10]
push eax
push 0x24
lea ecx, [esp + 0x20]
push ecx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x40d777
mov eax, dword [edi + 0xc]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x110
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [esp + 0x1c], 2
mov ebp, dword [esp + 0x2c]
mov esi, eax
jne 0x40d86c
jmp 0x40d800
mov eax, 0xcccccccd
mul dword [esp + 0x30]
shr edx, 3
cmp edx, 0x3e8
jae 0x40d81b
mov edx, 0x3e8
jmp 0x40d828
cmp edx, 0x2710
jbe 0x40d828
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 0x24
lea edx, [esp + 0x20]
push edx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x40d86c
cmp dword [esp + 0x2c], ebp
jbe 0x40d85b
call ebx
mov ebp, dword [esp + 0x2c]
mov esi, eax
jmp 0x40d865
call ebx
sub eax, esi
cmp eax, dword [esp + 0x30]
ja 0x40d86c
cmp dword [esp + 0x1c], 2
je 0x40d800
sub esp, 0x1c
cmp dword [esp + 0x38], 4
mov dword [esp + 0x30], esp
mov ecx, esp
jne 0x40d897
mov eax, str.Service_started_successfully._n
call fcn.00403580
call fcn.00406dd0
add esp, 0x1c
mov al, 1
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov eax, str.Service_not_started.
call fcn.00403580
call fcn.00406dd0
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x40]
add esp, 0x1c
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
sub esp, 0x1c
mov eax, str.Current_State:__d__Exit_Code:__d__Check_Point:__d__Wait_Hint:__d_n
mov ecx, esp
mov dword [esp + 0x40], esp
call fcn.00403580
call fcn.00406dd0
add esp, 0x2c
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x30
ret
Function at 0x40dd90
Capabilities:
Create service
Persist via windows service

Disassembly:
sub esp, 8
push esi
push 0xf003f
push 0
push 0
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [esi + 8], eax
test eax, eax
jne 0x40ddeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
sub esp, 0x1c
mov esi, esp
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov dword [esp + 0x28], esp
mov word [esi + 4], ax
push 0x1a
mov eax, str.OpenSCManager_FAILED___d__n
call fcn.00403820
call fcn.00406dd0
add esp, 0x20
xor al, al
pop esi
add esp, 8
ret
mov edx, dword [esi]
mov ecx, dword [esi + 4]
push 0
push 0
push 0
push 0
push 0
push edx
push 1
push 2
push 0x110
push 0xf01ff
push ecx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x40de5c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
push eax
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x28], esp
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
push 0x1a
mov eax, str.CreateService_FAILED___d__n
mov word [esi + 4], cx
call fcn.00403820
call fcn.00406dd0
add esp, 0x20
xor al, al
pop esi
add esp, 8
ret
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x24], esp
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
push 0x1d
mov eax, str.CreateService__Successfully._n
mov word [esi + 4], dx
call fcn.00403820
call fcn.00406dd0
add esp, 0x1c
mov al, 1
pop esi
add esp, 8
ret

Function at 0x40dea0
Capabilities:
Delete service

Disassembly:
sub esp, 8
push esi
mov esi, eax
call fcn.0040d640
test al, al
je 0x40def5
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40defc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x28], esp
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
push 0x1a
mov eax, str.DeleteService_FAILED___d__n
mov word [esi + 4], cx
call fcn.00403820
call fcn.00406dd0
add esp, 0x20
xor al, al
pop esi
add esp, 8
ret
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x24], esp
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
push 0x1d
mov eax, str.Service_deleted_successfully_n
mov word [esi + 4], dx
call fcn.00403820
call fcn.00406dd0
add esp, 0x1c
mov al, 1
pop esi
add esp, 8
ret

Function at 0x41c7c3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x446d84]
jne 0x41c7cd
repz ret
jmp fcn.00421cff
Function at 0x4311fb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00422d6a
and dword [ebp - 4], 0
cmp dword [0x44b00c], 0
mov ebx, eax
jne 0x4312ac
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43135d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x43135d
push eax
call fcn.00422cf8
mov dword [esp], 0x43d6ac
push edi
mov dword [0x44b00c], eax
call esi
push eax
call fcn.00422cf8
mov dword [esp], 0x43d698
push edi
mov dword [0x44b010], eax
call esi
push eax
call fcn.00422cf8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44b014], eax
call esi
push eax
call fcn.00422cf8
pop ecx
mov dword [0x44b01c], eax
test eax, eax
je 0x4312ac
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00422cf8
pop ecx
mov dword [0x44b018], eax
mov eax, dword [0x44b018]
cmp eax, ebx
je 0x431304
cmp dword [0x44b01c], ebx
je 0x431304
push eax
call fcn.00422d73
push dword [0x44b01c]
mov esi, eax
call fcn.00422d73
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x431304
test edi, edi
je 0x431304
call esi
test eax, eax
je 0x4312fb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4312fb
test byte [ebp - 0xc], 1
jne 0x431304
or dword [ebp + 0x10], 0x200000
jmp 0x43133d
mov eax, dword [0x44b010]
cmp eax, ebx
je 0x43133d
push eax
call fcn.00422d73
pop ecx
test eax, eax
je 0x43133d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43133d
mov eax, dword [0x44b014]
cmp eax, ebx
je 0x43133d
push eax
call fcn.00422d73
pop ecx
test eax, eax
je 0x43133d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44b00c]
call fcn.00422d73
pop ecx
test eax, eax
je 0x43135d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43135f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x2fe401c8
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data_1
mov ebx, 0x42cd70
nop
mov ecx, 0x186108fb
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4050fd
Capabilities:
Read file on windows

Disassembly:
cmp byte [ecx + 0x14], 0
jne 0x443d70
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042e8c4
add esp, 0x10
leave
ret 0x10
mov ecx, dword [ecx + 0x10]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov edx, dword [ecx]
push eax
push dword [ebp + 8]
push ecx
call dword [edx + 0xc]
mov eax, dword [ebp - 4]
jmp 0x40511b

Function at 0x406944
Capabilities:
Hash data using djb2

Disassembly:
xor esi, esi
mov edx, dword [eax + 4]
mov edi, dword [eax]
add edx, edx
mov eax, 0x1505
test edx, edx
jle 0x406964
movzx ecx, byte [esi + edi]
imul eax, eax, 0x21
add eax, ecx
inc esi
cmp esi, edx
jl 0x406956
pop edi
pop esi
pop ebp
ret 4

Function at 0x408810
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
push ebx
mov ebx, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x30], ebx
push esi
push edi
test ebx, ebx
je 0x446545
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov eax, dword [esi]
mov ecx, dword [esi + 0x50]
mov dword [ebp - 0x28], ecx
cmp eax, dword [esi + 4]
jae 0x44e68f
mov edx, dword [ebp - 8]
cmp dword [ebp + 0x18], 0
jne 0x446567
push 1
push 0
push 0
push 0
push 0
xor edx, edx
lea ecx, [ebp + 0x18]
call fcn.00408810
add esp, 0x14
jmp 0x4089db
lea eax, [ebp + 0x18]
sub eax, dword [ebp - 8]
cdq
xor eax, edx
sub eax, edx
neg eax
jmp 0x4089db