joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41cc00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], str._n_VPATH_Search_Paths_n
call sub.msvcrt.dll_puts
mov ebx, dword [0x42abb0]
test ebx, ebx
je 0x41cd1a
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebx + 4]
mov dword [esp], str.vpath__s
inc edi
xor esi, esi
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebx + 0x10]
cmp dword [eax], 0
jmp 0x41cc82
mov eax, dword [eax + esi*4 + 4]
cmp eax, 1
sbb eax, eax
and eax, 0xffffffcf
add eax, 0x3b
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + esi*4]
mov dword [esp], str._s_c
inc esi
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + esi*4]
test edx, edx
jne 0x41cc50
mov ebx, dword [ebx]
test ebx, ebx
jne 0x41cc30
mov eax, dword [0x42abb0]
test eax, eax
je 0x41cd1a
mov dword [esp + 4], edi
mov dword [esp], str._n__u__vpath_search_paths._n
call sub.msvcrt.dll_printf
mov eax, dword [0x42abc0]
test eax, eax
je 0x41cd2f
mov esi, dword [eax + 0x10]
mov ebx, 1
mov edi, 0x2d
mov dword [esp + 4], ebx
mov eax, dword [sym.imp.msvcrt.dll__iob]
xor ebx, ebx
mov dword [esp + 8], edi
add eax, 0x20
mov dword [esp + 0xc], eax
mov dword [esp], str._n_General___VPATH_variable__search_path:_n
call sub.msvcrt.dll_fwrite
cmp dword [esi], 0
jmp 0x41cd10
mov eax, dword [esi + ebx*4 + 4]
cmp eax, 1
sbb eax, eax
and eax, 0xffffffcf
add eax, 0x3b
mov dword [esp + 8], eax
mov eax, dword [esi + ebx*4]
inc ebx
mov dword [esp], str._s_c
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov ecx, dword [esi + ebx*4]
test ecx, ecx
jne 0x41cce4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str._No__vpath_search_paths.
call sub.msvcrt.dll_puts
mov eax, dword [0x42abc0]
test eax, eax
jne 0x41ccb0
mov dword [esp], str._n_No_general___VPATH_variable__search_path.
call sub.msvcrt.dll_puts
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x41e330
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp + 0xc], ecx
and ecx, 4
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.0041d4b0
Function at 0x4218d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push edi
push esi
push ebx
sub esp, 0x120
mov ebx, dword [esp + 0x130]
call sub.msvcrt.dll__errno
mov dword [eax], 0
test ebx, ebx
je 0x421af9
cmp byte [ebx], 0
je 0x421ac4
mov dword [esp], ebx
call sub.KERNEL32.dll_GetFileAttributesA
sub esp, 4
cmp eax, 0xffffffff
je 0x421aea
test al, 0x10
je 0x421ac4
mov dword [esp + 4], ebx
mov eax, 0x104
lea esi, [esp + 0x10]
mov dword [esp + 8], eax
mov dword [esp], esi
call sub.msvcrt.dll__fullpath
mov ecx, esi
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [ecx]
add ecx, 4
lea edx, [ebx - 0x1010101]
not ebx
and edx, ebx
mov eax, edx
and eax, 0x80808080
je 0x421940
and edx, 0x8080
jne 0x421966
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, esi
lea edx, [ecx + 0x233]
mov dword [esp], edx
call sub.msvcrt.dll_malloc
test eax, eax
mov ebx, eax
je 0x421adb
mov dword [esp + 4], esi
lea esi, [eax + 0x22c]
mov dword [esp], esi
call sub.msvcrt.dll_strcpy
cmp byte [ebx + 0x22c], 0
je 0x421a60
mov dword [esp], esi
mov ecx, 0x2f
mov dword [esp + 4], ecx
call sub.msvcrt.dll_strrchr
mov edi, eax
mov ecx, esi
lea esi, [esi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
mov eax, edx
and eax, 0x80808080
je 0x4219c0
and edx, 0x8080
jne 0x4219e6
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, esi
lea edx, [ecx + ebx + 0x22b]
cmp edi, edx
je 0x421a60
mov dword [esp], esi
mov edi, 0x5c
mov dword [esp + 4], edi
call sub.msvcrt.dll_strrchr
mov edi, eax
mov ecx, esi
lea esi, [esi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
mov eax, edx
and eax, 0x80808080
je 0x421a10
and edx, 0x8080
jne 0x421a36
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, esi
lea edx, [ecx + ebx + 0x22b]
cmp edi, edx
je 0x421a60
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov word [eax + esi], 0x5c
lea esi, [esi]
lea edi, [edi]
mov dword [esp], esi
mov edi, 0xffffffff
call sub.msvcrt.dll_strlen
mov word [eax + esi], 0x2a
xor ecx, ecx
xor esi, esi
mov dword [ebx + 0x224], edi
xor edx, edx
xor eax, eax
mov dword [ebx + 0x228], ecx
mov edi, 0x104
xor ecx, ecx
mov dword [ebx + 0x118], esi
lea esi, [ebx + 0x120]
mov word [ebx + 0x11c], dx
mov word [ebx + 0x11e], ax
mov dword [esp + 8], edi
mov dword [esp], esi
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memset
add esp, 0x120
mov eax, ebx
pop ebx
pop esi
pop edi
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x14
xor eax, eax
add esp, 0x120
pop ebx
pop esi
pop edi
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0xc
xor eax, eax
jmp 0x421ad1
call sub.msvcrt.dll__errno
mov dword [eax], 2
xor eax, eax
jmp 0x421ad1
call sub.msvcrt.dll__errno
mov dword [eax], 0xe
xor eax, eax
jmp 0x421ad1
Function at 0x402a30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x7e8
mov esi, esp
mov dword [esi + 0x7d0], ebp
lea eax, [esi + 0x7d8]
mov edi, edx
mov dword [esi + 0xac], ecx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x49eae0
mov dword [esi + 8], edi
mov edx, dword fs:[0]
mov dword [eax], edx
mov dword fs:[0], eax
call fcn.00402a7a
Function at 0x4119c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, edx
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
xor esi, esi
lea edx, [eax + edx*2]
movzx ebx, byte [eax + 1]
cmp byte [eax], ch
lea eax, [eax + 2]
lea edi, [esi + ebx]
jne 0x411a10
cmp esi, edi
ja 0x411a78
cmp edi, dword [esp + 0x1c]
ja 0x411a86
add esi, dword [esp + 0x18]
nop word [eax + eax]
test ebx, ebx
je 0x411a12
dec ebx
cmp byte [esi], cl
lea esi, [esi + 1]
jne 0x411a00
jmp 0x411a6f
ja 0x411a18
cmp eax, edx
mov esi, edi
jne 0x4119d3
mov edi, dword [esp + 0x24]
movzx ecx, cx
mov al, 1
add edi, ebp
nop word cs:[eax + eax]
nop dword [eax]
movzx edx, byte [ebp]
lea esi, [ebp + 1]
test dl, dl
js 0x411a50
mov ebp, esi
sub ecx, edx
jns 0x411a67
jmp 0x411a71
cmp esi, edi
je 0x411a96
movzx esi, byte [ebp + 1]
and edx, 0x7f
add ebp, 2
shl edx, 8
or edx, esi
sub ecx, edx
js 0x411a71
xor al, 1
cmp ebp, edi
jne 0x411a30
jmp 0x411a71
xor eax, eax
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, edi
push 0x4a75c0
call fcn.004a04e0
mov edx, dword [esp + 0x1c]
mov ecx, edi
push 0x4a75c0
call fcn.004a02f0
mov ecx, 0x4a75b0
call fcn.004a0660
Function at 0x42df98
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x130
mov edi, dword [esp + 0x148]
mov ebx, dword [esp + 0x144]
call fcn.0042dfb5

Function at 0x433a7c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov ebp, dword [0x50c338]
mov esi, ecx
test ebp, ebp
jne 0x433b75
push str.api_ms_win_core_synch_l1_2_0.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
test eax, eax
je 0x433acf
mov ebx, eax
push str.WaitOnAddress
push eax
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x433acf
mov edi, eax
push str.WakeByAddressSingle
push ebx
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x433acf
mov ebx, eax
mov dword [esp], 0
jmp 0x433b36
push 0x4d7fd4
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
test eax, eax
je 0x433b83
mov edi, eax
push str.NtCreateKeyedEvent
push eax
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x433b83
mov ebp, eax
push str.NtReleaseKeyedEvent
push edi
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x433b83
mov ebx, eax
push str.NtWaitForKeyedEvent
push edi
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x433b83
mov edi, eax
mov dword [esp], ebx
lea eax, [esp + 4]
push 0
push 0
push 0xc0000000
push eax
call ebp
test eax, eax
jne 0x433b83
mov ebx, dword [esp + 4]
push 0xc
pop ecx
call fcn.00430cad
mov ebp, eax
mov eax, dword [esp]
mov dword [ebp], eax
mov dword [ebp + 4], edi
mov dword [ebp + 8], ebx
xor eax, eax
lock cmpxchg dword [0x50c338], ebp
je 0x433b75
cmp dword [ebp], 0
mov edi, eax
je 0x433b69
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
push 4
pop edx
mov ecx, ebp
call fcn.0040a630
mov ebp, edi
and dword [esi + 4], 0
mov dword [esi], ebp
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5b
pop edx
mov ecx, str.parking_lot_requires_either_NT_Keyed_Events__WinXP__or_WaitOnAddress_WakeByAddress__Win8_.cargo_registry_srcindex.crates.io_1cd66030c949c28dparking_lot_core_0.9.9_src_thread_parkerwindowsmod.rsZ
push 0x4d80c8
call fcn.004a1b2a
Function at 0x44e7e5
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 + 0x44]
mov edx, dword [edx + 0x48]
push 0x4dc934
push dword [edi + 0x38]
call fcn.0044e568
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 + 0x80]
push 0
push 0
push eax
push ecx
call dword [sym.imp.secur32.dll_DecryptMessage]
cmp eax, 0x80090318
je 0x44e91e
test eax, eax
je 0x44e8b4
cmp eax, 0x90317
je 0x44e917
cmp eax, 0x90321
jne 0x44e92b
mov dword [edi + 0x68], 0x10000
mov byte [edi + 0x6c], 0
xor eax, eax
cmp dword [esp + 0x28], 5
mov edx, dword [edi + 0x38]
jne 0x44e89f
mov eax, dword [esp + 0x24]
sub edx, eax
mov ecx, edi
call fcn.0044e79d
and dword [edi + 0xac], 0
jmp 0x44e93c
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x44]
mov ebp, dword [esp + 0xc]
mov edx, dword [edi + 0x48]
and dword [edi + 0x30], 0
lea ebx, [edi + 0x28]
sub eax, ecx
add ebp, eax
push ebp
push eax
call fcn.0044e954
pop ecx
pop ecx
mov ebp, edx
mov edx, eax
mov ecx, ebx
push ebp
call fcn.004961e2
pop eax
and dword [edi + 0x24], 0
and dword [edi + 0x20], 0
xor eax, eax
cmp dword [esp + 0x28], 5
mov edx, dword [edi + 0x38]
jne 0x44e8fb
mov eax, dword [esp + 0x24]
sub edx, eax
mov ecx, edi
call fcn.0044e79d
mov eax, dword [edi + 0x38]
xor ecx, ecx
or eax, dword [edi + 0x3c]
sete cl
mov dword [edi + 0xac], ecx
jmp 0x44e93c
mov word [esi], 0x104
jmp 0x44e941
cmp dword [esp + 0x10], 4
jne 0x44e933
mov eax, dword [esp + 0xc]
jmp 0x44e936
and dword [esi], 0
mov dword [esi + 4], eax
jmp 0x44e941
xor eax, eax
inc eax
mov dword [edi + 0xac], eax
mov word [esi], 4
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x44e9c3
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x70
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x88]
mov esi, edx
call fcn.0044ec02
mov ecx, dword [esi + 8]
mov edi, dword [esi + 0xc]
mov ebp, dword [esi + 0x10]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
and dword [esp + 0x48], 0
and dword [esp + 0x4c], 0
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x3c], ecx
mov ecx, 0x7fffffff
mov dword [esp + 0x38], edi
lea edi, [esp + 8]
mov dword [esp + 0x28], ebp
cmp edx, ecx
cmovb ecx, edx
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x3c]
mov ecx, edi
push 0
push dword [esp + 0x88]
call fcn.004926bc
pop eax
pop ecx
mov ecx, dword [esp + 8]
cmp ecx, 2
je 0x44eb6e
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
test ecx, ecx
jne 0x44eb76
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], eax
cmp ecx, 0xffffffff
je 0x44ebdd
push 0
push dword [esp + 0x34]
push dword [esp + 0x3c]
push ecx
call dword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x44ea8d
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
xor eax, eax
cmp esi, 0x274a
jne 0x44eae5
mov dword [esp + 0x18], eax
mov byte [esp + 0x14], 4
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
cmp bl, 4
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebx
je 0x44eb7f
lea ecx, [esp + 0x20]
call fcn.0048d88c
cmp al, 0xd
jne 0x44eb93
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x50]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
call fcn.00492676
push edi
call fcn.0048d7f9
pop eax
mov ebp, dword [esp + 0x28]
jmp 0x44ea1d
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], 0
mov dword [esp + 0x18], esi
call fcn.00417174
cmp al, 0xd
jne 0x44ea96
test ebp, ebp
je 0x44eb5c
mov eax, dword [ebp + 4]
mov edx, dword [ebp]
lock inc dword [eax]
jle 0x44ebe7
add edx, 8
mov ecx, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.00432820
add esp, 0xc
push 4
pop ecx
call fcn.00477a18
cmp byte [esp + 8], 4
je 0x44ea96
mov ebx, dword [esp + 8]
cmp bl, 4
je 0x44ea96
mov ebp, dword [esp + 0xc]
xor ecx, ecx
mov edx, esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebp
call fcn.00477a18
jmp 0x44eaaf
and dword [esp + 0xc], 0
mov dword [esp + 8], 4
jmp 0x44ea96
mov bl, 5
mov byte [esp], 5
jmp 0x44eb9a
mov dword [esp], ebx
mov dword [esp + 4], eax
jmp 0x44eb9a
test ebp, ebp
je 0x44eb87
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebp
mov byte [esp], 4
mov bl, 4
jmp 0x44eb9a
mov dword [esp], ebx
mov dword [esp + 4], ebp
cmp bl, 4
jne 0x44ebc8
lea ecx, [esp + 0x40]
call fcn.004461fc
mov ecx, esp
mov esi, edx
call fcn.00446225
mov ecx, dword [esp + 0x88]
mov edx, esi
call fcn.0044ec19
mov eax, dword [esp + 0x1c]
mov byte [eax], 4
jmp 0x44ebd5
movsd xmm0, qword [esp]
mov eax, dword [esp + 0x1c]
movsd qword [eax], xmm0
add esp, 0x70
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x4e2008
call fcn.004a0660
ud2
Function at 0x44eeda
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 0x4dc934
push dword [edi + 0xe0]
call fcn.0044e568
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 0x44f040
test eax, eax
je 0x44efbb
cmp eax, 0x90317
je 0x44f039
cmp eax, 0x90321
jne 0x44f04d
mov dword [edi + 0x110], 0x10000
mov byte [edi + 0x114], 0
xor eax, eax
cmp dword [esp + 0x28], 5
mov edx, dword [edi + 0xe0]
jne 0x44efa6
mov eax, dword [esp + 0x24]
sub edx, eax
mov ecx, edi
call fcn.0044ee86
and dword [edi + 0x154], 0
jmp 0x44f05e
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.0044e954
pop ecx
pop ecx
mov ebp, edx
mov edx, eax
mov ecx, ebx
push ebp
call fcn.004961e2
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 0x44f017
mov eax, dword [esp + 0x24]
sub edx, eax
mov ecx, edi
call fcn.0044ee86
mov eax, dword [edi + 0xe0]
xor ecx, ecx
or eax, dword [edi + 0xe4]
sete cl
mov dword [edi + 0x154], ecx
jmp 0x44f05e
mov word [esi], 0x104
jmp 0x44f063
cmp dword [esp + 0x10], 4
jne 0x44f055
mov eax, dword [esp + 0xc]
jmp 0x44f058
and dword [esi], 0
mov dword [esi + 4], eax
jmp 0x44f063
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 0x469ed6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov ebx, edx
mov edx, dword [esp + 0x38]
lea edi, [esp + 0x18]
mov dword [esp + 4], ecx
mov ecx, edi
push 0xb
call fcn.00469ddf
pop eax
mov eax, esp
mov ecx, 0x800
mov dword [eax], 0x800
lea eax, [esp + 8]
and dword [eax], 0
call fcn.00435565
lea esi, [esp + 0xc]
mov edi, dword [edi + 4]
mov ebp, edx
mov dword [esi], eax
mov dword [esi + 4], edx
and dword [esi + 8], 0
mov eax, esp
push eax
push ebp
lea eax, [esp + 0x10]
push eax
push 0
push edi
push ebx
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x469f4a
mov edx, dword [esp]
mov ecx, esi
call fcn.00496120
mov ebp, dword [esp + 0x10]
jmp 0x469f20
test eax, eax
jne 0x469f6b
mov eax, dword [esp]
mov edx, dword [esp + 4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 8]
cmp eax, 0xb
jbe 0x469f89
mov dword [edx + 8], 0xde
jmp 0x469f72
mov edx, dword [esp + 4]
mov dword [edx + 8], eax
mov ecx, dword [esp + 0xc]
and dword [edx + 4], 0
mov dword [edx], 0x80000000
mov edx, ebp
call fcn.0049eabd
jmp 0x469f9d
mov ecx, dword [esp + 0x14]
movsd xmm0, qword [esp + 0xc]
mov dword [edx + 8], ecx
movsd qword [edx], xmm0
mov byte [edx + 0xc], al
mov ecx, dword [esp + 0x18]
mov edx, edi
call fcn.004769a7
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x476be7
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x48
and dword [esp + 4], 0
and dword [esp + 8], 0
and dword [esp + 0x20], 0
and dword [esp + 0x1c], 0
and dword [esp + 0x28], 0
and dword [esp + 0x24], 0
and dword [esp + 0x30], 0
and dword [esp + 0x2c], 0
and dword [esp + 0x38], 0
and dword [esp + 0x34], 0
and dword [esp + 0x3c], 0
and dword [esp + 0x44], 0
cmp dword [edx + 0xc], 0x80000000
mov esi, ecx
mov dword [esp + 0x10], 4
mov dword [esp + 0x40], 0x400010
je 0x476c53
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 0x476c82
mov eax, dword [edx + 0x20]
mov ebx, esi
test eax, eax
je 0x476c7a
mov edi, dword [edx + 0x1c]
xor ecx, ecx
movzx esi, byte [edi]
inc edi
or ecx, dword [esi*4 + 0x508b40]
dec eax
jne 0x476c6a
jmp 0x476c7c
xor ecx, ecx
mov esi, ebx
mov dword [esp + 0x30], ecx
mov ebp, dword [edx + 8]
lea eax, [ebp*4]
test ebp, ebp
mov dword [esp], eax
je 0x476cc7
cmp ebp, 0x20000000
jae 0x476d4f
mov edi, dword [edx + 4]
push 4
pop ecx
mov edx, eax
call fcn.0040c443
test eax, eax
je 0x476d54
mov ebx, eax
xor eax, eax
mov ecx, dword [edi + eax*4]
mov dword [ebx + eax*4], ecx
inc eax
cmp ebp, eax
jne 0x476cb8
mov eax, ebp
jmp 0x476ccc
xor eax, eax
push 4
pop ebx
lea ecx, [esp + 0x10]
mov dword [ecx + 4], eax
lea eax, [esp + 4]
mov dword [ecx + 8], ebx
push 0
push eax
push 0
push 0
push ecx
push 0
push 2
push 0x4de43f
push 0
call dword [sym.imp.secur32.dll_AcquireCredentialsHandleA]
test eax, eax
je 0x476cff
and dword [esi], 0
mov dword [esi + 4], eax
jmp 0x476d35
mov dword [esp + 0xc], esi
mov edi, dword [esp + 4]
mov esi, dword [esp + 8]
push 4
pop ecx
push 0x10
pop edx
push 0
call fcn.0048764b
pop ecx
test eax, eax
je 0x476d5f
mov edx, dword [esp + 0xc]
xor ecx, ecx
inc ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0xc], esi
mov dword [edx + 4], eax
mov byte [edx], 4
test ebp, ebp
je 0x476d47
push 4
pop edx
mov ecx, ebx
push dword [esp]
call fcn.0040240f
pop eax
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.0040a720
push 4
pop ecx
mov edx, dword [esp]
call fcn.0049ff70
push 4
pop ecx
push 0x10
pop edx
call fcn.0049ff70

Function at 0x4771e9
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 0x477208
and dword [esi], 0
mov dword [esi + 4], eax
jmp 0x477211
mov eax, dword [esp]
mov dword [esi + 4], eax
mov byte [esi], 4
add esp, 4
pop esi
ret
Function at 0x47788f
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 0x4778ff
mov eax, dword [0x50c3b4]
cmp eax, 3
jne 0x4779f7
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 0x47791a
cmp word [ebp], 0
je 0x477974
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 0x477984
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 0x4779ef
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x477932
cmp eax, 0x2726
jne 0x4779e0
push 1
push 0
push 0
push 0
push 2
push ebx
call dword [sym.imp.ws2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x4779da
mov edi, eax
push 0
push 1
push eax
call dword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
jne 0x4778d8
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
mov eax, ebx
jmp 0x4779e0
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 0x4779bc
mov dword [esi + 4], edi
mov byte [esi], 4
jmp 0x4779ef
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 0x4779ef
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.004a3850
jmp 0x4778af

Function at 0x477e12
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 0x477e36
mov byte [esi], 4
jmp 0x477e42
call dword [sym.imp.kernel32.dll_GetLastError]
and dword [esi], 0
mov dword [esi + 4], eax
pop esi
ret