joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436420
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x99e83b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, ecx
lea ecx, [esi + 0x14]
mov dword [ebp - 0x10], esi
mov dword [esi], ebx
mov word [esi + 4], bx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
call fcn.00409c70
mov word [esi + 0x20], bx
mov word [esi + 0x22], bx
mov word [esi + 0x24], bx
mov word [esi + 0x26], bx
mov word [esi + 0x28], bx
mov al, 1
lea ecx, [esi + 0x30]
mov dword [ebp - 4], ebx
mov word [esi + 0x2a], bx
mov byte [esi + 0x22], al
mov byte [esi + 0x24], bl
mov byte [esi + 0x26], al
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], 0x100
call fcn.00409c70
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x3c], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x471dc2
Capabilities:
Hash data using sha1

Disassembly:
and dword [ecx + 0x30], 0
and dword [ecx + 0x34], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
push 0x9a39bc
add ecx, 0x14
call fcn.00471ae9
ret

Function at 0x49b281
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
mov eax, dword [ecx]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
test eax, eax
jle 0x49b2ae
mov edx, dword [ebp - 4]
add edx, dword [ebp + 0xc]
mov eax, dword [edi]
mov bl, byte [edx]
xor byte [eax + esi], bl
mov eax, dword [ecx]
inc esi
add edx, 4
cmp esi, eax
jl 0x49b29d
inc dword [ebp - 4]
add edi, 4
cmp dword [ebp - 4], 4
jl 0x49b291
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x49b315
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
push 4
sub ecx, eax
sub esi, eax
pop edi
mov dl, byte [ecx + eax]
xor dl, byte [eax]
mov byte [esi + eax], dl
inc eax
dec edi
jne 0x49b32a
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x49b4cf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x49b4f5
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
sub ecx, eax
sub esi, eax
mov dl, byte [ecx + eax]
xor dl, byte [eax]
mov byte [esi + eax], dl
inc eax
dec edi
jne 0x49b4e8
pop esi
pop edi
pop ebp
ret 0x10
Function at 0x49b7a4
Capabilities:
Encode data using base64

Disassembly:
mov eax, 0x99efd4
call fcn.009385c4
sub esp, 0x64
push esi
xor esi, esi
push 0x40
lea eax, [ebp - 0x6f]
push esi
mov dword [ebp - 0x10], esi
push eax
mov byte [ebp - 0x70], 0
call fcn.00937030
add esp, 0xc
xor eax, eax
lea ecx, [eax + 0x41]
mov byte [ebp + eax - 0x70], cl
inc eax
cmp eax, 0x1a
jl 0x49b7cc
xor eax, eax
lea ecx, [eax + 0x61]
mov byte [ebp + eax - 0x56], cl
inc eax
cmp eax, 0x1a
jl 0x49b7db
xor eax, eax
lea ecx, [eax + 0x30]
mov byte [ebp + eax - 0x3c], cl
inc eax
cmp eax, 0xa
jl 0x49b7ea
mov word [ebp - 0x32], 0x2f2b
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], esi
cmp dword [ebp + 0x10], esi
je 0x49b91d
push edi
mov edi, dword [ebp + 0xc]
push ebx
mov al, byte [edi]
dec dword [ebp + 0x10]
mov byte [ebp + esi + 0xc], al
mov bl, byte [ebp + 0xd]
inc esi
inc edi
cmp esi, 3
jne 0x49b883
mov al, byte [ebp + 0xc]
shr al, 2
mov byte [ebp - 0x10], al
mov al, byte [ebp + 0xc]
and al, 3
shl al, 4
mov cl, bl
shr cl, 4
add al, cl
mov cl, byte [ebp + 0xe]
mov byte [ebp - 0xf], al
mov al, bl
and al, 0xf
shl al, 2
shr cl, 6
add al, cl
mov byte [ebp - 0xe], al
mov al, byte [ebp + 0xe]
and al, 0x3f
mov byte [ebp - 0xd], al
xor esi, esi
movzx eax, byte [ebp + esi - 0x10]
movzx eax, byte [ebp + eax - 0x70]
push eax
push 1
lea ecx, [ebp - 0x2c]
call fcn.004717c4
inc esi
cmp esi, 4
jl 0x49b866
xor esi, esi
cmp dword [ebp + 0x10], 0
jne 0x49b81c
test esi, esi
je 0x49b91b
cmp esi, 3
jge 0x49b8ae
push 3
pop ecx
sub ecx, esi
push ecx
lea eax, [ebp + esi + 0xc]
push 0
push eax
call fcn.00937030
mov bl, byte [ebp + 0xd]
add esp, 0xc
mov al, byte [ebp + 0xc]
mov cl, al
shr cl, 2
mov byte [ebp - 0x10], cl
and al, 3
mov cl, bl
shl al, 4
shr cl, 4
add al, cl
mov byte [ebp - 0xf], al
mov al, byte [ebp + 0xe]
and bl, 0xf
mov cl, al
shl bl, 2
shr cl, 6
add bl, cl
mov byte [ebp - 0xe], bl
and al, 0x3f
lea ebx, [esi + 1]
xor edi, edi
mov byte [ebp - 0xd], al
test ebx, ebx
jle 0x49b903
movzx eax, byte [ebp + edi - 0x10]
movzx eax, byte [ebp + eax - 0x70]
push eax
push 1
lea ecx, [ebp - 0x2c]
call fcn.004717c4
inc edi
cmp edi, ebx
jl 0x49b8e9
push 3
pop edi
cmp esi, edi
jge 0x49b91b
sub edi, esi
push 0x3d
push 1
lea ecx, [ebp - 0x2c]
call fcn.004717c4
dec edi
jne 0x49b90c
pop ebx
pop edi
mov esi, dword [ebp + 8]
and dword [esi + 0x10], 0
lea eax, [ebp - 0x2c]
mov dword [esi + 0x14], 0xf
push eax
mov ecx, esi
mov byte [esi], 0
call fcn.0049b72a
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00459da1
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x49b956
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
lea esi, [edi + 0x64]
xor ebx, ebx
push esi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ebx
call fcn.00937387
push esi
push ebx
push eax
mov dword [ebp + 0x10], eax
call fcn.00937030
push edi
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.00936b50
mov eax, dword [ebp + 0xc]
add esp, 0x1c
mov ecx, edi
cmp edi, ebx
je 0x49b99c
mov byte [eax], bl
inc eax
dec ecx
jne 0x49b996
push 8
pop ecx
push dword [ebp + 0x14]
xor eax, eax
lea edx, [edi + 0xf]
lea edi, [ebp - 0x3b]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 4]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x3c]
push eax
and edx, 0xfffffff0
push edx
push dword [ebp + 0x10]
mov word [ebp - 0x39], 0x3441
mov word [ebp - 0x3c], 0x4642
mov dword [ebp - 0x32], 0x42343339
mov word [ebp - 0x26], 0x4134
mov dword [ebp - 0x36], 0x46453845
mov byte [ebp - 0x37], 0x45
mov word [ebp - 0x2e], 0x3745
mov dword [ebp - 0x1f], 0x323945
mov byte [ebp - 0x3a], 0x45
mov dword [ebp - 0x2b], 0x43344232
mov byte [ebp - 0x20], 0x31
mov dword [ebp - 0x24], 0x44414230
mov byte [ebp - 0x27], 0x36
mov byte [ebp - 0x2c], 0x41
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp + 0xc], ebx
call fcn.0049b63f
mov edi, eax
mov eax, dword [ebp + 0x10]
cmp esi, ebx
je 0x49ba34
mov byte [eax], bl
inc eax
dec esi
jne 0x49ba2e
push dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
push edi
push dword [ebp + 8]
call fcn.0049b7a4
push dword [ebp + 0x10]
call fcn.00937371
push edi
call fcn.00937371
mov eax, dword [ebp + 8]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4dbef1
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
or dword [ebp - 4], 0xffffffff
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 3
push edi
push dword [ebp + 8]
mov esi, ecx
call dword [esi + 0xdc]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4dbf44
push edi
lea eax, [ebp + 8]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push 0x2d1080
push ebx
call dword [esi + 0xcc]
test eax, eax
je 0x4dbf3d
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x51e6b6
Capabilities:
Hash data with md5

Disassembly:
and dword [ecx + 0x14], 0
and dword [ecx + 0x10], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x933cdb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push dword [ebp + 8]
push 0x933c6b
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x93bbd0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x9d7230]
jne 0x93bbda
repz ret
jmp fcn.00941869

Function at 0x941363
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x9d7230]
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.00939d3f
and dword [ebp - 0x14], 0
cmp dword [0x9db408], 0
mov dword [ebp - 0x18], eax
jne 0x941416
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x9414be
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x9be16c
push ebx
call edi
test eax, eax
je 0x9414be
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x9db408], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x9db40c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x9db410], eax
call edi
push eax
call esi
mov dword [0x9db418], eax
test eax, eax
je 0x941416
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x9db414], eax
mov eax, dword [0x9db414]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x94146f
cmp dword [0x9db418], ecx
je 0x94146f
push eax
call esi
push dword [0x9db418]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x94146f
test ebx, ebx
je 0x94146f
call edi
test eax, eax
je 0x941466
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x941466
test byte [ebp - 8], 1
jne 0x94146f
or dword [ebp + 0x10], 0x200000
jmp 0x9414a2
mov eax, dword [0x9db40c]
cmp eax, dword [ebp - 0x18]
je 0x9414a2
push eax
call esi
test eax, eax
je 0x9414a2
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x9414a2
mov eax, dword [0x9db410]
cmp eax, dword [ebp - 0x18]
je 0x9414a2
push eax
call esi
test eax, eax
je 0x9414a2
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x9db408]
call esi
test eax, eax
je 0x9414be
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x9414c0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0093bbd0
leave
ret
Function at 0x94e2e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push str.kernel32
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x94e2ff
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x9bfa70
push esi
call edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x9bfa68
push eax
call fcn.00995c9a
add esp, 8
test eax, eax
je 0x94e353
mov eax, dword [ebp - 4]
test eax, eax
je 0x94e340
mov ecx, dword [ebp + 8]
push 8
push 0
push ecx
call eax
pop edi
pop esi
mov ebx, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
mov ebx, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], ebx
je 0x94e37b
push str.AddDllDirectory
push esi
call edi
test eax, eax
je 0x94e37b
mov eax, dword [ebp + 8]
push 0x800
push 0
push eax
call dword [ebp - 4]
pop edi
pop esi
mov ebx, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, eax
test edi, edi
je 0x94e452
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x94e395
sub eax, edx
sar eax, 1
add eax, edi
lea ecx, [eax + eax + 2]
push ecx
call dword [0x9d833c]
mov esi, eax
add esp, 4
test esi, esi
je 0x94e448
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x94e448
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x94e3d0
sub eax, edx
sar eax, 1
mov ecx, 0x9a3498
lea edx, [esi + eax*2]
sub edx, ecx
lea esp, [esp]
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x94e3f0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x94e404
mov ecx, dword [ebp + 8]
sub eax, edx
sar eax, 1
lea edx, [esi + eax*2]
sub edx, ecx
jmp 0x94e420
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x94e420
mov eax, dword [ebp - 4]
test eax, eax
je 0x94e43f
push 8
push 0
push esi
call eax
jmp 0x94e446
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
push esi
call dword [0x9d8340]
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x94e460
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x9d7230]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x94e4b9
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x94e4a6
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x94e4a0
shr eax, 8
cmp al, 2
je 0x94e4b9
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0093bbd0
mov esp, ebp
pop ebp
ret
call fcn.00963950
test eax, eax
jne 0x94e517
push str.iphlpapi.dll
call fcn.0094e2e0
add esp, 4
mov dword [0x9db8b4], eax
test eax, eax
je 0x94e4ed
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x94e4ed
mov dword [0x9db8b8], eax
push 3
push 2
push 0
push 0
push 6
call fcn.00963bb0
add esp, 0x14
neg eax
sbb eax, eax
neg eax
push 0x9debe0
mov dword [0x9debe8], eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0093bbd0
mov esp, ebp
pop ebp
ret
Function at 0x957ef0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x957f33
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [ebp + 0x14]
xor ecx, ecx
cmp eax, 0x2733
sete cl
mov dword [edx], 0
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0x19
add eax, 0x38
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret

Function at 0x957fb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi + 0x7e0], edi
je 0x95803e
cmp dword [esi + 0x1d0], edi
je 0x958001
push 1
push esi
call fcn.00955bf0
mov eax, dword [esi + 0x16c]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [esi + 0x1d0]
push edx
push eax
push esi
call ecx
push 0
push esi
mov edi, eax
call fcn.00955bf0
add esp, 0x24
mov eax, edi
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
js 0x95803e
cmp eax, 2
jg 0x95803e
mov edx, dword [esi + 0x168]
push edx
push 1
lea eax, [eax + eax*2 + 0x9c06a8]
push 2
push eax
call fcn.00995b69
mov ecx, dword [esi + 0x168]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push ecx
push 1
push edx
push eax
call fcn.00995b69
add esp, 0x20
mov eax, edi
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [eax + 0x338]
push ebx
mov ebx, dword [eax + ecx*4 + 0x148]
push esi
lea esi, [ecx + 0x17]
shl esi, 4
add esi, eax
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [edx + 0x44], 3
je 0x9584f4
cmp dword [eax + ecx*4 + 0x160], 0x958170
jne 0x9584f4
cmp dword [esi], 0
je 0x95848d
test edi, edi
je 0x9584f4
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.00981670
add esp, 0x14
cmp eax, 0xffffffff
je 0x9584f4
test al, 1
je 0x9584f4
cmp dword [esi], 0
jne 0x9584dd
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x550]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x9d833c]
xor ecx, ecx
add esp, 4
mov dword [esi], eax
cmp eax, ecx
jne 0x9584d4
pop edi
pop esi
lea eax, [ecx + 0x1b]
pop ebx
pop ebp
ret
mov edi, dword [esi + 4]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
add ecx, dword [esi + 8]
push 0
push edi
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x9584f4
add dword [esi + 8], eax
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x958500
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x9d7230]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov edx, dword [eax + ecx*4 + 0x148]
push edi
mov edi, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x108], edx
call fcn.00958450
add esp, 4
test eax, eax
je 0x958559
mov dword [edi], 0x1b
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0093bbd0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x108]
push 0
push eax
push ebx
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov dword [edi], 0
cmp ebx, 0xffffffff
jne 0x9585db
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x108], eax
cmp eax, 0x2733
jne 0x9585a8
mov dword [edi], 0x51
pop edi
xor ebx, ebx
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0093bbd0
mov esp, ebp
pop ebp
ret
push 0x100
lea edx, [ebp - 0x104]
push edx
push eax
call fcn.00988310
push eax
push str.Send_failure:__s
push esi
call fcn.009580c0
mov eax, dword [ebp - 0x108]
mov dword [esi + 0xa98], eax
add esp, 0x18
mov dword [edi], 0x37
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0093bbd0
mov esp, ebp
pop ebp
ret

