joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49fbbd
Capabilities:
Decrypt data via sspi

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x3c
mov esi, ecx
mov edi, edx
mov ecx, dword [edx + 0xec]
mov edx, dword [edx + 0xf0]
push 0x58b6c0
push dword [edi + 0xe0]
call fcn.0049d6eb
pop ecx
pop ecx
test eax, eax
mov ecx, esp
cmove edx, eax
and dword [ecx + 0x24], 0
and dword [ecx + 0x28], 0
and dword [ecx + 0x2c], 0
mov dword [ecx], edx
mov dword [ecx + 4], 1
mov dword [ecx + 8], eax
lea eax, [esp + 0x30]
and dword [ecx + 0x10], 0
and dword [ecx + 0xc], 0
and dword [ecx + 0x18], 0
and dword [ecx + 0x14], 0
and dword [ecx + 0x20], 0
and dword [ecx + 0x1c], 0
and dword [eax], 0
mov dword [eax + 4], 4
mov dword [eax + 8], ecx
lea ecx, [edi + 0x128]
push 0
push 0
push eax
push ecx
call dword [sym.imp.secur32.dll_DecryptMessage]
cmp eax, 0x80090318
je 0x49fd23
test eax, eax
je 0x49fc9e
cmp eax, 0x90317
je 0x49fd1c
cmp eax, 0x90321
jne 0x49fd30
mov dword [edi + 0x110], 0x10000
mov byte [edi + 0x114], 0
xor eax, eax
cmp dword [esp + 0x28], 5
mov edx, dword [edi + 0xe0]
jne 0x49fc89
mov eax, dword [esp + 0x24]
sub edx, eax
mov ecx, edi
call fcn.0049fb69
and dword [edi + 0x154], 0
jmp 0x49fd41
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0xec]
mov ebp, dword [esp + 0xc]
mov edx, dword [edi + 0xf0]
and dword [edi + 0xd8], 0
lea ebx, [edi + 0xd0]
sub eax, ecx
add ebp, eax
push ebp
push eax
call fcn.0049da59
pop ecx
pop ecx
mov ebp, edx
mov edx, eax
mov ecx, ebx
push ebp
call fcn.00421488
pop eax
and dword [edi + 0xcc], 0
and dword [edi + 0xc8], 0
xor eax, eax
cmp dword [esp + 0x28], 5
mov edx, dword [edi + 0xe0]
jne 0x49fcfa
mov eax, dword [esp + 0x24]
sub edx, eax
mov ecx, edi
call fcn.0049fb69
mov eax, dword [edi + 0xe0]
xor ecx, ecx
or eax, dword [edi + 0xe4]
sete cl
mov dword [edi + 0x154], ecx
jmp 0x49fd41
mov word [esi], 0x104
jmp 0x49fd46
cmp dword [esp + 0x10], 4
jne 0x49fd38
mov eax, dword [esp + 0xc]
jmp 0x49fd3b
and dword [esi], 0
mov dword [esi + 4], eax
jmp 0x49fd46
xor eax, eax
inc eax
mov dword [edi + 0x154], eax
mov word [esi], 4
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4ad971
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, esp
mov dword [esi + 0x28], ebp
lea eax, [esi + 0x30]
mov dword [esi + 4], ecx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x504cc0
mov edx, dword fs:[0]
mov dword [eax], edx
mov dword fs:[0], eax
and dword [eax + 8], 0
mov dword [esi + 8], ecx
call fcn.004ae42f
mov ecx, dword [esi + 4]
xor edi, edi
mov eax, dword [ecx + 8]
mov ebx, dword [ecx + 0xc]
lea edx, [esi + 8]
or dword [esi + 0x38], 0xffffffff
mov dword [edx + 8], edi
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], ebx
and dword [edx + 4], 0
mov dword [edx], 1
call fcn.004adba9
mov eax, dword [esi + 0x30]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4ae450
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x178
mov esi, esp
mov dword [esi + 0x160], ebp
lea eax, [esi + 0x168]
mov dword [esi + 0x1c], edx
mov dword [esi + 8], ecx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x504d50
mov edx, dword fs:[0]
mov dword [eax], edx
mov dword fs:[0], eax
mov edi, dword [ecx + 0xc]
mov edx, dword [ecx + 8]
and dword [eax + 8], 0
mov byte [esi + 7], 1
lea ecx, [esi + 0x20]
push edi
call fcn.004ec288
pop eax
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 8]
mov dword [esi + 0x14], eax
add edi, 0x10
mov eax, dword [esi + 0x28]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x20]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x24]
mov dword [esi + 0x10], eax
lea eax, [esi + 0x30]
push 0x130
push dword [esi + 0x1c]
push eax
call fcn.00527800
add esp, 0xc
mov ecx, edi
mov dword [esi + 0x170], 1
mov dword [esi + 8], edi
call fcn.004ad47a
push 0x130
lea eax, [esi + 0x30]
push eax
push dword [esi + 8]
call fcn.00527800
add esp, 0xc
and dword [esi + 0x170], 0
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
mov byte [esi + 7], 0
push dword [esi + 0x14]
push dword [esi + 0x18]
call fcn.004ec2d1
pop eax
pop ecx
mov eax, dword [esi + 0x168]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4af5d5
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xab8
mov esi, esp
mov dword [esi + 0xaa0], ebp
lea eax, [esi + 0xaa8]
mov dword [esi + 0x1c], edx
mov dword [esi + 8], ecx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x504df0
mov edx, dword fs:[0]
mov dword [eax], edx
mov dword fs:[0], eax
mov edi, dword [ecx + 0xc]
mov edx, dword [ecx + 8]
and dword [eax + 8], 0
mov byte [esi + 7], 1
lea ecx, [esi + 0x20]
push edi
call fcn.004ec288
pop eax
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 8]
mov dword [esi + 0x14], eax
add edi, 0x10
mov eax, dword [esi + 0x28]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x20]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x24]
mov dword [esi + 0x10], eax
lea eax, [esi + 0x30]
push 0xa70
push dword [esi + 0x1c]
push eax
call fcn.00527800
add esp, 0xc
mov ecx, edi
mov dword [esi + 0xab0], 1
mov dword [esi + 8], edi
call fcn.004aef82
push 0xa70
lea eax, [esi + 0x30]
push eax
push dword [esi + 8]
call fcn.00527800
add esp, 0xc
and dword [esi + 0xab0], 0
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
mov byte [esi + 7], 0
push dword [esi + 0x14]
push dword [esi + 0x18]
call fcn.004ec2d1
pop eax
pop ecx
mov eax, dword [esi + 0xaa8]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4afe53
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, esp
mov dword [esi + 0x28], ebp
lea eax, [esi + 0x30]
mov dword [esi + 4], ecx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x504e40
mov edx, dword fs:[0]
mov dword [eax], edx
mov dword fs:[0], eax
and dword [eax + 8], 0
mov dword [esi + 8], ecx
call fcn.004b008b
mov ecx, dword [esi + 4]
xor edi, edi
mov eax, dword [ecx + 8]
mov ebx, dword [ecx + 0xc]
lea edx, [esi + 8]
or dword [esi + 0x38], 0xffffffff
mov dword [edx + 8], edi
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], ebx
and dword [edx + 4], 0
mov dword [edx], 1
call fcn.004af71e
mov eax, dword [esi + 0x30]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4b1f7f
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x88
mov esi, esp
mov dword [esi + 0x70], ebp
lea eax, [esi + 0x78]
mov dword [esi + 0x1c], edx
mov dword [esi + 8], ecx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x504f00
mov edx, dword fs:[0]
mov dword [eax], edx
mov dword fs:[0], eax
mov edi, dword [ecx + 0xc]
mov edx, dword [ecx + 8]
and dword [eax + 8], 0
mov byte [esi + 7], 1
lea ecx, [esi + 0x20]
push edi
call fcn.004ec288
pop eax
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 8]
mov dword [esi + 0x14], eax
add edi, 0x10
mov eax, dword [esi + 0x28]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x20]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x24]
mov dword [esi + 0x10], eax
lea eax, [esi + 0x30]
push 0x40
push dword [esi + 0x1c]
push eax
call fcn.00527800
add esp, 0xc
mov ecx, edi
mov dword [esi + 0x80], 1
mov dword [esi + 8], edi
call fcn.004b1f38
push 0x40
lea eax, [esi + 0x30]
push eax
push dword [esi + 8]
call fcn.00527800
add esp, 0xc
and dword [esi + 0x80], 0
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
mov byte [esi + 7], 0
push dword [esi + 0x14]
push dword [esi + 0x18]
call fcn.004ec2d1
pop eax
pop ecx
mov eax, dword [esi + 0x78]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4b21b3
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x160
mov esi, esp
mov dword [esi + 0x148], ebp
lea eax, [esi + 0x150]
mov dword [esi + 0x1c], edx
mov dword [esi + 8], ecx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x504f20
mov edx, dword fs:[0]
mov dword [eax], edx
mov dword fs:[0], eax
mov edi, dword [ecx + 0xc]
mov edx, dword [ecx + 8]
and dword [eax + 8], 0
mov byte [esi + 7], 1
lea ecx, [esi + 0x20]
push edi
call fcn.004ec288
pop eax
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 8]
mov dword [esi + 0x14], eax
add edi, 0x10
mov eax, dword [esi + 0x28]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x20]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x24]
mov dword [esi + 0x10], eax
lea eax, [esi + 0x30]
push 0x118
push dword [esi + 0x1c]
push eax
call fcn.00527800
add esp, 0xc
mov ecx, edi
mov dword [esi + 0x158], 1
mov dword [esi + 8], edi
call fcn.004b20b0
push 0x118
lea eax, [esi + 0x30]
push eax
push dword [esi + 8]
call fcn.00527800
add esp, 0xc
and dword [esi + 0x158], 0
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
mov byte [esi + 7], 0
push dword [esi + 0x14]
push dword [esi + 0x18]
call fcn.004ec2d1
pop eax
pop ecx
mov eax, dword [esi + 0x150]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4b22fc
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x88
mov esi, esp
mov dword [esi + 0x70], ebp
lea eax, [esi + 0x78]
mov dword [esi + 0x1c], edx
mov dword [esi + 8], ecx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x504f30
mov edx, dword fs:[0]
mov dword [eax], edx
mov dword fs:[0], eax
mov edi, dword [ecx + 0xc]
mov edx, dword [ecx + 8]
and dword [eax + 8], 0
mov byte [esi + 7], 1
lea ecx, [esi + 0x20]
push edi
call fcn.004ec288
pop eax
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 8]
mov dword [esi + 0x14], eax
add edi, 0x10
mov eax, dword [esi + 0x28]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x20]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x24]
mov dword [esi + 0x10], eax
lea eax, [esi + 0x30]
push 0x40
push dword [esi + 0x1c]
push eax
call fcn.00527800
add esp, 0xc
mov ecx, edi
mov dword [esi + 0x80], 1
mov dword [esi + 8], edi
call fcn.004b2102
push 0x40
lea eax, [esi + 0x30]
push eax
push dword [esi + 8]
call fcn.00527800
add esp, 0xc
and dword [esi + 0x80], 0
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
mov byte [esi + 7], 0
push dword [esi + 0x14]
push dword [esi + 0x18]
call fcn.004ec2d1
pop eax
pop ecx
mov eax, dword [esi + 0x78]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4ba699
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, esp
mov dword [esi + 0x28], ebp
lea eax, [esi + 0x30]
mov dword [esi + 4], ecx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x5050e0
mov edx, dword fs:[0]
mov dword [eax], edx
mov dword fs:[0], eax
and dword [eax + 8], 0
mov dword [esi + 8], ecx
call fcn.004b1f65
mov ecx, dword [esi + 4]
xor edi, edi
mov eax, dword [ecx + 8]
mov ebx, dword [ecx + 0xc]
lea edx, [esi + 8]
or dword [esi + 0x38], 0xffffffff
mov dword [edx + 8], edi
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], ebx
and dword [edx + 4], 0
mov dword [edx], 1
call fcn.004b2bd7
mov eax, dword [esi + 0x30]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4bb615
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, esp
mov dword [esi + 0x28], ebp
lea eax, [esi + 0x30]
mov dword [esi + 4], ecx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x5051a0
mov edx, dword fs:[0]
mov dword [eax], edx
mov dword fs:[0], eax
and dword [eax + 8], 0
mov dword [esi + 8], ecx
call fcn.004b20ea
mov ecx, dword [esi + 4]
xor edi, edi
mov eax, dword [ecx + 8]
mov ebx, dword [ecx + 0xc]
lea edx, [esi + 8]
or dword [esi + 0x38], 0xffffffff
mov dword [edx + 8], edi
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], ebx
and dword [edx + 4], 0
mov dword [edx], 1
call fcn.004b2ba1
mov eax, dword [esi + 0x30]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4bc5d5
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, esp
mov dword [esi + 0x28], ebp
lea eax, [esi + 0x30]
mov dword [esi + 4], ecx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x505260
mov edx, dword fs:[0]
mov dword [eax], edx
mov dword fs:[0], eax
and dword [eax + 8], 0
mov dword [esi + 8], ecx
call fcn.004b2196
mov ecx, dword [esi + 4]
xor edi, edi
mov eax, dword [ecx + 8]
mov ebx, dword [ecx + 0xc]
lea edx, [esi + 8]
or dword [esi + 0x38], 0xffffffff
mov dword [edx + 8], edi
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], ebx
and dword [edx + 4], 0
mov dword [edx], 1
call fcn.004b2b65
mov eax, dword [esi + 0x30]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4bcf17
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
lea esi, [ebp - 0x18]
mov dword [ebp - 0x40], edx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x4c]
mov dword [esi - 4], esp
or dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0x5052a0
mov eax, dword fs:[0]
mov dword [esi], eax
mov dword fs:[0], esi
push 0xb
call fcn.00407b50
pop eax
and dword [ebp - 0x2c], 0
and dword [esi + 8], 0
mov ecx, 0x800
xor edx, edx
mov dword [ebp - 0x24], 0x800
call fcn.004262c7
lea ecx, [ebp - 0x38]
mov dword [ecx], eax
mov dword [ecx + 4], edx
and dword [ecx + 8], 0
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], 1
push ecx
mov dword [ebp - 0x3c], eax
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x40]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x4bcfb9
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x38]
call fcn.004ca031
jmp 0x4bcf81
test eax, eax
jne 0x4bcfd7
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
cmp eax, 0xb
jbe 0x4bcff4
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 8], 0xde
jmp 0x4bcfdd
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 8], eax
and dword [ecx + 4], 0
mov dword [ecx], 0x80000000
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
call fcn.004c9f70
jmp 0x4bd009
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x38]
mov dword [edx + 8], ecx
movsd qword [edx], xmm0
mov byte [edx + 0xc], al
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x28]
call fcn.004c9e95
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4ca99f
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x6c
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], ecx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x505490
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
and dword [ebp - 0x30], 0
and dword [ebp - 0x2c], 0
and dword [ebp - 0x58], 0
and dword [ebp - 0x5c], 0
and dword [ebp - 0x50], 0
and dword [ebp - 0x54], 0
and dword [ebp - 0x48], 0
and dword [ebp - 0x4c], 0
and dword [ebp - 0x40], 0
and dword [ebp - 0x44], 0
and dword [ebp - 0x3c], 0
and dword [ebp - 0x34], 0
mov dword [ebp - 0x68], 4
mov dword [ebp - 0x38], 0x400010
cmp dword [edx + 0xc], 0x80000000
je 0x4caa1e
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ecx
cmp dword [edx + 0x18], 0x80000000
je 0x4caa48
mov eax, dword [edx + 0x20]
test eax, eax
je 0x4caa43
mov esi, dword [edx + 0x1c]
xor ecx, ecx
movzx edi, byte [esi]
inc esi
or ecx, dword [edi*4 + 0x5ba570]
dec eax
jne 0x4caa33
jmp 0x4caa45
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov ebx, dword [edx + 8]
test ebx, ebx
mov dword [ebp - 0x28], ebx
je 0x4caa8b
cmp ebx, 0x20000000
jae 0x4cab25
mov edi, dword [edx + 4]
lea esi, [ebx*4]
push 4
pop ecx
mov edx, esi
call fcn.004220b9
test eax, eax
je 0x4cab2e
xor edx, edx
mov ecx, dword [edi + edx*4]
mov dword [eax + edx*4], ecx
inc edx
cmp ebx, edx
jne 0x4caa7c
mov edx, ebx
jmp 0x4caa90
xor edx, edx
push 4
pop eax
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x24], eax
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
lea eax, [ebp - 0x30]
push 0
push eax
push 0
push 0
push ecx
push 0
push 2
push 0x58d067
push 0
call dword [sym.imp.secur32.dll_AcquireCredentialsHandleA]
test eax, eax
je 0x4caacb
mov ecx, dword [ebp - 0x20]
and dword [ecx], 0
mov dword [ecx + 4], eax
jmp 0x4cab09
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
xor edx, edx
lea esi, [ebp - 0x70]
inc edx
mov dword [esi - 8], edx
mov dword [esi - 4], edx
mov dword [ebp - 0x10], edx
mov dword [esi], eax
mov dword [esi + 4], ecx
push 0x10
pop ecx
call fcn.00422160
movsd xmm0, qword [ebp - 0x78]
movsd xmm1, qword [ebp - 0x70]
mov ecx, dword [ebp - 0x20]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
mov dword [ecx + 4], eax
mov byte [ecx], 4
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
call fcn.004f14b1
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x6c
pop esi
pop edi
pop ebx
pop ebp
ret
or dword [ebp - 0x10], 0xffffffff
call fcn.004206e0
or dword [ebp - 0x10], 0xffffffff
push 4
pop ecx
mov edx, esi
call fcn.00535cf0
push ebp
sub esp, 0x24
add ebp, 0xc
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
call fcn.004f14b1
add esp, 0x24
pop ebp
ret
Function at 0x4cb182
Capabilities:
Get remote cert context via schannel

Disassembly:
push esi
push eax
mov eax, esp
mov esi, ecx
and dword [eax], 0
push eax
push 0x53
push edx
call dword [sym.imp.secur32.dll_QueryContextAttributesW]
test eax, eax
je 0x4cb1a1
and dword [esi], 0
mov dword [esi + 4], eax
jmp 0x4cb1aa
mov eax, dword [esp]
mov dword [esi + 4], eax
mov byte [esi], 4
add esp, 4
pop esi
ret
Function at 0x4cc4a0
Capabilities:
Set socket configuration

Disassembly:
push esi
mov esi, ecx
lea eax, [esp + 0xc]
push 4
push eax
push dword [esp + 0x10]
push 0xffff
push edx
call dword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x4cc4c4
mov byte [esi], 4
jmp 0x4cc4d0
call dword [sym.imp.kernel32.dll_GetLastError]
and dword [esi], 0
mov dword [esi + 4], eax
pop esi
ret

Function at 0x4cc4d2
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ebp, dword [esp + 0x34]
mov esi, ecx
cmp dl, 4
jne 0x4cc542
mov eax, dword [0x5dc864]
cmp eax, 3
jne 0x4cc63a
cmp word [ebp], 0
push 2
pop eax
push 0x17
pop ebx
cmove ebx, eax
push 0x81
push 0
push 0
push 0
push 2
push ebx
call dword [sym.imp.ws2_32.dll_WSASocketW]
mov edi, eax
cmp eax, 0xffffffff
je 0x4cc55d
cmp word [ebp], 0
je 0x4cc5b7
mov eax, dword [ebp + 0x18]
movups xmm0, xmmword [ebp + 4]
lea ecx, [ebp + 0x14]
add ebp, 0x1c
mov dword [esp], eax
push 0x1c
pop eax
mov bx, 0x17
jmp 0x4cc5c7
mov eax, edx
shr eax, 8
mov word [esi + 1], ax
mov eax, edx
shr eax, 0x18
mov byte [esi + 3], al
mov byte [esi], dl
mov dword [esi + 4], ebp
jmp 0x4cc632
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x4cc575
cmp eax, 0x2726
jne 0x4cc623
push 1
push 0
push 0
push 0
push 2
push ebx
call dword [sym.imp.ws2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x4cc61d
mov edi, eax
push 0
push 1
push eax
call dword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
jne 0x4cc51b
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
mov eax, ebx
jmp 0x4cc623
lea ecx, [ebp + 2]
add ebp, 6
push 0x10
pop eax
mov bx, 2
xorps xmm0, xmm0
movzx ebp, word [ebp]
lea edx, [esp + 4]
mov ecx, dword [ecx]
mov word [edx], bx
mov ebx, dword [esp]
rol bp, 8
mov word [edx + 2], bp
mov dword [edx + 4], ecx
movups xmmword [edx + 8], xmm0
mov dword [edx + 0x18], ebx
push eax
push edx
push edi
call dword [sym.imp.ws2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4cc5ff
mov dword [esi + 4], edi
mov byte [esi], 4
jmp 0x4cc632
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
xor ecx, ecx
mov byte [esi], cl
and word [esi + 1], 0
mov byte [esi + 3], cl
mov dword [esi + 4], eax
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
jmp 0x4cc632
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
and word [esi + 1], 0
xor ecx, ecx
mov byte [esi + 3], cl
mov byte [esi], cl
mov dword [esi + 4], eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00538cb0
jmp 0x4cc4f2
Function at 0x4ccb80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x505500
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0x5dc878]
test al, al
je 0x4ccd51
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4ccbcc
cmp eax, 3
jne 0x4ccd4a
mov ebx, dword [0x5dc87c]
test ebx, ebx
je 0x4ccd4a
mov dword [ebp - 0x20], 0
jmp 0x4ccbf7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4ccc28
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4ccd9b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x4ccbf0
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x4ccbf0
test byte [ebp - 0x20], 1
je 0x4ccd4a
mov ebx, dword [0x5dc87c]
test ebx, ebx
je 0x4ccd4a
mov dword [ebp - 0x20], 0
jmp 0x4ccc57
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4ccc88
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4ccd9b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x4ccc50
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x4ccc50
test byte [ebp - 0x20], 1
je 0x4ccd4a
mov ebx, dword [0x5dc87c]
test ebx, ebx
je 0x4ccd4a
mov dword [ebp - 0x20], 0
jmp 0x4cccb7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4ccce8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4ccd9b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x4cccb0
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x4cccb0
test byte [ebp - 0x20], 1
je 0x4ccd4a
mov ebx, dword [0x5dc87c]
test ebx, ebx
je 0x4ccd4a
mov dword [ebp - 0x20], 0
jmp 0x4ccd17
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4ccd44
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4ccd9b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x4ccd10
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x4ccd10
test byte [ebp - 0x20], 1
jne 0x4ccd64
movzx eax, byte [0x5c6740]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ebx, dword [0x5dc87c]
jmp 0x4ccd6f
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4ccd4a
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4ccd9b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x4ccd6c
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x4ccd6c
mov dword [ebp - 0x10], 0
mov ecx, str.called__Option::unwrap____on_a__None__value
mov edx, 0x2b
push 0x58fa4c
call fcn.005360b0
add esp, 4
ud2