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

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
mov esi, ecx
je 0x4079aa
mov eax, dword [esi + 0x24]
lea ebx, [esi + 0x24]
mov ecx, ebx
call dword [eax + 4]
mov edi, eax
add eax, 0xffffffd0
neg edi
sbb edi, edi
and edi, eax
je 0x4079aa
mov eax, dword [esp + 0x10]
cmp dword [edi + 0x44], eax
jne 0x407988
mov ecx, edi
call fcn.00413992
cmp eax, 1
jne 0x4079ea
mov eax, dword [ebx]
mov ecx, edi
add edi, 0x30
neg ecx
sbb ecx, ecx
and ecx, edi
push ecx
mov ecx, ebx
call dword [eax + 8]
mov ecx, eax
add eax, 0xffffffd0
neg ecx
sbb ecx, ecx
and ecx, eax
mov edi, ecx
jne 0x407973
push 0xc308
call fcn.0041802e
xor ebx, ebx
pop ecx
cmp eax, ebx
je 0x4079f6
push dword [esp + 0x14]
lea ecx, [esi + 0x60]
push dword [esp + 0x14]
push dword [esi + 0x90]
push dword [esi + 0x98]
push ecx
mov ecx, eax
push dword [esi + 0x94]
push dword [esi + 0x8c]
call fcn.0041075e
mov edi, eax
jmp 0x4079f8
push 1
push edi
mov ecx, esi
call fcn.00408ed3
jmp 0x407a64
xor edi, edi
cmp edi, ebx
jne 0x407a00
xor eax, eax
jmp 0x407a67
mov eax, dword [esi + 0x24]
lea ecx, [esi + 0x24]
lea edx, [edi + 0x30]
push edx
call dword [eax]
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0xe4]
mov eax, dword [edi]
push 0xa
mov ecx, edi
call dword [eax + 4]
push 1
push edi
mov ecx, esi
call fcn.00409de3
cmp dword [esi + 0x6c], ebx
jne 0x407a64
mov eax, dword [esi + 0x98]
cmp dword [eax + 0x4a4], ebx
jne 0x407a64
mov ax, word [esi + 0xa0]
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.004087c1
push 1
pop eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x408a32
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, 0x4088
push 7
mov ebx, ecx
push eax
call fcn.0040cb3f
xor edi, edi
add esp, 0xc
cmp eax, edi
je 0x408c41
push eax
call fcn.00418777
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
push 7
push edi
call fcn.0040cb3f
add esp, 0x10
cmp eax, edi
je 0x408c41
push eax
call fcn.00418777
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.0040cb3f
add esp, 0x10
cmp eax, edi
je 0x408bd4
jmp 0x408aab
mov esi, dword [ebp - 8]
push 0x32
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.0040b91d
lea eax, [ebp - 4]
push eax
push 7
push edi
call fcn.0040cb3f
add esp, 0x18
cmp eax, edi
je 0x408bd4
push 0x32
push eax
lea eax, [ebp - 0x52]
push eax
call fcn.0040b91d
lea eax, [ebp - 4]
push eax
push 7
push edi
call fcn.0040cb3f
add esp, 0x18
cmp eax, edi
je 0x408bd4
push eax
call fcn.004186ec
mov esi, eax
lea eax, [ebp - 4]
push eax
push 7
push edi
and esi, 0xffffff00
call fcn.0040cb3f
add esp, 0x10
cmp eax, edi
je 0x408bd1
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.0040cb3f
add esp, 0xc
cmp eax, edi
je 0x408bd1
push eax
call fcn.00418777
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 4]
push eax
push 7
push edi
call fcn.0040cb3f
add esp, 0x10
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x408bd1
push 0x422e6c
push eax
call fcn.004183f0
pop ecx
test eax, eax
pop ecx
jne 0x408b71
mov dword [ebp - 0xc], 0x426550
lea eax, [ebp - 4]
push eax
push 7
push edi
call fcn.0040cb3f
add esp, 0xc
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x408bd1
push 0x422e6c
push eax
call fcn.004183f0
pop ecx
test eax, eax
pop ecx
jne 0x408b9f
mov dword [ebp - 0x18], 0x426550
push dword [ebp - 0x18]
or esi, 1
lea eax, [ebp - 0x84]
mov ecx, ebx
push dword [ebp - 0xc]
push esi
push eax
call fcn.00407fa1
inc dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push 7
push edi
call fcn.0040cb3f
add esp, 0xc
cmp eax, edi
jne 0x408aa8
mov esi, dword [ebp - 8]
cmp dword [ebp - 0x14], edi
jne 0x408bfd
cmp esi, dword [ebp - 0x10]
jl 0x408bfd
mov eax, dword [ebx + 0x98]
mov dword [ebx + 0xac], edi
cmp dword [eax + 0x4a4], edi
je 0x408c41
push 1
mov ecx, ebx
call fcn.00408627
jmp 0x408c41
sub esi, dword [ebp - 0x10]
add esi, dword [ebp - 0x14]
push esi
call fcn.00418d37
pop ecx
mov ecx, dword [ebx + 0x8c]
push eax
push 0x12
push dword [ebp + 8]
call fcn.0040cf8d
mov eax, dword [ebx + 0x98]
push edi
mov esi, 0x105
push dword [eax + 0x4a8]
push esi
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
je 0x408c41
mov dword [ebx + 0xb0], esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40c259
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x954
mov dl, byte [0x426550]
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 0x40c2dd
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 0x40c2dd
mov eax, dword [ebp - 4]
test eax, eax
je 0x40c2dd
and byte [eax - 1], 0
push ebx
push dword [ebp - 4]
lea eax, [ebp - 0x954]
jmp 0x40c2ed
cmp dword [ebp + 0x14], 0
je 0x40c2f6
push ebx
lea eax, [ebp - 0x554]
push dword [ebp + 0x14]
push eax
call fcn.0040b91d
add esp, 0xc
push 0x4c
lea eax, [ebp - 0x50]
pop edi
push edi
push 0
push eax
call fcn.00418050
mov eax, dword [esi]
add esp, 0xc
test eax, eax
mov dword [ebp - 0x50], edi
je 0x40c319
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x4c], eax
jmp 0x40c31d
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 0x40c37e
cmp eax, 1
je 0x40c37e
cmp eax, 3
jne 0x40c37a
mov eax, 0x100000
jmp 0x40c38f
xor eax, eax
jmp 0x40c38f
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 0x40c3b7
cmp eax, 1
je 0x40c3b7
lea eax, [ebp - 0x50]
push eax
call sub.comdlg32.dll_GetSaveFileNameA
jmp 0x40c3c0
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 0x40c416
cmp dword [esi + 8], 1
jne 0x40c3ee
lea eax, [ebp - 0x954]
push edi
push eax
push dword [ebp + 8]
call fcn.004180b0
jmp 0x40c3fa
push ebx
push dword [ebp - 0x34]
push dword [ebp + 8]
call fcn.0040b91d
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x40c416
movzx eax, word [ebp - 0x18]
push eax
push dword [ebp - 0x34]
push dword [ebp + 0x14]
call fcn.0040b91d
add esp, 0xc
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40cb98
Capabilities:
Resolve dns
Set socket configuration

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

Function at 0x40cbf7
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.0040c77e
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.0040cd00
test eax, eax
je 0x40ccf2
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 0x40cc7b
push eax
push str.GetComputerName__
call fcn.0040c4c4
pop ecx
pop ecx
jmp 0x40ccf2
test edi, edi
jne 0x40ccc6
lea eax, [ebp - 0x404]
push 0x400
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x40cca8
lea eax, [esi + 0x52]
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.00418480
pop ecx
pop ecx
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x40ccc6
mov eax, dword [eax + 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 0x40cceb
push ebx
push str.no_name
push edi
call fcn.0040b91d
add esp, 0xc
mov dword [esi + 8], 1
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40d38b
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.00418050
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 0x40d438
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
sub eax, 0x2742
je 0x40d3fd
sub eax, 0xf
jne 0x40d434
cmp dword [0x426688], 0
jne 0x40d434
mov dword [0x426688], 1
jmp 0x40d434
mov ecx, esi
call fcn.0040cf7a
cmp eax, 1
jne 0x40d434
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40d41d
push eax
mov ecx, esi
call fcn.0040d038
cmp eax, 1
jne 0x40d434
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 0x40d438
xor eax, eax
jmp 0x40d43b
push 1
pop eax
pop edi
pop esi
leave
ret 0x10

Function at 0x40d47c
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 0x40d53d
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 + 0x430]
test eax, eax
mov dword [ebp - 4], eax
jle 0x40d513
lea eax, [ebp - 4]
push 4
push eax
push 0x1001
push 0xffff
push dword [esi + 8]
call ebx
test eax, eax
je 0x40d513
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
jmp 0x40d4e9
mov ecx, dword [ebp - 8]
push esi
push dword [ebp + 8]
call fcn.0040d654
test eax, eax
pop ebx
je 0x40d534
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], eax
mov eax, edi
jmp 0x40d53f
push dword [esi + 8]
call dword [sym.imp.WSOCK32.dll_closesocket]
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x40d545
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 0x40d64c
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 0x40d64c
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 + 0x430]
test eax, eax
mov dword [ebp + 0xc], eax
jle 0x40d5d7
lea eax, [ebp + 0xc]
push 4
push eax
push 0x1002
push ebx
push dword [esi + 8]
call edi
test eax, eax
je 0x40d5d7
mov eax, dword [ebp + 0xc]
cdq
sub eax, edx
sar eax, 1
jmp 0x40d5b1
mov ecx, dword [ebp - 8]
push esi
push dword [ebp + 8]
call fcn.0040d654
test eax, eax
pop ebx
je 0x40d643
push 0x10
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.00418050
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 0x40d632
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40d643
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 1
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], eax
pop eax
jmp 0x40d64e
push dword [esi + 8]
call dword [sym.imp.WSOCK32.dll_closesocket]
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x40f603
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 + 0x8224]
mov ecx, str._x:_x:
cmp dword [eax + 8], edi
jne 0x40f627
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 + 0x8224]
add esp, 0x14
mov eax, dword [eax]
push edi
push edi
mov dword [eax + 0x18], 1
mov eax, dword [esi + 0x8224]
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.0040d0c6
mov eax, dword [esi + 0x8224]
mov ecx, dword [esi + 0x38]
push dword [eax]
push dword [esi + 0x20]
call fcn.0040d688
lea eax, [ebp - 0x508]
push edi
push eax
call fcn.00418790
pop ecx
push eax
lea eax, [ebp - 0x508]
push eax
mov eax, dword [esi + 0x8224]
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.00418790
pop ecx
cmp ebx, eax
pop ebx
jl 0x40f7d1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x8224]
mov ecx, dword [ecx]
mov dword [ecx + 0x20], eax
mov eax, dword [esi + 0x8224]
mov eax, dword [eax]
mov ecx, dword [eax + 0x20]
mov dword [eax + 0x1c], ecx
mov eax, dword [esi + 0x8224]
cmp dword [eax + 0x70], edi
jne 0x40f70f
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x1c]
mov dword [eax + 0x70], ecx
mov eax, dword [esi + 0x8224]
cmp dword [eax + 8], edi
jne 0x40f725
push dword [eax + 4]
lea ecx, [eax + 0x10]
call fcn.0040f7dd
mov eax, dword [esi + 0x8190]
push dword [eax + 0x42c]
call fcn.0041802e
pop ecx
mov ecx, dword [esi + 0x8224]
mov dword [ecx + 0x50], eax
mov eax, dword [esi + 0x8224]
cmp dword [eax + 8], edi
jne 0x40f7a6
mov ecx, dword [eax + 0x28]
or ecx, dword [eax + 0x2c]
jne 0x40f7a6
mov ecx, esi
call fcn.0040fe98
test eax, eax
je 0x40f776
push 1
mov ecx, esi
call fcn.0040f95b
mov eax, dword [esi + 0x8224]
mov dword [eax + 0x7c], 8
jmp 0x40f783
mov eax, dword [esi + 0x8224]
mov dword [eax + 0x7c], 9
mov ecx, dword [esi + 0x8224]
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 0x40f839
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 0x8224]
mov dword [ecx + 0x58], eax
mov eax, dword [esi + 0x8224]
cmp dword [eax + 0x58], edi
jne 0x40f79f
push edi
mov ecx, esi
call fcn.00410488
xor eax, eax
jmp 0x40f7a2
Function at 0x40fe98
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 + 0x8224]
cmp dword [eax + 8], edi
lea edx, [eax + 0x184]
jne 0x40febe
lea edx, [eax + 0x80]
mov ecx, dword [eax + 0x1c]
cmp ecx, edi
je 0x40fec9
mov eax, ecx
jmp 0x40fecc
mov eax, dword [eax + 0x20]
push eax
lea eax, [ebp - 0x400]
push edx
push eax
call fcn.0040c6e3
add esp, 0xc
cmp eax, 0x104
jl 0x40fef5
mov eax, dword [esi]
push edi
push 0x423848
lea ecx, [ebp - 0x400]
push ecx
jmp 0x40ff6f
mov eax, dword [esi + 0x8224]
add eax, 0x10
mov ecx, dword [eax + 0xc]
cmp ecx, edi
je 0x40ff09
mov eax, ecx
jmp 0x40ff0c
mov eax, dword [eax + 0x10]
push eax
lea eax, [ebp - 0x400]
push eax
call fcn.0040c6ab
pop ecx
test eax, eax
pop ecx
jne 0x40ff29
mov eax, dword [esi]
push edi
push 0x423870
jmp 0x40feec
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 + 0x8224]
mov dword [ecx + 0x54], eax
mov eax, dword [esi + 0x8224]
cmp dword [eax + 0x54], 0xffffffff
jne 0x40ff7b
cmp dword [eax + 8], edi
jne 0x40ff77
mov eax, dword [esi]
lea ecx, [ebp - 0x400]
push edi
push ecx
push 0x42385c
mov ecx, esi
call dword [eax + 0x90]
xor eax, eax
jmp 0x40ff93
test byte [eax + 0x25], 1
je 0x40ff90
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 0x40ff97
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 + 0x8224]
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 + 0x8190]
mov eax, dword [eax + 0x42c]
sub eax, edi
cdq
cmp dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
jl 0x40ffe0
jg 0x40ffda
cmp ebx, eax
jbe 0x40ffe0
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 0x4100f9
mov eax, dword [esi + 0x8224]
cmp dword [eax + 0x54], 0xffffffff
jne 0x410019
mov ecx, esi
call fcn.0040fe98
test eax, eax
je 0x4100f9
mov ecx, dword [esi + 0x8224]
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 0x41004d
jl 0x41003f
cmp edx, dword [ecx + 0x28]
jae 0x41004d
mov eax, dword [esi + 0x8190]
cmp dword [eax + 0x42c], edi
jne 0x410079
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 0x4100e3
cmp edi, dword [ebp - 4]
jne 0x4100e3
mov ecx, dword [esi + 0x8224]
mov eax, edi
cdq
add dword [ecx + 0x48], eax
adc dword [ecx + 0x4c], edx
mov eax, dword [esi + 0x8224]
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 + 0x8224]
mov edx, eax
mov ecx, dword [ecx]
sub edx, dword [ecx + 0x20]
cmp edx, 0x3e8
jb 0x4100b9
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 + 0x8224]
mov eax, dword [esi + 0x44]
cmp eax, dword [esi + 0x2c]
jl 0x4100de
jg 0x4100d1
mov eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x28]
jb 0x4100de
mov eax, dword [esi + 8]
neg eax
sbb eax, eax
add eax, 8
mov dword [esi + 0x7c], eax
push 1
pop eax
jmp 0x4100fb
mov eax, dword [esi]
push 0
push 0x422908
push 0x423884
mov ecx, esi
call dword [eax + 0x90]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4169ec
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 0x416a0f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x416a6b
push 0x140
push 0
push esi
call fcn.00418050
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 0x416a70
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 0x416a70
lea eax, [ebp - 0x34]
push 0x1c
push eax
push esi
call fcn.004180b0
add esp, 0xc
push 1
pop eax
jmp 0x416a85
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 0x417686
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
push dword [esp + 0xc]
call fcn.00418790
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 0x4176e7
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
Function at 0x41ba9d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4263c0
cmp edx, dword [eax]
je 0x41babf
add eax, 8
inc ecx
cmp eax, 0x426450
jl 0x41bab0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4263c0]
jne 0x41bbed
mov eax, dword [0x4266e8]
cmp eax, 1
je 0x41bbc7
test eax, eax
jne 0x41baf0
cmp dword [0x4240d4], 1
je 0x41bbc7
cmp edx, 0xfc
je 0x41bbed
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41bb27
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00418480
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00418790
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41bb6a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00418790
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41ee78
push edi
call fcn.00419510
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00418480
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00418490
lea eax, [ebp - 0xa0]
push 0x41ee58
push eax
call fcn.00418490
push dword [esi + 0x4263c4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00418490
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041c19a
add esp, 0x2c
pop edi
jmp 0x41bbed
lea eax, [ebp + 8]
lea esi, [esi + 0x4263c4]
push 0
push eax
push dword [esi]
call fcn.00418790
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret