joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5d9404
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x5d9457
sub eax, 1
je 0x5d9450
sub eax, 1
je 0x5d9449
sub eax, 1
je 0x5d9442
sub eax, 1
je 0x5d943b
push str._installer
call fcn.005b9b84
push eax
push dword [ebp + 8]
call fcn.005a615f
add esp, 0xc
jmp 0x5d9464
push str.Mozilla_5.0__Macintosh__U__Intel_Mac_OS_X_10_6_6__en_US__AppleWebKit_534.13__KHTML__like_Gecko__Chrome_9.0.597.102_Safari_534.13
jmp 0x5d945c
push str.Mozilla_5.0__Windows__U__Windows_NT_5.1__en_US__AppleWebKit_534.13__KHTML__like_Gecko__Chrome_9.0.597.107_Safari_534.13
jmp 0x5d945c
push str.Opera_9.80__X11__Linux_i686__U__ru__Presto_2.7.62_Version_11.01
jmp 0x5d945c
push str.Mozilla_5.0__X11__U__Linux_i686__ru__rv:1.9.2.14__Gecko_20110221_Ubuntu_10.10__maverick__Firefox_3.6.14
jmp 0x5d945c
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1_
mov ecx, dword [ebp + 8]
call fcn.00449380
mov eax, dword [ebp + 8]
pop ebp
ret

Function at 0x5d99c6
Capabilities:
Get common file path

Disassembly:
push 0x240
mov eax, 0x65b462
call fcn.00628f7d
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
xor ebx, ebx
mov dword [ebp - 0x24c], esi
push ebx
push 0x1c
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.005bb0b4
push str.GoogleChromeUser_DataDefaultSecure_Preferences
push eax
lea eax, [ebp - 0x230]
mov dword [ebp - 4], ebx
push eax
call fcn.005a0e4e
add esp, 0x14
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 2
call fcn.00449330
lea eax, [ebp - 0x230]
push eax
call fcn.005b78f9
mov dword [esi], ebx
mov dword [esi + 0x10], ebx
pop ecx
test al, al
je 0x5d9a54
lea eax, [ebp - 0x230]
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
call fcn.00449550
jmp 0x5d9a5d
mov dword [esi + 0x14], 0xf
mov byte [esi], bl
lea ecx, [ebp - 0x230]
call fcn.00449330
mov eax, esi
call fcn.00628f2c
ret

Function at 0x5da598
Capabilities:
Get common file path

Disassembly:
push 0x240
mov eax, 0x65b462
call fcn.00628f7d
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
xor ebx, ebx
mov dword [ebp - 0x24c], esi
push ebx
push 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.005bb0b4
push str.MozillaFirefox_
push eax
lea eax, [ebp - 0x230]
mov dword [ebp - 4], ebx
push eax
call fcn.005a0e4e
add esp, 0x14
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 2
call fcn.00449330
lea eax, [ebp - 0x230]
push eax
call fcn.005b78f9
mov dword [esi], ebx
mov dword [esi + 0x10], ebx
pop ecx
test al, al
je 0x5da626
lea eax, [ebp - 0x230]
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
call fcn.00449550
jmp 0x5da62f
mov dword [esi + 0x14], 0xf
mov byte [esi], bl
lea ecx, [ebp - 0x230]
call fcn.00449330
mov eax, esi
call fcn.00628f2c
ret
Function at 0x5dab1e
Capabilities:
Create process on windows

Disassembly:
push 8
mov eax, 0x654069
call fcn.00628f4a
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov esi, dword [eax]
cmp esi, eax
je 0x5dab8e
mov edi, dword [esi + 0x58]
and dword [ebp - 0x14], 0
and dword [ebp - 0x10], 0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
lea eax, [esi + 8]
push ecx
push eax
call fcn.005ba392
pop ecx
pop ecx
xor edx, edx
xor ecx, ecx
push 5
push edx
cmp edi, 3
mov eax, str.__restore_last_session
cmovne eax, ecx
push eax
push dword [ebp - 0x14]
push edx
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0
je 0x5dab88
push dword [ebp - 0x14]
call fcn.0062fb07
and dword [ebp - 0x10], 0
pop ecx
mov esi, dword [esi]
cmp esi, dword [ebx]
jne 0x5dab35
call fcn.00628f18
ret

