joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4174a0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0xc]
push edi
lea edi, [esi + 0xc]
test ecx, ecx
je 0x4174b4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push edi
push 0x443804
push 1
push 0
push 0x43c858
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 8
push eax
call fcn.00417a00
test al, al
je 0x41755d
mov ecx, dword [esi + 0x14]
lea edi, [esi + 0x14]
push ebx
mov ebx, dword [esi + 0xc]
test ecx, ecx
je 0x4174ee
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push edi
push 0
push 0
push 0
push 0
push 0
push 0
mov dword [edi], 0
mov eax, dword [ebx]
push str.ROOTCIMV2
push ebx
call dword [eax + 0xc]
pop ebx
test eax, eax
jns 0x417526
push ecx
push str.WMI_error
push eax
mov ecx, 0x44cdfc
call fcn.00408c20
test al, al
je 0x41755d
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [esi + 0x14]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x417556
push ecx
push str.WMI_error
push eax
mov ecx, 0x44cdfc
call fcn.00408c20
test al, al
je 0x41755d
pop edi
mov al, 1
pop esi
ret 4
pop edi
xor al, al
pop esi
ret 4

Function at 0x417a80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x164
movzx eax, word [0x44c81c]
push ebx
push ebp
push esi
mov esi, dword [0x4d23f4]
mov ebp, edx
push edi
push 0xa
push eax
push esi
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x417b53
lea ecx, [esp + 0x18]
xor bl, bl
call fcn.0040ac30
push ebp
mov ebp, dword [esp + 0x180]
push 0
push 0x400
push ebp
mov dword [esp + 0x28], vtable.DiskFileClass.0
mov dword [esp + 0xb8], 0
call dword [0x4419f0]
test al, al
je 0x417b36
push dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebp
push dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
push esi
push eax
lea ecx, [esp + 0xc8]
call fcn.004151c0
mov ecx, eax
call fcn.00417130
lea ecx, [esp + 0xb4]
mov bl, al
call fcn.00415260
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [esp + 0x18]
call fcn.0040e4b0
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x164
ret
Function at 0x4182c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x54
mov eax, dword [0x44a1a0]
xor eax, esp
mov dword [esp + 0x50], eax
push esi
push edi
push 0xa
push 0xcc
push dword [0x4d23f4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4183dc
push esi
push dword [0x4d23f4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4183dc
push esi
push dword [0x4d23f4]
xorps xmm0, xmm0
mov dword [esp + 0x38], 0
lea eax, [esp + 0x50]
mov dword [esp + 0x24], vtable.RegValueClass.0
movdqu xmmword [esp + 0x28], xmm0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x3c], 0x43c8e0
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
lea ecx, [esp + 0x20]
call fcn.004106c0
test al, al
je 0x4183cc
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [esp + 0x38]
push eax
push dword [esp + 0x4c]
call fcn.00421610
mov ecx, dword [0x44f74c]
xor eax, eax
add esp, 0xc
mov dword [esp + 8], reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0xc], 0x4400f0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
test cl, 3
je 0x4183bc
test cl, 1
mov ecx, 0x100
cmovne eax, ecx
mov dword [esp + 0x14], eax
push ecx
lea eax, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.00411450
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [esp + 0x1c]
call fcn.00410630
mov ecx, dword [esp + 0x58]
pop edi
pop esi
xor ecx, esp
call fcn.0041e8c8
add esp, 0x54
ret
Function at 0x419f70
Capabilities:
Get common file path

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
push edi
mov edi, edx
push dword [esi + 0xc]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x419f94
mov eax, dword [esi + 0x10]
xor ecx, ecx
mov word [eax], cx
mov dword [esi + 4], ecx
mov ecx, dword [esi + 0x10]
mov edx, edi
call fcn.00404710
test eax, eax
je 0x41a00e
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x43c8e0
mov dword [esp + 0x10], 0
call fcn.004065a0
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x419fd7
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419fc6
sub ecx, edx
sar ecx, 1
jmp 0x419fd9
xor ecx, ecx
sub esp, 8
lea eax, [ecx + 1]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.004067b0
mov edi, dword [esp + 8]
mov ecx, esi
push 0xffffffffffffffff
push edi
call fcn.0040bc10
cmp dword [esp + 0xc], 0
je 0x41a019
push edi
call fcn.0041f5f1
add esp, 4
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [esi + 0x10]
xor ecx, ecx
mov word [eax], cx
mov dword [esi + 4], ecx
pop edi
pop esi
add esp, 0xc
ret

Function at 0x41b7c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x434e4e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x44a1a0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x10], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 4
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [esp + 0x1c], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 8
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov byte [esp + 0x1c], 1
lea ecx, [ebx + 0x28]
mov dword [ebx + 0x2c], 0xffffffff
mov dword [ebx + 0x28], vtable.EventClass.0
call dword [0x441b8c]
mov esi, dword [ebx + 0x28]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
lea ecx, [ebx + 0x28]
call dword [esi + 8]
mov eax, dword [ebx + 0x28]
lea ecx, [ebx + 0x28]
call dword [eax + 0x10]
mov byte [esp + 0x1c], 2
xorps xmm0, xmm0
movdqu xmmword [ebx + 0x30], xmm0
mov dword [ebx + 0x40], 0
mov eax, dword [ebx + 0x2c]
mov dword [ebx + 0x40], eax
mov eax, ebx
mov dword [esp + 0x1c], 0xffffffff
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x41cec0
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], vtable.SmartCOMPointer_struct_INetFwMgr_.0
push eax
push 0x445fc4
push 1
push 0
push 0x445ff4
mov ebp, ecx
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], vtable.SmartCOMPointer_struct_INetFwPolicy_.0
mov dword [esp + 0x28], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, dword [esp + 0x24]
push edi
push ecx
push eax
call fcn.0041e070
test al, al
je 0x41cf74
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
test ecx, ecx
je 0x41cf24
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push edi
push ecx
mov dword [esp + 0x1c], 0
lea ecx, [esp + 0x1c]
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0x1c]
push eax
call fcn.0041dc30
test al, al
je 0x41cf74
mov ecx, dword [ebp + 4]
lea esi, [ebp + 4]
mov ebx, dword [esp + 0x14]
test ecx, ecx
je 0x41cf57
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push edi
push ecx
mov dword [esi], 0
mov eax, dword [ebx]
push esi
push ebx
call dword [eax + 0x1c]
push eax
call fcn.0041dcb0
test al, al
je 0x41cf74
mov bl, 1
jmp 0x41cf76
xor bl, bl
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], vtable.SmartCOMPointer_struct_INetFwPolicy_.0
test ecx, ecx
je 0x41cf8c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], vtable.SmartCOMPointer_struct_INetFwMgr_.0
test eax, eax
je 0x41cfa2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x10
ret 4
Function at 0x41d900
Capabilities:
Get file version info

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov ebx, ecx
mov ebp, edx
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x41da97
push edi
xor edi, edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], edi
test esi, esi
je 0x41d961
push edi
push esi
lea ecx, [esp + 0x20]
call fcn.004082a0
mov edi, eax
mov dword [esp + 0x28], edi
test edi, edi
je 0x41d9c9
mov dword [esp + 0x24], esi
push edi
push esi
push 0
push ebx
mov dword [esp + 0x2c], esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x41da38
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0
push eax
push str.StringFileInfo040904B0FileDescription
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x41da0f
cmp dword [esp + 0x10], 0
je 0x41d9e6
push dword [esp + 0x14]
mov ecx, ebp
call fcn.004065a0
lea ecx, [esp + 0x18]
mov bl, al
call fcn.00408240
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x1c
ret
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0
xor bl, bl
call fcn.00408240
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x1c
ret
mov eax, dword [vtable.ErrorClass.0]
mov ecx, 0x44cdfc
push str.Could_not_retrieve_File_Description
mov eax, dword [eax + 4]
call eax
lea ecx, [esp + 0x18]
mov bl, al
call fcn.00408240
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x1c
ret
mov eax, dword [vtable.ErrorClass.0]
mov ecx, 0x44cdfc
push str.File_Description_could_not_be_found_in_the_Version_resource
mov eax, dword [eax + 4]
call eax
lea ecx, [esp + 0x18]
mov bl, al
call fcn.00408240
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41da71
mov eax, dword [vtable.ErrorClass.0]
push str.Could_not_retrieve_Version_information_for_the_running_binary
push str.Error_in___s_
push 0x44cdfc
call dword [eax + 0x20]
add esp, 0xc
lea ecx, [esp + 0x18]
mov bl, al
call fcn.00408240
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x1c
ret
push ecx
push str.Could_not_retrieve_Version_information_for_the_running_binary
push eax
mov ecx, 0x44cdfc
call fcn.00408c20
lea ecx, [esp + 0x18]
mov bl, al
call fcn.00408240
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x1c
ret
mov eax, dword [vtable.ErrorClass.0]
mov ecx, 0x44cdfc
push str.Version_resource_is_not_present_in_the_running_binary
mov eax, dword [eax + 4]
call eax
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x42cae4
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44a1a0]
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.004241bd
mov dword [ebp - 0x14], eax
cmp dword [0x44f55c], esi
jne 0x42cbd7
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x42cb64
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x42ccb7
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x42ccb7
push 0x43bee4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42ccb7
push eax
call ebx
push 0x43bef0
push edi
mov dword [0x44f55c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x44f560], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x44f564], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44f56c], eax
test eax, eax
je 0x42cbd4
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44f568], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x42cbfc
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42cbef
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x42cc11
push 4
pop eax
jmp 0x42ccb9
cmp dword [ebp - 0x14], esi
je 0x42cc11
push dword [0x44f55c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x42cbf6
mov eax, dword [0x44f568]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x42cc6f
cmp dword [0x44f56c], edi
je 0x42cc6f
push eax
call ebx
push dword [0x44f56c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x42cc6f
test eax, eax
je 0x42cc6f
call ecx
test eax, eax
je 0x42cc64
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 0x42cc64
test byte [ebp - 8], 1
jne 0x42cc6f
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x42cc9f
mov eax, dword [0x44f560]
cmp eax, edi
je 0x42cc9c
push eax
call ebx
test eax, eax
je 0x42cc9c
call eax
mov esi, eax
test esi, esi
je 0x42cc9c
mov eax, dword [0x44f564]
cmp eax, edi
je 0x42cc9c
push eax
call ebx
test eax, eax
je 0x42cc9c
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x44f55c]
call ebx
test eax, eax
je 0x42ccb7
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x42ccb9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e8c8
mov esp, ebp
pop ebp
ret
Function at 0x4099b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create thread
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x58]
mov ecx, 0x16
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x1d4], 1
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x38], 0xffffffff
jne 0x409a11
mov eax, dword [ebp - 4]
mov dword [eax + 0x38], 0
mov dword [ebp - 8], 0xffffffff
jmp 0x409aa0
push 0x10
push 0
lea ecx, [ebp - 0x18]
push ecx
call fcn.0040e160
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [ebp - 0x14], edx
mov ax, word [ebp + 0xc]
mov word [ebp - 0x16], ax
mov word [ebp - 0x18], 2
push 0x10
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x38]
push eax
call sub.WS2_32.dll_connect
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x409a68
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x38]
push edx
call sub.WS2_32.dll_closesocket
mov eax, dword [ebp - 4]
mov dword [eax + 0x38], 0
jmp 0x409a9e
mov esi, esp
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x401096
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp esi, esp
call fcn.0040df20
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
call sub.WS2_32.dll_WSAGetLastError
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x40], eax
mov eax, dword [ebp - 8]
jmp 0x409aa2
jmp 0x409a8e
jmp 0x409a8e
pop edi
pop esi
pop ebx
add esp, 0x58
cmp ebp, esp
call fcn.0040df20
mov esp, ebp
pop ebp
ret 8
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 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40915c
nop
mov ecx, 0x18d69ff
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
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
nop
nop
jne 0x431024
mov eax, str.p__
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x20302fd0
nop
nop
test eax, eax
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401720
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0040fa10
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x401787
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cannot_install_service___d__n
call fcn.00401c70
add esp, 8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d40a
mov esp, ebp
pop ebp
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x4017c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed___d__n
call fcn.00401c70
add esp, 8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d40a
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push 1
push 2
push 0x10
push 0xf01ff
push 0x43230c
push 0x43230c
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x40181e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateService_failed___d__n
call fcn.00401c70
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d40a
mov esp, ebp
pop ebp
ret
push str.Service_installed_successfully_n
call fcn.00401c70
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040d40a
mov esp, ebp
pop ebp
ret

Function at 0x401960
Capabilities:
Create thread
Print debug messages

Disassembly:
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x438d00], eax
test eax, eax
jne 0x4019bd
push 0x438d08
push dword [0x438d04]
mov dword [0x438d0c], 1
mov dword [0x438d14], 0
mov dword [0x438d20], 0
mov dword [0x438d10], 1
mov dword [0x438d1c], 0
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
xor eax, eax
ret
push str.start_start
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x438d28], 0
jne 0x4019fd
push 0
push 0
push 0x438d28
push 0x401d40
push 0
push 0
mov byte [0x438d30], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x438d28], eax
test eax, eax
je 0x401977
push 0x438d08
push dword [0x438d04]
mov dword [0x438d0c], 4
mov dword [0x438d14], 0
mov dword [0x438d20], 0
mov dword [0x438d10], 1
mov dword [0x438d1c], 0
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
push 0xffffffffffffffff
push dword [0x438d00]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x438d28
call fcn.004055d0
push 0x438d08
push dword [0x438d04]
mov dword [0x438d0c], 1
mov dword [0x438d14], 0
mov dword [0x438d20], 0
mov dword [0x438d10], 1
mov dword [0x438d1c], 0
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov eax, 1
ret
Function at 0x401b20
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xa0
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xac], 0
push 0
push eax
mov dword [ebp - 0xa8], 0
call fcn.0040fa10
add esp, 0xc
push 0x43230c
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x401bcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegisterServiceCtrlHandler
push str._s_failed_with__d
lea eax, [ebp - 0xa4]
push 0x50
push eax
call fcn.00401be0
add esp, 0x14
mov dword [ebp - 0xac], 0x43230c
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xac]
push 0
push eax
push 0
push 2
push 0
push 0xc0020001
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040d40a
mov esp, ebp
pop ebp
ret