joyce8/EMBER2024-capa huggingface dataset:
Function at 0x492610
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5789d8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x641030]
xor eax, esp
mov dword [esp + 0x40], eax
push esi
push edi
mov eax, dword [0x641030]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
lea ecx, [esp + 0xc]
call fcn.0040d700
lea ecx, [esp + 0xc]
mov dword [esp + 0x58], 0
call fcn.0040db80
movzx eax, word [esp + 0x14]
cdq
mov ecx, 0x64
idiv ecx
mov ecx, 0xa
mov edi, 0xa
mov eax, edx
cdq
idiv ecx
mov esi, edx
cdq
idiv ecx
mov ecx, dword [str.0123456789]
movzx edx, byte [edx + ecx]
mov byte [esp + 0x2c], dl
movzx eax, byte [esi + ecx]
mov byte [esp + 0x2d], al
movzx eax, word [esp + 0x16]
cdq
mov esi, 0xa
idiv esi
mov esi, edx
cdq
idiv edi
movzx edx, byte [edx + ecx]
mov byte [esp + 0x2e], dl
movzx eax, byte [esi + ecx]
mov byte [esp + 0x2f], al
movzx eax, word [esp + 0x1a]
cdq
mov esi, edi
idiv esi
mov esi, edx
cdq
idiv edi
movzx edx, byte [edx + ecx]
mov byte [esp + 0x30], dl
movzx eax, byte [esi + ecx]
mov byte [esp + 0x31], al
movzx eax, word [esp + 0x1c]
cdq
mov esi, edi
idiv esi
mov esi, edx
cdq
idiv edi
movzx edx, byte [edx + ecx]
mov byte [esp + 0x32], dl
movzx eax, byte [esi + ecx]
mov byte [esp + 0x33], al
movzx eax, word [esp + 0x1e]
cdq
mov esi, edi
idiv esi
mov esi, edx
cdq
idiv edi
movzx edx, byte [edx + ecx]
mov byte [esp + 0x34], dl
movzx eax, byte [esi + ecx]
mov byte [esp + 0x35], al
movzx eax, word [esp + 0x20]
cdq
mov esi, edi
idiv esi
mov esi, edx
cdq
idiv edi
movzx edx, byte [edx + ecx]
mov byte [esp + 0x36], dl
movzx eax, byte [esi + ecx]
mov byte [esp + 0x37], al
mov byte [esp + 0x38], 0x5a
call fcn.00491410
mov esi, eax
test esi, esi
jne 0x492594
lea ecx, [esp + 0xc]
mov dword [esp + 0x58], 0xffffffff
call fcn.0040d6c0
xor eax, eax
jmp 0x4925ea
mov ecx, esi
call fcn.004127f0
mov byte [esi + 0x2d], 1
mov dword [esi + 0x30], 0x17
mov dword [esi + 0x34], 0xd
call fcn.0044add0
mov dword [esi + 0x3c], eax
test eax, eax
je 0x49257f
mov ecx, dword [esi + 0x34]
push ecx
mov ecx, eax
call fcn.0044b660
test al, al
je 0x49257f
mov ecx, dword [esi + 0x3c]
push 0xd
lea edx, [esp + 0x30]
push edx
call fcn.00448260
lea ecx, [esp + 0xc]
mov dword [esp + 0x58], 0xffffffff
call fcn.0040d6c0
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.005550b0
add esp, 0x50
ret
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
jne 0x49261f
pop ebx
jmp 0x492450
push edi
push ebx
call fcn.004142c0
mov edi, eax
add esp, 4
cmp edi, 4
ja 0x492637
pop edi
pop ebx
jmp 0x492450
push esi
call fcn.00491410
mov esi, eax
test esi, esi
je 0x492673
mov ecx, esi
call fcn.004127f0
mov byte [esi + 0x2d], 1
mov dword [esi + 0x30], 0x17
mov dword [esi + 0x34], edi
call fcn.0044add0
mov dword [esi + 0x3c], eax
test eax, eax
je 0x492673
mov ecx, dword [esi + 0x34]
push ecx
mov ecx, eax
call fcn.0044b660
test al, al
jne 0x492679
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ecx, dword [esi + 0x3c]
push edi
push ebx
call fcn.00448260
mov eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4931f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x57eaf8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
mov eax, dword [0x641030]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
push esi
lea ecx, [esp + 0x10]
call fcn.00436260
cmp dword [esi + 0x40], 0
mov dword [esp + 0x20], 0
jne 0x493256
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.00436290
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x18
ret 8
cmp dword [esi + 0x28], 0
jne 0x49328f
call fcn.0044f100
mov dword [esi + 0x28], eax
test eax, eax
jne 0x49328f
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.00436290
xor al, al
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x18
ret 8
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esi + 0x28]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esi + 0x40]
push edx
push 0
push eax
call fcn.0051d090
mov ecx, dword [esi + 0x40]
push eax
call fcn.00446f60
push eax
call fcn.00491540
mov ecx, dword [esi + 0x40]
push ecx
mov bl, al
call fcn.00439410
add esp, 0x20
lea ecx, [esp + 0xc]
mov dword [esi + 0x40], 0
mov dword [esp + 0x20], 0xffffffff
call fcn.00436290
mov al, bl
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x18
ret 8

