joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4888f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
call dword [sym.imp.MSVCR120.dll_localeconv]
mov edx, dword [ebp + 8]
xor edi, edi
xor esi, esi
xorps xmm1, xmm1
mov eax, dword [eax]
movsx eax, byte [eax]
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
movzx eax, byte [edx]
test byte [eax + 0x4dca31], 8
je 0x48893e
lea esp, [esp]
movzx eax, byte [edx + 1]
inc edx
test byte [eax + 0x4dca31], 8
jne 0x488930
mov al, byte [edx]
cmp al, 0x2d
jne 0x48894e
inc edx
mov dword [ebp - 0xc], 1
jmp 0x488956
cmp al, 0x2b
jne 0x488953
inc edx
mov dword [ebp - 0xc], esi
cmp byte [edx], 0x30
jne 0x488a86
mov al, byte [edx + 1]
cmp al, 0x78
je 0x48896e
cmp al, 0x58
jne 0x488a86
movsd xmm2, qword [0x4da6e0]
add edx, 2
lea esp, [esp]
mov al, byte [edx]
movsx ecx, al
mov byte [ebp + 0xb], al
cmp ecx, dword [ebp - 0x10]
jne 0x48899d
cmp dword [ebp - 4], 0
jne 0x4889ef
mov dword [ebp - 4], 1
inc edx
jmp 0x488980
movzx eax, al
test byte [eax + 0x4dca31], 0x10
je 0x4889ef
test edi, edi
jne 0x4889b8
cmp byte [ebp + 0xb], 0x30
jne 0x4889b8
inc dword [ebp - 8]
jmp 0x4889e5
inc edi
cmp edi, 0x1e
jg 0x4889e4
test byte [ecx + 0x4dca31], 2
je 0x4889cc
add ecx, 0xffffffd0
jmp 0x4889d2
or ecx, 0x20
sub ecx, 0x57
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm1, xmm0
jmp 0x4889e5
inc esi
cmp dword [ebp - 4], 0
je 0x4889ec
dec esi
inc edx
jmp 0x488980
mov eax, dword [ebp - 8]
add eax, edi
je 0x488a86
mov eax, dword [ebp + 0xc]
shl esi, 2
mov dword [eax], edx
mov al, byte [edx]
cmp al, 0x70
je 0x488a0c
cmp al, 0x50
jne 0x488a60
mov al, byte [edx + 1]
inc edx
xor ecx, ecx
cmp al, 0x2d
jne 0x488a1c
inc edx
lea edi, [ecx + 1]
jmp 0x488a23
cmp al, 0x2b
jne 0x488a21
inc edx
xor edi, edi
mov al, byte [edx]
mov byte [ebp + 0xb], al
movzx eax, al
test byte [eax + 0x4dca31], 2
je 0x488a86
movsx eax, byte [ebp + 0xb]
lea ecx, [ecx + ecx*4]
inc edx
lea ecx, [ecx - 0x18]
lea ecx, [eax + ecx*2]
mov al, byte [edx]
mov byte [ebp + 0xb], al
movzx eax, al
test byte [eax + 0x4dca31], 2
jne 0x488a34
test edi, edi
je 0x488a59
neg ecx
mov eax, dword [ebp + 0xc]
add esi, ecx
mov dword [eax], edx
cmp dword [ebp - 0xc], 0
je 0x488a6e
xorpd xmm1, xmmword [0x4e4580]
push esi
sub esp, 8
movsd qword [esp], xmm1
call dword [sym.imp.MSVCR120.dll_ldexp]
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
fldz
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x48aae0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp + 0xc]
cmp byte [ecx + 0x3d], 1
mov eax, dword [eax]
mov eax, dword [eax]
ja 0x48ab08
test byte [eax + 5], 3
je 0x48ab08
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.0048afa0
pop ebp
ret
Function at 0x48ab40
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x60]
test esi, esi
je 0x48ac2b
jmp 0x48ab60
mov al, byte [esi + 5]
test al, 3
je case.0x48ab89.10
and al, 0xfc
mov edx, esi
mov byte [esi + 5], al
movzx eax, byte [esi + 4]
sub eax, 4
cmp eax, 0x22
ja case.0x48ab89.10
movzx eax, byte [eax + 0x48ac54]
jmp dword [eax*4 + 0x48ac34]
mov eax, dword [edx + 8]
test eax, eax
je 0x48aba7
test byte [eax + 5], 3
je 0x48aba7
push eax
push edi
call fcn.0048afa0
add esp, 8
or byte [edx + 5], 4
mov eax, dword [edx + 0xc]
add eax, 0x18
add dword [edi + 0x10], eax
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0xc], eax
movzx eax, byte [edx + 6]
test al, 0x40
je case.0x48ab89.10
mov al, byte [ecx + 5]
test al, 3
je case.0x48ab89.10
and al, 0xfc
mov edx, ecx
mov byte [ecx + 5], al
movzx eax, byte [ecx + 4]
sub eax, 4
cmp eax, 0x22
jbe 0x48ab82
jmp case.0x48ab89.10
movzx eax, byte [edx + 7]
or byte [edx + 5], 4
add eax, 0x11
add dword [edi + 0x10], eax
jmp case.0x48ab89.10
mov eax, dword [edx + 0xc]
or byte [edx + 5], 4
add eax, 0x11
add dword [edi + 0x10], eax
jmp case.0x48ab89.10
mov eax, dword [edi + 0x4c]
mov dword [edx + 8], eax
jmp 0x48ac1e
mov eax, dword [edi + 0x4c]
mov dword [edx + 0x1c], eax
jmp 0x48ac1e
mov eax, dword [edi + 0x4c]
mov dword [edx + 0x28], eax
jmp 0x48ac1e
mov eax, dword [edi + 0x4c]
mov dword [edx + 0x4c], eax
mov dword [edi + 0x4c], edx
mov esi, dword [esi]
test esi, esi
jne 0x48ab60
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x48ac80
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 9
push edi
lea edi, [esi + 0xe8]
jmp 0x48aca0
mov edx, dword [edi]
test edx, edx
je 0x48ad6f
test byte [edx + 5], 3
je 0x48ad6f
movzx eax, byte [edx + 4]
and byte [edx + 5], 0xfc
sub eax, 4
cmp eax, 0x22
ja 0x48ad6f
jmp 0x48acd0
movzx eax, byte [eax + 0x48ada0]
jmp dword [eax*4 + 0x48ad80]
add edi, 4
dec ebx
jne 0x48aca0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48afa0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 4]
and byte [esi + 5], 0xfc
sub eax, 4
cmp eax, 0x22
ja case.default.0x48afc9
push edi
mov edi, dword [ebp + 8]
movzx eax, byte [eax + 0x48b0a8]
jmp dword [eax*4 + 0x48b088]
mov eax, dword [esi + 8]
test eax, eax
je 0x48afe7
test byte [eax + 5], 3
je 0x48afe7
push eax
push edi
call fcn.0048afa0
add esp, 8
or byte [esi + 5], 4
mov eax, dword [esi + 0xc]
add eax, 0x18
add dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
movzx eax, byte [esi + 6]
test al, 0x40
je case.0x48afc9.10
mov al, byte [ecx + 5]
test al, 3
je case.0x48afc9.10
and al, 0xfc
mov esi, ecx
mov byte [ecx + 5], al
movzx eax, byte [ecx + 4]
sub eax, 4
cmp eax, 0x22
jbe 0x48afc2
pop edi
pop esi
mov esp, ebp
pop ebp
ret
movzx eax, byte [esi + 7]
or byte [esi + 5], 4
add eax, 0x11
add dword [edi + 0x10], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xc]
or byte [esi + 5], 4
add eax, 0x11
add dword [edi + 0x10], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x4c]
mov dword [esi + 8], eax
mov dword [edi + 0x4c], esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x1c], eax
mov dword [edi + 0x4c], esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x28], eax
mov dword [edi + 0x4c], esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x4c], eax
mov dword [edi + 0x4c], esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x48b0d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x68]
lea ebx, [edi + 0x68]
test ecx, ecx
je 0x48b21c
push esi
lea ebx, [ebx]
test byte [ecx + 5], 7
jne 0x48b104
cmp dword [ecx + 0x24], 0
je 0x48b104
lea ebx, [ecx + 0x2c]
jmp 0x48b211
mov eax, dword [ecx + 0x2c]
mov dword [ebx], eax
mov esi, dword [ecx + 0x24]
mov dword [ecx + 0x2c], ecx
test esi, esi
je 0x48b211
jmp 0x48b120
cmp dword [esi + 0xc], 0
je 0x48b206
mov edx, dword [esi]
test byte [edx + 8], 0x40
je 0x48b1ff
mov edx, dword [edx]
test byte [edx + 5], 3
je 0x48b1ff
movzx eax, byte [edx + 4]
and byte [edx + 5], 0xfc
sub eax, 4
cmp eax, 0x22
ja 0x48b1ff
jmp 0x48b160
movzx eax, byte [eax + 0x48b244]
jmp dword [eax*4 + 0x48b224]
mov dword [esi + 0xc], 0
mov esi, dword [esi + 8]
test esi, esi
jne 0x48b120
mov ecx, dword [ebx]
test ecx, ecx
jne 0x48b0f0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48b7d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp byte [esi + 6], bl
jbe 0x48b8d6
push edi
lea edi, [esi + 0x10]
mov esi, dword [ebp + 8]
lea ecx, [ecx]
test byte [edi + 8], 0x40
je case.0x48b827.10
mov edx, dword [edi]
test byte [edx + 5], 3
je case.0x48b827.10
movzx eax, byte [edx + 4]
and byte [edx + 5], 0xfc
sub eax, 4
cmp eax, 0x22
ja case.0x48b827.10
lea ebx, [ebx]
movzx eax, byte [eax + 0x48b904]
jmp dword [eax*4 + 0x48b8e4]
mov eax, dword [edx + 8]
test eax, eax
je 0x48b845
test byte [eax + 5], 3
je 0x48b845
push eax
push esi
call fcn.0048afa0
add esp, 8
or byte [edx + 5], 4
mov eax, dword [edx + 0xc]
add eax, 0x18
add dword [esi + 0x10], eax
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0xc], eax
movzx eax, byte [edx + 6]
test al, 0x40
je case.0x48b827.10
mov al, byte [ecx + 5]
test al, 3
je case.0x48b827.10
and al, 0xfc
mov edx, ecx
mov byte [ecx + 5], al
movzx eax, byte [ecx + 4]
sub eax, 4
cmp eax, 0x22
jbe 0x48b820
jmp case.0x48b827.10
movzx eax, byte [edx + 7]
or byte [edx + 5], 4
add eax, 0x11
add dword [esi + 0x10], eax
jmp case.0x48b827.10
mov eax, dword [edx + 0xc]
or byte [edx + 5], 4
add eax, 0x11
add dword [esi + 0x10], eax
jmp case.0x48b827.10
mov eax, dword [esi + 0x4c]
mov dword [edx + 8], eax
jmp 0x48b8bc
mov eax, dword [esi + 0x4c]
mov dword [edx + 0x1c], eax
jmp 0x48b8bc
mov eax, dword [esi + 0x4c]
mov dword [edx + 0x28], eax
jmp 0x48b8bc
mov eax, dword [esi + 0x4c]
mov dword [edx + 0x4c], eax
mov dword [esi + 0x4c], edx
mov eax, dword [ebp + 0xc]
inc ebx
add edi, 0x10
movzx eax, byte [eax + 6]
cmp ebx, eax
jl 0x48b7f0
mov esi, dword [ebp + 0xc]
pop edi
movzx eax, byte [esi + 6]
inc eax
pop esi
shl eax, 4
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48bf30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
mov edx, eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, eax
shr esi, 5
inc esi
mov edi, dword [edi + 0x10]
mov dword [ebp - 4], edi
mov ebx, dword [edi + 0x38]
xor ebx, eax
cmp eax, esi
jb 0x48bf7e
mov edi, dword [ebp + 0xc]
lea esp, [esp]
movzx ecx, byte [edi + edx - 1]
mov eax, ebx
shl eax, 5
sub edx, esi
add ecx, eax
mov eax, ebx
shr eax, 2
add ecx, eax
xor ebx, ecx
cmp edx, esi
jae 0x48bf60
mov edi, dword [ebp - 4]
mov edx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
mov dword [ebp - 0xc], edx
lea ecx, [edx - 1]
and ecx, ebx
mov edi, dword [eax + ecx*4]
lea eax, [eax + ecx*4]
mov dword [ebp - 8], eax
test edi, edi
je 0x48c017
mov esi, dword [ebp + 0x10]
lea esp, [esp]
movzx eax, byte [edi + 7]
cmp esi, eax
jne 0x48c00d
mov ecx, dword [ebp + 0xc]
lea edx, [edi + 0x10]
sub esi, 4
jb 0x48bfc4
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x48bfcd
add ecx, 4
add edx, 4
sub esi, 4
jae 0x48bfb3
cmp esi, 0xfffffffc
je 0x48c090
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x48c00a
cmp esi, 0xfffffffd
je 0x48c090
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x48c00a
cmp esi, 0xfffffffe
je 0x48c090
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x48c00a
cmp esi, 0xffffffff
je 0x48c090
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x48c090
mov esi, dword [ebp + 0x10]
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x48bfa0
mov edx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
cmp dword [edi + 0x1c], edx
jl 0x48c045
cmp edx, 0x3fffffff
jg 0x48c045
lea eax, [edx + edx]
push eax
push dword [ebp + 8]
call fcn.0048c4b0
mov ecx, dword [edi + 0x20]
add esp, 8
mov eax, dword [edi + 0x18]
dec ecx
and ecx, ebx
lea eax, [eax + ecx*4]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
add eax, 0x11
push eax
push 4
push dword [ebp + 8]
call fcn.0048a7d0
mov esi, eax
mov dword [esi + 8], ebx
lea ecx, [esi + 0x10]
mov ebx, dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
mov byte [esi + 6], 0
push ecx
mov byte [esi + ebx + 0x10], 0
call sub.MSVCR120.dll_memcpy
mov ecx, dword [ebp - 8]
add esp, 0x18
mov byte [esi + 7], bl
mov eax, dword [ecx]
mov dword [esi + 0xc], eax
mov eax, esi
mov dword [ecx], esi
inc dword [edi + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, byte [edi + 5]
xor al, 3
mov cl, byte [ecx + 0x3c]
xor cl, 3
test al, cl
jne 0x48c0a5
mov byte [edi + 5], al
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48c1b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
xor eax, dword [ebp + 0x10]
push edi
mov edi, esi
shr edi, 5
inc edi
cmp esi, edi
jb 0x48c1ec
push ebx
mov ebx, dword [ebp + 8]
jmp 0x48c1d0
movzx edx, byte [ebx + esi - 1]
mov ecx, eax
shl ecx, 5
sub esi, edi
add edx, ecx
mov ecx, eax
shr ecx, 2
add edx, ecx
xor eax, edx
cmp esi, edi
jae 0x48c1d0
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x48c1f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 6], 0
jne 0x48c23a
mov edx, dword [edi + 8]
push ebx
push esi
mov esi, dword [edi + 0xc]
mov ebx, esi
shr ebx, 5
xor edx, esi
inc ebx
cmp esi, ebx
jb 0x48c22c
movzx ecx, byte [edi + esi + 0xf]
mov eax, edx
shl eax, 5
sub esi, ebx
add ecx, eax
mov eax, edx
shr eax, 2
add ecx, eax
xor edx, ecx
cmp esi, ebx
jae 0x48c211
pop esi
pop ebx
mov dword [edi + 8], edx
mov eax, edx
mov byte [edi + 6], 1
pop edi
pop ebp
ret
mov eax, dword [edi + 8]
pop edi
pop ebp
ret

