joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406e12
Capabilities:
Check for time delay via gettickcount
Read and send data from client to server
Read file via mapping
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
mov dword [ebp - 4], edi
je 0x406f76
cmp dword [esi + 0x34], 0xffffffff
je 0x406f76
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x20]
and dword [ebp + 8], 0
mov edx, dword [esi + 0x2c]
mov ebx, dword [esi + 0x24]
sub eax, ecx
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0xa0]
sbb ebx, edx
mov edi, dword [eax + 0x734]
mov eax, edi
cdq
push edx
push eax
push dword [esi + 0x2c]
push ecx
call fcn.0041c2a0
sub edi, eax
test ebx, ebx
jl 0x406ec8
jg 0x406e74
cmp dword [ebp - 0xc], 0
jbe 0x406ec8
mov eax, edi
cdq
cmp ebx, edx
jl 0x406e87
jg 0x406e82
cmp dword [ebp - 0xc], eax
jbe 0x406e87
mov dword [ebp - 8], edx
jmp 0x406e8d
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], ebx
push 0
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
mov eax, dword [eax + 0x730]
cdq
push edx
push eax
push dword [esi + 0x2c]
push dword [esi + 0x28]
call fcn.0041c2a0
add eax, dword [esi + 0x30]
push eax
mov eax, dword [esi + 8]
push dword [eax + 8]
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
mov dword [ebp + 8], eax
jl 0x406f76
mov eax, dword [ebp + 8]
cdq
add dword [esi + 0x28], eax
adc dword [esi + 0x2c], edx
mov ecx, dword [esi + 0x28]
cmp ecx, dword [esi + 0x20]
mov edi, dword [esi + 0x2c]
jne 0x406ef3
cmp edi, dword [esi + 0x24]
jne 0x406ef3
xor eax, eax
cmp dword [esi + 0x18], 0x62
setne al
add eax, 7
mov dword [esi + 0x48], eax
jmp 0x406f65
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0xa0]
mov eax, dword [eax + 0x730]
cdq
push edx
push eax
push edi
push ecx
call fcn.0041c2a0
or eax, edx
jne 0x406f65
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi + 0x28]
mov edi, dword [esi + 0x20]
mov edx, dword [esi + 0x2c]
mov ecx, dword [esi + 0x24]
sub edi, eax
mov eax, dword [ebx + 0xa0]
sbb ecx, edx
mov eax, dword [eax + 0x730]
cdq
cmp ecx, edx
jl 0x406f45
jg 0x406f40
cmp edi, eax
jbe 0x406f45
mov dword [ebp - 8], edx
jmp 0x406f4a
mov eax, edi
mov dword [ebp - 8], ecx
push eax
mov eax, dword [esi + 0x2c]
push dword [esi + 0x28]
mov ecx, eax
sar ecx, 0x1f
push eax
push 4
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 8]
push 1
mov dword [ecx + 0x20], eax
pop eax
jmp 0x406f78
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4079ee
Capabilities:
Set socket configuration

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
mov esi, ecx
je 0x407a48
lea ebx, [esi + 0x40]
mov ecx, ebx
call fcn.00419388
mov edi, eax
add eax, 0xffffffb0
neg edi
sbb edi, edi
and edi, eax
je 0x407a48
mov eax, dword [esp + 0x10]
cmp dword [edi + 0x64], eax
jne 0x407a26
mov ecx, edi
call fcn.00413b54
cmp eax, 1
jne 0x407a88
mov eax, edi
add edi, 0x50
neg eax
sbb eax, eax
mov ecx, ebx
and eax, edi
push eax
call fcn.00419396
mov ecx, eax
add eax, 0xffffffb0
neg ecx
sbb ecx, ecx
and ecx, eax
mov edi, ecx
jne 0x407a11
push 0x8450
call fcn.0041b8da
xor ebx, ebx
pop ecx
cmp eax, ebx
je 0x407a94
push dword [esp + 0x14]
lea ecx, [esi + 0x68]
push dword [esp + 0x14]
push dword [esi + 0x98]
push dword [esi + 0xa0]
push ecx
mov ecx, eax
push dword [esi + 0x9c]
push dword [esi + 0x94]
call fcn.00410bb6
mov edi, eax
jmp 0x407a96
push 1
push edi
mov ecx, esi
call fcn.004090ed
jmp 0x407b02
xor edi, edi
cmp edi, ebx
jne 0x407a9e
xor eax, eax
jmp 0x407b05
lea eax, [edi + 0x50]
lea ecx, [esi + 0x40]
push eax
call fcn.0041934e
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x17c]
mov eax, dword [edi]
push 0xa
mov ecx, edi
call dword [eax + 0xc]
push 1
push edi
mov ecx, esi
call fcn.00409f9e
cmp dword [esi + 0x74], ebx
jne 0x407b02
mov eax, dword [esi + 0xa0]
cmp dword [eax + 0x7ec], ebx
jne 0x407b02
mov ax, word [esi + 0xa8]
push 1
push eax
call dword [sym.imp.WSOCK32.dll_htons]
movzx eax, ax
push eax
push str.127.0.0.1
call dword [sym.imp.WSOCK32.dll_inet_addr]
push eax
mov ecx, esi
call fcn.00408a10
push 1
pop eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x408cc0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [ebp + 8]
add eax, 0xc0
push 7
mov ebx, ecx
push eax
call fcn.0040cf87
xor edi, edi
add esp, 0xc
cmp eax, edi
je 0x408ecf
push eax
call fcn.0041bfa7
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
push 7
push edi
call fcn.0040cf87
add esp, 0x10
cmp eax, edi
je 0x408ecf
push eax
call fcn.0041bfa7
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
xor esi, esi
push 7
push edi
mov dword [ebp - 8], esi
call fcn.0040cf87
add esp, 0x10
cmp eax, edi
je 0x408e62
jmp 0x408d39
mov esi, dword [ebp - 8]
push 0x50
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.00419eb0
lea eax, [ebp - 4]
push eax
push 7
push edi
call fcn.0040cf87
add esp, 0x18
cmp eax, edi
je 0x408e62
push 0x50
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00419eb0
lea eax, [ebp - 4]
push eax
push 7
push edi
call fcn.0040cf87
add esp, 0x18
cmp eax, edi
je 0x408e62
push eax
call fcn.0041bf1c
mov esi, eax
lea eax, [ebp - 4]
push eax
push 7
push edi
and esi, 0xffffff00
call fcn.0040cf87
add esp, 0x10
cmp eax, edi
je 0x408e5f
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 4]
push eax
push 7
push edi
call fcn.0040cf87
add esp, 0xc
cmp eax, edi
je 0x408e5f
push eax
call fcn.0041bfa7
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 4]
push eax
push 7
push edi
call fcn.0040cf87
add esp, 0x10
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x408e5f
push 0x428b30
push eax
call fcn.0041bca0
pop ecx
test eax, eax
pop ecx
jne 0x408dff
mov dword [ebp - 0xc], 0x42bac0
lea eax, [ebp - 4]
push eax
push 7
push edi
call fcn.0040cf87
add esp, 0xc
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x408e5f
push 0x428b30
push eax
call fcn.0041bca0
pop ecx
test eax, eax
pop ecx
jne 0x408e2d
mov dword [ebp - 0x18], 0x42bac0
push dword [ebp - 0x18]
or esi, 1
lea eax, [ebp - 0xc0]
mov ecx, ebx
push dword [ebp - 0xc]
push esi
push eax
call fcn.004081a5
inc dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push 7
push edi
call fcn.0040cf87
add esp, 0xc
cmp eax, edi
jne 0x408d36
mov esi, dword [ebp - 8]
cmp dword [ebp - 0x14], edi
jne 0x408e8b
cmp esi, dword [ebp - 0x10]
jl 0x408e8b
mov eax, dword [ebx + 0xa0]
mov dword [ebx + 0xb4], edi
cmp dword [eax + 0x7ec], edi
je 0x408ecf
push 1
mov ecx, ebx
call fcn.00408836
jmp 0x408ecf
sub esi, dword [ebp - 0x10]
add esi, dword [ebp - 0x14]
push esi
call fcn.0041c5e7
pop ecx
mov ecx, dword [ebx + 0x94]
push eax
push 0x12
push dword [ebp + 8]
call fcn.0040d4df
mov eax, dword [ebx + 0xa0]
push edi
mov esi, 0x105
push dword [eax + 0x7f0]
push esi
push dword [ebx + 0x3c]
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
je 0x408ecf
mov dword [ebx + 0xb8], esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40cfe0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x40d009
push esi
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x40d00b
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x40d009
mov eax, dword [eax + 0xc]
pop esi
mov eax, dword [eax]
mov eax, dword [eax]
ret
xor eax, eax
pop esi
ret