Function at 0x493400
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5726e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x641030]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea ecx, [esp + 0xc]
call fcn.0044e8e0
mov eax, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x40]
push 0
push 1
lea edx, [esp + 0x1c]
push edx
push eax
push ecx
mov dword [esp + 0x4c], 0
mov byte [esp + 0x40], 1
call fcn.00491540
add esp, 0x1c
lea ecx, [esp + 0xc]
test al, al
jne 0x493487
mov dword [esp + 0x30], 0xffffffff
call fcn.0044f1c0
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret
push 0
call fcn.0044e910
test eax, eax
jne 0x4934b6
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.0044f1c0
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret
mov esi, dword [eax + 8]
mov ecx, esi
call fcn.004127f0
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.0044f1c0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret
Function at 0x49c230
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [esp + 8]
cmp dword [ecx + 0x10], 1
je 0x49c25d
mov eax, dword [ecx + 8]
test eax, eax
je 0x49c25d
jle 0x49c254
mov eax, dword [ecx + 4]
test byte [eax], 1
je 0x49c254
mov dword [esp + 8], ecx
jmp fcn.0049a510
mov dword [esp + 8], ecx
jmp fcn.0049b890
mov eax, 0xfffffffd
ret

Function at 0x49c6a0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x579246
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x641030]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x641030]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
mov edi, dword [esp + 0x124]
mov ebx, dword [esp + 0x120]
mov eax, dword [esp + 0x128]
mov esi, dword [esp + 0x12c]
lea ecx, [esp + 0x1c]
push ecx
push 0
lea edx, [esp + 0x28]
push edx
push 0
push edi
push ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebp, eax
mov byte [esp + 0x17], 0
test ebp, ebp
jne 0x49c848
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x49c8ad
push eax
call fcn.004144e0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x49c752
xor al, al
jmp 0x49c8b1
lea eax, [esp + 0x1c]
push eax
push ebp
lea ecx, [esp + 0x28]
push ecx
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test ebx, ebx
jne 0x49c7e4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
cmp eax, 4
jne 0x49c79f
cmp ecx, 4
jne 0x49c7c6
mov edx, dword [ebp]
mov ecx, dword [esp + 0x18]
push edx
call fcn.00430020
push ebp
mov byte [esp + 0x1b], 1
call fcn.00554bd9
add esp, 4
jmp 0x49c8ad
cmp eax, 1
je 0x49c7a9
cmp eax, 2
jne 0x49c7c6
mov ecx, dword [esp + 0x18]
push ebp
call fcn.0042cd60
push ebp
mov byte [esp + 0x1b], 1
call fcn.00554bd9
add esp, 4
jmp 0x49c8ad
push ecx
mov ecx, dword [esp + 0x1c]
push ebp
call fcn.0042fb80
push ebp
mov byte [esp + 0x1b], 1
call fcn.00554bd9
add esp, 4
jmp 0x49c8ad
lea ecx, [esp + 0x24]
call fcn.0042d110
push ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x11c], 0
call fcn.0042f050
mov ebx, dword [esi]
lea ecx, [esp + 0x24]
call fcn.0051b3b0
push eax
mov eax, dword [ebx + 0x2c]
push str.RegistryQueryError2
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
push edi
push str.ValueName
mov ecx, esi
call eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x118], 0xffffffff
call fcn.0042d1d0
push ebp
call fcn.00554bd9
add esp, 4
jmp 0x49c8ad
lea ecx, [esp + 0x98]
call fcn.0042d110
push ebp
lea ecx, [esp + 0x9c]
mov dword [esp + 0x11c], 1
call fcn.0042f050
mov ebx, dword [esi]
lea ecx, [esp + 0x98]
call fcn.0051b3b0
mov edx, dword [ebx + 0x2c]
push eax
push str.RegistryQueryError
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push edi
push str.ValueName
mov ecx, esi
call edx
lea ecx, [esp + 0x98]
mov dword [esp + 0x118], 0xffffffff
call fcn.0042d1d0
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.005550b0
add esp, 0x108
ret
Function at 0x49df30
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov byte [ebp], 0
mov ebx, ecx
mov dword [edi], 0
test esi, esi
je 0x49e00d
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x49e00d
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
je 0x49dfb0
push 0
push edi
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x49df9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x49dfa3
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x49e021
push eax
call fcn.00437640
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x14
cmp dword [edi], 0
jne 0x49dfa7
mov byte [ebp], 1
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0x14
mov eax, dword [ebx + 4]
test eax, eax
je 0x49dff0
push eax
push esi
push 1
push ecx
call fcn.00559ed6
add esp, 0x10
mov dword [edi], eax
cmp eax, esi
je 0x49dfa7
mov eax, dword [ebx + 4]
push eax
call fcn.00559c02
add esp, 4
test eax, eax
je 0x49dfa3
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x49e021
call fcn.00437570
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x14
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x49e021
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push str.No_file_is_open.
call eax
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x14
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x49e021
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push str.NULL_buf_or_bufSize
call eax
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x14
Function at 0x49e030
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp dword [ecx + 8], 0xffffffff
mov dword [esp], ecx
jne 0x49e05a
cmp dword [ecx + 4], 0
jne 0x49e05a
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x49e054
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push str.Failed_to_write_because_file_is_not_open.
call edx
xor al, al
pop ecx
ret 0x14
push ebx
mov ebx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x49e075
mov dword [edi], 0
mov dword [edi + 4], 0
push ebp
mov ebp, dword [esp + 0x18]
mov eax, ebp
or eax, dword [esp + 0x1c]
push esi
je 0x49e14d
mov edx, dword [esp + 0x18]
jmp 0x49e090
cmp dword [esp + 0x20], 0
jl 0x49e0a8
jg 0x49e0a1
cmp ebp, 0x989680
jbe 0x49e0a8
mov esi, 0x989680
jmp 0x49e0aa
mov esi, ebp
mov eax, dword [ecx + 8]
cmp eax, 0xffffffff
je 0x49e108
push 0
lea ecx, [esp + 0x1c]
push ecx
push esi
push ebx
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x49e0d6
mov edx, dword [esp + 0x18]
cmp edx, esi
je 0x49e127
mov esi, dword [esp + 0x28]
test esi, esi
je 0x49e0fe
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push 1
push str.WriteFileError
mov ecx, esi
call eax
mov ecx, esi
call fcn.00437570
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
mov ecx, esi
call eax
pop esi
pop ebp
pop edi
xor al, al
pop ebx
pop ecx
ret 0x14
mov eax, dword [ecx + 4]
test eax, eax
je 0x49e12b
push eax
push 1
push esi
push ebx
call fcn.00556f32
add esp, 0x10
cmp eax, 1
jne 0x49e157
mov edx, esi
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x10]
add ebx, esi
sub ebp, esi
mov eax, 0
sbb dword [esp + 0x20], eax
cmp edi, eax
je 0x49e141
add dword [edi], edx
adc dword [edi + 4], eax
mov eax, ebp
or eax, dword [esp + 0x20]
jne 0x49e090
pop esi
pop ebp
pop edi
mov al, 1
pop ebx
pop ecx
ret 0x14
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x49e16b
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push str.fwrite_failed.
call eax
pop esi
pop ebp
pop edi
xor al, al
pop ebx
pop ecx
ret 0x14
Function at 0x49e180
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x576d7b
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x641030]
xor eax, esp
mov dword [esp + 0x74], eax
push ebx
push esi
push edi
mov eax, dword [0x641030]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov eax, dword [ecx + 8]
mov esi, dword [esp + 0x98]
cmp eax, 0xffffffff
je 0x49e229
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x49e225
test esi, esi
je 0x49e225
lea ecx, [esp + 0x10]
call fcn.0042d110
lea ecx, [esp + 0x10]
mov dword [esp + 0x90], 0
call fcn.00431540
mov edi, dword [esi]
lea ecx, [esp + 0x10]
call fcn.0051b3b0
push eax
mov eax, dword [edi + 0x14]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Failed_to_get_file_size__32_
mov ecx, esi
call eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x90], ebx
call fcn.0042d1d0
mov eax, ebx
jmp 0x49e244
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x49e241
push ecx
call fcn.0055968d
push eax
call fcn.00559ef3
add esp, 8
jmp 0x49e244
or eax, 0xffffffff
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.005550b0
add esp, 0x84
ret 4

Function at 0x49e270
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x57d32b
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x641030]
xor eax, esp
mov dword [esp + 0x78], eax
push esi
push edi
mov eax, dword [0x641030]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov esi, dword [esp + 0x98]
mov edi, ecx
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x49e375
lea ecx, [esp + 0xc]
push ecx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x49e365
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x49e365
test esi, esi
je 0x49e33b
lea ecx, [esp + 0x10]
call fcn.0042d110
lea ecx, [esp + 0x10]
mov dword [esp + 0x90], 0
call fcn.00431540
mov edi, dword [esi]
lea ecx, [esp + 0x10]
call fcn.0051b3b0
mov edx, dword [edi + 0x14]
push eax
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Failed_to_get_file_size__64_
mov ecx, esi
call edx
lea ecx, [esp + 0x10]
mov dword [esp + 0x90], 0xffffffff
call fcn.0042d1d0
or eax, 0xffffffff
or edx, eax
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.005550b0
add esp, 0x88
ret 4
mov eax, dword [esp + 0xc]
push eax
push edi
call fcn.00468e00
add esp, 8
jmp 0x49e340
mov eax, dword [edi + 4]
test eax, eax
je 0x49e33b
push eax
call fcn.00556c76
mov edi, dword [edi + 4]
push edi
call fcn.0055968d
push eax
call fcn.00559ff2
add esp, 0xc
jmp 0x49e340
Function at 0x4aa600
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x224
mov eax, dword [0x641030]
xor eax, esp
mov dword [esp + 0x220], eax
cmp byte [0x63de24], 0
push edi
mov edi, ecx
jne 0x4aa638
mov al, 1
pop edi
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.005550b0
add esp, 0x224
ret
push ebp
push 0x190
lea eax, [esp + 0x18]
push 0
push eax
mov dword [esp + 0x18], 1
call fcn.00554cc0
mov ebp, dword [sym.imp.WS2_32.dll_WSAStartup]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0x909
call ebp
mov dword [esp + 0xc], eax
cmp eax, 0x276c
jne 0x4aa72c
mov ecx, 5
push esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], 2
jmp 0x4aa694
mov ecx, dword [esp + 0x14]
cmp ecx, 1
jl 0x4aa6ec
sub dword [esp + 0xc], 1
jns 0x4aa6ad
dec ecx
mov dword [esp + 0xc], 9
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x4aa6ec
movzx dx, byte [esp + 0xc]
movzx ax, cl
push 0x190
shl dx, 8
lea ecx, [esp + 0x1c]
or dx, ax
push 0
push ecx
movzx esi, dx
call fcn.00554cc0
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push esi
call ebp
mov dword [esp + 0x10], eax
cmp eax, 0x276c
je 0x4aa690
pop esi
test eax, eax
jne 0x4aa734
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
push str.Using_ws2_32.dll_version__d__d
lea edx, [esp + 0x1e4]
push 0x50
push edx
call fcn.00435f50
mov eax, dword [edi]
mov edx, dword [eax + 0x2c]
add esp, 0x14
lea ecx, [esp + 0x1d8]
push ecx
push str.ws2_32_DLL_Version
mov ecx, edi
call edx
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4aa7c0
cmp eax, 0x276b
jne 0x4aa747
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push str.The_underlying_network_subsystem_is_not_ready_for_network_communication.
jmp 0x4aa7bc
cmp eax, 0x276c
jne 0x4aa75a
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push str.The_version_of_Windows_Sockets_support_requested_is_not_provided_by_this_particular_Windows_Sockets_implementation.
jmp 0x4aa7bc
cmp eax, 0x2734
jne 0x4aa76d
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push str.A_blocking_Windows_Sockets_1.1_operation_is_in_progress.
jmp 0x4aa7bc
cmp eax, 0x2753
jne 0x4aa780
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push str.Limit_on_the_number_of_tasks_supported_by_the_Windows_Sockets_implementation_has_been_reached.
jmp 0x4aa7bc
cmp eax, 0x271e
jne 0x4aa793
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push str.The_lpWSAData_is_not_a_valid_pointer.
jmp 0x4aa7bc
lea eax, [esp + 0xc]
push eax
push str.WSAStartup_error:_0x_x
lea ecx, [esp + 0x1ac]
push 0x32
push ecx
call fcn.00435f30
mov edx, dword [edi]
mov edx, dword [edx + 0x14]
add esp, 0x10
lea eax, [esp + 0x1a4]
push eax
mov ecx, edi
call edx
mov byte [0x63de24], 0
call fcn.004aa510
mov ecx, dword [esp + 0x228]
xor eax, eax
cmp dword [esp + 0xc], eax
pop ebp
sete al
pop edi
xor ecx, esp
call fcn.005550b0
add esp, 0x224
ret
Function at 0x4aab90
Capabilities:
Set socket configuration

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx + 0xd0], 0x4901fb2a
je 0x4aabbd
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push str.Internal_error:_Socket_object_already_deleted.
call edx
push 0
call fcn.0049ce60
add esp, 4
pop ebx
ret 8
mov eax, dword [esp + 8]
cmp dword [ebx + 0xd8], eax
push esi
lea esi, [ebx + 0xd8]
je 0x4aac3e
test eax, eax
je 0x4aac3e
cmp eax, 0x1000
jb 0x4aac3e
cmp eax, 0x800000
jbe 0x4aabe7
mov eax, 0x800000
shr eax, 0xc
shl eax, 0xc
cmp dword [ebx + 0x294], 0xffffffff
mov dword [esi], eax
je 0x4aac3e
push edi
mov edi, dword [esp + 0x14]
cmp byte [edi + 0x121], 0
je 0x4aac23
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
push str.Setting_SO_SNDBUF_size
mov ecx, edi
call edx
mov eax, dword [esi]
push eax
push str.sendBufSize
mov ecx, edi
call fcn.004373b0
mov ecx, dword [ebx + 0x294]
push 4
push esi
push 0x1001
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
pop edi
pop esi
pop ebx
ret 8

Function at 0x4aace0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 8
push esi
mov esi, ecx
cmp dword [esi + 0x294], 0xffffffff
je 0x4aad6b
cmp byte [esp + 0x10], 0
mov ecx, dword [esp + 0x14]
mov dword [esp + 4], 1
mov dword [esp + 8], 0
je 0x4aad3e
cmp byte [ecx + 0x121], 0
je 0x4aad1f
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
push str.Turning_on_TCP_NODELAY.
call edx
mov ecx, dword [esi + 0x294]
push 4
lea eax, [esp + 8]
push eax
push 1
push 6
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
add esp, 8
ret 8
cmp byte [ecx + 0x121], 0
je 0x4aad53
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
push str.Turning_off_TCP_NODELAY.
call eax
mov edx, dword [esi + 0x294]
push 4
lea ecx, [esp + 0xc]
push ecx
push 1
push 6
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
add esp, 8
ret 8

Function at 0x4aad80
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [ecx + 0x294]
sub esp, 8
cmp eax, 0xffffffff
jne 0x4aad96
xor al, al
add esp, 8
ret 8
cmp byte [esp + 0xc], 0
mov dword [esp], 1
mov dword [esp + 4], 0
push 4
je 0x4aadb5
lea ecx, [esp + 4]
push ecx
jmp 0x4aadba
lea edx, [esp + 8]
push edx
push 8
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov al, 1
add esp, 8
ret 8
Function at 0x4ac360
Capabilities:
Get socket status

Disassembly:
push 0xffffffffffffffff
push 0x579d0b
mov eax, dword fs:[0]
push eax
sub esp, 0x85c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x641030]
xor eax, esp
push eax
lea eax, [esp + 0x870]
mov dword fs:[0], eax
mov ebx, ecx
mov ebp, dword [esp + 0x880]
mov ecx, ebp
call fcn.004725a0
mov esi, dword [esp + 0x884]
push esi
mov ecx, ebp
call fcn.004725e0
test al, al
je 0x4ac3c7
mov byte [ebp + 0x15], 1
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Wait_for_data_on_socket_aborted_by_app
mov ecx, esi
call edx
jmp 0x4ac4aa
cmp dword [ebx + 0x294], 0xffffffff
jne 0x4ac3e7
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Cannot_wait_for_socket_data:_not_connected__invalid_socket_
mov ecx, esi
call edx
mov byte [ebp + 0x16], 1
jmp 0x4ac4aa
xor edi, edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call fcn.00439510
mov eax, 0x3004bc8d
mov dword [esp + 0x1c], vtable.ckFdSet.0
mov dword [esp + 0x24], eax
mov dword [esp + 0x86c], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x878], edi
call fcn.004aa9f0
mov eax, dword [ebx + 0x294]
push esi
push eax
lea ecx, [esp + 0x24]
call fcn.004aaa40
test al, al
jne 0x4ac448
mov byte [ebp + 0x16], 1
mov dword [esp + 0x878], 0xffffffff
jmp 0x4ac48e
lea ecx, [esp + 0x14]
push ecx
push edi
push edi
lea edx, [esp + 0x34]
push edx
push edi
call dword [sym.imp.WS2_32.dll_select]
or ecx, 0xffffffff
cmp eax, ecx
je 0x4ac487
cmp eax, edi
jl 0x4ac487
mov dword [esp + 0x878], ecx
lea ecx, [esp + 0x1c]
jne 0x4ac47e
mov byte [ebp + 0x14], 1
call fcn.004aa9d0
jmp 0x4ac4aa
call fcn.004aa9d0
mov al, 1
jmp 0x4ac4ac
mov dword [esp + 0x878], ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.ckFdSet.0
mov dword [esp + 0x24], edi
mov dword [esp + 0x86c], edi
call fcn.00439400
xor al, al
mov ecx, dword [esp + 0x870]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x868
ret 8
Function at 0x4ac8e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x579dbf
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x641030]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.ChilkatSocket.0
xor ebx, ebx
lea ecx, [esi + 0x30]
mov dword [esi + 0x10], vtable._ckSockBulkSendBehavior.0
mov byte [esi + 0x18], bl
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
call fcn.00536090
mov dword [esi + 0xc0], ebx
mov dword [esi + 0xc4], ebx
mov byte [esi + 0xc8], bl
lea ecx, [esi + 0xe0]
mov dword [esp + 0x18], ebx
mov dword [esi + 0xd0], 0x4901fb2a
mov byte [esi + 0xd4], bl
mov byte [esi + 0xd5], bl
mov byte [esi + 0xd6], bl
call fcn.004f4610
lea ecx, [esi + 0x128]
mov byte [esp + 0x18], 1
call fcn.004f4610
lea ecx, [esi + 0x170]
mov byte [esp + 0x18], 2
call fcn.00536090
lea ecx, [esi + 0x200]
mov byte [esp + 0x18], 3
call fcn.00536090
lea ecx, [esi + 0x2a4]
mov byte [esp + 0x18], 4
mov byte [esi + 0x290], bl
mov byte [esi + 0x291], bl
mov byte [esi + 0x292], bl
mov dword [esi + 0x294], 0xffffffff
mov dword [esi + 0x298], 2
mov dword [esi + 0x2a0], ebx
call fcn.00447240
lea ecx, [esi + 0x2c4]
mov byte [esp + 0x18], 5
call fcn.0042d110
mov byte [esp + 0x18], 6
mov byte [esi + 0x338], 1
mov byte [esi + 0x339], 1
mov dword [esi + 0x33c], ebx
mov byte [esi + 0x340], bl
mov byte [esi + 0x341], bl
mov byte [esi + 0x342], bl
call fcn.004aa7f0
mov eax, dword [0x63de1c]
mov dword [esi + 0x29c], eax
inc eax
mov dword [esi + 0x16c], 1
mov dword [esi + 0x124], 2
mov dword [0x63de1c], eax
mov eax, dword [0x63231c]
mov dword [esi + 0xd8], eax
mov ecx, dword [0x632320]
mov dword [esi + 0xdc], ecx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret