joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4473c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x7c0
mov dword [esp + 0xc], edx
mov edx, dword [edx + 0x290]
lea esi, [esp + 0x248]
mov dword [esp + 0x5c], ecx
call fcn.004473e9

Function at 0x44b8be
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x148
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [esp + 0x38], 2
mov dword [esp + 0x48], 0
mov ecx, dword [esi + 0x108]
mov dword [esi + 0x108], 3
cmp ecx, 3
je 0x44ba81
lea eax, [esp + 0x54]
add esi, 0x10c
mov dword [eax - 4], ecx
mov ecx, 0xd
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [eax + 0x1c]
mov edi, dword [eax + 0x20]
mov eax, dword [ebx + 0x3c]
mov dword [ebx + 0x3c], 0
cmp eax, 1
je 0x44b938
cmp eax, 2
jne 0x44baac
lea ecx, [esp + 0x50]
jmp 0x44ba7c
movsd xmm1, qword [esp + 0x58]
mov dword [esp + 0x20], edx
movsd xmm0, qword [esp + 0x50]
mov edx, dword [esp + 0x80]
movzx ecx, word [esp + 0x84]
mov al, byte [esp + 0x86]
mov ah, byte [esp + 0x78]
movsd qword [esp + 8], xmm1
movsd xmm1, qword [esp + 0x60]
movsd qword [esp], xmm0
movsd qword [esp + 0x10], xmm1
mov dword [esp + 0x18], edx
mov byte [esp + 0x1e], al
mov word [esp + 0x1c], cx
mov edx, dword [esp]
test edx, edx
je 0x44b9af
cmp edx, 1
jne 0x44ba7a
mov edx, dword [esp + 0xc]
xor ecx, ecx
sub edx, dword [esp + 0x10]
cmovb edx, ecx
cmp dword [esp + 0x14], 0
je 0x44b9b3
jmp 0x44ba7a
mov edx, dword [esp + 0xc]
test edx, edx
je 0x44ba7a
mov ecx, dword [ebp + 8]
test ah, ah
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], ecx
je 0x44b9d4
or al, 1
mov byte [esp + 0x1e], al
movsd xmm1, qword [esp + 0x10]
lea eax, [esp + 0x88]
movsd xmm0, qword [esp + 0x18]
movsd xmm2, qword [esp]
movsd qword [eax + 0x18], xmm1
movsd xmm1, qword [esp + 8]
movsd qword [eax + 0x20], xmm0
movsd qword [eax + 8], xmm2
movsd qword [eax + 0x10], xmm1
mov byte [eax], 0
mov eax, ecx
mov ecx, dword [ecx + 0x34]
mov edx, dword [eax + 0x38]
push edi
push esi
call fcn.0041086b
add esp, 8
mov edx, dword [esp + 0x20]
lea ecx, [eax + 0x64]
lea eax, [esp + 0x88]
push eax
call fcn.0047fd7f
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x34]
mov edx, dword [eax + 0x38]
push edi
push esi
call fcn.004108dd
add esp, 8
cmp dword [eax + 0x3c], 0
jle 0x44ba56
lea edx, [esp + 0x24]
mov ecx, ebx
call fcn.00411ffd
mov eax, dword [esp + 0x38]
mov bl, 1
cmp eax, 2
je 0x44ba83
test eax, eax
je 0x44ba96
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [eax + 8]
dec edx
and edx, 0xfffffff8
lea ecx, [edx + ecx + 8]
jmp 0x44ba9e
mov ecx, esp
call fcn.0044b7a4
xor ebx, ebx
lea ecx, [esp + 0x30]
call fcn.0040bd24
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x30]
push edx
push ecx
call dword [eax + 0x34]
add esp, 8
jmp 0x44ba83
mov ecx, str.wasnt_expecting_a_frame_to_reclaim
mov edx, 0x23
push 0x521d58
call fcn.004ed079
Function at 0x455964
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [ecx + 0x20], 9
jne 0x45596b
ret
Function at 0x459570
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov eax, dword [ecx]
xor edx, edx
inc edx
lea esi, [eax - 6]
cmp esi, 3
cmovb edx, esi
test edx, edx
je 0x459595
cmp edx, 1
jne 0x459593
cmp eax, 5
jne 0x45959e
cmp byte [ecx + 0x3c], 3
jne 0x4595a4
pop esi
ret
add ecx, 8
pop esi
jmp fcn.004595ad
pop esi
jmp fcn.00459645
add ecx, 4
pop esi
jmp 0x4597f6

Function at 0x459645
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push edi
push esi
mov eax, dword [ecx]
mov esi, ecx
xor ecx, ecx
lea edx, [eax - 3]
lea edi, [eax - 2]
cmp edx, 2
cmovb ecx, edi
test ecx, ecx
je 0x4596d2
cmp ecx, 1
jne 0x4597f3
movzx eax, byte [esi + 0x3c]
cmp eax, 3
je 0x4597f3
add esi, 4
cmp eax, 4
jne 0x459745
mov edi, dword [esi]
movzx eax, byte [edi + 0xad]
test eax, eax
je 0x45974e
cmp eax, 3
je 0x459773
cmp eax, 4
jne 0x4597e4
movzx eax, byte [edi + 0xc8]
test eax, eax
je 0x459780
cmp eax, 3
jne 0x45978b
cmp byte [edi + 0xb8], 2
je 0x45978b
lea ecx, [edi + 0xb0]
jmp 0x459786
cmp eax, 2
je 0x4597f3
cmp dword [esi + 0x98], 3
je 0x4596ef
lea ecx, [esi + 0x98]
call fcn.00459879
lea ecx, [esi + 0x70]
call fcn.0043b542
mov eax, dword [esi + 0x8c]
test eax, eax
je 0x459711
lock dec dword [eax]
jne 0x459711
lea ecx, [esi + 0x8c]
call fcn.0043b57a
mov eax, dword [esi + 0x50]
test eax, eax
je 0x459725
lock dec dword [eax]
jne 0x459725
lea ecx, [esi + 0x50]
call fcn.0044282e
mov eax, dword [esi + 0x68]
test eax, eax
je 0x4597f3
lock dec dword [eax]
jne 0x4597f3
add esi, 0x68
mov ecx, esi
pop esi
pop edi
jmp fcn.0044282e
mov ecx, esi
pop esi
pop edi
jmp 0x4597f6
mov eax, dword [edi + 0x50]
test eax, eax
je 0x459762
lock dec dword [eax]
jne 0x459762
lea ecx, [edi + 0x50]
call fcn.0044282e
lea eax, [edi + 0x80]
push eax
call fcn.0041ebf0
add esp, 4
jmp 0x45979f
lea ecx, [edi + 0xb0]
call fcn.004598a7
jmp 0x45978b
lea ecx, [edi + 0xbc]
call fcn.0043c1cc
mov eax, dword [edi + 0x50]
test eax, eax
je 0x45979f
lock dec dword [eax]
jne 0x45979f
lea ecx, [edi + 0x50]
call fcn.0044282e
mov eax, dword [edi + 0x78]
test eax, eax
je 0x4597b3
lock dec dword [eax]
jne 0x4597b3
lea ecx, [edi + 0x78]
call fcn.0044282e
mov eax, dword [edi + 0xa8]
test eax, eax
je 0x4597cd
lock dec dword [eax]
jne 0x4597cd
lea ecx, [edi + 0xa8]
call fcn.0043b57a
lea ecx, [edi + 0x8c]
call fcn.0043b542
add edi, 0x68
mov ecx, edi
call fcn.00458ef0
mov edi, dword [esi]
push edi
push 0
push dword [0x537fc8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
ret
cmp byte [ecx + 0x38], 2
jne 0x459803
mov ecx, dword [ecx]
jmp fcn.00458ec0
jmp fcn.00459808
Function at 0x45c5d4
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 + 0x20]
mov edx, dword [edx + 0x30]
cmp edx, ecx
jb 0x45c730
mov ebx, dword [edi + 0x2c]
xor eax, eax
mov edx, esp
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
mov dword [edx + 0x2c], eax
mov dword [edx], ecx
lea ecx, [esp + 0x30]
mov dword [edx + 4], 1
mov dword [ecx], eax
mov dword [ecx + 4], 4
mov dword [ecx + 8], edx
mov dword [edx + 8], ebx
mov dword [edx + 0x10], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x1c], eax
lea edx, [edi + 0x68]
push eax
push eax
push ecx
push edx
call dword [sym.imp.secur32.dll_DecryptMessage]
cmp eax, 0x90316
jg 0x45c6bd
cmp eax, 0x80090318
je 0x45c706
test eax, eax
jne 0x45c6fb
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 0x2c]
mov ebp, dword [esp + 0xc]
mov eax, dword [edi + 0x30]
mov dword [edi + 0x18], 0
sub ecx, edx
mov ebx, ecx
add ebx, ebp
jb 0x45c73a
cmp eax, ebx
jb 0x45c746
lea eax, [edi + 0x10]
add edx, ecx
mov ecx, eax
push ebp
call fcn.004028f8
add esp, 4
xor eax, eax
cmp dword [esp + 0x28], 5
mov dword [edi + 0xc], eax
mov dword [edi + 8], eax
mov edx, dword [edi + 0x20]
jne 0x45c6a1
mov eax, dword [esp + 0x24]
sub edx, eax
mov ecx, edi
call fcn.0045c557
mov eax, dword [edi + 0x20]
xor ecx, ecx
or eax, dword [edi + 0x24]
sete cl
mov dword [edi + 0xa8], ecx
jmp 0x45c723
cmp eax, 0x90317
je 0x45c713
cmp eax, 0x90321
jne 0x45c6fb
mov dword [edi + 0x50], 0x10000
mov byte [edi + 0x54], 0
xor eax, eax
cmp dword [esp + 0x28], 5
mov edx, dword [edi + 0x20]
jne 0x45c6e6
mov eax, dword [esp + 0x24]
sub edx, eax
mov ecx, edi
call fcn.0045c557
mov dword [edi + 0xa8], 0
jmp 0x45c723
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x45c728
cmp dword [esp + 0x10], 4
jne 0x45c71a
mov eax, dword [esp + 0xc]
jmp 0x45c71d
mov word [esi], 0x104
jmp 0x45c728
xor eax, eax
inc eax
mov dword [edi + 0xa8], eax
mov word [esi], 4
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x524954
call fcn.004e89d0
mov edx, ebx
push 0x524964
call fcn.004e8bc0
mov ecx, ebx
mov edx, eax
push 0x524964
call fcn.004e89d0
Function at 0x45d9bb
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 + 0xe0]
mov edx, dword [edx + 0xf0]
cmp edx, ecx
jb 0x45db4b
mov ebx, dword [edi + 0xec]
xor eax, eax
mov edx, esp
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
mov dword [edx + 0x2c], eax
mov dword [edx], ecx
lea ecx, [esp + 0x30]
mov dword [edx + 4], 1
mov dword [ecx], eax
mov dword [ecx + 4], 4
mov dword [ecx + 8], edx
mov dword [edx + 8], ebx
mov dword [edx + 0x10], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x1c], eax
lea edx, [edi + 0x128]
push eax
push eax
push ecx
push edx
call dword [sym.imp.secur32.dll_DecryptMessage]
cmp eax, 0x90316
jg 0x45dacf
cmp eax, 0x80090318
je 0x45db21
test eax, eax
jne 0x45db16
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 0xec]
mov ebp, dword [esp + 0xc]
mov eax, dword [edi + 0xf0]
mov dword [edi + 0xd8], 0
sub ecx, edx
mov ebx, ecx
add ebx, ebp
jb 0x45db55
cmp eax, ebx
jb 0x45db61
lea eax, [edi + 0xd0]
add edx, ecx
mov ecx, eax
push ebp
call fcn.004028f8
add esp, 4
xor eax, eax
cmp dword [esp + 0x28], 5
mov dword [edi + 0xcc], eax
mov dword [edi + 0xc8], eax
mov edx, dword [edi + 0xe0]
jne 0x45daad
mov eax, dword [esp + 0x24]
sub edx, eax
mov ecx, edi
call fcn.0045d929
mov eax, dword [edi + 0xe0]
xor ecx, ecx
or eax, dword [edi + 0xe4]
sete cl
mov dword [edi + 0x154], ecx
jmp 0x45db3e
cmp eax, 0x90317
je 0x45db2e
cmp eax, 0x90321
jne 0x45db16
mov dword [edi + 0x110], 0x10000
mov byte [edi + 0x114], 0
xor eax, eax
cmp dword [esp + 0x28], 5
mov edx, dword [edi + 0xe0]
jne 0x45db01
mov eax, dword [esp + 0x24]
sub edx, eax
mov ecx, edi
call fcn.0045d929
mov dword [edi + 0x154], 0
jmp 0x45db3e
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x45db43
cmp dword [esp + 0x10], 4
jne 0x45db35
mov eax, dword [esp + 0xc]
jmp 0x45db38
mov word [esi], 0x104
jmp 0x45db43
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
push 0x524954
call fcn.004e89d0
mov edx, ebx
push 0x524964
call fcn.004e8bc0
mov ecx, ebx
mov edx, eax
push 0x524964
call fcn.004e89d0
Function at 0x460245
Capabilities:
Connect socket
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa8
movzx eax, byte [edx + 0x48]
mov esi, edx
mov dword [esp + 0xc], ecx
test eax, eax
je 0x46027f
cmp eax, 3
je 0x460367
mov ecx, str._async_fn__resumed_after_completionC:Usersigame.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_util_0.7.11_srcutilpoll_buf.rs
mov edx, 0x23
push 0x52418c
call fcn.004e8a30
mov eax, dword [esi + 0x20]
mov dword [esi + 0x24], eax
mov dword [esp + 8], eax
mov edx, dword [esi + 2]
movzx ebx, word [esi + 6]
cmp word [esi], 0
je 0x4602ef
mov eax, dword [esi + 0x14]
movd xmm0, dword [esi + 0x10]
movq xmm1, qword [esi + 8]
shr edx, 0x10
lea edi, [esp + 0x34]
mov ecx, 0x19
movd xmm2, edx
movzx edx, word [esi + 0x1c]
pinsrw xmm2, ebx, 1
mov dword [esp + 4], eax
mov eax, dword [esi + 0x18]
punpcklqdq xmm1, xmm0
punpcklqdq xmm2, xmm1
rol dx, 8
shufps xmm2, xmm1, 0x98
mov ebx, edx
movups xmmword [edi - 0x14], xmm2
mov dword [edi - 4], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, 0x1c
mov cx, 0x17
mov edx, dword [esp + 4]
jmp 0x460309
lea edi, [esp + 0x20]
xor eax, eax
mov ecx, 0x1e
rol bx, 8
rep stosd dword es:[edi], eax
mov eax, 0x10
mov cx, 2
lea edi, [esp + 0x18]
mov word [edi], cx
mov word [edi + 2], bx
mov dword [edi + 4], edx
mov dword [edi + 0x80], eax
push eax
push edi
push dword [esp + 0x10]
call dword [sym.imp.ws2_32.dll_connect]
test eax, eax
je 0x460356
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [esp + 0x10]
mov edi, eax
mov ecx, ebx
mov dword [ebx + 4], eax
mov dword [ebx], 0
call fcn.0040b924
cmp al, 0xd
jne 0x4603ba
push ebx
call fcn.0041fdda
add esp, 4
mov eax, dword [esi + 0x24]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 0
mov byte [esi + 0x44], 0
lea ebx, [esi + 0x28]
lea edi, [esp + 0x18]
mov ecx, edi
mov edx, ebx
push dword [ebp + 8]
call fcn.0046041c
add esp, 4
cmp dword [edi], 0
je 0x46038d
mov edx, dword [esp + 0xc]
xor ecx, ecx
mov al, 3
inc ecx
jmp 0x4603db
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
mov dword [esp + 4], ecx
mov ecx, ebx
mov dword [esp + 8], eax
mov ebx, edx
call fcn.00460227
mov ecx, edi
mov edi, dword [esp + 4]
mov eax, dword [esp + 8]
jmp 0x4603c7
xor ebx, ebx
push dword [esi + 0x24]
call dword [sym.imp.ws2_32.dll_closesocket]
xor eax, eax
mov edx, dword [esp + 0xc]
mov dword [edx + 4], eax
mov dword [edx + 8], ebx
mov dword [edx + 0xc], edi
mov dword [edx + 0x10], ecx
mov al, 1
xor ecx, ecx
mov dword [edx], ecx
mov byte [esi + 0x48], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x46cbad
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
movzx eax, byte [ecx + 0x60]
mov esi, ecx
cmp eax, 3
je 0x46cbcf
test eax, eax
jne 0x46cbdd
mov ecx, esi
call fcn.00458ac1
add esi, 0xc
mov ecx, esi
pop esi
jmp fcn.00441f4f
lea ecx, [esi + 0x3c]
call fcn.00441f4f
cmp dword [esi + 0x30], 2
jne 0x46cbdf
pop esi
ret
add esi, 0x30
mov ecx, esi
pop esi
jmp fcn.00458ac1
Function at 0x4794f6
Capabilities:
Get remote cert context via schannel

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
lea eax, [esp + 4]
mov esi, ecx
add edx, 0x128
mov dword [eax], 0
push eax
push 0x53
push edx
call dword [sym.imp.secur32.dll_QueryContextAttributesW]
test eax, eax
je 0x479537
cmp eax, 0x8009030e
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], eax
jne 0x479568
lea eax, [esp + 0x14]
push eax
jmp 0x47957d
mov ebx, dword [esp + 4]
lea edi, [esp + 8]
mov ecx, edi
mov edx, dword [ebx + 4]
push dword [ebx + 8]
call fcn.004390c5
add esp, 4
mov edi, dword [edi]
cmp edi, 0x80000000
jne 0x47958c
lea eax, [esp + 0xc]
push eax
call fcn.0041fdda
add esp, 4
jmp 0x479597
lea ecx, [esp + 0xc]
mov dword [ecx + 4], eax
mov dword [ecx], 0
mov dword [ecx - 4], 1
push ecx
call fcn.0041fdda
add esp, 4
mov edi, 0x80000000
jmp 0x4795a1
mov eax, dword [esp + 0xc]
mov ebp, dword [esp + 0x10]
mov dword [esp], eax
push ebx
call dword [sym.imp.crypt32.dll_CertFreeCertificateContext]
mov eax, dword [esp]
mov dword [esi], edi
mov dword [esi + 4], eax
mov dword [esi + 8], ebp
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x479726
Capabilities:
Get remote cert context via schannel

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
lea eax, [esp + 4]
mov esi, ecx
add edx, 0x68
mov dword [eax], 0
push eax
push 0x53
push edx
call dword [sym.imp.secur32.dll_QueryContextAttributesW]
test eax, eax
je 0x479764
cmp eax, 0x8009030e
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], eax
jne 0x479795
lea eax, [esp + 0x14]
push eax
jmp 0x4797aa
mov ebx, dword [esp + 4]
lea edi, [esp + 8]
mov ecx, edi
mov edx, dword [ebx + 4]
push dword [ebx + 8]
call fcn.004390c5
add esp, 4
mov edi, dword [edi]
cmp edi, 0x80000000
jne 0x4797b9
lea eax, [esp + 0xc]
push eax
call fcn.0041fdda
add esp, 4
jmp 0x4797c4
lea ecx, [esp + 0xc]
mov dword [ecx + 4], eax
mov dword [ecx], 0
mov dword [ecx - 4], 1
push ecx
call fcn.0041fdda
add esp, 4
mov edi, 0x80000000
jmp 0x4797ce
mov eax, dword [esp + 0xc]
mov ebp, dword [esp + 0x10]
mov dword [esp], eax
push ebx
call dword [sym.imp.crypt32.dll_CertFreeCertificateContext]
mov eax, dword [esp]
mov dword [esi], edi
mov dword [esi + 4], eax
mov dword [esi + 8], ebp
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x484492
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov edi, edx
mov edx, dword [esp + 0x38]
lea ebp, [esp + 0x18]
mov dword [esp], ecx
mov ecx, ebp
push 0xb
call fcn.00471615
add esp, 4
lea eax, [esp + 4]
mov ecx, 0x800
xor esi, esi
mov dword [eax], 0x800
lea eax, [esp + 8]
mov dword [eax], esi
call fcn.00497f18
lea ecx, [esp + 0xc]
mov ebp, dword [ebp + 4]
mov ebx, edx
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov dword [ecx + 8], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 4]
push eax
push ebx
lea eax, [esp + 0x10]
push eax
push 0
push ebp
push edi
call esi
cmp eax, 0xea
jne 0x484522
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 4]
sub ecx, edx
cmp ecx, eax
jae 0x4844e5
lea ecx, [esp + 0xc]
push eax
call fcn.004e86ee
add esp, 4
mov ebx, dword [esp + 0x10]
jmp 0x4844e5
test eax, eax
jne 0x484543
mov eax, dword [esp + 4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 8]
cmp eax, 0xb
jbe 0x48456e
mov ecx, dword [esp]
mov dword [ecx + 8], 0xde
jmp 0x484549
mov ecx, dword [esp]
mov dword [ecx + 8], eax
cmp dword [esp + 0xc], 0
mov dword [ecx + 4], 0
mov dword [ecx], 0x80000000
je 0x484585
push ebx
push 0
push dword [0x537fc8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x484585
mov ecx, dword [esp + 0x14]
mov edx, dword [esp]
movsd xmm0, qword [esp + 0xc]
mov dword [edx + 8], ecx
movsd qword [edx], xmm0
mov byte [edx + 0xc], al
cmp dword [esp + 0x18], 0
je 0x48459e
push dword [esp + 0x1c]
push 0
push dword [0x537fc8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x496666
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x48
xor eax, eax
cmp dword [edx + 0xc], 0x80000000
mov ebx, ecx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x10], 4
mov dword [esp + 0x40], 0x400010
je 0x4966c8
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x10]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
cmp dword [edx + 0x18], 0x80000000
je 0x4966f3
mov eax, dword [edx + 0x20]
test eax, eax
je 0x4966ed
mov esi, dword [edx + 0x1c]
xor ecx, ecx
movzx edi, byte [esi]
inc esi
or ecx, dword [edi*4 + 0x52f3a0]
dec eax
jne 0x4966dd
jmp 0x4966ef
xor ecx, ecx
mov dword [esp + 0x30], ecx
mov ebp, dword [edx + 8]
xor esi, esi
mov dword [esp], ebx
test ebp, ebp
je 0x496746
cmp ebp, 0x20000000
jae 0x4967d0
mov ebx, dword [edx + 4]
mov al, byte [0x538038]
lea ecx, [ebp*4]
mov edx, 4
mov dword [esp + 0xc], ecx
call fcn.00439850
test eax, eax
je 0x4967d5
mov edi, eax
xor eax, eax
mov ecx, dword [ebx + eax*4]
mov dword [edi + eax*4], ecx
inc eax
cmp ebp, eax
jne 0x496734
mov ebx, dword [esp]
mov eax, ebp
jmp 0x49674d
mov edi, 4
xor eax, eax
lea ecx, [esp + 0x10]
mov dword [ecx + 4], eax
lea eax, [esp + 4]
mov dword [ecx + 8], edi
push esi
push eax
push esi
push esi
push ecx
push esi
push 2
push 0x5274e4
push esi
call dword [sym.imp.secur32.dll_AcquireCredentialsHandleA]
test eax, eax
je 0x49677e
mov dword [ebx + 4], eax
mov dword [ebx], 0
jmp 0x4967b5
mov esi, dword [esp + 4]
mov ebx, dword [esp + 8]
mov al, byte [0x538038]
mov ecx, 0x10
mov edx, 4
call fcn.00439850
test eax, eax
je 0x4967e3
mov edx, dword [esp]
xor ecx, ecx
inc ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0xc], ebx
mov dword [edx + 4], eax
mov byte [edx], 4
test ebp, ebp
je 0x4967c8
push edi
push 0
push dword [0x537fc8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00401890
mov edx, dword [esp + 0xc]
mov ecx, 4
call fcn.004e8590
mov ecx, 4
mov edx, 0x10
call fcn.004e8590
Function at 0x497e12
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 0x497e36
mov byte [esi], 4
jmp 0x497e45
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
pop esi
ret
Function at 0x498190
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], 0x4c3640
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0x537fe0]
test al, al
je 0x498361
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4981dc
cmp eax, 3
jne 0x49835a
mov ebx, dword [0x537fe4]
test ebx, ebx
je 0x49835a
mov dword [ebp - 0x20], 0
jmp 0x498207
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x498238
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4983ab
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x498200
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 0x498200
test byte [ebp - 0x20], 1
je 0x49835a
mov ebx, dword [0x537fe4]
test ebx, ebx
je 0x49835a
mov dword [ebp - 0x20], 0
jmp 0x498267
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x498298
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4983ab
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x498260
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 0x498260
test byte [ebp - 0x20], 1
je 0x49835a
mov ebx, dword [0x537fe4]
test ebx, ebx
je 0x49835a
mov dword [ebp - 0x20], 0
jmp 0x4982c7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4982f8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4983ab
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4982c0
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 0x4982c0
test byte [ebp - 0x20], 1
je 0x49835a
mov ebx, dword [0x537fe4]
test ebx, ebx
je 0x49835a
mov dword [ebp - 0x20], 0
jmp 0x498327
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x498354
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4983ab
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x498320
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 0x498320
test byte [ebp - 0x20], 1
jne 0x498374
movzx eax, byte [0x533830]
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 [0x537fe4]
jmp 0x49837f
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x49835a
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4983ab
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49837c
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x49837c
mov dword [ebp - 0x10], 0
mov ecx, str.called__Option::unwrap____on_a__None__value
mov edx, 0x2b
push 0x529d58
call fcn.004e8a30
add esp, 4
ud2