joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6004d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69043b
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x746694]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x60057c
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x60057c
call fcn.005f5020
mov edi, eax
jmp 0x60069b
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x60059f
call fcn.005f5020
jmp 0x60068e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x6005bd
call fcn.005f5020
jmp 0x60068e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x6005de
mov edi, 0x8007000e
jmp 0x600690
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x6006d4
jb 0x6005fc
cmp eax, 0xffffffff
ja 0x6006d4
cmp eax, 0x400
jbe 0x600611
push eax
lea ecx, [ebp - 0x418]
call fcn.005ff4b0
jmp 0x600637
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x600637
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x60064e
mov edi, 0x8007000e
jmp 0x600690
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x60066e
call fcn.005f5020
jmp 0x60068e
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00600330
mov edi, eax
test esi, esi
je 0x60069b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x6006b4
lea ecx, [ebp - 0x418]
call fcn.005ffa30
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 - 0x14]
xor ecx, ebp
call fcn.0065d16a
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.005d54d0
int3
Function at 0x6065b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x690aa6
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x746694]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
mov eax, dword [ecx + 0x18]
mov edi, dword [eax]
cmp edi, eax
je 0x606779
nop word [eax + eax]
cmp dword [ecx + 0x50], 0
jne 0x606719
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x40]
push 0x20
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.00448c50
movups xmm0, xmmword [str._f__im_iexplore.exe]
mov dword [ebp - 0x30], 0x13
mov dword [ebp - 0x2c], 0x1f
movups xmmword [eax], xmm0
mov cx, word [0x6a0d94]
mov word [eax + 0x10], cx
mov cl, byte [0x6a0d96]
mov byte [eax + 0x12], cl
mov byte [eax + 0x13], 0
mov dword [ebp - 0x40], eax
mov eax, dword [str.taskkill]
mov ecx, dword [0x69cb74]
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 8
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov byte [ebp - 0x20], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005c6510
mov edx, dword [ebp - 0x14]
add esp, 8
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x6066c6
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x6066bc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x6067b1
push edx
push ecx
call fcn.0065d157
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x606769
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x60670d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x6067b1
push edx
push ecx
call fcn.0065d157
add esp, 8
jmp 0x606769
mov eax, dword [edi + 0x10]
mov esi, dword [eax]
cmp esi, eax
je 0x606738
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 + 0x10]
jne 0x606722
cmp dword [edi + 0x14], 0
je 0x606750
push 0x1388
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x606769
push 1
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x7d0
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x44]
mov edi, dword [edi]
mov eax, dword [ecx + 0x18]
cmp edi, eax
jne 0x6065f0
push eax
lea edi, [ecx + 0x18]
push edi
call fcn.0060b3a0
mov eax, dword [edi]
add esp, 8
mov dword [eax], eax
mov eax, dword [edi]
mov dword [eax + 4], eax
mov dword [edi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0065d16a
mov esp, ebp
pop ebp
ret
call fcn.00663c8b
int3
Function at 0x607b00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x690c5a
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x746694]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0
push 0x1c
push eax
push 0
mov dword [ebp - 0x24c], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.005be990
add esp, 8
push 0x2c
push str.GoogleChromeUser_DataDefaultPreferences
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.004485a0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x230], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x220], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov edx, dword [ebp - 0x234]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x607bf7
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x607bed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x607cae
push edx
push ecx
call fcn.0065d157
add esp, 8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x238], 0
push eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.005c0b20
add esp, 4
mov dword [esi], 0
mov dword [esi + 0x10], 0
test al, al
je 0x607c52
movups xmm0, xmmword [ebp - 0x230]
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x220]
movq qword [esi + 0x10], xmm0
jmp 0x607c92
mov edx, dword [ebp - 0x21c]
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
cmp edx, 0x10
jb 0x607c92
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x607c88
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x607cb3
push edx
push ecx
call fcn.0065d157
add esp, 8
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.0065d16a
mov esp, ebp
pop ebp
ret
call fcn.00663c8b
call fcn.00663c8b
int3
Function at 0x60d3e0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], 0
mov dword [eax + 0x14], 0
pop ebp
ret
Function at 0x610e40
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69183e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x746694]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [edi + 4], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], eax
mov dword [edi], vtable.CButtonST.0
mov dword [edi + 0x34], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
push 0x613120
push 0x6130e0
push 2
push 0x14
lea esi, [edi + 0x278]
mov byte [ebp - 4], 3
push esi
call fcn.0065dc0c
and byte [edi + 0x38], 0xfe
xorps xmm0, xmm0
movups xmmword [edi + 0x260], xmm0
push 0xf
movq qword [edi + 0x270], xmm0
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
movq qword [esi + 0x20], xmm0
mov al, byte [edi + 0x38]
and byte [edi + 0x39], 0xf1
and al, 0x1f
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
or al, 0x60
mov dword [edi + 0x28], 0
mov byte [edi + 0x38], al
call esi
push 0x12
mov dword [edi + 0x48], eax
call esi
push 0xf
mov dword [edi + 0x4c], eax
call esi
push 0x12
mov dword [edi + 0x50], eax
call esi
mov dword [edi + 0x54], eax
lea eax, [edi + 0x58]
and byte [edi + 0x38], 0xfd
push 0x208
push 0
mov dword [edi + 0x34], 0
push eax
mov dword [edi + 0x44], 0
call fcn.006607e0
and byte [edi + 0x39], 0xfe
add esp, 0xc
and byte [edi + 0x38], 0xe3
mov eax, edi
mov dword [edi + 0x30], 0
mov dword [edi + 0x2c], 0x64
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x612cd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
test eax, eax
je 0x612cf5
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
push dword [esi + 4]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_CallWindowProcW]
test byte [esi + 0x39], 1
je 0x612df1
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 - 4], eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [esi + 4]
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_SetCapture]
push 1
push 0x202
push 0x202
push dword [esi + 4]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x612d9c
mov eax, dword [ebp - 4]
movzx eax, ax
mov dword [ebp - 4], eax
push dword [esi + 4]
push eax
push 0x111
push dword [ebp - 8]
call edi
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0x202
push 0x202
push dword [esi + 4]
lea eax, [ebp - 0x2c]
xor bl, 1
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
mov eax, dword [ebp - 4]
je 0x612d50
test bl, bl
jne 0x612d9c
push dword [esi + 4]
push eax
push 0x111
push dword [ebp - 8]
call edi
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 0
push 0
push 0x202
push dword [esi + 4]
call edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
mov dword [ebp - 0xc], 0
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
movzx ecx, word [ebp - 0xc]
movzx eax, word [ebp - 0x10]
shl ecx, 0x10
or ecx, eax
push ecx
push 0
push 0x200
push dword [esi + 4]
call edi
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x612e80
Capabilities:
Create process on windows

