joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100085e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100379e0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1005a018]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0x78
push str._Config::User::UpdateProtection_
lea edx, [esp + 0x14]
lea ecx, [esp + 0x18]
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], ebx
call fcn.10002250
mov byte [esp + 0x30], 1
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push ecx
mov ecx, eax
call edx
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
mov ecx, dword [esi]
mov edx, dword [eax]
mov edx, dword [edx + 8]
push ecx
mov ecx, eax
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov ecx, edi
call edx
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push ecx
mov ecx, eax
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov ecx, edi
call edx
mov ecx, dword [esi]
mov edx, dword [eax]
mov edx, dword [edx + 8]
push ecx
mov ecx, eax
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov ecx, edi
call edx
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ecx
mov ecx, eax
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
mov ecx, edi
call edx
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push ecx
mov ecx, eax
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
mov ecx, edi
call edx
mov ecx, dword [esi]
mov edx, dword [eax]
push ecx
mov ecx, eax
mov edx, dword [edx + 8]
call edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 1
mov byte [esp + 0x30], bl
call fcn.100023c0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1000d660
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100379e0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1005a018]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0x78
push str._Config::General::UpdateProtection_
lea edx, [esp + 0x14]
lea ecx, [esp + 0x18]
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], ebx
call fcn.10002250
mov byte [esp + 0x30], 1
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
mov ecx, edi
call edx
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
mov edx, dword [eax]
mov edx, dword [edx]
push ecx
mov ecx, eax
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x1c]
mov ecx, edi
call edx
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push ecx
mov ecx, eax
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x24]
mov ecx, edi
call edx
mov ecx, dword [esi + 8]
mov edx, dword [eax]
mov edx, dword [edx]
push ecx
mov ecx, eax
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x2c]
mov ecx, edi
call edx
mov ecx, dword [esi + 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push ecx
mov ecx, eax
call edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 1
mov byte [esp + 0x30], bl
call fcn.100023c0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10016c80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10039076
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
push esi
push edi
mov eax, dword [0x1005a018]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x14], vtable.SpeedBit::Utils::XML::BuilderHelper.0
mov dword [esp + 0x18], 0xfde9
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc8], esi
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
mov ecx, edi
mov dword [esp + 0xc], esi
call edx
mov dword [esp + 0x10], eax
cmp eax, esi
je 0x10016dc0
mov ecx, dword [esp + 0xc]
mov eax, dword [edi]
mov edx, dword [eax + 0x34]
push ecx
mov ecx, edi
call edx
mov esi, eax
test esi, esi
je 0x10016dad
push str.Library
lea eax, [esp + 0x28]
push eax
call fcn.100200a0
mov ecx, eax
mov edi, ebx
mov byte [esp + 0xc8], 1
call fcn.1001ff20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x14]
call eax
lea ecx, [esp + 0x24]
mov edi, eax
mov byte [esp + 0xc8], 0
call fcn.10020150
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
push eax
push str.Name
mov edx, edi
lea ecx, [esp + 0x1c]
call fcn.1002c190
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
push eax
push str.Publisher
mov edx, edi
lea ecx, [esp + 0x1c]
call fcn.1002c190
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
push eax
push str.Signature
mov edx, edi
lea ecx, [esp + 0x1c]
call fcn.1002c190
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
push eax
push str.Checksum
mov edx, edi
lea ecx, [esp + 0x1c]
call fcn.1002c190
mov edi, dword [ebp + 8]
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
cmp eax, dword [esp + 0x10]
jne 0x10016cee
mov eax, 1
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x1001cb50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10035fe0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1005a018]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
mov dword [esp + 0xc], 0x78
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov dword [esp + 0x20], 1
mov ecx, dword [eax + 4]
push edx
mov dword [esp + 0x30], 0
call ecx
mov edi, eax
test esi, esi
je 0x1001cbb3
mov ecx, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esi], ecx
jmp 0x1001cbb7
mov eax, dword [esp + 0x24]
xor edx, edx
test edi, edi
sete dl
mov esi, edx
test eax, eax
je 0x1001cbcb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x1001cbf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10035fe0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1005a018]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
mov dword [esp + 0xc], 0x78
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov dword [esp + 0x20], 1
mov ecx, dword [eax + 0x14]
push edx
mov dword [esp + 0x30], 0
call ecx
mov edi, eax
test esi, esi
je 0x1001cc53
mov ecx, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esi], ecx
jmp 0x1001cc57
mov eax, dword [esp + 0x24]
xor edx, edx
test edi, edi
sete dl
mov esi, edx
test eax, eax
je 0x1001cc6b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x1001f880
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10036a44
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1005a018]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
or eax, 0xffffffff
xor edi, edi
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], edi
mov dword [esp + 0x14], edi
lea ecx, [esi + 0x14]
mov dword [esi], vtable.TiXmlAttribute.0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov dword [esi + 0x10], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x4c], edi
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x10023f60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x10035319
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1005a018]
xor eax, esp
mov dword [esp + 0x28], eax
push ebp
push esi
mov eax, dword [0x1005a018]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x48]
mov eax, dword [ebx]
mov edx, dword [eax + 4]
push ebp
mov esi, ecx
push edi
mov ecx, ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0
call edx
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push 0
push 0
push ebp
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], eax
call dword [sym.imp.MSVCP90.dll_protected:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::_Tidy_bool__unsigned_int_]
mov edx, dword [esp + 0xc]
push 0
push edx
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_unsigned_int__wchar_t_]
mov dword [esp + 0x40], 0
cmp dword [esp + 0x30], 8
mov eax, dword [esp + 0x1c]
jae 0x10023ffe
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 4]
push ecx
push eax
mov eax, dword [esi]
push ebp
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1002403f
cmp dword [esp + 0x30], 8
mov eax, dword [esp + 0x1c]
jae 0x10024026
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ebx]
mov edx, dword [edx + 8]
push ecx
push eax
mov ecx, ebx
call edx
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
jmp 0x10024047
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0xc]
mov ecx, ebx
call eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.100344d1
add esp, 0x38
ret 4
Function at 0x10024160
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x100352d9
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1005a018]
xor eax, esp
mov dword [esp + 0x28], eax
push ebp
push esi
mov eax, dword [0x1005a018]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x48]
mov eax, dword [ebx]
mov edx, dword [eax + 4]
push ebp
mov esi, ecx
push edi
mov ecx, ebx
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0
call edx
mov eax, dword [esi + 8]
mov ecx, dword [esi]
push 0
push 0
push 0
push 0
push ebp
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], eax
call dword [sym.imp.MSVCP90.dll_protected:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool__unsigned_int_]
mov edx, dword [esp + 0xc]
push 0
push edx
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_unsigned_int__char_]
mov dword [esp + 0x40], 0
cmp dword [esp + 0x30], 0x10
mov eax, dword [esp + 0x1c]
jae 0x10024202
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 8]
push 0
push 0
push ecx
push eax
mov eax, dword [esi]
push ebp
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x10024247
cmp dword [esp + 0x30], 0x10
mov eax, dword [esp + 0x1c]
jae 0x1002422e
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ebx]
mov edx, dword [edx + 8]
push ecx
push eax
mov ecx, ebx
call edx
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
jmp 0x1002424f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0xc]
mov ecx, ebx
call eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.100344d1
add esp, 0x38
ret 4
Function at 0x10025340
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x1003686b
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x1005a018]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
push esi
push edi
mov eax, dword [0x1005a018]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
mov ebx, ecx
push 0x80
xor edi, edi
mov ecx, eax
push edi
push ecx
mov dword [ebx], 0x2710
mov dword [esp + 0x20], vtable.SpeedBit::Utils::StackBufferEx_128_.0
mov dword [esp + 0xac], 0x80
mov dword [esp + 0xa8], eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [esp + 0xb0], edi
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x1c]
lea ecx, [esp + 0x14]
call eax
mov edx, dword [esp + 0x14]
mov esi, eax
mov eax, dword [edx + 8]
lea ecx, [esp + 0x14]
call eax
push esi
push eax
push str.SB_VAR_F3B44D29_36CA_4481_9EA7_B31ADA3C649E
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
je 0x10025410
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x1c]
lea ecx, [esp + 0x14]
call eax
cmp esi, eax
jae 0x10025410
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 8]
lea ecx, [esp + 0x14]
call eax
mov esi, eax
call fcn.10025280
mov edi, eax
mov eax, dword [esp + 0x9c]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], vtable.SpeedBit::Utils::StackBufferEx_128_.0
cmp eax, ecx
je 0x10025432
test eax, eax
je 0x10025432
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.100344d1
add esp, 0xa4
ret
Function at 0x100272c0
Capabilities:
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x1003766b
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x1005a018]
xor eax, esp
mov dword [esp + 0x230], eax
push esi
push edi
mov eax, dword [0x1005a018]
xor eax, esp
push eax
lea eax, [esp + 0x244]
mov dword fs:[0], eax
push 0x104
lea eax, [esp + 0x38]
push 0
push eax
mov dword [esp + 0x1c], 0x104
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x1002738a
lea eax, [esp + 0x18]
push eax
lea edi, [esp + 0x38]
call fcn.10028a90
push 2
sub esp, 0x1c
mov dword [esp + 0x26c], 0
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x34], esp
mov ecx, esp
jae 0x1002735c
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov edi, dword [esp + 0x274]
call fcn.10027480
lea ecx, [esp + 0x18]
mov esi, eax
mov dword [esp + 0x24c], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
jmp 0x1002738f
mov eax, 0x270f
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.100344d1
add esp, 0x244
ret 4
Function at 0x1002aaf0
Capabilities:
Decode data using base64 via dword translation table
Encode data using base64

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
test eax, eax
je 0x1002ab0b
mov cl, 0x3d
mov edi, edi
cmp byte [esi + eax - 1], cl
jne 0x1002ab0b
sub eax, 1
jne 0x1002ab00
mov ecx, eax
and eax, 3
shr ecx, 2
mov dword [esp + 0xc], eax
xor edi, edi
xor eax, eax
test ecx, ecx
jbe 0x1002ab9c
nop
movsx edx, byte [esi + eax]
movzx edx, byte [edx + 0x100491a8]
movsx ebx, byte [esi + eax + 1]
movzx ebx, byte [ebx + 0x100491a8]
add dl, dl
add dl, dl
sar bl, 4
and bl, 3
or dl, bl
mov byte [edi + ebp], dl
movsx edx, byte [esi + eax + 2]
movzx edx, byte [edx + 0x100491a8]
movsx ebx, byte [esi + eax + 1]
movzx ebx, byte [ebx + 0x100491a8]
sar dl, 2
and dl, 0xf
shl bl, 4
or dl, bl
mov byte [edi + ebp + 1], dl
movsx edx, byte [esi + eax + 3]
movsx ebx, byte [esi + eax + 2]
movzx edx, byte [edx + 0x100491a8]
movzx ebx, byte [ebx + 0x100491a8]
and dl, 0x3f
shl bl, 6
or dl, bl
mov byte [edi + ebp + 2], dl
add edi, 3
add eax, 4
sub ecx, 1
jne 0x1002ab20
mov ecx, dword [esp + 0xc]
sub ecx, 2
je 0x1002ac0d
sub ecx, 1
jne 0x1002ac31
movsx edx, byte [eax + esi + 1]
movzx edx, byte [edx + 0x100491a8]
movsx ebx, byte [eax + esi]
mov bl, byte [ebx + 0x100491a8]
lea ecx, [eax + esi + 1]
sar dl, 4
and dl, 3
add bl, bl
add bl, bl
or dl, bl
mov byte [edi + ebp], dl
movsx eax, byte [eax + esi + 2]
movzx edx, byte [eax + 0x100491a8]
movsx eax, byte [ecx]
mov cl, byte [eax + 0x100491a8]
sar dl, 2
and dl, 0xf
shl cl, 4
or dl, cl
push 0
mov byte [edi + ebp + 1], dl
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
movsx edx, byte [eax + esi + 1]
mov cl, byte [edx + 0x100491a8]
movsx edx, byte [eax + esi]
mov al, byte [edx + 0x100491a8]
sar cl, 4
add al, al
and cl, 3
add al, al
or cl, al
mov byte [edi + ebp], cl
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x1002ac50
Capabilities:
Encode data using base64

Disassembly:
push ecx
mov edx, dword [esp + 8]
test eax, eax
je 0x1002ac6e
lea ecx, [edx + eax*2 - 2]
lea ecx, [ecx]
cmp word [ecx], 0x3d
jne 0x1002ac6e
dec eax
sub ecx, 2
test eax, eax
jne 0x1002ac60
push ebx
push ebp
mov ecx, eax
push esi
shr ecx, 2
and eax, 3
xor esi, esi
xor ebp, ebp
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x1002ad1f
lea eax, [edx + 2]
lea ebp, [ecx*4]
jmp 0x1002aca0
movzx edx, word [eax]
movzx edx, byte [edx*2 + 0x100492a8]
movzx ebx, word [eax - 2]
movzx ebx, byte [ebx*2 + 0x100492a8]
shr dl, 4
and dl, 3
add bl, bl
add bl, bl
or dl, bl
mov byte [edi + esi], dl
movzx edx, word [eax + 2]
movzx edx, byte [edx*2 + 0x100492a8]
movzx ebx, word [eax]
movzx ebx, byte [ebx*2 + 0x100492a8]
shr dl, 2
and dl, 0xf
shl bl, 4
or dl, bl
mov byte [edi + esi + 1], dl
movzx edx, word [eax + 4]
movzx ebx, word [eax + 2]
movzx edx, byte [edx*2 + 0x100492a8]
movzx ebx, byte [ebx*2 + 0x100492a8]
and dl, 0x3f
shl bl, 6
or dl, bl
mov byte [edi + esi + 2], dl
add esi, 3
add eax, 8
sub ecx, 1
jne 0x1002aca0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
sub eax, 2
je 0x1002ad94
sub eax, 1
jne 0x1002adb9
movzx ecx, word [edx + ebp*2 + 2]
movzx ecx, byte [ecx*2 + 0x100492a8]
movzx ebx, word [edx + ebp*2]
mov bl, byte [ebx*2 + 0x100492a8]
lea eax, [edx + ebp*2 + 2]
shr cl, 4
and cl, 3
add bl, bl
add bl, bl
or cl, bl
mov byte [esi + edi], cl
movzx edx, word [edx + ebp*2 + 4]
movzx ecx, byte [edx*2 + 0x100492a8]
movzx edx, word [eax]
mov al, byte [edx*2 + 0x100492a8]
shr cl, 2
and cl, 0xf
shl al, 4
or cl, al
push 0
mov byte [esi + edi + 1], cl
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
movzx ecx, word [edx + ebp*2 + 2]
mov al, byte [ecx*2 + 0x100492a8]
movzx ecx, word [edx + ebp*2]
mov dl, byte [ecx*2 + 0x100492a8]
shr al, 4
add dl, dl
and al, 3
add dl, dl
or al, dl
mov byte [esi + edi], al
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x1002c2b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10038da8
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push esi
mov eax, dword [0x1005a018]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
push 1
push 2
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
mov dword [esp + 0xb8], 0
call dword [sym.imp.MSVCP90.dll_public:_static_class_std::locale_const____cdecl_std::locale::classic_void_]
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx + 4]
push eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + ecx + 0x34]
call dword [sym.imp.MSVCP90.dll_public:_class_std::locale___thiscall_std::basic_ios_char__struct_std::char_traits_char__::imbue_class_std::locale_const__]
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::locale::destructor_void_]
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
mov byte [esp + 0xb8], 1
cmp dword [eax + 0x18], 0x10
jb 0x1002c350
mov eax, dword [eax + 4]
jmp 0x1002c353
add eax, 4
mov ecx, dword [ebp + 8]
push ecx
mov ecx, eax
call fcn.1002c0a0
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0xb8], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x2c]
mov dword [esp + 0xb8], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
mov eax, esi
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8