joyce8/EMBER2024-capa huggingface dataset:
Function at 0x58f5b5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
xor edi, edi
push 1
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionMultimediaMIDIMap
push connect
mov dword [ebp - 0xc], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x58f6f6
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
push edi
push str.CurrentInstrument
push dword [ebp - 4]
call esi
cmp eax, edi
je 0x58f629
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
push edi
push str.szPname
push dword [ebp - 4]
call esi
cmp eax, edi
jne 0x58f6f6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], edi
mov esi, 0x134
push esi
lea eax, [ebp - 0x140]
push edi
push eax
call fcn.005d2a00
mov eax, dword [0x6bebac]
add esp, 0xc
lea edx, [ebp - 0x140]
mov dword [ebp - 0x140], esi
mov ecx, dword [eax]
push edx
push dword [ebp - 8]
push eax
call dword [ecx + 0xc]
mov ebx, eax
cmp ebx, edi
jne 0x58f6bb
cmp dword [ebp - 0x128], 1
jne 0x58f6bb
push edi
push edi
lea eax, [ebp - 0x340]
push 0x100
push eax
lea eax, [ebp - 0x10c]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x240]
push eax
call fcn.0057bb64
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x340]
push eax
call fcn.0057bc34
add esp, 0x10
test eax, eax
je 0x58f6c9
inc dword [ebp - 8]
cmp ebx, 1
jne 0x58f63a
jmp 0x58f6e8
lea eax, [ebp - 0x138]
push 0x10
push eax
push dword [ebp + 8]
call fcn.005d26c0
mov eax, dword [0x688c20]
add esp, 0xc
test byte [eax + 8], 1
je 0x58f6f6
mov eax, dword [0x6bebac]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5901f1
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp eax, ecx
je 0x590288
mov edx, dword [eax]
push ebx
push esi
push edi
mov byte [edx + 0x16], cl
mov edx, dword [eax]
mov byte [edx + 0x17], cl
mov edx, dword [eax]
mov byte [edx + 0x18], cl
mov edx, dword [eax]
mov byte [edx + 0x19], cl
mov esi, dword [eax + 4]
xor edx, edx
cmp esi, ecx
jle 0x59023d
mov edi, dword [eax]
mov ebx, ecx
shr ebx, 0x18
movzx edi, byte [edi + edx]
xor edi, ebx
shl ecx, 8
mov edi, dword [edi*4 + 0x68df20]
xor ecx, edi
inc edx
cmp edx, esi
jl 0x59021f
xor edx, edx
cmp dword [eax + 0xc], edx
jle 0x590264
mov esi, dword [eax + 8]
movzx edi, byte [esi + edx]
mov ebx, ecx
shr ebx, 0x18
xor edi, ebx
shl ecx, 8
mov edi, dword [edi*4 + 0x68df20]
xor ecx, edi
inc edx
cmp edx, dword [eax + 0xc]
jl 0x590247
mov edx, dword [eax]
pop edi
mov byte [edx + 0x16], cl
mov esi, dword [eax]
mov edx, ecx
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [eax]
mov edx, ecx
shr edx, 0x10
mov byte [esi + 0x18], dl
mov eax, dword [eax]
shr ecx, 0x18
pop esi
mov byte [eax + 0x19], cl
pop ebx
ret
Function at 0x598729
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
cmp dword [0x6d9724], 0
jne 0x59874e
lea eax, [esp]
push eax
push 2
call sub.WSOCK32.dll_WSAStartup
mov dword [0x6d9724], 1
mov al, 1
add esp, 0x190
ret

Function at 0x59876f
Capabilities:
Create udp socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, ecx
sub eax, 0
je 0x598782
dec eax
jne 0x598785
push 2
pop ecx
jmp 0x598785
xor ecx, ecx
inc ecx
push 0
push ecx
push 2
call sub.WSOCK32.dll_socket
ret

Function at 0x59879a
Capabilities:
Connect socket
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x598805
cmp byte [esi], bl
je 0x598805
cmp dword [ebp + 0x10], ebx
je 0x598805
xor edi, edi
push 0x10
lea eax, [ebp - 0x28]
inc edi
push ebx
push eax
mov dword [ebp + 0xc], edi
call fcn.005d2a00
push 0x10
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.005d2a00
lea eax, [ebp - 0x58]
push 0x2e
push eax
push esi
call fcn.00598924
add esp, 0x24
test eax, eax
je 0x5987fc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.005988dc
pop ecx
test eax, eax
pop ecx
jne 0x59880d
push dword [ebp + 8]
call fcn.00598790
pop ecx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x24]
push 4
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.005d26c0
add esp, 0xc
mov word [ebp - 0x18], 2
push dword [ebp + 0x10]
call sub.WSOCK32.dll_htons
mov word [ebp - 0x16], ax
mov eax, dword [0x68a61c]
cdq
mov ecx, 0x3e8
mov esi, dword [ebp + 8]
idiv ecx
mov dword [ebp - 0x15c], edi
mov edi, 0x8004667e
mov dword [ebp - 0x158], esi
imul edx, edx, 0x3e8
mov dword [ebp - 8], eax
lea eax, [ebp + 0xc]
push eax
push edi
push esi
mov dword [ebp - 4], edx
call sub.WSOCK32.dll_ioctlsocket
lea eax, [ebp - 0x18]
push 0x10
push eax
push esi
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x598897
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
mov dword [ebp + 8], eax
je 0x598897
push esi
call sub.WSOCK32.dll_closesocket
mov eax, dword [ebp + 8]
jmp 0x598808
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x15c]
push ebx
push eax
push ebx
push ebx
call sub.WSOCK32.dll_select
cmp eax, ebx
mov dword [ebp + 8], eax
jg 0x5988c7
push esi
call sub.WSOCK32.dll_closesocket
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x598808
jmp 0x598805
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
push edi
push esi
call sub.WSOCK32.dll_ioctlsocket
xor eax, eax
jmp 0x598808

Function at 0x5988dc
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push str._d._d._d._d
push dword [ebp + 8]
call fcn.005d3781
add esp, 0x18
cmp eax, 4
jge 0x59890b
xor eax, eax
leave
ret
push dword [ebp + 8]
call sub.WSOCK32.dll_inet_addr
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
leave
ret
Function at 0x59aa71
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
lea eax, [ebp - 4]
push edi
mov esi, ecx
push eax
xor edi, edi
push str.software_asio
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
xor ebx, ebx
mov dword [esi + 4], edi
mov dword [esi], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x59aad9
lea ecx, [ebp - 0x84]
mov eax, ebx
push 0x80
push ecx
push eax
inc ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, edi
jne 0x59aad9
push dword [esi]
lea eax, [ebp - 0x84]
push edi
push eax
push dword [ebp - 4]
call fcn.0059ab0b
add esp, 0x10
mov dword [esi], eax
jmp 0x59aaa3
cmp dword [ebp - 4], edi
je 0x59aae7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
jmp 0x59aaf4
inc dword [esi + 4]
mov eax, dword [eax + 0x298]
cmp eax, edi
jne 0x59aaeb
cmp dword [esi + 4], edi
je 0x59ab04
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x59ab0b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3dc
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
push edi
jne 0x59ac55
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x59ac72
lea eax, [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x114]
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], 1
push eax
push esi
push str.clsid
mov dword [ebp + 8], 0x100
push dword [ebp - 4]
call edi
test eax, eax
jne 0x59ac49
lea eax, [ebp - 0x3dc]
push 0x200
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0059ac78
add esp, 0xc
test eax, eax
jne 0x59ac49
mov ebx, 0x29c
push ebx
call fcn.005eb722
mov esi, eax
pop ecx
test esi, esi
je 0x59ac49
push ebx
push 0
push esi
call fcn.005d2a00
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [esi], eax
lea eax, [ebp - 0x1dc]
push 0x64
push eax
lea eax, [ebp - 0x114]
push 0xffffffffffffffff
xor ebx, ebx
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1dc]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x59ac03
lea eax, [ebp - 0x14]
push 0x10
push eax
lea eax, [esi + 4]
push eax
call fcn.005d26c0
add esp, 0xc
lea eax, [ebp + 8]
mov dword [ebp + 0x14], 1
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp + 0x14]
push eax
push ebx
push str.description
mov dword [ebp + 8], 0x100
push dword [ebp - 4]
call edi
test eax, eax
jne 0x59ac38
lea eax, [ebp - 0x114]
push eax
jmp 0x59ac3b
push dword [ebp + 0xc]
lea eax, [esi + 0x214]
push eax
call fcn.005d2b30
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
jmp 0x59ac72
mov eax, dword [ebp + 0x10]
lea edi, [esi + 0x298]
inc eax
push dword [edi]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0059ab0b
add esp, 0x10
mov dword [edi], eax
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x59ac78
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a8
or dword [ebp - 0x18], 0xffffffff
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
call fcn.005d2640
pop ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CharLowerBuffA]
lea eax, [ebp - 8]
push eax
push str.clsid
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, edi
jne 0x59ade9
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
mov dword [ebp - 4], edi
cmp dword [ebp - 0xc], edi
jne 0x59adde
mov eax, dword [ebp - 4]
inc dword [ebp - 4]
lea ecx, [ebp - 0x2a8]
push 0x200
push ecx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, edi
jne 0x59adde
lea eax, [ebp - 0x2a8]
push eax
call fcn.005d2640
pop ecx
push eax
lea eax, [ebp - 0x2a8]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffA]
push dword [ebp + 8]
lea eax, [ebp - 0x2a8]
push eax
call fcn.005d3480
pop ecx
test eax, eax
pop ecx
jne 0x59acc5
lea eax, [ebp - 0x14]
push eax
push 0x20019
lea eax, [ebp - 0x2a8]
push edi
push eax
push dword [ebp - 8]
call ebx
mov esi, eax
cmp esi, edi
jne 0x59adcf
lea eax, [ebp - 0x10]
push eax
push 0x20019
push edi
push str.InprocServer32
push dword [ebp - 0x14]
call ebx
mov esi, eax
cmp esi, edi
jne 0x59adc6
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push dword [ebp + 0xc]
push eax
push edi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp esi, edi
jne 0x59adbd
push 0x88
lea eax, [ebp - 0xa8]
push edi
push eax
call fcn.005d2a00
add esp, 0xc
lea eax, [ebp - 0xa8]
mov byte [ebp - 0xa8], 0x88
push 0x4000
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_OpenFile]
test eax, eax
je 0x59adbd
mov dword [ebp - 0x18], edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
mov dword [ebp - 0xc], 1
je 0x59acc5
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov eax, dword [ebp - 0x18]
pop edi
leave
ret

Function at 0x5aa3c0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6dac94]
push esi
push edi
xor edi, edi
test eax, eax
je 0x5aa417
mov eax, dword [0x6eeaa0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x5aa417
push 0x95b6
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x5aa40f
push esi
call fcn.005ab6e0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, 1
pop esi
ret
mov eax, edi
pop edi
pop esi
ret
Function at 0x5aa4e0
Capabilities:
Get disk information
Get thread local storage value

Disassembly:
push ecx
mov ecx, dword [0x6eeaa0]
mov eax, dword [0x6992cc]
push ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5aa53b
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x5aa509
mov eax, 1
pop ecx
ret
mov eax, dword [esp + 8]
test eax, eax
jl 0x5aa53b
cmp eax, 0x1a
jg 0x5aa53b
test eax, eax
jne 0x5aa51f
call fcn.005be950
mov cl, byte [esp]
dec al
lea edx, [esp]
add cl, al
push edx
mov byte [esp + 4], cl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x5aa502
xor eax, eax
pop ecx
ret

Function at 0x5aa5d0
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x6eeaa0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5aa632
mov ecx, dword [eax + 0x97e]
push ebx
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
call fcn.005af900
mov bl, al
call fcn.005af900
mov byte [esp + 6], al
call fcn.005af900
mov byte [esp + 7], al
call fcn.005af900
cmp bl, 0x50
pop ebx
jne 0x5aa632
cmp byte [esp + 2], 0x4b
jne 0x5aa632
cmp byte [esp + 3], 1
jne 0x5aa632
cmp al, 2
jne 0x5aa632
mov eax, 1
pop ecx
ret
xor eax, eax
pop ecx
ret
Function at 0x5aaa70
Capabilities:
Get thread local storage value
Read file on windows

Disassembly:
push ecx
mov eax, dword [0x6eeaa0]
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x5aaaf5
mov ebp, dword [esp + 0x14]
mov edx, dword [edi + 0x97e]
lea ecx, [esp + 0xc]
push 0
lea esi, [edi + 0x8f5c]
push ecx
push ebp
push esi
push edx
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5aaaf5
cmp dword [esp + 0xc], ebp
jne 0x5aaaf5
mov byte [edi + ebp + 0x8f5c], 0
mov al, byte [edi + 0xc60]
test al, 8
je 0x5aaaed
push 0x2e
push esi
call fcn.005d1ff0
add esp, 8
test eax, eax
je 0x5aaae6
push 0x2e
push esi
mov byte [eax], 0x20
call fcn.005d1ff0
add esp, 8
test eax, eax
jne 0x5aaad4
mov byte [edi + 0x8f67], 0
push esi
push esi
call dword [sym.imp.USER32.dll_OemToCharA]
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x5aab40
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6eeaa0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x5aab58
or eax, 0xffffffff
pop esi
ret
call fcn.005aab00
push 0
push 0x8000080
push 3
push 0
push 3
lea ecx, [esi + 0x8cfc]
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x97e], eax
pop esi
ret

Function at 0x5aab90
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6eeaa0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x5aabaa
mov eax, 9
pop esi
ret
mov eax, dword [esi + 0x44]
mov dword [esi + 0x9070], 0
test eax, eax
mov dword [esi + 0x9074], 0
jne 0x5aac32
push ebx
push edi
push 0
push 0x80
push 3
push 0
lea ebx, [esi + 0x8cfc]
push 3
push connect
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x5aac19
push edi
call fcn.005b2d90
add esp, 4
mov dword [esi + 0x9070], eax
mov dword [esi + 0x9074], edx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi + 0x8f04]
push ecx
push ebx
call fcn.005b1b10
add esp, 8
mov edx, dword [esi + 0x9070]
mov eax, dword [esi + 0x9074]
or edx, eax
pop edi
pop ebx
jne 0x5aac32
mov eax, 9
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x5aac40
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6eeaa0]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x5aacae
mov ebp, dword [esp + 0x18]
lea esi, [ebx + 0x8f5c]
push ebp
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x5aacae
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.005aacc0
lea eax, [edi + eax + 0x2e]
xor edi, edi
mov di, word [ebx + 0xc56]
add esp, 8
lea ecx, [edi + 1]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
push esi
mov byte [edi + esi], 0
call dword [sym.imp.USER32.dll_OemToCharA]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x5aada0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6eeaa0]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x5aadc7
mov ecx, dword [esp + 0x10]
mov eax, 4
mov dword [ecx + 0x4c], edi
pop edi
pop esi
pop ebx
ret
lea edx, [esi + 0x318]
mov dword [esi + 0x98e], edi
push edx
call fcn.005af500
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x5aae09
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x28]
push eax
push 2
push 0x66
call fcn.005b1da0
add esp, 8
push eax
push ebx
call fcn.005aa420
add esp, 0xc
mov dword [esi + 0x4c], edi
mov eax, ebx
pop edi
pop esi
pop ebx
ret
push edi
call fcn.005af6a0
add esp, 4
mov dword [esi + 0x976], edi
cmp eax, edi
mov dword [esi + 0x98a], eax
mov dword [esi + 0x97a], edi
je 0x5aae87
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x28]
mov dword [eax + 0x4c], edi
push ecx
push 2
push 0x67
call fcn.005b1da0
mov edx, dword [esi + 0x98a]
add esp, 8
push eax
push edx
call fcn.005aa420
mov eax, dword [esi + 0x8ce2]
add esp, 0xc
mov dword [esi + 0x976], edi
cmp eax, edi
mov dword [esi + 0x97a], edi
je 0x5aae74
push eax
call fcn.005cebb0
add esp, 4
mov dword [esi + 0x8ce2], edi
mov eax, dword [esi + 0x8f50]
cmp eax, edi
je 0x5aaf28
jmp 0x5aaf19
cmp dword [esi + 0x34], edi
je 0x5aaeda
mov ebx, dword [esp + 0x10]
mov dword [ebx + 0x4c], edi
call fcn.005ab410
cmp eax, edi
mov dword [esi + 0x98a], eax
jne 0x5aaec9
push ebp
lea ebp, [esi + 0x8f5c]
push ebp
call fcn.005b03b0
add esp, 4
test eax, eax
jne 0x5aaeb9
inc dword [ebx + 0x4c]
call fcn.005ab410
cmp eax, edi
mov dword [esi + 0x98a], eax
je 0x5aaea9
pop ebp
cmp dword [esi + 0x98a], 2
jne 0x5aaeea
mov dword [esi + 0x98a], edi
jmp 0x5aaeea
mov ecx, dword [esp + 0x10]
xor eax, eax
mov ax, word [esi + 0xc2a]
mov dword [ecx + 0x4c], eax
mov eax, dword [esi + 0x8ce2]
mov dword [esi + 0x976], edi
cmp eax, edi
mov dword [esi + 0x97a], edi
je 0x5aaf0f
push eax
call fcn.005cebb0
add esp, 4
mov dword [esi + 0x8ce2], edi
mov eax, dword [esi + 0x8f50]
cmp eax, edi
je 0x5aaf28
push eax
call fcn.005cebb0
add esp, 4
mov dword [esi + 0x8f50], edi
mov eax, dword [esi + 0x98a]
pop edi
pop esi
pop ebx
ret
Function at 0x5aaf40
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6eeaa0]
sub esp, 0x138
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x5aaf72
mov ecx, dword [esp + 0x148]
pop edi
pop esi
pop ebx
mov dword [ecx + 0x4c], eax
mov eax, 4
add esp, 0x138
ret
mov esi, dword [esp + 0x148]
add eax, 0x318
test eax, eax
mov edi, dword [esi + 0x10]
je 0x5ab06a
test edi, edi
je 0x5ab06a
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call ebx
test eax, eax
je 0x5ab040
push edi
call ebx
test eax, eax
je 0x5ab040
push esi
call fcn.005aada0
add esp, 4
test eax, eax
jne 0x5ab08a
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x5aafd1
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x138
ret
lea edx, [esp + 0xc]
push esi
xor ebx, ebx
mov dword [esi + 0xc], edx
call fcn.005abdb0
mov edi, eax
add esp, 4
test edi, edi
jne 0x5aaff9
push esi
inc ebx
call fcn.005abdb0
mov edi, eax
add esp, 4
test edi, edi
je 0x5aafe9
cmp edi, 0x30
je 0x5ab02a
cmp edi, 2
push esi
jne 0x5ab022
call fcn.005aada0
add esp, 4
mov edi, eax
mov dword [esi + 0x4c], ebx
mov dword [esi + 0xc], 0
pop edi
pop esi
pop ebx
add esp, 0x138
ret
call fcn.005aada0
add esp, 4
mov eax, edi
mov dword [esi + 0x4c], ebx
mov dword [esi + 0xc], 0
pop edi
pop esi
pop ebx
add esp, 0x138
ret
mov eax, dword [esi + 0x28]
push eax
push 2
push 0x69
call fcn.005b1da0
add esp, 8
push eax
push 0xb
call fcn.005aa420
add esp, 0xc
mov eax, 0x2f
pop edi
pop esi
pop ebx
add esp, 0x138
ret
mov ecx, dword [esi + 0x28]
push ecx
push 2
push 0x68
call fcn.005b1da0
add esp, 8
push eax
push 0xb
call fcn.005aa420
add esp, 0xc
mov eax, 0xb
pop edi
pop esi
pop ebx
add esp, 0x138
ret
Function at 0x5ac680
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6eeaa0]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x5ac6a0
pop edi
pop esi
mov eax, 4
pop ebx
ret
lea eax, [esi + 0x318]
cmp eax, ebx
jne 0x5ac6d5
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x28]
mov dword [eax + 0x4c], ebx
push ecx
push 2
push 0x71
call fcn.005b1da0
add esp, 8
push eax
push 0x2f
call fcn.005aa420
add esp, 0xc
mov eax, 0x2f
pop edi
pop esi
pop ebx
ret
push eax
call fcn.005af500
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x5ac70b
mov esi, dword [esp + 0x10]
mov edx, dword [esi + 0x28]
push edx
push 2
push 0x6c
call fcn.005b1da0
add esp, 8
push eax
push edi
call fcn.005aa420
add esp, 0xc
mov eax, edi
mov dword [esi + 0x4c], ebx
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0x8ce2]
cmp eax, ebx
je 0x5ac724
push eax
call fcn.005cebb0
add esp, 4
mov dword [esi + 0x8ce2], ebx
mov eax, dword [esi + 0x8f50]
cmp eax, ebx
je 0x5ac73d
push eax
call fcn.005cebb0
add esp, 4
mov dword [esi + 0x8f50], ebx
push 1
call fcn.005af6a0
add esp, 4
cmp eax, ebx
mov dword [esi + 0x98a], eax
je 0x5ac782
mov eax, dword [esp + 0x10]
mov dword [eax + 0x4c], ebx
mov eax, dword [eax + 0x28]
push eax
push 2
push 0x72
call fcn.005b1da0
mov ecx, dword [esi + 0x98a]
add esp, 8
push eax
push ecx
call fcn.005aa420
mov eax, dword [esi + 0x98a]
add esp, 0xc
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x10]
xor edx, edx
mov dx, word [esi + 0xc34]
pop edi
mov dword [eax + 0x4c], edx
pop esi
xor eax, eax
pop ebx
ret
Function at 0x5ace00
Capabilities:
Encode data using xor
Get thread local storage value

Disassembly:
mov eax, dword [0x6eeaa0]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x5ace1c
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
lea ecx, [ebx + 0xc88]
push ebp
push ecx
call fcn.005b3190
mov ebp, dword [esp + 0x18]
add esp, 4
xor edi, edi
call fcn.005b30e0
xor edx, edx
mov esi, eax
mov dl, byte [edi + ebp]
xor esi, edx
push esi
call fcn.005b3110
add esp, 4
inc edi
cmp edi, 0xc
jl 0x5ace32
mov al, byte [ebx + 0xafc]
pop ebp
test al, 8
je 0x5ace68
xor eax, eax
mov ax, word [ebx + 0xb00]
shr eax, 8
jmp 0x5ace7d
mov eax, dword [ebx + 0xc4a]
xor ecx, ecx
shr eax, 0x10
mov cl, ah
and ecx, 0xff
mov eax, ecx
and esi, 0xffff
cmp esi, eax
je 0x5ace8e
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [ebx + 0x8cea]
mov ecx, dword [ebx + 0xab2]
cmp eax, ecx
jbe 0x5acea0
mov eax, ecx
mov esi, dword [ebx + 0x8ce6]
mov edx, eax
dec eax
test edx, edx
je 0x5acecc
lea edi, [eax + 1]
call fcn.005b30e0
mov ebx, eax
xor eax, eax
mov al, byte [esi]
xor ebx, eax
push ebx
call fcn.005b3110
add esp, 4
mov byte [esi], bl
inc esi
dec edi
jne 0x5aceb0
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x5acee0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6eeaa0]
sub esp, 0x10
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x5acf00
mov eax, 4
pop edi
add esp, 0x10
ret
push esi
mov dword [edi + 0xc84], 0
xor esi, esi
lea ecx, [esp + 0xa]
push edi
push ecx
call fcn.005b2330
mov dl, byte [esp + 0x12]
add esp, 8
mov byte [esp + esi + 0xc], dl
inc esi
cmp esi, 0xc
jl 0x5acf0d
mov al, byte [edi + 0xc88]
mov dword [edi + 0xc84], 1
test al, al
pop esi
je 0x5acf54
lea eax, [esp + 8]
push eax
call fcn.005ace00
add esp, 4
test eax, eax
jne 0x5acf54
pop edi
add esp, 0x10
ret
mov eax, 0x2c
pop edi
add esp, 0x10
ret
Function at 0x5ad220
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6eeaa0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x5ad23a
mov eax, 9
pop esi
ret
mov ecx, dword [esp + 8]
push 0
push 0x8000080
push 3
push 0
push 3
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor edx, edx
cmp eax, 0xffffffff
setne dl
dec edx
mov dword [esi + 0x8cf8], eax
and edx, 9
pop esi
mov eax, edx
ret