Function at 0x5db1ff
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
mov esi, dword [eax]
cmp esi, eax
je 0x5db222
push 0
push 0
push 0x10
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [esi]
cmp esi, dword [edi + 8]
jne 0x5db20c
cmp dword [edi + 0xc], 0
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
je 0x5db23b
push 0x1388
push dword [edi]
call esi
test eax, eax
je 0x5db24e
push 1
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x7d0
push dword [edi]
call esi
pop edi
pop esi
ret
Function at 0x5dbdfe
Capabilities:
Get file size

Disassembly:
push 0xf4
mov eax, 0x65b99c
call fcn.00628f7d
mov esi, dword [ebp + 8]
xor ebx, ebx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
lea eax, [ebp - 0x60]
mov dword [ebp - 4], ebx
push eax
push edi
call fcn.005ba392
pop ecx
pop ecx
push ebx
push 0x80
push 3
push ebx
push 3
push accept
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x5dbeb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005ba47c
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x58]
push str.CreateFile_error__
push eax
call fcn.005a0e81
mov edi, eax
mov ebx, 0x70d09c
add esp, 0x14
cmp edi, ebx
je 0x5dbe90
mov ecx, ebx
call fcn.00449330
push edi
mov ecx, ebx
call fcn.00449550
lea ecx, [ebp - 0x58]
call fcn.00449330
lea ecx, [ebp - 0x28]
call fcn.00449330
xor eax, eax
mov dword [esi + 0x14], 0xf
cmp dword [ebp - 0x60], eax
mov dword [esi], eax
mov dword [esi + 0x10], eax
mov byte [esi], al
jmp 0x5dbfe9
push 1
lea ecx, [ebp - 0x100]
call fcn.005a1635
push str._information:_n
push edi
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 2
push str.File
push eax
call fcn.005a0c96
pop ecx
pop ecx
push eax
call fcn.005a0c75
pop ecx
pop ecx
push eax
call fcn.005a0c96
pop ecx
pop ecx
lea eax, [ebp - 0x68]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x5dbf51
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005ba47c
pop ecx
pop ecx
push 0x6d6d28
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x100]
push str.Error_getting_file_size__
push eax
call fcn.005a0c96
pop ecx
pop ecx
push eax
call fcn.005a0c75
pop ecx
pop ecx
push eax
call fcn.005a0c96
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00449330
jmp 0x5dbf7e
push 0x6d6d28
push dword [ebp - 0x64]
lea eax, [ebp - 0x100]
push dword [ebp - 0x68]
push str.File_size:
push eax
call fcn.005a0c96
pop ecx
pop ecx
mov ecx, eax
call fcn.005a2141
push eax
call fcn.005a0c96
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.005dbffc
pop ecx
pop ecx
cmp dword [ebp - 0x30], 0
mov byte [ebp - 4], 4
jne 0x5dbfa7
mov edi, 0x70d09c
mov eax, str.Error_while_calculating_sha1__
jmp 0x5dbfaf
lea edi, [ebp - 0x40]
mov eax, str.Files_sha1:
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.005a0c96
push edi
push eax
call fcn.005a0c75
add esp, 0x10
lea ecx, [ebp - 0xfc]
push esi
call fcn.005a54cf
lea ecx, [ebp - 0x40]
call fcn.00449330
lea ecx, [ebp - 0x100]
call fcn.005a24bf
cmp dword [ebp - 0x60], 0
je 0x5dbff4
push dword [ebp - 0x60]
call fcn.0062fb07
pop ecx
mov eax, esi
call fcn.00628f2c
ret
Function at 0x5dd715
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
pop ebp
ret