Function at 0x499710
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call fcn.00483830
mov edi, dword [ebp + 0x10]
add esp, 4
mov esi, 1
sub eax, edi
je 0x4997e6
dec eax
push edi
push ebx
mov dword [ebp - 4], eax
call fcn.00484890
add esp, 8
cmp eax, 3
jne 0x4997b6
push edi
push ebx
call fcn.00483970
add esp, 8
push 0
push edi
push ebx
test eax, eax
je 0x499772
call fcn.00484690
push edx
push eax
push str._lld
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR120.dll_fprintf]
add esp, 0x1c
jmp 0x49978e
call fcn.00484780
add esp, 4
fstp qword [esp]
push str._.14g
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR120.dll_fprintf]
add esp, 0x10
test esi, esi
je 0x499796
test eax, eax
jg 0x4997df
xor esi, esi
mov eax, dword [ebp - 4]
inc edi
test eax, eax
jne 0x499733
test esi, esi
jne 0x4997e6
push esi
push esi
push ebx
call fcn.004853a0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 0x10]
push eax
push edi
push ebx
call fcn.00484fc0
add esp, 0xc
test esi, esi
je 0x499796
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
cmp eax, dword [ebp + 0x10]
jne 0x499796
mov esi, 1
jmp 0x499798
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x499bb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.004bb4f0
push esi
push edi
lea eax, [ebp - 0x2010]
push eax
push dword [ebp + 8]
call fcn.00484eb0
mov esi, dword [ebp + 0xc]
add esp, 8
mov edi, dword [sym.imp.MSVCR120.dll_fread]
lea ebx, [ebx]
lea eax, [ebp - 0x2010]
push 0x2000
push eax
call fcn.00485a10
push esi
push 0x2000
push 1
push eax
call edi
add dword [ebp - 0x2008], eax
add esp, 0x18
cmp eax, 0x2000
je 0x499be0
lea eax, [ebp - 0x2010]
push eax
call fcn.00485aa0
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x499c30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.004bb4f0
push esi
lea eax, [ebp - 0x2010]
push eax
push dword [ebp + 8]
call fcn.00484eb0
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x2010]
push esi
push eax
call fcn.00485a10
push dword [ebp + 0xc]
push esi
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fread]
mov esi, eax
lea eax, [ebp - 0x2010]
add dword [ebp - 0x2008], esi
push eax
call fcn.00485aa0
xor eax, eax
add esp, 0x24
cmp eax, esi
sbb eax, eax
neg eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a0850
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.MSVCR120.dll_getenv]
push edi
push dword [ebp + 0x10]
call esi
mov edi, dword [ebp + 8]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4a087b
push dword [ebp + 0x14]
call esi
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4a08db
push str.LUA_NOENV
push 0xfff0b9d8
push edi
call fcn.00483650
push 0xffffffffffffffff
push edi
call fcn.00484660
push 0xfffffffffffffffe
push edi
mov esi, eax
call fcn.004844c0
add esp, 0x1c
test esi, esi
jne 0x4a08db
push 0x4dc918
push 0x4dc91c
push ebx
push edi
call fcn.004854f0
push dword [ebp + 0x18]
push 0x4dc920
push eax
push edi
call fcn.004854f0
push 0xffffffffffffffff
push 0xfffffffffffffffe
push edi
call fcn.004841e0
push 0xfffffffffffffffe
push edi
call fcn.004844c0
add esp, 0x34
jmp 0x4a08e7
push dword [ebp + 0x18]
push edi
call fcn.00483e10
add esp, 8
push edi
call fcn.004a0900
push dword [ebp + 0xc]
push 0xfffffffffffffffe
push edi
call fcn.00484280
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4a7270
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push 4
push eax
push 4
push 0xffff
push dword [esi]
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x4a72dc
call sub.WS2_32.dll_WSAGetLastError
cmp dword [0x66ae84], 0
je 0x4a7319
cmp dword [0x66ae80], 3
jg 0x4a72dc
push eax
push eax
call fcn.004b63c0
add esp, 4
push eax
push dword [esi + 0x154]
push str.Setting_of_SO_REUSEADDR_failed___li_:__s___d_
push str.mksock_bind_addr
push 0x4d
push 0x4de794
push 3
call fcn.004a4c50
add esp, 0x20
cmp dword [0x66ae84], 0
je 0x4a7319
cmp dword [0x66ae80], 2
jg 0x4a7319
push dword [esi + 0x154]
push esi
call fcn.004a8dd0
add esp, 4
push eax
push str.Binding_to__s__IOD__li_
push str.mksock_bind_addr
push 0x50
push 0x4de794
push 2
call fcn.004a4c50
add esp, 0x1c
push dword [esi + 0x130]
lea eax, [esi + 0xb0]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x4a7380
call sub.WS2_32.dll_WSAGetLastError
cmp dword [0x66ae84], 0
je 0x4a7380
cmp dword [0x66ae80], 3
jg 0x4a7380
push eax
push eax
call fcn.004b63c0
add esp, 4
push eax
push dword [esi + 0x154]
push esi
call fcn.004a8dd0
add esp, 4
push eax
push str.Bind_to__s_failed__IOD__li_:__s___d_
push str.mksock_bind_addr
push 0x57
push 0x4de794
push 3
call fcn.004a4c50
add esp, 0x24
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4a7450
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push 4
push eax
push 0x20
push 0xffff
push dword [esi]
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x4a74bf
call sub.WS2_32.dll_WSAGetLastError
cmp dword [0x66ae84], 0
je 0x4a74bf
cmp dword [0x66ae80], 3
jg 0x4a74bf
push eax
push eax
call fcn.004b63c0
add esp, 4
push eax
push dword [esi + 0x154]
push str.Setting_of_SO_BROADCAST_failed__IOD__li_:__s___d_
push str.mksock_set_broadcast
push 0x86
push 0x4de794
push 3
call fcn.004a4c50
add esp, 0x20
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4a74d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
call dword [sym.imp.MSVCR120.dll__errno]
mov esi, dword [ebp + 0xc]
mov dword [eax], 0
push dword [esi + 0x168]
push dword [esi + 0x164]
push 1
push 0
push dword [esi]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x4a7543
call sub.WS2_32.dll_WSAGetLastError
cmp dword [0x66ae84], 0
je 0x4a7543
cmp dword [0x66ae80], 3
jg 0x4a7543
push eax
push eax
call fcn.004b63c0
add esp, 4
push eax
push dword [esi + 0x154]
push str.Setting_of_IP_options_failed__IOD__li_:__s___d_
push str.mksock_set_ipopts
push 0x66
push 0x4de794
push 3
call fcn.004a4c50
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4a7b20
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x66bf78]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x8c], 0x80
push edi
mov edi, dword [ebp + 0x14]
test esi, esi
jne 0x4a7b92
push 0x203
push str.src_nsock_connect.c
push str.socklen___0
call dword [sym.imp.MSVCR120.dll__wassert]
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov ecx, dword [ebp - 0x94]
mov edx, dword [ebp - 0x90]
cmp dword [edx + 0x134], 0
jbe 0x4a7c75
test ecx, ecx
je 0x4a7bc2
mov eax, dword [edx + 0x134]
cmp esi, eax
cmovb eax, esi
push eax
lea eax, [edx + 0x30]
push eax
push ecx
call sub.MSVCR120.dll_memcpy
mov edx, dword [ebp - 0x90]
add esp, 0xc
mov ecx, dword [ebp - 0x88]
test ecx, ecx
je 0x4a7bd4
mov eax, dword [edx + 0x138]
mov dword [ecx], eax
test ebx, ebx
je 0x4a7bde
movzx eax, word [edx + 0x30]
mov dword [ebx], eax
test edi, edi
je 0x4a7c5f
mov eax, dword [edx]
test eax, eax
js 0x4a7c02
lea ecx, [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x84]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x4a7c21
push esi
push 0
push edi
call sub.MSVCR120.dll_memset
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bb11e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x8c]
test eax, eax
jg 0x4a7c49
push 0x216
push str.src_nsock_connect.c
push str.slen___0
call dword [sym.imp.MSVCR120.dll__wassert]
mov eax, dword [ebp - 0x8c]
add esp, 0xc
cmp eax, esi
lea ecx, [ebp - 0x84]
cmovb esi, eax
push esi
push ecx
push edi
call sub.MSVCR120.dll_memcpy
add esp, 0xc
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bb11e
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x4a7c85
test ecx, ecx
jne 0x4a7c89
test eax, eax
jne 0x4a7c85
test ebx, ebx
je 0x4a7c5f
test ecx, ecx
je 0x4a7c95
push esi
push 0
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
test edi, edi
je 0x4a7ca5
push esi
push 0
push edi
call sub.MSVCR120.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x88]
test ecx, ecx
je 0x4a7cb5
mov dword [ecx], 0xffffffff
test ebx, ebx
je 0x4a7cbf
mov dword [ebx], 0xffffffff
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bb11e
mov esp, ebp
pop ebp
ret
Function at 0x4a9a40
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x66bf78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x34], 1
mov eax, dword [esi + 0xc0]
push esi
push ebx
mov edi, dword [eax]
mov dword [ebp - 0x14], 0x25a207b9
mov dword [ebp - 0x10], 0x4660ddf3
mov dword [ebp - 0xc], 0xe576e98e
mov dword [ebp - 8], 0x3e06748c
mov dword [ebp - 0x28], 0
call fcn.004aa580
mov ecx, dword [esi + 0xc0]
add esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ecx + 0x138], 6
lea eax, [ecx + 0x30]
mov edx, dword [ecx + 0x134]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], edx
je 0x4a9af0
push edx
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4a9ad5
call sub.WS2_32.dll_WSAGetLastError
jmp 0x4a9b8e
push esi
push ebx
call fcn.004aa210
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bb11e
mov esp, ebp
pop ebp
ret
push 0
push 0
lea eax, [ebp - 0x3c]
push eax
push 4
lea eax, [ebp - 0x28]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0xc8000006
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x4a9bb3
push 4
lea eax, [ebp - 0x34]
push eax
push 4
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x4a9acb
mov eax, dword [esi + 0xc0]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], 0
cmp dword [eax + 0x130], 0
jne 0x4a9b6b
push 0x10
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x4a9acb
push dword [ebp - 0x2c]
push 0
push 0
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x30]
push edi
call dword [ebp - 0x28]
test eax, eax
jne 0x4a9ba2
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x3e5
je 0x4a9ba2
or dword [esi + 0xe0], 1
mov dword [esi + 0xbc], eax
mov dword [esi + 8], 2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bb11e
mov esp, ebp
pop ebp
ret
push dword [esi + 4]
push str.Error_initiating_event_type__d_
call fcn.00402190
int3