joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013f8
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x40140a
mov eax, dword [0x4b808b]
shl eax, 2
mov dword [0x4b808f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004784a0
pop edx
call fcn.00478404
call fcn.004784e0
push 0
call fcn.0047aca0
pop ecx
push 0x4b8034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4b8093], eax
push 0
jmp fcn.00483f14

Function at 0x402b68
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov ebx, 0x4e9f78
mov eax, 0x4bb190
call fcn.00479eb8
mov dword [ebp - 0xc], 1
lea edx, [ebp - 4]
lea eax, [ebp - 4]
call fcn.00488c1c
inc dword [ebp - 0xc]
mov word [ebp - 0x18], 8
push 0xab
push 0
push 0x4e9f88
call fcn.004798f8
add esp, 0xc
mov byte [0x4e9f88], 0x89
cmp dword [ebx], 0
je 0x402bc2
mov edx, dword [ebx]
jmp 0x402bc7
mov edx, 0x4b9dbd
xor eax, eax
mov edi, edx
or ecx, 0xffffffff
mov esi, 0x4e9f89
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [ebx + 4], 0
je 0x402bf6
mov eax, dword [ebx + 4]
jmp 0x402bfb
mov eax, 0x4b9dbe
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
mov esi, 0x4e9fed
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [ebx + 8], 0
je 0x402c2a
mov eax, dword [ebx + 8]
jmp 0x402c2f
mov eax, 0x4b9dbf
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
mov esi, 0x4ea01f
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
push 0x20
push 2
push 0
push 2
push 0x40000000
cmp dword [ebp - 4], 0
je 0x402c6d
mov eax, dword [ebp - 4]
jmp 0x402c72
mov eax, 0x4b9dc0
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402cbe
push 0
lea eax, [ebp - 0x2c]
push eax
push 0xab
push 0x4e9f88
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
mov eax, 1
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0xc]
call fcn.00488dd0
pop eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x402cdc
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0xc]
call fcn.00488dd0
pop eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403a1c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edx, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov eax, dword [ebx]
mov ebx, dword [ebx + 0xc]
mov dword [ebp - 4], ebx
mov dword [esi], eax
mov dword [esi + 8], edx
mov dword [esi + 0x10], ecx
mov ebx, dword [ebp - 4]
mov edi, ecx
mov dword [esi + 0x18], ebx
mov ebx, dword [ebp - 4]
shl ebx, 0x10
shr edi, 0x10
and ebx, 0xffffffff
or ebx, edi
mov dword [esi + 4], ebx
mov ebx, eax
mov edi, dword [ebp - 4]
shl ebx, 0x10
shr edi, 0x10
and ebx, 0xffffffff
or ebx, edi
mov edi, eax
mov dword [esi + 0xc], ebx
mov ebx, edx
shl ebx, 0x10
shr edi, 0x10
and ebx, 0xffffffff
or ebx, edi
mov edi, edx
mov dword [esi + 0x14], ebx
mov ebx, ecx
shl ebx, 0x10
shr edi, 0x10
and ebx, 0xffffffff
or ebx, edi
mov edi, ecx
mov dword [esi + 0x1c], ebx
mov ebx, ecx
shl ebx, 0x10
shr edi, 0x10
and ebx, 0xffffffff
or ebx, edi
mov dword [esi + 0x20], ebx
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 4]
shl ebx, 0x10
shr edi, 0x10
and ebx, 0xffffffff
or ebx, edi
mov edi, eax
mov dword [esi + 0x28], ebx
mov ebx, eax
shl ebx, 0x10
shr edi, 0x10
and ebx, 0xffffffff
or ebx, edi
mov edi, edx
mov dword [esi + 0x30], ebx
mov ebx, edx
shl ebx, 0x10
shr edi, 0x10
and ebx, 0xffffffff
or ebx, edi
mov edi, edx
mov dword [esi + 0x38], ebx
mov ebx, eax
and edi, 0xffff
and ebx, 0xffff0000
or ebx, edi
and edx, 0xffff0000
mov dword [esi + 0x24], ebx
mov ebx, ecx
and ebx, 0xffff
and ecx, 0xffff0000
or edx, ebx
and eax, 0xffff
mov dword [esi + 0x2c], edx
mov edx, dword [ebp - 4]
and edx, 0xffff
or ecx, edx
mov dword [esi + 0x34], ecx
mov ecx, dword [ebp - 4]
and ecx, 0xffff0000
or ecx, eax
xor eax, eax
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x40], eax
xor ebx, ebx
push esi
call fcn.00402878
pop ecx
inc ebx
cmp ebx, 4
jb 0x403b2f
xor ebx, ebx
lea eax, [esi + 0x20]
lea edx, [ebx + 4]
inc ebx
and edx, 7
mov ecx, dword [esi + edx*4]
xor dword [eax], ecx
add eax, 4
cmp ebx, 8
jb 0x403b41
xor ebx, ebx
mov eax, esi
mov edx, dword [eax]
inc ebx
mov dword [eax + 0x44], edx
mov ecx, dword [eax + 0x20]
mov dword [eax + 0x64], ecx
add eax, 4
cmp ebx, 8
jb 0x403b59
mov eax, dword [esi + 0x40]
mov dword [esi + 0x84], eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x403b7c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
cmp dword [ebp + 0x18], 0x10
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
jb 0x403c18
lea eax, [ebx + 0x44]
push eax
call fcn.00402878
pop ecx
mov edx, dword [ebx + 0x58]
shr edx, 0x10
xor edx, dword [ebx + 0x44]
mov ecx, dword [ebx + 0x50]
shl ecx, 0x10
and ecx, 0xffffffff
xor edx, ecx
xor edx, dword [esi]
mov dword [edi], edx
mov eax, dword [ebx + 0x60]
shr eax, 0x10
xor eax, dword [ebx + 0x4c]
mov edx, dword [ebx + 0x58]
shl edx, 0x10
and edx, 0xffffffff
xor eax, edx
xor eax, dword [esi + 4]
mov dword [edi + 4], eax
mov ecx, dword [ebx + 0x48]
shr ecx, 0x10
xor ecx, dword [ebx + 0x54]
mov eax, dword [ebx + 0x60]
shl eax, 0x10
and eax, 0xffffffff
xor ecx, eax
xor ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov edx, dword [ebx + 0x50]
shr edx, 0x10
xor edx, dword [ebx + 0x5c]
mov ecx, dword [ebx + 0x48]
shl ecx, 0x10
and ecx, 0xffffffff
xor edx, ecx
xor edx, dword [esi + 0xc]
mov dword [edi + 0xc], edx
add esi, 0x10
add edi, 0x10
sub dword [ebp + 0x18], 0x10
cmp dword [ebp + 0x18], 0x10
jae 0x403b98
cmp dword [ebp + 0x18], 0
je 0x403cb8
lea eax, [ebx + 0x44]
push eax
call fcn.00402878
pop ecx
mov edx, dword [ebx + 0x58]
mov ecx, dword [ebx + 0x50]
lea eax, [ebp - 0x14]
shr edx, 0x10
xor edx, dword [ebx + 0x44]
shl ecx, 0x10
and ecx, 0xffffffff
xor edx, ecx
mov dword [eax], edx
lea eax, [ebp - 0x10]
mov edx, dword [ebx + 0x60]
mov ecx, dword [ebx + 0x58]
shr edx, 0x10
xor edx, dword [ebx + 0x4c]
shl ecx, 0x10
and ecx, 0xffffffff
xor edx, ecx
mov dword [eax], edx
lea eax, [ebp - 0xc]
mov edx, dword [ebx + 0x48]
mov ecx, dword [ebx + 0x60]
shr edx, 0x10
xor edx, dword [ebx + 0x54]
shl ecx, 0x10
and ecx, 0xffffffff
xor edx, ecx
mov dword [eax], edx
lea eax, [ebp - 8]
mov edx, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x48]
shr edx, 0x10
xor edx, dword [ebx + 0x5c]
shl ecx, 0x10
and ecx, 0xffffffff
xor edx, ecx
mov ecx, edi
mov dword [eax], edx
xor edx, edx
mov dword [ebp - 4], edx
lea edx, [ebp - 0x14]
mov ebx, dword [ebp - 4]
mov eax, esi
cmp ebx, dword [ebp + 0x18]
jae 0x403cb8
mov bl, byte [eax]
inc eax
xor bl, byte [edx]
inc edx
mov byte [ecx], bl
inc ecx
inc dword [ebp - 4]
mov ebx, dword [ebp - 4]
cmp ebx, dword [ebp + 0x18]
jb 0x403ca4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403cc0
Capabilities:
Acquire debug privileges
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov esi, 0x4b8b84
lea edi, [ebp - 0x1c]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
push 1
push 0x4b9f1b
call fcn.00403e10
add esp, 8
push 0
push 4
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x403cfb
xor eax, eax
jmp 0x403d68
mov dword [ebp - 0x1c], 0x1c
lea edx, [ebp - 0x1c]
push edx
push ebx
call sub.KERNEL32.DLL_Thread32First
test eax, eax
je 0x403d4f
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 8]
jne 0x403d3a
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0x1f03ff
call sub.KERNEL32.DLL_OpenThread
mov esi, eax
test esi, esi
je 0x403d3a
push esi
call sub.KERNEL32.DLL_SuspendThread
push esi
call sub.KERNEL32.DLL_CloseHandle
lea eax, [ebp - 0x1c]
push eax
push ebx
call sub.KERNEL32.DLL_Thread32Next
test eax, eax
jne 0x403d10
mov esi, 1
jmp 0x403d51
xor esi, esi
push 0
push 0x4b9f2c
call fcn.00403e10
add esp, 8
push ebx
call sub.KERNEL32.DLL_CloseHandle
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40562c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x3dc], 0
jne 0x405670
lea eax, [ebp - 4]
push eax
push 0
push ebx
push 0x405674
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [ebx + 0x3dc], eax
mov edx, dword [ebp - 4]
mov ecx, dword [0x4ea064]
add byte [edx + 0x68], dl
and dword [ecx - 0x17aeffb5], esp
mov bh, 0x9d
add byte [eax], al
Function at 0x408644
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff4c
mov eax, 0x4bce34
push ebx
push esi
push edi
lea edi, [ebp - 0x30]
mov dword [ebp - 8], edx
call fcn.00479eb8
mov word [edi + 0x10], 0x14
mov edx, 0x4ba4aa
lea eax, [ebp - 4]
call fcn.00488be4
inc dword [edi + 0x1c]
xor edx, edx
mov word [edi + 0x10], 8
mov dword [ebp - 0x34], edx
lea ecx, [ebp - 0x34]
push ecx
push 0
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov eax, dword [ebp - 0x34]
push eax
call fcn.00477c2c
pop ecx
mov esi, eax
mov ebx, esi
lea eax, [ebp - 0x34]
push eax
push ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
je 0x408706
push esi
call fcn.00477a64
pop ecx
push str.Get_MAC_API_error_
mov edx, dword [0x4ea064]
push edx
call fcn.0040f424
mov word [edi + 0x10], 0x20
mov eax, dword [ebp - 8]
add esp, 8
lea edx, [ebp - 4]
call fcn.00488e00
mov eax, dword [ebp - 8]
mov edx, 2
mov word [edi + 0x10], 0x2c
push eax
lea eax, [ebp - 4]
dec dword [edi + 0x1c]
call fcn.00488dd0
pop eax
mov word [edi + 0x10], 0x20
inc dword [edi + 0x1c]
mov edx, dword [edi]
mov dword fs:[0], edx
jmp 0x4087d0
cmp dword [ebx + 0x1a0], 6
jne 0x40878b
xor ecx, ecx
xor eax, eax
mov cl, byte [ebx + 0x199]
xor edx, edx
push ecx
xor ecx, ecx
mov al, byte [ebx + 0x198]
push eax
xor eax, eax
mov dl, byte [ebx + 0x197]
push edx
xor edx, edx
mov cl, byte [ebx + 0x196]
push ecx
lea ecx, [ebp - 0xb4]
mov al, byte [ebx + 0x195]
push eax
mov dl, byte [ebx + 0x194]
push edx
push str._02x_02x_02x_02x_02x_02x
push ecx
call fcn.0047d588
mov word [edi + 0x10], 0x38
add esp, 0x20
lea edx, [ebp - 0xb4]
lea eax, [ebp - 0xc]
call fcn.00488be4
inc dword [edi + 0x1c]
lea edx, [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.00488e00
dec dword [edi + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00488dd0
push esi
call fcn.00477a64
pop ecx
lea edx, [ebp - 4]
mov word [edi + 0x10], 0x44
mov eax, dword [ebp - 8]
call fcn.00488e00
mov eax, dword [ebp - 8]
mov edx, 2
mov word [edi + 0x10], 0x50
push eax
lea eax, [ebp - 4]
dec dword [edi + 0x1c]
call fcn.00488dd0
pop eax
mov word [edi + 0x10], 0x44
inc dword [edi + 0x1c]
mov edx, dword [edi]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4087d8
Capabilities:
Create pipe
Create process on windows

Disassembly:
push ebx
add esp, 0xfffff004
push eax
add esp, 0xfffffc10
mov ebx, edx
mov dword [esp + 0x13a0], 0xc
xor eax, eax
mov dword [esp + 0x13a4], eax
mov dword [esp + 0x13a8], 1
push 0
lea edx, [esp + 0x13a4]
push edx
lea ecx, [esp + 0xc]
push ecx
lea eax, [esp + 0xc]
push eax
call sub.KERNEL32.DLL_CreatePipe
test eax, eax
jne 0x40882b
xor eax, eax
jmp 0x4088d4
push 0x44
push 0
lea edx, [esp + 0x13b4]
push edx
call fcn.004798f8
add esp, 0xc
mov dword [esp + 0x13ac], 0x44
mov dword [esp + 0x13d8], 1
mov word [esp + 0x13dc], 0
mov ecx, dword [esp + 4]
mov dword [esp + 0x13e8], ecx
lea eax, [esp + 0x1390]
push eax
lea edx, [esp + 0x13b0]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
push ebx
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
jne 0x408896
xor eax, eax
jmp 0x4088d4
push 0xffffffffffffffff
mov edx, dword [esp + 0x1394]
push edx
call sub.KERNEL32.DLL_WaitForSingleObject
mov ecx, dword [esp]
push ecx
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [esp + 0x1394]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov edx, dword [esp + 0x1390]
push edx
call sub.KERNEL32.DLL_CloseHandle
mov ecx, dword [esp + 4]
push ecx
call sub.KERNEL32.DLL_CloseHandle
mov al, 1
add esp, 0x13f0
pop ebx
ret

Function at 0x40909c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, 0x4bd030
call fcn.00479eb8
mov dword [ebp - 0xc], 2
lea edx, [ebp - 4]
lea eax, [ebp - 4]
call fcn.00488c1c
inc dword [ebp - 0xc]
lea edx, [ebp + 0xc]
mov word [ebp - 0x18], 8
lea eax, [ebp + 0xc]
call fcn.00488c1c
inc dword [ebp - 0xc]
cmp byte [ebp + 8], 0
je 0x40911c
mov eax, dword [ebp - 4]
call fcn.004334fc
test al, al
jne 0x40911c
dec dword [ebp - 0xc]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00488dd0
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
jmp 0x40918a
test bl, bl
je 0x409127
mov eax, 1
jmp 0x409129
xor eax, eax
push eax
push 0
cmp dword [ebp + 0xc], 0
je 0x409137
mov edx, dword [ebp + 0xc]
jmp 0x40913c
mov edx, 0x4ba529
push edx
cmp dword [ebp - 4], 0
je 0x409148
mov eax, dword [ebp - 4]
jmp 0x40914d
mov eax, 0x4ba528
push eax
push 0x4ba523
mov eax, esi
call fcn.004724d8
push eax
call sub.SHELL32.DLL_ShellExecuteA
dec dword [ebp - 0xc]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00488dd0
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4099d8
Capabilities:
Create pipe
Create process on windows
Terminate process

Disassembly:
push ebx
add esp, 0xfffff004
push eax
add esp, 0xfffffc10
mov ebx, edx
push ebx
mov eax, dword [0x4ea064]
push eax
call fcn.0040f424
add esp, 8
xor edx, edx
mov dword [esp + 0x13a0], 0xc
mov dword [esp + 0x13a4], edx
mov dword [esp + 0x13a8], 1
push 0
lea ecx, [esp + 0x13a4]
push ecx
lea eax, [esp + 0xc]
push eax
lea edx, [esp + 0xc]
push edx
call sub.KERNEL32.DLL_CreatePipe
test eax, eax
jne 0x409a3a
xor eax, eax
jmp 0x409b16
push 0x44
push 0
lea edx, [esp + 0x13b4]
push edx
call fcn.004798f8
add esp, 0xc
mov dword [esp + 0x13ac], 0x44
mov dword [esp + 0x13d8], 1
mov word [esp + 0x13dc], 5
mov ecx, dword [esp + 4]
mov dword [esp + 0x13e8], ecx
lea eax, [esp + 0x1390]
push eax
lea edx, [esp + 0x13b0]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
push ebx
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
jne 0x409abf
call sub.KERNEL32.DLL_GetLastError
push eax
push str.CreateProcess_Fail._ErrorCode:__d_
mov ecx, dword [0x4ea064]
push ecx
call fcn.0040f424
add esp, 0xc
xor eax, eax
jmp 0x409b16
push 0x2bf20
mov edx, dword [esp + 0x1394]
push edx
call sub.KERNEL32.DLL_WaitForSingleObject
cmp eax, 0x102
jne 0x409ae7
push 4
mov ecx, dword [esp + 0x1394]
push ecx
call sub.KERNEL32.DLL_TerminateProcess
mov eax, dword [esp]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov edx, dword [esp + 0x1394]
push edx
call sub.KERNEL32.DLL_CloseHandle
mov ecx, dword [esp + 0x1390]
push ecx
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [esp + 4]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov al, 1
add esp, 0x13f0
pop ebx
ret
Function at 0x40ab14
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffee0
mov esi, edx
mov ebx, eax
push 0x20
push 0
lea eax, [esp + 8]
push eax
call fcn.004798f8
add esp, 0xc
push 0x100
push 0
lea edx, [esp + 0x28]
push edx
call fcn.004798f8
add esp, 0xc
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
push esi
lea esi, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
lea eax, [esp + 0x20]
mov dword [esp], esi
xor edx, edx
mov dword [esp + 4], 3
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov word [esp + 0x10], 0x15
push esp
call sub.SHELL32.DLL_SHFileOperationA
mov al, 1
add esp, 0x120
pop edi
pop esi
pop ebx
ret
Function at 0x40aba0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push ebx
push esi
push edi
mov dword [ebp - 8], eax
lea edi, [ebp - 0xc]
mov eax, 0x4bdb7c
call fcn.00479eb8
mov word [ebp - 0x20], 8
xor edx, edx
mov ax, 2
mov dword [ebp - 4], edx
inc dword [ebp - 0x14]
lea edx, [ebp - 0x214]
mov word [ebp - 0x20], 0x14
push edx
push eax
call sub.WSOCK32.DLL_WSAStartup
test eax, eax
je 0x40ac2e
call sub.WSOCK32.DLL_WSACleanup
mov word [ebp - 0x20], 0x20
lea edx, [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00488e00
mov eax, dword [ebp - 8]
mov edx, 2
mov word [ebp - 0x20], 0x2c
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0x14]
call fcn.00488dd0
pop eax
mov word [ebp - 0x20], 0x20
inc dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
jmp 0x40ad3b
push 0x50
lea ecx, [ebp - 0x84]
push ecx
call sub.WSOCK32.DLL_gethostname
inc eax
jne 0x40ac88
call sub.WSOCK32.DLL_WSACleanup
mov word [ebp - 0x20], 0x38
lea edx, [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00488e00
mov eax, dword [ebp - 8]
mov edx, 2
mov word [ebp - 0x20], 0x44
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0x14]
call fcn.00488dd0
pop eax
mov word [ebp - 0x20], 0x38
inc dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
jmp 0x40ad3b
lea ecx, [ebp - 0x84]
push ecx
call sub.WSOCK32.DLL_gethostbyname
mov esi, eax
push 0
push 4
lea eax, [ebp - 0x34]
push eax
call fcn.004798f8
add esp, 0xc
xor ebx, ebx
mov word [ebp - 0x20], 0x14
jmp 0x40aced
mov edx, dword [esi + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov word [ebp - 0x20], 0x50
mov ecx, dword [ebp - 0x34]
push ecx
call sub.WSOCK32.DLL_inet_ntoa
mov edx, eax
mov eax, edi
call fcn.00488be4
inc dword [ebp - 0x14]
mov edx, edi
lea eax, [ebp - 4]
call fcn.00488e00
dec dword [ebp - 0x14]
mov eax, edi
mov edx, 2
call fcn.00488dd0
inc ebx
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + ebx*4]
test eax, eax
jne 0x40acb0
call sub.WSOCK32.DLL_WSACleanup
mov word [ebp - 0x20], 0x5c
lea edx, [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00488e00
mov eax, dword [ebp - 8]
mov edx, 2
mov word [ebp - 0x20], 0x68
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0x14]
call fcn.00488dd0
pop eax
mov word [ebp - 0x20], 0x5c
inc dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bc28
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, 0x4be020
call fcn.00479eb8
mov dword [ebp - 0xc], 1
lea edx, [ebp - 4]
lea eax, [ebp - 4]
call fcn.00488c1c
inc dword [ebp - 0xc]
mov word [ebp - 0x18], 8
mov bl, 1
mov eax, dword [esi + 0x400]
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov edi, eax
test eax, eax
jl 0x40bcc0
mov eax, dword [esi + 0x400]
mov edx, edi
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov esi, eax
test esi, esi
je 0x40bd11
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esi + 0x104]
cmp eax, 0x1d4c0
jae 0x40bcb1
push str.time_too_short
mov eax, dword [0x4ea064]
push eax
call fcn.0040f424
add esp, 8
xor ebx, ebx
jmp 0x40bd11
mov bl, 1
call sub.KERNEL32.DLL_GetTickCount
mov dword [esi + 0x104], eax
jmp 0x40bd11
push 0x108
call fcn.00477a88
pop ecx
mov ebx, eax
push 0x108
push 0
push ebx
call fcn.004798f8
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x40bce8
mov eax, dword [ebp - 4]
jmp 0x40bced
mov eax, 0x4bb041
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebx + 0x104], eax
mov eax, dword [esi + 0x400]
mov ecx, ebx
mov edx, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov bl, 1
mov eax, ebx
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0xc]
call fcn.00488dd0
pop eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e1fc
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe40
mov dword [ebp - 4], eax
mov eax, 0x4beba0
call fcn.00479eb8
mov word [ebp - 0x20], 8
mov eax, dword [ebp - 4]
xor edx, edx
add eax, 8
mov dword [eax], edx
xor edx, edx
inc dword [ebp - 0x14]
mov eax, dword [ebp - 4]
add eax, 0xc
mov dword [eax], edx
lea edx, [ebp - 0x1c0]
mov ax, 0x202
inc dword [ebp - 0x14]
push edx
push eax
call sub.WSOCK32.DLL_WSAStartup
mov ecx, dword [ebp - 4]
xor edx, edx
mov dword [ecx], 0xffffffff
mov eax, dword [ebp - 4]
mov dword [eax + 4], edx
lea eax, [ebp - 8]
mov word [ebp - 0x20], 0x14
mov edx, 0x4bea9c
call fcn.00488be4
inc dword [ebp - 0x14]
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
add eax, 8
call fcn.00488e00
dec dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00488dd0
mov word [ebp - 0x20], 0x20
mov edx, 0x4bea9d
lea eax, [ebp - 0xc]
call fcn.00488be4
inc dword [ebp - 0x14]
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.00488e00
dec dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00488dd0
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x414], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x415], 0
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret