joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4196fa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41973c
call fcn.004218dc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41973c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x419733
xor eax, eax
jmp 0x419744
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041974a
pop edi
pop esi
pop ebx
ret 4

Function at 0x41bbc6
Capabilities:
Clear file content

Disassembly:
push esi
mov esi, ecx
push 0
mov eax, dword [esi]
push dword [esp + 0xc]
call dword [eax + 0x30]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41bbee
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041bec1
pop esi
ret 4

Function at 0x41dce8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x41dd05
cmp dword [0x447ea4], edi
jne 0x41de57
cmp word [0x447eb0], di
mov dword [0x447ea4], 1
jne 0x41dd37
push str.MSH_SCROLL_LINES_MSG
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
xor ecx, ecx
cmp eax, edi
setne cl
inc ecx
mov dword [0x447eac], eax
mov word [0x447eb0], cx
cmp word [0x447eb0], 2
jne 0x41dd73
push str.Magellan_MSWHEEL
push str.MouseZ
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x41dd73
mov ecx, dword [0x447eac]
cmp ecx, edi
je 0x41dd73
push edi
push edi
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x447ea8], eax
jmp 0x41de5c
push 0x94
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.0040a380
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
mov dword [0x447ea8], 3
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41de57
cmp dword [ebp - 0x8c], 1
je 0x41ddc7
cmp dword [ebp - 0x8c], 2
jne 0x41de57
cmp dword [ebp - 0x98], 4
jae 0x41de36
lea eax, [ebp + 8]
push eax
push 1
push edi
push str.Control_PanelDesktop
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41de57
lea eax, [ebp - 4]
mov dword [ebp - 4], pe_nt_image_headers32
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 8]
push eax
push edi
push str.WheelScrollLines
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41de2b
push 0xa
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.00409710
add esp, 0xc
mov dword [0x447ea8], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41de57
cmp dword [ebp - 0x8c], 2
jne 0x41de57
cmp dword [ebp - 0x98], 4
jb 0x41de57
push edi
push 0x447ea8
push edi
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [0x447ea8]
pop edi
leave
ret
Function at 0x41eecc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x7c], 0
je 0x41ef10
push dword [ebp + 8]
call fcn.004226af
mov esi, eax
test esi, esi
je 0x41ef3b
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
jmp 0x41ef3b
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0x4261c0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10]
push dword [esi + 0x90]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
leave
ret 0xc

