joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401100
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push ebx
mov ebx, ecx
mov dword [esp + 4], eax
mov eax, dword [edx]
lea ecx, [ebx + 0x1c]
push ebp
push esi
push edi
mov dword [ecx], eax
mov eax, dword [edx + 4]
sub esp, 0x14
lea esi, [ebx + 0x18]
mov dword [ecx + 4], eax
mov eax, dword [edx + 8]
mov edi, esp
mov dword [ecx + 8], eax
mov edx, dword [edx + 0xc]
mov dword [ecx + 0xc], edx
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.004018d0
mov eax, dword [esp + 0x2c]
lea ebp, [ebx + 8]
mov ecx, ebp
sub esp, 0x14
mov edx, dword [eax]
lea esi, [ebx + 0x18]
mov dword [ecx], edx
mov edi, esp
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, 5
lea eax, [ebx + 4]
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, ebx
call fcn.00401310
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.004012f0
mov ecx, 5
mov esi, eax
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov dl, byte [esp + eax + 0x18]
mov cl, byte [eax + ebp]
xor cl, dl
mov byte [eax + ebp], cl
inc eax
cmp eax, 0x10
jl 0x401198
mov eax, dword [esp + 0x34]
mov ecx, ebp
mov edx, eax
add eax, 0x10
mov esi, dword [ecx]
mov dword [esp + 0x34], eax
mov dword [edx], esi
mov eax, 0x10
mov esi, dword [ecx + 4]
mov dword [edx + 4], esi
mov esi, dword [ecx + 8]
mov dword [edx + 8], esi
mov esi, dword [esp + 0x2c]
mov ecx, dword [ecx + 0xc]
add esi, eax
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x38]
cmp ecx, eax
mov dword [esp + 0x2c], esi
jle 0x401298
lea eax, [ecx - 1]
shr eax, 4
mov dword [esp + 0x30], eax
inc eax
shl eax, 4
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x2c]
mov eax, ebp
sub esp, 0x14
lea esi, [ebx + 0x18]
mov ecx, dword [edx]
mov edi, esp
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, 5
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
lea eax, [ebx + 4]
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, ebx
call fcn.00401310
mov esi, 0xfffffff8
mov eax, ebp
sub esi, ebx
mov edi, dword [esp + 0x10]
mov dl, byte [eax]
mov cl, byte [edi]
xor dl, cl
inc edi
mov byte [eax], dl
inc eax
mov dword [esp + 0x10], edi
lea edx, [esi + eax]
cmp edx, 0x10
jl 0x40123b
mov eax, dword [esp + 0x34]
mov ecx, ebp
mov edx, eax
add eax, 0x10
mov esi, dword [ecx]
mov dword [esp + 0x34], eax
mov dword [edx], esi
mov eax, dword [esp + 0x30]
mov esi, dword [ecx + 4]
mov dword [edx + 4], esi
mov esi, dword [ecx + 8]
mov dword [edx + 8], esi
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x2c]
add ecx, 0x10
dec eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
jne 0x4011fc
mov eax, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
Function at 0x401310
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
lea eax, [esp + 0x10]
push edi
push eax
mov esi, ecx
push 0xa
call fcn.00401a00
mov ebp, dword [esp + 0x2c]
lea edi, [esp + 0x14]
mov ebx, 0xfffffffc
sub edi, ebp
lea eax, [ebp + 4]
sub ebx, ebp
mov dword [esp + 0x10], eax
mov cl, byte [edi + eax]
mov dl, byte [eax]
xor dl, cl
mov byte [eax], dl
inc eax
lea edx, [ebx + eax]
cmp edx, 0x10
jl 0x40133d
push ebp
mov ecx, esi
call fcn.00401420
push ebp
mov ecx, esi
call fcn.004013f0
mov dword [esp + 0x2c], 9
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.00401a00
mov eax, dword [esp + 0x10]
mov dl, byte [eax + edi]
mov cl, byte [eax]
xor cl, dl
mov byte [eax], cl
inc eax
lea ecx, [eax + ebx]
cmp ecx, 0x10
jl 0x40137c
push ebp
mov ecx, esi
call fcn.004014b0
push ebp
mov ecx, esi
call fcn.00401420
push ebp
mov ecx, esi
call fcn.004013f0
mov eax, dword [esp + 0x2c]
dec eax
test eax, eax
mov dword [esp + 0x2c], eax
jg 0x401367
lea edx, [esp + 0x14]
mov ecx, esi
push edx
push 0
call fcn.00401a00
mov eax, dword [esp + 0x10]
mov cl, byte [eax + edi]
mov dl, byte [eax]
xor dl, cl
mov byte [eax], dl
inc eax
lea edx, [eax + ebx]
cmp edx, 0x10
jl 0x4013c5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x18
Function at 0x4018d0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x34
push ebx
push ebp
mov eax, ecx
push esi
push edi
mov ecx, 5
lea edi, [eax + 0x54]
lea esi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
mov edx, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 2
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], 8
mov dword [esp + 0x2c], 0x10
mov dword [esp + 0x30], 0x20
mov dword [esp + 0x34], 0x40
mov dword [esp + 0x38], 0x80
mov dword [esp + 0x3c], 0x1b
mov dword [esp + 0x40], 0x36
mov dword [esp + 0x48], ecx
add eax, 0x68
mov dword [esp + 0x14], 0xa
lea ebp, [eax + 4]
lea ecx, [ebp - 8]
mov dword [eax - 0x14], ecx
mov dword [eax], ebp
mov ecx, dword [eax - 0x14]
mov ecx, dword [ecx]
mov esi, ecx
shl esi, 0x18
shr ecx, 8
or esi, ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], esi
mov esi, edx
xor ebx, ebx
mov bl, byte [ecx]
inc ecx
dec esi
mov bl, byte [ebx + str.cw]
mov byte [ecx - 1], bl
jne 0x401977
mov edi, dword [esp + 0x48]
lea esi, [eax - 0x10]
mov dword [eax - 0x14], esi
mov ecx, dword [esi]
mov ebx, dword [edi]
mov edi, dword [esp + 0x10]
xor ecx, ebx
xor ecx, edi
mov edi, dword [eax]
mov dword [edi], ecx
mov ecx, dword [eax]
add ecx, edx
mov edi, 3
mov dword [eax], ecx
mov ecx, dword [eax - 0x14]
add ecx, 4
mov dword [eax - 0x14], ecx
mov edx, dword [eax]
mov ebx, dword [edx - 4]
xor ebx, dword [ecx]
mov dword [edx], ebx
mov ebx, dword [eax]
mov edx, 4
add ebx, edx
mov dword [eax], ebx
mov ecx, dword [eax - 0x14]
add ecx, edx
dec edi
mov dword [eax - 0x14], ecx
jne 0x4019b6
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x14]
mov dword [eax], ebp
mov dword [eax - 0x14], esi
add edi, edx
add eax, 0x14
dec ecx
mov dword [esp + 0x48], edi
mov dword [esp + 0x14], ecx
jne 0x401953
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0x14
Function at 0x403550
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
push ecx
push ebx
push esi
lea eax, [esp + 8]
push edi
mov edi, dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryA]
xor ebx, ebx
push eax
push ebx
push ebx
mov dword [esp + 0x18], ebx
call edi
mov ecx, dword [esp + 0xc]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
lea edx, [esp + 0xc]
mov esi, eax
push edx
push esi
push ebx
call edi
mov edi, eax
cmp edi, ebx
je 0x4035f7
mov ebx, dword [sym.imp.WININET.dll_FindNextUrlCacheEntryA]
push ebp
mov ebp, dword [esp + 0x18]
test ebp, ebp
jne 0x4035a5
test dword [esi + 0xc], 0x100000
jne 0x4035bd
mov eax, dword [esi + 4]
push eax
jmp 0x4035b7
cmp ebp, 1
jne 0x4035bd
test dword [esi + 0xc], 0x100000
je 0x4035bd
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
push edx
push 0
push edi
call ebx
push esi
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x14]
push eax
call sub.MFC42.DLL_operatornew
add esp, 8
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
push esi
push edi
call ebx
test eax, eax
jne 0x403592
mov ebx, 1
pop ebp
test esi, esi
je 0x403604
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
mov eax, ebx
pop esi
pop ebx
pop ecx
ret
Function at 0x405090
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4050fb
mov ax, word [esp]
cmp al, 2
jne 0x4050f5
xor ecx, ecx
mov cl, ah
cmp cl, al
jne 0x4050f5
push 0
push 0
push 0
push 0
push 0x326e
push 0x405610
call sub.MFC42.DLL_AfxBeginThread
push 0
push 0
push 0
push 0
push 0x326f
push 0x405610
call sub.MFC42.DLL_AfxBeginThread
mov eax, 1
add esp, 0x190
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
add esp, 0x190
ret

Function at 0x4058e0
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x58], eax
ret
Function at 0x408440
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x14]
pop edi
cmp eax, 2
jne 0x4084c1
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x40849a
mov eax, dword [esp + 8]
test eax, eax
jne 0x40848e
mov eax, 6
add esp, 0x94
ret
mov eax, 7
add esp, 0x94
ret
cmp eax, 6
jne 0x4084b3
mov eax, dword [esp + 8]
test eax, eax
jne 0x4084b5
mov eax, 8
add esp, 0x94
ret
jb 0x40848e
mov eax, 9
add esp, 0x94
ret
cmp eax, 1
jne 0x4084de
cmp dword [esp + 4], 4
jne 0x40848e
cmp dword [esp + 8], 0x5a
sbb eax, eax
add eax, 4
add esp, 0x94
ret
mov eax, 2
add esp, 0x94
ret

Function at 0x408850
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x408862
ret 4
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
ret 4

Function at 0x408870
Capabilities:
Send data
Send data on socket

Disassembly:
mov edx, dword [esp + 8]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0xc]
not ecx
dec ecx
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
pop edi
ret 8
Function at 0x40d530
Capabilities:
Enumerate process modules

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40f06b
push eax
mov eax, 0x121c
mov dword fs:[0], esp
call fcn.0040dc80
mov al, byte [0x414de8]
push esi
mov dword [esp + 0x14], ecx
push edi
mov byte [esp + 0x20], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x224]
push ecx
push 0x1000
push edx
mov dword [esp + 0x1238], 1
call sub.PSAPI.DLL_EnumProcesses
mov eax, dword [esp + 0x1c]
shr eax, 2
je 0x40d67b
mov edi, dword [sym.imp.MSVCRT.dll__itoa]
push ebx
push ebp
lea esi, [esp + 0x22c]
mov ebp, eax
mov bl, 2
mov ecx, dword [esi]
lea eax, [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.0040d6e0
test eax, eax
je 0x40d66f
mov eax, dword [esi]
lea edx, [esp + 0x12c]
push 0xa
push edx
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x28]
lea edx, [esp + 0x10]
push ecx
push 0x414d44
push edx
mov byte [esp + 0x1240], bl
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
push 0x5c
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1238], 3
call fcn.0040dafe
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1234], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x1234], 1
call sub.MFC42.DLL_CString::CString
add esi, 4
dec ebp
jne 0x40d5c1
pop ebp
pop ebx
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
mov esi, dword [esp + 0x1234]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x122c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1224]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1228
ret 4
Function at 0x40d6e0
Capabilities:
Get process image filename

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
mov edi, dword [esp + 0x118]
test edi, edi
mov ebx, ecx
jne 0x40d704
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x104
ret 8
mov eax, dword [esp + 0x114]
mov byte [edi], 0
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x40d72e
pop edi
pop esi
pop ebx
add esp, 0x104
ret 8
lea ecx, [esp + 0xc]
push 0x104
push ecx
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameA
test eax, eax
jne 0x40d757
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x104
ret 8
lea edx, [esp + 0xc]
push edi
push edx
mov ecx, ebx
call fcn.0040d7a0
test eax, eax
push esi
jne 0x40d77d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x104
ret 8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x104
ret 8

