joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4066d0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 8]
push eax
push 0x413020
push 1
push 0
push 0x413040
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x406801
cmp dword [ebp - 8], 0
je 0x406801
movzx ecx, byte [ebp + 0x14]
cmp ecx, 1
jne 0x40673f
push 0x41530c
push 0x41530c
push 0x41530c
push str._c_start__s__start__s_rvldrv.exe__start__s_rvlcfg.exe
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
jmp 0x40675e
push 0x41530c
push 0x41530c
push str._c_start__s__start__s_rvlcfg.exe
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push str._comspec_
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [edx + 0x50]
call ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [edx + 0x44]
call ecx
push 7
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [eax + 0x3c]
call edx
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [edx + 0x2c]
call ecx
lea edx, [ebp - 0xc]
push edx
push 0x413030
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ecx]
call eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x4067f3
cmp dword [ebp - 0xc], 0
je 0x4067f3
push 1
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [eax + 0x18]
call edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [edx + 8]
call ecx
mov esp, ebp
pop ebp
ret
Function at 0x406810
Capabilities:
Create directory
Delete directory
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x870
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp + 8]
push ecx
push 0x41134c
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x45c], eax
cmp dword [ebp - 0x45c], 0xffffffff
je 0x40693f
push 0x411358
lea edx, [ebp - 0x42c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x406891
push 0x41135c
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x406893
jmp 0x40690c
lea ecx, [ebp - 0x42c]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x411364
lea eax, [ebp - 0x668]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x42c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x411370
lea eax, [ebp - 0x870]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov ecx, dword [ebp - 0x458]
and ecx, 0x10
je 0x4068f6
lea edx, [ebp - 0x870]
push edx
lea eax, [ebp - 0x668]
push eax
call fcn.00406810
add esp, 8
jmp 0x40690c
push 9
lea ecx, [ebp - 0x870]
push ecx
lea edx, [ebp - 0x668]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x458]
push eax
mov ecx, dword [ebp - 0x45c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406865
mov edx, dword [ebp - 0x45c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esp, ebp
pop ebp
ret
Function at 0x407730
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
add eax, 1
push eax
call fcn.0040aa20
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x407787
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 4]
add ecx, dword [ebp + 0x10]
mov byte [ecx], 0
push 0
push 0
mov edx, dword [ebp - 4]
push edx
push 0x407790
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x409a50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [ebp + 0x14], 0
jne 0x409a61
jmp 0x409c14
xor eax, eax
mov word [ebp - 0x10], ax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, 8
div ecx
test edx, edx
je 0x409ab1
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, 8
div ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
shr edx, 3
mov eax, dword [ebp + 8]
movzx cx, byte [eax + edx]
mov word [ebp - 0x10], cx
movzx edx, word [ebp - 0x10]
mov ecx, 8
sub ecx, dword [ebp - 0x14]
sar edx, cl
mov word [ebp - 0x10], dx
mov eax, dword [ebp + 0xc]
shr eax, 3
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x14]
add ecx, 7
shr ecx, 3
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
jmp 0x409ad8
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jge 0x409c14
mov ecx, dword [ebp - 8]
sub ecx, 1
cmp dword [ebp - 4], ecx
je 0x409b10
movzx edx, word [ebp - 0x10]
shl edx, 8
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 4]
movzx ecx, byte [eax]
xor edx, ecx
mov word [ebp - 0x10], dx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
jmp 0x409b69
mov eax, dword [ebp + 0x14]
xor edx, edx
mov ecx, 8
div ecx
test edx, edx
jne 0x409b29
mov dword [ebp - 0x24], 8
jmp 0x409b38
mov eax, dword [ebp + 0x14]
xor edx, edx
mov ecx, 8
div ecx
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x18], edx
movzx eax, word [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
shl eax, cl
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx]
mov ecx, 8
sub ecx, dword [ebp - 0x18]
sar edx, cl
or eax, edx
mov word [ebp - 0x10], ax
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
sub ecx, 1
xor edx, edx
cmp dword [ebp - 4], ecx
setne dl
xor eax, eax
cmp dword [ebp - 0x14], 8
setge al
and edx, eax
jne 0x409b9f
mov ecx, dword [ebp - 8]
sub ecx, 1
xor edx, edx
cmp dword [ebp - 4], ecx
sete dl
xor eax, eax
cmp dword [ebp - 0x14], 0
setg al
and edx, eax
je 0x409c0f
cmp dword [ebp - 0x14], 8
jle 0x409bae
mov dword [ebp - 0x28], 8
jmp 0x409bb4
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], edx
movzx eax, word [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x1c]
sar eax, cl
mov byte [ebp - 0x1d], al
movzx edx, byte [ebp - 0x1d]
mov ecx, 8
sub ecx, dword [ebp - 0x1c]
shl edx, cl
mov byte [ebp - 0x1d], dl
mov eax, 0xff00
mov ecx, dword [ebp - 0x1c]
sar eax, cl
movzx ecx, byte [ebp - 0x1d]
and ecx, eax
mov byte [ebp - 0x1d], cl
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0xc]
mov al, byte [ebp - 0x1d]
mov byte [edx], al
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], edx
jmp 0x409b69
jmp 0x409acf
mov esp, ebp
pop ebp
ret
Function at 0x40ada0
Capabilities:
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
shr ecx, 2
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0xcc9e2d51
mov dword [ebp - 0x10], 0x1b873593
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + edx*4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
neg edx
mov dword [ebp - 0x28], edx
jmp 0x40adf0
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x40ae4d
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.0040af00
add esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
imul eax, eax, 0xcc9e2d51
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
rol ecx, 0xf
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
imul edx, edx, 0x1b873593
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
rol ecx, 0xd
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
imul edx, edx, 5
sub edx, 0x19ab949c
mov dword [ebp - 4], edx
jmp 0x40ade7
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
lea edx, [ecx + eax*4]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 0xc]
and eax, 3
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 1
je 0x40ae9d
cmp dword [ebp - 0x30], 2
je 0x40ae8d
cmp dword [ebp - 0x30], 3
je 0x40ae7d
jmp 0x40aed3
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 2]
shl edx, 0x10
xor edx, dword [ebp - 0x20]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 1]
shl ecx, 8
xor ecx, dword [ebp - 0x20]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
imul ecx, ecx, 0xcc9e2d51
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
rol edx, 0xf
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
imul eax, eax, 0x1b873593
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp - 0x20]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
xor edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
call fcn.0040af10
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x40af10
Capabilities:
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
shr eax, 0x10
xor eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x85ebca6b
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 8]
shr edx, 0xd
xor edx, dword [ebp + 8]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
imul eax, eax, 0xc2b2ae35
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
shr ecx, 0x10
xor ecx, dword [ebp + 8]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 8]
pop ebp
ret
Function at 0x40b4c0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40b4f9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40b4f9
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x40b500
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov word [ebp - 0x14], ax
xor ecx, ecx
mov dword [ebp - 0x12], ecx
mov dword [ebp - 0xe], ecx
mov dword [ebp - 0xa], ecx
mov word [ebp - 6], cx
mov edx, 2
mov word [ebp - 0x14], dx
push 0x50
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
push 0x412288
call fcn.0040b4c0
add esp, 4
mov dword [ebp - 0x10], eax
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x40b5b0
push 0x10
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x40b5a4
xor edx, edx
mov word [ebp - 0x28], dx
xor eax, eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov word [ebp - 0x1a], ax
mov dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.0040b5c0
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40b600
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [0x4176f8], 0
jne 0x40b614
jmp 0x40b6ec
mov eax, dword [0x4176f8]
shl eax, 3
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040aa20
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40b6ec
mov dword [ebp - 0x10], 0
jmp 0x40b64a
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [0x4176f8]
jae 0x40b684
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx*4 + 0x417700]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [edx + 4]
mov dword [ecx + eax*8], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax*4 + 0x417700]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov ecx, dword [ecx + 8]
mov dword [eax + edx*8 + 4], ecx
jmp 0x40b641
push 0
push 2
push 2
push 0
push 0
push 0x40000000
push 0x4174c8
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x40b6d3
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3d
push 0x416098
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edx, dword [ebp - 4]
push edx
call fcn.0040ac30
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x40b850
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov byte [ebp - 0x101], 0
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x40b8e7
lea ecx, [ebp - 0x100]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
je 0x40b8e7
mov dword [ebp - 0x10c], 0
jmp 0x40b8ae
mov edx, dword [ebp - 0x10c]
add edx, 1
mov dword [ebp - 0x10c], edx
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x10c]
cmp dword [ecx + edx*4], 0
je 0x40b8e7
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x10c]
mov eax, dword [ecx + edx*4]
mov ecx, dword [eax]
cmp ecx, dword [ebp + 8]
jne 0x40b8e5
mov byte [ebp - 0x101], 1
jmp 0x40b8e7
jmp 0x40b89f
mov al, byte [ebp - 0x101]
mov esp, ebp
pop ebp
ret
Function at 0x40bd40
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x4176e0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 8], 0
jmp 0x40bd63
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x200
jae 0x40bd89
push 0
call fcn.0040df20
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*4 + str..Ct__]
push edx
call fcn.0040b920
add esp, 0xc
jmp 0x40bd5a
push 0
push 0
push 3
push 0
push 0
push accept
push 0x4174c8
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x40be72
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40be68
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40be5e
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
jmp 0x40be1d
mov eax, dword [ebp - 0x18]
add eax, 8
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x14]
jae 0x40be54
cmp dword [ebp - 0x1c], 0x200
jae 0x40be54
push 0
call fcn.0040df20
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
sub eax, dword [edx + ecx*8 + 4]
push eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + eax*8]
push edx
call fcn.0040b920
add esp, 0xc
jmp 0x40be0b
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0040b5e0
push 0
push 0
push 0
push 0x40bea0
push 0
mov eax, dword [0x417f04]
push eax
call fcn.0040dbe0
add esp, 0x18
mov esp, ebp
pop ebp
ret
Function at 0x40cb10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov eax, dword [ebp + 0x14]
mov cl, byte [eax + 0x100]
mov byte [ebp - 2], cl
mov edx, dword [ebp + 0x14]
mov al, byte [edx + 0x101]
mov byte [ebp - 1], al
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x40cb47
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jae 0x40cbe7
movzx ecx, byte [ebp - 2]
add ecx, 1
and ecx, 0xff
mov byte [ebp - 2], cl
movzx edx, byte [ebp - 2]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + edx]
movzx edx, byte [ebp - 1]
add ecx, edx
and ecx, 0xff
mov byte [ebp - 1], cl
movzx eax, byte [ebp - 2]
mov ecx, dword [ebp - 8]
mov dl, byte [ecx + eax]
mov byte [ebp - 3], dl
movzx eax, byte [ebp - 1]
movzx ecx, byte [ebp - 2]
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 8]
mov al, byte [esi + eax]
mov byte [edx + ecx], al
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp - 8]
mov al, byte [ebp - 3]
mov byte [edx + ecx], al
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
movzx eax, byte [ebp - 2]
mov ecx, dword [ebp - 8]
movzx eax, byte [ecx + eax]
movzx ecx, byte [ebp - 1]
mov esi, dword [ebp - 8]
movzx ecx, byte [esi + ecx]
add eax, ecx
and eax, 0xff
mov ecx, dword [ebp - 8]
movzx eax, byte [ecx + eax]
xor edx, eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0xc]
mov byte [ecx], dl
jmp 0x40cb3e
mov edx, dword [ebp + 0x14]
mov al, byte [ebp - 2]
mov byte [edx + 0x100], al
mov ecx, dword [ebp + 0x14]
mov dl, byte [ebp - 1]
mov byte [ecx + 0x101], dl
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40d770
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
cmp dword [ebp + 0x14], 0xffffffff
je 0x40d78e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 0
lea edx, [ebp - 0xc]
push edx
push 0x4004667f
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x40d7b5
jmp 0x40d82f
cmp dword [ebp - 0xc], 0
jle 0x40d812
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0x10]
jae 0x40d7cb
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
jmp 0x40d7d1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x40d812
cmp dword [ebp + 0x14], 0xffffffff
je 0x40d800
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp - 0x10]
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [ebp - 8]
ja 0x40d82f
cmp dword [ebp + 0x10], 0
jne 0x40d794
xor eax, eax
cmp dword [ebp + 0x10], 0
sete al
mov esp, ebp
pop ebp
ret

Function at 0x40d840
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0xffffffff
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x40d8bf
xor eax, eax
mov word [ebp - 0x14], ax
xor ecx, ecx
mov dword [ebp - 0x12], ecx
mov dword [ebp - 0xe], ecx
mov dword [ebp - 0xa], ecx
mov word [ebp - 6], cx
mov edx, 2
mov word [ebp - 0x14], dx
push 0x9e34
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
push 0x10
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40d8bf
mov eax, dword [ebp - 4]
push eax
call fcn.0040b5c0
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x40d8c3
xor ecx, ecx
jne 0x40d84d
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40dbe0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x40dcc8
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
push edx
call fcn.0040dcd0
add esp, 4
cmp dword [ebp + 0x10], 0
je 0x40dcbb
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ecx*4 + 4]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1c]
push ecx
call fcn.0040aa60
add esp, 8
mov edx, dword [ebp - 8]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x1c], 0
je 0x40dcbb
mov ecx, dword [ebp + 0x18]
push ecx
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40dcbb
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword [edx + eax*4], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
add eax, 1
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
cmp dword [ebp + 0x1c], 0
je 0x40dcb4
push 2
push 0
push 0
mov edx, dword [ebp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 8]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret