joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4026c0
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 0x402723
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 0x4026e3
mov eax, dword [edi]
jmp 0x402805
cmp eax, 0x4e0
jb 0x402805
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 0x402740
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 0x402790
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 0x4026d0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x403d60
Capabilities:
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
mov dword [esp + 8], edi
cmp byte [esi + 0x15], 0
je 0x403d87
xor edx, edx
lea ecx, [edx + esi]
lea eax, [edx + 0x4d]
inc edx
xor byte [ecx], al
cmp edx, 0x14
jb 0x403d75
mov byte [esi + 0x15], 0
lea eax, [esp + 0x10]
mov ecx, edi
push eax
lea eax, [esi + 0x14]
push eax
push esi
call fcn.004037e0
mov eax, edi
pop edi
pop esi
pop ecx
ret 4

Function at 0x403da0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
mov dword [esp + 8], edi
cmp byte [esi + 0xf], 0
je 0x403dc7
xor edx, edx
lea ecx, [edx + esi]
lea eax, [edx + 0x4d]
inc edx
xor byte [ecx], al
cmp edx, 0xe
jb 0x403db5
mov byte [esi + 0xf], 0
lea eax, [esp + 0x10]
mov ecx, edi
push eax
lea eax, [esi + 0xe]
push eax
push esi
call fcn.004037e0
mov eax, edi
pop edi
pop esi
pop ecx
ret 4
Function at 0x405510
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push esi
mov esi, ecx
cmp byte [esi + 3], 0
je 0x405532
xor eax, eax
nop
lea edx, [eax + esi]
lea ecx, [eax + 0x4d]
inc eax
xor byte [edx], cl
cmp eax, 2
jb 0x405520
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.004037e0
mov eax, dword [esp + 0x10]
pop esi
add esp, 8
ret 4

Function at 0x405550
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push esi
mov esi, ecx
cmp byte [esi + 5], 0
je 0x405572
xor eax, eax
nop
lea edx, [eax + esi]
lea ecx, [eax + 0x4d]
inc eax
xor byte [edx], cl
cmp eax, 4
jb 0x405560
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.004037e0
mov eax, dword [esp + 0x10]
pop esi
add esp, 8
ret 4

Function at 0x405590
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push esi
mov esi, ecx
cmp byte [esi + 0x75], 0
je 0x4055b2
xor eax, eax
nop
lea edx, [eax + esi]
lea ecx, [eax + 0x4d]
inc eax
xor byte [edx], cl
cmp eax, 0x74
jb 0x4055a0
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.004037e0
mov eax, dword [esp + 0x10]
pop esi
add esp, 8
ret 4
Function at 0x4055d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c65c
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4730bc]
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.0045aab6
add esp, 4
mov dword [ebp - 0x80], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x405674
mov ecx, eax
call fcn.0040e110
mov esi, eax
jmp 0x405676
xor esi, esi
sub esp, 0x18
mov byte [ebp - 4], 4
mov edi, esp
mov dword [ebp - 0x1c], 0x6509367d
sub esp, 0x18
mov word [ebp - 0x18], 0x100
mov edx, esp
xor ecx, ecx
mov dword [ebp - 0x80], edx
lea eax, [ecx + 0x4d]
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 4
jb 0x405696
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.004037e0
push edi
call fcn.0040cf20
add esp, 0x1c
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
call fcn.0040e1c0
mov esi, eax
cmp esi, 0x4734e4
je 0x40570d
mov ecx, 0x4734e4
call fcn.004014e0
movups xmm0, xmmword [esi]
movups xmmword [0x4734e4], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x4734f4], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov ecx, dword [ebp - 0x68]
cmp ecx, 0x10
jb 0x405743
mov edx, dword [ebp - 0x7c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405739
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405739
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045aae6
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.0045aaf4
mov esp, ebp
pop ebp
ret
Function at 0x408880
Capabilities:
Encode data using xor

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

Function at 0x4088b0
Capabilities:
Encode data using xor

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

Function at 0x4088e0
Capabilities:
Encode data using xor

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

Function at 0x408910
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0xf], 0
je 0x408932
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax + 0x4d]
inc eax
xor byte [edx], cl
cmp eax, 0xe
jb 0x408920
mov byte [esi + 0xf], 0
mov eax, esi
pop esi
ret
Function at 0x409b60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov byte [ecx + 0x24], 1
jmp fcn.00409b70
Function at 0x40b5e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x80]
push esi
call sub.MSVCP140.dll__Mtx_lock
add esp, 4
test eax, eax
jne 0x40b640
inc dword [edi + 0x70]
push esi
call sub.MSVCP140.dll__Mtx_unlock
add esp, 4
cmp byte [edi + 0x34], 0
jne 0x40b612
cmp byte [edi + 0x30], 0
je 0x40b634
cmp byte [edi + 0x28], 0
jne 0x40b634
lea eax, [esp + 8]
push eax
call fcn.00402c10
add esp, 4
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [edi + 0x78], ecx
mov dword [edi + 0x7c], eax
mov byte [edi + 0x28], 1
mov ecx, edi
pop edi
pop esi
add esp, 8
jmp fcn.00409b70
push eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
int3
Function at 0x40d8d0
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 0x40f8e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x40fa56
test ebx, ebx
je 0x40fa56
mov ecx, dword [esi + 0x3cc]
xor edx, edx
mov eax, ebx
div ecx
test edx, edx
jne 0x40fa56
mov eax, ebx
div ecx
mov ecx, dword [esp + 0x18]
push ebp
push edi
cmp ecx, 1
jne 0x40f9a5
mov ebp, dword [esp + 0x14]
xor ecx, ecx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x20], ecx
test eax, eax
je 0x40fa54
lea edi, [esi + 0x3f4]
nop dword [eax]
push ebx
push ebp
mov ecx, esi
call fcn.0040fa60
cmp byte [esi + 4], 0
mov edx, ebx
je 0x40f972
xor ecx, ecx
cmp dword [esi + 0x3cc], ecx
jle 0x40f972
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 0x40f960
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 0x40f940
pop edi
pop ebp
pop esi
pop ebx
ret 0x10
cmp ecx, 2
jne 0x40fa26
mov edi, dword [esp + 0x14]
xor ecx, ecx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x20], ecx
test eax, eax
je 0x40fa54
lea ebp, [esi + 0x3f4]
push ebx
push ebp
mov ecx, esi
call fcn.00410620
cmp byte [esi + 4], 0
mov edx, ebx
je 0x40f9f3
xor ecx, ecx
cmp dword [esi + 0x3cc], ecx
jle 0x40f9f3
mov al, byte [ecx + edi]
lea edx, [edx + 1]
xor byte [edx - 1], al
inc ecx
cmp ecx, dword [esi + 0x3cc]
jl 0x40f9e1
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 0x40f9c6
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 0x40fa54
push ebp
push ebx
mov ecx, esi
call fcn.0040fa60
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 0x40fa34
pop edi
pop ebp
pop esi
pop ebx
ret 0x10
Function at 0x410480
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x410612
test ebx, ebx
je 0x410612
mov ecx, dword [esi + 0x3cc]
xor edx, edx
mov eax, ebx
div ecx
test edx, edx
jne 0x410612
mov eax, ebx
div ecx
mov edx, dword [esp + 0x18]
push ebp
push edi
cmp edx, 1
jne 0x410549
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 0x410610
lea ebx, [esi + 0x3f4]
cmp byte [esi + 4], 0
mov eax, ebx
je 0x410509
xor edx, edx
test ecx, ecx
jle 0x410509
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 0x4104f3
mov edi, dword [esp + 0x14]
push edi
push ebx
mov ecx, esi
call fcn.00410620
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 0x4104e1
pop edi
pop ebp
pop esi
pop ebx
ret 0x10
cmp edx, 2
jne 0x4105dc
mov edi, dword [esp + 0x14]
xor ebp, ebp
mov ebx, dword [esp + 0x18]
test eax, eax
je 0x410610
lea eax, [esi + 0x3f4]
nop word [eax + eax]
push ebx
push eax
mov ecx, esi
call fcn.00410620
cmp byte [esi + 4], 0
mov edx, ebx
je 0x4105a2
xor ecx, ecx
cmp dword [esi + 0x3cc], ecx
jle 0x4105a2
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 0x410590
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 0x410570
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 0x410610
nop word [eax + eax]
push ebp
push ebx
mov ecx, esi
call fcn.00410620
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 0x4105f0
pop edi
pop ebp
pop esi
pop ebx
ret 0x10
Function at 0x419b50
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub esp, 0x18
mov eax, dword [0x4730bc]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x419c1b
lea eax, [esp + 4]
push eax
push esi
push 2
call fcn.00434c70
add esp, 0xc
test eax, eax
jne 0x419c1b
lea eax, [esp + 8]
push eax
push esi
push 0x17
call fcn.00434c70
add esp, 0xc
test eax, eax
jne 0x419c1b
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x419ba4
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.00434c40
add esp, 0xc
test eax, eax
je 0x419bd8
sub eax, esi
push eax
push 0x2e
push esi
call fcn.00434c40
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x419bda
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 0x419c06
mov al, byte [esi]
push eax
call fcn.00426a20
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 0x419be8
pop edi
movzx eax, bl
pop ebx
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0045aaf4
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
xor eax, eax
pop esi
xor ecx, esp
call fcn.0045aaf4
add esp, 0x18
ret
Function at 0x423a00
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
cmp dword [edi + 0x608], 0
je 0x423a44
push 1
push edi
call fcn.00415810
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.00415810
add esp, 0x24
mov eax, esi
pop edi
pop esi
ret
mov edx, dword [esp + 0x10]
mov ecx, edx
sub ecx, 0
je 0x423a59
sub ecx, 1
je 0x423a59
sub ecx, 1
jne 0x423a8a
push dword [edi + 0x598]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
lea eax, [edx*2 + 0x463190]
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 0x424190
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4730bc]
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 0x42429e
xor eax, eax
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x438]
cmp dword [eax + ebx], 0x423d50
jne 0x42429e
cmp dword [esi], 0
je 0x424228
test edi, edi
je 0x42429e
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esp + 0x20]
call fcn.00431f70
add esp, 0x14
cmp eax, 0xffffffff
je 0x42429e
test al, 1
je 0x42429e
mov ecx, dword [esi]
test ecx, ecx
jne 0x42427b
mov eax, dword [ebx]
mov eax, dword [eax + 0x90c]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x473094]
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 0x424297
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 0x42429e
add dword [esi + 8], eax
jmp 0x42429e
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 0x424307
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4242d8
mov dword [ebp], 0
lea eax, [edi + 0x52]
jmp 0x42430c
push 0x100
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.0044c950
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.00423a90
mov eax, dword [ebx]
add esp, 0x18
mov dword [eax + 0xd44], esi
mov eax, 0x37
jmp 0x424309
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.0045aaf4
add esp, 0x10c
ret
Function at 0x424740
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x474], 0
je 0x42475d
push eax
call fcn.0041df90
add esp, 4
test eax, eax
jne 0x42477c
xor al, al
ret
mov eax, dword [eax + 0x420]
cmp eax, 0xffffffff
je 0x42475a
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x42475a
mov al, 1
ret
Function at 0x426500
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 0x42651a
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 0x46360c
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
add esp, 8
test eax, eax
je 0x426563
test ebp, ebp
je 0x426554
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 0x426589
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x426589
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 0x42663f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4265a6
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x473094]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x426635
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x426635
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4265d8
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 0x4265f0
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 0x426600
test ebp, ebp
je 0x42662c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x473098]
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 [0x473098]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x42a630
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x42a644
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 0x42a658
xor al, al
ret
push eax
push 0
call fcn.00424670
add esp, 8
mov al, 1
ret
Function at 0x430490
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 [0x4730bc]
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 0x430676
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 0x430664
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x430664
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 0x430664
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x430664
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x430664
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x430664
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x430664
push ebx
push 0x464e84
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.00433760
lea esi, [esp + 0x34]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4305c2
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 0x430664
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 0x430664
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
sub esi, 4
jb 0x430617
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x43061c
add ecx, 4
add edx, 4
sub esi, 4
jae 0x430606
cmp esi, 0xfffffffc
je 0x430649
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x430664
cmp esi, 0xfffffffd
je 0x430649
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x430664
cmp esi, 0xfffffffe
je 0x430649
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x430664
cmp esi, 0xffffffff
je 0x430649
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x430664
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.0045aaf4
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.0045aaf4
add esp, 0x34
ret