Function at 0x40d7a0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x25c
push ebx
mov ebx, dword [esp + 0x264]
push ebp
push esi
test ebx, ebx
push edi
je 0x40d868
mov eax, dword [esp + 0x274]
test eax, eax
je 0x40d868
lea eax, [esp + 0x78]
push eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x40d859
mov al, byte [esp + 0x78]
test al, al
je 0x40d859
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea esi, [esp + 0x78]
push 0x414d4c
push esi
call ebp
test eax, eax
je 0x40d84f
push 0x414d48
push esi
call ebp
test eax, eax
je 0x40d84f
mov cl, byte [esi]
mov dl, byte [esi + 1]
mov byte [esp + 0x10], cl
lea eax, [esp + 0x14]
push 0x64
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x1d], dl
mov byte [esp + 0x1e], 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x40d868
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [esp + 0x14]
push edi
push eax
push ebx
call dword [sym.imp.MSVCRT.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
je 0x40d877
mov al, byte [esi + 4]
add esi, 4
test al, al
jne 0x40d7ee
mov edx, dword [esp + 0x274]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x25c
ret 8
mov esi, dword [esp + 0x274]
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x25c
ret 8
Function at 0x401360
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push edi
push 0
push 0
call ebx
mov edi, eax
test edi, edi
jne 0x401377
pop edi
pop ebx
ret
push esi
push edi
call fcn.0040230e
push edi
mov esi, eax
push 0
push esi
call fcn.004057a0
add esp, 0x10
push edi
push esi
call ebx
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401395
sub eax, edx
cmp byte [eax + esi - 1], 0x5c
mov eax, esi
je 0x4013b4
push 0x411834
call fcn.00401260
add esp, 4
pop esi
pop edi
pop ebx
ret

Function at 0x4013c0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push edi
push 0
push 0
call ebx
mov edi, eax
test edi, edi
jne 0x4013d7
pop edi
pop ebx
ret
push esi
push edi
call fcn.0040230e
push edi
mov esi, eax
push 0
push esi
call fcn.004057a0
add esp, 0x10
push edi
push esi
call ebx
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4013f5
sub eax, edx
cmp byte [eax + esi - 1], 0x5c
mov eax, esi
je 0x401414
push 0x411834
call fcn.00401260
add esp, 4
pop esi
pop edi
pop ebx
ret
Function at 0x401490
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, str.temp
mov eax, ecx
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4014c0
test dl, dl
je 0x4014bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4014c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4014a0
xor eax, eax
jmp 0x4014c5
sbb eax, eax
sbb eax, 0xffffffff
push esi
test eax, eax
jne 0x40152a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathA]
push edi
push eax
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x4014e5
pop edi
pop ebx
pop esi
pop ebp
jmp fcn.00401260
push edi
call fcn.0040230e
push edi
mov esi, eax
push 0
push esi
call fcn.004057a0
add esp, 0x10
push esi
push edi
call ebx
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401502
sub eax, edx
cmp byte [eax + esi - 1], 0x5c
mov eax, esi
je 0x401521
push 0x411834
call fcn.00401260
add esp, 4
pop edi
pop ebx
pop esi
pop ebp
jmp fcn.00401260
mov ecx, str.current
mov eax, str.temp
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401554
test dl, dl
je 0x401550
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401554
add eax, 2
add ecx, 2
test dl, dl
jne 0x401534
xor eax, eax
jmp 0x401559
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40158d
call fcn.00401420
mov esi, eax
push 0x5c
push esi
call fcn.00402680
add esp, 8
test eax, eax
jne 0x40157a
pop esi
pop ebp
jmp fcn.00401260
sub eax, esi
inc eax
push esi
call fcn.004012f0
add esp, 4
pop esi
pop ebp
jmp fcn.00401260
mov ecx, str.system
mov eax, str.temp
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4015b7
test dl, dl
je 0x4015b3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4015b7
add eax, 2
add ecx, 2
test dl, dl
jne 0x401597
xor eax, eax
jmp 0x4015bc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4015d4
mov eax, dword [ebp + 8]
push eax
call fcn.00401360
call fcn.00401260
add esp, 4
pop esi
pop ebp
ret
mov ecx, str.windows
mov eax, str.temp
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401600
test dl, dl
je 0x4015fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401600
add eax, 2
add ecx, 2
test dl, dl
jne 0x4015e0
xor eax, eax
jmp 0x401605
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40161d
mov ecx, dword [ebp + 8]
push ecx
call fcn.004013c0
call fcn.00401260
add esp, 4
pop esi
pop ebp
ret
mov edx, dword [ebp + 8]
push edx
mov eax, str.temp
call fcn.00401260
mov ecx, eax
add esp, 4
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x401633
sub ecx, esi
cmp byte [ecx + eax - 1], 0x5c
je 0x401650
push 0x411834
call fcn.00401260
add esp, 4
pop esi
pop ebp
ret
Function at 0x401660
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x41329c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 0x13c], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x140], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x124
lea ecx, [ebp - 0x130]
push 0
push ecx
mov dword [ebp - 0x138], 0
call fcn.004057a0
add esp, 0xc
lea edx, [ebp - 0x134]
push edx
push esi
mov dword [ebp - 0x134], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.004023b0
add esp, 8
test eax, eax
je 0x401729
mov edx, dword [ebp - 0x12c]
push edx
push 0
push 1
call edi
mov esi, eax
lea eax, [ebp - 0x138]
push eax
push esi
call ebx
mov ecx, dword [ebp - 0x138]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x401729
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x140]
lea edx, [ebp - 0x134]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x4016db
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004020fc
mov esp, ebp
pop ebp
ret 4
Function at 0x401760
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Set registry value
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x41329c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push 1
mov dword [ebp - 0x118], eax
call esi
push 1
call esi
push 1
call esi
push 0xa
push str.IDR_LUA
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4017ba
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020fc
mov esp, ebp
pop ebp
ret
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push 0
mov dword [ebp - 0x114], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4017a6
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4017a6
mov ecx, dword [ebp - 0x118]
push ecx
call fcn.00401490
add esp, 4
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
mov dword [ebp - 0x118], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
je 0x4017a6
push 1
call esi
push 1
call esi
push 1
call esi
mov eax, dword [ebp - 0x114]
push 0
lea edx, [ebp - 0x120]
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.resource.exe
call fcn.00401660
push str.resource.tmp
call fcn.00401660
push str.Navigator
lea ecx, [ebp - 0x110]
push str.Software_s
push ecx
call fcn.0040210b
add esp, 0xc
cmp byte [0x415bd7], 0
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x110]
push eax
push 0x80000001
je 0x4018de
mov dword [ebp - 0x11c], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [ebp - 0x114]
push 4
lea ecx, [ebp - 0x11c]
push ecx
push 4
push 0
push str.InstallMode
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
call esi
push 1
call esi
push 0
push 0
push str._VERYSILENT__SP_
jmp 0x40192f
mov dword [ebp - 0x11c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [ebp - 0x114]
push 4
lea ecx, [ebp - 0x11c]
push ecx
push 4
push 0
push str.InstallMode
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
call esi
push 0
call esi
push 1
call esi
push 0
push 0
push 0x4118b5
mov ecx, dword [ebp - 0x118]
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004020fc
mov esp, ebp
pop ebp
ret