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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x692c00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x40c], eax
push edi
mov edi, dword [ebp + 8]
test esi, esi
jne 0x4891aa
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b34c8
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00489380
or ebx, 0xffffffff
cmp dword [ebp - 0x40c], 0
jne 0x4891dd
mov edx, dword [0x6957f8]
movzx eax, byte [edi]
lea edi, [edi + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [edx + ecx*4]
sub esi, 1
jne 0x4891c2
jmp 0x489366
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edx, dword [0x6957f8]
add esp, 0xc
nop dword [eax]
movzx eax, byte [edi]
lea edi, [edi + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
inc dword [ebp + eax*4 - 0x404]
xor ebx, dword [edx + ecx*4]
sub esi, 1
jne 0x489200
mov edx, dword [ebp - 0x3ec]
mov ecx, 7
add edx, dword [ebp - 0x3f0]
xorps xmm2, xmm2
add edx, dword [ebp - 0x3f4]
xorps xmm3, xmm3
add edx, dword [ebp - 0x3f8]
xorps xmm1, xmm1
add edx, dword [ebp - 0x3fc]
add edx, dword [ebp - 0x400]
add edx, dword [ebp - 0x404]
nop word [eax + eax]
movups xmm0, xmmword [ebp + ecx*4 - 0x404]
paddd xmm3, xmm0
movups xmm0, xmmword [ebp + ecx*4 - 0x3f4]
add ecx, 8
paddd xmm1, xmm0
cmp ecx, 0x7f
jl 0x489260
paddd xmm1, xmm3
xor esi, esi
movaps xmm0, xmm1
xor edi, edi
psrldq xmm0, 8
paddd xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
paddd xmm1, xmm0
movd dword [ebp - 0x408], xmm1
cmp ecx, 0x80
jge 0x4892fc
mov eax, 0x80
sub eax, ecx
cmp eax, 2
jl 0x4892d6
nop dword [eax]
add esi, dword [ebp + ecx*4 - 0x404]
add edi, dword [ebp + ecx*4 - 0x400]
add ecx, 2
cmp ecx, 0x7f
jl 0x4892c0
cmp ecx, 0x80
jae 0x4892ef
movd eax, xmm1
add eax, dword [ebp + ecx*4 - 0x404]
mov dword [ebp - 0x408], eax
mov ecx, dword [ebp - 0x408]
lea eax, [edi + esi]
add ecx, eax
jmp 0x489302
mov ecx, dword [ebp - 0x408]
mov eax, 0x80
movaps xmm1, xmm2
nop word [eax + eax]
movups xmm0, xmmword [ebp + eax*4 - 0x404]
paddd xmm2, xmm0
movups xmm0, xmmword [ebp + eax*4 - 0x3f4]
add eax, 8
paddd xmm1, xmm0
cmp eax, 0x100
jl 0x489310
paddd xmm1, xmm2
shr ecx, 2
movaps xmm0, xmm1
psrldq xmm0, 8
paddd xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
paddd xmm1, xmm0
movd eax, xmm1
add edx, eax
cmp ecx, edx
mov ecx, dword [ebp - 0x40c]
sbb eax, eax
neg eax
mov word [ecx], ax
mov ecx, dword [ebp - 4]
not ebx
mov eax, ebx
xor ecx, ebp
pop ebx
pop edi
pop esi
call fcn.005b34c8
mov esp, ebp
pop ebp
ret
Function at 0x489380
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
mov cl, byte [0x6957f4]
mov al, byte [0x6957f5]
push esi
push edi
test cl, cl
jne 0x48951c
test al, al
jne 0x489524
cmp dword [0x6957f8], 0
jne 0x48954c
push 0x100
mov byte [0x6957f5], 1
call fcn.0040e110
mov edi, eax
add esp, 4
test edi, edi
je 0x48954c
xor eax, eax
mov dword [ebp - 4], eax
push ebx
xor ecx, ecx
test al, 1
je 0x4893dc
bts ecx, 7
shr eax, 1
test al, 1
je 0x4893e6
bts ecx, 6
shr eax, 1
test al, 1
je 0x4893f0
bts ecx, 5
shr eax, 1
test al, 1
je 0x4893fa
bts ecx, 4
shr eax, 1
test al, 1
je 0x489404
bts ecx, 3
shr eax, 1
test al, 1
je 0x48940e
bts ecx, 2
shr eax, 1
test al, 1
je 0x489418
bts ecx, 1
test al, 2
je 0x489420
bts ecx, 0
shl ecx, 0x18
mov eax, ecx
add ecx, ecx
sar eax, 0x1f
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
add eax, eax
sar ecx, 0x1f
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ebx, edx
sar ebx, 0x1f
and ebx, 0x4c11db7
lea eax, [edx + edx]
xor ebx, eax
mov eax, dword [ebp - 4]
xor edx, edx
lea esi, [edi + eax*4]
lea ecx, [edx + 1]
nop dword [eax + eax]
test bl, 1
je 0x4894bf
mov eax, 0x20
sub eax, ecx
bts edx, eax
inc ecx
shr ebx, 1
cmp ecx, 0x21
jl 0x4894b0
mov eax, dword [ebp - 4]
inc eax
mov dword [esi], edx
mov dword [ebp - 4], eax
cmp eax, 0xff
jbe 0x4893d2
cmp dword [0x6957f8], 0
pop ebx
jne 0x4894ff
mov dword [0x6957f8], edi
pop edi
mov byte [0x6957f4], 1
mov byte [0x6957f5], 0
pop esi
mov esp, ebp
pop ebp
ret
push edi
call fcn.005b34d6
add esp, 4
mov byte [0x6957f4], 1
mov byte [0x6957f5], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test al, al
je 0x48954c
test cl, cl
jne 0x48954c
xor esi, esi
test al, al
je 0x48954c
nop word [eax + eax]
push 2
call fcn.00447e20
inc esi
add esp, 4
cmp esi, 0xc8
ja 0x48954c
cmp byte [0x6957f5], 0
jne 0x489530
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x489560
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 8], ebx
test esi, esi
je 0x48965f
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x48965e
cmp edi, 0x10
jb 0x489637
mov eax, dword [ebx + 4]
mov ecx, edi
shr ecx, 4
mov dword [ebp - 4], ecx
nop dword [eax + eax]
mov edi, dword [ebp - 8]
lea ebx, [esi + 2]
mov esi, 4
nop dword [eax + eax]
movzx edx, byte [ebx - 2]
lea ebx, [ebx + 4]
movzx ecx, al
xor edx, ecx
shr eax, 8
mov ecx, dword [0x6957f8]
xor eax, dword [ecx + edx*4]
mov dword [edi + 4], eax
movzx edx, byte [ebx - 5]
movzx ecx, al
xor edx, ecx
shr eax, 8
mov ecx, dword [0x6957f8]
xor eax, dword [ecx + edx*4]
mov dword [edi + 4], eax
movzx ecx, byte [ebx - 4]
movzx edx, al
xor edx, ecx
shr eax, 8
mov ecx, dword [0x6957f8]
xor eax, dword [ecx + edx*4]
mov dword [edi + 4], eax
movzx edx, byte [ebx - 3]
movzx ecx, al
xor edx, ecx
shr eax, 8
mov ecx, dword [0x6957f8]
xor eax, dword [ecx + edx*4]
mov dword [edi + 4], eax
sub esi, 1
jne 0x4895b0
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
sub edi, 0x10
add esi, 0x10
mov dword [ebp + 0xc], edi
sub dword [ebp - 4], 1
mov dword [ebp + 8], esi
jne 0x4895a0
mov ebx, dword [ebp - 8]
test edi, edi
je 0x48965e
mov edx, dword [ebx + 4]
nop
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
mov eax, dword [0x6957f8]
xor edx, dword [eax + ecx*4]
mov dword [ebx + 4], edx
sub edi, 1
jne 0x489640
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x48ae60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bef4b
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x692c00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x100]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
push ecx
push 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x108], eax
push ecx
push 0
push edi
push eax
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x100], 0
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, eax
xor al, al
mov dword [ebp - 0x110], ecx
mov byte [ebp - 0x101], al
test ecx, ecx
jne 0x48b020
mov ecx, dword [ebp - 0x100]
test ecx, ecx
je 0x48b08c
push ecx
call fcn.0040dfe0
mov edi, eax
add esp, 4
test edi, edi
jne 0x48af0a
xor al, al
jmp 0x48b08c
lea eax, [ebp - 0x100]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x10c]
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x108], eax
test eax, eax
jne 0x48afaa
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x100]
cmp eax, 4
jne 0x48af65
cmp ecx, 4
jne 0x48af6f
push dword [edi]
mov ecx, esi
call fcn.0042af50
push edi
mov byte [ebp - 0x101], 1
call fcn.005b34d6
add esp, 4
jmp 0x48b086
cmp eax, 1
je 0x48af8d
cmp eax, 2
je 0x48af8d
push ecx
push edi
mov ecx, esi
call fcn.0042b510
push edi
mov byte [ebp - 0x101], 1
call fcn.005b34d6
add esp, 4
jmp 0x48b086
push edi
mov ecx, esi
call fcn.0042b030
push edi
mov byte [ebp - 0x101], 1
call fcn.005b34d6
add esp, 4
jmp 0x48b086
push 0x74
lea eax, [ebp - 0x88]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x88]
call fcn.0042aaf0
push dword [ebp - 0x108]
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 0
call fcn.0042baf0
mov esi, dword [ebx]
lea ecx, [ebp - 0x88]
call fcn.0042f610
push eax
push str.RegistryQueryError2
mov ecx, ebx
call dword [esi + 0x2c]
push dword [ebp - 0x10c]
mov eax, dword [ebx]
mov ecx, ebx
push str.ValueName
call dword [eax + 0x2c]
lea ecx, [ebp - 0x88]
call fcn.0042ab40
push edi
call fcn.005b34d6
add esp, 4
jmp 0x48b086
push 0x74
lea eax, [ebp - 0xfc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xfc]
call fcn.0042aaf0
push dword [ebp - 0x110]
lea ecx, [ebp - 0xfc]
mov dword [ebp - 4], 1
call fcn.0042baf0
mov esi, dword [ebx]
lea ecx, [ebp - 0xfc]
call fcn.0042f610
push eax
push str.RegistryQueryError
mov ecx, ebx
call dword [esi + 0x2c]
mov edx, dword [ebx]
mov ecx, ebx
push edi
push str.ValueName
call dword [edx + 0x2c]
lea ecx, [ebp - 0xfc]
call fcn.0042ab40
mov al, byte [ebp - 0x101]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b34c8
mov esp, ebp
pop ebp
ret
Function at 0x4a2210
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi + 8], 0x6119a407
je 0x4a2230
push 0
call fcn.00401520
add esp, 4
xor eax, eax
pop edi
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push esi
call fcn.0042f610
mov edx, eax
mov eax, 0x1505
movsx esi, byte [edx]
test esi, esi
je 0x4a225a
mov ecx, eax
lea edx, [edx + 1]
shl eax, 5
add eax, esi
movsx esi, byte [edx]
add eax, ecx
test esi, esi
jne 0x4a2247
xor edx, edx
div dword [edi + 0xc]
pop esi
mov eax, edx
pop edi
pop ebp
ret 4

Function at 0x4a2630
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b58ed
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x692c00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0042a1e0
lea ecx, [esi + 0xc]
mov dword [ebp - 4], 0
mov dword [esi], vtable.MimeHeader.0
mov dword [esi + 8], 0
call fcn.0045be20
mov byte [esi + 0x28], 1
mov eax, esi
mov dword [esi + 0x2c], vtable.MimeControl.0
mov word [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4aff30
Capabilities:
Hash data with md5

Disassembly:
mov dword [ecx], vtable._ckMd5.0
mov eax, ecx
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
ret

Function at 0x4b06f0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, ecx
xor ebx, ebx
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 4], 0x67452301
mov dword [edi + 8], 0xefcdab89
mov dword [edi + 0xc], 0x98badcfe
mov dword [edi + 0x10], 0x10325476
cmp dword [eax + 0x804], ebx
jbe 0x4b0751
push esi
lea esi, [eax + 4]
push dword [esi + 0x400]
mov ecx, edi
push dword [esi]
call fcn.004b0bb0
mov eax, dword [ebp + 8]
lea esi, [esi + 4]
inc ebx
cmp ebx, dword [eax + 0x804]
jb 0x4b0732
pop esi
push dword [ebp + 0xc]
mov ecx, edi
call fcn.004b0ab0
pop edi
pop ebx
pop ebp
ret 8

Function at 0x4b0770
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 4], 0x67452301
mov dword [esi + 8], 0xefcdab89
mov dword [esi + 0xc], 0x98badcfe
mov dword [esi + 0x10], 0x10325476
call fcn.004b0bb0
push dword [ebp + 0x10]
mov ecx, esi
call fcn.004b0ab0
pop esi
pop ebp
ret 0xc

Function at 0x4b07c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 4], 0x67452301
mov dword [edi + 8], 0xefcdab89
mov dword [edi + 0xc], 0x98badcfe
mov dword [edi + 0x10], 0x10325476
call fcn.00402fb0
mov ecx, dword [ebp + 8]
push eax
call fcn.00438ea0
push eax
mov ecx, edi
call fcn.004b0bb0
push dword [ebp + 0xc]
mov ecx, edi
call fcn.004b0ab0
pop edi
pop ebp
ret 8
Function at 0x4b0a50
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 4], 0x67452301
mov dword [edi + 8], 0xefcdab89
mov dword [edi + 0xc], 0x98badcfe
mov dword [edi + 0x10], 0x10325476
call fcn.0042f5b0
mov ecx, dword [ebp + 8]
push eax
call fcn.0042f610
push eax
mov ecx, edi
call fcn.004b0bb0
push dword [ebp + 0xc]
mov ecx, edi
call fcn.004b0ab0
pop edi
pop ebp
ret 8

Function at 0x4b0b80
Capabilities:
Hash data with md5

Disassembly:
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
ret

Function at 0x4b24c0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0xa70]
test eax, eax
je 0x4b24d5
mov ecx, eax
pop ebp
jmp fcn.0057baa0
cmp dword [ecx + 0xa7c], 2
jne 0x4b24ea
add ecx, 0x164
pop ebp
jmp fcn.00571e20
add ecx, 0x720
pop ebp
jmp fcn.00500100
Function at 0x4b2fc0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0xc
push edi
mov edi, dword [ebp + 0x18]
mov byte [eax], 0
cmp byte [edi + 8], 0
jne 0x4b2fed
mov ecx, dword [ebp + 0x1c]
push dword [0x68ff1c]
mov eax, dword [ecx]
call dword [eax + 0x14]
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0x18
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ecx - 0x78]
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 0x1c]
test ebx, ebx
jne 0x4b3045
mov eax, dword [ecx + 0x9f8]
push esi
push edi
test eax, eax
je 0x4b3014
mov ecx, eax
call fcn.0057baa0
jmp 0x4b3035
cmp dword [ecx + 0xa04], 2
jne 0x4b302a
add ecx, 0xec
call fcn.00571e20
jmp 0x4b3035
add ecx, 0x6a8
call fcn.00500100
test al, al
je 0x4b311c
mov ebx, 0x7530
mov dword [ebp + 0x10], ebx
mov ecx, dword [ebp + 8]
call fcn.00402fb0
mov ecx, dword [ebp - 8]
push esi
mov esi, dword [ebp + 8]
push edi
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push esi
call fcn.004b2b20
mov byte [ebp + 0x1b], al
test al, al
je 0x4b311c
mov ecx, esi
call fcn.00402fb0
cmp eax, dword [ebp - 4]
jbe 0x4b3092
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 4]
call eax
mov ecx, dword [ebp + 0x14]
pop esi
pop ebx
pop edi
mov byte [ecx], al
mov al, 1
mov esp, ebp
pop ebp
ret 0x18
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 0xc], eax
xor esi, esi
nop dword [eax]
mov ecx, dword [ebp + 8]
call fcn.00402fb0
cmp eax, dword [ebp - 4]
jne 0x4b30f1
cmp esi, ebx
jae 0x4b30f1
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 8]
mov bl, byte [edi + 0x20]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004b2b20
mov byte [ebp + 0x1b], al
test bl, bl
je 0x4b30d4
mov byte [edi + 0x20], 1
call sub.KERNEL32.DLL_GetTickCount
mov esi, eax
mov eax, dword [ebp - 0xc]
cmp esi, eax
jb 0x4b311c
mov ebx, dword [ebp + 0x10]
sub esi, eax
cmp esi, ebx
jae 0x4b310b
cmp byte [ebp + 0x1b], 0
jne 0x4b30a0
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 4]
call eax
mov ecx, dword [ebp + 0x14]
pop esi
pop ebx
pop edi
mov byte [ecx], al
mov al, byte [ebp + 0x1b]
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp + 0x1c]
push str.Timed_out......
mov eax, dword [ecx]
call dword [eax + 0x14]
mov byte [edi + 0x14], 1
pop esi
pop ebx
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0x18

Function at 0x4b4a40
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0xa70]
test eax, eax
je 0x4b4a55
mov ecx, eax
pop ebp
jmp fcn.00582060
cmp dword [ecx + 0xa7c], 2
jne 0x4b4a6a
add ecx, 0x164
pop ebp
jmp fcn.00572500
add ecx, 0x720
pop ebp
jmp fcn.00502290
Function at 0x4bf6a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b8970
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x692c00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx + 8]
mov edi, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x4bf748
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4bf744
test edi, edi
je 0x4bf744
push 0x74
lea eax, [ebp - 0x84]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x84]
call fcn.0042aaf0
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], 0
call fcn.0042bba0
mov esi, dword [edi]
lea ecx, [ebp - 0x84]
call fcn.0042f610
push eax
mov ecx, edi
call dword [esi + 0x14]
mov eax, dword [edi]
mov ecx, edi
push str.Failed_to_get_file_size__32_
call dword [eax + 0x14]
lea ecx, [ebp - 0x84]
call fcn.0042ab40
mov eax, ebx
jmp 0x4bf765
mov eax, dword [ecx + 4]
test eax, eax
je 0x4bf762
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__filelength]
add esp, 8
jmp 0x4bf765
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b34c8
mov esp, ebp
pop ebp
ret 4

Function at 0x4bf790
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c2f70
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x692c00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 8]
mov edi, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x4bf884
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4bf876
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x4bf876
test edi, edi
je 0x4bf854
push 0x74
lea eax, [ebp - 0x88]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x88]
call fcn.0042aaf0
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 0
call fcn.0042bba0
mov esi, dword [edi]
lea ecx, [ebp - 0x88]
call fcn.0042f610
push eax
mov ecx, edi
call dword [esi + 0x14]
mov eax, dword [edi]
mov ecx, edi
push str.Failed_to_get_file_size__64_
call dword [eax + 0x14]
lea ecx, [ebp - 0x88]
call fcn.0042ab40
or eax, 0xffffffff
or edx, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b34c8
mov esp, ebp
pop ebp
ret 4
push dword [ebp - 0x14]
push esi
call fcn.00460750
add esp, 8
jmp 0x4bf859
mov eax, dword [esi + 4]
test eax, eax
je 0x4bf854
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
push dword [esi + 4]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__filelengthi64]
add esp, 0xc
jmp 0x4bf859
Function at 0x4bf9b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x692c00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov edx, ecx
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
mov byte [eax], 0
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [edi], 0
test ebx, ebx
jne 0x4bfa0e
test ecx, ecx
je 0x4bfb5d
mov eax, dword [ecx]
push str.NULL_buf_pointer.
call dword [eax + 0x14]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b34c8
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4bfb72
mov dword [ebp - 0x18], 0x10000
cmp esi, 0x10000
mov byte [eax], 0
mov ecx, esi
cmova ecx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], eax
test ebx, ebx
je 0x4bfb47
mov edx, dword [edx + 8]
cmp edx, 0xffffffff
je 0x4bfa98
push eax
lea eax, [ebp - 8]
push eax
push ecx
push ebx
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x4bfa8f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x26
je 0x4bfacb
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4bfb58
push eax
call fcn.00449590
mov eax, dword [ebp - 8]
add dword [edi], eax
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b34c8
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4bfad4
jmp 0x4bface
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 4]
test edx, edx
je 0x4bfb1c
push edx
push ecx
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0x1c]
je 0x4bfad4
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
add esp, 4
test eax, eax
jne 0x4bfaf6
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov byte [ecx], 1
add dword [edi], eax
sub esi, eax
add ebx, eax
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0
jne 0x4bfb72
test esi, esi
je 0x4bfb72
mov edx, dword [ebp - 0x14]
jmp 0x4bfa20
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4bfb58
call fcn.004492c0
mov eax, dword [ebp - 8]
add dword [edi], eax
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b34c8
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4bfb5b
mov eax, dword [ecx]
push str.No_file_is_open.
call dword [eax + 0x14]
mov eax, dword [ebp - 8]
add dword [edi], eax
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b34c8
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4bfb5b
mov eax, dword [ecx]
push str.NULL_buf_or_bufSize
call dword [eax + 0x14]
mov eax, dword [ebp - 8]
add dword [edi], eax
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b34c8
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b34c8
mov esp, ebp
pop ebp
ret 0x14