joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a26e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov ecx, dword [esi + 0xc]
xor edx, edx
mov eax, edi
div ecx
mov ebx, dword [ebp + 0x18]
imul eax, ecx
push eax
mov dword [ebx], eax
call fcn.0095d9b7
mov ecx, dword [ebp + 8]
push edi
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.0095d180
mov edx, dword [ebx]
push edx
call fcn.0095d9b7
mov dword [ebp + 8], eax
mov eax, dword [esi + 0xc]
push eax
call fcn.0095d9b7
mov ecx, dword [esi + 0xc]
mov edx, dword [ebp + 0x14]
push ecx
mov edi, eax
push edx
push edi
call fcn.0095d180
xor edx, edx
add esp, 0x24
mov dword [ebp + 0xc], edx
cmp dword [ebx], edx
jbe 0x4a27e8
jmp 0x4a274a
mov edx, dword [ebp + 0xc]
cmp byte [ebp + 0x1c], 0
je 0x4a276e
xor eax, eax
cmp dword [esi + 0xc], eax
jbe 0x4a276e
mov ecx, dword [ebp - 4]
add ecx, edx
lea esp, [esp]
mov bl, byte [ecx + eax]
neg bl
mov byte [ecx + eax], bl
inc eax
cmp eax, dword [esi + 0xc]
jb 0x4a2760
mov ecx, dword [esi + 0xc]
xor eax, eax
test ecx, ecx
je 0x4a278e
mov ebx, dword [ebp - 4]
add ebx, edx
lea esp, [esp]
mov dl, byte [ebx + eax]
xor byte [eax + edi], dl
inc eax
cmp eax, ecx
jb 0x4a2780
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ecx
lea ebx, [edx + eax]
push ebx
push edi
mov ecx, esi
call fcn.004a2390
mov edx, dword [esi + 0xc]
push edx
push ebx
push edi
call fcn.0095d180
add esp, 0xc
cmp byte [ebp + 0x1c], 0
je 0x4a27d4
xor eax, eax
cmp dword [esi + 0xc], eax
jbe 0x4a27d4
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
add ecx, edx
mov bl, byte [ecx + eax]
neg bl
mov byte [ecx + eax], bl
inc eax
cmp eax, dword [esi + 0xc]
jb 0x4a27c4
jmp 0x4a27d7
mov edx, dword [ebp + 0xc]
add edx, dword [esi + 0xc]
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0xc], edx
cmp edx, dword [eax]
jb 0x4a2747
push edi
call fcn.0095d9a1
mov ecx, dword [ebp - 4]
push ecx
call fcn.0095d9a1
mov eax, dword [ebp + 8]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4a2c60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
add esi, 0x64
xor ebx, ebx
push esi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ebx
call fcn.0095d9b7
push esi
mov edi, eax
push ebx
push edi
call fcn.0095d660
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push edi
call fcn.0095d180
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
add esp, 0x1c
mov edx, ecx
cmp ecx, ebx
je 0x4a2caa
mov byte [eax], bl
inc eax
dec edx
jne 0x4a2ca4
mov edx, dword [ebp + 0x14]
xor eax, eax
mov dword [ebp - 0x3b], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x37], eax
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x1f], eax
push edx
mov al, 0x45
mov byte [ebp - 0x37], al
mov byte [ebp - 0x3a], al
lea eax, [ebp + 0x10]
push eax
lea edx, [ebp - 0x18]
push edx
add ecx, 0xf
lea eax, [ebp - 0x3c]
and ecx, 0xfffffff0
push eax
push ecx
mov ecx, dword [ebp - 4]
push edi
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 word [ebp - 0x2e], 0x3745
mov dword [ebp - 0x1f], 0x323945
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 + 0x10], ebx
call fcn.004a26e0
mov dword [ebp + 0xc], eax
mov ecx, edi
cmp esi, ebx
je 0x4a2d56
jmp 0x4a2d50
mov byte [ecx], bl
inc ecx
dec esi
jne 0x4a2d50
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
push eax
push esi
call fcn.004a2890
push edi
call fcn.0095d9a1
mov edx, dword [ebp + 0xc]
push edx
call fcn.0095d9a1
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4ac0c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x9c543b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x2c], ecx
lea ecx, [esi + 0x30]
mov dword [ebp - 0x10], esi
mov dword [esi], 0x1000000
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], eax
call fcn.0095a3f0
push 0x11
mov dword [ebp - 4], ebx
mov byte [esi + 0x31], bl
call fcn.0095d9b7
add esp, 4
mov dword [esi + 4], eax
mov ecx, 0x11
nop
mov byte [eax], bl
inc eax
dec ecx
jne 0x4ac130
push 0x208
call fcn.0095d9b7
add esp, 4
mov dword [esi + 0x10], eax
mov ecx, 0x208
jmp 0x4ac150
mov byte [eax], bl
inc eax
dec ecx
jne 0x4ac150
push 0x208
call fcn.0095d9b7
add esp, 4
mov dword [esi + 0x14], eax
mov ecx, 0x208
jmp 0x4ac170
mov byte [eax], bl
inc eax
dec ecx
jne 0x4ac170
push 0x208
call fcn.0095d9b7
add esp, 4
mov dword [esi + 0x18], eax
mov ecx, 0x208
jmp 0x4ac190
mov byte [eax], bl
inc eax
dec ecx
jne 0x4ac190
push 0x208
call fcn.0095d9b7
add esp, 4
mov dword [esi + 0x1c], eax
mov ecx, 0x208
jmp 0x4ac1b0
mov byte [eax], bl
inc eax
dec ecx
jne 0x4ac1b0
push 0x1000
call fcn.0095d9b7
add esp, 4
mov dword [esi + 0xc], eax
mov ecx, 0x1000
jmp 0x4ac1d0
mov byte [eax], bl
inc eax
dec ecx
jne 0x4ac1d0
push 0x208
call fcn.0095d9b7
add esp, 4
mov dword [esi + 0x24], eax
mov ecx, 0x208
jmp 0x4ac1f0
mov byte [eax], bl
inc eax
dec ecx
jne 0x4ac1f0
push 0x208
call fcn.0095d9b7
add esp, 4
mov dword [esi + 0x20], eax
mov ecx, 0x208
jmp 0x4ac210
mov byte [eax], bl
inc eax
dec ecx
jne 0x4ac210
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x524ef0
Capabilities:
Hash data with md5

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

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

