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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d9915
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1010607c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 8]
mov esi, edx
cmp dword [edx + 0x14], 0x10
jb 0x1005c5e7
mov esi, dword [edx]
xor ecx, ecx
mov edi, 0x811c9dc5
cmp dword [edx + 0x10], ecx
jbe 0x1005c605
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, dword [edx + 0x10]
jb 0x1005c5f3
push edi
push edx
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.1005e4c0
mov esi, dword [ebp - 0x14]
test esi, esi
jne 0x1005c6fe
cmp dword [ebx + 8], 0x71c71c7
je 0x1005c715
lea eax, [ebx + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], esi
push 0x24
mov dword [ebp - 0x1c], esi
call fcn.100ab566
add esp, 4
mov esi, eax
mov dword [ebp - 0x1c], esi
push dword [ebp + 8]
lea ecx, [esi + 8]
call fcn.10005d00
mov dword [esi + 0x20], 0
mov dword [ebp - 4], 1
mov eax, dword [ebx + 8]
inc eax
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100fe260]
mov eax, dword [ebx + 0x1c]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100fe260]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [ebx]
jbe 0x1005c6b9
mov ecx, ebx
call fcn.1005db30
push edi
lea eax, [esi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1005e4c0
mov edx, dword [eax]
jmp 0x1005c6bc
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx + 8]
mov ecx, dword [edx + 4]
inc eax
mov dword [ebx + 8], eax
mov dword [esi], edx
mov dword [esi + 4], ecx
mov dword [ecx], esi
mov dword [edx + 4], esi
mov eax, dword [ebx + 0x18]
mov dword [ebp + 8], ecx
and eax, edi
mov ecx, dword [ebx + 0xc]
mov edi, dword [ecx + eax*8]
cmp edi, dword [ebx + 4]
jne 0x1005c6e8
mov dword [ecx + eax*8], esi
jmp 0x1005c6fa
cmp edi, edx
jne 0x1005c6f1
mov dword [ecx + eax*8], esi
jmp 0x1005c6fe
mov edx, dword [ebp + 8]
cmp dword [ecx + eax*8 + 4], edx
jne 0x1005c6fe
mov dword [ecx + eax*8 + 4], esi
lea eax, [esi + 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.unordered_map_set_too_long
call fcn.1005f39c
int3
Function at 0x1005d150
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
mov eax, ecx
push ebx
push esi
push edi
cmp dword [edx + 0x14], 0x10
mov edi, edx
mov ebx, dword [edx + 0x10]
mov dword [ebp - 8], eax
jb 0x1005d16e
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test ebx, ebx
je 0x1005d194
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x1005d180
mov eax, dword [ebp - 8]
push esi
push edx
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.1005e4c0
xor ecx, ecx
pop edi
pop esi
cmp dword [eax + 4], ecx
pop ebx
setne cl
mov eax, ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x1005ecf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov edi, edx
call fcn.1005f250
mov dword [ebp - 8], eax
lea ecx, [ebp - 8]
lea eax, [ebp - 0xc]
push eax
call fcn.100108c0
mov dword [ebp - 0x1c], 0
mov esi, dword [eax]
test edi, edi
jne 0x1005ed21
mov byte [ebp - 0x10], 0
jmp 0x1005ed3b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], edi
push eax
push 0x40
push edi
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0x10]
push edi
push 0x90
push esi
call fcn.100ae160
add esp, 0xc
cmp byte [ebp - 0x10], 0
je 0x1005ed67
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp - 8], eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1005ed70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov bl, dl
call fcn.1005f250
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.100108c0
mov dword [ebp - 0x14], 1
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 1
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov byte [esi], bl
cmp byte [ebp - 0xc], 0
je 0x1005edce
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 4], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1005ede0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov edi, edx
call fcn.1005f250
mov dword [ebp - 8], eax
lea ecx, [ebp - 8]
lea eax, [ebp - 0xc]
push eax
call fcn.100108c0
mov dword [ebp - 0x18], 4
mov esi, dword [eax]
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0x10]
mov dword [esi], edi
cmp byte [ebp - 0x10], 0
je 0x1005ee3e
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp - 8], eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1005ee50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
movss dword [ebp - 8], xmm1
call fcn.1005f250
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 0xc]
push eax
call fcn.100108c0
mov dword [ebp - 0x18], 4
mov esi, dword [eax]
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
movss xmm0, dword [ebp - 8]
test eax, eax
setne byte [ebp - 0x10]
movss dword [esi], xmm0
cmp byte [ebp - 0x10], 0
je 0x1005eeb7
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp - 8], eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1005eec0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
call fcn.1005f250
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.100108c0
mov dword [ebp - 0x14], 1
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 1
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov bl, byte [esi]
test eax, eax
je 0x1005ef1a
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 4], ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1005ef30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
call fcn.1005f250
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.100108c0
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x1005ef89
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 4], ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1005ef90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
call fcn.1005f250
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.100108c0
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x1005efe9
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 4], ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1005eff0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
call fcn.1005f250
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 0xc]
push eax
call fcn.100108c0
mov dword [ebp - 0x18], 4
mov esi, dword [eax]
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0x10]
movss xmm0, dword [esi]
movss dword [ebp - 8], xmm0
test eax, eax
je 0x1005f055
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp - 4], eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
movss xmm0, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1005f060
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov dword [ebp - 8], edx
call fcn.1005f250
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 0xc]
push eax
call fcn.100108c0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], 0
mov esi, dword [eax]
test edi, edi
jne 0x1005f095
mov byte [ebp - 0x10], 0
jmp 0x1005f0af
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], edi
push eax
push 0x40
push edi
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0x10]
push edi
push dword [ebp - 8]
push esi
call fcn.100adbd0
add esp, 0xc
cmp byte [ebp - 0x10], 0
je 0x1005f0d9
mov eax, dword [ebp - 0x14]
lea ecx, [ebp + 8]
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp + 8], eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1005f0e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov ecx, 0x667bf0
call fcn.1005f250
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.100108c0
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x1005f13e
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 4], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, 0x53e58955
jne 0x1005f150
mov eax, 0x64
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x667c40
call fcn.1005ef90
cmp eax, 0x53e58955
jne 0x1005f16b
mov eax, 0x6e
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x666ba0
call fcn.1005ef90
xor ecx, ecx
mov edx, 0x78
cmp eax, 0x53e58955
pop esi
cmove ecx, edx
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x100688b0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x1505
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 0xc]
jae 0x10068903
mov edx, dword [ebp - 8]
shl edx, 5
add edx, dword [ebp - 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov cl, byte [eax]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
push edx
call fcn.10076d10
add esp, 4
movsx eax, al
xor eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
jmp 0x100688c6
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 0x100
div ecx
mov eax, edx
mov esp, ebp
pop ebp
ret
Function at 0x1006d0a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x14
mov cl, byte [esp + 0x20]
mov eax, 0x1d4
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
test cl, cl
mov edx, 0x20c
cmovne eax, edx
push edi
mov esi, dword [esi + 0x91c]
mov edi, dword [esp + 0x2c]
add eax, edi
mov dword [esp + 0x20], eax
mov ebp, dword [esi + 0x14]
test cl, cl
je 0x1006d0dd
mov eax, dword [edi + 0xac]
jmp 0x1006d0e0
mov eax, dword [edi + 0x64]
push eax
call dword [0x10106054]
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x1006d11b
cmp byte [edi + 0x250], 0
je 0x1006d128
push dword [edi + 0x7c]
call dword [0x10106054]
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1006d130
push ebx
call dword [0x1010604c]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x14
ret
mov dword [esp + 0x14], 0
cmp byte [edi + 0x251], 0
je 0x1006d145
mov ecx, dword [edi + 0xcc]
mov dword [esp + 0x18], ecx
jmp 0x1006d14d
mov dword [esp + 0x18], 0xffffffff
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x78]
test eax, eax
je 0x1006d163
test byte [eax + 4], 0x10
je 0x1006d163
add eax, 0x74
jmp 0x1006d169
lea eax, [edx + 0x920]
mov ebx, dword [edx + 0x4d8]
mov ecx, 1
mov dword [esp + 0x10], eax
cmp ebx, ecx
jbe 0x1006d1a2
mov eax, dword [edx + 0x91c]
add eax, 0x6c
cmp dword [eax - 8], 0
je 0x1006d19e
mov edx, dword [eax]
cmp edx, ebp
jge 0x1006d196
mov ebp, edx
lea esi, [eax - 0x14]
inc ecx
add eax, 0x58
cmp ecx, ebx
jb 0x1006d185
mov edx, dword [esp + 0x28]
cmp ecx, ebx
jne 0x1006d1f2
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1006d1fb
push eax
mov eax, dword [0x1010605c]
mov eax, dword [eax + 0x48]
call eax
lea eax, [esi + 0x20]
mov dword [esi + 0xc], 0
push eax
mov dword [esi + 0x14], 0
call fcn.1006cc20
push dword [esi]
call dword [0x1010604c]
push dword [esi + 4]
mov dword [esi], 0
call dword [0x1010604c]
add esp, 0x10
mov dword [esi + 4], 0
jmp 0x1006d1fb
imul esi, ecx, 0x58
add esi, dword [edx + 0x91c]
mov eax, dword [esp + 0x34]
push dword [esi]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov dword [esi + 0x14], eax
call dword [0x1010604c]
push dword [esi + 4]
call dword [0x1010604c]
mov ebx, dword [esp + 0x24]
add esp, 8
cmp byte [esp + 0x30], 0
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esi], ebx
mov dword [esi + 4], ebp
mov dword [esi + 0x1c], eax
je 0x1006d249
mov eax, dword [edi + 0xc4]
jmp 0x1006d24f
mov eax, dword [edi + 0xc8]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x290]
lea edi, [esi + 0x20]
push edi
push dword [esp + 0x24]
mov eax, dword [eax]
mov dword [esi + 8], eax
call fcn.1006ca00
add esp, 8
test al, al
jne 0x1006d29c
push edi
call fcn.1006cc20
push ebx
mov dword [esi + 0xc], 0
call dword [0x1010604c]
push ebp
call dword [0x1010604c]
add esp, 0xc
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
Function at 0x10072bc0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp byte [edi + 0x712], 0
je 0x10072c46
cmp dword [edi + 0x1b0], 0
je 0x10072c0d
push esi
push 1
push edi
call fcn.10064540
push dword [edi + 0x14c]
mov eax, dword [edi + 0x1b0]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.10064540
add esp, 0x24
mov eax, esi
pop esi
pop edi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x10072c46
push dword [edi + 0x148]
lea eax, [eax + eax*2]
push 1
add eax, 0x100dda00
push 2
push eax
call fcn.100bad9d
push dword [edi + 0x148]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.100bad9d
add esp, 0x20
xor eax, eax
pop edi
ret

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

Disassembly:
sub esp, 0x104
mov eax, dword [0x1010607c]
xor eax, esp
mov dword [esp + 0x100], eax
mov ecx, dword [esp + 0x10c]
push ebx
push ebp
mov ebp, dword [esp + 0x110]
push esi
mov esi, dword [esp + 0x124]
push edi
mov eax, dword [ebp + 0xc]
mov edi, dword [esp + 0x120]
push ecx
push eax
mov ebx, dword [eax + ecx*4 + 0x148]
push ebp
call fcn.10073420
add esp, 0xc
test eax, eax
je 0x10073018
mov dword [esi], 0x1b
or eax, 0xffffffff
jmp 0x1007307d
push 0
push dword [esp + 0x128]
push edi
push ebx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
mov dword [esi], 0
cmp edi, 0xffffffff
jne 0x1007307b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x10073050
xor edi, edi
mov dword [esi], 0x51
jmp 0x1007307b
push 0x100
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.10084a90
push eax
push str.Send_failure:__s
push ebp
call fcn.10072c50
mov dword [ebp + 0x964], ebx
add esp, 0x18
mov dword [esi], 0x37
mov eax, edi
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100ab558
add esp, 0x104
ret

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

Disassembly:
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push ebx
push esi
lea esi, [edx + 0x17]
mov eax, dword [ecx + 0x290]
mov ebx, dword [ecx + edx*4 + 0x148]
shl esi, 4
add esi, ecx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x44], 3
je 0x100734d5
cmp dword [ecx + edx*4 + 0x160], 0x10072ee0
jne 0x100734d5
cmp dword [esi], 0
je 0x10073466
test edi, edi
je 0x100734d5
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.100819f0
add esp, 0x14
cmp eax, 0xffffffff
je 0x100734d5
test al, 1
je 0x100734d5
cmp dword [esi], 0
jne 0x100734be
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x4e0]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x10106048]
add esp, 4
mov dword [esi], eax
test eax, eax
jne 0x100734ad
pop edi
pop esi
mov eax, 0x1b
pop ebx
ret
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x100734d5
add dword [esi + 8], eax
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x10073650
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x19c], 0
je 0x1007366d
push eax
call fcn.1006d330
add esp, 4
test eax, eax
jne 0x1007368f
xor al, al
ret
mov eax, dword [eax + 0x148]
cmp eax, 0xffffffff
je 0x1007366a
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x1007368f
xor al, al
ret
mov al, 1
ret

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

Disassembly:
sub esp, 0x188
mov eax, dword [0x1010607c]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
mov ebx, dword [esp + 0x190]
lea eax, [esp + 8]
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [esp + 0x1a4]
push 0x80
push 0
push eax
mov dword [esp + 0x18], 0x80
call fcn.100ae160
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1a4]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10073977
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.10084a90
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x100739b8
push edi
push esi
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
call fcn.100734e0
add esp, 0x10
test al, al
jne 0x100739c1
call fcn.100bcf67
mov esi, eax
call fcn.100bcf67
mov edi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push dword [esi]
call fcn.10084a90
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.10072c50
add esp, 0x1c
mov ecx, dword [esp + 0x190]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100ab558
add esp, 0x188
ret
Function at 0x10074db0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x1010607c]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
xor eax, eax
push edi
mov edi, dword [esp + 0x28]
push 4
cmp byte [esi + 0x720], al
setne al
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10074e10
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.10072d10
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.100ab558
add esp, 0x18
ret
push dword [esi + 0x6b8]
mov dword [esp + 0x14], 1
call fcn.10075040
push dword [esi + 0x6bc]
imul eax, eax, 0x3e8
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
call fcn.10075040
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x28]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x10074e87
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.10072d10
add esp, 0x10
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.100ab558
add esp, 0x18
ret

Function at 0x10074ea0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x108
mov eax, dword [0x1010607c]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
lea eax, [esp + 4]
push 4
push eax
push 1
push 6
push dword [esp + 0x124]
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10074f05
push 0x100
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.10084a90
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.10072d10
add esp, 0x18
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.100ab558
add esp, 0x108
ret
Function at 0x100752b0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x100dde54
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x100752ca
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x100dde70
push esi
call fcn.100c0be0
add esp, 8
test eax, eax
je 0x10075312
test ebp, ebp
je 0x10075303
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x10075338
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10075338
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x100753ef
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10075355
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x10106048]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100753e5
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100753e5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10075387
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100753a0
sub ecx, edx
add ecx, ebx
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x100753b0
test ebp, ebp
je 0x100753dc
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x1010604c]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x1010604c]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret