joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57ae0c
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
jmp 0x57ae38
push esi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x57ae42
dec dword [ebp + 8]
cmp dword [ebp + 0xc], esi
jle 0x57ae38
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 8], esi
jge 0x57ae15
xor al, al
pop esi
leave
ret
mov al, 1
jmp 0x57ae3f

Function at 0x57c0c9
Capabilities:
Query or enumerate registry value

Disassembly:
push 4
mov eax, 0x658d3b
call fcn.00597e4c
mov eax, dword [ebp + 8]
or dword [ebp - 0x10], 0xffffffff
xor edi, edi
inc edi
xor esi, esi
sub eax, esi
mov dword [ebp - 4], edi
je 0x57c110
dec eax
je 0x57c109
dec eax
je 0x57c102
dec eax
je 0x57c0fb
dec eax
jne 0x57c102
mov ecx, Ordinal_9
jmp 0x57c115
mov ecx, reloc.WS2_32.dll_closesocket
jmp 0x57c115
mov ecx, reloc.WS2_32.dll_bind
jmp 0x57c115
mov ecx, reloc.WS2_32.dll_accept
jmp 0x57c115
mov ecx, bind
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x57c121
lea eax, [ebp + 0xc]
lea edx, [ebp + 8]
push edx
push 0x20019
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x57c1a6
push 0x70c3cc
lea ecx, [ebp + 0x28]
call fcn.00405ec0
test eax, eax
jne 0x57c160
push esi
push edi
lea ecx, [ebp + 0xc]
call fcn.00401da0
push esi
push edi
lea ecx, [ebp + 0x28]
call fcn.00401da0
mov al, 1
jmp 0x57c1bc
cmp dword [ebp + 0x3c], 8
mov eax, dword [ebp + 0x28]
jae 0x57c16c
lea eax, [ebp + 0x28]
push esi
push esi
lea ecx, [ebp - 0x10]
push ecx
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push edi
lea ecx, [ebp + 0xc]
call fcn.00401da0
push esi
push edi
lea ecx, [ebp + 0x28]
call fcn.00401da0
mov al, bl
jmp 0x57c1bc
push esi
push edi
lea ecx, [ebp + 0xc]
call fcn.00401da0
push esi
push edi
lea ecx, [ebp + 0x28]
call fcn.00401da0
xor al, al
call fcn.00597f24
ret
Function at 0x57c4f1
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x57c500
lea eax, [ebp + 8]
push ebx
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0
test eax, eax
push 1
lea ecx, [ebp + 8]
setne bl
call fcn.00401da0
mov al, bl
pop ebx
pop ebp
ret

Function at 0x57c522
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x57c531
lea eax, [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0
lea ecx, [ebp + 8]
push 1
mov ebx, eax
call fcn.00401da0
test bl, 0x10
jne 0x57c550
xor al, al
jmp 0x57c556
cmp ebx, 0xffffffff
setne al
pop ebx
pop ebp
ret

Function at 0x57c559
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x57c568
lea eax, [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0
lea ecx, [ebp + 8]
push 1
mov ebx, eax
call fcn.00401da0
test bl, 0x10
je 0x57c587
xor al, al
jmp 0x57c58d
cmp ebx, 0xffffffff
setne al
pop ebx
pop ebp
ret

Function at 0x57c5f7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x400
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], 0x6bc840
jae 0x57c625
lea eax, [ebp + 8]
cmp dword [ebp + 0x38], 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x24]
jae 0x57c634
lea eax, [ebp + 0x24]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], 5
mov dword [ebp - 0x20], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push esi
test eax, eax
push 1
lea ecx, [ebp + 8]
setne bl
call fcn.00401da0
push esi
push 1
lea ecx, [ebp + 0x24]
call fcn.00401da0
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x57c675
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00593d40
mov eax, dword [0x76c12c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0x100c], edi
jae 0x57c6a4
lea eax, [ebp + 8]
push 0x70f01c
push eax
lea eax, [ebp - 0x1008]
push eax
call fcn.0058eac5
add esp, 0xc
xor ebx, ebx
test eax, eax
jne 0x57c75c
cmp dword [ebp - 0x1008], ebx
je 0x57c75c
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1004]
push ebx
push eax
call fcn.005902c0
add esp, 0xc
cmp edi, ebx
jbe 0x57c71d
mov edi, esi
cmp dword [ebp - 0x100c], esi
jae 0x57c6f9
mov edi, dword [ebp - 0x100c]
push dword [ebp - 0x1008]
lea eax, [ebp - 0x1004]
push edi
push 1
push eax
call fcn.0058ed44
add esp, 0x10
cmp eax, edi
jne 0x57c744
sub dword [ebp - 0x100c], eax
jne 0x57c6e9
push dword [ebp - 0x1008]
call fcn.00592314
push dword [ebp - 0x1008]
call fcn.0058eb79
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.00401da0
mov al, 1
jmp 0x57c769
push dword [ebp - 0x1008]
call fcn.00592314
push dword [ebp - 0x1008]
call fcn.0058eb79
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.00401da0
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058cf08
leave
ret
Function at 0x57cc63
Capabilities:
Set registry value

Disassembly:
push 0x10
mov eax, 0x658dfe
call fcn.00597e4c
mov eax, dword [ebp + 8]
xor ebx, ebx
sub eax, ebx
mov dword [ebp - 4], 2
je 0x57cca7
dec eax
je 0x57cca0
dec eax
je 0x57cc99
dec eax
je 0x57cc92
dec eax
jne 0x57cc99
mov esi, Ordinal_9
jmp 0x57ccac
mov esi, reloc.WS2_32.dll_closesocket
jmp 0x57ccac
mov esi, reloc.WS2_32.dll_bind
jmp 0x57ccac
mov esi, reloc.WS2_32.dll_accept
jmp 0x57ccac
mov esi, bind
sub esp, 0x1c
lea eax, [ebp + 0x28]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call fcn.00403170
sub esp, 0x1c
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov byte [ebp - 4], 3
call fcn.00403170
push dword [ebp + 8]
mov byte [ebp - 4], 2
call fcn.0057c0c9
add esp, 0x3c
cmp al, bl
je 0x57cd3d
cmp byte [ebp + 0x60], bl
jne 0x57cd1d
mov byte [ebp + 0xb], bl
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.00401da0
push ebx
push 1
lea ecx, [ebp + 0x28]
call fcn.00401da0
push ebx
push 1
lea ecx, [ebp + 0x44]
call fcn.00401da0
mov al, byte [ebp + 0xb]
call fcn.00597f24
ret
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x57cd29
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x10]
push ecx
push 0xf003f
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
jmp 0x57cd62
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x57cd49
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x57ccf0
cmp dword [ebp + 0x58], 8
mov ecx, dword [ebp + 0x44]
jae 0x57cd72
lea ecx, [ebp + 0x44]
cmp dword [ebp + 0x3c], 8
mov eax, dword [ebp + 0x28]
jae 0x57cd7e
lea eax, [ebp + 0x28]
mov edx, dword [ebp + 0x54]
add edx, edx
push edx
push ecx
push 1
push ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x57ccf0
mov byte [ebp + 0xb], 1
jmp 0x57ccf3

Function at 0x57d130
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x76c12c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x408], 0
push esi
mov esi, dword [ebp + 8]
push eax
call fcn.0057aa36
pop ecx
test eax, eax
je 0x57d17b
push 0x200
lea ecx, [ebp - 0x404]
push ecx
push eax
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x57d17b
lea eax, [ebp - 0x404]
push eax
jmp 0x57d180
push 0x70c3cc
mov ecx, esi
call fcn.00402050
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0058cf08
leave
ret
Function at 0x57d529
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x658f27
call fcn.00597e4c
and dword [ebp - 4], 0
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x57d545
lea eax, [ebp + 8]
push eax
push str.WindowsUtils::DeleteFile:__s
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
mov edi, str.WindowsUtils::DeleteFile
push edi
call fcn.00402050
push 5
call fcn.00557cb0
mov eax, dword [ebp + 8]
add esp, 0x28
cmp dword [ebp + 0x1c], 8
jae 0x57d574
lea eax, [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
test eax, eax
setne bl
jmp 0x57d5ca
test bl, bl
jne 0x57d5d0
push dword [ebp + 0x24]
push str.WindowsUtils::DeleteFile_FAIL__retry_num__d_n
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push edi
call fcn.00402050
push 5
call fcn.00557cb0
mov eax, dword [ebp + 8]
add esp, 0x28
cmp dword [ebp + 0x1c], 8
jae 0x57d5b4
lea eax, [ebp + 8]
push eax
call esi
test eax, eax
push 0x3e8
setne bl
call dword [sym.imp.KERNEL32.dll_Sleep]
dec dword [ebp + 0x24]
cmp dword [ebp + 0x24], 0
jg 0x57d584
cmp bl, 1
jne 0x57d5ee
push 1
push str.File_Deleted_OK
sub esp, 0x1c
mov ecx, esp
mov dword [ebp + 0x24], esp
push edi
call fcn.00402050
push 5
jmp 0x57d607
movzx eax, bl
push eax
push str.Could_not_delete_file
sub esp, 0x1c
mov ecx, esp
mov dword [ebp + 0x24], esp
push edi
call fcn.00402050
push 2
call fcn.00557cb0
add esp, 0x28
push 0
push 1
lea ecx, [ebp + 8]
call fcn.00401da0
mov al, bl
call fcn.00597f24
ret

Function at 0x57db7c
Capabilities:
Create process on windows

Disassembly:
push 0x58
mov eax, 0x659067
call fcn.00597e7f
sub esp, 0x1c
lea eax, [ebp + 8]
xor ebx, ebx
mov ecx, esp
mov dword [ebp - 0x24], esp
mov dword [ebp - 4], ebx
push eax
mov byte [ebp - 4], 1
call fcn.00403170
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.WindowsUtils::OpenURLOnDefaultBrowser
mov byte [ebp - 4], 2
call fcn.00402050
push 5
mov byte [ebp - 4], 1
call fcn.00557fb0
add esp, 0x3c
push 0x38
lea eax, [ebp - 0x60]
push ebx
push eax
mov dword [ebp - 0x64], ebx
call fcn.005902c0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
cmp dword [ebp + 0x1c], 8
mov ecx, dword [ebp + 8]
jae 0x57dc01
lea ecx, [ebp + 8]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
push ebx
lea esi, [ebp - 0x1c]
push esi
push ebx
push ecx
push ebx
push ebx
push eax
call dword [edx + 0xc]
cmp eax, ebx
je 0x57dc2e
mov byte [ebp - 0x11], bl
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.00401da0
mov al, byte [ebp - 0x11]
call fcn.00597f24
ret
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x64], 0x3c
mov dword [ebp - 0x60], 0x44c
mov dword [ebp - 0x48], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne byte [ebp - 0x11]
jmp 0x57dc1a
Function at 0x57e506
Capabilities:
Delete registry key

Disassembly:
push 4
mov eax, 0x6592fb
call fcn.00597e4c
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
xor edi, edi
sub eax, edi
je 0x57e547
dec eax
je 0x57e540
dec eax
je 0x57e539
dec eax
je 0x57e532
dec eax
jne 0x57e539
mov esi, Ordinal_9
jmp 0x57e54c
mov esi, reloc.WS2_32.dll_closesocket
jmp 0x57e54c
mov esi, reloc.WS2_32.dll_bind
jmp 0x57e54c
mov esi, reloc.WS2_32.dll_accept
jmp 0x57e54c
mov esi, bind
sub esp, 0x1c
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.00403170
push dword [ebp + 8]
call fcn.0057d3ec
add esp, 0x20
test al, al
je 0x57e582
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x57e578
lea eax, [ebp + 0xc]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
push 0
push 1
lea ecx, [ebp + 0xc]
call fcn.00401da0
test edi, edi
sete al
call fcn.00597f24
ret

Function at 0x57ede5
Capabilities:
Create directory
Get common file path