Function at 0x95a400
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push eax
call fcn.0095a3e0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call fcn.009992ec
add esp, 0x10
pop ebp
ret

Function at 0x95c080
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + eax]
mov ebx, 0x1505
cmp esi, edi
jae 0x95c0ae
movzx eax, byte [esi]
push eax
call fcn.00960560
mov edx, ebx
shl edx, 5
movsx ecx, al
add ebx, edx
inc esi
add esp, 4
xor ebx, ecx
cmp esi, edi
jb 0x95c091
pop edi
pop esi
movzx eax, bl
pop ebx
ret
Function at 0x95ded0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x9d7230]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [esi + 0x818], eax
push 4
lea ecx, [ebp - 0x14]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x95df23
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
push esi
call fcn.00958050
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0093bbd0
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x72c]
push edx
mov dword [ebp - 0x10], 1
call fcn.0095a3f0
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x730]
push eax
call fcn.0095a3f0
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0xc
lea edx, [ebp - 0x10]
push edx
push 0x98000004
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x95df95
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.00958050
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0093bbd0
mov esp, ebp
pop ebp
ret
Function at 0x95e8d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x9d7230]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push 0x80
lea eax, [ebp - 0x184]
push 0
push eax
mov dword [ebp - 0x188], 0x80
call fcn.00937030
mov eax, dword [ebp + 0xc]
add esp, 0xc
lea ecx, [ebp - 0x188]
push ecx
lea edx, [ebp - 0x184]
push edx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x95e94e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x100
lea ecx, [ebp - 0x104]
mov edi, eax
push ecx
push edi
call fcn.00988310
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x95e995
mov edx, dword [ebp - 0x188]
push ebx
push edi
push edx
lea eax, [ebp - 0x184]
push eax
call fcn.0095e720
add esp, 0x10
test eax, eax
jne 0x95e99e
call fcn.00939c05
mov edi, eax
call fcn.00939c05
mov edx, dword [edi]
push 0x100
lea ecx, [ebp - 0x104]
push ecx
push edx
mov ebx, eax
call fcn.00988310
push eax
mov eax, dword [ebx]
push eax
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push esi
call fcn.009580c0
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0093bbd0
mov esp, ebp
pop ebp
ret

Function at 0x95eba0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x9d7230]
xor eax, ebp
mov dword [ebp - 4], eax
push 4
lea eax, [ebp - 0x108]
push eax
push 1
push 6
push ecx
mov dword [ebp - 0x108], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x95ebfc
push 0x100
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00988310
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.00958050
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0093bbd0
mov esp, ebp
pop ebp
ret

Function at 0x95ec10
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x9db994]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x95ec62
push 3
push 2
push eax
push eax
push 6
call fcn.00963bb0
add esp, 0x14
test eax, eax
je 0x95ec56
mov dword [0x9db994], 2
mov esp, ebp
pop ebp
ret
mov dword [0x9db994], 1
jmp 0x95ec67
cmp eax, 2
je 0x95eca8
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x95ec90
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jg 0x95eca7
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x95ecb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x19c], 0
je 0x95ecd0
push eax
call fcn.0094f450
add esp, 4
test eax, eax
jne 0x95ecf0
xor eax, eax
pop ebp
ret
mov eax, dword [eax + 0x148]
cmp eax, 0xffffffff
je 0x95eccc
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x95ecf0
pop ebp
ret
mov eax, 1
pop ebp
ret