joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4906a0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bbc19
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x61f138]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [esi], vtable.boost::asio::detail::win_iocp_io_context.0
mov dword [esi + 0x14], 0
lea edi, [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [edi], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call fcn.004910a0
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x38]
mov dword [esi + 0x34], 0
call fcn.00490110
push 0x5e4408
push eax
lea ecx, [ebp - 0x1c]
call fcn.00436dd0
cmp dword [ebp - 0x1c], 0
jne 0x490832
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0xffffffff
mov dword [esi + 0x60], 0
push 0xffffffffffffffff
push 0
push 0
push 0xffffffffffffffff
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x4907b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x5e4408
push eax
lea ecx, [ebp - 0x1c]
call fcn.00436dd0
cmp dword [ebp - 0x1c], 0
jne 0x49083f
cmp byte [ebp + 0x10], 0
je 0x49081c
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0xc
call fcn.0056eed3
mov edi, eax
add esp, 4
mov dword [ebp + 0x10], edi
mov byte [ebp - 4], 7
push 0x10
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.0056eed3
push eax
mov ecx, edi
mov dword [ebp + 8], eax
mov dword [eax], vtable.boost::asio::detail::win_thread::func_struct_boost::asio::detail::win_iocp_io_context::thread_function_.0
mov dword [eax + 0xc], esi
call fcn.00490400
mov ebx, dword [esi + 0x60]
test ebx, ebx
je 0x490819
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc
push ebx
call fcn.0056eec5
add esp, 8
mov dword [esi + 0x60], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, str.mutex
lea ecx, [ebp - 0x1c]
call fcn.004389a0
mov edx, str.iocp
lea ecx, [ebp - 0x1c]
call fcn.004389a0
int3
Function at 0x490b70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bbc80
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x61f138]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x490be1
mov ecx, esi
call fcn.00490cc0
mov ecx, dword [ebp + 8]
mov byte [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov dword [ecx], 0
mov dword [ecx + 4], eax
xor eax, eax
mov dword [ecx + 8], 0x5e4408
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov ecx, esi
mov dword [ebp - 4], 0
push dword [0x6d666c]
neg ecx
lea eax, [esi + 0x14]
sbb ecx, ecx
and ecx, eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push dword [0x6d666c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
xor edi, edi
push ebx
push ecx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00490d30
test eax, eax
je 0x490c5e
cmp edi, 0xffffffff
lea eax, [edi + 1]
push ebx
cmove eax, edi
push ecx
mov ecx, esi
mov edi, eax
call fcn.00490d30
test eax, eax
jne 0x490c46
push dword [ebp - 0x10]
push dword [0x6d666c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor esi, esi
nop
mov eax, dword [ebp + esi*4 - 0x24]
test eax, eax
je 0x490c81
push eax
call fcn.0056eeaf
add esp, 4
inc esi
cmp esi, 3
jl 0x490c70
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x491390
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
mov ebx, ecx
push edi
xor edi, edi
mov ebp, edx
cmp ebx, 0xffffffff
je 0x4914c8
cmp byte [esp + 0x24], 0
mov edi, dword [sym.imp.WS2_32.dll_WSASetLastError]
je 0x4913f9
mov al, byte [ebp]
test al, 8
je 0x4913f9
xor ecx, ecx
or al, 8
push ecx
mov dword [esp + 0x14], ecx
mov byte [ebp], al
call edi
push 4
lea eax, [esp + 0x14]
push eax
push 0x80
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x5e4408
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [esp + 0x1c]
call fcn.00436dd0
push 0
call edi
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x5e4408
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [esp + 0x1c]
call fcn.00436dd0
mov ecx, eax
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov eax, dword [ecx + 8]
mov dword [esi + 8], eax
test edi, edi
je 0x4914c8
mov eax, dword [esi]
cmp eax, 0x2733
jne 0x491453
mov ecx, dword [esi + 8]
cmp dword [ecx + 8], 0x25c5e09b
jne 0x491453
cmp dword [ecx + 0xc], 0x8fafd21e
je 0x49146f
cmp eax, 0x4d5
jne 0x4914c4
mov eax, dword [esi + 8]
cmp dword [eax + 8], 0x25c5e09b
jne 0x4914c4
cmp dword [eax + 0xc], 0x8fafd21e
jne 0x4914c4
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [ebp], 0xfc
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x5e4408
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [esp + 0x1c]
call fcn.00436dd0
mov edx, eax
mov eax, dword [edx]
mov dword [esi], eax
mov ecx, dword [edx + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edx + 8]
mov dword [esi + 8], ecx
test edi, edi
jne 0x4914e1
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0x18]
mov dword [esi], 0
mov dword [esi + 4], eax
mov dword [esi + 8], 0x5e4408
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4914f0
Capabilities:
Connect socket
Get socket status

Disassembly:
sub esp, 0x220
mov eax, dword [0x61f138]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ebx, ecx
push esi
mov esi, edx
push edi
mov edi, dword [esp + 0x238]
cmp ebx, 0xffffffff
jne 0x49152b
mov byte [esp + 0x14], 1
mov dword [edi], 0x2719
jmp 0x491570
push 0
call ebp
push dword [esp + 0x234]
push esi
push ebx
call dword [sym.imp.WS2_32.dll_connect]
push 0x5e4408
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [esp + 0x18]
call fcn.00436dd0
mov ecx, dword [eax]
mov dword [edi], ecx
mov ecx, dword [eax + 4]
mov dword [edi + 4], ecx
mov eax, dword [eax + 8]
mov dword [edi + 8], eax
test esi, esi
jne 0x49157e
mov byte [esp + 0x14], 0
mov dword [edi], esi
mov eax, dword [esp + 0x14]
mov dword [edi + 4], eax
mov dword [edi + 8], 0x5e4408
mov eax, dword [edi]
cmp eax, 0x2734
jne 0x49159c
mov ecx, dword [edi + 8]
cmp dword [ecx + 8], 0x25c5e09b
jne 0x49159c
cmp dword [ecx + 0xc], 0x8fafd21e
je 0x4915c4
cmp eax, 0x2733
jne 0x491704
mov eax, dword [edi + 8]
cmp dword [eax + 8], 0x25c5e09b
jne 0x491704
cmp dword [eax + 0xc], 0x8fafd21e
jne 0x491704
cmp ebx, 0xffffffff
jne 0x4915e7
mov byte [esp + 0x14], 1
mov eax, dword [esp + 0x14]
mov dword [edi], 0x2719
mov dword [edi + 4], eax
mov dword [edi + 8], 0x5e4408
jmp 0x491704
push 0
mov dword [esp + 0x130], ebx
mov dword [esp + 0x12c], 1
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], 1
call ebp
push 0
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x130]
push eax
push 0
lea eax, [ebx + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
push 0x5e4408
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [esp + 0x18]
call fcn.00436dd0
mov ecx, dword [eax]
mov dword [edi], ecx
mov ecx, dword [eax + 4]
mov dword [edi + 4], ecx
mov eax, dword [eax + 8]
mov dword [edi + 8], eax
test esi, esi
js 0x491704
mov dword [edi], 0
mov byte [esp + 0x14], 0
mov eax, dword [esp + 0x14]
mov dword [edi + 4], eax
push 0
mov dword [edi + 8], 0x5e4408
mov dword [esp + 0x20], 0
call ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 4
push eax
lea eax, [esp + 0x20]
push eax
push 0x1007
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_getsockopt]
push 0x5e4408
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [esp + 0x18]
call fcn.00436dd0
mov ecx, dword [eax]
mov dword [edi], ecx
mov ecx, dword [eax + 4]
mov dword [edi + 4], ecx
mov eax, dword [eax + 8]
mov dword [edi + 8], eax
test esi, esi
jne 0x4916dd
mov byte [esp + 0x14], 0
mov eax, dword [esp + 0x14]
mov dword [edi], esi
mov dword [edi + 4], eax
mov dword [edi + 8], 0x5e4408
jmp 0x4916e2
cmp esi, 0xffffffff
je 0x491704
push 0x5e4408
push dword [esp + 0x20]
lea ecx, [esp + 0x18]
call fcn.00436dd0
mov ecx, dword [eax]
mov dword [edi], ecx
mov ecx, dword [eax + 4]
mov dword [edi + 4], ecx
mov eax, dword [eax + 8]
mov dword [edi + 8], eax
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0056eeb4
add esp, 0x220
ret
Function at 0x4919e0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
push esi
push edi
push 0
mov esi, edx
mov edi, ecx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push dword [esp + 0x2c]
push esi
push edi
call dword [sym.imp.WS2_32.dll_WSASend]
push 0x5e4408
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [esp + 0x14]
call fcn.00436dd0
mov edx, dword [esp + 0x24]
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov eax, dword [eax + 8]
mov dword [edx + 8], eax
mov eax, dword [edx]
cmp eax, 0x40
jne 0x491a4a
mov dword [edx], 0x2746
jmp 0x491a57
cmp eax, 0x4d2
jne 0x491a6a
mov dword [edx], 0x274d
mov byte [esp + 0x10], 1
mov eax, dword [esp + 0x10]
mov dword [edx + 4], eax
mov dword [edx + 8], 0x5e4408
pop edi
test esi, esi
pop esi
je 0x491a77
or eax, 0xffffffff
add esp, 0x10
ret
mov byte [esp + 8], 0
mov eax, dword [esp + 8]
mov dword [edx], 0
mov dword [edx + 4], eax
mov eax, dword [esp]
mov dword [edx + 8], 0x5e4408
add esp, 0x10
ret
Function at 0x494ce0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bc280
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x61f138]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x78]
lea eax, [ebp - 0x38]
push eax
mov dword [esi], vtable.DialogSims.0
call fcn.0052ad40
mov edi, eax
call fcn.005025a0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 2
push ecx
lea ecx, [eax + 0x240]
call fcn.0044c790
cmp eax, edi
je 0x494d54
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x494d49
mov ecx, dword [edi]
push dword [edi + 0x10]
push ecx
mov ecx, eax
call fcn.00445cb0
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x494d8e
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x494d84
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x494e84
push edx
push ecx
call fcn.0056eec5
add esp, 8
call fcn.005025a0
mov ecx, eax
call fcn.00502b00
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0
lea eax, [ebp - 0x3c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREAeroAdmin
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x494df5
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ebp - 0x20]
push 4
shl ecx, 0x10
or ecx, eax
lea eax, [ebp - 0x44]
push eax
push 4
push 0
push str.simsWindowPos
push dword [ebp - 0x3c]
mov dword [ebp - 0x44], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esi + 0x8c]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [esi + 0xa4]
mov byte [0x6c4e13], 0
cmp ecx, 0x10
jb 0x494e47
mov eax, dword [esi + 0x90]
inc ecx
cmp ecx, 0x1000
jb 0x494e3d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x494e84
mov eax, edx
push ecx
push eax
call fcn.0056eec5
add esp, 8
mov dword [esi + 0xa0], 0
mov ecx, esi
mov dword [esi + 0xa4], 0xf
mov byte [esi + 0x90], 0
call fcn.00528720
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056eeb4
mov esp, ebp
pop ebp
ret
call fcn.00591dc6
int3
Function at 0x497fc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bc72b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x61f138]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push 0
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.00498b00
mov ecx, dword [edi]
lea eax, [ebp - 0x18]
add esp, 8
push edi
push 0x498b20
push eax
call fcn.004901d0
mov dword [ebx], eax
add ebx, 4
xor eax, eax
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x1c], 2
mov byte [ebx + 0x20], 0
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x24], 2
mov dword [ebx + 0x28], eax
push 0x14
mov dword [ebp - 4], eax
call fcn.0056eed3
mov esi, eax
add esp, 4
mov byte [esi + 4], 0
mov dword [esi], vtable.boost::asio::executor::impl_class_boost::asio::io_context::executor_type__class_std::allocator_void__.0
mov dword [esi + 8], 1
mov dword [esi + 0xc], edi
mov byte [ebp - 4], 1
mov ecx, esi
mov eax, dword [esi]
call dword [eax]
mov edi, dword [ebp - 0x10]
mov dword [edi + 0x44], eax
mov byte [edi + 0x48], 1
mov byte [ebp - 4], 2
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 4]
mov eax, dword [edi]
mov dword [ebx], 0xffffffff
mov byte [ebx + 4], 0
mov dword [ebx + 8], 0
mov esi, dword [ebx + 0xc]
mov dword [ebp + 8], eax
mov dword [ebx + 0xc], 0
mov byte [ebp - 4], 3
test esi, esi
je 0x4980e1
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4980e1
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4980e1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp + 8]
lea edi, [esi + 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x40]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], 0
mov eax, dword [esi + 0x40]
test eax, eax
je 0x498105
mov dword [eax + 0x18], ebx
push edi
mov dword [esi + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x498540
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bc77d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x61f138]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0xc]
lea ebx, [edi + 0x10]
push dword [0x6d666c]
mov esi, dword [eax + 8]
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49859f
lea esp, [esp]
cmp dword [eax], esi
je 0x498625
mov eax, dword [eax + 8]
test eax, eax
jne 0x498590
mov dword [ebp - 0x18], ebx
call fcn.004987b0
mov ecx, dword [ebp + 8]
mov edx, eax
push ecx
push edx
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0x4989c0
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x1c], 0
mov eax, dword [ecx]
mov dword [edx + 0x20], eax
mov dword [ecx], 0
mov ecx, dword [edi + 0xc]
mov ecx, dword [ecx + 8]
call fcn.004905d0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
call fcn.00498810
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [eax + 4], 0
je 0x49859f
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [ebp + 8], eax
mov dword [ecx], 0
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
push eax
call fcn.00498c00
add esp, 8
mov dword [ebp - 4], 2
mov eax, dword [ebp + 8]
test eax, eax
je 0x498611
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4987b0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x6d666c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4987e7
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4987e7
mov eax, dword [ecx]
test eax, eax
je 0x4987e7
mov dword [ecx], 0
mov cl, byte [eax]
cmp cl, 0xa
jb 0x4987de
mov byte [eax + 0x28], cl
ret
push eax
call fcn.0056eeaf
add esp, 4
push 0x29
call fcn.0056eed3
add esp, 4
mov byte [eax + 0x28], 0xa
ret

Function at 0x498810
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b4700
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x61f138]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x49885c
mov dword [ebp - 4], 0
mov eax, dword [eax + 0x20]
test eax, eax
je 0x498855
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x498898
push dword [0x6d666c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x498888
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x498888
cmp dword [ecx], 0
jne 0x498888
mov al, byte [esi + 0x28]
mov byte [esi], al
mov dword [ecx], esi
jmp 0x498891
push esi
call fcn.0056eeaf
add esp, 4
mov dword [edi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x498c50
Capabilities:
Get socket status

Disassembly:
sub esp, 0x144
mov eax, dword [0x61f138]
xor eax, esp
mov dword [esp + 0x140], eax
mov edx, dword [esp + 0x14c]
push ebx
push ebp
push esi
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov esi, dword [esp + 0x160]
push edi
mov edi, dword [esp + 0x158]
mov dword [esp + 0x18], ecx
mov ecx, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
mov al, byte [edi + 4]
mov ebx, dword [edi]
mov byte [esp + 0x13], al
cmp ebx, 0xffffffff
jne 0x498cd4
mov byte [esp + 0x18], 1
mov dword [esi], 0x2719
mov eax, dword [esp + 0x18]
mov dword [esi + 4], eax
mov dword [esi + 8], 0x5e4408
xor eax, eax
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0056eeb4
add esp, 0x144
ret 0x10
test ecx, ecx
jne 0x498ce4
test al, 0x10
je 0x498ce4
mov byte [esp + 0x18], cl
mov dword [esi], ecx
jmp 0x498ca9
push esi
push ecx
push 1
lea edx, [esp + 0x20]
mov ecx, ebx
call fcn.004919e0
add esp, 0xc
test eax, eax
jns 0x498cb9
mov cl, byte [esp + 0x13]
mov ebp, dword [sym.imp.WS2_32.dll_select]
and cl, 1
mov byte [esp + 0x13], cl
jmp 0x498d10
test cl, cl
jne 0x498cb7
mov eax, dword [esi]
cmp eax, 0x2733
jne 0x498d32
mov ecx, dword [esi + 8]
cmp dword [ecx + 8], 0x25c5e09b
jne 0x498d32
cmp dword [ecx + 0xc], 0x8fafd21e
je 0x498d5a
cmp eax, 0x4d5
jne 0x498cb7
mov eax, dword [esi + 8]
cmp dword [eax + 8], 0x25c5e09b
jne 0x498cb7
cmp dword [eax + 0xc], 0x8fafd21e
jne 0x498cb7
push 0
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], 1
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
lea eax, [esp + 0x4c]
push eax
push 0
lea eax, [ebx + 1]
push eax
call ebp
push 0x5e4408
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [esp + 0x40]
call fcn.00436dd0
mov ecx, dword [eax]
mov dword [esi], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
test edi, edi
jne 0x498dc1
mov byte [esp + 0x24], 0
mov eax, dword [esp + 0x24]
mov dword [esi], edi
mov dword [esi + 4], eax
mov dword [esi + 8], 0x5e4408
jmp 0x498de4
jle 0x498ddc
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x30]
mov dword [esi], 0
mov dword [esi + 4], eax
mov dword [esi + 8], 0x5e4408
test edi, edi
js 0x498cb7
push esi
push ecx
push 1
lea edx, [esp + 0x20]
mov ecx, ebx
call fcn.004919e0
mov cl, byte [esp + 0x1f]
add esp, 0xc
test eax, eax
js 0x498d10
jmp 0x498cb9
Function at 0x49dfd0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bce4f
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x61f138]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], ebx
push eax
call fcn.004a5900
mov eax, dword [ebp - 0x18]
cmp eax, dword [0x6d3534]
je 0x49e021
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x14], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
cmp ebx, 0x23
jne 0x49e07c
push 0x11
call edi
test ax, ax
jns 0x49e079
push 0x12
call edi
test ax, ax
jns 0x49e079
cmp byte [esi + 0x99], 0
je 0x49e079
push dword [ebp + 8]
lea eax, [ebp - 0xc]
mov byte [ebp - 0xd], 0x1b
push eax
lea eax, [ebp - 0xd]
push eax
push 0
jmp 0x49e198
mov ebx, dword [ebp + 8]
cmp ebx, 0x46
jne 0x49e109
push 0x11
call edi
test ax, ax
jns 0x49e109
push 0x12
call edi
test ax, ax
jns 0x49e109
cmp byte [esi + 0x200], 0
jne 0x49e0ce
push 0x7c
call fcn.0056eed3
add esp, 4
mov dword [ebp - 0x18], eax
push 0
push str.aw_btn_fullscreen_ok
push str.aw_mb_fullscreen_text
push ecx
push esi
mov byte [ebp - 4], 1
mov ecx, eax
push dword [esi + 0x10]
call fcn.0048c480
jmp 0x49e1e7
push 0
mov ecx, esi
mov byte [esi + 0x200], 0
mov dword [esi + 0x16c], 0x26
call fcn.00528470
mov ecx, esi
call fcn.0049de20
cmp byte [esi + 0x200], 0
mov ecx, esi
sete al
movzx eax, al
push eax
call fcn.0049fe80
jmp 0x49e1e7
push 0x11
call edi
test ax, ax
jns 0x49e15b
push 0x12
call edi
test ax, ax
jns 0x49e15b
push 0x7b
call edi
test ax, ax
je 0x49e15b
sub esp, 0x18
lea eax, [esi + 0x80]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00441370
sub esp, 0x18
mov byte [ebp - 4], 2
lea eax, [esi + 0x68]
mov ecx, esp
push eax
call fcn.00441370
mov byte [ebp - 4], 0
call fcn.00525f80
add esp, 0x30
jmp 0x49e1e7
push dword [ebp + 8]
lea eax, [ebp - 0xc]
mov byte [ebp - 0xd], 0x17
push eax
lea eax, [ebp - 0xd]
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.00465ce0
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
call fcn.00465ce0
push dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
call fcn.00465ce0
cmp byte [esi + 0x99], 0
mov edi, dword [ebp - 0x24]
je 0x49e1ba
mov eax, dword [ebp - 0x20]
mov ecx, esi
sub eax, edi
push eax
push edi
call fcn.0049d870
test edi, edi
je 0x49e1e7
mov ecx, dword [ebp - 0x1c]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x49e1dd
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49e1fd
push ecx
push edi
call fcn.0056eec5
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.00591dc6
int3