Function at 0x40d14a
Capabilities:
Get hostname
Get session user name
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
mov esi, ecx
push edi
and dword [esi + 8], 0
call fcn.0040cdd7
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
or dword [esi + 4], 0xffffffff
or dword [esi], 0xffffffff
and dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
mov dword [esi + 0xc0], edi
call dword [sym.imp.WSOCK32.dll_htons]
movzx eax, ax
mov dword [esi + 0xc4], eax
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [esi + 0x10], eax
test eax, eax
setne cl
push ecx
mov ecx, esi
call fcn.0040d253
test eax, eax
je 0x40d245
push 0x50
lea ecx, [ebp - 4]
pop ebx
lea eax, [esi + 0x70]
push ecx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x40d1ce
push eax
push str.GetComputerName__
call fcn.0040cb67
pop ecx
pop ecx
jmp 0x40d245
test edi, edi
jne 0x40d219
lea eax, [ebp - 0x404]
push 0x400
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x40d1fb
lea eax, [esi + 0x70]
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.0041bd30
pop ecx
pop ecx
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x40d219
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 0xc0], eax
lea eax, [ebp - 4]
lea edi, [esi + 0x20]
push eax
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp eax, 1
je 0x40d23e
push ebx
push str.no_name
push edi
call fcn.00419eb0
add esp, 0xc
mov dword [esi + 8], 1
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40d96e
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 0x10
lea eax, [ebp - 0x10]
push 0
mov esi, ecx
push eax
call fcn.0041b900
mov ax, word [ebp + 0xc]
add esp, 0xc
mov word [ebp - 0xe], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push 0x10
push eax
push 0
mov edi, dword [sym.imp.WSOCK32.dll_sendto]
push dword [ebp + 0x14]
mov word [ebp - 0x10], 2
push dword [ebp + 0x10]
push dword [esi]
call edi
cmp eax, 0xffffffff
jne 0x40da1b
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
sub eax, 0x2742
je 0x40d9e0
sub eax, 0xf
jne 0x40da17
cmp dword [0x42bc38], 0
jne 0x40da17
mov dword [0x42bc38], 1
jmp 0x40da17
mov ecx, esi
call fcn.0040d4cc
cmp eax, 1
jne 0x40da17
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40da00
push eax
mov ecx, esi
call fcn.0040d596
cmp eax, 1
jne 0x40da17
lea eax, [ebp - 0x10]
push 0x10
push eax
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [esi]
call edi
cmp eax, 0xffffffff
jne 0x40da1b
xor eax, eax
jmp 0x40da1e
push 1
pop eax
pop edi
pop esi
leave
ret 0x10

