joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4465af
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x148
mov eax, dword [0x52e400]
push esi
mov esi, dword [ebp + 0x7c]
push edi
xor eax, ebp
mov edi, 0x11c
push edi
mov dword [ebp + 0x70], eax
lea eax, [ebp - 0xac]
push 0
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
lea eax, [ebp - 0xac]
push eax
mov dword [ebp - 0xac], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4465fe
xor al, al
jmp 0x446785
push ebx
push 0x24
lea eax, [ebp - 0xd4]
push 0
push eax
call sub.MSVCR71.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
add esp, 0xc
push str.GetNativeSystemInfo
push str.kernel32.dll
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
test eax, eax
je 0x44663c
lea ecx, [ebp - 0xd4]
push ecx
call eax
jmp 0x446649
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x9c], 2
jne 0x446782
mov eax, dword [ebp - 0xa8]
cmp eax, 4
jbe 0x446782
and dword [esi + 8], 0
and dword [esi + 0xc], 0
mov dword [esi], eax
mov eax, dword [ebp - 0xa4]
lea ecx, [esi + 0x10]
push 0x4ec7ce
mov dword [esi + 4], eax
call dword [sym.imp.MSVCP71.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__::operator_char_const__]
cmp dword [ebp - 0xa8], 6
jne 0x44673f
push str.GetProductInfo
push str.kernel32.dll
call edi
push eax
call ebx
lea ecx, [ebp - 0xb0]
push ecx
push 0
push 0
push dword [ebp - 0xa8]
push dword [ebp - 0xa8]
call eax
mov eax, dword [ebp - 0xb0]
dec eax
je 0x446738
dec eax
je 0x446731
dec eax
je 0x44672a
dec eax
je 0x446723
sub eax, 0x2c
jne 0x4466e0
push str.Professional
lea ecx, [esi + 0x10]
call dword [sym.imp.MSVCP71.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__::operator_char_const__]
mov edi, dword [sym.imp.MSVCR71.dll_wcslen]
lea eax, [ebp - 0x98]
push eax
call edi
test eax, eax
pop ecx
jbe 0x44670e
push str.Service_Pack
call edi
lea eax, [ebp + eax*2 - 0x98]
push eax
call dword [sym.imp.MSVCR71.dll__wtoi]
pop ecx
pop ecx
mov dword [esi + 8], eax
mov ax, word [ebp - 0xd4]
test ax, ax
jne 0x446765
mov dword [esi + 0xc], 0x20
jmp 0x44677e
push str.Enterprise_Edition
jmp 0x4466d7
push str.Home_Premium_Edition
jmp 0x4466d7
push str.Home_Basic_Edition
jmp 0x4466d7
push str.Ultimate_Edition
jmp 0x4466d7
cmp dword [ebp - 0xa8], 5
jne 0x4466e0
cmp dword [ebp - 0xa4], 1
jne 0x4466e0
test byte [ebp + 0x6d], 2
je 0x4466d2
push str.Home_Edition
jmp 0x4466d7
cmp ax, 0xa
je 0x446777
cmp ax, 6
je 0x446777
cmp ax, 9
jne 0x44677e
mov dword [esi + 0xc], 0x40
mov al, 1
jmp 0x446784
xor al, al
pop ebx
mov ecx, dword [ebp + 0x70]
pop edi
xor ecx, ebp
pop esi
call fcn.004d1da7
add ebp, 0x74
leave
ret 4
Function at 0x446798
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x52e400]
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
xor eax, ebp
push 3
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4467d4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x44680c
push 0x28
pop eax
push esi
lea ecx, [ebp - 0x3c]
push ecx
push eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x446803
mov esi, dword [ebp - 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004d1da7
leave
ret
Function at 0x448403
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push esi
push dword [esp + 0xc]
call sub.MSVCR71.dll_strlen
pop ecx
push eax
push dword [esp + 0x10]
call fcn.0044fa33
add esp, 0xc
lea eax, [esi + 0x1c]
push eax
push dword [esp + 0x10]
call sub.MSVCR71.dll_strlen
pop ecx
push eax
push dword [esp + 0x14]
call fcn.0044fa33
add esp, 0xc
xor eax, eax
push eax
push eax
push esi
push 0x44824f
push eax
push eax
mov byte [esi + 0x38], al
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
pop esi
ret 8
Function at 0x449cab
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4df614
call fcn.004d1d50
push ecx
push ebx
push esi
xor ebx, ebx
mov esi, ecx
inc ebx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi + 0xc], ebx
xor edi, edi
lea ecx, [esi + 0x14]
mov dword [ebp - 4], edi
mov dword [esi], 0x4f6e04
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [esi + 0x30]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
lea eax, [esi + 0x80]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
push dword [ebp + 8]
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 5
mov dword [esi + 8], ebx
call dword [0x4eb738]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x78], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x7c], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x44b75e
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4df854
call fcn.004d1d50
mov eax, 0x4010
call fcn.004d1f10
mov eax, dword [0x52e400]
push ebx
push esi
xor eax, ebp
push edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov edi, ecx
push 0x4ec828
push eax
mov dword [ebp - 0x4018], edi
mov dword [ebp - 0x401c], eax
mov byte [ebp - 0x4011], 1
call dword [sym.imp.MSVCR71.dll__wfopen]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
pop ecx
pop ecx
jne 0x44b7b4
xor al, al
jmp 0x44b864
push ebx
add edi, 4
push ebx
mov ecx, edi
call fcn.0044b708
test byte [esi + 0xc], 0x10
jne 0x44b80a
cmp byte [ebp - 0x4011], bl
je 0x44b856
push esi
push 0x4000
lea eax, [ebp - 0x4010]
push 1
push eax
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
push ebx
push eax
lea eax, [ebp - 0x4010]
push eax
mov ecx, edi
call fcn.0040e232
test byte [esi + 0xc], 0x10
mov byte [ebp - 0x4011], al
je 0x44b7c6
cmp al, bl
je 0x44b856
mov edi, dword [ebp - 0x4018]
cmp dword [edi + 0x18], ebx
je 0x44b856
push 0x48
call fcn.004d1924
pop ecx
mov dword [ebp - 0x4018], eax
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x44b833
mov ecx, eax
call fcn.0040e135
mov ebx, eax
push dword [ebp - 0x401c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0x10]
call dword [0x4eb738]
mov ecx, dword [edi + 0x18]
push ebx
call fcn.004496ee
mov ecx, ebx
call fcn.0040de1d
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
mov al, byte [ebp - 0x4011]
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.004d1da7
leave
ret 4
Function at 0x44bb6b
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x394]
sub esp, 0x414
mov eax, dword [0x52e400]
xor eax, ebp
mov dword [ebp + 0x390], eax
mov eax, dword [ebp + 0x39c]
push esi
mov esi, dword [ebp + 0x3a8]
cmp dword [esi + 0x18], 0x10
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x3a4]
push edi
mov dword [ebp - 0x80], eax
lea edi, [esi + 4]
jb 0x44bbad
mov eax, dword [edi]
jmp 0x44bbaf
mov eax, edi
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
je 0x44bc5f
cmp dword [esi + 0x18], 0x10
jb 0x44bbcb
mov edi, dword [edi]
push ebx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x7c], eax
je 0x44bc5c
mov esi, dword [ebp + 0x3a0]
push ebx
lea ecx, [ebp - 0x78]
push ecx
push esi
push dword [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x78], esi
jne 0x44bc53
cmp eax, ebx
je 0x44bc53
xor eax, eax
push ebx
mov byte [ebp - 0x74], bl
mov ecx, 0x100
lea edi, [ebp - 0x73]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x78]
push eax
push 0x400
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44bc53
push dword [ebp - 0x78]
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.MSVCP71.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_char_const___unsigned_int_]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x44bc5e
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ebx
mov ecx, dword [ebp + 0x390]
pop edi
xor ecx, ebp
pop esi
call fcn.004d1da7
add ebp, 0x394
leave
ret 0x10
Function at 0x44e9eb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
xor ecx, ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
xor eax, eax
mov dword [ebp - 0x54], ecx
lea edi, [ebp - 0x50]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [sym.imp.MSVCR71.dll_malloc]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], ecx
xor ebx, ebx
mov dword [ebp - 0x10], ecx
jmp 0x44ea32
xor ecx, ecx
push 6
push ecx
lea eax, [ebp - 0x30]
push eax
call sub.MSVCR71.dll_memset
push 0x10
lea eax, [ebp - 0x40]
push 0
push eax
call sub.MSVCR71.dll_memset
mov ecx, dword [ebp - 0x10]
add esp, 0x18
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + ecx*4]
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x44eb55
push 1
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x48]
call fcn.0044e75c
add esp, 0x10
test eax, eax
je 0x44eb55
push dword [ebp + 0x14]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x44]
call fcn.0044e75c
add esp, 0x10
test eax, eax
je 0x44eb55
push dword [ebp - 0x24]
call edi
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
call edi
push dword [ebp - 0x20]
mov ebx, eax
call edi
push dword [ebp - 0x18]
mov dword [ebp - 4], eax
call edi
add esp, 0x10
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x44eb55
test ebx, ebx
je 0x44eb61
cmp dword [ebp - 4], 0
je 0x44eb55
test eax, eax
je 0x44eb55
push 1
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0x48]
call fcn.0044e7ca
add esp, 0x10
test eax, eax
je 0x44eb55
push dword [ebp + 0x14]
push dword [ebp - 0xc]
push ebx
push dword [ebp - 0x44]
call fcn.0044e7ca
add esp, 0x10
test eax, eax
je 0x44eb55
shl dword [ebx + 8], 1
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
push ebx
push dword [ebp + 8]
call esi
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0xc]
push dword [ebp + 8]
call esi
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
push dword [ebp - 4]
push dword [ebp + 8]
call esi
inc dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x10]
jl 0x44ea30
test ebx, ebx
je 0x44eb61
push ebx
call dword [sym.imp.MSVCR71.dll_free]
pop ecx
cmp dword [ebp - 8], 0
je 0x44eb71
push dword [ebp - 8]
call dword [sym.imp.MSVCR71.dll_free]
pop ecx
cmp dword [ebp - 0xc], 0
je 0x44eb81
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR71.dll_free]
pop ecx
cmp dword [ebp - 4], 0
je 0x44eb91
push dword [ebp - 4]
call dword [sym.imp.MSVCR71.dll_free]
pop ecx
cmp dword [ebp - 0x44], 0
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x44eba2
push dword [ebp - 0x44]
call esi
cmp dword [ebp - 0x48], 0
je 0x44ebad
push dword [ebp - 0x48]
call esi
mov eax, dword [ebp - 0x28]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44ecc7
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov eax, 0x4dfa9d
call fcn.004d1d50
sub esp, 0x2a8
mov eax, dword [0x52e400]
push ebx
xor eax, ebp
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.004529e8
and dword [ebp - 4], 0
push 0x4ef170
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00407aea
add esp, 0x14
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x44ed49
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], ebx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
jmp 0x44edf3
push edi
mov edi, dword [sym.imp.MSVCR71.dll_wcscmp]
lea eax, [ebp - 0x288]
push 0x4ec848
push eax
call edi
test eax, eax
pop ecx
pop ecx
je 0x44edc3
lea eax, [ebp - 0x288]
push 0x4ec840
push eax
call edi
test eax, eax
pop ecx
pop ecx
je 0x44edc3
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00407aea
add esp, 0xc
push esi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call edi
test eax, eax
pop ecx
pop ecx
je 0x44edb6
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea eax, [ebp - 0x2b4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x44ed50
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], al
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.004d1da7
leave
ret
Function at 0x44ee0b
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4dfab0
call fcn.004d1d50
sub esp, 0x28
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jl 0x44ef0e
cmp eax, 1
jle 0x44ee4c
cmp eax, 4
je 0x44ee4c
cmp eax, 8
je 0x44ee4c
cmp eax, 0x10
je 0x44ee4c
cmp eax, 0x18
je 0x44ee4c
cmp eax, 0x20
jne 0x44ef0e
cmp dword [ebp + 8], ebx
je 0x44ef0e
cmp dword [ebp + 0x10], ebx
je 0x44ef0e
push dword [ebp + 0x10]
lea eax, [ebp - 0x34]
push eax
call fcn.004529e8
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call fcn.0045254a
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x44ef0e
push esi
push 6
lea eax, [ebp - 0x18]
push ebx
push eax
call sub.MSVCR71.dll_memset
mov esi, dword [ebp + 0xc]
add esp, 0xc
push ebx
lea eax, [ebp - 0x10]
push eax
push 6
lea eax, [ebp - 0x18]
push eax
push edi
mov word [ebp - 0x16], 1
mov word [ebp - 0x14], si
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
push edi
call fcn.0044e81a
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
push edi
call fcn.0044e9eb
mov esi, eax
add esp, 0x20
cmp esi, ebx
je 0x44ef02
push dword [ebp + 0x10]
call fcn.0044ecc7
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
jmp 0x44ef10
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x44f3f2
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x44f439
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x44f439
xor edx, edx
mov eax, esi
shl eax, 3
push 6
pop ecx
div ecx
lea ecx, [eax + eax*2]
shl ecx, 1
mov edx, ecx
mov ecx, esi
shl ecx, 3
sub ecx, edx
dec ecx
dec ecx
je 0x44f42c
dec ecx
dec ecx
jne 0x44f42f
inc eax
inc eax
jmp 0x44f42f
add eax, 3
mov ecx, dword [ebp + 0xc]
inc eax
cmp dword [ecx], eax
jae 0x44f440
mov dword [ecx], eax
push 0xfffffffffffffff0
pop eax
pop edi
pop esi
leave
ret
push ebx
xor edx, edx
push 3
pop ecx
mov eax, esi
div ecx
mov ecx, dword [ebp + 8]
xor edx, edx
lea eax, [eax + eax*2]
test eax, eax
jbe 0x44f4c6
push 3
dec eax
pop esi
div esi
inc eax
lea edx, [eax + eax*2]
mov dword [ebp - 4], edx
movzx esi, byte [edi]
inc edi
movzx edx, byte [edi]
mov ebx, esi
shr ebx, 2
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc edi
mov dword [ebp + 0x10], edx
movzx edx, byte [edi]
mov byte [ecx], bl
mov ebx, dword [ebp + 0x10]
shr ebx, 4
shl esi, 4
add ebx, esi
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc edi
inc ecx
mov byte [ecx], bl
mov ebx, dword [ebp + 0x10]
mov esi, edx
shr esi, 6
lea esi, [esi + ebx*4]
and esi, 0x3f
mov bl, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], bl
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
inc ecx
dec eax
jne 0x44f463
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
cmp edx, esi
jae 0x44f51b
movzx eax, byte [edi]
inc edx
cmp edx, esi
jae 0x44f4d8
movzx edi, byte [edi + 1]
jmp 0x44f4da
xor edi, edi
mov ebx, eax
shr ebx, 2
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], bl
shl eax, 4
mov ebx, edi
shr ebx, 4
add ebx, eax
and ebx, 0x3f
mov al, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
cmp edx, esi
jae 0x44f513
and edi, 0xf
mov al, byte [edi*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
jmp 0x44f516
mov byte [ecx], 0x3d
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov edx, dword [ebp + 0xc]
mov eax, ecx
sub eax, dword [ebp + 8]
pop ebx
mov dword [edx], eax
mov byte [ecx], 0
xor eax, eax
jmp 0x44f43c
Function at 0x44f530
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
push ebx
push esi
push edi
je 0x44f646
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x44f646
xor esi, esi
xor ebx, ebx
xor edx, edx
test edi, edi
jbe 0x44f642
mov eax, edi
sub eax, edx
cmp eax, 2
jb 0x44f571
cmp byte [edx + ecx], 0xd
jne 0x44f571
cmp byte [edx + ecx + 1], 0xa
je 0x44f5ac
mov al, byte [edx + ecx]
cmp al, 0xa
je 0x44f5ac
cmp al, 0x3d
jne 0x44f586
inc ebx
cmp ebx, 2
ja 0x44f646
cmp al, 0x7f
ja 0x44f646
movzx eax, al
mov al, byte [eax + 0x4f7138]
cmp al, 0x7f
je 0x44f646
cmp al, 0x40
jae 0x44f5ab
test ebx, ebx
jne 0x44f646
inc esi
inc edx
cmp edx, edi
jb 0x44f55b
test esi, esi
je 0x44f642
mov ecx, dword [ebp + 0xc]
lea eax, [esi + esi*2]
lea eax, [eax + eax + 7]
shr eax, 3
cmp dword [ecx], eax
jae 0x44f5d0
mov dword [ecx], eax
push 0xfffffffffffffff0
jmp 0x44f648
mov ecx, dword [ebp + 8]
push 3
xor ebx, ebx
xor esi, esi
test edx, edx
pop edi
jbe 0x44f63a
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0xd
je 0x44f632
cmp al, 0xa
je 0x44f632
movzx eax, al
movzx eax, byte [eax + 0x4f7138]
xor edx, edx
cmp al, 0x40
sete dl
shl ebx, 6
and eax, 0x3f
or eax, ebx
mov ebx, eax
sub edi, edx
inc esi
cmp esi, 4
jne 0x44f632
xor esi, esi
test edi, edi
jbe 0x44f61d
shr eax, 0x10
mov byte [ecx], al
inc ecx
cmp edi, 1
jbe 0x44f62a
mov eax, ebx
shr eax, 8
mov byte [ecx], al
inc ecx
cmp edi, 2
jbe 0x44f632
mov byte [ecx], bl
inc ecx
inc dword [ebp + 0x10]
dec dword [ebp - 4]
jne 0x44f5e1
sub ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
xor eax, eax
jmp 0x44f649
push 0xffffffffffffffee
pop eax
pop edi
pop esi
pop ebx
leave
ret