Function at 0x4216f1
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x422e52
call fcn.0040a830
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CNoTrackObject.0
xor eax, eax
push 0xa
lea ecx, [esi + 0x30]
mov dword [ebp - 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call fcn.00415f2c
push 0xa
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call fcn.00415f2c
push 0xa
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 2
call fcn.00415ddf
mov ecx, dword [ebp - 0xc]
mov dword [esi], vtable.AFX_MODULE_THREAD_STATE.0
mov dword [esi + 0xc], 0x54
mov dword [esi + 0x28], 0x41aa26
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret

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

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x422013
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jl 0x42209d
cmp dword [esp + 0x14], ebx
je 0x42209d
cmp esi, ebx
jne 0x422039
push 0x10
call fcn.00421e00
cmp eax, ebx
je 0x422028
mov dword [eax], vtable.CThreadData.0
mov esi, eax
jmp 0x42202a
xor esi, esi
push esi
lea ecx, [edi + 0x14]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.00421da2
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x422050
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x422060
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x42206c
call fcn.00415ac0
mov eax, dword [esi + 8]
mov ecx, eax
imul ecx, ecx, 0x3fffffff
add ecx, dword [edi + 0xc]
shl ecx, 2
push ecx
mov ecx, dword [esi + 0xc]
push ebx
lea eax, [ecx + eax*4]
push eax
call fcn.0040a380
mov eax, dword [edi + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword [eax + edx*4], ecx
pop ebx
ret 8
Function at 0x4220d3
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
mov ebx, ecx
pop edi
cmp dword [esi + 8], edi
mov dword [ebp - 4], edi
jle 0x422126
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x422109
mov ecx, dword [ebx + 0x10]
cmp dword [ecx + edi*8 + 4], eax
je 0x422109
mov eax, dword [esi + 0xc]
cmp dword [eax + edi*4], 0
je 0x422120
and dword [ebp - 4], 0
jmp 0x422120
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x422119
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi + 0xc]
and dword [eax + edi*4], 0
inc edi
cmp edi, dword [esi + 8]
jl 0x4220ea
cmp dword [ebp - 4], 0
je 0x422154
push esi
lea ecx, [ebx + 0x14]
call fcn.00421db5
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x42214a
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x2a8563c2
Capabilities:
Check if file exists

Disassembly:
push 0x64
mov eax, 0x2a982cdf
call fcn.2a84a73f
mov ebx, ecx
cmp dword [ebx + 4], 0xffffffff
jne 0x2a856503
push 0xffffffffffffffff
lea edi, [ebx + 0xc]
push 0x2a98b17c
mov ecx, edi
call fcn.2a852803
mov eax, dword [ebx]
push 0
push 0xffffffffffffffff
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x2a9884bc]
mov ecx, ebx
call esi
push eax
lea ecx, [ebp - 0x54]
call fcn.2a84a6ed
and dword [ebp - 4], 0
lea eax, [ebp - 0x54]
push eax
mov ecx, edi
call fcn.2a8c938e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.2a84cb09
lea ecx, [ebp - 0x4c]
call fcn.2a84cb2b
push edi
lea ecx, [ebp - 0x3c]
call fcn.2a851f08
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 1
call fcn.2a8c9bbe
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 2
push eax
call fcn.2a8ca4aa
mov esi, eax
mov dword [ebp - 0x18], vtable.RSSecurityUtilsWin::CLocalFreeGuard.0
pop ecx
mov dword [ebp - 0x14], esi
mov ecx, dword [ebx + 8]
xor edi, edi
mov byte [ebp - 4], 3
cmp dword [ecx], edi
jne 0x2a8564c8
lea ecx, [ebp - 0x3c]
call fcn.2a8c9bbe
push edi
push 0x40110000
push 3
lea ecx, [ebp - 0x24]
push ecx
push edi
push 0xc0000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
jne 0x2a8564c8
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
je 0x2a85651f
cmp eax, 0xe7
jne 0x2a856509
lea ecx, [ebp - 0x3c]
call fcn.2a8c9bbe
push 0x4e20
push eax
call dword [sym.imp.kernel32.dll_WaitNamedPipeA]
test eax, eax
je 0x2a85652e
mov eax, dword [ebx + 8]
cmp dword [eax], edi
je 0x2a85646e
cmp dword [ebx + 4], 0xffffffff
je 0x2a8564e4
push edi
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 2
push eax
push dword [ebx + 4]
call dword [sym.imp.kernel32.dll_SetNamedPipeHandleState]
mov byte [ebp - 4], 6
test esi, esi
je 0x2a8564f3
push esi
call dword [sym.imp.kernel32.dll_LocalFree]
lea ecx, [ebp - 0x2c]
call fcn.2a84cb09
lea ecx, [ebp - 0x34]
call fcn.2a84cb2b
call fcn.2a84aa52
ret
push edi
push 0xffffffffffffffff
push str.Problem_Opening_channel
lea ecx, [ebp - 0x54]
call fcn.2a84a6ed
mov byte [ebp - 4], 4
jmp 0x2a856542
lea ecx, [ebp - 0x70]
call fcn.2a85615f
push 0x2a9f0450
jmp 0x2a856553
push edi
push 0xffffffffffffffff
push str.Problem_Opening_channel__all_pipe_instances_are_busy
lea ecx, [ebp - 0x54]
call fcn.2a84a6ed
mov byte [ebp - 4], 5
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x70]
call fcn.2a852803
push 0x2a9f04a8
lea eax, [ebp - 0x70]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x2a8567ed
Capabilities:
Read file on windows

Disassembly:
push 0x5c
mov eax, 0x2a982d4d
call fcn.2a84a73f
mov edi, ecx
xor ebx, ebx
lea eax, [ebp - 0x30]
push 0x14
push ebx
push eax
mov dword [ebp - 0x10], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.kernel32.dll_CreateEventA]
mov esi, eax
mov dword [ebp - 0x14], esi
mov eax, dword [edi + 8]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], ebx
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x18], eax
cmp esi, 0xffffffff
je 0x2a856959
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x2a856943
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
je 0x2a8568c5
cmp eax, 0x6d
je 0x2a8568f3
push ebx
push 0xffffffffffffffff
push str.Read_Error
lea ecx, [ebp - 0x48]
call fcn.2a84a6ed
mov byte [ebp - 4], 4
jmp 0x2a85696d
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
cmp eax, 1
je 0x2a8568d7
push ebx
push ebx
push ebx
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x2a8568c5
cmp eax, 0xffffffff
je 0x2a856902
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x2a856888
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
sub eax, ebx
je 0x2a85690b
sub eax, 1
jne 0x2a85683a
lea ecx, [ebp - 0x68]
call fcn.2a85607f
push 0x2a9f04c4
jmp 0x2a85697e
mov dword [ebp - 4], 2
jmp 0x2a85694a
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_GetOverlappedResult]
test eax, eax
jne 0x2a856943
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x6d
je 0x2a8568f3
push ebx
push 0xffffffffffffffff
push str.unexpected_error
lea ecx, [ebp - 0x48]
call fcn.2a84a6ed
mov byte [ebp - 4], 3
jmp 0x2a85696d
mov dword [ebp - 4], 5
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
call fcn.2a84aa52
ret 8
push ebx
push 0xffffffffffffffff
push str.Failed_to_create_connection
lea ecx, [ebp - 0x48]
call fcn.2a84a6ed
mov byte [ebp - 4], 1
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x68]
call fcn.2a852803
push 0x2a9f04a8
lea eax, [ebp - 0x68]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x2a856988
Capabilities:
Read file on windows

Disassembly:
push 0x58
mov eax, 0x2a982d88
call fcn.2a84a73f
mov edi, ecx
xor ebx, ebx
lea eax, [ebp - 0x30]
push 0x14
push ebx
push eax
mov dword [ebp - 0x10], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.kernel32.dll_CreateEventA]
mov esi, eax
mov dword [ebp - 0x14], esi
mov eax, dword [edi + 8]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], ebx
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x18], eax
cmp esi, 0xffffffff
je 0x2a856a94
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x2a856a7e
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x2a856a63
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
sub eax, ebx
je 0x2a856a2b
sub eax, 1
jne 0x2a8569d5
lea ecx, [ebp - 0x64]
call fcn.2a85607f
push 0x2a9f04c4
jmp 0x2a856ab9
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_GetOverlappedResult]
test eax, eax
jne 0x2a856a7e
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x6d
je 0x2a856a19
push ebx
push 0xffffffffffffffff
push str.unexpected_error
lea ecx, [ebp - 0x48]
call fcn.2a84a6ed
mov byte [ebp - 4], 2
jmp 0x2a856aa8
cmp eax, 0x6d
je 0x2a856a19
push ebx
push 0xffffffffffffffff
push str.Read_Error
lea ecx, [ebp - 0x48]
call fcn.2a84a6ed
mov byte [ebp - 4], 3
jmp 0x2a856aa8
push esi
mov dword [ebp - 4], 4
call dword [sym.imp.kernel32.dll_CloseHandle]
call fcn.2a84aa52
ret 8
push ebx
push 0xffffffffffffffff
push str.Failed_to_create_connection
lea ecx, [ebp - 0x48]
call fcn.2a84a6ed
mov byte [ebp - 4], 1
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x64]
call fcn.2a852803
push 0x2a9f04a8
lea eax, [ebp - 0x64]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x2a856af3
Capabilities:
Write file on windows

Disassembly:
push 0x74
mov eax, 0x2a982dbb
call fcn.2a84a73f
mov edi, ecx
cmp dword [edi + 4], 0xffffffff
je 0x2a856c2d
xor ebx, ebx
lea eax, [ebp - 0x30]
push 0x14
push ebx
push eax
mov dword [ebp - 0x10], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.kernel32.dll_CreateEventA]
mov esi, eax
mov dword [ebp - 0x14], esi
mov eax, dword [edi + 8]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], ebx
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x18], eax
cmp esi, 0xffffffff
jne 0x2a856b6f
push ebx
push esi
push str.Failed_to_create_connection
lea ecx, [ebp - 0x48]
call fcn.2a84a6ed
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x64]
call fcn.2a852803
push 0x2a9f04a8
jmp 0x2a856c3a
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x2a856bc4
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x2a856bda
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
sub eax, ebx
je 0x2a856bb1
sub eax, 1
jne 0x2a856b6f
jmp 0x2a856c2d
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_GetOverlappedResult]
push esi
mov dword [ebp - 4], 3
call dword [sym.imp.kernel32.dll_CloseHandle]
call fcn.2a84aa52
ret 8
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xe8
je 0x2a856c1e
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xe9
je 0x2a856c1e
push ebx
push 0xffffffffffffffff
push str.Connection_Closed
lea ecx, [ebp - 0x48]
call fcn.2a84a6ed
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x80]
call fcn.2a852803
push 0x2a9f04a8
lea eax, [ebp - 0x80]
jmp 0x2a856c3d
lea ecx, [ebp - 0x80]
call fcn.2a85607f
push 0x2a9f04c4
jmp 0x2a856c19
lea ecx, [ebp - 0x64]
call fcn.2a85607f
push 0x2a9f04c4
lea eax, [ebp - 0x64]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x2a86a5f1
Capabilities:
Encode data using base64

Disassembly:
push 0x14
mov eax, 0x2a9840b2
call fcn.2a84a73f
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], 0xf
mov byte [eax], bl
mov eax, dword fs:[0x2c]
xor edi, edi
mov ecx, dword [0x2aa01180]
inc edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], edi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x2a9ffcec]
cmp eax, dword [ecx + 4]
jg 0x2a86a7a5
mov eax, dword [ebp + 0x10]
mov edi, ebx
test eax, eax
je 0x2a86a797
push 3
pop esi
mov ecx, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0x10], eax
mov al, byte [ecx]
mov byte [ebp + edi - 0x14], al
inc edi
mov dl, byte [ebp - 0x13]
inc ecx
mov dword [ebp + 0xc], ecx
mov ch, byte [ebp - 0x12]
mov cl, byte [ebp - 0x14]
mov byte [ebp - 0xf], ch
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xe], cl
cmp edi, esi
jne 0x2a86a6e0
mov esi, dword [ebp + 8]
mov al, cl
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov edi, ebx
shl cl, 4
mov al, dl
shr al, 4
add cl, al
mov al, ch
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ch
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
cmp dword [0x2a9fb0fc], 0x10
mov ecx, 0x2a9fb0e8
movzx eax, byte [ebp + edi - 0x18]
cmovae ecx, dword [0x2a9fb0e8]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.2a852803
inc edi
cmp edi, 4
jl 0x2a86a6a8
mov dl, byte [ebp - 0xd]
mov edi, ebx
mov cl, byte [ebp - 0xe]
mov ch, byte [ebp - 0xf]
push 3
pop esi
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x2a86a64a
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x2a86a797
mov eax, edi
cmp edi, esi
jge 0x2a86a716
cmp eax, esi
jae 0x2a86a7a0
mov byte [ebp + eax - 0x14], bl
inc eax
cmp eax, esi
jl 0x2a86a6fe
mov ch, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [ebp - 0x17], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [ebp - 0x15], ch
lea eax, [edi + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x2a86a782
mov esi, dword [ebp + 8]
mov edi, eax
cmp dword [0x2a9fb0fc], 0x10
mov ecx, 0x2a9fb0e8
movzx eax, byte [ebp + ebx - 0x18]
cmovae ecx, dword [0x2a9fb0e8]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.2a852803
inc ebx
cmp ebx, edi
jl 0x2a86a753
mov edi, dword [ebp - 0x1c]
push 3
pop esi
cmp edi, esi
jge 0x2a86a797
sub esi, edi
mov ecx, dword [ebp + 8]
push 0x3d
call fcn.2a852803
sub esi, 1
jne 0x2a86a788
mov eax, dword [ebp + 8]
call fcn.2a84aa52
ret
call fcn.2a852803
mov esi, 0x2a9ffcec
push esi
call fcn.2a852803
cmp dword [0x2a9ffcec], 0xffffffff
pop ecx
jne 0x2a86a63a
push 0x2a98b078
mov ecx, 0x2a9fb0e8
mov dword [ebp - 4], edi
call fcn.2a84e949
push 0x2a987df0
call fcn.2a852803
push esi
mov byte [ebp - 4], bl
call fcn.2a852803
pop ecx
pop ecx
jmp 0x2a86a63a
Function at 0x2a8760be
Capabilities:
Encode data using base64

Disassembly:
push 0x14
mov eax, 0x2a985659
call fcn.2a84a73f
mov edi, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], edi
cmp dword [edi + 0x14], 0x10
jb 0x2a8760e0
mov eax, dword [edi]
mov dword [ebp - 0x14], eax
mov esi, dword [ebp + 8]
mov ebx, dword [edi + 0x10]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], esi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 0xf
mov byte [esi], cl
push ecx
mov eax, ebx
mov dword [ebp - 4], ecx
shl eax, 2
push 3
pop ecx
cdq
idiv ecx
mov dword [ebp - 0x1c], 1
add eax, ecx
mov ecx, esi
push eax
call fcn.2a852803
cmp dword [esi + 0x14], 0x10
mov edx, esi
jb 0x2a876122
mov edx, dword [esi]
xor ecx, ecx
test ebx, ebx
jle 0x2a8761d3
mov esi, dword [ebp - 0x14]
movzx eax, byte [esi + ecx]
shr eax, 2
mov al, byte [eax + 0x2a98cc18]
mov byte [edx], al
mov bl, byte [esi + ecx]
and bl, 3
shl bl, 4
inc ecx
cmp ecx, dword [ebp - 0x10]
jge 0x2a876155
mov al, byte [esi + ecx]
shr al, 4
or bl, al
movzx eax, bl
mov al, byte [eax + 0x2a98cc18]
mov byte [edx + 1], al
mov eax, dword [ebp - 0x10]
cmp ecx, eax
jge 0x2a876196
cmp dword [edi + 0x14], 0x10
mov ebx, edi
jb 0x2a876172
mov ebx, dword [edi]
mov bl, byte [ebx + ecx]
and bl, 0xf
shl bl, 2
inc ecx
cmp ecx, eax
jge 0x2a876188
mov al, byte [esi + ecx]
shr al, 6
or bl, al
movzx eax, bl
mov bl, byte [eax + 0x2a98cc18]
mov eax, dword [ebp - 0x10]
jmp 0x2a876198
mov bl, 0x3d
lea esi, [edx + 3]
mov byte [edx + 2], bl
mov dword [ebp - 0x18], esi
mov edx, esi
mov esi, dword [ebp - 0x14]
inc edx
cmp ecx, eax
jge 0x2a8761bd
movzx eax, byte [esi + ecx]
and eax, 0x3f
mov bl, byte [eax + 0x2a98cc18]
mov eax, dword [ebp - 0x10]
jmp 0x2a8761bf
mov bl, 0x3d
mov esi, dword [ebp - 0x18]
inc ecx
mov byte [esi], bl
mov esi, dword [ebp - 0x14]
cmp ecx, eax
jl 0x2a87612f
mov esi, dword [ebp - 0x20]
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x2a8761dd
mov eax, dword [esi]
push 0
sub edx, eax
mov ecx, esi
push edx
call fcn.2a852803
mov eax, esi
call fcn.2a84aa52
ret

Function at 0x2a878715
Capabilities:
Get hostname

Disassembly:
push 0x448
mov eax, 0x2a985ae9
call fcn.2a8ca9a7
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x410]
mov edi, 0x400
mov dword [ebp - 0x450], esi
push edi
xor ebx, ebx
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x410]
push edi
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x2a878779
lea eax, [ebp - 0x410]
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0xf
mov ecx, esi
push eax
mov byte [esi], bl
call fcn.2a84e949
mov eax, esi
call fcn.2a8ca985
ret
push 0x93
lea ecx, [ebp - 0x454]
call fcn.2a852803
lea ecx, [ebp - 0x44c]
mov dword [ebp - 4], ebx
push ecx
mov ecx, eax
call fcn.2a86a7ea
push eax
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 1
call fcn.2a869ec4
push 0x2a9f32e4
lea eax, [ebp - 0x434]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x2a87df87
Capabilities:
Get socket status

Disassembly:
push 0x198
mov eax, 0x2a986702
call fcn.2a8ca9a7
mov eax, dword [ecx + 0x10004]
xor esi, esi
mov dword [ebp - 0x194], 0x1e
mov dword [ebp - 0x190], esi
cmp eax, 0xffffffff
je 0x2a87dff3
lea ecx, [ebp - 0x194]
mov dword [ebp - 0x188], eax
push ecx
inc eax
mov dword [ebp - 0x18c], 1
lea ecx, [ebp - 0x18c]
push esi
cmp dword [ebp + 8], esi
jne 0x2a87dfdb
push esi
push ecx
jmp 0x2a87dfdd
push ecx
push esi
push eax
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jne 0x2a87e02b
mov al, al
call fcn.2a8ca985
ret 4
push 0x92
lea ecx, [ebp - 0x1a4]
call fcn.2a852803
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], esi
push ecx
mov ecx, eax
call fcn.2a86a7ea
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.2a852803
push 0x2a9f531c
lea eax, [ebp - 0x58]
jmp 0x2a87e05f
push 0x77
lea ecx, [ebp - 0x19c]
call fcn.2a852803
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.2a86a7ea
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.2a852803
push 0x2a9f531c
lea eax, [ebp - 0x34]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3