joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4031f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
push ebx
push ebp
push esi
mov dword [esp + 0xc], ecx
push edi
nop dword [eax]
mov edi, dword [ecx]
mov eax, dword [edi]
cmp eax, 0x270
jne 0x403253
lea eax, [edi + 8]
mov esi, 0x270
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 0x403213
mov eax, dword [edi]
jmp 0x403335
cmp eax, 0x4e0
jb 0x403335
mov eax, dword [edi + 0x9c4]
lea ebx, [edi + 0x9c4]
mov ebp, 0xe3
nop
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
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
lea ebx, [edx]
mov eax, dword [edx]
sub ebp, 1
jne 0x403270
mov eax, dword [edi + 0xd50]
lea ebx, [edi + 0xd50]
mov ebp, 0x18c
nop word [eax + eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub ebp, 1
jne 0x4032c0
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
mov ecx, dword [esp + 0x10]
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 [ecx + 8]
ja 0x403200
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x406830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45daad
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4750bc]
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, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], edi
cmp byte [esi + 5], 0
mov dword [ebp - 0x30], eax
je 0x406883
xor edx, edx
lea ecx, [esi + edx]
lea eax, [edx + 0x51]
inc edx
xor byte [ecx], al
cmp edx, 4
jb 0x406871
mov byte [esi + 5], 0
lea eax, [ebp - 0x29]
push eax
lea eax, [esi + 4]
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.004065c0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x4068a9
mov eax, dword [eax]
push ecx
push eax
push 0
lea ecx, [ebp - 0x28]
call fcn.0040b430
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [edi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x406920
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406916
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406916
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045bf3a
add esp, 8
mov eax, edi
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.0045bf48
mov esp, ebp
pop ebp
ret
Function at 0x407a60
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push esi
mov esi, ecx
cmp byte [esi + 3], 0
je 0x407a82
xor eax, eax
nop
lea edx, [eax + esi]
lea ecx, [eax + 0x51]
inc eax
xor byte [edx], cl
cmp eax, 2
jb 0x407a70
mov byte [esi + 3], 0
mov ecx, dword [esp + 0x10]
lea eax, [esp + 7]
push eax
lea eax, [esi + 2]
push eax
push esi
call fcn.004065c0
mov eax, dword [esp + 0x10]
pop esi
add esp, 8
ret 4

Function at 0x407aa0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push esi
mov esi, ecx
cmp byte [esi + 5], 0
je 0x407ac2
xor eax, eax
nop
lea edx, [eax + esi]
lea ecx, [eax + 0x51]
inc eax
xor byte [edx], cl
cmp eax, 4
jb 0x407ab0
mov byte [esi + 5], 0
mov ecx, dword [esp + 0x10]
lea eax, [esp + 7]
push eax
lea eax, [esi + 4]
push eax
push esi
call fcn.004065c0
mov eax, dword [esp + 0x10]
pop esi
add esp, 8
ret 4

Function at 0x407ae0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push esi
mov esi, ecx
cmp byte [esi + 0x75], 0
je 0x407b02
xor eax, eax
nop
lea edx, [eax + esi]
lea ecx, [eax + 0x51]
inc eax
xor byte [edx], cl
cmp eax, 0x74
jb 0x407af0
mov byte [esi + 0x75], 0
mov ecx, dword [esp + 0x10]
lea eax, [esp + 7]
push eax
lea eax, [esi + 0x74]
push eax
push esi
call fcn.004065c0
mov eax, dword [esp + 0x10]
pop esi
add esp, 8
ret 4
Function at 0x407b20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45dc0c
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4750bc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
push 4
mov byte [ebp - 4], 2
call fcn.0045bf0a
add esp, 4
mov dword [ebp - 0x80], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x407bc4
mov ecx, eax
call fcn.0040f790
mov esi, eax
jmp 0x407bc6
xor esi, esi
sub esp, 0x18
mov byte [ebp - 4], 4
mov edi, esp
mov dword [ebp - 0x1c], 0x61152a61
sub esp, 0x18
mov word [ebp - 0x18], 0x100
mov edx, esp
xor ecx, ecx
mov dword [ebp - 0x80], edx
lea eax, [ecx + 0x51]
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 4
jb 0x407be6
lea eax, [ebp - 0x81]
mov byte [ebp - 0x17], 0
push eax
lea eax, [ebp - 0x18]
mov ecx, edx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004065c0
push edi
call fcn.0040e5b0
add esp, 0x1c
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
call fcn.0040f840
mov esi, eax
cmp esi, 0x47571c
je 0x407c5d
mov ecx, 0x47571c
call fcn.004014e0
movups xmm0, xmmword [esi]
movups xmmword [0x47571c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x47572c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov ecx, dword [ebp - 0x68]
cmp ecx, 0x10
jb 0x407c93
mov edx, dword [ebp - 0x7c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407c89
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x407c89
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045bf3a
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045bf48
mov esp, ebp
pop ebp
ret
Function at 0x40a7b0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 5], 0
je 0x40a7d2
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax + 0x51]
inc eax
xor byte [edx], cl
cmp eax, 4
jb 0x40a7c0
mov byte [esi + 5], 0
mov eax, esi
pop esi
ret

Function at 0x40a7e0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x17], 0
je 0x40a802
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax + 0x51]
inc eax
xor byte [edx], cl
cmp eax, 0x16
jb 0x40a7f0
mov byte [esi + 0x17], 0
mov eax, esi
pop esi
ret

Function at 0x40a810
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x18], 0
je 0x40a832
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax + 0x51]
inc eax
xor byte [edx], cl
cmp eax, 0x17
jb 0x40a820
mov byte [esi + 0x18], 0
mov eax, esi
pop esi
ret

Function at 0x40a840
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x28], 0
je 0x40a862
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax + 0x51]
inc eax
xor byte [edx], cl
cmp eax, 0x27
jb 0x40a850
mov byte [esi + 0x28], 0
mov eax, esi
pop esi
ret

Function at 0x40a870
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x29], 0
je 0x40a892
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax + 0x51]
inc eax
xor byte [edx], cl
cmp eax, 0x28
jb 0x40a880
mov byte [esi + 0x29], 0
mov eax, esi
pop esi
ret

Function at 0x40a8a0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x3c], 0
je 0x40a8c2
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax + 0x51]
inc eax
xor byte [edx], cl
cmp eax, 0x3b
jb 0x40a8b0
mov byte [esi + 0x3c], 0
mov eax, esi
pop esi
ret
Function at 0x40ef50
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret 4
Function at 0x410d20
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x410e96
test ebx, ebx
je 0x410e96
mov ecx, dword [esi + 0x3cc]
xor edx, edx
mov eax, ebx
div ecx
test edx, edx
jne 0x410e96
mov eax, ebx
div ecx
mov ecx, dword [esp + 0x18]
push ebp
push edi
cmp ecx, 1
jne 0x410de5
mov ebp, dword [esp + 0x14]
xor ecx, ecx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x20], ecx
test eax, eax
je 0x410e94
lea edi, [esi + 0x3f4]
nop dword [eax]
push ebx
push ebp
mov ecx, esi
call fcn.00410ea0
cmp byte [esi + 4], 0
mov edx, ebx
je 0x410db2
xor ecx, ecx
cmp dword [esi + 0x3cc], ecx
jle 0x410db2
nop dword [eax + eax]
mov al, byte [edi + ecx]
lea edx, [edx + 1]
xor byte [edx - 1], al
inc ecx
cmp ecx, dword [esi + 0x3cc]
jl 0x410da0
push dword [esi + 0x3cc]
push ebp
push edi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esi + 0x3cc]
xor edx, edx
mov eax, dword [esp + 0x28]
add esp, 0xc
div ecx
inc dword [esp + 0x20]
add ebp, ecx
add ebx, ecx
cmp dword [esp + 0x20], eax
jb 0x410d80
pop edi
pop ebp
pop esi
pop ebx
ret 0x10
cmp ecx, 2
jne 0x410e66
mov edi, dword [esp + 0x14]
xor ecx, ecx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x20], ecx
test eax, eax
je 0x410e94
lea ebp, [esi + 0x3f4]
push ebx
push ebp
mov ecx, esi
call fcn.00411a60
cmp byte [esi + 4], 0
mov edx, ebx
je 0x410e33
xor ecx, ecx
cmp dword [esi + 0x3cc], ecx
jle 0x410e33
mov al, byte [ecx + edi]
lea edx, [edx + 1]
xor byte [edx - 1], al
inc ecx
cmp ecx, dword [esi + 0x3cc]
jl 0x410e21
push dword [esi + 0x3cc]
push edi
push ebp
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esi + 0x3cc]
xor edx, edx
mov eax, dword [esp + 0x28]
add esp, 0xc
div ecx
inc dword [esp + 0x20]
add edi, ecx
add ebx, ecx
cmp dword [esp + 0x20], eax
jb 0x410e06
pop edi
pop ebp
pop esi
pop ebx
ret 0x10
mov ebx, dword [esp + 0x14]
xor edi, edi
mov ebp, dword [esp + 0x18]
test eax, eax
je 0x410e94
push ebp
push ebx
mov ecx, esi
call fcn.00410ea0
mov ecx, dword [esi + 0x3cc]
xor edx, edx
mov eax, dword [esp + 0x1c]
inc edi
div ecx
add ebx, ecx
add ebp, ecx
cmp edi, eax
jb 0x410e74
pop edi
pop ebp
pop esi
pop ebx
ret 0x10
Function at 0x4118c0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x411a52
test ebx, ebx
je 0x411a52
mov ecx, dword [esi + 0x3cc]
xor edx, edx
mov eax, ebx
div ecx
test edx, edx
jne 0x411a52
mov eax, ebx
div ecx
mov edx, dword [esp + 0x18]
push ebp
push edi
cmp edx, 1
jne 0x411989
mov ebp, dword [esp + 0x14]
xor edx, edx
mov edi, dword [esp + 0x18]
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], edi
test eax, eax
je 0x411a50
lea ebx, [esi + 0x3f4]
cmp byte [esi + 4], 0
mov eax, ebx
je 0x411949
xor edx, edx
test ecx, ecx
jle 0x411949
mov edi, ebp
sub edi, ebx
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
inc edx
cmp edx, dword [esi + 0x3cc]
jl 0x411933
mov edi, dword [esp + 0x14]
push edi
push ebx
mov ecx, esi
call fcn.00411a60
push dword [esi + 0x3cc]
push edi
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esi + 0x3cc]
xor edx, edx
mov eax, dword [esp + 0x28]
add edi, ecx
div ecx
inc dword [esp + 0x2c]
add esp, 0xc
add ebp, ecx
mov dword [esp + 0x14], edi
cmp dword [esp + 0x20], eax
jb 0x411921
pop edi
pop ebp
pop esi
pop ebx
ret 0x10
cmp edx, 2
jne 0x411a1c
mov edi, dword [esp + 0x14]
xor ebp, ebp
mov ebx, dword [esp + 0x18]
test eax, eax
je 0x411a50
lea eax, [esi + 0x3f4]
nop word [eax + eax]
push ebx
push eax
mov ecx, esi
call fcn.00411a60
cmp byte [esi + 4], 0
mov edx, ebx
je 0x4119e2
xor ecx, ecx
cmp dword [esi + 0x3cc], ecx
jle 0x4119e2
nop dword [eax + eax]
mov al, byte [ecx + edi]
lea edx, [edx + 1]
xor byte [edx - 1], al
inc ecx
cmp ecx, dword [esi + 0x3cc]
jl 0x4119d0
push dword [esi + 0x3cc]
lea eax, [esi + 0x3f4]
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esi + 0x3cc]
xor edx, edx
mov eax, dword [esp + 0x28]
inc ebp
div ecx
add esp, 0xc
add edi, ecx
add ebx, ecx
cmp ebp, eax
lea eax, [esi + 0x3f4]
jb 0x4119b0
pop edi
pop ebp
pop esi
pop ebx
ret 0x10
mov ebx, dword [esp + 0x14]
xor edi, edi
mov ebp, dword [esp + 0x18]
test eax, eax
je 0x411a50
nop word [eax + eax]
push ebp
push ebx
mov ecx, esi
call fcn.00411a60
mov ecx, dword [esi + 0x3cc]
xor edx, edx
mov eax, dword [esp + 0x1c]
inc edi
div ecx
add ebx, ecx
add ebp, ecx
cmp edi, eax
jb 0x411a30
pop edi
pop ebp
pop esi
pop ebx
ret 0x10
Function at 0x41af70
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub esp, 0x18
mov eax, dword [0x4750bc]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x41b03b
lea eax, [esp + 4]
push eax
push esi
push 2
call fcn.00436090
add esp, 0xc
test eax, eax
jne 0x41b03b
lea eax, [esp + 8]
push eax
push esi
push 0x17
call fcn.00436090
add esp, 0xc
test eax, eax
jne 0x41b03b
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x41afc4
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.00436060
add esp, 0xc
test eax, eax
je 0x41aff8
sub eax, esi
push eax
push 0x2e
push esi
call fcn.00436060
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x41affa
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 0x41b026
mov al, byte [esi]
push eax
call fcn.00427e30
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 0x41b008
pop edi
movzx eax, bl
pop ebx
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0045bf48
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
xor eax, eax
pop esi
xor ecx, esp
call fcn.0045bf48
add esp, 0x18
ret
Function at 0x424e10
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
cmp dword [edi + 0x608], 0
je 0x424e54
push 1
push edi
call fcn.00416c50
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.00416c50
add esp, 0x24
mov eax, esi
pop edi
pop esi
ret
mov edx, dword [esp + 0x10]
mov ecx, edx
sub ecx, 0
je 0x424e69
sub ecx, 1
je 0x424e69
sub ecx, 1
jne 0x424e9a
push dword [edi + 0x598]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
lea eax, [edx*2 + 0x464650]
push 1
add eax, edx
push 2
push eax
call esi
push dword [edi + 0x598]
push 1
push dword [esp + 0x30]
push dword [esp + 0x30]
call esi
add esp, 0x20
pop edi
xor eax, eax
pop esi
ret

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

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4750bc]
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, 0x448
push edi
lea eax, [eax*4 + 0x420]
mov eax, dword [eax + ebx]
mov dword [esp + 0x10], eax
mov eax, 0x458
cmove esi, eax
mov eax, dword [ebx + 0x548]
add esi, ebx
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x4256ae
xor eax, eax
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x438]
cmp dword [eax + ebx], 0x425160
jne 0x4256ae
cmp dword [esi], 0
je 0x425638
test edi, edi
je 0x4256ae
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esp + 0x20]
call fcn.00433390
add esp, 0x14
cmp eax, 0xffffffff
je 0x4256ae
test al, 1
je 0x4256ae
mov ecx, dword [esi]
test ecx, ecx
jne 0x42568b
mov eax, dword [ebx]
mov eax, dword [eax + 0x90c]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x475094]
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 0x4256a7
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 0x4256ae
add dword [esi + 8], eax
jmp 0x4256ae
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 0x425717
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4256e8
mov dword [ebp], 0
lea eax, [edi + 0x52]
jmp 0x42571c
push 0x100
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.0044dda0
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.00424ea0
mov eax, dword [ebx]
add esp, 0x18
mov dword [eax + 0xd44], esi
mov eax, 0x37
jmp 0x425719
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.0045bf48
add esp, 0x10c
ret
Function at 0x425b50
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x474], 0
je 0x425b6d
push eax
call fcn.0041f3a0
add esp, 4
test eax, eax
jne 0x425b8c
xor al, al
ret
mov eax, dword [eax + 0x420]
cmp eax, 0xffffffff
je 0x425b6a
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x425b6a
mov al, 1
ret
Function at 0x427910
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x42792a
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 0x464ad0
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
add esp, 8
test eax, eax
je 0x427973
test ebp, ebp
je 0x427964
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 0x427999
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x427999
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 0x427a4f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4279b6
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x475094]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x427a45
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x427a45
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4279e8
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 0x427a00
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 0x427a10
test ebp, ebp
je 0x427a3c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x475098]
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 [0x475098]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x42ba40
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x42ba54
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 0x42ba68
xor al, al
ret
push eax
push 0
call fcn.00425a80
add esp, 8
mov al, 1
ret
Function at 0x4318a0
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 [0x4750bc]
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 0x431a86
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 0x431a74
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x431a74
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 0x431a74
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x431a74
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x431a74
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x431a74
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x431a74
push ebx
push 0x466344
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.00434b80
lea esi, [esp + 0x34]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4319d2
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 0x431a74
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 0x431a74
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
sub esi, 4
jb 0x431a27
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x431a2c
add ecx, 4
add edx, 4
sub esi, 4
jae 0x431a16
cmp esi, 0xfffffffc
je 0x431a59
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x431a74
cmp esi, 0xfffffffd
je 0x431a59
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x431a74
cmp esi, 0xfffffffe
je 0x431a59
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x431a74
cmp esi, 0xffffffff
je 0x431a59
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x431a74
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.0045bf48
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.0045bf48
add esp, 0x34
ret