Disassembly:
mov dl, byte [ecx + 0x39]
push esi
test dl, 4
je 0x612eaf
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]
xor eax, eax
pop esi
ret 0xc
lea esi, [ecx + 0x58]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x612ed1
push 3
push 0
push 0
push esi
push 0x6a0784
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
pop esi
ret 0xc
Function at 0x61b6c0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
push edi
lea edi, [esi + eax]
cmp esi, edi
jae 0x61b6f6
mov al, byte [esi]
push eax
call fcn.00629700
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x61b6d8
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret
Function at 0x625360
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x6f9], 0
je 0x6253f4
cmp dword [edi + 0x1a8], 0
je 0x6253b1
push esi
push 1
push edi
call fcn.006172d0
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.006172d0
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 0x6253c5
sub ecx, 1
je 0x6253c5
sub ecx, 1
jne 0x6253f4
push dword [edi + 0x148]
lea eax, [edx*2 + 0x6a426c]
push 1
add eax, edx
push 2
push eax
call fcn.0066e302
push dword [edi + 0x148]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0066e302
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x746694]
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.00625c10
add esp, 0xc
test eax, eax
je 0x62579b
pop edi
mov dword [esi], 0x1b
or eax, 0xffffffff
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0065d16a
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 0x625818
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x6257e0
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.0065d16a
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x104]
push eax
push ebx
call fcn.006378c0
push eax
push str.Send_failure:__s
push dword [ebp - 0x108]
call fcn.00625400
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.0065d16a
mov esp, ebp
pop ebp
ret
Function at 0x625c10
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 0x625cd0
cmp dword [ecx + edx*4 + 0x168], 0x625640
jne 0x625cd0
cmp dword [esi], 0
je 0x625c59
test edi, edi
je 0x625cd0
mov ebx, dword [ecx + edx*4 + 0x150]
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.00633cb0
add esp, 0x14
cmp eax, 0xffffffff
je 0x625cd0
test al, 1
je 0x625cd0
mov ecx, dword [esi]
test ecx, ecx
jne 0x625cb9
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x4c8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x74664c]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
test ecx, ecx
jne 0x625ca8
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 0x625cd0
add dword [esi + 8], eax
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

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

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

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x746694]
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.006607e0
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 0x62616d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.006378c0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x6261b0
push edi
push esi
push dword [ebp - 0x188]
lea eax, [ebp - 0x184]
push eax
call fcn.00625ce0
add esp, 0x10
test al, al
jne 0x6261b9
call fcn.0066910d
mov esi, dword [eax]
call fcn.0066910d
mov edi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.006378c0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00625400
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0065d16a
mov esp, ebp
pop ebp
ret
Function at 0x626910
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x74cacc]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x626962
push 3
push 2
push eax
push eax
push 6
call fcn.00654a40
add esp, 0x14
test al, al
je 0x626956
mov dword [0x74cacc], 2
mov esp, ebp
pop ebp
ret
mov dword [0x74cacc], 1
jmp 0x626967
cmp eax, 2
je 0x6269a7
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 0x62698e
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x6269a7
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 0x627800
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x746694]
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 0x62785d
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
push esi
call fcn.006254c0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0065d16a
mov esp, ebp
pop ebp
ret
push dword [esi + 0x6a4]
mov dword [ebp - 0x10], 1
call fcn.00627a70
push dword [esi + 0x6a8]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.00627a70
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 0x6278cd
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.006254c0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0065d16a
mov esp, ebp
pop ebp
ret

Function at 0x6278e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x746694]
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 0x627942
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.006378c0
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.006254c0
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0065d16a
mov esp, ebp
pop ebp
ret

Function at 0x627a50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.00498030
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.0067861a
Function at 0x627ce0
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 0x627d00
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0x6a46f4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x6a4704
push esi
mov dword [ebp - 8], ebx
call fcn.0066f534
add esp, 8
test eax, eax
je 0x627d4c
test ebx, ebx
je 0x627d3c
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 0x627d75
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x627d75
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 0x627e38
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x627d91
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x74664c]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x627e2e
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x627e2e
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x627dd0
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 0x627df0
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 0x627e05
mov eax, dword [ebp - 8]
test eax, eax
je 0x627e25
push 8
push 0
push ebx
call eax
jmp 0x627e2c
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x746650]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret