joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40654b
Capabilities:
Read and send data from client to server
Read file via mapping
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x406652
cmp dword [esi + 0x34], 0xffffffff
je 0x406652
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x20]
and dword [ebp + 8], 0
mov ebx, dword [esi + 0x2c]
mov edx, dword [esi + 0x24]
sub ecx, eax
sbb edx, ebx
mov edi, 0x800000
js 0x4065c4
jg 0x406589
test ecx, ecx
jbe 0x4065c4
test edx, edx
jl 0x40659c
jg 0x406597
cmp ecx, 0x10000
jbe 0x40659c
mov ecx, 0x10000
push 0
push ecx
push 0
push edi
push ebx
push eax
call fcn.00417020
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 0x406652
mov eax, dword [ebp + 8]
cdq
add dword [esi + 0x28], eax
adc dword [esi + 0x2c], edx
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x2c]
jne 0x4065ef
cmp ecx, dword [esi + 0x24]
jne 0x4065ef
xor eax, eax
cmp dword [esi + 0x18], 0x62
setne al
add eax, 7
mov dword [esi + 0x48], eax
jmp 0x406641
push 0
push edi
push ecx
push eax
call fcn.00417020
or eax, edx
jne 0x406641
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x2c]
sub ecx, eax
mov eax, dword [esi + 0x24]
sbb eax, edx
js 0x406624
jg 0x40661e
cmp ecx, edi
jbe 0x406624
and dword [ebp - 4], 0
jmp 0x406629
mov edi, ecx
mov dword [ebp - 4], eax
push edi
mov eax, edx
push dword [esi + 0x28]
sar eax, 0x1f
push edx
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 0x406654
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x406fff
Capabilities:
Set socket configuration

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
mov esi, ecx
je 0x40705a
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 0x40705a
mov eax, dword [esp + 0x10]
cmp dword [edi + 0x44], eax
jne 0x407038
mov ecx, edi
call fcn.004120f5
cmp eax, 1
jne 0x40709a
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 0x407023
push 0x8304
call fcn.004166da
xor ebx, ebx
pop ecx
cmp eax, ebx
je 0x4070a6
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.0040f2ae
mov edi, eax
jmp 0x4070a8
push 1
push edi
mov ecx, esi
call fcn.00408454
jmp 0x407114
xor edi, edi
cmp edi, ebx
jne 0x4070b0
xor eax, eax
jmp 0x407117
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.00408f14
cmp dword [esi + 0x6c], ebx
jne 0x407114
mov eax, dword [esi + 0x98]
cmp dword [eax + 0x360], ebx
jne 0x407114
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.00407e12
push 1
pop eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x408083
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.0040bb54
xor edi, edi
add esp, 0xc
cmp eax, edi
je 0x40828c
push eax
call fcn.00416da7
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
push 7
push edi
call fcn.0040bb54
add esp, 0x10
cmp eax, edi
je 0x40828c
push eax
call fcn.00416da7
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.0040bb54
add esp, 0x10
cmp eax, edi
je 0x40821f
jmp 0x4080fc
mov esi, dword [ebp - 8]
push 0x32
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.0040a978
lea eax, [ebp - 4]
push eax
push 7
push edi
call fcn.0040bb54
add esp, 0x18
cmp eax, edi
je 0x40821f
push 0x32
push eax
lea eax, [ebp - 0x52]
push eax
call fcn.0040a978
lea eax, [ebp - 4]
push eax
push 7
push edi
call fcn.0040bb54
add esp, 0x18
cmp eax, edi
je 0x40821f
push eax
call fcn.00416d1c
mov esi, eax
lea eax, [ebp - 4]
push eax
push 7
push edi
call fcn.0040bb54
add esp, 0x10
cmp eax, edi
je 0x40821c
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.0040bb54
add esp, 0xc
cmp eax, edi
je 0x40821c
push eax
call fcn.00416da7
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 4]
push eax
push 7
push edi
call fcn.0040bb54
add esp, 0x10
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x40821c
push 0x41fc1c
push eax
call fcn.00416aa0
pop ecx
test eax, eax
pop ecx
jne 0x4081bc
mov dword [ebp - 0xc], 0x421080
lea eax, [ebp - 4]
push eax
push 7
push edi
call fcn.0040bb54
add esp, 0xc
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x40821c
push 0x41fc1c
push eax
call fcn.00416aa0
pop ecx
test eax, eax
pop ecx
jne 0x4081ea
mov dword [ebp - 0x18], 0x421080
push dword [ebp - 0x18]
or esi, 1
lea eax, [ebp - 0x84]
mov ecx, ebx
push dword [ebp - 0xc]
push esi
push eax
call fcn.004075e7
inc dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push 7
push edi
call fcn.0040bb54
add esp, 0xc
cmp eax, edi
jne 0x4080f9
mov esi, dword [ebp - 8]
cmp dword [ebp - 0x14], edi
jne 0x408248
cmp esi, dword [ebp - 0x10]
jl 0x408248
mov eax, dword [ebx + 0x98]
mov dword [ebx + 0xac], edi
cmp dword [eax + 0x360], edi
je 0x40828c
push 1
mov ecx, ebx
call fcn.00407c78
jmp 0x40828c
sub esi, dword [ebp - 0x10]
add esi, dword [ebp - 0x14]
push esi
call fcn.00417367
pop ecx
mov ecx, dword [ebx + 0x8c]
push eax
push 0x12
push dword [ebp + 8]
call fcn.0040bf4d
mov eax, dword [ebx + 0x98]
push edi
mov esi, 0x105
push dword [eax + 0x364]
push esi
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
je 0x40828c
mov dword [ebx + 0xb0], esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x408293
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, 0x64
push edi
push eax
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x1f
jg 0x4082e2
cmp eax, 0x1b
je 0x4082cd
cmp eax, 0x1f
je 0x4082cd
mov eax, dword [esi]
push edi
push 0x41f7c8
push 0x41fc4c
jmp 0x4082da
mov eax, dword [esi]
push edi
push 0x41f7c8
push 0x41fc2c
mov ecx, esi
call dword [eax + 0x90]
pop edi
pop esi
ret
Function at 0x4084fd
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
push str.advapi32.dll
mov eax, dword [edi + 0x98]
mov dword [eax + 0x294], ebp
mov eax, dword [edi + 0x98]
mov dword [eax + 0x290], ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, ebp
jne 0x408540
push ebp
push str.advapi32
call fcn.0040b4c9
pop ecx
pop ecx
jmp 0x408714
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptAcquireContextA
push ebx
call esi
push str.CryptDestroyKey
push ebx
mov dword [0x4210a8], eax
call esi
push str.CryptGetKeyParam
push ebx
mov dword [0x42109c], eax
call esi
push str.CryptSetKeyParam
push ebx
mov dword [0x421174], eax
call esi
push str.CryptExportKey
push ebx
mov dword [0x421184], eax
call esi
push str.CryptGetUserKey
push ebx
mov dword [0x421088], eax
call esi
push str.CryptEncrypt
push ebx
mov dword [0x42108c], eax
call esi
push str.CryptGenKey
push ebx
mov dword [0x421178], eax
call esi
push str.CryptGenRandom
push ebx
mov dword [0x421084], eax
call esi
push str.CryptImportKey
push ebx
mov dword [0x421188], eax
call esi
push str.CryptDecrypt
push ebx
mov dword [0x421090], eax
call esi
push str.CryptCreateHash
push ebx
mov dword [0x421180], eax
call esi
push str.CryptHashData
push ebx
mov dword [0x42117c], eax
call esi
push str.CryptSignHashA
push ebx
mov dword [0x4210a4], eax
call esi
push str.CryptVerifySignatureA
push ebx
mov dword [0x421098], eax
call esi
push str.CryptReleaseContext
push ebx
mov dword [0x421094], eax
call esi
cmp dword [0x4210a8], ebp
mov dword [0x4210a0], eax
push ebp
jne 0x408629
push str.GetProcAddress
jmp 0x408534
mov ecx, edi
call fcn.00408720
push 3
xor esi, esi
pop ebx
mov eax, dword [edi + 0x98]
mov ecx, dword [eax + 0x290]
cmp ecx, ebp
je 0x40864d
cmp dword [eax + 0x298], ebp
je 0x40865d
cmp dword [eax + 0x294], ebp
je 0x4086c1
cmp dword [eax + 0x2a8], ebp
jne 0x4086c1
inc esi
cmp esi, ebx
jg 0x4086db
cmp ecx, ebp
je 0x40867a
push ebp
push ecx
call dword [0x4210a0]
mov eax, dword [edi + 0x98]
mov dword [eax + 0x290], ebp
mov eax, dword [edi + 0x98]
mov eax, dword [eax + 0x294]
cmp eax, ebp
je 0x40869e
push ebp
push eax
call dword [0x4210a0]
mov eax, dword [edi + 0x98]
mov dword [eax + 0x294], ebp
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, ebx
jne 0x4086b2
push 2
pop eax
jmp 0x4086b4
xor eax, eax
push eax
mov ecx, edi
call fcn.00408720
jmp 0x408635
cmp esi, ebx
jg 0x4086db
mov eax, dword [edi + 0x98]
cmp dword [eax + 0x298], ebp
jne 0x4086fe
cmp dword [eax + 0x2a8], ebp
jne 0x4086fe
mov eax, dword [edi]
push 1
push 0x41f7c8
push str.RSA__
mov ecx, edi
call dword [eax + 0x90]
cmp eax, 1
jne 0x4086fe
push ebx
mov ecx, edi
call fcn.00408720
mov edi, dword [edi + 0x98]
cmp dword [edi + 0x298], ebp
jne 0x408718
cmp dword [edi + 0x2a8], ebp
jne 0x408718
xor eax, eax
jmp 0x40871b
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40b25e
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x954
mov dl, byte [0x421080]
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 0x40b2e2
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 0x40b2e2
mov eax, dword [ebp - 4]
test eax, eax
je 0x40b2e2
and byte [eax - 1], 0
push ebx
push dword [ebp - 4]
lea eax, [ebp - 0x954]
jmp 0x40b2f2
cmp dword [ebp + 0x14], 0
je 0x40b2fb
push ebx
lea eax, [ebp - 0x554]
push dword [ebp + 0x14]
push eax
call fcn.0040a978
add esp, 0xc
push 0x4c
lea eax, [ebp - 0x50]
pop edi
push edi
push 0
push eax
call fcn.00416700
mov eax, dword [esi]
add esp, 0xc
test eax, eax
mov dword [ebp - 0x50], edi
je 0x40b31e
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x4c], eax
jmp 0x40b322
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 0x40b383
cmp eax, 1
je 0x40b383
cmp eax, 3
jne 0x40b37f
mov eax, 0x100000
jmp 0x40b394
xor eax, eax
jmp 0x40b394
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 0x40b3bc
cmp eax, 1
je 0x40b3bc
lea eax, [ebp - 0x50]
push eax
call sub.comdlg32.dll_GetSaveFileNameA
jmp 0x40b3c5
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 0x40b41b
cmp dword [esi + 8], 1
jne 0x40b3f3
lea eax, [ebp - 0x954]
push edi
push eax
push dword [ebp + 8]
call fcn.00416760
jmp 0x40b3ff
push ebx
push dword [ebp - 0x34]
push dword [ebp + 8]
call fcn.0040a978
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x40b41b
movzx eax, word [ebp - 0x18]
push eax
push dword [ebp - 0x34]
push dword [ebp + 0x14]
call fcn.0040a978
add esp, 0xc
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40bba5
Capabilities:
Resolve dns
Set socket configuration

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

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
and dword [esi + 8], 0
call fcn.0040b783
push dword [ebp + 0xc]
or dword [esi + 4], 0xffffffff
or dword [esi], 0xffffffff
and dword [esi + 0x10], 0
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, esi
mov dword [esi + 0x84], eax
call fcn.0040bcbd
test eax, eax
je 0x40bcaf
push 0x32
lea eax, [ebp - 4]
pop ebx
lea edi, [esi + 0x4e]
push eax
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x40bc62
push eax
push str.gethostname__
call fcn.0040b522
pop ecx
pop ecx
jmp 0x40bcaf
push edi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x40bc7c
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 0x80], eax
jmp 0x40bc83
and dword [esi + 0x80], 0
lea eax, [ebp - 4]
lea edi, [esi + 0x1c]
push eax
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp eax, 1
je 0x40bca8
push ebx
push 0x4201b4
push edi
call fcn.0040a978
add esp, 0xc
mov dword [esi + 8], 1
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40c34b
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x10
lea eax, [ebp - 0x10]
push 0
mov esi, ecx
push eax
call fcn.00416700
mov ax, word [ebp + 0xc]
add esp, 0xc
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
push eax
mov ebx, dword [ebp + 8]
push 0
push dword [ebp + 0x14]
mov edi, dword [sym.imp.WSOCK32.dll_sendto]
mov word [ebp - 0x10], 2
mov dword [ebp - 0xc], ebx
push dword [ebp + 0x10]
push dword [esi]
call edi
cmp eax, 0xffffffff
jne 0x40c40f
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
sub eax, 0x2742
je 0x40c3d4
sub eax, 0xf
jne 0x40c40b
xor esi, esi
cmp dword [0x4211b0], esi
jne 0x40c40b
push esi
push ebx
mov dword [0x4211b0], 1
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
push 0x4202d0
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40c40b
mov ecx, esi
call fcn.0040bf3a
cmp eax, 1
jne 0x40c40b
mov eax, dword [esi + 0x10]
test eax, eax
je 0x40c3f4
push eax
mov ecx, esi
call fcn.0040bff8
cmp eax, 1
jne 0x40c40b
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 0x40c40f
xor eax, eax
jmp 0x40c412
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x40c454
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
push 1
lea eax, [ebp - 8]
pop edi
mov dword [ebp - 0x10], ecx
push eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 8], 0x10
push dword [ecx + 4]
mov dword [ebp - 0xc], edi
call dword [sym.imp.WSOCK32.dll_accept]
mov esi, dword [ebp + 0xc]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
je 0x40c50e
push ebx
mov ebx, dword [sym.imp.WSOCK32.dll_setsockopt]
lea ecx, [ebp - 0xc]
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 dword [ebp - 4], 0x40000
lea eax, [ebp - 4]
push 4
push eax
push 0x1001
push 0xffff
push dword [esi + 8]
call ebx
test eax, eax
je 0x40c4e4
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
test eax, eax
mov dword [ebp - 4], eax
jg 0x40c4bc
mov ecx, dword [ebp - 0x10]
push esi
push dword [ebp + 8]
call fcn.0040c61e
test eax, eax
pop ebx
je 0x40c505
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], eax
mov eax, edi
jmp 0x40c510
push dword [esi + 8]
call dword [sym.imp.WSOCK32.dll_closesocket]
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x40c516
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 0x40c616
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 0x40c616
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 dword [ebp + 0xc], 0x40000
lea eax, [ebp + 0xc]
push 4
push eax
push 0x1002
push ebx
push dword [esi + 8]
call edi
test eax, eax
je 0x40c5a1
mov eax, dword [ebp + 0xc]
cdq
sub eax, edx
sar eax, 1
test eax, eax
mov dword [ebp + 0xc], eax
jg 0x40c57d
mov ecx, dword [ebp - 8]
push esi
push dword [ebp + 8]
call fcn.0040c61e
test eax, eax
pop ebx
je 0x40c60d
push 0x10
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.00416700
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 0x40c5fc
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40c60d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 1
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], eax
pop eax
jmp 0x40c618
push dword [esi + 8]
call dword [sym.imp.WSOCK32.dll_closesocket]
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x40e171
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 0x40e195
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.0040c086
mov eax, dword [esi + 0x421c]
mov ecx, dword [esi + 0x38]
push dword [eax]
push dword [esi + 0x20]
call fcn.0040c652
lea eax, [ebp - 0x508]
push edi
push eax
call fcn.00416dc0
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.00416dc0
pop ecx
cmp ebx, eax
pop ebx
jl 0x40e338
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 0x40e27d
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 0x40e293
push dword [eax + 4]
lea ecx, [eax + 0x10]
call fcn.0040e344
push 0x10000
call fcn.004166da
pop ecx
mov ecx, dword [esi + 0x421c]
mov dword [ecx + 0x50], eax
mov eax, dword [esi + 0x421c]
cmp dword [eax + 8], edi
jne 0x40e30d
mov ecx, dword [eax + 0x28]
or ecx, dword [eax + 0x2c]
jne 0x40e30d
mov ecx, esi
call fcn.0040e9ff
cmp eax, 1
jne 0x40e2dd
push eax
mov ecx, esi
call fcn.0040e4c2
mov eax, dword [esi + 0x421c]
mov dword [eax + 0x7c], 8
jmp 0x40e2ea
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 0x40e3a0
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 0x40e306
push edi
mov ecx, esi
call fcn.0040efd8
xor eax, eax
jmp 0x40e309
Function at 0x40e9ff
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 0x40ea25
lea edx, [eax + 0x80]
mov ecx, dword [eax + 0x1c]
cmp ecx, edi
je 0x40ea30
mov eax, ecx
jmp 0x40ea33
mov eax, dword [eax + 0x20]
push eax
lea eax, [ebp - 0x400]
push edx
push eax
call fcn.0040b6e8
add esp, 0xc
cmp eax, 0x104
jl 0x40ea5c
mov eax, dword [esi]
push edi
push 0x4204ec
lea ecx, [ebp - 0x400]
push ecx
jmp 0x40ead6
mov eax, dword [esi + 0x421c]
add eax, 0x10
mov ecx, dword [eax + 0xc]
cmp ecx, edi
je 0x40ea70
mov eax, ecx
jmp 0x40ea73
mov eax, dword [eax + 0x10]
push eax
lea eax, [ebp - 0x400]
push eax
call fcn.0040b6b0
pop ecx
test eax, eax
pop ecx
jne 0x40ea90
mov eax, dword [esi]
push edi
push 0x420508
jmp 0x40ea53
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 0x40eae2
cmp dword [eax + 8], edi
jne 0x40eade
mov eax, dword [esi]
lea ecx, [ebp - 0x400]
push edi
push ecx
push 0x4204f8
mov ecx, esi
call dword [eax + 0x90]
xor eax, eax
jmp 0x40eafa
test byte [eax + 0x25], 1
je 0x40eaf7
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