joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51cd36
Capabilities:
Get disk information via ioctl

Disassembly:
push 0x74
mov eax, 0xab0b34
call fcn.00aac91e
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x44], al
mov dword [ebp - 4], eax
call dword [edi + 0xb4]
cdq
mov bl, 0x41
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x4c], edx
mov byte [ebp - 0x60], bl
mov dword [ebp - 0x64], eax
xor edx, edx
mov ecx, eax
and ecx, 0x1f
shr eax, 5
inc edx
shl edx, cl
test dword [ebp + eax*4 - 0x2c], edx
je 0x51cec6
mov esi, dword [edi + 0xb8]
lea ecx, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x28], eax
push 0xac1648
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.00475e67
push dword [ebp - 0x60]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
push 1
push 0
call fcn.0051d552
push eax
lea ecx, [ebp - 0x80]
call fcn.00475b61
mov byte [ebp - 4], 2
lea eax, [ebp - 0x80]
cmp dword [ebp - 0x6c], 0x10
cmovae eax, dword [ebp - 0x80]
push eax
call esi
lea ecx, [ebp - 0x80]
mov esi, eax
call fcn.004733d8
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.004733d8
cmp esi, 3
jne 0x51cec6
xor eax, eax
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x28]
push str.._
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.00475e67
push dword [ebp - 0x60]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00475e2c
push 0xac1180
lea ecx, [ebp - 0x28]
call fcn.00475b12
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov eax, dword [edi + 0xc0]
cmovae ecx, dword [ebp - 0x28]
xor edx, edx
push edx
push edx
push esi
push edx
push esi
push edx
push ecx
call eax
mov dword [ebp - 0x68], eax
cmp eax, 0xffffffff
je 0x51ceba
mov ecx, dword [edi + 0xb0]
lea edx, [ebp - 0x4c]
push 0
push edx
push 0xc
lea edx, [ebp - 0x5c]
push edx
push 0
push 0
push 0x2d1080
push eax
call ecx
push dword [ebp - 0x68]
or esi, 0xffffffff
test eax, eax
cmovne esi, dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x51ceba
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
push esi
call fcn.0051aa96
test eax, eax
jne 0x51ceba
sub esp, 0x18
mov ecx, esp
mov dword [ecx], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
lea eax, [ebp - 0x44]
push eax
call fcn.00475f3c
mov ecx, edi
call fcn.00512dc7
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.004733d8
mov eax, dword [ebp - 0x64]
inc bl
inc eax
mov byte [ebp - 0x60], bl
mov dword [ebp - 0x64], eax
cmp bl, 0x5a
jle 0x51cd70
lea ecx, [ebp - 0x44]
call fcn.004733d8
call fcn.00aac8cd
ret
Function at 0x51dcae
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 8], edx
mov edi, edx
lea eax, [ecx - 1]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], eax
sar eax, 1
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], eax
cmp edx, eax
jge 0x51dd18
lea esi, [edi + edi]
lea eax, [esi + 2]
imul ecx, eax, 0x18
add ecx, ebx
lea eax, [ecx - 0x18]
push eax
push ecx
call fcn.0051dc61
imul ecx, dword [ebp - 8], 0x18
movzx edi, al
xor edi, 1
inc edi
add edi, esi
imul eax, edi, 0x18
add ecx, ebx
add eax, ebx
push eax
call fcn.004ce4e4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], edi
cmp edi, eax
jl 0x51dcdc
mov ecx, dword [ebp - 0x18]
mov esi, edi
cmp edi, eax
jne 0x51dd39
test cl, 1
jne 0x51dd39
imul eax, ecx, 0x18
imul ecx, edi, 0x18
add eax, 0xffffffe8
add eax, ebx
add ecx, ebx
push eax
call fcn.004ce4e4
mov esi, dword [ebp - 4]
cmp dword [ebp - 0xc], esi
jge 0x51dd6c
push dword [ebp - 0x10]
lea edi, [esi - 1]
sar edi, 1
imul eax, edi, 0x18
add eax, ebx
push eax
mov dword [ebp - 4], eax
call fcn.0051dc61
test al, al
je 0x51dd6c
push dword [ebp - 4]
imul ecx, esi, 0x18
add ecx, ebx
call fcn.004ce4e4
mov esi, edi
cmp dword [ebp - 0xc], edi
jl 0x51dd3e
push dword [ebp - 0x10]
imul ecx, esi, 0x18
add ecx, ebx
call fcn.004ce4e4
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x538f34
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0xab0caf
call fcn.00aac91e
mov esi, ecx
push 8
call fcn.00a87b44
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 4], eax
xor ebx, ebx
lea edi, [esi + 4]
push edi
push ebx
push ecx
push 0x538fa0
push ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.00a8d743
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x538f85
mov eax, esi
call fcn.00aac8cd
ret 8
push 6
mov dword [edi], ebx
call fcn.00a89376
int3

Function at 0x539099
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 0x9e7964
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0xab0caf
call fcn.00aac91e
mov esi, ecx
push 8
call fcn.00a87b44
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
mov eax, dword [eax]
mov dword [ecx], eax
mov dword [ecx + 4], 0x9e77cb
xor ebx, ebx
lea edi, [esi + 4]
push edi
push ebx
push ecx
push 0x9e79c0
push ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.00a8d743
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x9e79b6
mov eax, esi
call fcn.00aac8cd
ret 8
push 6
mov dword [edi], ebx
call fcn.00a89376
int3
Function at 0xa3ea40
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0xaf1008]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0xa3eaf8
mov eax, dword [esp]
cmp al, 2
jne 0xa3eaf2
shr eax, 8
cmp al, 2
jne 0xa3eaf2
call fcn.00a51380
test eax, eax
jne 0xa3eafd
mov ecx, str.iphlpapi.dll
call fcn.00a3eb60
mov dword [0xaf613c], eax
test eax, eax
je 0xa3eab8
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0xaf3ec8]
test eax, eax
cmovne ecx, eax
mov dword [0xaf3ec8], ecx
xor edx, edx
push 3
push ecx
push 0
lea ecx, [edx + 6]
call fcn.00a515a0
add esp, 0xc
test al, al
setne byte [0xaf6250]
push 0xaf6248
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00a87983
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00a87983
mov esp, ebp
pop ebp
ret
Function at 0xa3eb60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push str.kernel32
mov esi, ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
test eax, eax
jne 0xa3eb84
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push 0xac1970
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push 0xac1980
push esi
mov dword [ebp - 8], ebx
call fcn.00a991f4
add esp, 8
test eax, eax
je 0xa3ebcc
test ebx, ebx
je 0xa3ebbc
push 8
push 0
push esi
call ebx
pop ebx
mov edi, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop ebx
mov edi, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0xa3ebf5
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0xa3ebf5
push 0x800
push 0
push esi
call ebx
pop ebx
mov edi, eax
pop edi
pop esi
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 0xa3ecb8
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0xa3ec11
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0xaf197c]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0xa3ecae
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0xa3ecae
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0xa3ec50
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 0xa3ec70
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 0xa3ec85
mov eax, dword [ebp - 8]
test eax, eax
je 0xa3eca5
push 8
push 0
push ebx
call eax
jmp 0xa3ecac
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0xaf1984]
add esp, 4
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0xa3f300
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, edx
mov dword [ebp - 0xc], ecx
call fcn.00a40940
mov edx, edi
mov dword [ebp - 0x14], eax
call fcn.00a40920
mov edx, dword [ebp + 8]
mov cl, 1
mov byte [ebp - 1], cl
mov dword [edx], 0
test eax, eax
je 0xa3f42a
cmp byte [eax + 0x3c], 0
je 0xa3f42a
mov esi, dword [edi + 0x8d8]
test esi, esi
je 0xa3f42a
mov eax, dword [edi + 0x78]
test eax, eax
je 0xa3f35c
test byte [eax + 4], 0x10
je 0xa3f35c
add eax, 0x78
jmp 0xa3f362
lea eax, [edi + 0x8dc]
mov edi, dword [edi + 0x4a4]
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
test edi, edi
je 0xa3f429
nop dword [eax]
cmp dword [esi + 0xc], 0
je 0xa3f41a
mov ecx, dword [ebp - 0xc]
mov edx, dword [esi]
mov eax, dword [ecx + 8]
mov ecx, dword [eax + 8]
call fcn.00a4f8a0
test eax, eax
je 0xa3f41a
mov ecx, dword [ebp - 0xc]
mov edx, dword [esi + 4]
mov edi, dword [ecx + 0xc]
cmp byte [edi + 0x1c9], 0
jne 0xa3f3b6
test edx, edx
je 0xa3f3c9
jmp 0xa3f417
test edx, edx
je 0xa3f417
mov ecx, dword [edi + 0x64]
call fcn.00a4f8a0
test eax, eax
je 0xa3f417
mov ecx, dword [ebp - 0xc]
cmp byte [edi + 0x1ca], 0
mov eax, dword [esi + 0x1c]
jne 0xa3f3dc
cmp eax, 0xffffffff
je 0xa3f3e9
jmp 0xa3f417
cmp eax, 0xffffffff
je 0xa3f417
cmp dword [edi + 0x444], eax
jne 0xa3f417
mov eax, dword [ecx + 8]
mov eax, dword [eax + 0x10]
cmp eax, dword [esi + 0x18]
jne 0xa3f417
mov ecx, dword [edi + 0x1e0]
mov edx, dword [esi + 8]
mov ecx, dword [ecx]
call fcn.00a4f8a0
test eax, eax
je 0xa3f417
mov ecx, dword [ebp - 0x14]
lea edx, [esi + 0x20]
call fcn.00a3ed90
test al, al
jne 0xa3f432
mov edi, dword [ebp - 8]
inc ebx
add esi, 0x60
cmp ebx, edi
jb 0xa3f380
mov cl, byte [ebp - 1]
pop ebx
pop edi
mov al, cl
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
pop ebx
pop edi
inc dword [eax]
mov eax, dword [eax]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [ecx], eax
xor cl, cl
mov al, cl
pop esi
mov esp, ebp
pop ebp
ret
Function at 0xa440b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
call fcn.00449ae0
push eax
push edx
push esi
call fcn.00aa7fc3
add esp, 0xc
pop esi
pop ebp
ret

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

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + edx]
mov edx, 0x1505
cmp esi, edi
jae 0xa45ae8
mov cl, byte [esi]
call fcn.00a4f830
movsx ecx, al
inc esi
mov eax, edx
shl eax, 5
add edx, eax
xor edx, ecx
cmp esi, edi
jb 0xa45ad0
pop edi
movzx eax, dl
pop esi
ret