Disassembly:
push 0x248
mov eax, 0x65953b
call fcn.00597eb5
mov edi, dword [ebp + 8]
sub esp, 0x1c
xor ebx, ebx
mov dword [ebp - 0x254], ebx
mov ecx, esp
mov dword [ebp - 0x254], esp
push str.TEMP
call fcn.00402050
lea eax, [ebp - 0x250]
push eax
call fcn.0057ebab
add esp, 0x20
mov esi, 0x70c3cc
push esi
lea ecx, [ebp - 0x250]
mov dword [ebp - 4], ebx
call fcn.00405ec0
test eax, eax
je 0x57ee4e
lea eax, [ebp - 0x250]
push eax
mov ecx, edi
call fcn.00401720
jmp 0x57ef63
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x254], esp
push 0x6bd3b4
call fcn.00402050
lea eax, [ebp - 0x234]
push eax
call fcn.0057ebab
add esp, 0x20
push eax
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 1
call fcn.00401690
push ebx
push 1
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], bl
call fcn.00401da0
push esi
lea ecx, [ebp - 0x250]
call fcn.00405ec0
test eax, eax
jne 0x57ee3b
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
jne 0x57ef5b
xor eax, eax
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
call fcn.00402020
push str.Temp
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 2
call fcn.00401200
sub esp, 0x1c
lea eax, [ebp - 0x234]
mov ecx, esp
mov dword [ebp - 0x254], esp
push eax
call fcn.00403170
call fcn.0057c522
add esp, 0x1c
cmp al, bl
jne 0x57ef3d
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x57ef34
lea eax, [ebp - 0x234]
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea eax, [ebp - 0x234]
push eax
mov ecx, edi
call fcn.00401720
push ebx
push 1
lea ecx, [ebp - 0x234]
call fcn.00401da0
jmp 0x57ef63
push esi
mov ecx, edi
call fcn.00402050
push ebx
push 1
lea ecx, [ebp - 0x250]
call fcn.00401da0
mov eax, edi
call fcn.00597f38
ret
Function at 0x584710
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65a170
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x76c12c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
cmp byte [esi + 0xc], 0
jne 0x58481b
mov ecx, dword [esi + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00587900
push 8
mov edi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.0058d3f0
add esp, 4
cmp eax, ebx
je 0x584777
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov ebx, eax
lea eax, [esi + 0x20]
mov dword [ebx + 4], edi
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x14]
push eax
push ecx
push edi
lea ecx, [esi + 0x14]
call fcn.00584440
mov ecx, dword [esi + 0x18]
mov edx, 0x3ffffffe
sub edx, ecx
cmp edx, 1
jae 0x5847b6
push str.list_T__too_long
call fcn.005bf455
inc ecx
mov dword [esi + 0x18], ecx
mov dword [edi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
add eax, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea edx, [ebp - 0x1c]
push edx
push 0
push ebx
push 0x5844b0
push 0
push 0
call fcn.0058e2b3
mov esi, dword [ebp - 0x18]
add esp, 0x18
jmp 0x584740
push str.____________LISTEN_THREAD_CLOSED_2____________
sub esp, 0x1c
mov ecx, esp
xor eax, eax
mov dword [ebp - 0x1c], esp
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x70c3cc
mov word [ecx], ax
call fcn.00401f00
call fcn.00557e20
add esp, 0x20
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x584930
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65a1bb
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x76c12c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], edi
jmp 0x584970
push 0xc
mov dword [ebp - 4], 0
call fcn.0058d3f0
add esp, 4
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x58499c
mov ecx, dword [ebp + 0xc]
push 0
push ecx
push edi
mov ecx, eax
call fcn.00587a90
jmp 0x58499e
xor eax, eax
mov edx, dword [ebp + 0x10]
mov dword [esi + 8], eax
lea eax, [ebp - 0x20]
push eax
push 0
push esi
push 0x584910
push 0
push 0
mov dword [esi + 0x10], edi
mov dword [esi + 4], edx
call fcn.0058e2b3
mov ecx, dword [ebp + 8]
xor eax, eax
add esp, 0x18
cmp dword [esi + 0x10], ecx
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x587760
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x76c12c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x7748c4], 0
jne 0x5877aa
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x5877aa
push 0x7228b0
lea ecx, [ebp - 0x198]
push ecx
mov dword [ebp - 0x198], str.Could_not_start_WSA
call fcn.00597983
mov ecx, dword [ebp - 4]
inc dword [0x7748c4]
xor ecx, ebp
call fcn.0058cf08
mov esp, ebp
pop ebp
ret

