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

Disassembly:
sub esp, 0x30
movaps xmm0, xmmword [0x109f1e70]
push ebp
push esi
mov esi, dword [esp + 0x3c]
xor ebp, ebp
push edi
mov edi, closesocket
mov dword [esp + 0x10], 0xffffffff
movups xmmword [esp + 0x2c], xmm0
mov ch, byte [esi + 0x15]
mov byte [esp + 0xf], ch
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], ebp
cmp dword [esp + 0x48], ebp
jle 0x104654d4
mov edi, dword [esp + 0x4c]
xor eax, eax
test ch, ch
mov edx, 4
push ebx
cmovg eax, edx
lea edx, [esp + 0x30]
add eax, edx
xor ebx, ebx
mov edx, dword [esp + 0x48]
lea eax, [eax + edi*8]
add eax, 0xfffffff8
test ch, ch
mov dword [esp + 0x2c], eax
setg bl
inc ebx
add edx, 0x10
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], edx
xor eax, eax
nop dword [eax + eax]
mov cl, byte [edx + eax - 4]
cmp cl, byte [esi + eax + 0x14]
jne 0x10465472
inc eax
cmp eax, ebx
jl 0x104653e0
cmp edi, 1
jne 0x10465413
test ch, ch
jle 0x10465413
mov al, byte [edx - 2]
cmp al, byte [esi + 0x4f]
jne 0x10465472
movzx eax, byte [esi + 0xa0]
shr eax, 1
and eax, edi
cmp dword [edx], eax
jne 0x10465472
mov eax, dword [esp + 0x20]
lea ebx, [esi + 0xe]
xor edi, edi
mov dword [esp + 0x1c], eax
lea ebp, [edx - 0xa]
movsx eax, word [ebx - 2]
lea ebp, [ebp + 4]
movsx ecx, word [ebp - 6]
lea ebx, [ebx + 4]
sub ecx, eax
mov eax, ecx
movsx ecx, word [ebp - 4]
cdq
mov esi, eax
movsx eax, word [ebx - 4]
sub ecx, eax
xor esi, edx
sub esi, edx
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
add edi, eax
add edi, esi
sub dword [esp + 0x1c], 1
jne 0x10465423
test edi, edi
je 0x104654b0
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x44]
mov ch, byte [esp + 0x13]
jmp 0x10465477
mov edi, closesocket
cmp edi, dword [esp + 0x24]
jge 0x10465491
mov eax, dword [esp + 0x2c]
cmp edi, dword [eax]
jg 0x10465491
mov dword [esp + 0x24], edi
mov edi, ebp
mov dword [esp + 0x14], edi
jmp 0x10465495
mov edi, dword [esp + 0x14]
inc ebp
add edx, 0x28
mov dword [esp + 0x18], ebp
mov dword [esp + 0x28], edx
cmp ebp, dword [esp + 0x4c]
jge 0x104654b4
mov edi, dword [esp + 0x50]
jmp 0x104653d6
mov edi, dword [esp + 0x18]
pop ebx
cmp edi, 0xffffffff
je 0x104654d4
mov eax, dword [esp + 0x44]
lea ecx, [edi + edi*4]
mov edx, dword [esp + 0x40]
mov ecx, dword [eax + ecx*8]
mov eax, edi
pop edi
pop esi
mov dword [edx + 0x18], ecx
pop ebp
add esp, 0x30
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x30
ret
Function at 0x104a1490
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
push ebx
mov ebx, ecx
push ebp
push esi
push edi
lea edi, [ebx + 0x10]
mov dword [esp + 0x14], ebx
mov ecx, edi
call fcn.104a1a60
movzx ebp, ax
mov edx, 0xffff
cmp dx, bp
jne 0x104a15af
movzx ecx, word [ebx + 0x12]
movzx eax, word [ebx + 0x116]
movzx ebp, cx
add eax, ebp
mov dword [esp + 0x10], ecx
movzx eax, word [ebx + eax*2 + 0x118]
cmp ax, word [ebx + 0x114]
jae 0x104a15a5
cmp word [ebx + eax*2 + 0x118], cx
jne 0x104a15a5
movzx eax, word [edi + ebp*4 + 4]
movzx ecx, word [edi + ebp*4 + 6]
cmp dx, ax
je 0x104a1505
mov word [edi + eax*4 + 6], cx
jmp 0x104a1508
mov word [edi], cx
movzx eax, word [edi + ebp*4 + 6]
movzx ecx, word [edi + ebp*4 + 4]
cmp dx, ax
je 0x104a151e
mov word [edi + eax*4 + 4], cx
jmp 0x104a1522
mov word [edi + 2], cx
mov ebx, dword [esp + 0x10]
mov dword [edi + ebp*4 + 4], 0xffffffff
movzx edx, word [edi + 0x106]
add edx, 2
lea eax, [edx + ebp]
shl ebp, 5
movzx esi, word [edi + eax*2 + 0x104]
mov eax, 0xffff
add word [edi + 0x104], ax
movzx eax, word [edi + 0x104]
movzx ecx, word [edi + eax*2 + 0x108]
mov word [edi + eax*2 + 0x108], bx
mov ebx, dword [esp + 0x14]
lea eax, [edx + ecx]
mov word [edi + eax*2 + 0x104], si
mov eax, esi
mov word [edi + eax*2 + 0x108], cx
lea eax, [ebx + 0x218]
add eax, ebp
mov ecx, ebx
push eax
lea eax, [esp + 0x18]
push eax
call fcn.104b86b0
push ecx
mov edx, esp
mov ecx, ebx
mov eax, dword [eax]
mov dword [edx], eax
call fcn.104b7dd0
mov ecx, edi
call fcn.104a1a60
movzx ebp, ax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
movzx esi, bp
shl esi, 5
add esi, ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov word [esp + 0x20], bp
mov dword [esi + 0x21c], ecx
mov ecx, ebx
mov dword [esi + 0x218], edx
movups xmm0, xmmword [eax]
mov ax, word [esp + 0x38]
mov word [esi + 0x230], ax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x30]
push eax
movups xmmword [esi + 0x220], xmm0
call fcn.104cde00
pop edi
lea eax, [esi + 0x220]
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
Function at 0x104b88e0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
lea ebp, [esp - 0xb0]
sub esp, 0x130
mov eax, dword [0x10a78b80]
xor eax, ebp
mov dword [ebp + 0xac], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xb8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
lea eax, [ebp - 0x5c]
push eax
push 0
push 0
push ebx
mov dword [ebp - 0x7c], ebx
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x104b8a00
mov esi, dword [ebp - 0x5c]
mov eax, esi
call fcn.10512ce0
mov eax, esp
lea ecx, [ebp - 0x5c]
push ecx
push esi
push eax
push ebx
mov dword [ebp - 0x78], eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x104b8a00
mov ebx, dword [ebp - 0x5c]
xor esi, esi
shr ebx, 2
test ebx, ebx
je 0x104b8a00
nop dword [eax + eax]
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x58]
push 0x104
lea eax, [eax + esi*4]
push ecx
push dword [eax]
mov dword [ebp - 0x80], eax
push dword [ebp - 0x7c]
call sub.PSAPI.DLL_GetModuleBaseNameA
test eax, eax
je 0x104b89f7
lea eax, [ebp - 0x58]
mov dword [ebp - 0x68], 0x1058dafb
push closesocket
push eax
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x60], 1
call fcn.1050b4f0
mov dword [ebp - 0x64], eax
add esp, 8
mov byte [ebp - 0x60], 1
lea eax, [ebp - 0x58]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x74], 0x1058dafb
mov dword [ebp - 0x70], 0
mov byte [ebp - 0x6c], 1
test edi, edi
je 0x104b89de
push closesocket
push edi
call fcn.1050b4f0
add esp, 8
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x74], edi
mov byte [ebp - 0x6c], 1
push closesocket
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.1050b160
add esp, 0xc
test eax, eax
je 0x104b8a20
inc esi
cmp esi, ebx
jb 0x104b8960
xor eax, eax
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xac]
xor ecx, ebp
call fcn.105116c0
lea esp, [ebp + 0xb0]
pop ebp
ret
mov eax, dword [ebp - 0x80]
mov eax, dword [eax]
jmp 0x104b8a02
Function at 0x104bbe00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x68], eax
mov ax, word [esp + 0x74]
push ebx
push ebp
movzx eax, ax
push esi
mov esi, dword [esp + 0x7c]
imul ebx, eax, 0x260
push edi
mov edi, ecx
mov dword [esp + 0x68], 0
push 4
lea ecx, [esp + 0x6c]
mov dword [esp + 0x70], 0
add ebx, edi
mov byte [esp + 0x78], 0
mov eax, dword [ebx + 0xdd3a8]
add eax, 0xac
push eax
call fcn.105093d0
lea ecx, [esp + 0x68]
call fcn.10509840
mov dword [esp + 0x14], eax
lea ecx, [edi + 0x1edeb8]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x20], 0
push eax
call fcn.104b8730
mov eax, dword [esp + 0x10]
test eax, eax
je 0x104bbea6
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esi], ecx
mov dword [esi + 4], edx
test ecx, ecx
jne 0x104bbf6d
test edx, edx
je 0x104bbeb3
jmp 0x104bbf6d
mov dword [esi], 0
mov dword [esi + 4], 0
mov eax, dword [ebx + 0xdd3a8]
xorps xmm0, xmm0
push esi
push dword [edi + 4]
mov dword [esp + 0x28], 0x1d
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 0x12
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0x20
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 0xdd600]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x28]
push eax
push 1
push dword [edi + 0x191c]
mov dword [esp + 0x54], ecx
push dword [edi + 0x1918]
mov ecx, dword [ebx + 0xdd604]
push dword [edi + 0x1904]
mov dword [esp + 0x64], str.main
mov dword [esp + 0x68], 0
mov dword [esp + 0x70], ecx
movlpd qword [esp + 0x74], xmm0
mov dword [esp + 0x7c], 0
call dword [0x10ac2d44]
push dword [esi + 4]
lea ecx, [edi + 0x1edeb8]
push dword [esi]
push 0
push dword [esp + 0x20]
call fcn.104a1870
mov ecx, dword [esp + 0x78]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x6c
ret 8
Function at 0x104d6760
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x74
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x70], eax
mov ax, word [esp + 0x78]
push ebx
mov ebx, ecx
mov ecx, 0xffff
push ebp
mov ebp, dword [esp + 0x84]
cmp cx, ax
je 0x104d679a
movzx eax, ax
imul eax, eax, 0xf0
mov ecx, dword [eax + ebx + 0x9afa8]
jmp 0x104d67a0
mov ecx, dword [ebx + 0x174]
test ecx, ecx
je 0x104d694b
mov eax, dword [ecx]
lea edx, [esp + 0xc]
push edx
push 0x10a2f110
push 0
push ecx
call dword [eax + 0x24]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x4c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
push 0x2c
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.1050a090
mov ecx, dword [ebx + 0x280]
lea edx, [esp + 0x14]
add esp, 0xc
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 3
mov dword [esp + 0x40], 0
push edx
push 0
mov dword [esp + 0x4c], 0x20000
lea edx, [esp + 0x28]
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x14]
test eax, eax
js 0x104d693d
cmp dword [esp + 0x60], 1
jne 0x104d6845
mov eax, dword [ebx + 0x284]
push dword [esp + 0xc]
push dword [esp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xbc]
jmp 0x104d68b5
mov ecx, dword [ebx + 0x280]
lea edx, [esp + 0x10]
push edx
push 0
mov dword [esp + 0x44], 0
lea edx, [esp + 0x28]
mov dword [esp + 0x4c], 0
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x14]
test eax, eax
js 0x104d68b5
push dword [esp + 0x30]
mov eax, dword [ebx + 0x284]
push 0
push dword [esp + 0x14]
mov ecx, dword [eax]
push 0
push dword [esp + 0x20]
push eax
call dword [ecx + 0xe4]
mov eax, dword [ebx + 0x284]
push dword [esp + 0x10]
push dword [esp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xbc]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x104d68b5
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebx + 0x284]
lea edx, [esp + 0x14]
push edi
push edx
push 0
mov ecx, dword [eax]
push 1
push 0
push dword [esp + 0x1c]
push eax
call dword [ecx + 0x38]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
push eax
push dword [esp + 0x5c]
push dword [esp + 0x5c]
push ecx
push eax
call fcn.104fd900
mov eax, dword [esp + 0x6c]
add esp, 0x18
mov edx, dword [esp + 0x1c]
mov ecx, dword [0x10ac2e78]
imul eax, edx
push 0
mov edi, dword [ecx]
push eax
push dword [esp + 0x20]
push edx
push dword [esp + 0x64]
push dword [esp + 0x64]
push ebp
call dword [edi + 0x24]
mov eax, dword [ebx + 0x284]
push 0
push dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
mov ecx, dword [esp + 0xc]
pop edi
test ecx, ecx
je 0x104d693d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esp + 8], 0
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x104d694b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x78]
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x74
ret 8
Function at 0x104ea560
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x2c
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
mov ebp, dword [esp + 0x38]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], edi
mov eax, dword [edi + 0x284]
mov dword [esp + 0x10], eax
nop word [eax + eax]
mov ecx, dword [ebp]
movzx eax, word [ebp + 8]
cmp ax, word [ecx + 0x18c57a8]
jae 0x104ea73d
mov dx, word [esp + 0x44]
cmp word [ebp + 6], dx
ja 0x104ea73d
movzx esi, word [ebp + 4]
inc eax
mov word [ebp + 8], ax
add esi, 0x52b5d
movzx eax, ax
shl esi, 6
add esi, ecx
mov eax, dword [ecx + eax*4 + 0x14ac700]
mov word [ebp + 4], ax
shr eax, 0x18
mov word [ebp + 6], ax
movzx ecx, word [esi + 0x14]
lea eax, [ecx*8]
sub eax, ecx
movzx ecx, word [esi + 0x18]
add eax, 0xc36a
lea ebx, [edi + eax*8]
lea eax, [ecx*8]
mov dword [esp + 0x1c], ebx
sub eax, ecx
add eax, 0xc36a
cmp byte [ebx + 0x30], 1
lea eax, [edi + eax*8]
mov dword [esp + 0x14], eax
jne 0x104ea69a
movzx ecx, word [esi]
movzx eax, word [esi + 0xc]
movzx edx, word [esi + 2]
add eax, ecx
mov dword [esp + 0x2c], eax
movzx eax, word [esi + 0xe]
add eax, edx
movzx edi, word [esi + 4]
mov dword [esp + 0x30], eax
movzx eax, word [esi + 0x10]
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], edi
lea edx, [eax - 1]
sar edx, 0x1f
mov ecx, edx
and edx, 1
not ecx
and ecx, eax
lea eax, [esp + 0x20]
push eax
movzx eax, byte [esi + 0x12]
or ecx, edx
mov edx, dword [esp + 0x14]
add ecx, edi
mov edi, dword [esp + 0x18]
push eax
push dword [ebx]
movzx eax, word [esi + 0xa]
push eax
movzx eax, word [esi + 8]
push eax
movzx eax, word [esi + 6]
push eax
movzx eax, byte [esi + 0x13]
push eax
push dword [edi]
mov dword [esp + 0x54], ecx
mov ecx, dword [edx]
push edx
call dword [ecx + 0xb8]
mov edi, dword [esp + 0x18]
jmp 0x104ea590
movzx eax, byte [ebx + 0x32]
push eax
call fcn.104fddc0
movzx edx, word [esi]
add esp, 4
movzx ecx, word [esi + 0xc]
mov bl, al
movzx edi, word [esi + 2]
lea eax, [esp + 0x20]
add ecx, edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], ecx
movzx ecx, word [esi + 0xe]
add ecx, edi
mov dword [esp + 0x20], edx
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x30], ecx
xor ecx, ecx
test bl, bl
mov edx, dword [esp + 0x10]
mov dword [esp + 0x28], 0
cmovne eax, ecx
mov dword [esp + 0x34], 1
movzx ecx, byte [edi + 0x33]
push eax
movzx eax, word [esi + 4]
imul ecx, eax
movzx eax, byte [esi + 0x12]
mov edx, dword [edx]
add ecx, eax
movzx eax, word [esi + 8]
push ecx
push dword [edi]
mov edi, dword [esp + 0x20]
movzx ecx, word [esi + 0xa]
push 0
push eax
movzx eax, word [esi + 6]
push eax
movzx eax, byte [edi + 0x33]
imul ecx, eax
movzx eax, byte [esi + 0x13]
add ecx, eax
push ecx
push dword [edi]
push dword [esp + 0x30]
call dword [edx + 0xb8]
mov edi, dword [esp + 0x18]
jmp 0x104ea590
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x2c
ret 8
Function at 0x104f9fc0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
cmp dword [esp + 0x14], edi
jbe 0x104fa00c
push ebx
mov ebx, dword [esp + 0x14]
push ebp
xor ecx, ecx
test ebx, ebx
je 0x104fa003
mov eax, edi
xor edx, edx
div dword [esp + 0x20]
mov ebp, eax
xor edx, edx
mov eax, ecx
div dword [esp + 0x20]
xor eax, ebp
test al, 1
mov eax, dword [esp + 0x24]
cmovne eax, dword [esp + 0x28]
inc ecx
mov dword [esi], eax
add esi, 4
cmp ecx, ebx
jb 0x104f9fe4
inc edi
cmp edi, dword [esp + 0x1c]
jb 0x104f9fd4
pop ebp
pop ebx
pop edi
pop esi
ret
Function at 0x10508450
Capabilities:
Hash data using murmur2

