joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411d22
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x813520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040b081
and dword [ebp - 0x14], 0
cmp dword [0x816374], 0
mov dword [ebp - 0x18], eax
jne CopyFileW
push 0x403954
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je ReadConsoleW
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403948
push ebx
call edi
test eax, eax
je CreateActCtxA
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403938
push ebx
mov dword [0x816374], eax
call edi
push eax
call esi
push 0x403924
push ebx
mov dword [0x816378], eax
call edi
push eax
call esi
push 0x403908
push ebx
mov dword [0x81637c], eax
call edi
push eax
call esi
mov dword [0x816384], eax
test eax, eax
je CopyFileW
push 0x4038f0
push ebx
call edi
push eax
call esi
mov dword [0x816380], eax
mov eax, dword [0x816380]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x411e2e
cmp dword [0x816384], ecx
je 0x411e2e
push eax
call esi
push dword [0x816384]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x411e2e
test ebx, ebx
je HeapCreate
call edi
test eax, eax
je GetFileAttributesW
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je GetFileAttributesW
test byte [ebp - 8], 1
jne 0x411e2e
or dword [ebp + 0x10], 0x200000
jmp 0x411e61
mov eax, dword [0x816378]
cmp eax, dword [ebp - 0x18]
je 0x411e61
push eax
call esi
test eax, eax
je 0x411e61
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x411e61
mov eax, dword [0x81637c]
cmp eax, dword [ebp - 0x18]
je 0x411e61
push eax
call esi
test eax, eax
je 0x411e61
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [GetTimeZoneInformation]
call esi
test eax, eax
je 0x411e7d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp CreateActCtxA
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408981
leave
ret
Function at 0x80eac0
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0xc0c
cmp dword [0xb9b100], 0x37
jne 0x80eb58
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FatalAppExitW]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
push 0
lea eax, [esp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileSectionW]
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0x404228
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push 0
push 0
push 0
push 0x404240
push 0x404290
push 0x4042d0
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov ecx, dword [0xb9b104]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x81b164]
mov byte [ecx + esi], al
add esp, 0xc0c
ret
Function at 0x80edc0
Capabilities:
Enumerate files on windows
Manipulate console buffer
Move file
Read .ini file

Disassembly:
mov eax, dword [0xb9b100]
mov ecx, dword [0x81b164]
sub esp, 0xdbc
push ebx
push ebp
shr eax, 3
xor ebx, ebx
push esi
push edi
cmp eax, ebx
jbe 0x80efd4
mov edi, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], eax
jmp 0x80edf6
mov edi, dword [esp + 0x1c]
xor ebx, ebx
cmp dword [0xb9b100], 0x1c
jne 0x80ee0d
lea eax, [esp + 0x3c]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov ecx, dword [edi + 4]
mov edx, dword [0x814700]
mov eax, dword [0x814704]
mov esi, dword [edi]
mov ebp, dword [0x814708]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x81470c]
mov edi, 0xc6ef3720
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], 0x20
jmp 0x80ee4a
xor ebx, ebx
mov eax, esi
mov edx, esi
shl eax, 4
shr edx, 5
add edx, dword [esp + 0x30]
add eax, ebp
lea ecx, [edi + esi]
xor eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
mov dword [0xb9a084], ebx
mov eax, dword [esp + 0x18]
add dword [0xb9a084], eax
mov edx, dword [0xb9a084]
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x28]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
sub dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
shl ecx, 4
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x2c]
add dword [esp + 0x10], eax
cmp dword [0xb9b100], 0x1be
mov eax, dword [esp + 0x14]
lea ebx, [edi + eax]
jne 0x80eee4
lea edx, [esp + 0x38]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov eax, dword [esp + 0x14]
shr eax, 5
add eax, dword [esp + 0x34]
cmp dword [0xb9b100], 0x979
mov dword [0xb9a088], 0xff6b3619
mov dword [0xb9a08c], 0xffffffff
mov dword [esp + 0x18], eax
jne 0x80ef4f
push 0x404120
push 0
lea eax, [esp + 0x5d0]
push eax
push 0x404198
push 0x4041b8
push 0x404214
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0
lea ecx, [esp + 0x1cc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
xor dword [esp + 0x10], ebx
mov eax, dword [esp + 0x18]
xor dword [esp + 0x10], eax
mov eax, dword [0xb9b100]
sub esi, dword [esp + 0x10]
cmp eax, 0x93
je 0x80ef71
add edi, 0x61c88647
dec dword [esp + 0x20]
jne 0x80ee48
cmp eax, 0x8d4
jne 0x80ef8d
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [edi], esi
mov dword [edi + 4], eax
cmp dword [0xb9b100], 0x17
jne 0x80efc3
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea ecx, [esp + 0x88]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add edi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x1c], edi
jne 0x80edf0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xdbc
ret
Function at 0x401000
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4cb0d9
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4fcb54]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
call fcn.00484590
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x401043
push 0x80004005
call fcn.004021e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x18], ebx
lea edi, [esi + 4]
call fcn.00484590
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x401072
push 0x80004005
call fcn.004021e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
mov ecx, esi
mov byte [esp + 0x18], 3
call fcn.004024c0
mov ecx, edi
call fcn.004024c0
mov ecx, esi
call fcn.00431ac0
mov dword [esi + 0x28], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x4010c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c68be
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4fcb54]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
lea eax, [esi + 0x30]
mov dword [esp + 0x14], 2
call fcn.00401210
lea ebx, [esi + 0x2c]
mov byte [esp + 0x14], 1
cmp dword [ebx], 0
je 0x401108
call fcn.004011b0
mov dword [ebx], 0
mov byte [esp + 0x14], 0
mov eax, dword [esi + 4]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401132
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401158
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x401e20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cf11c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4fcb54]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x30]
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x14], ebx
call fcn.00401c30
mov eax, dword [edi + 4]
mov esi, dword [eax + 0xc]
mov edx, dword [esp + 0x34]
xor ecx, ecx
cmp esi, ebp
setne cl
mov dword [eax + 0x10], ebp
mov dword [eax + 0x20], ebp
mov dword [eax + 0x24], ebp
mov dword [eax + 0x1c], ecx
mov eax, dword [edx]
push ecx
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [edi + 4]
call fcn.00430660
test al, al
je 0x401fdd
mov ecx, edi
call fcn.0043ed90
test al, al
setne byte [esp + 0x34]
lea esp, [esp]
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
push ecx
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [edi + 4]
call fcn.00430660
test al, al
je 0x401fd0
cmp byte [esp + 0x34], 0
je 0x401fd0
push 0xc
call fcn.004841c7
mov esi, eax
add esp, 4
mov dword [esp + 0x34], esi
cmp esi, ebp
mov dword [esp + 0x28], ebp
je 0x401f29
push 0x4dfd54
lea ecx, [esp + 0x20]
call fcn.00402520
mov byte [esp + 0x28], 1
or ebx, 1
push 0x4dfd54
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebx
call fcn.00402520
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
or ebx, 2
mov dword [esp + 0x30], 2
push esi
mov dword [esp + 0x20], ebx
call fcn.004012e0
mov esi, eax
jmp 0x401f2b
xor esi, esi
test bl, 2
mov dword [esp + 0x28], 3
je 0x401f5f
mov eax, dword [esp + 0x18]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401f5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, 1
mov dword [esp + 0x28], 0xffffffff
je 0x401f8f
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
and ebx, 0xfffffffe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401f8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebp
je 0x401fc6
push esi
call fcn.004013c0
test al, al
je 0x401fb1
mov ecx, dword [esp + 0x30]
push esi
mov byte [esp + 0x38], 1
call fcn.004842bf
jmp 0x401ea0
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 1
mov ecx, esi
mov byte [esp + 0x38], 0
call eax
jmp 0x401ea0
mov byte [esp + 0x34], 0
jmp 0x401ea0
mov ecx, edi
call fcn.0043ee80
mov al, byte [esp + 0x34]
jmp 0x401fdf
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc
Function at 0x402790
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4027a9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4027e4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4027e0
lea ebx, [ebx]
cmp esi, eax
jae 0x4027e4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4027d0
cmp esi, eax
jb 0x4027ea
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x404510
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x5040c0]
push eax
call fcn.004a3585
add esp, 4
test eax, eax
je 0x404524
jmp eax
push 2
call fcn.004a319f
add esp, 4
jmp fcn.00404540

Function at 0x404540
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x334
mov eax, dword [0x4fcb54]
xor eax, esp
mov dword [esp + 0x330], eax
push esi
mov dword [esp + 0x110], eax
mov dword [esp + 0x10c], ecx
mov dword [esp + 0x108], edx
mov dword [esp + 0x104], ebx
mov dword [esp + 0x100], esi
mov dword [esp + 0xfc], edi
mov word [esp + 0x128], ss
mov word [esp + 0x11c], cs
mov word [esp + 0xf8], ds
mov word [esp + 0xf4], es
mov word [esp + 0xf0], fs
mov word [esp + 0xec], gs
pushfd
pop dword [esp + 0x120]
mov esi, dword [ebp + 4]
lea eax, [ebp + 4]
mov dword [esp + 0x124], eax
mov ecx, eax
push 0x50
lea eax, [esp + 0x14]
mov dword [esp + 0x64], 0x10001
mov dword [esp + 0x11c], esi
mov edx, dword [ecx - 4]
push 0
push eax
mov dword [esp + 0x120], edx
call fcn.004ac6c0
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x60]
push 0
mov dword [esp + 0x14], 0xc000000d
mov dword [esp + 0x20], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x404633
push 2
call fcn.004a319f
add esp, 4
push 0xc000000d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esp + 0x334]
pop esi
xor ecx, esp
call fcn.004a3135
mov esp, ebp
pop ebp
ret
Function at 0x4143b0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4c745b
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x4fcb54]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push edi
mov eax, dword [0x4fcb54]
xor eax, esp
push eax
lea eax, [esp + 0x160]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
mov edi, ecx
push edi
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x414415
push 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
jmp 0x41452e
call fcn.00484590
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41442f
push 0x80004005
call fcn.004021e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x16c], 0
call fcn.00414560
add esp, 4
push 0x4e2d74
lea eax, [esp + 0x10]
call fcn.0040d3b0
push 1
push 0x4e2d74
lea ecx, [esp + 0x14]
call fcn.004107a0
mov ebx, dword [esp + 0xc]
push 0
push 0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x4144c3
lea eax, [ebx - 0x10]
mov dword [esp + 0x168], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4144bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x41452e
test byte [esp + 0x10], 2
jne 0x4144d1
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [esp + 0x10], 4
jne 0x414502
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x414502
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x48]
mov edx, 0x104
call fcn.00411140
lea eax, [ebx - 0x10]
mov dword [esp + 0x168], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x414529
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.004a3135
add esp, 0x160
ret
Function at 0x416170
Capabilities:
Encode data using base64

Disassembly:
xor edx, edx
sub esp, 0xc
xor eax, eax
cmp dword [esp + 0x10], edx
je 0x416321
cmp dword [esp + 0x14], edx
mov dword [esp], edx
jbe 0x416321
push ebx
push ebp
push edi
lea ebp, [edx + 1]
jmp 0x4161a4
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
movzx edi, byte [edx + edi]
add edx, ebp
shl edi, 8
cmp edx, dword [esp + 0x20]
mov dword [esp + 0x14], edx
jae 0x4161cd
mov ebx, dword [esp + 0x1c]
movzx ebx, byte [edx + ebx]
or edi, ebx
add edx, ebp
mov dword [esp + 0x14], edx
jmp 0x4161d1
add dword [esp + 0xc], ebp
shl edi, 8
cmp edx, dword [esp + 0x20]
jae 0x4161f0
mov ebx, dword [esp + 0x1c]
movzx ebx, byte [edx + ebx]
or edi, ebx
mov ebx, dword [esp + 0xc]
add edx, ebp
mov dword [esp + 0x14], edx
jmp 0x4161fa
mov ebx, dword [esp + 0xc]
add ebx, ebp
mov dword [esp + 0xc], ebx
test ebx, ebx
je 0x41620b
sub ebx, ebp
mov byte [esp + 0x13], 0x3d
mov dword [esp + 0xc], ebx
jmp 0x41621a
mov edx, edi
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esp + 0x13], dl
shr edi, 6
test ebx, ebx
je 0x41622e
sub ebx, ebp
mov byte [esp + 0x12], 0x3d
mov dword [esp + 0xc], ebx
jmp 0x41623d
mov edx, edi
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esp + 0x12], dl
shr edi, 6
test ebx, ebx
je 0x41625d
sub ebx, ebp
test ebx, ebx
mov byte [esp + 0x11], 0x3d
mov dword [esp + 0xc], ebx
je 0x41626c
sub ebx, ebp
mov dl, 0x3d
mov dword [esp + 0xc], ebx
jmp 0x416278
mov edx, edi
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esp + 0x11], dl
shr edi, 6
and edi, 0x3f
mov dl, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edi, dword [esp + 0x24]
xor ebx, ebx
cmp edi, ebx
je 0x416296
cmp dword [ecx + 4], edi
jb 0x416296
mov byte [eax + esi], 0xd
add eax, ebp
mov byte [eax + esi], 0xa
add eax, ebp
mov dword [ecx + 4], ebx
mov byte [eax + esi], dl
add dword [ecx + 4], ebp
mov edx, dword [ecx + 4]
add eax, ebp
cmp edi, ebx
je 0x4162b8
cmp edx, edi
jb 0x4162b8
mov byte [eax + esi], 0xd
add eax, ebp
mov byte [eax + esi], 0xa
add eax, ebp
mov dword [ecx + 4], ebx
mov dl, byte [esp + 0x11]
mov byte [eax + esi], dl
add dword [ecx + 4], ebp
mov edx, dword [ecx + 4]
add eax, ebp
cmp edi, ebx
je 0x4162de
cmp edx, edi
jb 0x4162de
mov byte [eax + esi], 0xd
add eax, ebp
mov byte [eax + esi], 0xa
add eax, ebp
mov dword [ecx + 4], ebx
mov dl, byte [esp + 0x12]
mov byte [eax + esi], dl
add dword [ecx + 4], ebp
mov edx, dword [ecx + 4]
add eax, ebp
cmp edi, ebx
je 0x416304
cmp edx, edi
jb 0x416304
mov byte [eax + esi], 0xd
add eax, ebp
mov byte [eax + esi], 0xa
add eax, ebp
mov dword [ecx + 4], ebx
mov dl, byte [esp + 0x13]
mov byte [eax + esi], dl
mov edx, dword [esp + 0x20]
add dword [ecx + 4], ebp
add eax, ebp
cmp dword [esp + 0x14], edx
jb 0x4161a0
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x416330
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [eax]
mov eax, dword [edi - 0xc]
add eax, edi
xor ecx, ecx
xor ebp, ebp
cmp edi, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jb 0x416364
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0xc
ret 8
mov eax, dword [esp + 0x18]
xor ebx, ebx
mov dword [esp + 0x10], ebx
lea ebx, [ebx]
cmp edi, eax
jae 0x4163e2
mov cl, byte [edi]
movsx edx, cl
lea esi, [edx - 9]
add edi, 1
cmp esi, 0x17
ja case.0x41638b.11
movzx esi, byte [esi + 0x41646c]
jmp dword [esi*4 + 0x416464]
shl ebx, 6
cmp cl, 0x60
jle 0x4163a1
add edx, 0xffffffb9
or ebx, edx
jmp 0x4163d2
cmp cl, 0x40
jle 0x4163ad
add edx, 0xffffffbf
or ebx, edx
jmp 0x4163d2
cmp cl, 0x3d
jne 0x4163b7
add ebp, 1
jmp 0x4163d2
cmp cl, 0x2f
jle 0x4163c3
add edx, 4
or ebx, edx
jmp 0x4163d2
jne 0x4163ca
or ebx, 0x3f
jmp 0x4163d2
cmp cl, 0x2b
jne 0x4163d2
or ebx, 0x3e
add dword [esp + 0x10], 1
cmp dword [esp + 0x10], 4
mov ecx, dword [esp + 0x14]
jb 0x416370
mov eax, dword [esp + 0x10]
cmp eax, 4
jne 0x41644f
lea eax, [ecx + 3]
mov edx, eax
sub edx, ebp
cmp edx, dword [esp + 0x24]
ja 0x416443
cmp eax, ecx
je 0x416420
lea esp, [esp]
sub eax, 1
test ebp, ebp
je 0x416412
mov edx, ecx
sub edx, ebp
add edx, 3
cmp eax, edx
jae 0x416419
mov edx, dword [esp + 0x20]
mov byte [eax + edx], bl
shr ebx, 8
cmp eax, ecx
jne 0x416400
mov eax, 3
sub eax, ebp
add ecx, eax
cmp edi, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
jb 0x416360
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0xc
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 8
neg eax
pop edi
sbb eax, eax
pop esi
not eax
pop ebp
and eax, ecx
pop ebx
add esp, 0xc
ret 8
Function at 0x416490
Capabilities:
Encode data using base64

Disassembly:
sub esp, 8
cmp dword [esp + 0xc], 0
jne 0x4164a2
xor eax, eax
add esp, 8
ret 8
push ebx
push ebp
push esi
lea edx, [eax + ecx]
push edi
xor ecx, ecx
xor edi, edi
cmp eax, edx
mov ebp, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
jae 0x416585
nop
xor eax, eax
xor ebx, ebx
cmp ebp, edx
jae 0x416537
mov cl, byte [ebp]
movsx edx, cl
lea esi, [edx - 9]
add ebp, 1
cmp esi, 0x17
ja case.0x4164e0.11
movzx esi, byte [esi + 0x4165b8]
jmp dword [esi*4 + 0x4165b0]
shl ebx, 6
cmp cl, 0x60
jle 0x4164f6
add edx, 0xffffffb9
or ebx, edx
jmp 0x416527
cmp cl, 0x40
jle 0x416502
add edx, 0xffffffbf
or ebx, edx
jmp 0x416527
cmp cl, 0x3d
jne 0x41650c
add edi, 1
jmp 0x416527
cmp cl, 0x2f
jle 0x416518
add edx, 4
or ebx, edx
jmp 0x416527
jne 0x41651f
or ebx, 0x3f
jmp 0x416527
cmp cl, 0x2b
jne 0x416527
or ebx, 0x3e
add eax, 1
cmp eax, 4
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
jb 0x4164c4
cmp eax, 4
jne 0x41659d
lea eax, [ecx + 3]
mov esi, eax
sub esi, edi
cmp esi, dword [esp + 0x20]
ja 0x416591
cmp eax, ecx
je 0x416570
lea ecx, [ecx]
sub eax, 1
test edi, edi
je 0x416562
mov esi, ecx
sub esi, edi
add esi, 3
cmp eax, esi
jae 0x416569
mov esi, dword [esp + 0x1c]
mov byte [eax + esi], bl
shr ebx, 8
cmp eax, ecx
jne 0x416550
mov eax, 3
sub eax, edi
add ecx, eax
cmp ebp, edx
mov dword [esp + 0x10], ecx
jb 0x4164c0
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 8
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
neg eax
pop edi
sbb eax, eax
pop esi
not eax
pop ebp
and eax, ecx
pop ebx
add esp, 8
ret 8
Function at 0x417500
Capabilities:
Get disk size

Disassembly:
sub esp, 0x2c
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x41754b
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41754b
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x28]
push ecx
push edi
call eax
test eax, eax
je 0x41758a
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [esi + 4], eax
mov dword [esi], edx
xor eax, eax
add esp, 0x2c
ret
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x41758a
mov eax, dword [esp]
mul dword [esp + 4]
mov ecx, dword [esp + 8]
push 0
push ecx
push edx
push eax
call fcn.004ae180
mov dword [esi], eax
mov dword [esi + 4], edx
xor eax, eax
add esp, 0x2c
ret
mov eax, 1
mov dword [esi + 4], 0
mov dword [esi], 0
add esp, 0x2c
ret

Function at 0x4175a0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x10
push edi
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
xor edi, edi
push eax
push ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4175fa
mov eax, dword [esp + 4]
mul dword [esp + 8]
mov ecx, dword [esp + 0xc]
push edi
push ecx
push edx
push eax
call fcn.004ae180
mov dword [esi], eax
mov dword [esi + 4], edx
xor eax, eax
pop edi
add esp, 0x10
ret
mov dword [esi], edi
mov dword [esi + 4], edi
mov eax, 1
pop edi
add esp, 0x10
ret