joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459f49
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push 0x2b8
mov eax, 0x5d1b66
call fcn.0044ac5a
mov esi, dword [ebp + 8]
push esi
call fcn.0047bb55
pop ecx
cmp eax, 3
jb 0x45a14c
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45a14c
push esi
lea ecx, [ebp - 0x28]
call fcn.00403040
lea eax, [ebp - 0x28]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.004555f3
mov ebx, 0x5d4d80
pop ecx
test eax, eax
jne 0x459fac
push ebx
call fcn.0047bb55
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.004058f0
xor eax, eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
call fcn.00446544
mov esi, 0x5d66bc
mov byte [ebp - 4], 2
push esi
call fcn.0047bb55
pop ecx
push eax
push esi
lea ecx, [ebp - 0x70]
call fcn.004058f0
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x2c0]
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x45a107
lea eax, [ebp - 0x2c0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x45a107
push 0x2e
pop eax
cmp word [ebp - 0x294], ax
je 0x45a010
cmp word [ebp - 0x292], 0
je 0x45a010
cmp word [ebp - 0x292], ax
jne 0x45a04f
cmp word [ebp - 0x290], 0
je 0x45a010
test byte [ebp - 0x2c0], 0x10
lea eax, [ebp - 0x28]
push eax
je 0x45a0bf
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
call fcn.00446544
lea eax, [ebp - 0x294]
mov byte [ebp - 4], 3
push eax
call fcn.0047bb55
pop ecx
push eax
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x40]
call fcn.004058f0
push ebx
call fcn.0047bb55
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x40]
call fcn.004058f0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00459f49
pop ecx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00402fe0
jmp 0x45a010
lea ecx, [ebp - 0x58]
call fcn.00417ad0
lea eax, [ebp - 0x294]
push eax
call fcn.0047bb55
pop ecx
push eax
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x58]
call fcn.004058f0
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00403040
call fcn.0045b56a
add esp, 0x18
jmp 0x45a010
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x20
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x70]
call fcn.00402fe0
lea ecx, [ebp - 0x58]
call fcn.00402fe0
lea ecx, [ebp - 0x28]
call fcn.00402fe0
call fcn.0044ac04
ret
Function at 0x45a152
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x664340]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x1a
push eax
push 0
call fcn.0045b2e0
lea eax, [ebp - 0x20c]
push eax
call fcn.0047bb55
add esp, 0x14
test eax, eax
je 0x45a1fd
push ebx
mov ebx, 0x5d4d80
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0047bbfb
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0047bbfb
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0047bbfb
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ebx
test eax, eax
jne 0x45a1e1
lea eax, [ebp - 0x20c]
push eax
call fcn.00459ec1
pop ecx
lea eax, [ebp - 0x20c]
push eax
call fcn.0047bb55
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00403240
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0044a851
leave
ret
Function at 0x45aaff
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x664340]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov bl, byte [0x6698b0]
test bl, bl
jne 0x45ab96
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0046cf80
add esp, 0xc
lea eax, [ebp - 0x20c]
xor ebx, ebx
inc ebx
push ebx
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x45ab90
lea eax, [ebp - 0x20c]
push eax
call fcn.0047a632
lea eax, [ebp - 0x20c]
mov dword [esp], 0x5dcf84
push eax
call fcn.0046d467
pop ecx
pop ecx
test eax, eax
jne 0x45ab88
lea eax, [ebp - 0x20c]
push str.documents_and_settingslocalservice
push eax
call fcn.0046d467
pop ecx
pop ecx
test eax, eax
je 0x45ab90
mov byte [0x6698b0], bl
jmp 0x45ab96
mov bl, byte [0x6698b0]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0044a851
leave
ret

Function at 0x45aba5
Capabilities:
Get common file path