Function at 0x962130
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x9fc230]
jne 0x96213a
repz ret
jmp fcn.00967dc9

Function at 0x9678c3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x9fc230]
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.009602a2
and dword [ebp - 0x14], 0
cmp dword [0xa00408], 0
mov dword [ebp - 0x18], eax
jne 0x967976
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x967a1e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x9e3cd4
push ebx
call edi
test eax, eax
je 0x967a1e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0xa00408], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0xa0040c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0xa00410], eax
call edi
push eax
call esi
mov dword [0xa00418], eax
test eax, eax
je 0x967976
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0xa00414], eax
mov eax, dword [0xa00414]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x9679cf
cmp dword [0xa00418], ecx
je 0x9679cf
push eax
call esi
push dword [0xa00418]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x9679cf
test ebx, ebx
je 0x9679cf
call edi
test eax, eax
je 0x9679c6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x9679c6
test byte [ebp - 8], 1
jne 0x9679cf
or dword [ebp + 0x10], 0x200000
jmp 0x967a02
mov eax, dword [0xa0040c]
cmp eax, dword [ebp - 0x18]
je 0x967a02
push eax
call esi
test eax, eax
je 0x967a02
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x967a02
mov eax, dword [0xa00410]
cmp eax, dword [ebp - 0x18]
je 0x967a02
push eax
call esi
test eax, eax
je 0x967a02
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0xa00408]
call esi
test eax, eax
je 0x967a1e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x967a20
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00962130
leave
ret
Function at 0x974800
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 0x97481f
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x9e55d8
push esi
call edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x9e55d0
push eax
call fcn.009bc19a
add esp, 8
test eax, eax
je 0x974873
mov eax, dword [ebp - 4]
test eax, eax
je 0x974860
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 0x97489b
push str.AddDllDirectory
push esi
call edi
test eax, eax
je 0x97489b
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 0x974972
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x9748b5
sub eax, edx
sar eax, 1
add eax, edi
lea ecx, [eax + eax + 2]
push ecx
call dword [0x9fd33c]
mov esi, eax
add esp, 4
test esi, esi
je 0x974968
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x974968
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x9748f0
sub eax, edx
sar eax, 1
mov ecx, 0x9c9560
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 0x974910
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x974924
mov ecx, dword [ebp + 8]
sub eax, edx
sar eax, 1
lea edx, [esi + eax*2]
sub edx, ecx
jmp 0x974940
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x974940
mov eax, dword [ebp - 4]
test eax, eax
je 0x97495f
push 8
push 0
push esi
call eax
jmp 0x974966
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
push esi
call dword [0x9fd340]
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x974980
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x9fc230]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x9749d9
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x9749c6
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x9749c0
shr eax, 8
cmp al, 2
je 0x9749d9
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00962130
mov esp, ebp
pop ebp
ret
call fcn.00989e70
test eax, eax
jne 0x974a37
push str.iphlpapi.dll
call fcn.00974800
add esp, 4
mov dword [0xa008b4], eax
test eax, eax
je 0x974a0d
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x974a0d
mov dword [0xa008b8], eax
push 3
push 2
push 0
push 0
push 6
call fcn.0098a0d0
add esp, 0x14
neg eax
sbb eax, eax
neg eax
push 0xa03be0
mov dword [0xa03be8], eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00962130
mov esp, ebp
pop ebp
ret
Function at 0x97e410
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 0x97e453
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 0x97e4d0
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 0x97e55e
cmp dword [esi + 0x1d0], edi
je 0x97e521
push 1
push esi
call fcn.0097c110
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.0097c110
add esp, 0x24
mov eax, edi
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
js 0x97e55e
cmp eax, 2
jg 0x97e55e
mov edx, dword [esi + 0x168]
push edx
push 1
lea eax, [eax + eax*2 + 0x9e6210]
push 2
push eax
call fcn.009bc069
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.009bc069
add esp, 0x20
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x97e970
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 0x97ea14
cmp dword [eax + ecx*4 + 0x160], 0x97e690
jne 0x97ea14
cmp dword [esi], 0
je 0x97e9ad
test edi, edi
je 0x97ea14
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.009a7b90
add esp, 0x14
cmp eax, 0xffffffff
je 0x97ea14
test al, 1
je 0x97ea14
cmp dword [esi], 0
jne 0x97e9fd
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x550]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x9fd33c]
xor ecx, ecx
add esp, 4
mov dword [esi], eax
cmp eax, ecx
jne 0x97e9f4
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 0x97ea14
add dword [esi + 8], eax
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x97ea20
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x9fc230]
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.0097e970
add esp, 4
test eax, eax
je 0x97ea79
mov dword [edi], 0x1b
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00962130
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 0x97eafb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x108], eax
cmp eax, 0x2733
jne 0x97eac8
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.00962130
mov esp, ebp
pop ebp
ret
push 0x100
lea edx, [ebp - 0x104]
push edx
push eax
call fcn.009ae810
push eax
push str.Send_failure:__s
push esi
call fcn.0097e5e0
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.00962130
mov esp, ebp
pop ebp
ret