Function at 0x40da5f
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
push 1
lea eax, [ebp - 0xc]
pop edi
mov dword [ebp - 8], ecx
push eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xc], 0x10
push dword [ecx + 4]
mov dword [ebp - 0x10], edi
call dword [sym.imp.WSOCK32.dll_accept]
mov esi, dword [ebp + 0xc]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
je 0x40db20
push ebx
mov ebx, dword [sym.imp.WSOCK32.dll_setsockopt]
lea ecx, [ebp - 0x10]
push 4
push ecx
push edi
push 0xffff
push eax
call ebx
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x18], edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], edi
movzx eax, word [ebp - 0x1e]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x738]
test eax, eax
mov dword [ebp - 4], eax
jle 0x40daf6
lea eax, [ebp - 4]
push 4
push eax
push 0x1001
push 0xffff
push dword [esi + 8]
call ebx
test eax, eax
je 0x40daf6
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
jmp 0x40dacc
mov ecx, dword [ebp - 8]
push esi
push dword [ebp + 8]
call fcn.0040dc37
test eax, eax
pop ebx
je 0x40db17
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], eax
mov eax, edi
jmp 0x40db22
push dword [esi + 8]
call dword [sym.imp.WSOCK32.dll_closesocket]
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x40db28
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0
and dword [esi + 0x14], 0
push 1
pop edi
mov dword [ebp - 8], ecx
push edi
push 2
call dword [sym.imp.WSOCK32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
je 0x40dc2f
lea ecx, [ebp - 4]
mov dword [ebp - 4], edi
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
test eax, eax
jne 0x40dc2f
push ebx
lea eax, [ebp - 4]
push 4
push eax
mov ebx, 0xffff
push edi
mov edi, dword [sym.imp.WSOCK32.dll_setsockopt]
push ebx
push dword [esi + 8]
call edi
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x738]
test eax, eax
mov dword [ebp + 0xc], eax
jle 0x40dbba
lea eax, [ebp + 0xc]
push 4
push eax
push 0x1002
push ebx
push dword [esi + 8]
call edi
test eax, eax
je 0x40dbba
mov eax, dword [ebp + 0xc]
cdq
sub eax, edx
sar eax, 1
jmp 0x40db94
mov ecx, dword [ebp - 8]
push esi
push dword [ebp + 8]
call fcn.0040dc37
test eax, eax
pop ebx
je 0x40dc26
push 0x10
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.0041b900
mov ax, word [esi + 0x10]
add esp, 0xc
mov word [ebp - 0x16], ax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 0x10
push eax
push dword [esi + 8]
mov word [ebp - 0x18], 2
call dword [sym.imp.WSOCK32.dll_connect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
jne 0x40dc15
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40dc26
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 1
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], eax
pop eax
jmp 0x40dc31
push dword [esi + 8]
call dword [sym.imp.WSOCK32.dll_closesocket]
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x40ed47
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
xor edi, edi
mov eax, dword [esi + 0x8314]
mov ecx, dword [eax + 0x1c]
cmp ecx, ebx
jle 0x40ed6f
mov eax, dword [eax + 0x18]
mov edx, dword [eax]
cmp dword [edx + 0x2c], ebx
jne 0x40ed6f
inc edi
add eax, 4
cmp edi, ecx
jl 0x40ed60
cmp edi, ecx
jne 0x40ed7a
xor eax, eax
jmp 0x40ee5a
push 0x68
push ebx
push dword [esi + 0x8310]
call fcn.0041b900
push 0x24
call fcn.0041b8da
mov ecx, dword [esi + 0x8310]
add esp, 0x10
mov dword [ecx], eax
mov eax, dword [esi + 0x8314]
mov ecx, dword [esi + 0x8310]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + edi*4]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x8310]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x14]
sub cl, 2
neg cl
sbb ecx, ecx
inc ecx
mov dword [eax + 8], ecx
mov eax, dword [esi + 0x8310]
mov ecx, dword [eax + 8]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffa
add ecx, 6
mov dword [eax + 0x7c], ecx
mov eax, dword [esi + 0x8310]
or dword [eax + 0x54], 0xffffffff
mov eax, dword [esi + 0x8310]
cmp dword [eax + 8], ebx
je 0x40ee0b
lea ecx, [eax + 0x80]
push 0x30c
add eax, 0x38c
push ecx
push eax
call fcn.00419eb0
add esp, 0xc
mov ecx, esi
call fcn.0040f997
test eax, eax
je 0x40ee32
mov edi, dword [esi]
push ebx
push 0x78
call fcn.00417d3e
pop ecx
pop ecx
push eax
push 0x486
mov ecx, esi
call dword [edi + 0xbc]
jmp 0x40ee48
mov eax, dword [esi + 0x8310]
push dword [eax]
call fcn.0041b8e8
mov eax, dword [esi + 0x8310]
pop ecx
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x8310]
push 1
mov dword [ecx + 0x70], eax
pop eax
pop edi
pop esi
pop ebx
ret
Function at 0x40fa06
Capabilities:
Create thread
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x710
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x8310]
mov ecx, str._x:_x:
cmp dword [eax + 8], edi
jne 0x40fa2a
mov ecx, str._x:_x:_x:
mov eax, dword [eax + 4]
push ebx
push edi
push dword [eax + 8]
lea eax, [ebp - 0x710]
push dword [esi + 0x10c]
push ecx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esi + 0x8310]
add esp, 0x14
mov eax, dword [eax]
push edi
push edi
mov dword [eax + 0x18], 1
mov eax, dword [esi + 0x8310]
mov ecx, dword [esi + 0x58]
mov eax, dword [eax + 8]
mov edx, dword [ecx + 0xc]
neg eax
sbb eax, eax
lea ebx, [edx + 1]
and eax, 2
mov dword [ecx + 0xc], ebx
lea ebx, [ebp - 0x710]
add eax, 0x60
push ebx
push eax
lea eax, [ebp - 0x404]
push edx
push eax
call fcn.0040d624
mov eax, dword [esi + 0x8310]
mov ecx, dword [esi + 0x58]
push dword [eax]
push dword [esi + 0x3c]
call fcn.0040dc6b
lea eax, [ebp - 0x404]
push edi
push eax
call fcn.0041c030
pop ecx
push eax
lea eax, [ebp - 0x404]
push eax
mov eax, dword [esi + 0x8310]
mov eax, dword [eax]
push dword [eax + 8]
call dword [sym.imp.WSOCK32.dll_send]
mov ebx, eax
lea eax, [ebp - 0x404]
push eax
call fcn.0041c030
pop ecx
cmp ebx, eax
pop ebx
jl 0x40fbc1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x8310]
mov ecx, dword [ecx]
mov dword [ecx + 0x20], eax
mov eax, dword [esi + 0x8310]
mov eax, dword [eax]
mov ecx, dword [eax + 0x20]
mov dword [eax + 0x1c], ecx
mov eax, dword [esi + 0x8310]
cmp dword [eax + 8], edi
jne 0x40fb15
push dword [eax + 4]
lea ecx, [eax + 0x10]
call fcn.0040fbcd
mov eax, dword [esi + 0x8260]
push dword [eax + 0x734]
call fcn.0041b8da
pop ecx
mov ecx, dword [esi + 0x8310]
mov dword [ecx + 0x50], eax
mov eax, dword [esi + 0x8310]
cmp dword [eax + 8], edi
jne 0x40fb96
mov ecx, dword [eax + 0x28]
or ecx, dword [eax + 0x2c]
jne 0x40fb96
mov ecx, esi
call fcn.004102e4
test eax, eax
je 0x40fb66
push 1
mov ecx, esi
call fcn.0040fd4b
mov eax, dword [esi + 0x8310]
mov dword [eax + 0x7c], 8
jmp 0x40fb73
mov eax, dword [esi + 0x8310]
mov dword [eax + 0x7c], 9
mov ecx, dword [esi + 0x8310]
mov eax, dword [esi]
push 0x20
mov ecx, dword [ecx]
push dword [ecx + 8]
mov ecx, esi
push 0x483
call dword [eax + 0xf8]
push 1
pop eax
pop edi
pop esi
leave
ret
or dword [eax + 0x58], 0xffffffff
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x40fc29
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 0x8310]
mov dword [ecx + 0x58], eax
mov eax, dword [esi + 0x8310]
cmp dword [eax + 0x58], edi
jne 0x40fb8f
push edi
mov ecx, esi
call fcn.004108df
xor eax, eax
jmp 0x40fb92
Function at 0x4103f1
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x8310]
mov edi, dword [ecx + 0x40]
mov ebx, dword [ecx + 0x28]
sub edi, dword [ecx + 0x48]
sub ebx, dword [ecx + 0x40]
mov eax, dword [ecx + 0x2c]
sbb eax, dword [ecx + 0x44]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x8260]
mov eax, dword [eax + 0x734]
sub eax, edi
cdq
cmp dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
jl 0x41043a
jg 0x410434
cmp ebx, eax
jbe 0x41043a
mov ebx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ecx + 0x50]
push 0
add eax, edi
push ebx
push eax
mov eax, dword [ecx]
push dword [eax + 8]
call dword [sym.imp.WSOCK32.dll_recv]
mov ebx, eax
test ebx, ebx
jle 0x41055a
mov eax, dword [esi + 0x8310]
cmp dword [eax + 0x54], 0xffffffff
jne 0x410473
mov ecx, esi
call fcn.004102e4
test eax, eax
je 0x41055a
mov ecx, dword [esi + 0x8310]
mov eax, ebx
cdq
add edi, ebx
mov ebx, edx
mov edx, dword [ecx + 0x40]
mov dword [ebp - 0x10], eax
add edx, eax
mov eax, dword [ecx + 0x44]
adc eax, ebx
cmp eax, dword [ecx + 0x2c]
jg 0x4104a7
jl 0x410499
cmp edx, dword [ecx + 0x28]
jae 0x4104a7
mov eax, dword [esi + 0x8260]
cmp dword [eax + 0x734], edi
jne 0x4104d3
lea eax, [ebp - 4]
push 0
push eax
push edi
push dword [ecx + 0x50]
push dword [ecx + 0x54]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x41053d
cmp edi, dword [ebp - 4]
jne 0x41053d
mov ecx, dword [esi + 0x8310]
mov eax, edi
cdq
add dword [ecx + 0x48], eax
adc dword [ecx + 0x4c], edx
mov eax, dword [esi + 0x8310]
mov ecx, dword [ebp - 0x10]
add dword [eax + 0x40], ecx
adc dword [eax + 0x44], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x8310]
mov edx, eax
mov ecx, dword [ecx]
sub edx, dword [ecx + 0x20]
cmp edx, 0x3e8
jb 0x410513
mov dword [ecx + 0x20], eax
mov eax, dword [esi]
push 0
push 0
push 0x470
mov ecx, esi
call dword [eax + 0xf8]
mov esi, dword [esi + 0x8310]
mov eax, dword [esi + 0x44]
cmp eax, dword [esi + 0x2c]
jl 0x410538
jg 0x41052b
mov eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x28]
jb 0x410538
mov eax, dword [esi + 8]
neg eax
sbb eax, eax
add eax, 8
mov dword [esi + 0x7c], eax
push 1
pop eax
jmp 0x41055c
mov edi, dword [esi]
push 0
push 0x4287c8
push 0
push 0x7a
call fcn.00417d3e
pop ecx
pop ecx
push eax
mov ecx, esi
call dword [edi + 0xe4]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4175f2
Capabilities:
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
push edi
je 0x41760b
push 1
push dword [esp + 0x10]
call fcn.00417ead
pop ecx
mov esi, eax
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov edi, eax
call fcn.0041b8e8
pop ecx
mov eax, edi
pop edi
pop esi
ret

Function at 0x417620
Capabilities:
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
push edi
je 0x417639
push 1
push dword [esp + 0x10]
call fcn.00417ead
pop ecx
mov esi, eax
pop ecx
push dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
mov edi, eax
call fcn.0041b8e8
pop ecx
mov eax, edi
pop edi
pop esi
ret

Function at 0x417652
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
push 1
pop esi
je 0x417673
push esi
push dword [ebp + 0xc]
call fcn.00417ead
pop ecx
mov dword [ebp - 4], eax
pop ecx
jmp 0x417676
mov dword [ebp - 4], edi
cmp dword [ebp + 0x10], edi
je 0x41768b
push esi
push dword [ebp + 0x10]
call fcn.00417ead
pop ecx
mov dword [ebp + 0xc], eax
pop ecx
jmp 0x41768e
mov dword [ebp + 0xc], edi
cmp dword [ebp + 0x14], edi
je 0x4176a2
push esi
push dword [ebp + 0x14]
call fcn.00417ead
pop ecx
mov ebx, eax
pop ecx
jmp 0x4176a4
xor ebx, ebx
cmp dword [ebp + 0x18], edi
je 0x4176b8
push esi
push dword [ebp + 0x18]
call fcn.00417ead
pop ecx
mov esi, eax
pop ecx
jmp 0x4176ba
xor esi, esi
push dword [ebp + 0x1c]
push esi
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push esi
mov edi, eax
call fcn.0041b8e8
push ebx
call fcn.0041b8e8
push dword [ebp + 0xc]
call fcn.0041b8e8
push dword [ebp - 4]
call fcn.0041b8e8
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4176f6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x3c
lea eax, [ebp - 0x48]
push esi
push eax
call fcn.0041b960
mov eax, dword [esi + 0xc]
add esp, 0xc
xor ebx, ebx
push 1
cmp eax, ebx
pop edi
je 0x41772b
push edi
push eax
call fcn.00417ead
pop ecx
mov dword [ebp - 8], eax
pop ecx
jmp 0x41772e
mov dword [ebp - 8], ebx
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x417743
push edi
push eax
call fcn.00417ead
pop ecx
mov dword [ebp - 4], eax
pop ecx
jmp 0x417746
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x41775b
push edi
push eax
call fcn.00417ead
pop ecx
mov dword [ebp + 8], eax
pop ecx
jmp 0x41775e
mov dword [ebp + 8], ebx
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x417770
push edi
push eax
call fcn.00417ead
pop ecx
mov ebx, eax
pop ecx
mov eax, dword [esi + 0x28]
test eax, eax
je 0x417784
push edi
push eax
call fcn.00417ead
pop ecx
mov edi, eax
pop ecx
jmp 0x417786
xor edi, edi
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x20], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x48]
push 0x3c
push eax
push esi
call fcn.0041b960
push edi
call fcn.0041b8e8
push ebx
call fcn.0041b8e8
push dword [ebp + 8]
call fcn.0041b8e8
push dword [ebp - 4]
call fcn.0041b8e8
push dword [ebp - 8]
call fcn.0041b8e8
mov eax, dword [ebp - 0xc]
add esp, 0x20
pop edi
pop esi
pop ebx
leave
ret