joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d25f0
Capabilities:
Hash data using ripemd320
Hash data using sha1

Disassembly:
mov dword [ecx + 0x54], 0x67452301
mov dword [ecx + 0x58], 0xefcdab89
mov dword [ecx + 0x5c], 0x98badcfe
mov dword [ecx + 0x60], 0x10325476
mov dword [ecx + 0x64], 0xc3d2e1f0
mov dword [ecx + 0x68], 0x76543210
mov dword [ecx + 0x6c], 0xfedcba98
mov dword [ecx + 0x70], 0x89abcdef
mov dword [ecx + 0x74], 0x1234567
mov dword [ecx + 0x78], 0x3c2d1e0f
mov dword [ecx + 0x50], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
ret

Function at 0x4d2750
Capabilities:
Hash data with md5

Disassembly:
mov dword [ecx], vtable._ckMd4.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 0x4d27d0
Capabilities:
Hash data with md5

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 + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, ecx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4d28fa
push 0x4e28
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.0040dfe0
mov esi, eax
add esp, 4
test esi, esi
je 0x4d28fa
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], 0
mov byte [ebp - 9], 1
call fcn.004e5950
test al, al
jne 0x4d28d1
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 8]
push ebx
push eax
push 0x4e20
push esi
call fcn.004e5bb0
test al, al
je 0x4d28d1
mov eax, dword [ebp - 8]
test eax, eax
je 0x4d28b2
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4d2892
push eax
push esi
call fcn.004354f0
mov eax, dword [ebp - 8]
push eax
push esi
mov ecx, edi
call fcn.004d2fa0
test ebx, ebx
je 0x4d28b2
push dword [ebp - 0x14]
mov ecx, ebx
push 0
push dword [ebp - 8]
call fcn.004a8da0
test al, al
jne 0x4d28c0
mov ecx, dword [ebp - 0x10]
call fcn.004e5950
test al, al
je 0x4d2860
jmp 0x4d28d1
mov ecx, dword [ebp - 0x14]
push str.MD4_aborted_by_application
mov eax, dword [ecx]
call dword [eax + 0x14]
mov byte [ebp - 9], 0
push esi
call fcn.005b34d6
add esp, 4
mov ecx, edi
push dword [ebp - 0x1c]
call fcn.004d2910
mov al, byte [ebp - 9]
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 - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b34c8
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4d29e0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c360d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
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 edi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x3c]
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x40], eax
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x24], 0
movq qword [ebp - 0x2c], xmm0
call fcn.00434d00
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0
push eax
push 0
mov ecx, esi
call fcn.00406320
lea ecx, [ebp - 0x3c]
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
push eax
lea ecx, [ebp - 0x3c]
call fcn.00438ea0
push eax
mov ecx, edi
call fcn.004d2fa0
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.004d2910
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x20]
push 0x10
push eax
call fcn.004354f0
lea ecx, [ebp - 0x3c]
call fcn.00434f20
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 8
Function at 0x4d3790
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 8], 0x100
jg 0x4d37a2
pop ebp
jmp fcn.004d5800
pop ebp
jmp fcn.004d7b80
Function at 0x4d37b0
Capabilities:
Hash data using sha1
Hash data using sha224
Hash data using sha256