Function at 0xa4dd90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, edx
cmp byte [esi + 0x6d0], 0
je 0xa4de20
cmp dword [esi + 0x1a4], 0
je 0xa4dde0
push ebx
call fcn.00a43c90
mov dl, 1
mov bl, al
call fcn.00a43c70
push dword [esi + 0x154]
mov eax, dword [esi + 0x1a4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push esi
call eax
add esp, 0x14
mov dl, bl
mov ecx, esi
pop ebx
pop edi
pop esi
pop ebp
jmp fcn.00a43c70
mov eax, edi
sub eax, 0
je 0xa4ddf1
sub eax, 1
je 0xa4ddf1
sub eax, 1
jne 0xa4de20
push dword [esi + 0x150]
lea eax, [edi*2 + 0xabedc4]
push 1
add eax, edi
push 2
push eax
call fcn.00a98b2a
push dword [esi + 0x150]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00a98b2a
add esp, 0x20
pop edi
pop esi
pop ebp
ret

Function at 0xa4fa70
Capabilities:
Generate random numbers via winapi

Disassembly:
push esi
push edi
mov esi, edx
mov edi, ecx
push esi
push 0
push edi
call fcn.00a89fe0
add esp, 0xc
push 2
push esi
push edi
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
neg eax
pop edi
sbb eax, eax
and eax, 2
pop esi
ret
Function at 0xa54830
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push 0
push dword [ebp + 8]
mov edi, edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 4
mov dword [ebp + 0xc], esi
call fcn.00a89fe0
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000040
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xa54901
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x800c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0xa548e3
push 0
push edi
push dword [ebp - 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0xa548e3
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea eax, [ebp - 0x14]
push 0
push eax
lea eax, [ebp - 0xc]
push eax
push 4
push dword [ebp - 4]
call edi
test eax, eax
je 0xa548e3
cmp esi, dword [ebp - 0xc]
jb 0xa548e3
push 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push 2
push dword [ebp - 4]
call edi
mov eax, dword [ebp - 4]
test eax, eax
je 0xa548f1
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
test eax, eax
je 0xa54901
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0xa54ba0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [eax], 0
mov edi, edx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
test esi, esi
jne 0xa54bce
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0xa54bc5
sub esi, ecx
cmp esi, 0x3fffffff
ja 0xa54cf2
lea ecx, [esi + 2]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
lea eax, [edx*4 + 1]
push eax
call dword [0xaf197c]
mov ecx, eax
add esp, 4
mov dword [ebp + 8], ecx
test ecx, ecx
je 0xa54cf2
push ebx
cmp esi, 3
jb 0xa54c7c
mov eax, 0xaaaaaaab
mul esi
mov ebx, edx
shr ebx, 1
movzx eax, byte [edi]
sub esi, 3
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx edx, byte [edi]
movzx eax, byte [edi + 1]
and edx, 3
shr eax, 4
shl edx, 4
or edx, eax
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
movzx edx, byte [edi + 1]
movzx eax, byte [edi + 2]
and edx, 0xf
shr eax, 6
shl edx, 2
or edx, eax
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], al
movzx eax, byte [edi + 2]
add edi, 3
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 3], al
add ecx, 4
sub ebx, 1
jne 0xa54c15
test esi, esi
je 0xa54cd9
movzx eax, byte [edi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx edx, byte [edi]
and edx, 3
shl edx, 4
cmp esi, 1
jne 0xa54cad
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
mov word [ecx + 2], 0x3d3d
jmp 0xa54cd6
movzx eax, byte [edi + 1]
shr eax, 4
or eax, edx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
movzx eax, byte [edi + 1]
and eax, 0xf
movzx eax, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], al
mov byte [ecx + 3], 0x3d
add ecx, 4
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov byte [ecx], 0
sub ecx, eax
pop ebx
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
pop edi
pop esi
mov dword [eax], ecx
xor eax, eax
pop ebp
ret
pop edi
mov eax, 0x1b
pop esi
pop ebp
ret
Function at 0xa58950
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
mov dword [ebp - 4], ecx
test edi, edi
je 0xa5896d
cmp dword [edi], 0
jne 0xa5897f
test esi, esi
je 0xa58976
cmp dword [esi], 0
jne 0xa5897f
test ebx, ebx
je 0xa589c7
cmp dword [ebx], 0
je 0xa589c7
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push dword [ebp + 0x10]
call fcn.00a81730
add esp, 8
test ebx, ebx
je 0xa58999
cmp dword [ebx], 0
jne 0xa5899b
xor ebx, ebx
test esi, esi
je 0xa589a4
cmp dword [esi], 0
jne 0xa589a6
xor esi, esi
test edi, edi
je 0xa589af
cmp dword [edi], 0
jne 0xa589b1
xor edi, edi
push eax
mov eax, dword [ebp - 4]
push ebx
push esi
push edi
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00a58900
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xa61900
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0xaf1008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 4
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 1
push eax
push 1
push 6
push edx
mov esi, ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0xa6195e
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [ebp - 0x108]
mov ecx, eax
call fcn.00a65b30
add esp, 4
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.00a4def0
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00a87983
mov esp, ebp
pop ebp
ret

Function at 0xa61970
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0xaf1008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor eax, eax
push edi
push 4
mov edi, edx
cmp byte [esi + 0x6dc], 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 0xa619cb
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
push esi
call fcn.00a4def0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a87983
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x678]
mov dword [ebp - 0x10], 1
call fcn.00a44090
mov ecx, dword [esi + 0x67c]
imul eax, eax, 0x3e8
mov dword [ebp - 0xc], eax
call fcn.00a44090
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 0xa61a35
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.00a4def0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00a87983
mov esp, ebp
pop ebp
ret

Function at 0xa61c10
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0xaf621c]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
push esi
mov esi, ecx
test eax, eax
jne 0xa61c67
push 3
push ecx
push eax
xor edx, edx
lea ecx, [eax + 6]
call fcn.00a515a0
add esp, 0xc
test al, al
je 0xa61c5b
mov dword [0xaf621c], 2
pop esi
mov esp, ebp
pop ebp
ret
mov dword [0xaf621c], 1
jmp 0xa61c6c
cmp eax, 2
je 0xa61ca8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0xa61c91
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0xa61ca8
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 0xa623d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18c
mov eax, dword [0xaf1008]
xor eax, esp
mov dword [esp + 0x188], eax
push ebx
push esi
mov esi, dword [ecx + 8]
lea eax, [esp + 0xc]
push edi
push 0x80
push 0
push eax
mov ebx, edx
mov dword [esp + 0x18], 0x80
call fcn.00a89fe0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push dword [esi + 0x98]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0xa6246c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea edx, [esp + 0x90]
push ecx
mov ecx, esi
call fcn.00a65b30
add esp, 4
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.00a4de30
add esp, 0x10
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.00a87983
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0xc]
lea eax, [esi + 0x100]
push eax
lea eax, [esi + 0xd0]
push eax
lea ecx, [esp + 0x18]
call fcn.00a44470
add esp, 8
test al, al
jne 0xa624d9
call fcn.00a93aa7
mov esi, dword [eax]
call fcn.00a93aa7
push ecx
lea edx, [esp + 0x94]
mov ecx, esi
mov edi, eax
call fcn.00a65b30
add esp, 4
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00a4de30
add esp, 0x10
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.00a87983
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x194]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00a87983
mov esp, ebp
pop ebp
ret

Function at 0xa62780
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 8], 0
mov ecx, dword [ecx + 8]
jne 0xa627a1
push dword [ecx + 0x14]
lea eax, [ecx + 0x18]
push eax
push dword [ecx + 0x98]
call dword [sym.imp.WS2_32.dll_connect]
pop ebp
ret
or eax, 0xffffffff
pop ebp
ret

Function at 0xa63050
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, ecx
push edi
mov edi, edx
mov esi, dword [ebx + 8]
push dword [esi + 0x14]
lea eax, [esi + 0x18]
push eax
push dword [esi + 0x98]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0xa6308d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea edx, [esi + 0x9c]
mov ecx, edi
call fcn.00a62220
add esp, 4
pop edi
pop esi
pop ebx
ret
mov edx, edi
mov ecx, ebx
call fcn.00a623d0
mov ecx, dword [esi + 0x98]
mov edx, 1
call fcn.00a84ab0
pop edi
pop esi
xor eax, eax
pop ebx
ret