joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4045b7
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4d87b0
call fcn.004b0604
push ecx
push ebx
push esi
push dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp + 8]
mov dword [esi + 0x28], ebx
call fcn.004c75d8
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ebx
cmp dword [eax - 8], ebx
jne 0x404604
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00403c11
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004c76a3
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004c756a
push dword [0x4e7cc0]
push dword [ebp + 8]
call fcn.004b10d5
pop ecx
test eax, eax
pop ecx
jne 0x404620
lea ecx, [ebp + 8]
call fcn.004c74f5
cmp dword [esi + 0x24], ebx
jne 0x40464e
push ebx
push ebx
push ebx
push ebx
push 0xf003f
push 1
mov ecx, esi
call fcn.00403d84
test eax, eax
jne 0x40464e
push ebx
push ebx
push ebx
push ebx
push 2
push 1
mov ecx, esi
call fcn.00403d84
test eax, eax
je 0x404679
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, eax
and eax, 0xffff
or eax, 0x80070000
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esi + 0x28], ecx
xor eax, eax
cmp dword [esi + 0x28], ebx
lea ecx, [ebp + 8]
setge al
or dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.004c756a
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x404872
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x4d87ef
call fcn.004b0604
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [esi + 0x28], ebx
mov eax, dword [str.pRdR]
mov dword [ebp - 0x10], eax
cmp dword [esi + 0x24], ebx
mov dword [ebp - 4], 1
jne 0x4048c8
push ebx
push ebx
push ebx
push ebx
push 0xf003f
push ebx
call fcn.00403d84
test eax, eax
jne 0x4048c8
push ebx
push ebx
push ebx
push ebx
push 8
push ebx
mov ecx, esi
call fcn.00403d84
test eax, eax
je 0x404967
push edi
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x14]
mov eax, 0x12c
push ebx
push ecx
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.004c799a
push eax
push dword [ebp + 0xc]
push dword [esi + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edi, 0xffff
mov ecx, eax
and eax, edi
or eax, 0x80070000
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esi + 0x28], ecx
and ecx, edi
cmp ecx, 0xea
jne 0x404954
push ebx
lea ecx, [ebp - 0x10]
call fcn.004c79e9
mov ecx, esi
call fcn.004047e2
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x14]
inc eax
push ebx
push ecx
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.004c799a
push eax
push dword [ebp + 0xc]
push dword [esi + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, eax
and eax, edi
or eax, 0x80070000
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esi + 0x28], ecx
cmp dword [esi + 0x28], ebx
pop edi
jl 0x40495e
push 0xffffffffffffffff
jmp 0x40495f
push ebx
lea ecx, [ebp - 0x10]
call fcn.004c79e9
cmp dword [esi + 0x28], ebx
jl 0x404981
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004c72df
mov dword [ebp - 0x18], 1
jmp 0x404995
mov ecx, dword [ebp + 8]
push 0x524a50
call fcn.004c75d8
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004c756a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4049b3
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4d881b
call fcn.004b0604
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [esi + 0x28], ebx
mov eax, dword [str.pRdR]
mov dword [ebp - 0x10], eax
cmp dword [esi + 0x24], ebx
mov dword [ebp - 4], 1
jne 0x404a09
push ebx
push ebx
push ebx
push ebx
push 0xf003f
push ebx
call fcn.00403d84
test eax, eax
jne 0x404a09
push ebx
push ebx
push ebx
push ebx
push 9
push ebx
mov ecx, esi
call fcn.00403d84
test eax, eax
je 0x404ac6
push edi
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x14]
mov eax, 0x12c
push ebx
push ecx
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.004c799a
push eax
push dword [ebp + 0xc]
push dword [esi + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov edi, 0xffff
mov ecx, eax
and eax, edi
or eax, 0x80070000
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esi + 0x28], ecx
and ecx, edi
cmp ecx, 0xea
jne 0x404a95
push ebx
lea ecx, [ebp - 0x10]
call fcn.004c79e9
mov ecx, esi
call fcn.00404842
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x14]
inc eax
push ebx
push ecx
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.004c799a
push eax
push dword [ebp + 0xc]
push dword [esi + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ecx, eax
and eax, edi
or eax, 0x80070000
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esi + 0x28], ecx
cmp dword [esi + 0x28], ebx
pop edi
jl 0x404abd
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004c79e9
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], ebx
jne 0x404ac6
push dword [0x4e7cc0]
lea ecx, [ebp - 0x10]
call fcn.004c76f3
jmp 0x404ac6
push ebx
lea ecx, [ebp - 0x10]
call fcn.004c79e9
cmp dword [esi + 0x28], ebx
jl 0x404ae0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004c72df
mov dword [ebp - 0x18], 1
jmp 0x404af4
mov ecx, dword [ebp + 8]
push 0x524a50
call fcn.004c75d8
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004c756a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x405498
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
je 0x4054ae
call fcn.00405528
test eax, eax
je 0x405520
cmp dword [ebp + 0x10], 0
lea edi, [esi + 0xc]
je 0x4054bc
push dword [ebp + 0x10]
jmp 0x4054bf
push dword [ebp + 0xc]
mov ecx, edi
call fcn.004c76f3
push 0xf003f
call fcn.004058e6
test eax, eax
pop ecx
je 0x405520
push dword [ebp + 0x34]
mov edi, dword [edi]
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 8]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
push dword [0x524a80]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
xor ecx, ecx
mov dword [esi + 4], eax
test eax, eax
setne cl
push ecx
mov ecx, esi
call fcn.0040588d
test eax, eax
je 0x405520
push 1
pop eax
jmp 0x405522
xor eax, eax
pop edi
pop esi
pop ebp
ret 0x30
Function at 0x405581
Capabilities:
Start service

Disassembly:
push esi
mov esi, ecx
push 0x10
call fcn.004058a9
test eax, eax
je 0x4055b1
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push eax
mov ecx, esi
call fcn.0040588d
test eax, eax
je 0x4055b1
push 1
pop eax
jmp 0x4055b3
xor eax, eax
pop esi
ret 8

Function at 0x4055b7
Capabilities:
Pause service

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
push 0x40
call fcn.004058a9
test eax, eax
je 0x4055e9
lea eax, [esp + 4]
push eax
push 2
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
push eax
mov ecx, esi
call fcn.0040588d
test eax, eax
je 0x4055e9
push 1
pop eax
jmp 0x4055eb
xor eax, eax
pop esi
add esp, 0x1c
ret

Function at 0x4055ba
Capabilities:
Pause service

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
push 0x40
call fcn.004058a9
test eax, eax
je 0x4055e9
lea eax, [esp + 4]
push eax
push 2
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
push eax
mov ecx, esi
call fcn.0040588d
test eax, eax
je 0x4055e9
push 1
pop eax
jmp 0x4055eb
xor eax, eax
pop esi
add esp, 0x1c
ret

Function at 0x4055f0
Capabilities:
Continue service

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
push 0x40
call fcn.004058a9
test eax, eax
je 0x405622
lea eax, [esp + 4]
push eax
push 3
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
push eax
mov ecx, esi
call fcn.0040588d
test eax, eax
je 0x405622
push 1
pop eax
jmp 0x405624
xor eax, eax
pop esi
add esp, 0x1c
ret

Function at 0x4055f3
Capabilities:
Continue service

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
push 0x40
call fcn.004058a9
test eax, eax
je 0x405622
lea eax, [esp + 4]
push eax
push 3
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
push eax
mov ecx, esi
call fcn.0040588d
test eax, eax
je 0x405622
push 1
pop eax
jmp 0x405624
xor eax, eax
pop esi
add esp, 0x1c
ret

Function at 0x405629
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
push 0x20
call fcn.004058a9
test eax, eax
je 0x40565b
lea eax, [esp + 4]
push eax
push 1
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
push eax
mov ecx, esi
call fcn.0040588d
test eax, eax
je 0x40565b
push 1
pop eax
jmp 0x40565d
xor eax, eax
pop esi
add esp, 0x1c
ret

Function at 0x40562c
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
push 0x20
call fcn.004058a9
test eax, eax
je 0x40565b
lea eax, [esp + 4]
push eax
push 1
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
push eax
mov ecx, esi
call fcn.0040588d
test eax, eax
je 0x40565b
push 1
pop eax
jmp 0x40565d
xor eax, eax
pop esi
add esp, 0x1c
ret

Function at 0x40595a
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40598f
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov esi, eax
test esi, esi
je 0x40598f
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.004c76f3
mov eax, esi
pop esi
leave
ret 4
Function at 0x405996
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4059d4
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x101
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov esi, eax
test esi, esi
je 0x4059d4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call fcn.004c76f3
mov eax, esi
pop esi
leave
ret 4

Function at 0x405b74
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x4d8994
call fcn.004b0604
sub esp, 0x2a4
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x405cd7
push str.WS2_32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x405cd7
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push str.WSAStartup
push eax
call esi
push str.gethostname
mov edi, eax
push dword [ebp - 0x10]
call esi
push str.gethostbyname
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x10]
call esi
push str.WSACleanup
mov dword [ebp - 0x18], eax
push dword [ebp - 0x10]
call esi
push str.inet_ntoa
mov dword [ebp - 0x14], eax
push dword [ebp - 0x10]
call esi
cmp edi, ebx
mov dword [ebp - 0x20], eax
je 0x405cc8
cmp dword [ebp - 0x1c], ebx
je 0x405cc8
cmp dword [ebp - 0x18], ebx
je 0x405cc8
cmp dword [ebp - 0x14], ebx
je 0x405cc8
cmp eax, ebx
je 0x405cc8
lea eax, [ebp - 0x2b0]
push eax
push 0x101
call edi
cmp eax, ebx
jne 0x405cc8
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jne 0x405c53
lea eax, [ebp - 0x120]
push 0xff
push eax
call dword [ebp - 0x1c]
neg eax
sbb eax, eax
inc eax
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x120]
je 0x405cc5
push eax
call dword [ebp - 0x18]
mov edi, eax
cmp edi, ebx
je 0x405cc5
mov eax, dword [edi + 0xc]
cmp dword [eax], ebx
je 0x405cc2
xor esi, esi
mov eax, dword [esi + eax]
movzx ecx, byte [eax + 3]
movzx edx, byte [eax + 2]
shl ecx, 8
add ecx, edx
movzx edx, byte [eax + 1]
movzx eax, byte [eax]
shl ecx, 8
add ecx, edx
shl ecx, 8
add ecx, eax
push ecx
call dword [ebp - 0x20]
push eax
lea ecx, [ebp + 0x10]
call fcn.004c75d8
mov edx, dword [ebp + 8]
push eax
mov dword [ebp - 4], ebx
mov ecx, dword [edx + 8]
push ecx
mov ecx, edx
call fcn.004c54bf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.004c756a
cmp dword [ebp + 0xc], ebx
jne 0x405cc2
mov eax, dword [edi + 0xc]
add esi, 4
cmp dword [esi + eax], ebx
jne 0x405c66
push 1
pop ebx
call dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, ebx
pop esi
jmp 0x405cd9
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x405d9c
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
je 0x405f6d
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x405f6d
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x405f6d
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x405f6d
mov eax, dword [ebp + 8]
test eax, eax
jl 0x405f6d
cmp eax, 0x1a
jge 0x405f6d
add eax, 0x41
push eax
lea eax, [ebp - 0x10]
push str._c:_
push eax
call fcn.004b176a
add esp, 0xc
mov eax, 0x105
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x1c], 0x104
push eax
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x405f6d
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x140]
push eax
call fcn.004c76f3
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov dword [ebx], eax
lea eax, [ebp - 0x14]
push eax
call fcn.00405d3d
test eax, eax
je 0x405f1b
cmp dword [ebp - 0x14], 0
je 0x405f1b
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x405f68
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405ebf
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x10]
push ecx
call eax
test eax, eax
jle 0x405f10
mov eax, dword [ebp - 0x24]
mov dword [edi], eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 4], eax
jmp 0x405f10
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x405f6d
mov eax, dword [ebp + 0x10]
mul dword [ebp + 0x14]
mov ebx, eax
push edx
push ebx
push 0
push dword [ebp + 0x18]
mov dword [ebp - 4], edx
call fcn.004b0d60
push dword [ebp - 4]
mov dword [edi], eax
mov dword [edi + 4], edx
push ebx
push 0
push dword [ebp + 8]
call fcn.004b0d60
mov dword [esi], eax
mov dword [esi + 4], edx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x405f68
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x405f6d
mov eax, dword [ebp + 0x10]
mul dword [ebp + 0x14]
mov ebx, eax
push edx
push ebx
push 0
push dword [ebp + 0x18]
mov dword [ebp - 4], edx
call fcn.004b0d60
push dword [ebp - 4]
mov dword [edi], eax
mov dword [edi + 4], edx
push ebx
push 0
push dword [ebp + 8]
call fcn.004b0d60
mov dword [esi], eax
mov dword [esi + 4], edx
push 1
pop eax
jmp 0x405f6f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x406697
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x10], ecx
xor eax, eax
mov edx, dword [ecx]
mov edi, dword [eax + 0x510778]
mov dword [eax + edx], edi
add eax, 4
cmp eax, 0x48
jb 0x4066a7
xor eax, eax
mov edx, pe_nt_image_headers32
mov edi, dword [ecx + 4]
mov ebx, dword [eax + 0x5107c0]
mov dword [eax + edi], ebx
add eax, 4
dec edx
jne 0x4066c1
cmp eax, 0x1000
jb 0x4066bc
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
jmp 0x4066e8
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
mov ecx, dword [ebp - 4]
add ecx, eax
lea eax, [esi + 1]
xor edx, edx
mov dword [ebp + 0xc], ecx
div ebx
xor ecx, ecx
lea eax, [esi + 2]
add dword [ebp - 4], 4
mov cl, byte [edx + edi]
xor edx, edx
div ebx
mov ch, byte [esi + edi]
shl ecx, 8
movzx eax, byte [edx + edi]
or ecx, eax
lea eax, [esi + 3]
xor edx, edx
div ebx
shl ecx, 8
movzx eax, byte [edx + edi]
or ecx, eax
mov eax, dword [ebp + 0xc]
xor edx, edx
xor dword [eax], ecx
lea eax, [esi + 4]
div ebx
cmp dword [ebp - 4], 0x48
mov esi, edx
jb 0x4066e5
mov esi, dword [ebp - 0x10]
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
lea eax, [ebp - 8]
push eax
call fcn.00405fb3
mov eax, dword [esi]
mov ecx, dword [ebp - 8]
mov dword [edi + eax], ecx
mov eax, dword [esi]
mov ecx, dword [ebp - 0xc]
mov dword [edi + eax + 4], ecx
add edi, 8
cmp edi, 0x48
jb 0x406744
push 4
pop edi
mov ebx, 0x80
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
lea eax, [ebp - 8]
push eax
call fcn.00405fb3
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 8]
mov dword [edi + eax - 4], ecx
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0xc]
mov dword [edi + eax], ecx
add edi, 8
dec ebx
jne 0x406774
cmp edi, 0x1004
jb 0x40676f
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x408c2d
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x4d8c7c
call fcn.004b0604
push ebx
push esi
push edi
mov esi, ecx
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [edi + 0x2c]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004c77ff
push eax
lea ecx, [esi + 4]
mov byte [ebp - 4], 1
call fcn.004c76a3
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.004c756a
mov eax, dword [edi]
push 1
push ebx
push ebx
mov dword [esi + 8], eax
push dword [edi + 0x1c]
call fcn.004b0d60
mov ecx, dword [edi + 0x20]
add eax, ecx
mov dword [esi + 0x10], eax
lea eax, [esi + 0x18]
push eax
lea eax, [edi + 4]
adc edx, ebx
and dword [esi + 0x30], ebx
and dword [esi + 0x2c], ebx
push eax
mov dword [esi + 0x14], edx
call fcn.00408cdd
lea eax, [esi + 0x1c]
push eax
lea eax, [edi + 0xc]
push eax
call fcn.00408cdd
lea eax, [esi + 0x20]
add edi, 0x14
push eax
push edi
call fcn.00408cdd
mov eax, dword [ebp + 0x10]
or dword [ebp - 4], 0xffffffff
add esp, 0x18
lea ecx, [ebp + 0xc]
mov dword [esi], eax
call fcn.004c756a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x408e15
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4d8cac
call fcn.004b0604
sub esp, 0x140
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push ebx
lea edi, [esi + 0x12]
push edi
call fcn.00408f57
pop ecx
test eax, eax
pop ecx
je 0x408e4a
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x408e54
and byte [edi], 0
xor eax, eax
jmp 0x408f48
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
lea ecx, [ebp + 8]
call fcn.004c75d8
mov eax, dword [str.pRdR]
and dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 1
push eax
push ebx
call fcn.00409040
pop ecx
pop ecx
push 0x511870
lea ecx, [ebp + 0xc]
call fcn.004c430d
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.004b0c2e
pop ecx
test eax, eax
pop ecx
jne 0x408eac
push 0x51186c
lea ecx, [ebp + 8]
call fcn.004c7946
lea eax, [ebp - 0x14c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x408ec5
xor esi, esi
jmp 0x408f2e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [ebp - 0x14c]
push esi
and al, 0x7f
mov byte [esi + 0x10], al
mov eax, dword [ebp - 0x130]
shl eax, 0x20
or eax, dword [ebp - 0x12c]
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x148]
push eax
call fcn.00408cdd
lea edi, [esi + 8]
lea eax, [ebp - 0x140]
push edi
push eax
call fcn.00408cdd
lea ebx, [esi + 4]
lea eax, [ebp - 0x138]
push ebx
push eax
call fcn.00408cdd
add esp, 0x18
cmp dword [esi], 0
jne 0x408f22
mov eax, dword [ebx]
mov dword [esi], eax
cmp dword [edi], 0
jne 0x408f2b
mov eax, dword [ebx]
mov dword [edi], eax
push 1
pop esi
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004c756a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004c756a
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x408f57
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4d8cc0
call fcn.004b0604
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push esi
push eax
mov esi, 0x104
push ebx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x408f96
push esi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
jmp 0x409032
mov eax, dword [str.pRdR]
push edi
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
xor edi, edi
push eax
push ebx
mov dword [ebp - 4], edi
call fcn.00409040
pop ecx
mov esi, 0x511870
pop ecx
push esi
lea ecx, [ebp + 8]
call fcn.004c430d
push esi
lea ecx, [ebp + 8]
call fcn.004c7946
push edi
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x409023
test byte [ebp - 0x10], 2
jne 0x408fee
push ebx
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp - 0x10], 4
jne 0x409020
lea eax, [ebp - 0x158]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x409020
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004c756a
mov eax, edi
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40aaf5
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0xc], ecx
cmp edi, edx
jne 0x40ab0f
xor eax, eax
jmp 0x40abbd
xor eax, eax
cmp dword [ebp + 0xc], edx
mov dword [ebp - 4], edx
jbe 0x40abbd
push ebx
push esi
jmp 0x40ab24
mov edi, dword [ebp + 8]
movzx esi, byte [edx + edi]
inc edx
shl esi, 8
cmp edx, dword [ebp + 0xc]
jae 0x40ab3a
movzx ebx, byte [edx + edi]
or esi, ebx
inc edx
jmp 0x40ab3d
inc dword [ebp - 4]
shl esi, 8
cmp edx, dword [ebp + 0xc]
jae 0x40ab4e
movzx edi, byte [edx + edi]
or esi, edi
inc edx
jmp 0x40ab51
inc dword [ebp - 4]
push 3
pop edi
cmp dword [ebp - 4], 0
je 0x40ab64
dec dword [ebp - 4]
mov byte [ebp + edi - 8], 0x3d
jmp 0x40ab79
mov ebx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, esi
and ecx, 0x3f
mov cl, byte [ecx + ebx]
mov byte [ebp + edi - 8], cl
mov ecx, dword [ebp - 0xc]
shr esi, 6
dec edi
jns 0x40ab54
xor esi, esi
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x40ab9e
cmp dword [ecx + 4], edi
jb 0x40ab9e
mov edi, dword [ebp + 0x10]
mov byte [eax + edi], 0xd
inc eax
mov byte [eax + edi], 0xa
inc eax
and dword [ecx + 4], 0
mov edi, dword [ebp + 0x10]
mov bl, byte [ebp + esi - 8]
mov byte [eax + edi], bl
inc eax
inc esi
inc dword [ecx + 4]
cmp esi, 4
jl 0x40ab81
cmp edx, dword [ebp + 0xc]
jb 0x40ab21
pop esi
pop ebx
pop edi
leave
ret 0x10