Disassembly:
push 0x138
mov eax, 0x5d1c37
call fcn.0044ac5a
mov al, byte [0x6698b1]
test al, al
jne 0x45ac56
push 0x104
xor esi, esi
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.0046cf80
add esp, 0xc
lea eax, [ebp - 0x114]
xor edi, edi
inc edi
push edi
push 0x1a
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x45ac51
push str.config_systemprofile
lea ecx, [ebp - 0x144]
call fcn.00403210
lea eax, [ebp - 0x114]
mov dword [ebp - 4], esi
push eax
lea ecx, [ebp - 0x12c]
call fcn.00403210
push esi
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x12c]
call fcn.0045647f
movzx ecx, byte [0x6698b1]
cmp eax, 0xffffffff
cmovne ecx, edi
mov byte [0x6698b1], cl
lea ecx, [ebp - 0x12c]
call fcn.00403100
lea ecx, [ebp - 0x144]
call fcn.00403100
mov al, byte [0x6698b1]
call fcn.0044ac04
ret
Function at 0x45ac5c
Capabilities:
Check if file exists

Disassembly:
push 0xc50
mov eax, 0x5d1c6a
call fcn.0044ac5a
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc40]
mov ebx, dword [ebp + 0xc]
mov esi, 0x208
push esi
push 0
push eax
mov dword [ebp - 0xc5c], edi
call fcn.0046cf80
push esi
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.0046cf80
push esi
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.0046cf80
push esi
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.0046cf80
push esi
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0046cf80
push esi
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0046cf80
xor ecx, ecx
mov dword [ebp - 0xc44], 7
xor eax, eax
mov dword [ebp - 0xc48], ecx
add esp, 0x48
mov word [ebp - 0xc58], ax
push ecx
push 0x1a
lea eax, [ebp - 0xc40]
mov dword [ebp - 4], ecx
push eax
push ecx
call fcn.0045b2e0
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0047bb33
lea eax, [ebp - 0x218]
push eax
call fcn.0047bb55
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0046d6e3
add esp, 0x24
test eax, eax
je 0x45ae71
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.0047bb33
lea eax, [ebp - 0x830]
push 0x5dcf4c
push eax
call fcn.0047bbfb
add esp, 0x10
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
xor esi, esi
inc ecx
test eax, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
cmovne esi, ecx
push eax
call fcn.0047bb33
lea eax, [ebp - 0x628]
push 0x5dcf5c
push eax
call fcn.0047bbfb
add esp, 0x10
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xa38]
mov dword [ebp - 0xc5c], ecx
push eax
call fcn.0047bb33
lea eax, [ebp - 0xa38]
push 0x5dcf70
push eax
call fcn.0047bbfb
add esp, 0x10
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
test esi, esi
je 0x45ae71
cmp dword [ebp - 0xc5c], 0
je 0x45ae71
test ecx, ecx
je 0x45ae71
push ebx
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push 0x5d6c94
push eax
call fcn.00405db0
add esp, 0x10
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45ae4f
lea eax, [ebp - 0x420]
push eax
call fcn.00459ec1
pop ecx
lea eax, [ebp - 0x420]
push eax
call fcn.0047bb55
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0xc58]
call fcn.00403240
jmp 0x45ae80
lea eax, [ebp - 0xc58]
push ebx
push eax
call fcn.0045a152
pop ecx
pop ecx
xor eax, eax
mov ecx, edi
mov byte [ebp - 0xc5c], al
push dword [ebp - 0xc5c]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
lea eax, [ebp - 0xc58]
push eax
call fcn.0044651c
lea ecx, [ebp - 0xc58]
call fcn.00402fe0
mov eax, edi
call fcn.0044ac04
ret
Function at 0x45aeb5
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x2b4
mov eax, 0x5d1cb2
call fcn.0044ac5a
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x58]
mov edi, dword [ebp + 0xc]
push eax
call fcn.00403040
lea eax, [ebp - 0x58]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004555f3
pop ecx
test eax, eax
jne 0x45aefc
mov esi, 0x5d4d80
push esi
call fcn.0047bb55
pop ecx
push eax
push esi
lea ecx, [ebp - 0x58]
call fcn.004058f0
lea eax, [ebp - 0x58]
mov dword [ebp - 0x30], ebx
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], ebx
call fcn.00446544
mov esi, 0x5d66bc
mov byte [ebp - 4], 1
push esi
call fcn.0047bb55
pop ecx
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.004058f0
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x2c0]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x45affd
test byte [ebp - 0x2c0], 0x10
je 0x45afe0
cmp word [ebp - 0x294], 0x2e
je 0x45afe0
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x70]
call fcn.00403040
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 2
push eax
mov ecx, edi
call fcn.0044592d
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.00402fe0
lea eax, [ebp - 0x58]
mov dword [ebp - 0x18], ebx
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], ebx
call fcn.00446544
lea eax, [ebp - 0x294]
mov byte [ebp - 4], 3
push eax
call fcn.0047bb55
pop ecx
push eax
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x28]
call fcn.004058f0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0045aeb5
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00402fe0
lea eax, [ebp - 0x2c0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x45af4c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x40]
call fcn.00402fe0
lea ecx, [ebp - 0x58]
call fcn.00402fe0
call fcn.0044ac04
ret
Function at 0x45b3af
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push 0x2a0
mov eax, 0x5cbe08
call fcn.0044ac5a
xor edi, edi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
call fcn.00446544
mov esi, 0x5d66bc
mov byte [ebp - 4], 1
push esi
call fcn.0047bb55
pop ecx
push eax
push esi
lea ecx, [ebp - 0x58]
call fcn.004058f0
push 8
pop ebx
cmp dword [ebp - 0x44], ebx
lea ecx, [ebp - 0x2a8]
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x45b524
lea eax, [ebp - 0x2a8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x45b524
push 0x2e
pop eax
cmp word [ebp - 0x27c], ax
je 0x45b415
cmp word [ebp - 0x27a], 0
je 0x45b415
cmp word [ebp - 0x27a], ax
jne 0x45b454
cmp word [ebp - 0x278], 0
je 0x45b415
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x40]
call fcn.00403040
test byte [ebp - 0x2a8], 0x10
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
push eax
je 0x45b4d0
call fcn.00446544
cmp dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
mov byte [ebp - 4], 3
call fcn.004058f0
push 0x5d4d80
call fcn.0047bb55
pop ecx
push eax
push 0x5d4d80
lea ecx, [ebp - 0x28]
call fcn.004058f0
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
call fcn.00446544
call fcn.0045b3af
jmp 0x45b508
call fcn.00446544
cmp dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
mov byte [ebp - 4], 4
call fcn.004058f0
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
call fcn.00446544
call fcn.0045b56a
add esp, 0x18
lea ecx, [ebp - 0x28]
call fcn.00402fe0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00402fe0
jmp 0x45b415
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x1c], ebx
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x45b554
cmp dword [ebp + 0x1c], ebx
lea eax, [ebp + 8]
push 4
cmovae eax, dword [ebp + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x58]
call fcn.00402fe0
lea ecx, [ebp + 8]
call fcn.00402fe0
call fcn.0044ac04
ret

Function at 0x45b7f3
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
sbb eax, eax
inc eax
mov dword [esi + 4], eax
pop esi
pop ebp
ret 4
Function at 0x45ba23
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor eax, eax
xor ecx, ecx
xor esi, esi
push edi
cmp dword [ebp + 0xc], eax
jle 0x45bb15
mov edi, dword [ebp + 8]
mov dl, byte [esi + edi]
movzx ebx, dl
cmp dl, 0x3d
jne 0x45ba50
inc ecx
cmp ecx, 2
jg 0x45bb1c
cmp dl, 0x7f
ja 0x45bb1c
mov dl, byte [ebx + 0x5dd1f8]
cmp dl, 0x7f
je 0x45bb1c
cmp dl, 0x40
jae 0x45ba75
test ecx, ecx
jne 0x45bb1c
inc eax
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x45ba3b
test eax, eax
je 0x45bb15
mov edi, dword [ebp + 0x14]
imul eax, eax, 6
add eax, 7
sar eax, 3
cmp dword [edi], eax
jge 0x45ba9d
mov dword [edi], eax
push 0xfffffffffffffff0
jmp 0x45bb1e
mov edx, dword [ebp + 0x10]
xor eax, eax
xor ebx, ebx
mov dword [ebp + 0xc], eax
test esi, esi
jle 0x45bb10
mov eax, dword [ebp + 8]
push 3
pop edi
movzx eax, byte [eax]
mov cl, byte [eax + 0x5dd1f8]
xor eax, eax
cmp cl, 0x40
sete al
shl ebx, 6
sub edi, eax
movzx eax, cl
mov ecx, dword [ebp + 0xc]
and eax, 0x3f
or ebx, eax
inc ecx
mov dword [ebp + 0xc], ecx
cmp ecx, 4
jne 0x45bb01
xor eax, eax
mov dword [ebp + 0xc], eax
test edi, edi
jle 0x45baec
mov eax, ebx
shr eax, 0x10
mov byte [edx], al
inc edx
cmp edi, 1
jle 0x45baf9
mov eax, ebx
shr eax, 8
mov byte [edx], al
inc edx
cmp edi, 2
jle 0x45bb01
mov byte [edx], bl
inc edx
mov eax, dword [ebp + 8]
dec esi
inc eax
mov dword [ebp + 8], eax
test esi, esi
jg 0x45bab1
mov edi, dword [ebp + 0x14]
sub edx, dword [ebp + 0x10]
mov dword [edi], edx
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 0xffffffffffffffee
pop eax
jmp 0x45bb17
Function at 0x45bb21
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x45bb35
xor eax, eax
jmp 0x45bc6b
mov eax, ebx
shl eax, 3
push 6
pop ecx
cdq
idiv ecx
mov edx, ebx
imul ecx, eax, 6
shl edx, 3
push 3
sub edx, ecx
dec edx
pop ecx
sub edx, 1
je 0x45bb5e
dec edx
sub edx, 1
jne 0x45bb60
add eax, 2
jmp 0x45bb60
add eax, ecx
push esi
mov esi, dword [ebp + 0x14]
inc eax
cmp dword [esi], eax
jge 0x45bb73
push 0xfffffffffffffff0
mov dword [esi], eax
pop eax
jmp 0x45bc6a
mov eax, ebx
cdq
idiv ecx
xor ecx, ecx
imul eax, eax, 3
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jle 0x45bc03
dec eax
mov ebx, dword [ebp + 8]
xor edx, edx
push 3
pop ecx
div ecx
inc eax
imul ecx, eax, 3
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
movzx ecx, byte [ebx]
movzx edx, byte [ebx + 1]
mov eax, ecx
movzx esi, byte [ebx + 2]
add ebx, 3
shr eax, 2
push 3
mov al, byte [eax + 0x5dd1b8]
mov byte [edi], al
pop eax
and ecx, eax
mov eax, edx
shr eax, 4
add ecx, ecx
and edx, 0xf
mov al, byte [eax + ecx*8 + 0x5dd1b8]
mov byte [edi + 1], al
mov eax, esi
shr eax, 6
and esi, 0x3f
mov al, byte [eax + edx*4 + 0x5dd1b8]
mov byte [edi + 2], al
mov al, byte [esi + 0x5dd1b8]
mov byte [edi + 3], al
add edi, 4
sub dword [ebp - 4], 1
jne 0x45bb9a
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
jmp 0x45bc06
mov eax, dword [ebp + 8]
cmp ecx, ebx
jge 0x45bc5d
movzx edx, byte [eax]
inc ecx
mov dword [ebp + 0xc], ecx
cmp ecx, ebx
jge 0x45bc1b
movzx ecx, byte [eax + 1]
jmp 0x45bc1d
xor ecx, ecx
mov eax, edx
shr eax, 2
push 3
mov al, byte [eax + 0x5dd1b8]
mov byte [edi], al
pop eax
and edx, eax
mov eax, ecx
add edx, edx
shr eax, 4
mov al, byte [eax + edx*8 + 0x5dd1b8]
mov byte [edi + 1], al
cmp dword [ebp + 0xc], ebx
jge 0x45bc51
and ecx, 0xf
mov al, byte [ecx*4 + 0x5dd1b8]
jmp 0x45bc53
mov al, 0x3d
mov byte [edi + 2], al
mov byte [edi + 3], 0x3d
add edi, 4
mov eax, edi
sub eax, dword [ebp + 0x10]
mov dword [esi], eax
xor eax, eax
mov byte [edi], 0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45be19
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6a0
mov eax, dword [0x664340]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov dword [ebp - 0x69c], esi
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
xor ebx, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x284]
mov edi, 0x208
push edi
push ebx
push eax
call fcn.0046cf80
add esp, 0xc
lea eax, [ebp - 0x284]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x5dd284
call fcn.0047bb55
push eax
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0047f902
push edi
lea eax, [ebp - 0x694]
push ebx
push eax
call fcn.0046cf80
push edi
lea eax, [ebp - 0x48c]
push ebx
push eax
call fcn.0046cf80
push 0x64
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x698], ebx
push ebx
push eax
mov dword [ebp - 0x69c], ebx
mov dword [ebp - 0x6a0], ebx
call fcn.0046cf80
add esp, 0x34
lea eax, [ebp - 0x48c]
mov ecx, 0x104
push ecx
push eax
lea eax, [ebp - 0x6a0]
push eax
lea eax, [ebp - 0x69c]
push eax
lea eax, [ebp - 0x698]
push eax
push ecx
lea eax, [ebp - 0x694]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x45bf13
push dword [ebp - 0x698]
lea eax, [ebp - 0x7c]
push str._08X
push eax
call fcn.0040ac80
add esp, 0xc
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
call fcn.00403210
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044a851
leave
ret 4
Function at 0x462220
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x5d0943
call fcn.0044ac26
xor esi, esi
mov dword [ebp - 0x18], 0x104
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call fcn.00464805
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], esi
call fcn.00464839
test eax, eax
mov edi, 0xf013f
lea eax, [ebp - 0x10]
push eax
jne 0x462260
mov edi, 0xf003f
push edi
push esi
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4622c0
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push esi
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x46229b
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4622c0
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0x3c]
call fcn.00464818
call fcn.0044abef
ret 0xc
Function at 0x462717
Capabilities:
Get common file path

Disassembly:
push 0x240
mov eax, 0x5d2840
call fcn.0044ac5a
mov ebx, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
xor esi, esi
mov dword [ebp - 0x24c], edi
push esi
push eax
call fcn.0046cf80
add esp, 0xc
lea eax, [ebp - 0x218]
push esi
push 0x19
push eax
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call esi
test eax, eax
je 0x4627d5
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00403040
and dword [ebp - 4], 0
push 0x5d4d80
call fcn.0047bb55
pop ecx
push eax
push 0x5d4d80
lea ecx, [ebp - 0x230]
call fcn.004058f0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push edi
cmovae eax, dword [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.004623db
mov edi, eax
lea ecx, [ebp - 0x230]
test edi, edi
je 0x4627c6
call fcn.00402fe0
mov eax, edi
jmp 0x46284e
or dword [ebp - 4], 0xffffffff
call fcn.00402fe0
mov edi, dword [ebp - 0x24c]
push 0
push 0x10
lea eax, [ebp - 0x218]
push eax
push 0
call esi
test eax, eax
je 0x46284c
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00403040
mov esi, 0x5d4d80
mov dword [ebp - 4], 1
push esi
call fcn.0047bb55
pop ecx
push eax
push esi
lea ecx, [ebp - 0x248]
call fcn.004058f0
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push edi
cmovae eax, dword [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.004623db
lea ecx, [ebp - 0x248]
mov esi, eax
call fcn.00402fe0
test esi, esi
je 0x46284c
mov eax, esi
jmp 0x46284e
xor eax, eax
call fcn.0044ac04
ret 4