Disassembly:
push esi
mov esi, dword [esp + 0x10]
mov ecx, dword [esi]
test ecx, ecx
je 0x105084b2
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
cmp byte [eax + 0xc], 0
ja 0x1050846f
cmp ecx, 4
jge 0x105084b1
mov ecx, dword [edi]
mov dl, byte [ecx]
inc ecx
mov dword [edi], ecx
movzx ecx, byte [eax + 0xc]
mov byte [ecx + eax + 8], dl
inc byte [eax + 0xc]
dec dword [esi]
cmp byte [eax + 0xc], 4
jne 0x105084ab
imul edx, dword [eax + 8], 0x5bd1e995
mov byte [eax + 0xc], 0
mov ecx, edx
shr ecx, 0x18
xor ecx, edx
imul edx, ecx, 0x5bd1e995
imul ecx, dword [eax], 0x5bd1e995
xor edx, ecx
mov dword [eax], edx
mov ecx, dword [esi]
test ecx, ecx
jne 0x10508464
pop edi
pop esi
ret
Function at 0x105093d0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
push ebx
push esi
mov dword [esp + 0x10], eax
mov esi, ecx
push edi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], edx
push eax
add dword [esi + 4], edx
lea eax, [esp + 0x18]
push eax
push esi
call fcn.10508450
mov edx, dword [esp + 0x20]
add esp, 0xc
test edx, 3
je 0x105094ad
mov edi, dword [esp + 0x18]
mov dword [esp + 0x18], edi
mov dword [esp + 0xc], edx
cmp edi, 4
jl 0x10509493
mov ebx, dword [esi]
mov eax, edx
push ebp
mov ebp, edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edx
nop dword [eax]
movzx ecx, byte [eax + 3]
add edi, 0xfffffffc
mov eax, dword [esp + 0x1c]
shl ecx, 8
imul ebx, ebx, 0x5bd1e995
movzx eax, byte [eax + 2]
or ecx, eax
mov eax, dword [esp + 0x18]
shl ecx, 8
movzx eax, byte [eax + 1]
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
lea edx, [ebp + 4]
or ecx, eax
mov dword [esp + 0x10], edx
imul ecx, ecx, 0x5bd1e995
mov ebp, edx
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e995
mov eax, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
xor ebx, ecx
mov dword [esi], ebx
cmp edi, 4
jge 0x10509430
pop ebp
mov dword [esp + 0x18], edi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x10]
push eax
push esi
call fcn.10508450
add esp, 0xc
pop edi
pop esi
pop ebx
pop ecx
ret 8
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
cmp eax, 4
jl 0x10509502
mov edi, dword [esi]
mov ebx, edx
nop dword [eax]
nop word [eax + eax]
imul edx, dword [edx], 0x5bd1e995
add eax, 0xfffffffc
imul edi, edi, 0x5bd1e995
mov ecx, edx
shr ecx, 0x18
xor ecx, edx
imul edx, ecx, 0x5bd1e995
xor edi, edx
lea edx, [ebx + 4]
mov dword [esi], edi
mov ebx, edx
cmp eax, 4
jge 0x105094d0
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.10508450
add esp, 0xc
pop edi
pop esi
pop ebx
pop ecx
ret 8

Function at 0x10509710
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.10512080
mov eax, dword [0x10a78b80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push eax
push ebx
mov dword [ebp - 0x2008], eax
lea esi, [ebp - 0x2004]
mov eax, esi
push 0x2000
push eax
call fcn.1050bbe0
mov edi, eax
add esp, 0x10
cmp edi, 0x2000
jle 0x10509775
lea eax, [edi + 1]
call fcn.10512ce0
mov esi, esp
push dword [ebp - 0x2008]
push ebx
push edi
push esi
call fcn.1050bbe0
add esp, 0x10
mov edi, eax
push esi
mov byte [edi + esi], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea esp, [ebp - 0x2014]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.105116c0
mov esp, ebp
pop ebp
ret

Function at 0x10509840
Capabilities:
Hash data using murmur2

Disassembly:
push esi
mov esi, ecx
xor edx, edx
movzx eax, byte [esi + 0xc]
jmp dword [eax*4 + 0x105098b8]
Function at 0x10509de0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push 0
push 0
push esi
mov dword [esi + 0x50], eax
mov eax, dword [esp + 0x18]
push 0x1050b610
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0x20]
push eax
push 0
mov dword [esi + 0x1b0], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x10], eax
test eax, eax
jne 0x10509e1b
xor al, al
pop esi
ret 0x10
push 0xffffffffffffffff
mov byte [esi + 0x1b8], 1
push dword [esi + 0x130]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10509e40
push eax
mov ecx, esi
call fcn.1050af20
mov al, 1
pop esi
ret 0x10
Function at 0x1050eba0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x210
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x224]
push ebp
mov ebp, dword [esp + 0x224]
push esi
mov esi, dword [esp + 0x224]
push edi
mov edi, dword [esp + 0x224]
lea ecx, [edi + 0x14]
mov dword [esp + 0x10], ecx
test ebx, ebx
je 0x1050ebe7
mov edx, dword [edi + 0x106c]
jmp 0x1050ebed
mov edx, dword [ecx]
mov dword [esp + 0x10], ecx
test edx, edx
je 0x1050ec08
lea eax, [edi + 0xc]
push eax
push esi
call fcn.1053b880
add esp, 8
mov eax, 1
jmp 0x1050ed7c
inc dword [ecx]
mov edx, dword [edi + 8]
mov dword [esp + 0x11c], edx
mov dword [esp + 0x118], 1
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x1050ec3d
inc dword [edi + 0x106c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 1
lea eax, [edi + 0xc]
push eax
call fcn.1053b940
add esp, 4
nop dword [eax]
push 0
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x124]
push eax
mov eax, dword [edi + 8]
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1050ec7f
call fcn.105283a5
cmp dword [eax], 4
je 0x1050ec50
jmp 0x1050ec83
test esi, esi
jns 0x1050ec9c
lea eax, [edi + 0xc]
mov dword [edi], 1
push eax
xor esi, esi
call fcn.1053b920
add esp, 4
jmp 0x1050ed6d
lea eax, [edi + 0xc]
push eax
call fcn.1053b920
add esp, 4
test esi, esi
je 0x1050ed6d
mov eax, dword [esp + 0x10]
cmp dword [eax], 1
je 0x1050ecbd
test ebx, ebx
jne 0x1050ece0
lea eax, [esp + 0x118]
push eax
push dword [edi + 8]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1050ece0
push edi
call fcn.1050f330
add esp, 4
neg eax
sbb esi, esi
neg esi
lea eax, [esp + 0x14]
push eax
push dword [edi + 8]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1050ed6d
test esi, esi
je 0x1050ed6b
mov eax, dword [ebx]
test eax, eax
je 0x1050ed4a
nop dword [eax + eax]
mov esi, dword [ebp]
mov edx, dword [esi + 4]
test edx, edx
je 0x1050ed3e
push 0
push edx
push dword [esi]
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_send]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x1050ed58
test ecx, ecx
jle 0x1050ed65
cdq
add dword [edi + 0x50a0], eax
adc dword [edi + 0x50a4], edx
sub dword [esi + 4], ecx
add dword [esi], ecx
mov edx, dword [esi + 4]
mov eax, dword [ebx]
test edx, edx
jne 0x1050ed46
add dword [ebp], 8
dec dword [ebx]
mov eax, dword [ebx]
test eax, eax
jne 0x1050ed00
mov dword [ebp], 0
mov esi, 1
jmp 0x1050ed71
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1050ed51
mov dword [edi], 1
xor esi, esi
test ebx, ebx
je 0x1050ed77
dec dword [edi + 0x106c]
dec dword [edi + 0x14]
mov eax, esi
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x210
ret