joyce8/EMBER2024-capa huggingface dataset:
Function at 0x496b90
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x2c], 0
mov esi, ecx
mov dword [ebp - 0x28], edi
mov dword [ebp - 8], esi
cmp dword [edi + 0x14], 0x10
jb 0x496bb7
mov eax, dword [edi]
jmp 0x496bb9
mov eax, edi
push dword [edi + 0x10]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0xf
push eax
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x20], 0
call fcn.00406180
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x24], ecx
test ecx, ecx
je 0x496ce8
cmp dword [eax + 0x14], 0x10
jb 0x496bf3
mov eax, dword [eax]
mov dword [ebp + 8], eax
xor bh, bh
xor eax, eax
nop word [eax + eax]
mov byte [ebp + eax - 0x134], al
inc eax
cmp eax, 0x100
jb 0x496c00
mov edi, dword [ebp + 8]
xor esi, esi
mov word [ebp - 0x34], 0
nop word [eax + eax]
mov eax, esi
mov bl, byte [ebp + esi - 0x134]
xor edx, edx
div ecx
lea ecx, [ebp - 0x134]
movzx eax, byte [edx + edi]
add al, bl
add bh, al
movzx eax, bh
add ecx, eax
movzx eax, byte [ecx]
mov byte [ebp + esi - 0x134], al
inc esi
mov byte [ecx], bl
mov ecx, dword [ebp - 0x24]
cmp esi, 0x100
jb 0x496c20
mov edi, dword [ebp - 0x28]
lea ebx, [ebp - 0x20]
cmp dword [ebp - 0xc], 0x10
cmovae ebx, dword [ebp - 0x20]
cmp dword [edi + 0x14], 0x10
mov eax, dword [edi + 0x10]
jb 0x496c71
mov edi, dword [edi]
mov esi, dword [ebp - 8]
test eax, eax
je 0x496ce8
mov dl, byte [ebp - 0x34]
sub edi, ebx
mov esi, eax
nop
inc dl
lea ebx, [ebx + 1]
mov byte [ebp - 0x34], dl
movzx eax, dl
lea edx, [ebp - 0x134]
add edx, eax
mov al, byte [ebp - 0x33]
add al, byte [edx]
mov byte [ebp - 0x33], al
mov cl, byte [edx]
movzx eax, al
movzx eax, byte [ebp + eax - 0x134]
mov byte [edx], al
movzx eax, byte [ebp - 0x33]
mov byte [ebp + eax - 0x134], cl
movzx ecx, byte [ebp - 0x33]
mov dl, byte [ebp - 0x34]
movzx eax, dl
movzx ecx, byte [ebp + ecx - 0x134]
add cl, byte [ebp + eax - 0x134]
movzx eax, cl
movzx eax, byte [ebp + eax - 0x134]
xor al, byte [edi + ebx - 1]
mov byte [ebx - 1], al
sub esi, 1
jne 0x496c80
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x20]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov ecx, esi
push eax
mov byte [esi], 0
call fcn.004065e0
mov eax, dword [ebp - 0xc]
cmp eax, 0x10
jb 0x496d19
inc eax
lea ecx, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
call fcn.004067d0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x496e10
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5831f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
push esi
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
push edi
mov byte [ebx], 0
mov dword [ebp - 4], 0
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], 1
test edi, edi
je 0x496fe0
nop dword [eax]
mov al, byte [edx]
dec edi
mov byte [ebp + esi - 0x14], al
inc edx
mov ch, byte [ebp - 0x12]
inc esi
mov ah, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov dword [ebp - 0x20], edx
mov byte [ebp - 0xe], ch
mov byte [ebp + 0xb], ah
mov byte [ebp - 0xd], cl
cmp esi, 3
jne 0x496f0a
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, ah
shl cl, 4
shr al, 4
add cl, al
mov al, ch
mov byte [ebp - 0x17], cl
mov cl, ah
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ch
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
xor esi, esi
nop word [eax + eax]
cmp dword [0x75511c], 0x10
mov ecx, 0x755108
movzx eax, byte [ebp + esi - 0x18]
cmovae ecx, dword [0x755108]
movzx eax, byte [eax + ecx]
mov ecx, ebx
push eax
push 1
call fcn.00413e70
inc esi
cmp esi, 4
jl 0x496ed0
mov edx, dword [ebp - 0x20]
xor esi, esi
mov ah, byte [ebp + 0xb]
mov cl, byte [ebp - 0xd]
mov ch, byte [ebp - 0xe]
test edi, edi
jne 0x496e70
mov dword [ebp + 8], esi
test esi, esi
je 0x496fe0
mov edi, 3
cmp esi, edi
jge 0x496f4d
mov ecx, edi
xor eax, eax
sub ecx, esi
lea edi, [ebp - 0x14]
mov edx, ecx
add edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ch, byte [ebp - 0x12]
mov edi, 3
mov ah, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, ah
shr al, 4
and ah, 0xf
shl cl, 4
add cl, al
shl ah, 2
mov al, ch
mov byte [ebp - 0x17], cl
shr al, 6
and ch, 0x3f
add ah, al
mov byte [ebp - 0x15], ch
mov byte [ebp - 0x16], ah
lea eax, [esi + 1]
mov dword [ebp - 0x20], eax
test eax, eax
jle 0x496fc3
xor edi, edi
mov esi, eax
nop dword [eax]
cmp dword [0x75511c], 0x10
mov ecx, 0x755108
movzx eax, byte [ebp + edi - 0x18]
cmovae ecx, dword [0x755108]
movzx eax, byte [eax + ecx]
mov ecx, ebx
push eax
push 1
call fcn.00413e70
inc edi
cmp edi, esi
jl 0x496f90
mov esi, dword [ebp + 8]
mov edi, 3
cmp esi, 3
jge 0x496fe0
sub edi, esi
nop word [eax + eax]
push 0x3d
push 1
mov ecx, ebx
call fcn.00413e70
sub edi, 1
jne 0x496fd0
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x499e70
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x5cb074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0
push 0
sub esp, 8
mov dword [ebp - 0x38], esi
mov edx, esp
mov dword [edx], edi
test edi, edi
jne 0x499e9f
xor ecx, ecx
jmp 0x499ebc
cmp byte [edi], 0
jne 0x499ea8
xor ecx, ecx
jmp 0x499ebc
mov ecx, edi
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x499eb0
sub ecx, esi
mov esi, dword [ebp - 0x38]
lea eax, [ebp - 0x1c]
mov dword [edx + 4], ecx
push eax
call fcn.00428be0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x499ed3
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x1c]
mov ebx, eax
call fcn.00405310
test ebx, ebx
jne 0x499efd
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049fa97
mov esp, ebp
pop ebp
ret 8
test esi, esi
je 0x499fa6
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049fd23
add esp, 4
mov esi, eax
push ebx
push esi
sub esp, 8
mov edx, esp
mov dword [edx], edi
test edi, edi
je 0x499f49
cmp byte [edi], 0
jne 0x499f38
xor edi, edi
jmp 0x499f49
lea ecx, [edi + 1]
nop dword [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x499f40
sub edi, ecx
lea eax, [ebp - 0x1c]
mov dword [edx + 4], edi
push eax
call fcn.00428be0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x499f60
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x1c]
call fcn.00405310
push esi
lea ecx, [ebp - 0x1c]
call fcn.004053a0
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x34]
call fcn.00428ae0
mov ecx, dword [ebp - 0x38]
push eax
call fcn.00412560
lea ecx, [ebp - 0x34]
call fcn.004054f0
lea ecx, [ebp - 0x1c]
call fcn.00405310
test esi, esi
je 0x499fa6
push esi
call fcn.00496b70
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049fa97
mov esp, ebp
pop ebp
ret 8
Function at 0x49a860
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov ecx, 0x40
push esi
push edi
mov esi, 0x5bb508
mov byte [ebp - 1], 0
mov edi, ebx
mov dword [ebx + 0x200], 1
mov dword [ebx + 0x204], 1
mov word [ebx + 0x208], 0
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x10]
xor esi, esi
nop
xor edx, edx
mov cl, byte [esi + ebx]
mov eax, esi
div edi
mov eax, dword [ebp + 0xc]
movzx eax, byte [edx + eax]
mov dl, byte [ebp - 1]
add al, cl
add dl, al
mov byte [ebp - 1], dl
movzx edx, dl
movzx eax, byte [edx + ebx]
mov byte [esi + ebx], al
inc esi
mov byte [edx + ebx], cl
cmp esi, 0x100
jb 0x49a8a0
lea edi, [ebx + 0x100]
mov esi, ebx
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49a8f0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x200]
sub edx, eax
mov bh, byte [edi + 0x208]
add ecx, eax
sub esi, eax
mov dword [ebp + 8], ecx
mov dword [ebp + 0x10], esi
cmp eax, ecx
jae 0x49a958
sub edx, esi
mov dword [ebp + 0xc], edx
movzx esi, al
mov bl, byte [esi + edi]
add bh, bl
movzx edx, bh
movzx ecx, byte [edx + edi]
mov byte [esi + edi], cl
mov byte [edx + edi], bl
movzx ecx, byte [esi + edi]
mov edx, dword [ebp + 0x10]
add cl, bl
mov esi, dword [ebp + 0xc]
add edx, eax
movzx ecx, cl
inc eax
movzx ecx, byte [ecx + edi]
xor cl, byte [esi + edx]
mov byte [edx], cl
cmp eax, dword [ebp + 8]
jb 0x49a923
mov byte [edi + 0x208], bh
mov dword [edi + 0x200], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x49a970
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x204]
lea esi, [edi + 0x100]
mov bh, byte [edi + 0x209]
add ecx, eax
mov dword [ebp - 4], esi
sub edx, eax
mov esi, dword [ebp + 0x10]
sub esi, eax
mov dword [ebp + 0x14], ecx
mov dword [ebp + 0x10], esi
cmp eax, ecx
jae 0x49a9ea
sub edx, esi
mov edi, edx
nop dword [eax]
mov edx, dword [ebp - 4]
movzx esi, al
add esi, edx
mov bl, byte [esi]
add bh, bl
movzx ecx, bh
add edx, ecx
movzx ecx, byte [edx]
mov byte [esi], cl
mov byte [edx], bl
movzx ecx, byte [esi]
mov edx, dword [ebp + 0x10]
add cl, bl
mov esi, dword [ebp - 4]
add edx, eax
movzx ecx, cl
inc eax
movzx ecx, byte [ecx + esi]
xor cl, byte [edi + edx]
mov byte [edx], cl
cmp eax, dword [ebp + 0x14]
jb 0x49a9b0
mov edi, dword [ebp + 8]
mov byte [edi + 0x209], bh
mov dword [edi + 0x204], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49ac20
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x5cb074]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], edx
lea ecx, [esp + 0x24]
xor bl, bl
call fcn.00405400
lea ecx, [esp + 0x24]
call fcn.00419f70
test al, al
je 0x49ac87
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041b6d0
cmp dword [esp + 0x1c], 0
je 0x49ac7e
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov bl, 1
lea ecx, [esp + 0xc]
call fcn.00405310
cmp dword [esi + 0x14], 8
jb 0x49ac8f
mov esi, dword [esi]
push esi
call dword [esp + 0xc]
mov esi, eax
test bl, bl
je 0x49acaf
cmp dword [esp + 0x38], 8
lea ecx, [esp + 0x24]
cmovae ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [esp + 0x24]
call fcn.00405310
mov ecx, dword [esp + 0x3c]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0049fa97
mov esp, ebp
pop ebp
ret

Function at 0x4a27ce
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
push esi
push 8
mov ecx, edx
pop esi
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor ecx, eax
sub esi, 1
jne 0x4a27d6
mov dword [edx*4 + 0x755800], ecx
inc edx
cmp edx, 0x100
jb 0x4a27d1
mov esi, 0x800
jmp 0x4a281f
mov ecx, dword [edx*4 + 0x755400]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x755800]
mov dword [edx*4 + 0x755800], ecx
inc edx
cmp edx, esi
jb 0x4a2803
mov dword [0x7429b8], 0x4a34e9
call fcn.004a3362
mov ecx, dword [0x7429b8]
test eax, eax
mov edx, 0x4a3582
cmove ecx, edx
mov dword [0x7429b8], ecx
pop esi
ret
Function at 0x4a3842
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x10
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
mov esi, dword [esi]
and esi, 7
cmp eax, 5
jae 0x4a3863
xor eax, eax
jmp 0x4a39b8
add dword [ebp + 0x10], 5
lea ecx, [eax - 4]
mov edx, dword [ebp + 8]
push ebx
or ebx, 0xffffffff
add ecx, edx
mov dword [ebp - 8], ecx
add edx, edi
mov dword [ebp - 4], edx
cmp edx, ecx
jae 0x4a388f
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x4a388c
inc edx
cmp edx, ecx
jb 0x4a387f
mov dword [ebp - 4], edx
mov edi, edx
sub edi, dword [ebp + 8]
cmp edx, ecx
jae 0x4a399c
mov ecx, edi
sub ecx, ebx
cmp ecx, 3
jbe 0x4a38c7
xor esi, esi
mov al, byte [edx + 4]
mov ebx, edi
mov dword [ebp - 0x10], ebx
test al, al
je 0x4a3904
cmp al, 0xff
je 0x4a3904
and esi, 3
xor eax, eax
add esi, esi
or esi, 1
inc eax
jmp 0x4a3995
dec ecx
shl esi, cl
and esi, 7
je 0x4a38a7
movzx eax, byte [esi + 0x589030]
mov ecx, edx
sub ecx, eax
cmp byte [esi + 0x589028], 0
mov al, byte [ecx + 4]
je 0x4a38ee
test al, al
je 0x4a38ee
cmp al, 0xff
jne 0x4a38a7
and esi, 3
mov ebx, edi
add esi, esi
or esi, 1
inc edi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
jmp 0x4a3876
movzx ebx, al
movzx eax, byte [edx + 3]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 1]
mov edx, dword [ebp + 0x10]
shl ebx, 8
or ebx, eax
cmp dword [ebp + 0x18], 0
je 0x4a3931
add ebx, edi
add ebx, edx
jmp 0x4a3935
sub ebx, edi
sub ebx, edx
mov dword [ebp + 0xc], ebx
test esi, esi
je 0x4a396b
movzx eax, byte [esi + 0x589030]
shl eax, 3
push 0x18
pop ecx
sub ecx, eax
mov dword [ebp - 0xc], eax
mov eax, ebx
shr eax, cl
test al, al
je 0x4a395a
cmp al, 0xff
jne 0x4a396b
xor ebx, ebx
push 0x20
pop ecx
sub ecx, dword [ebp - 0xc]
inc ebx
shl ebx, cl
dec ebx
xor ebx, dword [ebp + 0xc]
jmp 0x4a3925
mov edx, dword [ebp - 4]
mov eax, ebx
shr eax, 0x18
and al, 1
dec al
not al
mov byte [edx + 1], bl
mov byte [edx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edx + 3], al
mov eax, ebx
mov ebx, dword [ebp - 0x10]
shr eax, 8
push 5
mov byte [edx + 2], al
pop eax
add edi, eax
jmp 0x4a38f9
mov edx, edi
xor eax, eax
sub edx, ebx
pop ebx
lea ecx, [edx - 1]
shl esi, cl
and esi, 7
cmp edx, 3
cmova esi, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4ac0a5
push esi
call fcn.004ac321
pop ecx
test al, al
jne 0x4ac0a5
push ebx
push edi
lea eax, [ebp + 8]
push eax
push esi
call fcn.004ac2c0
pop ecx
mov esi, eax
mov ebx, 0x1505
pop ecx
mov ecx, dword [ebp + 8]
xor eax, eax
and dword [ebp + 8], 0
add ecx, esi
mov edi, ecx
sub edi, esi
cmp esi, ecx
cmova edi, eax
test edi, edi
je 0x4ac09e
mov al, byte [esi]
push eax
call fcn.004b7589
imul ebx, ebx, 0x21
pop ecx
movsx ecx, al
mov eax, dword [ebp + 8]
xor ebx, ecx
inc esi
inc eax
mov dword [ebp + 8], eax
cmp eax, edi
jb 0x4ac081
pop edi
movzx eax, bl
pop ebx
jmp 0x4ac0a7
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4acdb5
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4acdd6
cmp dword [esi + 0x8c], 0
je 0x4acdd6
push 2
push 3
push esi
call fcn.004b7a59
add esp, 0xc
push dword [ebp + 0xc]
call fcn.004b7e68
pop ecx
test esi, esi
je 0x4acdf6
cmp dword [esi + 0x8c], 0
je 0x4acdf6
push 3
push esi
call fcn.004b7a94
pop ecx
pop ecx
pop esi
pop ebp
ret
Function at 0x4b4fe3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi + 0x608], edi
je 0x4b5022
push 1
push esi
call fcn.004a8a46
push dword [esi + 0x59c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [esi + 0x608]
push 0
push esi
mov edi, eax
call fcn.004a8a46
add esp, 0x24
jmp 0x4b5058
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x4b5058
push dword [esi + 0x598]
imul eax, eax, 3
push 1
push 2
add eax, 0x58a354
push eax
call fcn.00530c0b
push dword [esi + 0x598]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00530c0b
add esp, 0x20
mov eax, edi
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x5cb074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [ebx + eax*4 + 0x1a8]
push eax
push ebx
mov dword [ebp - 0x88], ecx
call fcn.004b58dc
pop ecx
pop ecx
push 0
push dword [ebp + 0x14]
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov eax, dword [ebp - 0x88]
and dword [eax], 0
cmp esi, 0xffffffff
jne 0x4b54d3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x4b549d
mov eax, dword [ebp - 0x88]
xor esi, esi
mov dword [eax], 0x51
jmp 0x4b54d3
push 0x80
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.004d7b21
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.004b505e
mov eax, dword [ebx]
add esp, 0x18
mov dword [eax + 0xcac], edi
mov eax, dword [ebp - 0x88]
mov dword [eax], 0x37
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049fa97
mov esp, ebp
pop ebp
ret
Function at 0x4b58dc
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
add edi, edi
mov eax, dword [esi + 0x2a8]
mov edx, dword [esi + ecx*4 + 0x1a8]
mov dword [ebp + 8], edx
mov ebx, dword [esi + edi*8 + 0x1d0]
sub ebx, dword [esi + edi*8 + 0x1d4]
test byte [eax + 0x40], 3
je 0x4b59c4
cmp dword [esi + ecx*4 + 0x1bc], 0x4b5363
jne 0x4b59c4
xor eax, eax
cmp dword [esi + edi*8 + 0x1cc], eax
je 0x4b5938
test ebx, ebx
je 0x4b59c4
push eax
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.004b4c03
add esp, 0x14
cmp eax, 0xffffffff
je 0x4b59c4
test al, 1
je 0x4b59c4
xor ecx, ecx
cmp dword [esi + edi*8 + 0x1cc], ecx
jne 0x4b599f
mov eax, dword [esi]
mov eax, dword [eax + 0x8e4]
add eax, eax
push eax
mov dword [esi + edi*8 + 0x1d0], eax
call dword [0x5cb0cc]
mov ebx, dword [esi + edi*8 + 0x1d0]
pop ecx
xor ecx, ecx
mov dword [esi + edi*8 + 0x1cc], eax
mov dword [esi + edi*8 + 0x1d4], ecx
mov dword [esi + edi*8 + 0x1d8], ecx
test eax, eax
jne 0x4b599f
mov dword [esi + edi*8 + 0x1d0], ecx
jmp 0x4b59c4
mov eax, dword [esi + edi*8 + 0x1cc]
add eax, dword [esi + edi*8 + 0x1d4]
push ecx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4b59c4
add dword [esi + edi*8 + 0x1d4], eax
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test byte [eax + 0x1f8], 1
je 0x4b5aa6
push eax
call fcn.004af2de
pop ecx
test eax, eax
jne 0x4b5ac2
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x4b5aa2
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
jmp 0x4b5a9e
mov al, 1
pop ebp
ret

Function at 0x4b61a3
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
mov eax, dword [0x742ad0]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 0xc], 4
push esi
push 2
pop esi
test eax, eax
jne 0x4b61ea
push 3
push esi
push eax
push 6
call fcn.004b72ff
add esp, 0x10
test al, al
je 0x4b61e2
mov dword [0x742ad0], esi
jmp 0x4b622a
xor eax, eax
inc eax
mov dword [0x742ad0], eax
cmp eax, esi
je 0x4b622a
push ebx
lea eax, [ebp - 0xc]
mov esi, 0x1001
push eax
lea eax, [ebp - 4]
mov ebx, 0xffff
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4b6218
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x4b6229
push 4
lea eax, [ebp - 8]
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b63fe
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
mov eax, dword [0x5cb074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
cmp dword [ebx + 0x90], 2
mov edi, dword [ebx]
mov dword [ebp - 0x18c], edi
je 0x4b6597
test dword [ebx + 0x284], 0x8000002
push esi
jne 0x4b658f
lea eax, [ebp - 0x188]
mov esi, 0x80
push eax
lea eax, [ebp - 0x184]
mov dword [ebp - 0x188], esi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4b6485
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push esi
call fcn.004d7b21
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
jmp 0x4b64d9
push esi
lea eax, [ebp - 0x104]
mov dword [ebp - 0x188], esi
push 0
push eax
call fcn.005296a0
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4b64df
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push esi
call fcn.004d7b21
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
jmp 0x4b6585
lea eax, [ebx + 0x138]
push eax
lea esi, [ebx + 0x10a]
lea eax, [ebp - 0x184]
push esi
push eax
call fcn.004b69ea
add esp, 0xc
test al, al
jne 0x4b652b
call fcn.0052c4dd
mov esi, eax
call fcn.0052c4dd
mov edi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push dword [esi]
call fcn.004d7b21
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x4b657f
push 0xb
pop ecx
lea edi, [ebx + 0x5c]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x16c]
push eax
lea eax, [ebx + 0x13c]
push eax
lea eax, [ebp - 0x104]
movsw word es:[edi], word [esi]
push eax
call fcn.004b69ea
add esp, 0xc
test al, al
jne 0x4b658f
call fcn.0052c4dd
mov esi, eax
call fcn.0052c4dd
mov edi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push dword [esi]
call fcn.004d7b21
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x18c]
call fcn.004b505e
add esp, 0x1c
jmp 0x4b6596
push ebx
call fcn.004b6130
pop ecx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0049fa97
mov esp, ebp
pop ebp
ret