joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f1b0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46dcab
push eax
mov dword fs:[0], esp
push ebx
mov ebx, dword [esp + 0x24]
push esi
push edi
mov ecx, ebx
call fcn.004226d0
mov esi, dword [esp + 0x28]
mov ecx, esi
call fcn.004226e0
test eax, eax
jne 0x43f219
push 0x18
call fcn.0045d8e0
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov dword [esp + 0x14], 0
je 0x43f2b0
mov ecx, eax
call fcn.00422840
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x43f265
mov eax, dword [esp + 0x30]
push eax
push esi
call fcn.00445bc0
mov esi, eax
mov ecx, esi
call fcn.004226e0
mov edi, eax
cmp edi, 0x10
jb 0x43f251
mov ecx, esi
call fcn.00422700
lea eax, [eax + edi - 0x10]
push 0x10
push eax
mov ecx, ebx
call fcn.00423270
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x43f28a
mov edx, dword [esp + 0x30]
push edx
push esi
call fcn.004526b0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x43f2b0
mov eax, dword [esp + 0x30]
push eax
push ebx
push esi
call fcn.00453c10
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret

Function at 0x43f2d0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46dccb
push eax
mov dword fs:[0], esp
push ebx
push esi
mov esi, dword [esp + 0x24]
push edi
mov ecx, esi
call fcn.004226e0
test eax, eax
jne 0x43f32e
push 0x18
call fcn.0045d8e0
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov dword [esp + 0x14], 0
je 0x43f3d5
mov ecx, eax
call fcn.00422840
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x43f386
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
push eax
push ebx
push esi
call fcn.00445d30
mov esi, eax
mov ecx, esi
call fcn.004226e0
mov edi, eax
cmp edi, 0x10
jb 0x43f372
mov ecx, ebx
call fcn.004226d0
mov ecx, esi
call fcn.00422700
lea eax, [eax + edi - 0x10]
push 0x10
push eax
mov ecx, ebx
call fcn.00423270
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x43f3ab
mov edx, dword [esp + 0x30]
push edx
push esi
call fcn.004527b0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x43f3d5
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push eax
push edx
push esi
call fcn.00453d90
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret
Function at 0x440600
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46dea8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
call fcn.0043bdd0
xor ebx, ebx
lea ecx, [esi + 0xc]
mov dword [esp + 0x14], ebx
mov byte [esi + 8], bl
call fcn.00416ed0
lea ecx, [esi + 0x44]
mov dword [esi + 0x30], ebx
xor eax, eax
mov byte [esi + 0x29], bl
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov byte [esi + 0x54], bl
mov dword [esi], vtable.FileInfo.0
mov dword [ecx], eax
xor edx, edx
mov dword [ecx + 4], eax
lea eax, [esi + 0x4c]
xor ecx, ecx
mov dword [eax], edx
mov dword [eax + 4], edx
lea edx, [esi + 0x3c]
mov eax, esi
pop esi
mov dword [edx], ecx
pop ebx
mov dword [edx + 4], ecx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x440a80
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46df28
push eax
mov dword fs:[0], esp
sub esp, 0x80
xor edx, edx
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
xor ecx, ecx
lea eax, [esi + 0x44]
mov byte [esi + 8], bl
push edi
lea edi, [esi + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], ecx
lea eax, [esi + 0x4c]
mov dword [esi + 0x4c], edx
mov dword [eax + 4], edx
lea eax, [esi + 0x3c]
mov dword [esi + 0x3c], ecx
mov dword [eax + 4], ecx
mov ecx, edi
mov dword [esi + 0x38], ebx
mov byte [esi + 0x28], bl
mov dword [esi + 0x2c], ebx
call fcn.00416380
mov ebp, dword [esp + 0xa0]
mov byte [esi + 0x29], bl
cmp ebp, ebx
je 0x440be2
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x440b41
lea edx, [esp + 0x10]
mov dword [esp + 0x10], ebx
push edx
push ebp
call fcn.0041cc00
add esp, 8
test al, al
jne 0x440be2
mov byte [esi + 8], 1
mov esi, dword [esp + 0xa4]
cmp esi, ebx
je 0x440be2
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x38]
mov edx, dword [esi]
push str.File_does_not_exist.
mov ecx, esi
call dword [edx + 0x10]
xor al, al
jmp 0x440c4d
mov dword [esi + 0x38], eax
lea ecx, [esp + 0x30]
shr eax, 4
and al, 1
mov byte [esi + 0x28], al
call fcn.00419d20
push ebp
lea ecx, [esp + 0x34]
mov dword [esp + 0x9c], ebx
call fcn.0041a050
lea ecx, [esp + 0x30]
call fcn.0041a7a0
push eax
mov ecx, edi
call fcn.00417e70
cmp byte [esi + 0x28], bl
je 0x440b90
mov eax, dword [esp + 0xa4]
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.0041bbe0
jmp 0x440ba2
mov edx, dword [esp + 0xa4]
lea eax, [esp + 0x30]
push edx
push eax
call fcn.0041ba20
mov ebp, eax
or edi, 0xffffffff
add esp, 8
cmp ebp, edi
je 0x440bd2
lea ecx, [esp + 0x28]
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, ebx
jne 0x440be6
push ebx
push ebp
call fcn.0043cf40
add esp, 8
lea ecx, [esp + 0x30]
mov dword [esp + 0x98], edi
call fcn.00419de0
xor al, al
jmp 0x440c4d
mov edi, dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [esi + 0x44]
lea ecx, [esp + 0x18]
push eax
push ecx
call edi
lea eax, [esi + 0x4c]
lea edx, [esp + 0x20]
push eax
push edx
call edi
lea eax, [esi + 0x3c]
push eax
lea eax, [esp + 0x2c]
push eax
call edi
lea ecx, [esp + 0x14]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 0x14]
mov dword [esi + 0x2c], eax
push edx
push eax
call fcn.00440c80
push ebx
mov dword [esi + 0x30], eax
push ebp
mov dword [esi + 0x34], edx
call fcn.0043cf40
add esp, 0x10
lea ecx, [esp + 0x30]
mov dword [esp + 0x98], 0xffffffff
call fcn.00419de0
mov al, 1
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x8c
ret 8
Function at 0x4435f0
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
push edi
mov edi, ecx
mov dword [edi], vtable.ZipCRC.0
mov al, byte [0x498d08]
test al, al
jne 0x443665
push ebx
push ebp
push esi
xor ebx, ebx
mov esi, 0x498908
push 8
push ebx
mov ecx, edi
call fcn.00443670
shl eax, 0x18
mov dword [esi], eax
mov edx, 8
mov ebp, eax
mov ecx, ebp
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
dec edx
mov ebp, eax
jne 0x443622
push 0x20
push eax
mov ecx, edi
mov dword [esi], ebp
call fcn.00443670
mov dword [esi], eax
add esi, 4
inc ebx
cmp esi, 0x498d04
jle 0x44360c
pop esi
pop ebp
mov eax, edi
pop ebx
mov byte [0x498d08], 1
pop edi
ret
mov eax, edi
pop edi
ret

Function at 0x4436c0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
test edx, edx
mov esi, ecx
je 0x4436fd
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4436fd
push ebx
push edi
lea edi, [eax]
mov eax, dword [esi + 4]
xor ebx, ebx
mov bl, byte [edx]
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x498908]
xor ecx, eax
inc edx
dec edi
mov dword [esi + 4], ecx
jne 0x4436d7
pop edi
pop ebx
pop esi
ret 8

Function at 0x443720
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x400
push esi
mov esi, dword [esp + 0x40c]
test esi, esi
jne 0x44373e
xor eax, eax
pop esi
add esp, 0x400
ret 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x418]
or edx, 0xffffffff
test ebp, ebp
jne 0x443783
mov eax, dword [esp + 0x410]
mov ecx, edx
xor ebx, ebx
mov bl, byte [eax]
and ecx, 0xff
xor ecx, ebx
shr edx, 8
mov ecx, dword [ecx*4 + 0x498908]
xor edx, ecx
inc eax
dec esi
jne 0x443755
mov eax, edx
pop ebp
pop ebx
pop esi
not eax
add esp, 0x400
ret 0xc
push edi
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x414]
xor eax, eax
mov al, byte [ecx]
mov edi, dword [esp + eax*4 + 0x10]
inc edi
mov dword [esp + eax*4 + 0x10], edi
mov edi, edx
and edi, 0xff
xor edi, eax
shr edx, 8
mov eax, dword [edi*4 + 0x498908]
xor edx, eax
inc ecx
dec esi
jne 0x443798
xor edi, edi
xor eax, eax
lea ecx, [esp + 0x10]
mov esi, 7
mov ebx, dword [ecx]
add ecx, 4
add eax, ebx
dec esi
jne 0x4437cc
lea ecx, [esp + 0x2c]
mov esi, 0x79
mov ebx, 0x80
add edi, dword [ecx]
add ecx, 4
dec esi
jne 0x4437e4
cmp ebx, 0x100
jge 0x443809
mov esi, 0x100
lea ecx, [esp + ebx*4 + 0x10]
sub esi, ebx
mov ebx, dword [ecx]
add ecx, 4
add eax, ebx
dec esi
jne 0x4437ff
shr edi, 2
cmp edi, eax
pop edi
sbb ecx, ecx
mov eax, edx
neg ecx
mov word [ebp], cx
pop ebp
pop ebx
pop esi
not eax
add esp, 0x400
ret 0xc
Function at 0x444520
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
mov ebx, ecx
push edi
mov ecx, esi
call fcn.004226e0
cmp eax, 0x10
jae 0x44454a
mov edi, 0x10
push 0
mov ecx, esi
call fcn.00423220
dec edi
jne 0x44453e
mov al, byte [esp + 0x34]
test al, al
jne 0x444561
mov ecx, esi
call fcn.00422700
push eax
mov ecx, ebx
call fcn.00444330
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x444577
pop edi
pop esi
pop ebp
mov eax, 0xfffffffb
pop ebx
add esp, 0x10
ret 0x14
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x44458d
pop edi
pop esi
pop ebp
mov eax, 0xfffffffa
pop ebx
add esp, 0x10
ret 0x14
mov esi, dword [esp + 0x24]
test esi, esi
je 0x4446ae
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x4446ae
cdq
and edx, 0x7f
add eax, edx
mov ebp, eax
mov eax, dword [ebx + 0x28]
sar ebp, 7
sub eax, 0
je 0x444679
dec eax
je 0x4445cc
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret 0x14
mov eax, dword [ebx + 0x30]
mov ecx, dword [esi]
mov edx, dword [esi + 8]
mov edi, dword [ebx + 0x38]
xor eax, ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x34]
xor ecx, eax
mov eax, dword [esi + 0xc]
xor edx, edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov edx, dword [ebx + 0x3c]
lea ecx, [esp + 0x10]
push edi
xor eax, edx
push ecx
mov ecx, ebx
mov dword [esp + 0x24], eax
call fcn.00445250
lea eax, [ebp - 1]
add esi, 0x10
test eax, eax
jle 0x44469f
mov dword [esp + 0x34], eax
mov edx, dword [esi]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
xor edx, eax
mov eax, dword [esi + 4]
mov dword [esp + 0x10], edx
mov edx, dword [edi + 8]
xor eax, ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0xc]
xor ecx, edx
mov edx, dword [esi + 0xc]
add edi, 0x10
xor edx, eax
lea eax, [esp + 0x10]
mov dword [esp + 0x18], ecx
push edi
push eax
mov ecx, ebx
mov dword [esp + 0x24], edx
call fcn.00445250
mov eax, dword [esp + 0x34]
add esi, 0x10
dec eax
mov dword [esp + 0x34], eax
jne 0x44461e
pop edi
mov eax, ebp
pop esi
pop ebp
shl eax, 7
pop ebx
add esp, 0x10
ret 0x14
test ebp, ebp
jle 0x44469f
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x34], ebp
push edi
push esi
mov ecx, ebx
call fcn.00445250
mov eax, dword [esp + 0x34]
add esi, 0x10
add edi, 0x10
dec eax
mov dword [esp + 0x34], eax
jne 0x444685
pop edi
mov eax, ebp
pop esi
pop ebp
shl eax, 7
pop ebx
add esp, 0x10
ret 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 0x14
Function at 0x444d60
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
mov eax, dword [edi + 0x24]
test eax, eax
je 0x444d83
pop edi
pop esi
pop ebp
mov eax, 0xfffffffb
pop ebx
add esp, 0x24
ret 0x14
mov ebx, dword [edi + 0x28]
cmp ebx, 2
je 0x444da1
mov eax, dword [edi + 0x2c]
test eax, eax
jne 0x444da1
pop edi
pop esi
pop ebp
mov eax, 0xfffffffa
pop ebx
add esp, 0x24
ret 0x14
mov esi, dword [esp + 0x38]
test esi, esi
je 0x444ef7
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x444ef7
cdq
and edx, 0x7f
add eax, edx
mov ecx, eax
mov eax, ebx
sar ecx, 7
sub eax, 0
mov dword [esp + 0x38], ecx
je 0x444ec8
dec eax
je 0x444de3
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x24
ret 0x14
mov al, byte [esp + 0x48]
test al, al
je 0x444e05
mov eax, dword [edi + 0x38]
mov edx, dword [edi + 0x3c]
mov ebx, dword [edi + 0x30]
mov ebp, dword [edi + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x30], edx
jmp 0x444e1c
mov eax, dword [esp + 0x44]
mov edx, dword [eax + 8]
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x30], edx
test ecx, ecx
jle 0x444ea6
mov edi, dword [esp + 0x40]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00445700
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
xor eax, ebx
mov ebx, dword [esp + 0x2c]
xor ecx, ebp
mov ebp, dword [esp + 0x20]
xor edx, ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x18], ecx
xor ebp, ebx
mov ebx, dword [esi]
mov dword [esp + 0x20], ebp
mov dword [edi], eax
mov ebp, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], edx
mov dword [edi + 8], edx
mov edx, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x48]
add esi, 0x10
add edi, 0x10
dec eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x48], eax
jne 0x444e2c
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
mov dword [eax], ebx
mov dword [eax + 4], ebp
mov dword [eax + 8], edx
mov edx, dword [esp + 0x30]
pop edi
mov dword [eax + 0xc], edx
mov eax, ecx
pop esi
pop ebp
shl eax, 7
pop ebx
add esp, 0x24
ret 0x14
test ecx, ecx
jle 0x444ee8
mov ebx, dword [esp + 0x40]
mov ebp, ecx
push ebx
push esi
mov ecx, edi
call fcn.00445700
add esi, 0x10
add ebx, 0x10
dec ebp
jne 0x444ed2
mov ecx, dword [esp + 0x38]
pop edi
mov eax, ecx
pop esi
pop ebp
shl eax, 7
pop ebx
add esp, 0x24
ret 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 0x14
Function at 0x445140
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
mov edx, 1
cmp dword [esi + 0x40], edx
jle 0x44524b
push ebx
push edi
lea eax, [esi + 0x56]
xor ebx, ebx
xor ecx, ecx
mov bl, byte [eax - 1]
mov cl, byte [eax + 1]
add eax, 0x10
mov edi, dword [ebx*4 + 0x48ae28]
mov ecx, dword [ecx*4 + 0x48b628]
xor ebx, ebx
xor ecx, edi
mov bl, byte [eax - 0x10]
mov edi, dword [ebx*4 + 0x48b228]
xor ebx, ebx
mov bl, byte [eax - 0x12]
xor ecx, edi
mov edi, dword [ebx*4 + 0x48aa28]
xor ebx, ebx
xor ecx, edi
mov dword [eax - 0x12], ecx
mov bl, byte [eax - 0xc]
xor ecx, ecx
mov cl, byte [eax - 0xb]
mov edi, dword [ebx*4 + 0x48b228]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x48b628]
mov bl, byte [eax - 0xd]
xor ecx, edi
mov edi, dword [ebx*4 + 0x48ae28]
xor ebx, ebx
mov bl, byte [eax - 0xe]
xor ecx, edi
mov edi, dword [ebx*4 + 0x48aa28]
xor ebx, ebx
xor ecx, edi
mov dword [eax - 0xe], ecx
mov bl, byte [eax - 8]
xor ecx, ecx
mov cl, byte [eax - 7]
mov edi, dword [ebx*4 + 0x48b228]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x48b628]
mov bl, byte [eax - 9]
xor ecx, edi
mov edi, dword [ebx*4 + 0x48ae28]
xor ebx, ebx
mov bl, byte [eax - 0xa]
xor ecx, edi
mov edi, dword [ebx*4 + 0x48aa28]
xor ebx, ebx
xor ecx, edi
mov dword [eax - 0xa], ecx
mov bl, byte [eax - 4]
xor ecx, ecx
mov cl, byte [eax - 3]
mov edi, dword [ebx*4 + 0x48b228]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x48b628]
mov bl, byte [eax - 5]
xor ecx, edi
mov edi, dword [ebx*4 + 0x48ae28]
xor ebx, ebx
mov bl, byte [eax - 6]
xor ecx, edi
mov edi, dword [ebx*4 + 0x48aa28]
xor ecx, edi
inc edx
mov dword [eax - 6], ecx
mov ecx, dword [esi + 0x40]
cmp edx, ecx
jl 0x445156
pop edi
pop ebx
pop esi
ret
Function at 0x447330
Capabilities:
Initialize winsock library

Disassembly:
mov al, byte [0x48bcec]
sub esp, 0x218
test al, al
jne 0x447348
mov al, 1
add esp, 0x218
ret
push ebx
push ebp
push esi
mov ebp, dword [sym.imp.WS2_32.dll_WSAStartup]
push edi
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x98]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x98]
push eax
push 0x909
call ebp
mov esi, eax
cmp esi, 0x276c
jne 0x44740d
mov ebx, 5
mov dword [esp + 0x10], 2
cmp ebx, 1
jl 0x4473d6
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jns 0x4473a5
mov dword [esp + 0x10], 9
dec ebx
test ebx, ebx
je 0x4473d6
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x98]
xor edx, edx
mov dh, byte [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x98]
mov dl, bl
push ecx
push edx
call ebp
mov esi, eax
cmp esi, 0x276c
je 0x44738c
test esi, esi
jne 0x447415
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x48]
push eax
push ebx
push str.Using_ws2_32.dll_version__d__d
push ecx
call fcn.0045d7c4
mov ecx, dword [esp + 0x23c]
add esp, 0x10
lea eax, [esp + 0x48]
mov edx, dword [ecx]
push eax
push str.ws2_32_DLL_Version
call dword [edx + 0x28]
jmp 0x4474ba
test esi, esi
je 0x4474ba
cmp esi, 0x276b
jne 0x447430
mov ecx, dword [esp + 0x22c]
push str.The_underlying_network_subsystem_is_not_ready_for_network_communication.
mov edx, dword [ecx]
jmp 0x4474b7
cmp esi, 0x276c
jne 0x44744b
mov ecx, dword [esp + 0x22c]
push str.The_version_of_Windows_Sockets_support_requested_is_not_provided_by_this_particular_Windows_Sockets_implementation.
mov eax, dword [ecx]
call dword [eax + 0x10]
jmp 0x4474ba
cmp esi, 0x2734
jne 0x447463
mov ecx, dword [esp + 0x22c]
push str.A_blocking_Windows_Sockets_1.1_operation_is_in_progress.
mov edx, dword [ecx]
jmp 0x4474b7
cmp esi, 0x2753
jne 0x44747e
mov ecx, dword [esp + 0x22c]
push str.Limit_on_the_number_of_tasks_supported_by_the_Windows_Sockets_implementation_has_been_reached.
mov eax, dword [ecx]
call dword [eax + 0x10]
jmp 0x4474ba
cmp esi, 0x271e
jne 0x447496
mov ecx, dword [esp + 0x22c]
push str.The_lpWSAData_is_not_a_valid_pointer.
mov edx, dword [ecx]
jmp 0x4474b7
push esi
lea eax, [esp + 0x18]
push str.WSAStartup_error:_0x_x
push eax
call fcn.0045d7c4
mov ecx, dword [esp + 0x238]
add esp, 0xc
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebp
mov byte [0x48bcec], 0
pop ebx
sete al
add esp, 0x218
ret
Function at 0x447500
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46e478
push eax
mov al, byte [0x48bcec]
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
mov esi, ecx
test al, al
je 0x447539
push edi
call fcn.00447330
add esp, 4
test al, al
je 0x4475e4
push edi
push 1
mov ecx, esi
call fcn.00448fe0
push 0
push 1
push 2
mov bl, 1
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x4c], eax
jne 0x44756a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
push eax
mov ecx, esi
call fcn.00447980
xor bl, bl
lea ebp, [esi + 0xe4]
mov ecx, ebp
call fcn.004226f0
test eax, eax
je 0x4475e2
mov ebx, dword [edi]
mov ecx, ebp
call fcn.00422700
push eax
push str.BindIpAddr
mov ecx, edi
call dword [ebx + 0x28]
mov ecx, ebp
call fcn.00422700
push eax
mov ecx, esi
call fcn.00448f20
mov bl, al
test bl, bl
jne 0x4475e2
mov eax, dword [edi]
push str.Failed_to_bind_to_local_IP_address
mov ecx, edi
call dword [eax + 0x10]
lea ecx, [esp + 0x20]
call fcn.0041e470
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0
push ecx
push 2
mov ecx, esi
call fcn.00448fe0
or eax, 0xffffffff
lea ecx, [esp + 0x20]
mov dword [esi + 0x4c], eax
mov dword [esp + 0x18], eax
call fcn.0041e4b0
mov al, bl
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 4
Function at 0x447620
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46e4a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
mov esi, dword [esp + 0x5c]
push edi
mov ecx, esi
call fcn.00416380
mov edi, dword [esp + 0x64]
xor ebx, ebx
lea ecx, [esp + 0x14]
mov byte [edi], bl
call fcn.00416ed0
lea ecx, [esp + 0xc]
mov dword [esp + 0x54], ebx
call fcn.004521a0
lea eax, [esp + 0x14]
push ebx
push eax
push str.ProxyServer
push str._Software_Microsoft_Windows_CurrentVersion_Internet_Settings
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 1
call fcn.004524c0
cmp al, bl
je 0x4476bf
lea ecx, [esp + 0x30]
call fcn.00416ed0
lea ecx, [esp + 0x30]
push ebx
push ecx
push str.ProxyEnable
push str._Software_Microsoft_Windows_CurrentVersion_Internet_Settings
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 2
call fcn.004524c0
cmp al, bl
jne 0x4476f1
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 1
call fcn.004171c0
lea ecx, [esp + 0xc]
mov byte [esp + 0x54], bl
call fcn.004521d0
lea ecx, [esp + 0x14]
mov dword [esp + 0x54], 0xffffffff
call fcn.004171c0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret
push 0x47f3f0
lea ecx, [esp + 0x34]
call fcn.00418320
push 0x3d
lea ecx, [esp + 0x18]
mov byte [edi], al
call fcn.004168e0
test al, al
je 0x447721
mov edx, dword [esp + 0x5c]
push esi
push edx
lea ecx, [esp + 0x1c]
call fcn.004165e0
jmp 0x44772d
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.00417dd0
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 1
call fcn.004171c0
lea ecx, [esp + 0xc]
mov byte [esp + 0x54], bl
call fcn.004521d0
lea ecx, [esp + 0x14]
mov dword [esp + 0x54], 0xffffffff
call fcn.004171c0
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret
Function at 0x448b30
Capabilities:
Get socket status

Disassembly:
mov eax, dword [ecx + 0x4c]
sub esp, 0x10c
cmp eax, 0xffffffff
jne 0x448b5a
mov ecx, dword [esp + 0x114]
push str.invalid_socket__not_ready_for_writing.
mov eax, dword [ecx]
call dword [eax + 0x10]
xor al, al
add esp, 0x10c
ret 8
mov ecx, dword [esp + 0x110]
test ecx, ecx
jne 0x448b6a
mov ecx, 0x5460
mov dword [esp], ecx
lea ecx, [esp]
push ecx
lea edx, [esp + 0xc]
push 0
push edx
push 0
push 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x448bb9
mov ecx, dword [esp + 0x114]
push str.select_returned_a_socket_error
mov eax, dword [ecx]
call dword [eax + 0x10]
xor al, al
add esp, 0x10c
ret 8
cmp eax, 1
jne 0x448bc9
mov al, al
add esp, 0x10c
ret 8
mov ecx, dword [esp + 0x114]
push str.socket_is_not_ready_for_writing.
mov edx, dword [ecx]
call dword [edx + 0x10]
xor al, al
add esp, 0x10c
ret 8

Function at 0x448bf0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push esi
mov esi, dword [ecx + 0x4c]
cmp esi, 0xffffffff
jne 0x448c1c
mov ecx, dword [esp + 0x118]
push str.invalid_socket__not_ready_for_writing.
mov eax, dword [ecx]
call dword [eax + 0x10]
xor al, al
pop esi
add esp, 0x10c
ret 8
mov ecx, dword [esp + 0x114]
test ecx, ecx
jne 0x448c2c
mov ecx, 0x1499700
mov eax, 0x10624dd3
mov dword [esp + 0x10], esi
mul ecx
shr edx, 6
mov dword [esp + 4], edx
mov dword [esp + 0xc], 1
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
sub ecx, edx
lea edx, [esp + 0xc]
lea eax, [ecx + ecx*4]
lea ecx, [esp + 4]
push ecx
push 0
lea eax, [eax + eax*4]
push edx
push 0
push 0
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x448c9c
mov ecx, dword [esp + 0x118]
push str.select_returned_a_socket_error
mov eax, dword [ecx]
call dword [eax + 0x10]
xor al, al
pop esi
add esp, 0x10c
ret 8
cmp eax, 1
jne 0x448cad
mov al, al
pop esi
add esp, 0x10c
ret 8
mov ecx, dword [esp + 0x118]
push str.socket_is_not_ready_for_writing
mov edx, dword [ecx]
call dword [edx + 0x10]
xor al, al
pop esi
add esp, 0x10c
ret 8