joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dec0
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 0x40df10
cmp esi, edi
ja 0x40df78
cmp edi, dword [esp + 0x1c]
ja 0x40df8b
add esi, dword [esp + 0x18]
nop word [eax + eax]
test ebx, ebx
je 0x40df12
dec ebx
cmp byte [esi], cl
lea esi, [esi + 1]
jne 0x40df00
jmp 0x40df6f
ja 0x40df18
cmp eax, edx
mov esi, edi
jne 0x40ded3
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 0x40df50
mov ebp, esi
sub ecx, edx
jns 0x40df67
jmp 0x40df71
cmp esi, edi
je 0x40dfa0
movzx esi, byte [ebp + 1]
and edx, 0x7f
add ebp, 2
shl edx, 8
or edx, esi
sub ecx, edx
js 0x40df71
xor al, 1
cmp ebp, edi
jne 0x40df30
jmp 0x40df71
xor eax, eax
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, edi
push 0x498bf8
call fcn.00493d80
add esp, 4
ud2
mov edx, dword [esp + 0x1c]
mov ecx, edi
push 0x498bf8
call fcn.00493b70
add esp, 4
ud2
mov ecx, str.called__Option::unwrap____on_a__None__value
mov edx, 0x2b
push 0x498be8
call fcn.00493be0
add esp, 4
ud2
Function at 0x42845c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x134
mov edi, dword [esp + 0x14c]
mov ebx, dword [esp + 0x148]
call fcn.00428479

Function at 0x42cef8
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, ecx
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x1c]
lea ebx, [esp + 0xc]
mov dword [eax], edx
add ecx, edx
mov edx, eax
mov dword [eax + 4], ecx
and word [eax + 8], 0
mov ecx, ebx
call fcn.0042d089
mov edx, dword [ebx + 8]
mov edi, dword [ebx]
xor ecx, ecx
lea eax, [edx + edx]
cmp eax, ecx
je 0x42cf5c
cmp word [edi + ecx], 0
lea ecx, [ecx + 2]
jne 0x42cf2c
lea ecx, [esp + 4]
push 0x14
pop edx
push 0x19
push str.path_contains_NUL_byte_s_librarypanic_abort_srclib.rs
call fcn.0042cce8
pop eax
pop ecx
mov edx, dword [esp + 0x10]
mov ecx, edi
call fcn.0044d9d0
jmp 0x42cfd9
cmp edx, dword [esp + 0x10]
jne 0x42cf72
lea ebx, [esp + 0xc]
mov ecx, ebx
call fcn.0042cd83
mov edi, dword [ebx]
mov edx, dword [ebx + 8]
and word [edi + edx*2], 0
inc edx
movsd xmm0, qword [esp + 0xc]
mov dword [esp + 8], edx
movsd qword [esp], xmm0
mov edi, dword [esp]
test edi, edi
je 0x42cfd9
mov eax, dword [esp + 4]
mov ebp, str.open
lea edx, [esp + 0x1c]
lea ecx, str.path_contains_NUL_byte_s_librarypanic_abort_srclib.rs
mov ebx, dword [esp]
mov dword [edx], ebp
mov dword [edx + 4], ecx
and word [edx + 8], 0
lea ebp, [esp + 0xc]
mov ecx, ebp
mov dword [esp + 0x18], eax
call fcn.0042d089
mov ebp, dword [ebp]
push 5
push 0
push 0
push ebx
push ebp
push 0
call sub.SHELL32.dll_ShellExecuteW
cmp eax, 0x20
jle 0x42cfec
push 3
pop eax
jmp 0x42cffb
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
and dword [esi], 0
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
jmp 0x42d013
call dword [sym.imp.KERNEL32.dll_GetLastError]
and dword [esi + 4], 0
mov dword [esi + 8], eax
xor eax, eax
mov edx, dword [esp + 0x10]
mov ecx, ebp
mov dword [esi], eax
call fcn.0044d9d0
mov edx, dword [esp + 0x18]
mov ecx, edi
call fcn.0044d9d0
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x42da04
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov ebp, dword [0x4eb170]
mov esi, ecx
test ebp, ebp
jne 0x42db02
push str.api_ms_win_core_synch_l1_2_0.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x42da59
mov ebx, eax
push str.WaitOnAddress
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42da59
mov edi, eax
push str.WakeByAddressSingle
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42da59
mov ebx, eax
mov dword [esp], 0
jmp 0x42dac3
push 0x4b7bf0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x42db10
mov edi, eax
push str.NtCreateKeyedEvent
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42db10
mov ebp, eax
push str.NtReleaseKeyedEvent
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42db10
mov ebx, eax
push str.NtWaitForKeyedEvent
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42db10
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 0x42db10
mov ebx, dword [esp + 4]
push 0xc
pop ecx
call fcn.0042d9e5
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 [0x4eb170], ebp
je 0x42db02
cmp dword [ebp], 0
mov edi, eax
je 0x42daf6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 4
pop edx
mov ecx, ebp
call fcn.00407250
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:UsersAdministrator.cargo_registry_srcindex.crates.io_1cd66030c949c28dparking_lot_core_0.9.9_src_thread_parkerwindowsmod.rs
push 0x4b7cfc
call fcn.00494b11
pop eax
ud2
Function at 0x449d71
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 0x449eda
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 0x449de6
cmp eax, 2
jne 0x449ef8
lea ecx, [esp + 0x38]
jmp 0x449ed5
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.00439b09
test eax, eax
je 0x449ed1
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 0x449e66
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.00411082
mov edx, dword [esp + 8]
lea ecx, [eax + 0x64]
push edi
call fcn.0044a9ba
pop eax
mov ecx, esi
call fcn.0041109a
cmp dword [eax + 0x3c], 0
jle 0x449ecd
lea edx, [esp + 0xc]
mov ecx, ebx
call fcn.0041228a
mov bl, 1
jmp 0x449edc
lea ecx, [esp + 0x18]
call fcn.004367fc
xor ebx, ebx
lea esi, [esp + 0x70]
mov ecx, esi
call fcn.0041230e
mov ecx, esi
call fcn.00437a9f
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 0x4b92b4
call fcn.00494b11
pop eax
ud2
Function at 0x4506c0
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 + 0x58]
mov edx, dword [edx + 0x60]
push 0x4bbee0
push dword [edi + 0x50]
call fcn.004504aa
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 0x4507fb
test eax, eax
je 0x45078f
cmp eax, 0x90317
je 0x4507f4
cmp eax, 0x90321
jne 0x450808
mov dword [edi + 0x20], 0x10000
mov byte [edi + 0x24], 0
xor eax, eax
cmp dword [esp + 0x28], 5
mov edx, dword [edi + 0x50]
jne 0x45077a
mov eax, dword [esp + 0x24]
sub edx, eax
mov ecx, edi
call fcn.00450675
and dword [edi + 0xa0], 0
jmp 0x450819
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x58]
mov ebp, dword [esp + 0xc]
mov edx, dword [edi + 0x60]
and dword [edi + 0x48], 0
lea ebx, [edi + 0x40]
sub eax, ecx
add ebp, eax
push ebp
push eax
call fcn.00450831
pop ecx
pop ecx
mov ebp, edx
mov edx, eax
mov ecx, ebx
add ebp, eax
push ebp
call fcn.00408d0c
pop eax
and dword [edi + 0x3c], 0
and dword [edi + 0x38], 0
xor eax, eax
cmp dword [esp + 0x28], 5
mov edx, dword [edi + 0x50]
jne 0x4507d8
mov eax, dword [esp + 0x24]
sub edx, eax
mov ecx, edi
call fcn.00450675
mov eax, dword [edi + 0x50]
xor ecx, ecx
or eax, dword [edi + 0x54]
sete cl
mov dword [edi + 0xa0], ecx
jmp 0x450819
mov word [esi], 0x104
jmp 0x45081e
cmp dword [esp + 0x10], 4
jne 0x450810
mov eax, dword [esp + 0xc]
jmp 0x450813
and dword [esi], 0
mov dword [esi + 4], eax
jmp 0x45081e
xor eax, eax
inc eax
mov dword [edi + 0xa0], eax
mov word [esi], 4
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x450a87
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 + 0x100]
mov edx, dword [edx + 0x108]
push 0x4bbee0
push dword [edi + 0xf8]
call fcn.004504aa
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 0x450bef
test eax, eax
je 0x450b68
cmp eax, 0x90317
je 0x450be8
cmp eax, 0x90321
jne 0x450bfc
mov dword [edi + 0xc8], 0x10000
mov byte [edi + 0xcc], 0
xor eax, eax
cmp dword [esp + 0x28], 5
mov edx, dword [edi + 0xf8]
jne 0x450b53
mov eax, dword [esp + 0x24]
sub edx, eax
mov ecx, edi
call fcn.00450a30
and dword [edi + 0x148], 0
jmp 0x450c0d
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x100]
mov ebp, dword [esp + 0xc]
mov edx, dword [edi + 0x108]
and dword [edi + 0xf0], 0
lea ebx, [edi + 0xe8]
sub eax, ecx
add ebp, eax
push ebp
push eax
call fcn.00450831
pop ecx
pop ecx
mov ebp, edx
mov edx, eax
mov ecx, ebx
add ebp, eax
push ebp
call fcn.00408d0c
pop eax
and dword [edi + 0xe4], 0
and dword [edi + 0xe0], 0
xor eax, eax
cmp dword [esp + 0x28], 5
mov edx, dword [edi + 0xf8]
jne 0x450bc6
mov eax, dword [esp + 0x24]
sub edx, eax
mov ecx, edi
call fcn.00450a30
mov eax, dword [edi + 0xf8]
xor ecx, ecx
or eax, dword [edi + 0xfc]
sete cl
mov dword [edi + 0x148], ecx
jmp 0x450c0d
mov word [esi], 0x104
jmp 0x450c12
cmp dword [esp + 0x10], 4
jne 0x450c04
mov eax, dword [esp + 0xc]
jmp 0x450c07
and dword [esi], 0
mov dword [esi + 4], eax
jmp 0x450c12
xor eax, eax
inc eax
mov dword [edi + 0x148], eax
mov word [esi], 4
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x46b015
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov ebp, edx
mov edx, dword [esp + 0x38]
lea edi, [esp + 0x18]
mov dword [esp + 4], ecx
mov ecx, edi
push 0xb
call fcn.0046b105
pop eax
mov eax, esp
mov ecx, 0x800
mov dword [eax], 0x800
lea eax, [esp + 8]
and dword [eax], 0
call fcn.0047324e
lea esi, [esp + 0xc]
mov edi, dword [edi]
mov ebx, eax
mov dword [esi], eax
mov dword [esi + 4], edx
and dword [esi + 8], 0
mov eax, esp
push eax
push ebx
lea eax, [esp + 0x10]
push eax
push 0
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x46b088
mov edx, dword [esp]
mov ecx, esi
call fcn.00408d3d
mov ebx, dword [esp + 0xc]
jmp 0x46b05e
test eax, eax
jne 0x46b0a7
mov eax, dword [esp]
mov edx, dword [esp + 4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 8]
cmp eax, 0xb
jbe 0x46b0c3
mov eax, 0xde
jmp 0x46b0ab
mov edx, dword [esp + 4]
xor ecx, ecx
mov dword [edx], ecx
mov dword [edx + 4], eax
mov byte [edx + 0xc], 0xc
mov edx, dword [esp + 0x10]
mov ecx, ebx
call fcn.00452d23
jmp 0x46b0d7
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 edx, dword [esp + 0x1c]
mov ecx, edi
call fcn.0044d9d0
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x472abb
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [edx + 0xc]
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
mov dword [esp + 0x10], 4
mov dword [esp], ecx
mov dword [esp + 0x40], 0x400010
test eax, eax
je 0x472b23
mov ecx, dword [edx + 0x14]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 0x18]
test eax, eax
je 0x472b45
mov edi, dword [edx + 0x20]
xor ecx, ecx
test edi, edi
je 0x472b41
movzx esi, byte [eax]
inc eax
or ecx, dword [esi*4 + 0x4e7810]
dec edi
jne 0x472b33
mov dword [esp + 0x30], ecx
mov ebp, dword [edx + 8]
lea edi, [ebp*4]
test ebp, ebp
je 0x472b86
cmp ebp, 0x20000000
jae 0x472c0f
mov esi, dword [edx]
push 4
pop ecx
mov edx, edi
call fcn.004826eb
test eax, eax
je 0x472c16
mov ebx, eax
xor eax, eax
mov ecx, dword [esi + eax*4]
mov dword [ebx + eax*4], ecx
inc eax
cmp ebp, eax
jne 0x472b77
mov eax, ebp
jmp 0x472b8b
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 str.Microsoft_Unified_Security_Protocol_Provider
push 0
call dword [sym.imp.secur32.dll_AcquireCredentialsHandleA]
test eax, eax
je 0x472bc1
mov ecx, dword [esp]
and dword [ecx], 0
mov dword [ecx + 4], eax
jmp 0x472bf7
mov dword [esp + 0xc], edi
mov esi, dword [esp + 4]
mov edi, dword [esp + 8]
push 4
pop ecx
push 0x10
pop edx
call fcn.004826eb
test eax, eax
je 0x472c1d
xor ecx, ecx
mov edx, dword [esp]
inc ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
mov edi, dword [esp + 0xc]
mov dword [edx + 4], eax
mov byte [edx], 4
test ebp, ebp
je 0x472c07
push 4
pop edx
mov ecx, ebx
push edi
call fcn.00481bd8
pop eax
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00407310
ud2
push 4
pop ecx
mov edx, edi
jmp 0x472c23
push 4
pop ecx
push 0x10
pop edx
call fcn.00493860
ud2

Function at 0x473098
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 0x4730b7
and dword [esi], 0
mov dword [esi + 4], eax
jmp 0x4730c0
mov eax, dword [esp]
mov dword [esi + 4], eax
mov byte [esi], 4
add esp, 4
pop esi
ret

Function at 0x47332e
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 0x473352
mov byte [esi], 4
jmp 0x47335e
call dword [sym.imp.KERNEL32.dll_GetLastError]
and dword [esi], 0
mov dword [esi + 4], eax
pop esi
ret
Function at 0x473360
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 0x4733d0
mov eax, dword [0x4eb1dc]
cmp eax, 3
jne 0x4734c8
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 0x4733eb
cmp word [ebp], 0
je 0x473445
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 0x473455
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 0x4734c0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x473403
cmp eax, 0x2726
jne 0x4734b1
push 1
push 0
push 0
push 0
push 2
push ebx
call dword [sym.imp.WS2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x4734ab
mov edi, eax
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x4733a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebx
jmp 0x4734b1
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 0x47348d
mov dword [esi + 4], edi
mov byte [esi], 4
jmp 0x4734c0
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 0x4734c0
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.00496270
jmp 0x473380
Function at 0x473950
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], 0x492550
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0x4eb1e4]
test al, al
je 0x473b21
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x47399c
cmp eax, 3
jne 0x473b1a
mov ebx, dword [0x4eb1e8]
test ebx, ebx
je 0x473b1a
mov dword [ebp - 0x20], 0
jmp 0x4739c7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4739f8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x473b6b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4739c0
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 0x4739c0
test byte [ebp - 0x20], 1
je 0x473b1a
mov ebx, dword [0x4eb1e8]
test ebx, ebx
je 0x473b1a
mov dword [ebp - 0x20], 0
jmp 0x473a27
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x473a58
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x473b6b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x473a20
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 0x473a20
test byte [ebp - 0x20], 1
je 0x473b1a
mov ebx, dword [0x4eb1e8]
test ebx, ebx
je 0x473b1a
mov dword [ebp - 0x20], 0
jmp 0x473a87
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x473ab8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x473b6b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x473a80
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 0x473a80
test byte [ebp - 0x20], 1
je 0x473b1a
mov ebx, dword [0x4eb1e8]
test ebx, ebx
je 0x473b1a
mov dword [ebp - 0x20], 0
jmp 0x473ae7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x473b14
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x473b6b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x473ae0
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 0x473ae0
test byte [ebp - 0x20], 1
jne 0x473b34
movzx eax, byte [0x4e7980]
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 [0x4eb1e8]
jmp 0x473b3f
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x473b1a
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x473b6b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x473b3c
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x473b3c
mov dword [ebp - 0x10], 0
mov ecx, str.called__Option::unwrap____on_a__None__value
mov edx, 0x2b
push 0x4bfab8
call fcn.00493be0
add esp, 4
ud2
Function at 0x474460
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, 0x1c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4925d0
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [0x4eb05c]
test eax, eax
je 0x474565
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x4744b7
cmp dword [eax + 4], 0
mov edi, eax
je 0x4744b7
add edi, 8
jmp 0x474552
mov eax, dword [0x4eb05c]
test eax, eax
je 0x474574
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x474550
mov esi, eax
test eax, eax
jne 0x474526
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0x4eb05c
mov ecx, 0xc
mov edx, 4
movzx eax, byte [0x4eb238]
call fcn.004071f0
test eax, eax
je 0x47458f
mov esi, eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 8], eax
movsd xmm0, qword [ebp - 0x28]
movsd qword [esi], xmm0
mov eax, dword [0x4eb05c]
test eax, eax
je 0x474583
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 0x474552
test ecx, ecx
je 0x474552
lock dec dword [ecx]
jne 0x474552
call fcn.004745f0
jmp 0x474552
xor edi, edi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x4eb05c
call fcn.00495db0
jmp 0x47449b
mov ecx, 0x4eb05c
call fcn.00495db0
jmp 0x4744c5
mov ecx, 0x4eb05c
call fcn.00495db0
jmp 0x47451e
mov ecx, 4
mov edx, 0xc
mov dword [ebp - 0x10], 0
call fcn.00493860
ud2