joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4084bf
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [ebp + 8]
add eax, 0x84
push 7
mov ebx, ecx
push eax
call fcn.0040c41f
xor edi, edi
add esp, 0xc
cmp eax, edi
je 0x4086c8
push eax
call fcn.00417677
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
push 7
push edi
call fcn.0040c41f
add esp, 0x10
cmp eax, edi
je 0x4086c8
push eax
call fcn.00417677
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.0040c41f
add esp, 0x10
cmp eax, edi
je 0x40865b
jmp 0x408538
mov esi, dword [ebp - 8]
push 0x32
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.0040b25c
lea eax, [ebp - 4]
push eax
push 7
push edi
call fcn.0040c41f
add esp, 0x18
cmp eax, edi
je 0x40865b
push 0x32
push eax
lea eax, [ebp - 0x52]
push eax
call fcn.0040b25c
lea eax, [ebp - 4]
push eax
push 7
push edi
call fcn.0040c41f
add esp, 0x18
cmp eax, edi
je 0x40865b
push eax
call fcn.004175ec
mov esi, eax
lea eax, [ebp - 4]
push eax
push 7
push edi
call fcn.0040c41f
add esp, 0x10
cmp eax, edi
je 0x408658
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.0040c41f
add esp, 0xc
cmp eax, edi
je 0x408658
push eax
call fcn.00417677
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 4]
push eax
push 7
push edi
call fcn.0040c41f
add esp, 0x10
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x408658
push 0x420cb4
push eax
call fcn.00417370
pop ecx
test eax, eax
pop ecx
jne 0x4085f8
mov dword [ebp - 0xc], 0x4220e0
lea eax, [ebp - 4]
push eax
push 7
push edi
call fcn.0040c41f
add esp, 0xc
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x408658
push 0x420cb4
push eax
call fcn.00417370
pop ecx
test eax, eax
pop ecx
jne 0x408626
mov dword [ebp - 0x18], 0x4220e0
push dword [ebp - 0x18]
or esi, 1
lea eax, [ebp - 0x84]
mov ecx, ebx
push dword [ebp - 0xc]
push esi
push eax
call fcn.00407a2e
inc dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push 7
push edi
call fcn.0040c41f
add esp, 0xc
cmp eax, edi
jne 0x408535
mov esi, dword [ebp - 8]
cmp dword [ebp - 0x14], edi
jne 0x408684
cmp esi, dword [ebp - 0x10]
jl 0x408684
mov eax, dword [ebx + 0x98]
mov dword [ebx + 0xac], edi
cmp dword [eax + 0x390], edi
je 0x4086c8
push 1
mov ecx, ebx
call fcn.004080b4
jmp 0x4086c8
sub esi, dword [ebp - 0x10]
add esi, dword [ebp - 0x14]
push esi
call fcn.00417c37
pop ecx
mov ecx, dword [ebx + 0x8c]
push eax
push 0x12
push dword [ebp + 8]
call fcn.0040c867
mov eax, dword [ebx + 0x98]
push edi
mov esi, 0x105
push dword [eax + 0x394]
push esi
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
je 0x4086c8
mov dword [ebx + 0xb0], esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4086cf
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x98]
push 5
push edi
add eax, 0x68
push edi
push eax
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x1f
jg 0x40871e
cmp eax, 0x1b
je 0x408709
cmp eax, 0x1f
je 0x408709
mov eax, dword [esi]
push edi
push 0x420860
push 0x420ce4
jmp 0x408716
mov eax, dword [esi]
push edi
push 0x420860
push 0x420cc4
mov ecx, esi
call dword [eax + 0x90]
pop edi
pop esi
ret
Function at 0x40bb45
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x954
mov dl, byte [0x4220e0]
push ebx
push esi
mov esi, ecx
mov ebx, 0xff
push edi
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x553]
mov byte [ebp - 0x554], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x953]
mov byte [ebp - 0x954], dl
rep stosd dword es:[edi], eax
and dword [ebp - 4], 0
add ebx, 5
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
cmp byte [eax], 0
je 0x40bbc9
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x554]
push ecx
push 0x400
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x40bbc9
mov eax, dword [ebp - 4]
test eax, eax
je 0x40bbc9
and byte [eax - 1], 0
push ebx
push dword [ebp - 4]
lea eax, [ebp - 0x954]
jmp 0x40bbd9
cmp dword [ebp + 0x14], 0
je 0x40bbe2
push ebx
lea eax, [ebp - 0x554]
push dword [ebp + 0x14]
push eax
call fcn.0040b25c
add esp, 0xc
push 0x4c
lea eax, [ebp - 0x50]
pop edi
push edi
push 0
push eax
call fcn.00416fd0
mov eax, dword [esi]
add esp, 0xc
test eax, eax
mov dword [ebp - 0x50], edi
je 0x40bc05
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x4c], eax
jmp 0x40bc09
and dword [ebp - 0x4c], 0
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [ebp - 0x44], eax
mov edi, 0x400
test eax, eax
lea eax, [ebp - 0x954]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x554]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 4]
setne cl
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x38], ecx
neg eax
sbb eax, eax
and eax, 0x20
or eax, 0x80004
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x40bc6a
cmp eax, 1
je 0x40bc6a
cmp eax, 3
jne 0x40bc66
mov eax, 0x100000
jmp 0x40bc7b
xor eax, eax
jmp 0x40bc7b
dec eax
neg eax
sbb eax, eax
and ax, 0xfe00
add eax, 0x200
or ah, 0x10
or dword [ebp - 0x1c], eax
lea eax, [ebp - 0x154]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [esi + 8]
test eax, eax
je 0x40bca3
cmp eax, 1
je 0x40bca3
lea eax, [ebp - 0x50]
push eax
call sub.comdlg32.dll_GetSaveFileNameA
jmp 0x40bcac
lea eax, [ebp - 0x50]
push eax
call sub.comdlg32.dll_GetOpenFileNameA
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [ebp + 0x10], 0
je 0x40bd02
cmp dword [esi + 8], 1
jne 0x40bcda
lea eax, [ebp - 0x954]
push edi
push eax
push dword [ebp + 8]
call fcn.00417030
jmp 0x40bce6
push ebx
push dword [ebp - 0x34]
push dword [ebp + 8]
call fcn.0040b25c
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x40bd02
movzx eax, word [ebp - 0x18]
push eax
push dword [ebp - 0x34]
push dword [ebp + 0x14]
call fcn.0040b25c
add esp, 0xc
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40c470
Capabilities:
Resolve dns
Set socket configuration

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

Function at 0x40c4cf
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.0040c06a
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 + 0x84], edi
call dword [sym.imp.WSOCK32.dll_htons]
movzx eax, ax
mov dword [esi + 0x88], 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.0040c5da
test eax, eax
je 0x40c5cc
push 0x32
lea ecx, [ebp - 4]
pop ebx
lea eax, [esi + 0x52]
push ecx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x40c553
push eax
push str.GetComputerName__
call fcn.0040bdb0
pop ecx
pop ecx
jmp 0x40c5cc
test edi, edi
jne 0x40c5a0
lea eax, [ebp - 0x404]
push 0x400
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x40c580
lea eax, [esi + 0x52]
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.00417400
pop ecx
pop ecx
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
jne 0x40c5a0
mov eax, dword [0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 0x84], 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 0x40c5c5
push ebx
push 0x421240
push edi
call fcn.0040b25c
add esp, 0xc
mov dword [esi + 8], 1
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40c5da
Capabilities:
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
push ebx
push esi
lea eax, [ebp - 0x1ac]
push edi
push eax
mov esi, ecx
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
push 0
je 0x40c611
push str.WSAStart__
call fcn.0040be09
pop ecx
pop ecx
jmp 0x40c807
mov edi, dword [sym.imp.WSOCK32.dll_socket]
push 2
pop ebx
push ebx
push ebx
call edi
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x40c62e
push 0
push 0x421344
jmp 0x40c605
push 1
pop eax
cmp dword [ebp + 8], eax
jne 0x40c80e
push 0
push eax
push ebx
call edi
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x40c651
push 0
push 0x421318
jmp 0x40c605
push 0x10
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.00416fd0
mov eax, dword [esi + 0x84]
mov edi, dword [sym.imp.WSOCK32.dll_bind]
mov dword [ebp - 0x18], eax
mov ax, word [esi + 0x88]
add esp, 0xc
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x1c]
mov word [ebp - 0x1c], bx
push 0x10
push eax
push dword [esi]
call edi
test eax, eax
je 0x40c699
push 0
push str.bind__
jmp 0x40c605
lea eax, [ebp - 0x1c]
push 0x10
push eax
push dword [esi + 4]
call edi
test eax, eax
je 0x40c6c3
push dword [esi + 4]
call dword [sym.imp.WSOCK32.dll_closesocket]
or dword [esi + 4], 0xffffffff
push 0
push 0x4212f0
call fcn.0040be09
pop ecx
pop ecx
mov edi, dword [sym.imp.WSOCK32.dll_ioctlsocket]
lea eax, [ebp - 4]
mov ebx, 0x8004667e
push eax
push ebx
mov dword [ebp - 4], 1
push dword [esi]
call edi
test eax, eax
je 0x40c6ee
push 0
push str.ioctlsocket_nonblock_
jmp 0x40c605
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x40c70e
lea ecx, [ebp - 4]
push ecx
push ebx
push eax
call edi
test eax, eax
je 0x40c70e
push 0
push str.ioctlsocket_tcp_nonblock_
jmp 0x40c605
mov edi, dword [sym.imp.WSOCK32.dll_setsockopt]
lea eax, [ebp - 4]
push 4
push eax
mov ebx, 0xffff
push 0x20
push ebx
mov dword [ebp - 4], 1
push dword [esi]
call edi
test eax, eax
je 0x40c73d
push 0
push str.setsockopt_broadcast_
jmp 0x40c605
lea eax, [ebp - 0xc]
push 4
push eax
push 0x1001
push ebx
mov dword [ebp - 0xc], 0x10000
push dword [esi]
mov dword [ebp - 8], 0x8000
call edi
test eax, eax
je 0x40c781
lea eax, [ebp - 8]
push 4
push eax
push 0x1001
push ebx
push dword [esi]
call edi
test eax, eax
je 0x40c781
push 0
push str.setsockopt_sendbuf_
call fcn.0040be09
pop ecx
pop ecx
lea eax, [ebp - 0xc]
push 4
push eax
push 0x1002
push ebx
mov dword [ebp - 0xc], 0x10000
push dword [esi]
mov dword [ebp - 8], 0x8000
call edi
test eax, eax
je 0x40c7c5
lea eax, [ebp - 8]
push 4
push eax
push 0x1002
push ebx
push dword [esi]
call edi
test eax, eax
je 0x40c7c5
push 0
push str.setsockopt_recvbuf_
call fcn.0040be09
pop ecx
pop ecx
mov eax, dword [esi + 4]
mov dword [ebp - 4], 1
cmp eax, 0xffffffff
je 0x40c7f2
lea ecx, [ebp - 4]
push 4
push ecx
push 4
push ebx
push eax
call edi
test eax, eax
je 0x40c7f2
push 0
push str.setsockopt_tcp_reuseaddr_
call fcn.0040be09
pop ecx
pop ecx
mov esi, dword [esi + 4]
cmp esi, 0xffffffff
je 0x40c80b
push 5
push esi
call dword [sym.imp.WSOCK32.dll_listen]
test eax, eax
je 0x40c80b
xor eax, eax
jmp 0x40c80e
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40cc65
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.00416fd0
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 0x40cd12
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
sub eax, 0x2742
je 0x40ccd7
sub eax, 0xf
jne 0x40cd0e
cmp dword [0x422218], 0
jne 0x40cd0e
mov dword [0x422218], 1
jmp 0x40cd0e
mov ecx, esi
call fcn.0040c854
cmp eax, 1
jne 0x40cd0e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40ccf7
push eax
mov ecx, esi
call fcn.0040c912
cmp eax, 1
jne 0x40cd0e
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 0x40cd12
xor eax, eax
jmp 0x40cd15
push 1
pop eax
pop edi
pop esi
leave
ret 0x10

Function at 0x40cd56
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 0x40ce17
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 + 0x31c]
test eax, eax
mov dword [ebp - 4], eax
jle 0x40cded
lea eax, [ebp - 4]
push 4
push eax
push 0x1001
push 0xffff
push dword [esi + 8]
call ebx
test eax, eax
je 0x40cded
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
jmp 0x40cdc3
mov ecx, dword [ebp - 8]
push esi
push dword [ebp + 8]
call fcn.0040cf2e
test eax, eax
pop ebx
je 0x40ce0e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], eax
mov eax, edi
jmp 0x40ce19
push dword [esi + 8]
call dword [sym.imp.WSOCK32.dll_closesocket]
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x40ce1f
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 0x40cf26
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 0x40cf26
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 + 0x31c]
test eax, eax
mov dword [ebp + 0xc], eax
jle 0x40ceb1
lea eax, [ebp + 0xc]
push 4
push eax
push 0x1002
push ebx
push dword [esi + 8]
call edi
test eax, eax
je 0x40ceb1
mov eax, dword [ebp + 0xc]
cdq
sub eax, edx
sar eax, 1
jmp 0x40ce8b
mov ecx, dword [ebp - 8]
push esi
push dword [ebp + 8]
call fcn.0040cf2e
test eax, eax
pop ebx
je 0x40cf1d
push 0x10
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.00416fd0
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 0x40cf0c
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40cf1d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 1
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], eax
pop eax
jmp 0x40cf28
push dword [esi + 8]
call dword [sym.imp.WSOCK32.dll_closesocket]
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x40ea1e
Capabilities:
Create thread
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x421c]
mov ecx, str._x:_x:
cmp dword [eax + 8], edi
jne 0x40ea42
mov ecx, str._x:_x:_x:
mov eax, dword [eax + 4]
push ebx
push edi
push dword [eax + 8]
lea eax, [ebp - 0x108]
push dword [esi + 0xb0]
push ecx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esi + 0x421c]
add esp, 0x14
mov eax, dword [eax]
push edi
push edi
mov dword [eax + 0x18], 1
mov eax, dword [esi + 0x421c]
mov ecx, dword [esi + 0x38]
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 - 0x108]
add eax, 0x60
push ebx
push eax
lea eax, [ebp - 0x508]
push edx
push eax
call fcn.0040c9a0
mov eax, dword [esi + 0x421c]
mov ecx, dword [esi + 0x38]
push dword [eax]
push dword [esi + 0x20]
call fcn.0040cf62
lea eax, [ebp - 0x508]
push edi
push eax
call fcn.00417690
pop ecx
push eax
lea eax, [ebp - 0x508]
push eax
mov eax, dword [esi + 0x421c]
mov eax, dword [eax]
push dword [eax + 8]
call dword [sym.imp.WSOCK32.dll_send]
mov ebx, eax
lea eax, [ebp - 0x508]
push eax
call fcn.00417690
pop ecx
cmp ebx, eax
pop ebx
jl 0x40ebec
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x421c]
mov ecx, dword [ecx]
mov dword [ecx + 0x20], eax
mov eax, dword [esi + 0x421c]
mov eax, dword [eax]
mov ecx, dword [eax + 0x20]
mov dword [eax + 0x1c], ecx
mov eax, dword [esi + 0x421c]
cmp dword [eax + 0x70], edi
jne 0x40eb2a
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x1c]
mov dword [eax + 0x70], ecx
mov eax, dword [esi + 0x421c]
cmp dword [eax + 8], edi
jne 0x40eb40
push dword [eax + 4]
lea ecx, [eax + 0x10]
call fcn.0040ebf8
mov eax, dword [esi + 0x418c]
push dword [eax + 0x318]
call fcn.00416fae
pop ecx
mov ecx, dword [esi + 0x421c]
mov dword [ecx + 0x50], eax
mov eax, dword [esi + 0x421c]
cmp dword [eax + 8], edi
jne 0x40ebc1
mov ecx, dword [eax + 0x28]
or ecx, dword [eax + 0x2c]
jne 0x40ebc1
mov ecx, esi
call fcn.0040f2b3
test eax, eax
je 0x40eb91
push 1
mov ecx, esi
call fcn.0040ed76
mov eax, dword [esi + 0x421c]
mov dword [eax + 0x7c], 8
jmp 0x40eb9e
mov eax, dword [esi + 0x421c]
mov dword [eax + 0x7c], 9
mov ecx, dword [esi + 0x421c]
mov eax, dword [esi]
push 0x20
mov ecx, dword [ecx]
push dword [ecx + 8]
mov ecx, esi
push 0x483
call dword [eax + 0xa0]
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 0x40ec54
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 0x421c]
mov dword [ecx + 0x58], eax
mov eax, dword [esi + 0x421c]
cmp dword [eax + 0x58], edi
jne 0x40ebba
push edi
mov ecx, esi
call fcn.0040f899
xor eax, eax
jmp 0x40ebbd
Function at 0x40f2b3
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x421c]
cmp dword [eax + 8], edi
lea edx, [eax + 0x184]
jne 0x40f2d9
lea edx, [eax + 0x80]
mov ecx, dword [eax + 0x1c]
cmp ecx, edi
je 0x40f2e4
mov eax, ecx
jmp 0x40f2e7
mov eax, dword [eax + 0x20]
push eax
lea eax, [ebp - 0x400]
push edx
push eax
call fcn.0040bfcf
add esp, 0xc
cmp eax, 0x104
jl 0x40f310
mov eax, dword [esi]
push edi
push 0x421550
lea ecx, [ebp - 0x400]
push ecx
jmp 0x40f38a
mov eax, dword [esi + 0x421c]
add eax, 0x10
mov ecx, dword [eax + 0xc]
cmp ecx, edi
je 0x40f324
mov eax, ecx
jmp 0x40f327
mov eax, dword [eax + 0x10]
push eax
lea eax, [ebp - 0x400]
push eax
call fcn.0040bf97
pop ecx
test eax, eax
pop ecx
jne 0x40f344
mov eax, dword [esi]
push edi
push 0x42156c
jmp 0x40f307
push edi
push 0x80
push 2
push edi
push 3
lea eax, [ebp - 0x400]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [esi + 0x421c]
mov dword [ecx + 0x54], eax
mov eax, dword [esi + 0x421c]
cmp dword [eax + 0x54], 0xffffffff
jne 0x40f396
cmp dword [eax + 8], edi
jne 0x40f392
mov eax, dword [esi]
lea ecx, [ebp - 0x400]
push edi
push ecx
push 0x42155c
mov ecx, esi
call dword [eax + 0x90]
xor eax, eax
jmp 0x40f3ae
test byte [eax + 0x25], 1
je 0x40f3ab
lea eax, [ebp - 0x400]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x40f3b2
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 + 0x421c]
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 + 0x418c]
mov eax, dword [eax + 0x318]
sub eax, edi
cdq
cmp dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
jl 0x40f3fb
jg 0x40f3f5
cmp ebx, eax
jbe 0x40f3fb
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 0x40f514
mov eax, dword [esi + 0x421c]
cmp dword [eax + 0x54], 0xffffffff
jne 0x40f434
mov ecx, esi
call fcn.0040f2b3
test eax, eax
je 0x40f514
mov ecx, dword [esi + 0x421c]
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 0x40f468
jl 0x40f45a
cmp edx, dword [ecx + 0x28]
jae 0x40f468
mov eax, dword [esi + 0x418c]
cmp dword [eax + 0x318], edi
jne 0x40f494
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 0x40f4fe
cmp edi, dword [ebp - 4]
jne 0x40f4fe
mov ecx, dword [esi + 0x421c]
mov eax, edi
cdq
add dword [ecx + 0x48], eax
adc dword [ecx + 0x4c], edx
mov eax, dword [esi + 0x421c]
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 + 0x421c]
mov edx, eax
mov ecx, dword [ecx]
sub edx, dword [ecx + 0x20]
cmp edx, 0x3e8
jb 0x40f4d4
mov dword [ecx + 0x20], eax
mov eax, dword [esi]
push 0
push 0
push 0x470
mov ecx, esi
call dword [eax + 0xa0]
mov esi, dword [esi + 0x421c]
mov eax, dword [esi + 0x44]
cmp eax, dword [esi + 0x2c]
jl 0x40f4f9
jg 0x40f4ec
mov eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x28]
jb 0x40f4f9
mov eax, dword [esi + 8]
neg eax
sbb eax, eax
add eax, 8
mov dword [esi + 0x7c], eax
push 1
pop eax
jmp 0x40f516
mov eax, dword [esi]
push 0
push 0x420860
push 0x42157c
mov ecx, esi
call dword [eax + 0x90]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415958
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x41597b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4159d7
push 0x140
push 0
push esi
call fcn.00416fd0
add esp, 0xc
push 0
push 0x2000000
push 3
push 0
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4159dc
lea eax, [ebp - 0x34]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
push edi
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0xc], 0
je 0x4159dc
lea eax, [ebp - 0x34]
push 0x1c
push eax
push esi
call fcn.00417030
add esp, 0xc
push 1
pop eax
jmp 0x4159f1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
mov eax, ecx
pop edi
pop esi
leave
ret

Function at 0x4165fd
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
push dword [esp + 0xc]
call fcn.00417690
pop ecx
inc eax
push eax
mov eax, dword [esi + 4]
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [esi + eax*4 + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
pop esi
inc eax
ret 8

Function at 0x41665e
Capabilities:
Set registry value

Disassembly:
push dword [esp + 0xc]
mov eax, dword [ecx + 4]
push dword [esp + 0xc]
push 3
push 0
push dword [esp + 0x14]
push dword [ecx + eax*4 + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
ret 0xc