joyce8/EMBER2024-capa huggingface dataset:
Function at 0x58ecb8
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 0x58edf9
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 0x58ed2c
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 0x58edf9
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.005d2100
mov eax, dword [0x6bdccc]
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 0x58edbe
cmp dword [ebp - 0x128], 1
jne 0x58edbe
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.0057b264
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x340]
push eax
call fcn.0057b334
add esp, 0x10
test eax, eax
je 0x58edcc
inc dword [ebp - 8]
cmp ebx, 1
jne 0x58ed3d
jmp 0x58edeb
lea eax, [ebp - 0x138]
push 0x10
push eax
push dword [ebp + 8]
call fcn.005d1dc0
mov eax, dword [0x687d48]
add esp, 0xc
test byte [eax + 8], 1
je 0x58edf9
mov eax, dword [0x6bdccc]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x58f8f4
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp eax, ecx
je 0x58f98b
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 0x58f940
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 + 0x68d048]
xor ecx, edi
inc edx
cmp edx, esi
jl 0x58f922
xor edx, edx
cmp dword [eax + 0xc], edx
jle 0x58f967
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 + 0x68d048]
xor ecx, edi
inc edx
cmp edx, dword [eax + 0xc]
jl 0x58f94a
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 0x597e09
Capabilities:
Initialize winsock library

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

Function at 0x597e4f
Capabilities:
Create udp socket

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

Function at 0x597e7a
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 0x597ee5
cmp byte [esi], bl
je 0x597ee5
cmp dword [ebp + 0x10], ebx
je 0x597ee5
xor edi, edi
push 0x10
lea eax, [ebp - 0x28]
inc edi
push ebx
push eax
mov dword [ebp + 0xc], edi
call fcn.005d2100
push 0x10
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.005d2100
lea eax, [ebp - 0x58]
push 0x2e
push eax
push esi
call fcn.00598004
add esp, 0x24
test eax, eax
je 0x597edc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00597fbc
pop ecx
test eax, eax
pop ecx
jne 0x597eed
push dword [ebp + 8]
call fcn.00597e70
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.005d1dc0
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 [0x689744]
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 0x597f77
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
mov dword [ebp + 8], eax
je 0x597f77
push esi
call sub.WSOCK32.dll_closesocket
mov eax, dword [ebp + 8]
jmp 0x597ee8
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 0x597fa7
push esi
call sub.WSOCK32.dll_closesocket
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x597ee8
jmp 0x597ee5
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
push edi
push esi
call sub.WSOCK32.dll_ioctlsocket
xor eax, eax
jmp 0x597ee8

Function at 0x597fbc
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.005d2e81
add esp, 0x18
cmp eax, 4
jge 0x597feb
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 0x59a151
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 0x59a1b9
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 0x59a1b9
push dword [esi]
lea eax, [ebp - 0x84]
push edi
push eax
push dword [ebp - 4]
call fcn.0059a1eb
add esp, 0x10
mov dword [esi], eax
jmp 0x59a183
cmp dword [ebp - 4], edi
je 0x59a1c7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
jmp 0x59a1d4
inc dword [esi + 4]
mov eax, dword [eax + 0x298]
cmp eax, edi
jne 0x59a1cb
cmp dword [esi + 4], edi
je 0x59a1e4
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x59a1eb
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 0x59a335
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 0x59a352
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 0x59a329
lea eax, [ebp - 0x3dc]
push 0x200
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0059a358
add esp, 0xc
test eax, eax
jne 0x59a329
mov ebx, 0x29c
push ebx
call fcn.005eae36
mov esi, eax
pop ecx
test esi, esi
je 0x59a329
push ebx
push 0
push esi
call fcn.005d2100
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 0x59a2e3
lea eax, [ebp - 0x14]
push 0x10
push eax
lea eax, [esi + 4]
push eax
call fcn.005d1dc0
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 0x59a318
lea eax, [ebp - 0x114]
push eax
jmp 0x59a31b
push dword [ebp + 0xc]
lea eax, [esi + 0x214]
push eax
call fcn.005d2230
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
jmp 0x59a352
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.0059a1eb
add esp, 0x10
mov dword [edi], eax
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x59a358
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.005d1d40
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 0x59a4c9
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
mov dword [ebp - 4], edi
cmp dword [ebp - 0xc], edi
jne 0x59a4be
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 0x59a4be
lea eax, [ebp - 0x2a8]
push eax
call fcn.005d1d40
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.005d2b80
pop ecx
test eax, eax
pop ecx
jne 0x59a3a5
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 0x59a4af
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 0x59a4a6
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 0x59a49d
push 0x88
lea eax, [ebp - 0xa8]
push edi
push eax
call fcn.005d2100
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 0x59a49d
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 0x59a3a5
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 0x5a9ab0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6d9db4]
push esi
push edi
xor edi, edi
test eax, eax
je 0x5a9b07
mov eax, dword [0x6edbc0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x5a9b07
push 0x95b6
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x5a9aff
push esi
call fcn.005aadd0
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 0x5a9bd0
Capabilities:
Get disk information
Get thread local storage value

Disassembly:
push ecx
mov ecx, dword [0x6edbc0]
mov eax, dword [0x6983ec]
push ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5a9c2b
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x5a9bf9
mov eax, 1
pop ecx
ret
mov eax, dword [esp + 8]
test eax, eax
jl 0x5a9c2b
cmp eax, 0x1a
jg 0x5a9c2b
test eax, eax
jne 0x5a9c0f
call fcn.005bdce0
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 0x5a9bf2
xor eax, eax
pop ecx
ret

Function at 0x5a9cc0
Capabilities:
Get thread local storage value

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

Disassembly:
push ecx
mov eax, dword [0x6edbc0]
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x5aa1e5
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 0x5aa1e5
cmp dword [esp + 0xc], ebp
jne 0x5aa1e5
mov byte [edi + ebp + 0x8f5c], 0
mov al, byte [edi + 0xc60]
test al, 8
je 0x5aa1dd
push 0x2e
push esi
call fcn.005d16f0
add esp, 8
test eax, eax
je 0x5aa1d6
push 0x2e
push esi
mov byte [eax], 0x20
call fcn.005d16f0
add esp, 8
test eax, eax
jne 0x5aa1c4
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 0x5aa230
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6edbc0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x5aa248
or eax, 0xffffffff
pop esi
ret
call fcn.005aa1f0
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 0x5aa280
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6edbc0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x5aa29a
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 0x5aa322
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 0x5aa309
push edi
call fcn.005b2050
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.005b1130
add esp, 8
mov edx, dword [esi + 0x9070]
mov eax, dword [esi + 0x9074]
or edx, eax
pop edi
pop ebx
jne 0x5aa322
mov eax, 9
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x5aa330
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6edbc0]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x5aa39e
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 0x5aa39e
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.005aa3b0
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 0x5aa490
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6edbc0]
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 0x5aa4b7
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.005aebf0
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x5aa4f9
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x28]
push eax
push 2
push 0x66
call fcn.005b13c0
add esp, 8
push eax
push ebx
call fcn.005a9b10
add esp, 0xc
mov dword [esi + 0x4c], edi
mov eax, ebx
pop edi
pop esi
pop ebx
ret
push edi
call fcn.005aed90
add esp, 4
mov dword [esi + 0x976], edi
cmp eax, edi
mov dword [esi + 0x98a], eax
mov dword [esi + 0x97a], edi
je 0x5aa577
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x28]
mov dword [eax + 0x4c], edi
push ecx
push 2
push 0x67
call fcn.005b13c0
mov edx, dword [esi + 0x98a]
add esp, 8
push eax
push edx
call fcn.005a9b10
mov eax, dword [esi + 0x8ce2]
add esp, 0xc
mov dword [esi + 0x976], edi
cmp eax, edi
mov dword [esi + 0x97a], edi
je 0x5aa564
push eax
call fcn.005ce291
add esp, 4
mov dword [esi + 0x8ce2], edi
mov eax, dword [esi + 0x8f50]
cmp eax, edi
je 0x5aa618
jmp 0x5aa609
cmp dword [esi + 0x34], edi
je 0x5aa5ca
mov ebx, dword [esp + 0x10]
mov dword [ebx + 0x4c], edi
call fcn.005aab00
cmp eax, edi
mov dword [esi + 0x98a], eax
jne 0x5aa5b9
push ebp
lea ebp, [esi + 0x8f5c]
push ebp
call fcn.005afaa0
add esp, 4
test eax, eax
jne 0x5aa5a9
inc dword [ebx + 0x4c]
call fcn.005aab00
cmp eax, edi
mov dword [esi + 0x98a], eax
je 0x5aa599
pop ebp
cmp dword [esi + 0x98a], 2
jne 0x5aa5da
mov dword [esi + 0x98a], edi
jmp 0x5aa5da
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 0x5aa5ff
push eax
call fcn.005ce291
add esp, 4
mov dword [esi + 0x8ce2], edi
mov eax, dword [esi + 0x8f50]
cmp eax, edi
je 0x5aa618
push eax
call fcn.005ce291
add esp, 4
mov dword [esi + 0x8f50], edi
mov eax, dword [esi + 0x98a]
pop edi
pop esi
pop ebx
ret
Function at 0x5aa630
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6edbc0]
sub esp, 0x138
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x5aa662
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 0x5aa75a
test edi, edi
je 0x5aa75a
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call ebx
test eax, eax
je 0x5aa730
push edi
call ebx
test eax, eax
je 0x5aa730
push esi
call fcn.005aa490
add esp, 4
test eax, eax
jne 0x5aa77a
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x5aa6c1
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.005ab4a0
mov edi, eax
add esp, 4
test edi, edi
jne 0x5aa6e9
push esi
inc ebx
call fcn.005ab4a0
mov edi, eax
add esp, 4
test edi, edi
je 0x5aa6d9
cmp edi, 0x30
je 0x5aa71a
cmp edi, 2
push esi
jne 0x5aa712
call fcn.005aa490
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.005aa490
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.005b13c0
add esp, 8
push eax
push 0xb
call fcn.005a9b10
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.005b13c0
add esp, 8
push eax
push 0xb
call fcn.005a9b10
add esp, 0xc
mov eax, 0xb
pop edi
pop esi
pop ebx
add esp, 0x138
ret
Function at 0x5abd70
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6edbc0]
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 0x5abd90
pop edi
pop esi
mov eax, 4
pop ebx
ret
lea eax, [esi + 0x318]
cmp eax, ebx
jne 0x5abdc5
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x28]
mov dword [eax + 0x4c], ebx
push ecx
push 2
push 0x71
call fcn.005b13c0
add esp, 8
push eax
push 0x2f
call fcn.005a9b10
add esp, 0xc
mov eax, 0x2f
pop edi
pop esi
pop ebx
ret
push eax
call fcn.005aebf0
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x5abdfb
mov esi, dword [esp + 0x10]
mov edx, dword [esi + 0x28]
push edx
push 2
push 0x6c
call fcn.005b13c0
add esp, 8
push eax
push edi
call fcn.005a9b10
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 0x5abe14
push eax
call fcn.005ce291
add esp, 4
mov dword [esi + 0x8ce2], ebx
mov eax, dword [esi + 0x8f50]
cmp eax, ebx
je 0x5abe2d
push eax
call fcn.005ce291
add esp, 4
mov dword [esi + 0x8f50], ebx
push 1
call fcn.005aed90
add esp, 4
cmp eax, ebx
mov dword [esi + 0x98a], eax
je 0x5abe72
mov eax, dword [esp + 0x10]
mov dword [eax + 0x4c], ebx
mov eax, dword [eax + 0x28]
push eax
push 2
push 0x72
call fcn.005b13c0
mov ecx, dword [esi + 0x98a]
add esp, 8
push eax
push ecx
call fcn.005a9b10
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 0x5ac4f0
Capabilities:
Encode data using xor
Get thread local storage value

Disassembly:
mov eax, dword [0x6edbc0]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x5ac50c
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
lea ecx, [ebx + 0xc88]
push ebp
push ecx
call fcn.005b2450
mov ebp, dword [esp + 0x18]
add esp, 4
xor edi, edi
call fcn.005b23a0
xor edx, edx
mov esi, eax
mov dl, byte [edi + ebp]
xor esi, edx
push esi
call fcn.005b23d0
add esp, 4
inc edi
cmp edi, 0xc
jl 0x5ac522
mov al, byte [ebx + 0xafc]
pop ebp
test al, 8
je 0x5ac558
xor eax, eax
mov ax, word [ebx + 0xb00]
shr eax, 8
jmp 0x5ac56d
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 0x5ac57e
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [ebx + 0x8cea]
mov ecx, dword [ebx + 0xab2]
cmp eax, ecx
jbe 0x5ac590
mov eax, ecx
mov esi, dword [ebx + 0x8ce6]
mov edx, eax
dec eax
test edx, edx
je 0x5ac5bc
lea edi, [eax + 1]
call fcn.005b23a0
mov ebx, eax
xor eax, eax
mov al, byte [esi]
xor ebx, eax
push ebx
call fcn.005b23d0
add esp, 4
mov byte [esi], bl
inc esi
dec edi
jne 0x5ac5a0
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x5ac5d0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6edbc0]
sub esp, 0x10
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x5ac5f0
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.005b1660
mov dl, byte [esp + 0x12]
add esp, 8
mov byte [esp + esi + 0xc], dl
inc esi
cmp esi, 0xc
jl 0x5ac5fd
mov al, byte [edi + 0xc88]
mov dword [edi + 0xc84], 1
test al, al
pop esi
je 0x5ac644
lea eax, [esp + 8]
push eax
call fcn.005ac4f0
add esp, 4
test eax, eax
jne 0x5ac644
pop edi
add esp, 0x10
ret
mov eax, 0x2c
pop edi
add esp, 0x10
ret
Function at 0x5ac910
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6edbc0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x5ac92a
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