Function at 0x5dd74c
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x70d514]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x64]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0x40
push ebx
push eax
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xac], ebx
call fcn.0062c160
add esp, 0xc
cmp dword [edi + 0x14], 0x10
jb 0x5dd793
mov edi, dword [edi]
push edi
lea eax, [ebp - 0x64]
push 0x40
push eax
call fcn.0063a6a7
add esp, 0xc
lea eax, [ebp - 0xb0]
push 0xf0000000
push 0x18
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x5dd7cd
push 0x680823
mov ecx, esi
call fcn.00449380
jmp 0x5dd8dc
lea eax, [ebp - 0xac]
push eax
push ebx
push ebx
push 0x800c
push dword [ebp - 0xb0]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push ebx
test eax, eax
jne 0x5dd7fa
push dword [ebp - 0xb0]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x5dd7bc
lea eax, [ebp - 0x64]
push eax
call fcn.0062fbc0
pop ecx
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x5dd828
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
jmp 0x5dd7ec
push 8
pop ecx
xor eax, eax
mov dword [ebp - 0xb8], 0x20
push ebx
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x24]
push eax
push 2
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 0xac]
test eax, eax
je 0x5dd81f
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 0xb0]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x41
lea eax, [ebp - 0xa8]
push ebx
push eax
call fcn.0062c160
add esp, 0xc
mov edx, ebx
push 0xf
pop edi
movzx ecx, byte [ebp + edx - 0x24]
mov eax, ecx
and ecx, edi
shr eax, 4
mov al, byte [eax + str.0123456789abcdef]
mov byte [ebp + edx*2 - 0xa8], al
mov al, byte [ecx + str.0123456789abcdef]
mov byte [ebp + edx*2 - 0xa7], al
inc edx
cmp edx, 0x20
jl 0x5dd88a
lea eax, [ebp - 0xa8]
mov byte [ebp - 0xb4], bl
push eax
push dword [ebp - 0xb4]
mov dword [esi], ebx
mov ecx, esi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], edi
push 0x41
mov byte [esi], bl
call fcn.004495d0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00628f0a
leave
ret
Function at 0x5dead7
Capabilities:
Create process on windows

Disassembly:
mov dl, byte [ecx + 0x39]
push esi
test dl, 4
je 0x5deb02
mov al, dl
shr al, 3
not al
shl al, 3
xor al, dl
push 1
and al, 8
push 0
push dword [ecx + 4]
xor al, dl
mov byte [ecx + 0x39], al
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x5deb23
lea esi, [ecx + 0x58]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x5deb23
push 3
xor eax, eax
push eax
push eax
push esi
push 0x6695d4
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
pop esi
ret 0xc

Function at 0x5dec27
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
mov esi, ecx
call fcn.005d02a0
test byte [esi + 0x39], 1
je 0x5ded2d
push ebx
push edi
push dword [esi + 4]
mov bl, 1
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [esi + 4]
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [esi + 4]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_SetCapture]
push 1
mov eax, 0x202
push eax
push eax
push dword [esi + 4]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x5dece1
mov eax, dword [ebp - 8]
movzx eax, ax
mov ecx, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
push dword [esi + 4]
push eax
push 0x111
push dword [ebp - 4]
call edi
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
mov eax, 0x202
xor bl, 1
push eax
push eax
push dword [esi + 4]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
mov eax, dword [ebp - 8]
je 0x5dec92
test bl, bl
jne 0x5dece1
push dword [esi + 4]
mov eax, dword [ebp - 0xc]
movzx eax, ax
push eax
push 0x111
push dword [ebp - 4]
call edi
call dword [sym.imp.USER32.dll_ReleaseCapture]
xor ebx, ebx
push ebx
push ebx
push 0x202
push dword [esi + 4]
call edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
movzx ecx, word [ebp - 0x10]
movzx eax, word [ebp - 0x14]
shl ecx, 0x10
or ecx, eax
push ecx
push ebx
push 0x200
push dword [esi + 4]
call edi
pop edi
pop ebx
xor eax, eax
pop esi
leave
ret 0xc
Function at 0x5f10f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x6f9], 0
je 0x5f1184
cmp dword [edi + 0x1a8], 0
je 0x5f1141
push esi
push 1
push edi
call fcn.005e3050
push dword [edi + 0x14c]
mov eax, dword [edi + 0x1a8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.005e3050
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov ecx, edx
sub ecx, 0
je 0x5f1155
sub ecx, 1
je 0x5f1155
sub ecx, 1
jne 0x5f1184
push dword [edi + 0x148]
lea eax, [edx*2 + 0x66c2fc]
push 1
add eax, edx
push 2
push eax
call fcn.006338f3
push dword [edi + 0x148]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.006338f3
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

Function at 0x5f14d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x70d514]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov eax, dword [edx + 0xc]
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x10]
mov ebx, dword [eax + ecx*4 + 0x150]
push ecx
push eax
push edx
mov dword [ebp - 0x108], edx
call fcn.005f19a0
add esp, 0xc
test eax, eax
je 0x5f152b
pop edi
mov dword [esi], 0x1b
or eax, 0xffffffff
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00628f0a
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp + 0x14]
push edi
push ebx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
mov dword [esi], 0
cmp edi, 0xffffffff
jne 0x5f15a8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x5f1570
xor edi, edi
mov dword [esi], 0x51
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00628f0a
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x104]
push eax
push ebx
call fcn.00603670
push eax
push str.Send_failure:__s
push dword [ebp - 0x108]
call fcn.005f1190
mov eax, dword [ebp - 0x108]
add esp, 0x18
mov dword [eax + 0x948], ebx
mov dword [esi], 0x37
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00628f0a
mov esp, ebp
pop ebp
ret
Function at 0x5f19a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, edx
push ebx
push esi
shl eax, 4
lea esi, [ecx + 0x178]
add esi, eax
mov eax, dword [ecx + 0x2a8]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x44], 3
je 0x5f1a60
cmp dword [ecx + edx*4 + 0x168], 0x5f13d0
jne 0x5f1a60
cmp dword [esi], 0
je 0x5f19e9
test edi, edi
je 0x5f1a60
mov ebx, dword [ecx + edx*4 + 0x150]
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.005ffa60
add esp, 0x14
cmp eax, 0xffffffff
je 0x5f1a60
test al, 1
je 0x5f1a60
mov ecx, dword [esi]
test ecx, ecx
jne 0x5f1a49
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x4c8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x70d4c4]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
test ecx, ecx
jne 0x5f1a38
pop edi
pop esi
lea eax, [ecx + 0x1b]
pop ebx
pop ebp
ret
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x5f1a60
add dword [esi + 8], eax
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1a4], 0
je 0x5f1c30
push eax
call fcn.005eb8a0
add esp, 4
test eax, eax
jne 0x5f1c4e
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x150]
cmp eax, 0xffffffff
je 0x5f1c2c
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x5f1c2c
mov al, 1
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x70d514]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x184]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
push 0x80
push 0
push eax
mov dword [ebp - 0x188], 0x80
call fcn.0062c160
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x184]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x5f1efd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.00603670
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x5f1f40
push edi
push esi
push dword [ebp - 0x188]
lea eax, [ebp - 0x184]
push eax
call fcn.005f1a70
add esp, 0x10
test al, al
jne 0x5f1f49
call fcn.00635bfd
mov esi, dword [eax]
call fcn.00635bfd
mov edi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.00603670
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.005f1190
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00628f0a
mov esp, ebp
pop ebp
ret
Function at 0x5f26a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x71396c]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x5f26f2
push 3
push 2
push eax
push eax
push 6
call fcn.006207f0
add esp, 0x14
test al, al
je 0x5f26e6
mov dword [0x71396c], 2
mov esp, ebp
pop ebp
ret
mov dword [0x71396c], 1
jmp 0x5f26f7
cmp eax, 2
je 0x5f2737
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x5f271e
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x5f2737
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret
Function at 0x5f35a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x70d514]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 4
cmp byte [esi + 0x705], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x5f35fd
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
push esi
call fcn.005f1250
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00628f0a
mov esp, ebp
pop ebp
ret
push dword [esi + 0x6a4]
mov dword [ebp - 0x10], 1
call fcn.005f3810
push dword [esi + 0x6a8]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.005f3810
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x5f366d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
push esi
call fcn.005f1250
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00628f0a
mov esp, ebp
pop ebp
ret

Function at 0x5f3680
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x70d514]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 4
push eax
push 1
push 6
push dword [ebp + 0xc]
mov dword [ebp - 0x108], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x5f36e2
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00603670
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.005f1250
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00628f0a
mov esp, ebp
pop ebp
ret

Function at 0x5f37f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.004a4170
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.006446c8
Function at 0x5f3a80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x5f3aa0
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0x66c77c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x66c78c
push esi
mov dword [ebp - 8], ebx
call fcn.0063bc24
add esp, 8
test eax, eax
je 0x5f3aec
test ebx, ebx
je 0x5f3adc
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x5f3b15
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5f3b15
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x5f3bd8
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5f3b31
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x70d4c4]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5f3bce
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x5f3bce
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5f3b70
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5f3b90
sub ecx, edx
sar ecx, 1
add ecx, ecx
sub ecx, esi
add ecx, ebx
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x5f3ba5
mov eax, dword [ebp - 8]
test eax, eax
je 0x5f3bc5
push 8
push 0
push ebx
call eax
jmp 0x5f3bcc
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x70d4c8]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret