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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
cmp dword [ebx + 0x14], 0x10
mov eax, dword [ebx + 0x10]
mov dword [ebp - 4], eax
jb 0x44f29e
mov esi, dword [ebx]
jmp 0x44f2a0
mov esi, ebx
xor ecx, ecx
mov edx, 0x811c9dc5
test eax, eax
je 0x44f2c4
mov ebx, eax
nop dword [eax]
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x44f2b0
mov ebx, dword [ebp + 0xc]
mov ecx, dword [edi + 0x18]
and ecx, edx
mov edx, dword [edi + 0xc]
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov esi, dword [edx + ecx*4]
inc ecx
mov dword [ebp - 0xc], esi
mov esi, dword [edi + 4]
mov dword [ebp - 8], esi
lea ecx, [edx + ecx*4]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0xc], esi
jne 0x44f2ed
mov ecx, esi
jmp 0x44f2f1
mov ecx, dword [ecx]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x44f42d
cmp dword [ebx + 0x14], 0x10
lea edx, [eax + 8]
jb 0x44f306
mov edi, dword [ebx]
jmp 0x44f308
mov edi, ebx
cmp dword [edx + 0x14], 0x10
lea ecx, [edx + 0x10]
jb 0x44f313
mov edx, dword [edx]
mov ecx, dword [ecx]
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp - 4]
mov esi, ecx
cmp dword [ebp + 0xc], ecx
cmovb esi, dword [ebp + 0xc]
test esi, esi
je 0x44f383
sub esi, 4
jb 0x44f341
nop dword [eax]
mov ecx, dword [edx]
cmp ecx, dword [edi]
jne 0x44f346
add edx, 4
add edi, 4
sub esi, 4
jae 0x44f330
cmp esi, 0xfffffffc
je 0x44f37a
mov cl, byte [edx]
cmp cl, byte [edi]
jne 0x44f373
cmp esi, 0xfffffffd
je 0x44f37a
mov cl, byte [edx + 1]
cmp cl, byte [edi + 1]
jne 0x44f373
cmp esi, 0xfffffffe
je 0x44f37a
mov cl, byte [edx + 2]
cmp cl, byte [edi + 2]
jne 0x44f373
cmp esi, 0xffffffff
je 0x44f37a
mov cl, byte [edx + 3]
cmp cl, byte [edi + 3]
je 0x44f37a
sbb ecx, ecx
or ecx, 1
jmp 0x44f37c
xor ecx, ecx
test ecx, ecx
jne 0x44f38c
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
cmp edx, ecx
jb 0x44f38c
jbe 0x44f399
mov eax, dword [eax]
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
jmp 0x44f2e4
cmp dword [eax + 0x1c], 0x10
lea edx, [eax + 8]
lea edi, [edx + 0x10]
jb 0x44f3a7
mov edx, dword [edx]
cmp dword [ebx + 0x14], 0x10
jb 0x44f3af
mov ebx, dword [ebx]
mov edi, dword [edi]
cmp ecx, edi
mov esi, edi
cmovb esi, ecx
test esi, esi
je 0x44f414
sub esi, 4
jb 0x44f3d2
mov ecx, dword [ebx]
cmp ecx, dword [edx]
jne 0x44f3d7
add ebx, 4
add edx, 4
sub esi, 4
jae 0x44f3c1
cmp esi, 0xfffffffc
je 0x44f40b
mov cl, byte [ebx]
cmp cl, byte [edx]
jne 0x44f404
cmp esi, 0xfffffffd
je 0x44f40b
mov cl, byte [ebx + 1]
cmp cl, byte [edx + 1]
jne 0x44f404
cmp esi, 0xfffffffe
je 0x44f40b
mov cl, byte [ebx + 2]
cmp cl, byte [edx + 2]
jne 0x44f404
cmp esi, 0xffffffff
je 0x44f40b
mov cl, byte [ebx + 3]
cmp cl, byte [edx + 3]
je 0x44f40b
sbb ecx, ecx
or ecx, 1
jmp 0x44f40d
xor ecx, ecx
test ecx, ecx
jne 0x44f41a
mov ecx, dword [ebp - 4]
cmp ecx, edi
jb 0x44f41a
jbe 0x44f41d
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44f7d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x1c], 0x10
lea edx, [edi + 8]
mov ebx, dword [edx + 0x10]
mov dword [ebp - 4], ecx
jb 0x44f7eb
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test ebx, ebx
je 0x44f807
movzx eax, byte [edx + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x44f7f6
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0xc]
and eax, esi
lea esi, [eax*8]
add ecx, esi
cmp dword [ecx + 4], edi
jne 0x44f83d
cmp dword [ecx], edi
jne 0x44f835
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 4]
mov dword [ecx + esi + 4], eax
jmp 0x44f845
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x44f845
cmp dword [ecx], edi
jne 0x44f848
mov eax, dword [edi]
mov dword [ecx], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea ecx, [edi + 8]
dec dword [edx + 8]
call fcn.0044f440
push edi
call fcn.0049e8d4
mov eax, dword [ebp + 8]
add esp, 4
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x44f9c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, 1
mov dword [0x5398f4], edx
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x5398f4], edx
inc eax
cmp eax, 0x270
jl 0x44f9d1
mov dword [0x5398f0], 0x270
pop ebp
ret 8

Function at 0x44fa70
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xorps xmm0, xmm0
xor ebx, ebx
push edi
mov edi, ecx
movlpd qword [ebp - 8], xmm0
mov eax, dword [edi + 4]
movq xmm1, qword [ebp - 8]
dec eax
movd xmm0, eax
psllq xmm1, xmm0
psllq xmm1, 1
movq qword [ebp - 8], xmm1
mov esi, dword [edi]
mov eax, dword [esi]
cmp eax, 0x270
jne 0x44fab4
mov ecx, esi
call fcn.0044fde0
jmp 0x44fac2
cmp eax, 0x4e0
jb 0x44fac2
mov ecx, esi
call fcn.0044fe30
mov eax, dword [esi]
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
xor esi, esi
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
cmp esi, dword [edi + 0xc]
ja 0x44faa0
jb 0x44fb07
cmp eax, dword [edi + 8]
ja 0x44faa0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
or ecx, eax
add ebx, dword [edi + 4]
or edx, esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
cmp ebx, 0x40
jb 0x44fa85
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44fb30
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
add ebx, 0xffffffff
push esi
adc eax, 0xffffffff
mov dword [ebp - 4], ebx
push edi
mov edi, ecx
mov dword [ebp - 8], eax
jmp 0x44fb52
mov ebx, dword [ebp - 4]
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x18], xmm0
test eax, eax
jb 0x44fc3a
ja 0x44fb71
test ebx, ebx
je 0x44fc3a
mov eax, dword [edi + 4]
movq xmm1, qword [ebp - 0x20]
dec eax
movd xmm0, eax
psllq xmm1, xmm0
psllq xmm1, 1
movq qword [ebp - 0x20], xmm1
nop dword [eax]
mov esi, dword [edi]
mov eax, dword [esi]
cmp eax, 0x270
jne 0x44fba4
mov ecx, esi
call fcn.0044fde0
jmp 0x44fbb2
cmp eax, 0x4e0
jb 0x44fbb2
mov ecx, esi
call fcn.0044fe30
mov eax, dword [esi]
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor ecx, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
cmp ecx, dword [edi + 0xc]
ja 0x44fb90
jb 0x44fbf7
cmp eax, dword [edi + 8]
ja 0x44fb90
or dword [ebp - 0x20], eax
mov eax, dword [edi + 4]
movq xmm1, qword [ebp - 0x18]
dec eax
or dword [ebp - 0x1c], ecx
movd xmm0, eax
psllq xmm1, xmm0
movq xmm0, qword [edi + 8]
psllq xmm1, 1
por xmm1, xmm0
movq qword [ebp - 0x18], xmm1
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 8]
jb 0x44fb71
ja 0x44fc3d
cmp dword [ebp - 0x18], ebx
jb 0x44fb71
jmp 0x44fc3d
mov eax, dword [ebp - 0x14]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push dword [ebp - 0x18]
call fcn.0049f4e0
mov dword [ebp - 0x14], ebx
pop ebx
push dword [ebp + 0xc]
mov ebx, dword [ebp - 0x20]
mov esi, edx
push dword [ebp + 8]
mov dword [ebp - 0x10], ecx
push dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
push ebx
call fcn.0049f7a0
cmp edx, esi
jb 0x44fc8e
ja 0x44fc76
cmp eax, dword [ebp - 0xc]
jb 0x44fc8e
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
jne 0x44fb4f
cmp dword [ebp - 0x14], eax
jne 0x44fb4f
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x1c]
push ebx
call fcn.004dd840
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44fd00
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
dec eax
mov ecx, dword [ebp + 8]
xor esi, esi
xor ebx, ebx
test eax, eax
je 0x44fdac
nop dword [eax]
mov ecx, dword [edi + 4]
dec ecx
shl esi, cl
add esi, esi
mov dword [ebp - 4], esi
nop dword [eax + eax]
mov esi, dword [edi]
mov eax, dword [esi]
cmp eax, 0x270
jne 0x44fd44
mov ecx, esi
call fcn.0044fde0
jmp 0x44fd52
cmp eax, 0x4e0
jb 0x44fd52
mov ecx, esi
call fcn.0044fe30
mov eax, dword [esi]
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
cmp eax, dword [edi + 8]
ja 0x44fd30
mov ecx, dword [edi + 4]
mov esi, dword [ebp - 4]
dec ecx
shl ebx, cl
or esi, eax
mov ecx, dword [ebp + 8]
add ebx, ebx
or ebx, dword [edi + 8]
lea eax, [ecx - 1]
cmp ebx, eax
jb 0x44fd20
xor edx, edx
mov eax, ebx
div ecx
mov ecx, eax
mov ebx, edx
xor edx, edx
mov eax, esi
div dword [ebp + 8]
cmp eax, ecx
mov ecx, dword [ebp + 8]
jb 0x44fdcf
lea eax, [ecx - 1]
cmp ebx, eax
jne 0x44fd10
mov eax, esi
xor edx, edx
div ecx
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x44fde0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea eax, [ecx + 8]
mov esi, 0x270
nop dword [eax]
mov edx, dword [eax - 4]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, 0x7fffffff
xor edx, dword [eax - 8]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [eax + 0x62c]
xor ecx, edx
mov dword [eax + 0x9b8], ecx
sub esi, 1
jne 0x44fdf0
pop esi
ret

Function at 0x44fe30
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, ecx
mov ecx, 0xe3
push esi
push edi
lea edi, [ebx + 0x9c4]
mov edx, dword [edi + 4]
lea edi, [edi + 4]
xor edx, dword [edi - 4]
and edx, 0x7fffffff
xor edx, dword [edi - 4]
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, edx
mov dword [edi - 0x9c4], eax
sub ecx, 1
jne 0x44fe40
lea esi, [ebx + 0xd50]
mov edi, 0x18c
mov ecx, dword [esi + 4]
lea esi, [esi + 4]
xor ecx, dword [esi - 4]
and ecx, 0x7fffffff
xor ecx, dword [esi - 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi - 0xd50]
xor eax, ecx
mov dword [esi - 0x9c4], eax
sub edi, 1
jne 0x44fe82
mov ecx, dword [ebx + 0x1380]
xor ecx, dword [ebx + 4]
and ecx, 0x7fffffff
xor ecx, dword [ebx + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx + 0x9c0], eax
mov dword [ebx], edi
pop edi
pop esi
pop ebx
ret
Function at 0x45c150
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub esp, 0x18
mov eax, dword [0x52f098]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x45c21b
lea eax, [esp + 4]
push eax
push esi
push 2
call fcn.00478080
add esp, 0xc
test eax, eax
jne 0x45c21b
lea eax, [esp + 8]
push eax
push esi
push 0x17
call fcn.00478080
add esp, 0xc
test eax, eax
jne 0x45c21b
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x45c1a4
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.00478050
add esp, 0xc
test eax, eax
je 0x45c1d8
sub eax, esi
push eax
push 0x2e
push esi
call fcn.00478050
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x45c1da
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x45c206
mov al, byte [esi]
push eax
call fcn.0046b470
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x45c1e8
pop edi
movzx eax, bl
pop ebx
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0049e623
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
xor eax, eax
pop esi
xor ecx, esp
call fcn.0049e623
add esp, 0x18
ret
Function at 0x466f60
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x608], 0
je 0x466fa4
push esi
push 1
push edi
call fcn.00457db0
push dword [edi + 0x59c]
mov eax, dword [edi + 0x608]
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.00457db0
add esp, 0x24
mov eax, esi
pop esi
pop edi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x466fdd
push dword [edi + 0x598]
lea eax, [eax + eax*2]
push 1
add eax, 0x4fa2f8
push 2
push eax
call fcn.004beb51
push dword [edi + 0x598]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.004beb51
add esp, 0x20
xor eax, eax
pop edi
ret

Function at 0x4676e0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x10c
mov eax, dword [0x52f098]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
push ebx
mov ebx, dword [esp + 0x114]
mov dword [esp + 8], eax
xor eax, eax
push ebp
mov ebp, dword [esp + 0x128]
mov ecx, dword [ebx + 0x424]
cmp edx, ecx
push esi
sete al
mov esi, 0x440
push edi
lea eax, [eax*4 + 0x420]
mov eax, dword [eax + ebx]
mov dword [esp + 0x10], eax
mov eax, 0x450
cmove esi, eax
mov eax, dword [ebx + 0x540]
add esi, ebx
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x4677ee
xor eax, eax
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x430]
cmp dword [eax + ebx], 0x4672a0
jne 0x4677ee
cmp dword [esi], 0
je 0x467778
test edi, edi
je 0x4677ee
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esp + 0x20]
call fcn.00476870
add esp, 0x14
cmp eax, 0xffffffff
je 0x4677ee
test al, 1
je 0x4677ee
mov ecx, dword [esi]
test ecx, ecx
jne 0x4677cb
mov eax, dword [ebx]
mov eax, dword [eax + 0x90c]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [section..data]
mov edi, dword [esi + 4]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x4677e7
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4677ee
add dword [esi + 8], eax
jmp 0x4677ee
mov dword [esi + 4], 0
push 0
push dword [esp + 0x130]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x467857
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x467828
mov dword [ebp], 0
lea eax, [edi + 0x52]
jmp 0x46785c
push 0x100
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.00453780
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.00466ff0
mov eax, dword [ebx]
add esp, 0x18
mov dword [eax + 0xd44], esi
mov eax, 0x37
jmp 0x467859
xor eax, eax
mov dword [ebp], edi
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049e623
add esp, 0x10c
ret
Function at 0x467c80
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x46c], 0
je 0x467c9d
push eax
call fcn.004607b0
add esp, 4
test eax, eax
jne 0x467cbc
xor al, al
ret
mov eax, dword [eax + 0x420]
cmp eax, 0xffffffff
je 0x467c9a
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x467c9a
mov al, 1
ret
Function at 0x469a60
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x4fa75c
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x469a7a
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 0x4fa778
push esi
call fcn.004c7040
add esp, 8
test eax, eax
je 0x469ac2
test ebp, ebp
je 0x469ab3
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 0x469ae8
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x469ae8
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 0x469b9f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x469b05
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x469b95
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x469b95
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x469b37
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 0x469b50
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x469b60
test ebp, ebp
je 0x469b8c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x52f004]
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 [0x52f004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x46efe0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x46eff4
mov eax, dword [eax]
mov eax, dword [eax + 0x78]
mov al, byte [eax + 0xe7]
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x46f008
xor al, al
ret
push eax
push 0
call fcn.00467bb0
add esp, 8
mov al, 1
ret
Function at 0x474da0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x34
mov eax, dword [0x52f098]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [esp + 0x48]
push esi
mov esi, dword [sym.imp.WS2_32.dll_socket]
push edi
push 6
push 1
push 2
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x18], 1
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x474f86
xorps xmm0, xmm0
mov eax, 2
push 0x7f000001
movlpd qword [esp + 0x20], xmm0
mov word [esp + 0x18], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x18], eax
xor eax, eax
push 4
mov word [esp + 0x1a], ax
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push edi
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x474f74
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x474f74
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x474f74
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x474f74
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x474f74
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x474f74
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x474f74
push ebx
push 0x4fc040
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.0046a140
lea esi, [esp + 0x34]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x474ed2
push 0
sub esi, ecx
lea eax, [esp + 0x28]
push esi
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x474f74
push 0
push 0xc
lea eax, [esp + 0x38]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jne 0x474f74
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
sub esi, 4
jb 0x474f27
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x474f2c
add ecx, 4
add edx, 4
sub esi, 4
jae 0x474f16
cmp esi, 0xfffffffc
je 0x474f59
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x474f74
cmp esi, 0xfffffffd
je 0x474f59
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x474f74
cmp esi, 0xfffffffe
je 0x474f59
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x474f74
cmp esi, 0xffffffff
je 0x474f59
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x474f74
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0049e623
add esp, 0x34
ret
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push edi
call esi
push dword [ebx]
call esi
push dword [ebx + 4]
call esi
mov ecx, dword [esp + 0x3c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049e623
add esp, 0x34
ret
Function at 0x478dc0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push esi
xor esi, esi
mov dword [esp + 4], esi
mov dword [eax], esi
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x478f72
push ebx
mov ebx, dword [esp + 0xc]
push edi
test ebx, ebx
je 0x478f5c
push ebp
mov eax, dword [ebx + 4]
cmp eax, 2
jne 0x478e0f
lea ebp, [eax + 0xe]
jmp 0x478e1b
cmp eax, 0x17
jne 0x478ec9
lea ebp, [eax + 5]
cmp dword [ebx + 0x18], 0
je 0x478ec9
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x478ec9
cmp eax, ebp
jb 0x478ec9
push 0x20
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
je 0x478f51
mov ecx, dword [ebx]
mov dword [edi], ecx
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
mov ecx, dword [ebx + 8]
mov dword [edi + 8], ecx
mov eax, dword [ebx + 0xc]
push ebp
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ebp
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
call dword [section..data]
add esp, 4
mov dword [edi + 0x18], eax
test eax, eax
je 0x478f40
push ebp
push dword [ebx + 0x18]
push eax
call fcn.004b7680
mov eax, dword [ebx + 0x14]
add esp, 0xc
test eax, eax
je 0x478eb5
push eax
call dword [0x52f00c]
add esp, 4
mov dword [edi + 0x14], eax
test eax, eax
je 0x478f26
mov eax, dword [esp + 0x10]
test esi, esi
cmove esi, edi
test eax, eax
je 0x478ec5
mov dword [eax + 0x1c], edi
mov dword [esp + 0x10], edi
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x478e02
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop ebp
test eax, eax
je 0x478ee8
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x478f58
test esi, esi
je 0x478f15
push dword [esi + 0x18]
call dword [0x52f004]
push dword [esi + 0x14]
call dword [0x52f004]
mov edi, dword [esi + 0x1c]
push esi
call dword [0x52f004]
add esp, 0xc
mov esi, edi
test edi, edi
jne 0x478ef0
mov eax, dword [esp + 0x28]
xor esi, esi
pop edi
mov dword [eax], esi
mov eax, ebx
pop ebx
pop esi
add esp, 0xc
ret
push dword [edi + 0x18]
mov ebx, 8
call dword [0x52f004]
push edi
call dword [0x52f004]
add esp, 8
jmp 0x478ed8
push edi
mov ebx, 8
call dword [0x52f004]
add esp, 4
jmp 0x478ed8
mov ebx, 8
jmp 0x478ed8
test esi, esi
jne 0x478f68
mov ebx, 0x2af9
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], esi
mov eax, ebx
pop ebx
pop esi
add esp, 0xc
ret