Disassembly:
mov edx, ecx
mov eax, dword [edx + 8]
cmp eax, 0x100
jg 0x4d384c
je 0x4d3805
sub eax, 0xa0
je 0x4d37d3
sub eax, 0x40
je 0x4d390c
ret
mov dword [edx + 0xc], 0x67452301
mov dword [edx + 0x10], 0xefcdab89
mov dword [edx + 0x14], 0x98badcfe
mov dword [edx + 0x18], 0x10325476
mov dword [edx + 0x1c], 0xc3d2e1f0
mov dword [edx + 0x2c], 0
mov dword [edx + 0x30], 0
ret
mov dword [edx + 0xc], 0x6a09e667
mov dword [edx + 0x10], 0xbb67ae85
mov dword [edx + 0x14], 0x3c6ef372
mov dword [edx + 0x18], 0xa54ff53a
mov dword [edx + 0x1c], 0x510e527f
mov dword [edx + 0x20], 0x9b05688c
mov dword [edx + 0x24], 0x1f83d9ab
mov dword [edx + 0x28], 0x5be0cd19
mov dword [edx + 0x2c], 0
mov dword [edx + 0x30], 0
ret
cmp eax, 0x180
je 0x4d3953
cmp eax, 0x200
jne 0x4d39fd
mov eax, dword [0x695f58]
mov ecx, dword [0x695f5c]
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], ecx
mov eax, dword [0x695f60]
mov ecx, dword [0x695f64]
mov dword [edx + 0x40], eax
mov dword [edx + 0x44], ecx
mov eax, dword [0x695f68]
mov ecx, dword [0x695f6c]
mov dword [edx + 0x48], eax
mov dword [edx + 0x4c], ecx
mov eax, dword [0x695f70]
mov ecx, dword [0x695f74]
mov dword [edx + 0x50], eax
mov dword [edx + 0x54], ecx
mov eax, dword [0x695f78]
mov ecx, dword [0x695f7c]
mov dword [edx + 0x58], eax
mov dword [edx + 0x5c], ecx
mov eax, dword [0x695f80]
mov ecx, dword [0x695f84]
mov dword [edx + 0x60], eax
mov dword [edx + 0x64], ecx
mov eax, dword [0x695f88]
mov ecx, dword [0x695f8c]
mov dword [edx + 0x68], eax
mov dword [edx + 0x6c], ecx
mov eax, dword [0x695f90]
mov ecx, dword [0x695f94]
mov dword [edx + 0x70], eax
mov dword [edx + 0x74], ecx
mov dword [edx + 0x78], 0
mov dword [edx + 0x7c], 0
mov dword [edx + 0x80], 0
mov dword [edx + 0x84], 0
mov dword [edx + 0xc], 0xc1059ed8
mov dword [edx + 0x10], 0x367cd507
mov dword [edx + 0x14], 0x3070dd17
mov dword [edx + 0x18], 0xf70e5939
mov dword [edx + 0x1c], 0xffc00b31
mov dword [edx + 0x20], 0x68581511
mov dword [edx + 0x24], 0x64f98fa7
mov dword [edx + 0x28], 0xbefa4fa4
mov dword [edx + 0x2c], 0
mov dword [edx + 0x30], 0
ret
mov eax, dword [0x695c98]
mov ecx, dword [0x695c9c]
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], ecx
mov eax, dword [0x695ca0]
mov ecx, dword [0x695ca4]
mov dword [edx + 0x40], eax
mov dword [edx + 0x44], ecx
mov eax, dword [0x695ca8]
mov ecx, dword [0x695cac]
mov dword [edx + 0x48], eax
mov dword [edx + 0x4c], ecx
mov eax, dword [0x695cb0]
mov ecx, dword [0x695cb4]
mov dword [edx + 0x50], eax
mov dword [edx + 0x54], ecx
mov eax, dword [0x695cb8]
mov ecx, dword [0x695cbc]
mov dword [edx + 0x58], eax
mov dword [edx + 0x5c], ecx
mov eax, dword [0x695cc0]
mov ecx, dword [0x695cc4]
mov dword [edx + 0x60], eax
mov dword [edx + 0x64], ecx
mov eax, dword [0x695cc8]
mov ecx, dword [0x695ccc]
mov dword [edx + 0x68], eax
mov dword [edx + 0x6c], ecx
mov eax, dword [0x695cd0]
mov ecx, dword [0x695cd4]
mov dword [edx + 0x70], eax
mov dword [edx + 0x74], ecx
mov dword [edx + 0x78], 0
mov dword [edx + 0x7c], 0
mov dword [edx + 0x80], 0
mov dword [edx + 0x84], 0
ret
Function at 0x4d55c0
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x692c00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x154], ebx
xor esi, esi
lea edx, [ebx + 0x88]
movzx ecx, byte [edx]
lea edx, [edx + 4]
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 1]
shl ecx, 8
or ecx, eax
mov dword [ebp + esi*4 - 0x144], ecx
inc esi
cmp esi, 0x10
jl 0x4d55e6
lea eax, [ebp - 0x13c]
mov edx, 0x40
nop
mov ecx, dword [eax + 0x2c]
lea eax, [eax + 4]
xor ecx, dword [eax + 0x14]
xor ecx, dword [eax - 0xc]
xor ecx, dword [eax - 4]
rol ecx, 1
mov dword [eax + 0x34], ecx
sub edx, 1
jne 0x4d5620
mov eax, dword [ebx + 0xc]
mov ecx, eax
mov edi, dword [ebx + 0x10]
mov esi, dword [ebx + 0x14]
mov ebx, dword [ebx + 0x18]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x148], edx
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x14c], eax
mov edx, ecx
mov eax, esi
and eax, edi
rol edx, 5
mov ecx, edi
not ecx
and ecx, ebx
or ecx, eax
mov eax, dword [ebp - 0x148]
add edx, ecx
add edx, dword [ebp + eax*4 - 0x144]
mov eax, dword [ebp - 0x14c]
add eax, 0x5a827999
mov dword [ebp - 0x14c], ebx
add edx, eax
mov ebx, esi
mov eax, dword [ebp - 0x148]
mov esi, edi
mov edi, dword [ebp - 0x150]
inc eax
ror esi, 2
mov ecx, edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x148], eax
cmp eax, 0x14
jl 0x4d5668
mov dword [ebp - 0x148], 0x14
nop dword [eax]
mov eax, ebx
rol edx, 5
xor eax, esi
xor eax, edi
add edx, eax
mov eax, dword [ebp - 0x148]
add edx, dword [ebp + eax*4 - 0x144]
mov eax, dword [ebp - 0x14c]
add eax, 0x6ed9eba1
mov dword [ebp - 0x14c], ebx
add edx, eax
mov ebx, esi
mov eax, dword [ebp - 0x148]
mov esi, edi
inc eax
ror esi, 2
mov dword [ebp - 0x148], eax
mov edi, ecx
mov ecx, edx
cmp eax, 0x28
jl 0x4d56d0
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x148], 0x28
mov ecx, esi
rol edx, 5
or ecx, edi
mov eax, esi
and eax, edi
and ecx, ebx
or ecx, eax
add edx, 0x8f1bbcdc
mov eax, dword [ebp - 0x148]
add edx, dword [ebp - 0x14c]
mov dword [ebp - 0x14c], ebx
mov ebx, esi
mov esi, edi
mov edi, dword [ebp - 0x150]
add ecx, dword [ebp + eax*4 - 0x144]
inc eax
add edx, ecx
ror esi, 2
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x148], eax
cmp eax, 0x3c
jl 0x4d5728
mov dword [ebp - 0x148], 0x3c
mov ecx, dword [ebp - 0x148]
mov eax, ebx
xor eax, esi
rol edx, 5
add edx, dword [ebp - 0x14c]
xor eax, edi
add eax, 0xca62c1d6
mov dword [ebp - 0x14c], ebx
add eax, dword [ebp + ecx*4 - 0x144]
mov ebx, esi
add edx, eax
mov esi, edi
mov edi, dword [ebp - 0x150]
mov eax, ecx
inc eax
ror esi, 2
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x148], eax
cmp eax, 0x50
jl 0x4d5781
mov ecx, dword [ebp - 0x154]
mov eax, dword [ebp - 0x158]
add eax, edx
add dword [ecx + 0x10], edi
add dword [ecx + 0x14], esi
add dword [ecx + 0x18], ebx
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x14c]
add dword [ecx + 0x1c], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b34c8
mov esp, ebp
pop ebp
ret
Function at 0x4e1570
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
movzx edx, byte [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
lea ebx, [edx*8 - 1]
mov byte [edi + edx*8 + 0xcf], 0
lea esi, [edi + 8]
movzx eax, byte [edi + 0x198]
mov byte [eax + edi + 0xd0], 6
or byte [edi + edx*8 + 0xcf], 0x80
mov al, byte [edi + 0x198]
inc al
movzx ecx, al
cmp ecx, ebx
jge 0x4e15d1
nop dword [eax]
nop dword [eax + eax]
inc al
mov byte [ecx + edi + 0xd0], 0
movzx ecx, al
cmp ecx, ebx
jl 0x4e15c0
cmp byte [ebp + 0xc], 0
jbe 0x4e15fa
mov eax, esi
nop dword [eax]
mov ecx, dword [eax + 0xc8]
lea eax, [eax + 8]
xor dword [eax - 8], ecx
mov ecx, dword [eax + 0xc4]
xor dword [eax - 4], ecx
sub edx, 1
jne 0x4e15e0
push esi
call fcn.004df950
mov al, byte [ebp + 0x10]
add esp, 4
test al, al
je 0x4e1620
mov ecx, dword [ebp + 8]
sub esi, ecx
movzx edx, al
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub edx, 1
jne 0x4e1612
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4e1630
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], esi
mov cl, byte [esi + 0x198]
mov byte [ebp - 1], cl
test cl, cl
je 0x4e16ff
mov al, byte [ebp + 0x10]
shl al, 3
sub al, cl
movzx edx, bl
movzx ecx, al
movzx eax, al
cmp ecx, ebx
cmovbe edx, eax
movzx eax, byte [ebp - 1]
mov dword [ebp - 8], edx
add eax, 0xd0
xor dl, dl
add eax, esi
cmp byte [ebp - 8], dl
jbe 0x4e169a
mov ebx, dword [ebp - 8]
mov esi, eax
movzx ecx, dl
inc dl
mov al, byte [ecx + edi]
mov byte [ecx + esi], al
cmp dl, bl
jb 0x4e1685
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp - 0xc]
add byte [esi + 0x198], dl
movzx eax, dl
movzx edx, byte [ebp + 0x10]
add edi, eax
sub ebx, eax
movzx eax, byte [esi + 0x198]
lea ecx, [edx*8]
cmp eax, ecx
jne 0x4e16ff
cmp byte [ebp + 0x10], 0
jbe 0x4e16ea
lea ecx, [esi + 8]
nop word [eax + eax]
mov eax, dword [ecx + 0xc8]
lea ecx, [ecx + 8]
xor dword [ecx - 8], eax
mov eax, dword [ecx + 0xc4]
xor dword [ecx - 4], eax
sub edx, 1
jne 0x4e16d0
mov eax, esi
add eax, 8
push eax
call fcn.004df950
add esp, 4
mov byte [esi + 0x198], 0
mov cl, byte [ebp + 0x10]
movzx eax, cl
mov dword [ebp + 0xc], eax
shl eax, 3
cmp ebx, eax
jb 0x4e175d
lea eax, [esi + 8]
mov dword [ebp + 8], eax
test cl, cl
je 0x4e1739
mov esi, dword [ebp + 0xc]
mov edx, edi
nop
mov ecx, dword [edx]
lea eax, [eax + 8]
xor dword [eax - 8], ecx
mov ecx, dword [edx + 4]
add edx, 8
xor dword [eax - 4], ecx
sub esi, 1
jne 0x4e1720
mov eax, dword [ebp + 8]
push eax
call fcn.004df950
mov ecx, dword [ebp + 0xc]
add esp, 4
lea eax, [ecx*8]
mov cl, byte [ebp + 0x10]
sub ebx, eax
add edi, eax
cmp ebx, eax
mov eax, dword [ebp + 8]
jae 0x4e1715
mov esi, dword [ebp - 0xc]
xor dl, dl
test ebx, ebx
je 0x4e1783
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ecx + edi]
inc dl
mov byte [ecx + esi + 0xd0], al
movzx ecx, dl
cmp ecx, ebx
jb 0x4e1770
add byte [esi + 0x198], dl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4e18b0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bda3d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x692c00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
jl 0x4e1957
test esi, esi
je 0x4e1957
push str.getEntropy
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x1c], xmm0
call fcn.004481f0
mov dword [ebp - 4], 0
xor bl, bl
call fcn.00447510
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x4e1928
lea ecx, [ebp - 0x1c]
call fcn.004482f0
mov al, bl
jmp 0x4e1959
push esi
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [ebp - 0x20]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea ecx, [ebp - 0x1c]
call fcn.004482f0
mov al, bl
jmp 0x4e1959
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b34c8
mov esp, ebp
pop ebp
ret
Function at 0x4ee050
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c4b44
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x692c00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x40
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
call fcn.005b34db
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x4ee114
push 0x40
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, esi
call fcn.0042a1e0
mov dword [esi], vtable.TreeNode.0
mov eax, esi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov word [esi + 0x20], 1
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [esi + 0x3c], 0xce
mov byte [esi + 0x10], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4f1650
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c4ea6
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
lea ecx, [esi + 0x14]
mov dword [esi], vtable._ckSymSettings.0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0x100
call fcn.00434d00
lea ecx, [esi + 0x34]
mov dword [ebp - 4], 0
mov dword [esi + 0x30], 0
call fcn.00434d00
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 1
call fcn.00434d00
lea ecx, [esi + 0x6c]
mov byte [ebp - 4], 2
call fcn.00434d00
mov dword [esi + 0x88], 0
mov eax, esi
mov byte [esi + 0xac], 1
mov dword [esi + 0xb0], 0
mov dword [esi + 0xb4], 0
mov dword [esi + 0xc8], 0x80
mov byte [esi + 0xcc], 0
mov byte [esi + 0x2c], 1
mov byte [esi + 0x4c], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4fd030
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 0x298], 2
jne 0x4fd042
pop ebp
jmp fcn.004fde70
pop ebp
jmp fcn.004fdf90
Function at 0x4fd7f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x692c00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x294]
cmp eax, 0xffffffff
jne 0x4fd821
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b34c8
mov esp, ebp
pop ebp
ret 8
cmp byte [ebp + 8], 0
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x10], 0
je 0x4fd884
push 0
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 0x1c], 1
push ecx
push 0
push 0
push 0xc
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], 0x7148
push ecx
push 0x98000004
push eax
mov dword [ebp - 0x18], 0x1d0d8
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 4
lea eax, [ebp - 0xc]
push eax
push 8
push 0xffff
push dword [esi + 0x294]
jmp 0x4fd892
push 4
lea ecx, [ebp - 0x10]
push ecx
push 8
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.005b34c8
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c5add
mov eax, dword fs:[0]
push eax
sub esp, 0x28
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 esi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
mov edi, dword [ebp + 0x10]
xorps xmm0, xmm0
mov ebx, dword [ebp + 8]
push str.ck_getsockname_ipv4
push edi
mov dword [ebp - 0x34], eax
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
call fcn.004481f0
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.00434ce0
mov eax, dword [ebp - 0x34]
mov dword [eax], 0
mov eax, dword [esi + 0x294]
cmp eax, 0xffffffff
je 0x4fdf4d
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x10
push ecx
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x4fdf2d
test eax, eax
js 0x4fdf2d
push dword [ebp - 0x2c]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov ecx, ebx
call fcn.00431a20
push dword [ebp - 0x2e]
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [ebp - 0x34]
mov bl, 1
movzx eax, ax
mov dword [ecx], eax
jmp 0x4fdf5b
mov eax, dword [edi]
mov ecx, edi
push str.Failed_to_getsockname
call dword [eax + 0x14]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
push 0
push eax
call fcn.00500330
add esp, 0xc
jmp 0x4fdf59
mov eax, dword [edi]
mov ecx, edi
push str.Cannot_get_socket_name:_INVALID_SOCKET.
call dword [eax + 0x14]
xor bl, bl
lea ecx, [ebp - 0x20]
call fcn.004482f0
mov al, bl
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 0xc
Function at 0x4fdf90
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c5b1d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
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 esi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
mov edi, dword [ebp + 0x10]
xorps xmm0, xmm0
mov ebx, dword [ebp + 8]
push str.ck_getsockname_ipv6
push edi
mov dword [ebp - 0x40], eax
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
call fcn.004481f0
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.00434ce0
mov eax, dword [ebp - 0x40]
mov dword [eax], 0
mov eax, dword [esi + 0x294]
cmp eax, 0xffffffff
je 0x4fe070
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x1c
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x4fe050
test eax, eax
js 0x4fe050
mov ecx, ebx
call fcn.00434ce0
lea eax, [ebp - 0x34]
push ebx
push eax
call fcn.004ff650
add esp, 8
push dword [ebp - 0x3a]
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [ebp - 0x40]
mov bl, 1
movzx eax, ax
mov dword [ecx], eax
jmp 0x4fe07e
mov eax, dword [edi]
mov ecx, edi
push str.Failed_to_getsockname_ipv6
call dword [eax + 0x14]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
push 0
push eax
call fcn.00500330
add esp, 0xc
jmp 0x4fe07c
mov eax, dword [edi]
mov ecx, edi
push str.Cannot_get_socket_name:_INVALID_SOCKET.
call dword [eax + 0x14]
xor bl, bl
lea ecx, [ebp - 0x20]
call fcn.004482f0
mov al, bl
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 0xc