Function at 0x5877d0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [esi], vtable.Softonic::Lib::WinNet::Socket.0
mov dword [esi + 4], 0
call fcn.00587760
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x587812
push 0x7228b0
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], str.INVALID_SOCKET
call fcn.00597983
push 4
call fcn.0058d3f0
add esp, 4
test eax, eax
je 0x587830
mov dword [eax], 1
mov dword [esi + 8], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esi + 8], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x587a90
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65aa28
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x76c12c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
call fcn.005877d0
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, 2
push ecx
mov dword [ebp - 4], 0
mov dword [esi], vtable.Softonic::Lib::WinNet::SocketServer.0
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htons]
push str.127.0.0.1
mov word [ebp - 0x1e], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0
push 1
push 2
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x587b2c
push 0x7228b0
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], str.INVALID_SOCKET
call fcn.00597983
cmp dword [ebp + 0x10], 1
jne 0x587b49
lea ecx, [ebp - 0x24]
push ecx
push 0x8004667e
push eax
mov dword [ebp - 0x24], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [esi + 4]
push 0x10
lea edx, [ebp - 0x20]
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
mov ecx, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x587b6a
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x587b17
mov eax, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_listen]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058cf08
mov esp, ebp
pop ebp
ret 0xc
Function at 0x587fa0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65ab28
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x76c12c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
mov ecx, dword [ecx + 4]
push esi
push 1
lea eax, [ebp - 0x2d]
push eax
push ecx
mov dword [ebp - 4], esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x58808b
cmp eax, esi
je 0x5880e3
mov eax, dword [ebp - 0x1c]
mov bl, byte [ebp - 0x2d]
or edx, 0xffffffff
sub edx, eax
cmp edx, 1
jbe 0x5880b1
lea esi, [eax + 1]
cmp esi, 0xfffffffe
ja 0x5880b1
mov ecx, dword [ebp - 0x18]
cmp ecx, esi
jae 0x58809a
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00404e60
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
test esi, esi
je 0x588065
cmp ecx, 0x10
mov ecx, dword [ebp - 0x2c]
jae 0x58804f
lea ecx, [ebp - 0x2c]
mov byte [ecx + eax], bl
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x588061
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
cmp byte [ebp - 0x2d], 0xa
je 0x5880bb
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 4]
push 0
push 1
lea eax, [ebp - 0x2d]
push eax
push edx
call dword [sym.imp.WS2_32.dll_recv]
xor esi, esi
cmp eax, 0xffffffff
jne 0x588001
call fcn.0059272f
cmp dword [eax], 0xb
jne 0x5880e3
mov dword [edi + 0x10], esi
jmp 0x5880c2
test esi, esi
jne 0x588044
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
cmp ecx, 0x10
jae 0x5880ac
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x588065
push str.string_too_long
call fcn.005bf455
mov dword [edi + 0x10], 0
lea eax, [ebp - 0x2c]
mov dword [edi + 0x14], 0xf
push eax
mov ecx, edi
mov byte [edi], 0
call fcn.0041b440
cmp dword [ebp - 0x18], 0x10
jb 0x58810f
mov ecx, dword [ebp - 0x2c]
push ecx
jmp 0x588107
push esi
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], esi
push 0x70d934
mov ecx, edi
mov byte [edi], 0
call fcn.00405110
cmp dword [ebp - 0x18], 0x10
jb 0x58810f
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0058d051
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058cf08
mov esp, ebp
pop ebp
ret 4

Function at 0x58cf08
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x76c12c]
jne 0x58cf12
repz ret
jmp fcn.00599e34