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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc0
cmp byte [edx + 0x17d], 0
call fcn.00414453
Function at 0x4203e0
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 0x420430
cmp esi, edi
ja 0x420498
cmp edi, dword [esp + 0x1c]
ja 0x4204a6
add esi, dword [esp + 0x18]
nop word [eax + eax]
test ebx, ebx
je 0x420432
dec ebx
cmp byte [esi], cl
lea esi, [esi + 1]
jne 0x420420
jmp 0x42048f
ja 0x420438
cmp eax, edx
mov esi, edi
jne 0x4203f3
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 0x420470
mov ebp, esi
sub ecx, edx
jns 0x420487
jmp 0x420491
cmp esi, edi
je 0x4204b6
movzx esi, byte [ebp + 1]
and edx, 0x7f
add ebp, 2
shl edx, 8
or edx, esi
sub ecx, edx
js 0x420491
xor al, 1
cmp ebp, edi
jne 0x420450
jmp 0x420491
xor eax, eax
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, edi
push 0x5aabd0
call fcn.0059f0c0
mov edx, dword [esp + 0x1c]
mov ecx, edi
push 0x5aabd0
call fcn.0059eed0
mov ecx, str.called__Option::unwrap____on_a__None__valueC:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001fwinapi_util_0.1.6_srcwin.rs
mov edx, 0x2b
push 0x5aabc0
call fcn.0059ef30
int3
Function at 0x44684c
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.00446869
Function at 0x44f770
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov ebp, dword [0x666348]
mov esi, ecx
test ebp, ebp
jne 0x44f86d
push str.api_ms_win_core_synch_l1_2_0.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
test eax, eax
je 0x44f7c5
mov ebx, eax
push str.WaitOnAddress
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x44f7c5
mov edi, eax
push str.WakeByAddressSingle
push ebx
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x44f7c5
mov ebx, eax
mov dword [esp], 0
jmp 0x44f82f
push 0x5ce63c
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
test eax, eax
je 0x44f87b
mov edi, eax
push str.NtCreateKeyedEvent
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x44f87b
mov ebp, eax
push str.NtReleaseKeyedEvent
push edi
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x44f87b
mov ebx, eax
push str.NtWaitForKeyedEvent
push edi
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x44f87b
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 0x44f87b
mov ebx, dword [esp + 4]
push 0xc
pop ecx
call fcn.004f7740
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 [0x666348], ebp
je 0x44f86d
cmp dword [ebp], 0
mov edi, eax
je 0x44f861
push dword [ebp + 8]
call sub.kernel32.dll_CloseHandle
push 4
pop edx
mov ecx, ebp
call fcn.00407480
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_C:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001fparking_lot_core_0.9.9_src_thread_parkerwindowsmod.rs
push 0x5ce744
call fcn.005a1307

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x5d8
mov esi, dword [edx + 0x4c]
call fcn.004501a7
Function at 0x45d066
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x60
mov esi, dword [edx + 4]
mov dword [esp + 8], ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x10], esi
cmp ecx, eax
cmovb eax, ecx
mov ecx, dword [esi + 0x18]
add esi, 0x14
mov dword [esp + 0x14], esi
xor esi, esi
add ecx, 0xe
cmp eax, esi
je 0x45d0be
cmp byte [ecx - 2], 0
mov edi, esi
je 0x45d0c0
mov bl, byte [ecx - 1]
mov esi, dword [ebp + 8]
cmp bl, byte [esi + edi*2]
jne 0x45d0c0
mov bl, byte [esi + edi*2 + 1]
lea esi, [edi + 1]
cmp byte [ecx], bl
lea ecx, [ecx + 0x10]
je 0x45d097
jmp 0x45d0c0
mov edi, eax
mov esi, dword [ebp + 0xc]
cmp edi, esi
jae 0x45d1ce
lea ebx, [esp + 0x18]
mov ecx, ebx
push edi
call fcn.0045d824
pop eax
mov edx, dword [ebx]
cmp edx, 0x2a
jne 0x45d1ab
mov ecx, dword [ebp + 8]
mov edx, esi
push 0x5d1ad0
push edi
call fcn.0045d512
pop ecx
pop ecx
test edx, edx
je 0x45d1e0
mov ebx, dword [esp + 0x10]
mov dword [esp + 0xc], edx
mov edx, dword [ebx + 0x1c]
mov esi, edx
sub esi, 1
jb 0x45d1f2
mov ecx, dword [ebx + 0x18]
mov edi, eax
push 0x5d1b00
push esi
call fcn.0045d935
pop ecx
pop edx
cmp byte [eax + 0xc], 0
jne 0x45d204
movzx eax, word [edi]
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0x1c]
mov word [esp + 6], ax
push 0x5d1b5c
push esi
call fcn.0045d935
pop ecx
pop edx
movzx ecx, word [esp + 6]
mov edx, dword [esp + 0xc]
mov byte [eax + 0xc], 1
mov word [eax + 0xd], cx
mov ecx, edi
push 0x5d1b6c
push 1
call fcn.0045d512
pop ecx
pop ecx
mov ebx, edx
mov edi, eax
lea esi, [esp + 0x18]
add ebx, edx
test ebx, ebx
je 0x45d1bd
movzx eax, word [edi]
mov ecx, dword [esp + 0x14]
and dword [esp + 0x18], 0
mov dword [esp + 0x1c], 4
and dword [esp + 0x20], 0
mov edx, esi
mov byte [esp + 0x24], 1
add edi, 2
mov word [esp + 0x25], ax
call fcn.0044d2d4
add ebx, 0xfffffffe
jmp 0x45d175
mov eax, dword [esp + 8]
lea esi, [esp + 0x1c]
lea edi, [eax + 4]
push 0xf
pop ecx
rep movsd dword es:[edi], dword [esi]
jmp 0x45d1c4
mov eax, dword [esp + 8]
push 0x2a
pop edx
mov dword [eax], edx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x2b
pop edx
mov ecx, str.assertion_failed:_prefix_len___ranges.len__
push 0x5d1ac0
call fcn.0059ef30
push 0x24
pop edx
mov ecx, str.assertion_failed:__ranges.is_empty__H
push 0x5d1ba0
call fcn.0059ef30
push 0xf
pop edx
mov ecx, str.non_empty_nodes
push 0x5d1af0
call fcn.0059f240
push 0x3c
pop edx
mov ecx, str.assertion_failed:_self.state.uncompiled_last_.last.is_none__H
push 0x5d1b4c
call fcn.0059ef30
Function at 0x4b9a57
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 + 0x2c]
mov edx, dword [edx + 0x30]
push 0x621fc0
push dword [edi + 0x20]
call fcn.004b987d
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 + 0x68]
push 0
push 0
push eax
push ecx
call dword [sym.imp.secur32.dll_DecryptMessage]
cmp eax, 0x80090318
je 0x4b9b8d
test eax, eax
je 0x4b9b23
cmp eax, 0x90317
je 0x4b9b86
cmp eax, 0x90321
jne 0x4b9b9a
mov dword [edi + 0x50], 0x10000
mov byte [edi + 0x54], 0
xor eax, eax
cmp dword [esp + 0x28], 5
mov edx, dword [edi + 0x20]
jne 0x4b9b0e
mov eax, dword [esp + 0x24]
sub edx, eax
mov ecx, edi
call fcn.004b9a0f
and dword [edi + 0xa8], 0
jmp 0x4b9bab
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x2c]
mov ebp, dword [esp + 0xc]
mov edx, dword [edi + 0x30]
and dword [edi + 0x18], 0
lea ebx, [edi + 0x10]
sub eax, ecx
add ebp, eax
push ebp
push eax
call fcn.004b9bc3
pop ecx
pop ecx
mov ebp, edx
mov edx, eax
mov ecx, ebx
push ebp
call fcn.00417ce5
pop eax
and dword [edi + 0xc], 0
and dword [edi + 8], 0
xor eax, eax
cmp dword [esp + 0x28], 5
mov edx, dword [edi + 0x20]
jne 0x4b9b6a
mov eax, dword [esp + 0x24]
sub edx, eax
mov ecx, edi
call fcn.004b9a0f
mov eax, dword [edi + 0x20]
xor ecx, ecx
or eax, dword [edi + 0x24]
sete cl
mov dword [edi + 0xa8], ecx
jmp 0x4b9bab
mov word [esi], 0x104
jmp 0x4b9bb0
cmp dword [esp + 0x10], 4
jne 0x4b9ba2
mov eax, dword [esp + 0xc]
jmp 0x4b9ba5
and dword [esi], 0
mov dword [esi + 4], eax
jmp 0x4b9bb0
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
Function at 0x4b9e29
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 0x621fc0
push dword [edi + 0xe0]
call fcn.004b987d
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 0x4b9f8f
test eax, eax
je 0x4b9f0a
cmp eax, 0x90317
je 0x4b9f88
cmp eax, 0x90321
jne 0x4b9f9c
mov dword [edi + 0x110], 0x10000
mov byte [edi + 0x114], 0
xor eax, eax
cmp dword [esp + 0x28], 5
mov edx, dword [edi + 0xe0]
jne 0x4b9ef5
mov eax, dword [esp + 0x24]
sub edx, eax
mov ecx, edi
call fcn.004b9dd5
and dword [edi + 0x154], 0
jmp 0x4b9fad
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.004b9bc3
pop ecx
pop ecx
mov ebp, edx
mov edx, eax
mov ecx, ebx
push ebp
call fcn.00417ce5
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 0x4b9f66
mov eax, dword [esp + 0x24]
sub edx, eax
mov ecx, edi
call fcn.004b9dd5
mov eax, dword [edi + 0xe0]
xor ecx, ecx
or eax, dword [edi + 0xe4]
sete cl
mov dword [edi + 0x154], ecx
jmp 0x4b9fad
mov word [esi], 0x104
jmp 0x4b9fb2
cmp dword [esp + 0x10], 4
jne 0x4b9fa4
mov eax, dword [esp + 0xc]
jmp 0x4b9fa7
and dword [esi], 0
mov dword [esi + 4], eax
jmp 0x4b9fb2
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 0x4c2c18
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x8e0
mov dword [esp + 0x38], ecx
mov ecx, dword [edx]
mov ebx, dword [ebp + 8]
call fcn.004c2c35
Function at 0x4d72a9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x150
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [esp + 0x78], 2
and dword [esp + 0x88], 0
mov ecx, dword [esi + 0x100]
mov dword [esi + 0x100], 3
cmp ecx, 3
je 0x4d7412
lea eax, [esp + 0x3c]
add esi, 0x104
mov dword [eax - 4], ecx
push 0xd
pop ecx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x1c]
mov edi, dword [eax + 0x20]
mov eax, dword [ebx + 0x3c]
and dword [ebx + 0x3c], 0
cmp eax, 1
je 0x4d731e
cmp eax, 2
jne 0x4d7430
lea ecx, [esp + 0x38]
jmp 0x4d740d
mov al, byte [esp + 0x60]
movsd xmm1, qword [esp + 0x40]
mov dword [esp + 4], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 8], edx
movsd xmm0, qword [esp + 0x38]
mov esi, dword [esp + 0x68]
movzx edx, word [esp + 0x6c]
mov byte [esp + 3], al
mov al, byte [esp + 0x6e]
movsd qword [ecx + 8], xmm1
movsd xmm1, qword [esp + 0x48]
movsd qword [ecx], xmm0
movsd qword [ecx + 0x10], xmm1
mov dword [ecx + 0x18], esi
mov byte [ecx + 0x1e], al
mov byte [esp + 2], al
mov word [ecx + 0x1c], dx
call fcn.004b3ce9
test eax, eax
je 0x4d7409
mov ecx, dword [esp + 4]
cmp byte [esp + 3], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], eax
je 0x4d739e
mov al, byte [esp + 2]
or al, 1
mov byte [esp + 0x36], al
movsd xmm1, qword [esp + 0x28]
lea edi, [esp + 0x90]
movsd xmm0, qword [esp + 0x30]
movsd xmm2, qword [esp + 0x18]
lea esi, [esp + 0xc]
mov ecx, esi
movsd qword [edi + 0x18], xmm1
movsd xmm1, qword [esp + 0x20]
movsd qword [edi + 0x20], xmm0
movsd qword [edi + 8], xmm2
movsd qword [edi + 0x10], xmm1
mov byte [edi], 0
call fcn.00434d04
mov edx, dword [esp + 8]
lea ecx, [eax + 0x64]
push edi
call fcn.004d7f03
pop eax
mov ecx, esi
call fcn.00434c93
cmp dword [eax + 0x3c], 0
jle 0x4d7405
lea edx, [esp + 0xc]
mov ecx, ebx
call fcn.00435613
mov bl, 1
jmp 0x4d7414
lea ecx, [esp + 0x18]
call fcn.004b2b10
xor ebx, ebx
lea esi, [esp + 0x70]
mov ecx, esi
call fcn.00431a47
mov ecx, esi
call fcn.00431a58
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x23
pop edx
mov ecx, str.wasnt_expecting_a_frame_to_reclaim
push 0x61f134
call fcn.005a527a
int3
Function at 0x4ee41d
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.004ee516
pop eax
mov eax, esp
mov ecx, 0x800
mov dword [eax], 0x800
lea eax, [esp + 8]
and dword [eax], 0
call fcn.004f8aa4
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 0x4ee491
mov edx, dword [esp]
mov ecx, esi
call fcn.00513d03
mov ebp, dword [esp + 0x10]
jmp 0x4ee467
test eax, eax
jne 0x4ee4b2
mov eax, dword [esp]
mov edx, dword [esp + 4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 8]
cmp eax, 0xb
jbe 0x4ee4d0
mov dword [edx + 8], 0xde
jmp 0x4ee4b9
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.00422701
jmp 0x4ee4e4
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.00422a66
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4f7b41
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 edi, ecx
mov dword [esp + 0x10], 4
mov dword [esp + 0x40], 0x400010
je 0x4f7bad
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 0x4f7bdc
mov eax, dword [edx + 0x20]
mov ebx, edi
test eax, eax
je 0x4f7bd4
mov esi, dword [edx + 0x1c]
xor ecx, ecx
movzx edi, byte [esi]
inc esi
or ecx, dword [edi*4 + 0x652a5c]
dec eax
jne 0x4f7bc4
jmp 0x4f7bd6
xor ecx, ecx
mov edi, ebx
mov dword [esp + 0x30], ecx
mov ebp, dword [edx + 8]
lea eax, [ebp*4]
test ebp, ebp
mov dword [esp], eax
je 0x4f7c21
cmp ebp, 0x20000000
jae 0x4f7c9f
mov esi, dword [edx + 4]
push 4
pop ecx
mov edx, eax
call fcn.0042267d
test eax, eax
je 0x4f7ca4
mov ebx, eax
xor eax, eax
mov ecx, dword [esi + eax*4]
mov dword [ebx + eax*4], ecx
inc eax
cmp ebp, eax
jne 0x4f7c12
mov eax, ebp
jmp 0x4f7c26
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 0x6265e7
push 0
call dword [sym.imp.secur32.dll_AcquireCredentialsHandleA]
test eax, eax
je 0x4f7c59
and dword [edi], 0
mov dword [edi + 4], eax
jmp 0x4f7c85
mov eax, dword [esp + 8]
mov esi, dword [esp + 4]
mov dword [esp + 0xc], eax
push 0x10
pop ecx
call fcn.004f7740
mov edx, dword [esp + 0xc]
xor ecx, ecx
inc ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0xc], edx
mov dword [edi + 4], eax
mov byte [edi], 4
test ebp, ebp
je 0x4f7c97
push 4
pop edx
mov ecx, ebx
push dword [esp]
call fcn.00402e79
pop eax
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00415d70
push 4
pop ecx
mov edx, dword [esp]
call fcn.0059eab0

Function at 0x4f8116
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 0x4f8135
and dword [esi], 0
mov dword [esi + 4], eax
jmp 0x4f813e
mov eax, dword [esp]
mov dword [esi + 4], eax
mov byte [esi], 4
add esp, 4
pop esi
ret
Function at 0x4fb93d
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 0x4fb9ad
mov eax, dword [0x6663bc]
cmp eax, 3
jne 0x4fbaa4
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 0x4fb9c8
cmp word [ebp], 0
je 0x4fba21
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 0x4fba31
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 0x4fba9c
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x4fb9e0
cmp eax, 0x2726
jne 0x4fba8d
push 1
push 0
push 0
push 0
push 2
push ebx
call dword [sym.imp.ws2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x4fba87
mov edi, eax
push 0
push 1
push eax
call dword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
jne 0x4fb986
call sub.kernel32.dll_GetLastError
mov ebx, eax
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
mov eax, ebx
jmp 0x4fba8d
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 0x4fba69
mov dword [esi + 4], edi
mov byte [esi], 4
jmp 0x4fba9c
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 0x4fba9c
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.005a4cf0
jmp 0x4fb95d

Function at 0x4fbe90
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 0x4fbeb4
mov byte [esi], 4
jmp 0x4fbebf
call sub.kernel32.dll_GetLastError
and dword [esi], 0
mov dword [esi + 4], eax
pop esi
ret
Function at 0x4fd0a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x66309c]
test eax, eax
je 0x4fd158
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x4fd0cc
cmp dword [eax + 4], 0
mov edi, eax
je 0x4fd0cc
add edi, 8
jmp 0x4fd153
mov eax, dword [0x66309c]
test eax, eax
je 0x4fd167
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x4fd151
mov esi, eax
test eax, eax
jne 0x4fd127
movzx eax, byte [0x666470]
mov ecx, 0xc
mov edx, 4
call fcn.00407420
test eax, eax
je 0x4fd182
mov dword [eax], 0x66309c
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x66309c]
test eax, eax
je 0x4fd176
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, dword [esi + 8]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
je 0x4fd153
test ecx, ecx
je 0x4fd153
lock dec dword [ecx]
jne 0x4fd153
call fcn.004fcc20
jmp 0x4fd153
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x66309c
call fcn.005a4800
jmp 0x4fd0b0
mov ecx, 0x66309c
call fcn.005a4800
jmp 0x4fd0da
mov ecx, 0x66309c
call fcn.005a4800
jmp 0x4fd11f
mov ecx, 4
mov edx, 0xc
call fcn.0059eab0
int3

Function at 0x4fd680
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x6630ac]
test eax, eax
je 0x4fd704
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x4fd69f
cmp byte [eax + 4], 0
mov esi, eax
jne 0x4fd6f9
mov eax, dword [0x6630ac]
test eax, eax
je 0x4fd713
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x4fd6fe
mov esi, eax
test eax, eax
jne 0x4fd6f3
movzx eax, byte [0x666470]
mov ecx, 8
mov edx, 4
call fcn.00407420
test eax, eax
je 0x4fd72b
mov dword [eax], 0x6630ac
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0x6630ac]
test eax, eax
je 0x4fd71f
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov word [esi + 4], 1
add esi, 5
jmp 0x4fd700
xor esi, esi
mov eax, esi
pop esi
ret
mov ecx, 0x6630ac
call fcn.005a4800
jmp 0x4fd68b
mov ecx, 0x6630ac
call fcn.005a4800
jmp 0x4fd6a9
mov ecx, 0x6630ac
call fcn.005a4800
jmp 0x4fd6eb
mov ecx, 4
mov edx, 8
call fcn.0059eab0
int3