Function at 0x980920
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push eax
call fcn.009808f0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call fcn.009bf8ac
add esp, 0x10
pop ebp
ret

Function at 0x9825a0
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 0x9825ce
movzx eax, byte [esi]
push eax
call fcn.00986a80
mov edx, ebx
shl edx, 5
movsx ecx, al
add ebx, edx
inc esi
add esp, 4
xor ebx, ecx
cmp esi, edi
jb 0x9825b1
pop edi
pop esi
movzx eax, bl
pop ebx
ret
Function at 0x9843f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x9fc230]
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 0x984443
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
push esi
call fcn.0097e570
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00962130
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x72c]
push edx
mov dword [ebp - 0x10], 1
call fcn.00980900
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x730]
push eax
call fcn.00980900
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 0x9844b5
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.0097e570
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00962130
mov esp, ebp
pop ebp
ret
Function at 0x984df0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x9fc230]
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.0095d660
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 0x984e6e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x100
lea ecx, [ebp - 0x104]
mov edi, eax
push ecx
push edi
call fcn.009ae810
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x984eb5
mov edx, dword [ebp - 0x188]
push ebx
push edi
push edx
lea eax, [ebp - 0x184]
push eax
call fcn.00984c40
add esp, 0x10
test eax, eax
jne 0x984ebe
call fcn.00960168
mov edi, eax
call fcn.00960168
mov edx, dword [edi]
push 0x100
lea ecx, [ebp - 0x104]
push ecx
push edx
mov ebx, eax
call fcn.009ae810
push eax
mov eax, dword [ebx]
push eax
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push esi
call fcn.0097e5e0
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00962130
mov esp, ebp
pop ebp
ret

Function at 0x9850c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x9fc230]
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 0x98511c
push 0x100
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.009ae810
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.0097e570
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00962130
mov esp, ebp
pop ebp
ret

Function at 0x985130
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0xa00994]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x985182
push 3
push 2
push eax
push eax
push 6
call fcn.0098a0d0
add esp, 0x14
test eax, eax
je 0x985176
mov dword [0xa00994], 2
mov esp, ebp
pop ebp
ret
mov dword [0xa00994], 1
jmp 0x985187
cmp eax, 2
je 0x9851c8
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 0x9851b0
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jg 0x9851c7
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 0x9851d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x19c], 0
je 0x9851f0
push eax
call fcn.00975970
add esp, 4
test eax, eax
jne 0x985210
xor eax, eax
pop ebp
ret
mov eax, dword [eax + 0x148]
cmp eax, 0xffffffff
je 0x9851ec
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x985210
pop ebp
ret
mov eax, 1
pop ebp
ret
Function at 0x987160
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [ebp + 0xc]
push edx
push eax
push ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 8], eax
test eax, eax
jne 0x9872f5
push edi
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x9872d7
push ebx
push esi
lea esp, [esp]
mov eax, dword [edi + 0x14]
test eax, eax
je 0x9871ce
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x9871c0
sub eax, edx
lea ebx, [eax + 1]
jmp 0x9871d0
xor ebx, ebx
cmp dword [edi + 4], 2
jne 0x987284
cmp dword [edi + 0x18], 0
je 0x987284
mov eax, dword [edi + 0x10]
test eax, eax
je 0x987284
cmp eax, 0x10
jb 0x987284
lea edx, [ebx + 0x30]
push edx
call dword [0x9fd33c]
mov esi, eax
xor eax, eax
add esp, 4
cmp esi, eax
je 0x987291
mov ecx, dword [edi]
mov dword [esi], ecx
mov edx, dword [edi + 4]
mov dword [esi + 4], edx
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
lea eax, [esi + 0x20]
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
test ebx, ebx
je 0x98726e
mov eax, dword [esi + 0x18]
add eax, 0x10
mov dword [esi + 0x14], eax
mov edx, dword [edi + 0x14]
push ebx
push edx
push eax
call fcn.0095d180
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x987277
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x987281
mov dword [eax + 0x1c], esi
mov dword [ebp - 0xc], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x9871b0
jmp 0x987298
mov dword [ebp - 8], 8
mov eax, dword [ebp - 0x10]
pop esi
pop ebx
test eax, eax
je 0x9872a8
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], 0
je 0x9872d1
mov eax, dword [ebp - 4]
push eax
call fcn.00987130
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [edx], ecx
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], 0
jne 0x9872e9
push 0x2af9
mov dword [ebp - 8], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [edx], ecx
pop edi
mov esp, ebp
pop ebp
ret