joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5bd9f8
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x5bda1b
xor edx, edx
mov dword [eax], edx
xor eax, eax
push ebp
push 0x5bdbb8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.00404cc0
lea eax, [ebp - 0x28]
push eax
or ecx, 0xffffffff
or edx, 0xffffffff
mov eax, dword [ebp - 8]
call fcn.0059d3f0
mov eax, dword [ebp - 0x28]
call fcn.00404f9c
test eax, eax
jl 0x5bdb96
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [0x5f4e70], 0
je 0x5bda7b
mov eax, dword [0x5f4e70]
mov eax, dword [eax + 0x19c]
mov edx, 0x1388
call fcn.0059eb84
mov dword [ebp - 0x1c], eax
jmp 0x5bda82
mov dword [ebp - 0x1c], 0xffffffff
cmp dword [ebp - 0x1c], 0
je 0x5bdb9d
xor eax, eax
push ebp
push 0x5bdb8f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
call fcn.0040519c
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x5bdabc
cmp dword [ebp - 4], 0
jne 0x5bdb37
mov eax, dword [ebp - 8]
call fcn.0040519c
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x5bdadd
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x14], eax
jmp 0x5bdb37
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, 4
call fcn.00402e20
cmp dword [ebp - 0x10], 0
je 0x5bdb37
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
jmp 0x5bdb28
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00404eb8
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
call fcn.005a0b80
add dword [ebp - 0x20], 4
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0
jne 0x5bdb03
mov dword [ebp - 0x24], 0xffffffff
cmp dword [ebp - 0x14], 0
jne 0x5bdb68
push dword [ebp - 4]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.00404eb8
cmp dword [ebp - 0x10], 0
je 0x5bdb68
cmp dword [ebp - 0x24], 0
jne 0x5bdb68
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
mov eax, dword [ebp - 0x10]
call fcn.005a0b80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5bdb9d
cmp dword [0x5f4e70], 0
je 0x5bdb8e
mov eax, dword [0x5f4e70]
mov eax, dword [eax + 0x19c]
call fcn.0059ec18
ret
mov dword [ebp - 0x14], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5bdbbf
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00404ce4
ret
Function at 0x5bdda8
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov ax, word [ebp - 8]
push eax
call sub.wsock32.dll_WSAStartup
mov edx, dword [ebp - 4]
mov dword [edx + 0x198], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x198]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x5be210
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 6
jne 0x5be23d
mov eax, dword [ebp - 4]
call fcn.005be3c0
test eax, eax
je 0x5be23d
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x5be2d3
mov eax, dword [ebp - 4]
call fcn.005bec80
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x5be2d3
cmp dword [ebp - 8], 0
jne 0x5be268
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.005be510
mov dword [ebp - 0xc], eax
jmp 0x5be2a5
mov eax, dword [ebp - 8]
mov ax, word [eax + 2]
push eax
call sub.wsock32.dll_ntohs
mov edx, dword [ebp - 4]
mov word [edx + 0x34], ax
mov eax, dword [ebp - 8]
push dword [eax + 4]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, dword [ebp - 4]
add eax, 0x18
call fcn.00404eb8
mov eax, dword [ebp - 8]
mov esi, eax
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x5be2d3
or edx, 0xffffffff
mov eax, dword [ebp - 4]
call fcn.005be008
push 0x10
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.wsock32.dll_connect
or edx, 0xffffffff
call fcn.005bdde4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5be798
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x5be7cb
mov eax, dword [ebp - 4]
call fcn.005be3c0
test eax, eax
je 0x5be80b
or ecx, 0xffffffff
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.005becd8
test eax, eax
je 0x5be80b
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x5be7fc
or edx, 0xffffffff
mov eax, dword [ebp - 0x14]
call fcn.005bdde4
mov dword [ebp - 0x10], eax
jmp 0x5be812
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x5be812
mov dword [ebp - 0x10], 0xffffffff
cmp dword [ebp - 0x10], 0x2746
jne 0x5be826
or edx, 0xffffffff
mov eax, dword [ebp - 4]
call fcn.005be168
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8
Function at 0x5be86c
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffccc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0xffffffff
je 0x5be9d5
cmp dword [ebp - 0xc], 0
je 0x5be8a3
push ebp
lea edx, [ebp - 0x12c]
mov eax, dword [ebp - 0xc]
call fcn.005be830
pop ecx
mov dword [ebp - 0x14], eax
jmp 0x5be8a8
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x10], 0
je 0x5be8c3
push ebp
lea edx, [ebp - 0x230]
mov eax, dword [ebp + 0x10]
call fcn.005be830
pop ecx
mov dword [ebp - 0x18], eax
jmp 0x5be8c8
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0xc], 0
je 0x5be8e3
push ebp
lea edx, [ebp - 0x334]
mov eax, dword [ebp + 0xc]
call fcn.005be830
pop ecx
mov dword [ebp - 0x1c], eax
jmp 0x5be8e8
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], 0xffffffff
je 0x5be941
cmp dword [ebp + 8], 1
jae 0x5be900
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x5be939
mov eax, dword [ebp + 8]
shr eax, 0xa
mov dword [ebp - 0x24], eax
cmp dword [ebp + 8], 1
jne 0x5be918
mov dword [ebp - 0x20], 1
jmp 0x5be929
mov eax, dword [ebp - 0x24]
shl eax, 0xa
mov edx, dword [ebp + 8]
sub edx, eax
shl edx, 0xa
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0xf423f
jle 0x5be939
mov dword [ebp - 0x20], 0xf423f
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], eax
jmp 0x5be946
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 1
call sub.wsock32.dll_select
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jne 0x5be9bf
cmp dword [ebp - 0xc], 0
je 0x5be983
lea edx, [ebp - 0x12c]
mov eax, dword [ebp - 4]
call fcn.0058faec
neg al
sbb eax, eax
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
cmp dword [ebp + 0x10], 0
je 0x5be9a0
lea edx, [ebp - 0x230]
mov eax, dword [ebp - 4]
call fcn.0058faec
neg al
sbb eax, eax
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
cmp dword [ebp + 0xc], 0
je 0x5be9dc
lea edx, [ebp - 0x334]
mov eax, dword [ebp - 4]
call fcn.0058faec
neg al
sbb eax, eax
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
jmp 0x5be9dc
cmp dword [ebp - 0x10], 0
je 0x5be9dc
or edx, 0xffffffff
mov eax, dword [ebp - 0x10]
call fcn.005bdde4
mov dword [ebp - 0x10], eax
jmp 0x5be9dc
mov dword [ebp - 0x10], 0x2736
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5be9e8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x5bea10
xor ecx, ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.005be760
test eax, eax
je 0x5bea57
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x5bea3f
or edx, 0xffffffff
mov eax, dword [ebp - 0x10]
call fcn.005bdde4
mov dword [ebp - 0x10], eax
jmp 0x5bea5e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jne 0x5bea4e
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x5bea5e
mov dword [ebp - 0x10], 0xfffffffe
jmp 0x5bea5e
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4

Function at 0x5beb38
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0xffffffff
je 0x5beb87
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 4
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
push eax
push 0xffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.wsock32.dll_setsockopt
or edx, 0xffffffff
call fcn.005bdde4
mov dword [ebp - 0x10], eax
jmp 0x5beb8e
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x5beb98
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0xffffffff
je 0x5bebe1
mov dword [ebp - 0x14], 4
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0xffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.wsock32.dll_setsockopt
or edx, 0xffffffff
call fcn.005bdde4
mov dword [ebp - 0x10], eax
jmp 0x5bebe8
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x5bedc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
jne 0x5bede6
xor ecx, ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.005be728
test eax, eax
je 0x5bee12
mov dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.wsock32.dll_recvfrom
mov dword [ebp - 0x10], eax
jmp 0x5bee19
mov dword [ebp - 0x10], 0xfffffffe
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5bee24
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x5bee4e
xor ecx, ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.005be760
test eax, eax
je 0x5beee7
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0x14]
jae 0x5beed0
mov eax, dword [ebp - 4]
call fcn.005be3f8
xor edx, edx
push edx
push eax
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp - 0x18]
xor edx, edx
push edx
push eax
call fcn.00436a5c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jbe 0x5beec8
push 0x10
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
add eax, edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.wsock32.dll_sendto
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x5beeb8
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x18], eax
jmp 0x5beec8
or edx, 0xffffffff
mov eax, dword [ebp - 0x14]
call fcn.005bdde4
mov dword [ebp - 0x10], eax
jmp 0x5beed0
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0x14]
jb 0x5bee60
cmp dword [ebp - 0x10], 0
jne 0x5beeee
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0x14]
jae 0x5beeee
mov dword [ebp - 0x10], 0x274c
jmp 0x5beeee
mov dword [ebp - 0x10], 0x271d
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x5c3360
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x5c33ce
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc0], 0
je 0x5c339f
xor eax, eax
mov dword [ebp - 0x10], eax
push 4
lea eax, [ebp - 0x10]
push eax
push 0x1001
push 0xffff
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_setsockopt
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc0], 0
jne 0x5c33ce
cmp dword [ebp - 0xc], 0
jne 0x5c33ce
mov dword [ebp - 0x14], 0xffffffff
push 4
lea eax, [ebp - 0x14]
push eax
push 1
push 0xffff
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_setsockopt
mov esp, ebp
pop ebp
ret
Function at 0x5c9458
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x5c9592
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [esi + 0x48]
test al, bl
jne 0x5c9577
mov edx, dword [esi + 4]
test edx, edx
je 0x5c94a6
test al, al
jne 0x5c9498
push 0
push edx
call sub.kernel32.dll_FlushViewOfFile
mov eax, dword [esi + 4]
push eax
call sub.kernel32.dll_UnmapViewOfFile
xor eax, eax
mov dword [esi + 4], eax
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x5c94bb
push eax
call sub.kernel32.dll_CloseHandle_1
mov dword [esi + 0xc], 0xffffffff
cmp byte [esi + 0x48], 0
jne 0x5c9577
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
cmp edx, dword [esi + 0x14]
jne 0x5c94d7
cmp eax, dword [esi + 0x10]
jae 0x5c94ef
jmp 0x5c94d9
jge 0x5c94ef
xor ecx, ecx
mov edx, dword [ebp + 8]
mov eax, dword [esi + 8]
call fcn.0040a4f0
mov eax, dword [esi + 8]
push eax
call sub.kernel32.dll_SetEndOfFile_1
mov eax, dword [ebp + 8]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x14], eax
test bl, bl
je 0x5c9577
push 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
mov eax, dword [eax]
push eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
mov eax, dword [eax + 4]
push eax
push 4
push 0
mov eax, dword [esi + 8]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [esi + 0xc], eax
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x5c9570
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x18]
call fcn.0040dea0
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 0x5c95ac
call fcn.00404fe8
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x408c08]
call fcn.0040e824
call fcn.00404630
mov eax, esi
call fcn.005c9610
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c9599
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404ce4
ret
Function at 0x5c9d7c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5c9ea2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov bl, 1
mov byte [ebp - 0xd], 0
mov esi, ecx
dec esi
test esi, esi
jl 0x5c9e87
inc esi
xor edi, edi
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
mov dl, byte [edx + edi]
call fcn.00404ea8
mov eax, dword [ebp - 0x14]
mov edx, 0x5c9ec0
call fcn.004052e0
test eax, eax
je 0x5c9e7f
mov eax, dword [ebp - 4]
mov al, byte [eax + edi]
call fcn.00403090
mov byte [ebp - 0xe], al
test bl, bl
je 0x5c9e1b
lea eax, [ebp - 0x18]
mov dl, byte [ebp - 0xe]
call fcn.00404ea8
mov eax, dword [ebp - 0x18]
mov edx, 0x5c9eec
call fcn.004052e0
dec eax
shl eax, 4
mov byte [ebp - 0xd], al
jmp 0x5c9e39
lea eax, [ebp - 0x1c]
mov dl, byte [ebp - 0xe]
call fcn.00404ea8
mov eax, dword [ebp - 0x1c]
push eax
mov edx, 0x5c9eec
pop eax
call fcn.004052e0
dec eax
or byte [ebp - 0xd], al
xor bl, 1
test bl, bl
je 0x5c9e7f
cmp byte [ebp + 0xc], 0
je 0x5c9e6c
mov al, byte [ebp - 0xd]
and al, 0xf
shl eax, 4
mov dl, byte [ebp - 0xd]
and dl, 0xf0
and edx, 0xff
shr edx, 4
or al, dl
mov edx, dword [ebp + 8]
mov edx, dword [edx]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx], al
jmp 0x5c9e7a
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
mov cl, byte [ebp - 0xd]
mov byte [edx + eax], cl
mov eax, dword [ebp + 8]
inc dword [eax]
inc edi
dec esi
jne 0x5c9dc5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c9ea9
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404ce4
ret

Function at 0x5d2428
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040518c
xor eax, eax
push ebp
push 0x5d24b8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404cc0
mov eax, dword [ebp - 4]
call fcn.00404f9c
mov ebx, eax
test bx, bx
jbe 0x5d249a
mov di, 1
movzx eax, di
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax - 1]
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
mov dx, word [ebp - 6]
xor dx, 0x76
call fcn.00404ea8
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.00404fa4
inc edi
dec bx
jne 0x5d246b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d24bf
lea eax, [ebp - 0xc]
call fcn.00404cc0
lea eax, [ebp - 4]
call fcn.00404cc0
ret
Function at 0x5d4484
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, dword [ebp + 8]
mov byte [ebp - 5], 0
jmp 0x5d44ed
push 0
push esi
mov eax, dword [ebp - 4]
push eax
mov eax, dword [edi + 4]
push eax
call sub.wsock32.dll_send
mov ebx, eax
cmp ebx, esi
jne 0x5d44b7
mov byte [ebp - 5], 1
jmp 0x5d44f3
cmp ebx, 0xffffffff
jne 0x5d44d3
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x5d44e6
mov byte [ebp - 5], 0
jmp 0x5d44f3
cmp ebx, esi
jle 0x5d44e6
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0xa
jle 0x5d44e6
mov byte [ebp - 5], 0
jmp 0x5d44f3
push 0x14
call sub.kernel32.dll_Sleep_1
cmp byte [edi + 8], 0
jne 0x5d449b
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x5d86d0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040518c
xor eax, eax
push ebp
push 0x5d8772
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x5d8745
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x410
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.0040519c
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x5d873b
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x58]
mov ecx, 0x50
call fcn.00404f30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5d875c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d8779
lea eax, [ebp - 4]
call fcn.00404cc0
ret
Function at 0x5dc7d4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x5dc7dc
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5dc932
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 0x43
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.005dca38
test al, al
je 0x5dc90d
mov byte [ebp - 7], bl
mov byte [ebp - 6], 0x3a
mov byte [ebp - 5], 0
lea eax, [ebp - 7]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetDriveTypeA
mov esi, eax
cmp esi, 2
jne 0x5dc850
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00404ea8
lea eax, [ebp - 0x10]
mov edx, 0x5dc948
call fcn.00404fa4
mov edx, dword [ebp - 0x10]
mov eax, dword [edi]
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp esi, 3
jne 0x5dc876
lea eax, [ebp - 0x14]
mov edx, ebx
call fcn.00404ea8
lea eax, [ebp - 0x14]
mov edx, 0x5dc954
call fcn.00404fa4
mov edx, dword [ebp - 0x14]
mov eax, dword [edi]
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp esi, 4
jne 0x5dc89c
lea eax, [ebp - 0x18]
mov edx, ebx
call fcn.00404ea8
lea eax, [ebp - 0x18]
mov edx, 0x5dc960
call fcn.00404fa4
mov edx, dword [ebp - 0x18]
mov eax, dword [edi]
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp esi, 5
jne 0x5dc8c2
lea eax, [ebp - 0x1c]
mov edx, ebx
call fcn.00404ea8
lea eax, [ebp - 0x1c]
mov edx, 0x5dc96c
call fcn.00404fa4
mov edx, dword [ebp - 0x1c]
mov eax, dword [edi]
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp esi, 6
jne 0x5dc8e8
lea eax, [ebp - 0x20]
mov edx, ebx
call fcn.00404ea8
lea eax, [ebp - 0x20]
mov edx, 0x5dc948
call fcn.00404fa4
mov edx, dword [ebp - 0x20]
mov eax, dword [edi]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test esi, esi
jne 0x5dc90d
lea eax, [ebp - 0x24]
mov edx, ebx
call fcn.00404ea8
lea eax, [ebp - 0x24]
mov edx, 0x5dc948
call fcn.00404fa4
mov edx, dword [ebp - 0x24]
mov eax, dword [edi]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
cmp bl, 0x5b
jne 0x5dc7fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5dc939
lea eax, [ebp - 0x24]
mov edx, 6
call fcn.00404ce4
ret