joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a55a0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5139f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
push edi
mov edi, ecx
xor esi, esi
call fcn.004a6da0
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 8]
push eax
call fcn.004e1b94
lea ecx, [esp + 8]
mov dword [esp + 0x34], esi
push ecx
mov ecx, edi
call fcn.004a6eb0
test eax, eax
je 0x4a56dd
push ebx
lea ecx, [esp + 0x1c]
call fcn.004db3a1
lea edx, [esp + 0x1c]
push esi
lea eax, [esp + 0x10]
push edx
push eax
mov ecx, edi
mov byte [esp + 0x44], 1
call fcn.004a6150
cmp eax, esi
mov dword [esp + 0x10], eax
je 0x4a56ca
mov ebx, dword [esp + 0x24]
cmp ebx, esi
jle 0x4a56ca
push ebp
mov ecx, dword [esp + 0x24]
lea edx, [ecx + esi*4]
lea ecx, [esp + 0x44]
push edx
call fcn.004e1b94
mov ecx, dword [edi + 4]
mov byte [esp + 0x3c], 2
test ecx, ecx
je 0x4a564a
mov eax, dword [esp + 0x44]
push eax
call fcn.004e1329
lea ecx, [esp + 0x44]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.004e2066
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x18]
mov ebp, eax
call fcn.004e1e27
test ebp, ebp
jne 0x4a56b2
lea ecx, [esp + 0x44]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
call fcn.004e2066
push eax
mov byte [esp + 0x40], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.004a6db0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 2
call fcn.004e1e27
mov esi, ebx
mov dword [esp + 0x14], ebp
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], 1
call fcn.004e1e27
inc esi
cmp esi, ebx
jl 0x4a5623
pop ebp
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 0
call fcn.004db3d4
mov esi, dword [esp + 0x10]
pop ebx
lea ecx, [esp + 8]
mov dword [esp + 0x34], 0xffffffff
call fcn.004e1e27
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret 4

Function at 0x4a5710
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x513a08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
call fcn.004a6da0
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 8]
push eax
call fcn.004e1b94
mov ecx, dword [esp + 8]
mov dword [esp + 0x14], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4a57ab
lea edx, [esp + 8]
mov ecx, edi
push edx
call fcn.004a6eb0
mov esi, eax
test esi, esi
je 0x4a57b4
lea eax, [esp + 8]
mov ecx, edi
push eax
call fcn.004a55a0
mov esi, eax
test esi, esi
je 0x4a57b4
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4a5785
mov edx, dword [esp + 8]
push edx
call fcn.004e1329
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test esi, esi
jne 0x4a57b4
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.004a6db0
jmp 0x4a57b4
mov ecx, edi
call fcn.004a6e90
xor esi, esi
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.004e1e27
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x4a61d0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x513bcc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x26c
push ebp
push esi
mov ebp, ecx
call fcn.004a6da0
mov eax, dword [esp + 0x288]
lea ecx, [esp + 0xc]
push eax
call fcn.004e1b94
lea ecx, [esp + 0xc]
mov dword [esp + 0x27c], 0
push ecx
mov ecx, ebp
call fcn.004a6eb0
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
je 0x4a63bf
lea edx, [esp + 0xc]
mov ecx, ebp
push edx
call fcn.004a5000
test eax, eax
je 0x4a63bf
mov eax, dword [esp + 0x284]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.004e2066
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x24]
push eax
push ecx
mov byte [esp + 0x284], 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x1c], esi
je 0x4a638f
push ebx
push edi
mov edi, dword [esp + 0x294]
test byte [esp + 0x2c], 0x10
jne 0x4a635f
lea edx, [esp + 0x58]
lea ecx, [esp + 0x10]
push edx
call fcn.004e1e9b
mov eax, dword [esp + 0x298]
mov byte [esp + 0x284], 2
cmp eax, 1
jne 0x4a62e9
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.004e2066
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x288], 3
call fcn.004e1f6e
lea ecx, [esp + 0x28]
mov byte [esp + 0x284], 2
call fcn.004e1e27
mov eax, dword [edi + 8]
xor esi, esi
test eax, eax
jle 0x4a6329
lea eax, [esp + 0x20]
push esi
push eax
mov ecx, edi
call fcn.00402bb0
mov ecx, dword [esp + 0x10]
mov edx, dword [eax]
push ecx
push edx
call fcn.004bdb15
add esp, 8
lea ecx, [esp + 0x20]
test eax, eax
setg bl
call fcn.004e1e27
test bl, bl
jne 0x4a637e
mov eax, dword [edi + 8]
inc esi
cmp esi, eax
jl 0x4a62f2
mov eax, dword [edi + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, edi
call fcn.004db676
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x4a634a
mov edx, dword [esp + 0x10]
push edx
call fcn.004e1329
lea ecx, [esp + 0x10]
mov byte [esp + 0x284], 1
call fcn.004e1e27
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4a6285
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop ebx
jmp 0x4a63aa
lea eax, [esp + 0x10]
push 1
push eax
push esi
mov ecx, edi
call fcn.004db77f
jmp 0x4a6339
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, ebp
call fcn.004a6db0
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x10]
mov byte [esp + 0x27c], 0
call fcn.004e1e27
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0xc]
mov dword [esp + 0x27c], 0xffffffff
call fcn.004e1e27
mov ecx, dword [esp + 0x274]
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x278
ret 0x10
Function at 0x4a63f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x513c08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x30]
push esi
mov esi, ecx
push edi
push ebx
lea ecx, [esp + 0x10]
call fcn.004e1b94
lea eax, [esp + 0xc]
mov ecx, esi
push eax
mov dword [esp + 0x34], 0
call fcn.004a6eb0
mov edi, eax
test edi, edi
je 0x4a6560
mov edi, dword [esp + 0x3c]
mov ecx, esi
push edi
push ebx
call fcn.004a6590
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x4a655c
push ebp
lea ecx, [esp + 0x18]
call fcn.004db3a1
mov ebp, dword [edi + 8]
xor esi, esi
test ebp, ebp
mov byte [esp + 0x34], 1
jle 0x4a6520
mov bl, 2
mov ecx, dword [edi + 4]
lea edx, [ecx + esi*4]
lea ecx, [esp + 0x3c]
push edx
call fcn.004e1b94
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x34], bl
mov eax, dword [eax - 8]
mov edx, dword [ecx - 8]
sub eax, edx
lea edx, [esp + 0x44]
push eax
push edx
lea ecx, [esp + 0x44]
call fcn.004d6e91
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 3
call fcn.004e1f6e
lea ecx, [esp + 0x44]
mov byte [esp + 0x34], bl
call fcn.004e1e27
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x14]
mov eax, dword [eax - 8]
dec eax
push eax
push ecx
lea ecx, [esp + 0x44]
call fcn.004d6f0d
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 4
call fcn.004e1f6e
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], bl
call fcn.004e1e27
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x3c]
push edx
push eax
lea ecx, [esp + 0x20]
call fcn.004db676
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 1
call fcn.004e1e27
inc esi
cmp esi, ebp
jl 0x4a6474
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.004db434
mov ebx, dword [esp + 0x20]
xor esi, esi
test ebx, ebx
pop ebp
jle 0x4a654e
mov ecx, dword [esp + 0x18]
lea eax, [ecx + esi*4]
mov ecx, dword [edi + 8]
push eax
push ecx
mov ecx, edi
call fcn.004db676
inc esi
cmp esi, ebx
jl 0x4a6536
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 0
call fcn.004db3d4
mov edi, dword [esp + 0x3c]
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.004e1e27
mov ecx, dword [esp + 0x28]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 0xc
Function at 0x4a6590
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0xffffffffffffffff
push 0x513c4c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x264
push ebp
push edi
mov edi, ecx
call fcn.004a6da0
mov eax, dword [esp + 0x27c]
lea ecx, [esp + 8]
push eax
call fcn.004e1b94
lea ecx, [esp + 8]
mov dword [esp + 0x274], 0
push ecx
mov ecx, edi
call fcn.004a6eb0
mov ebp, eax
test ebp, ebp
je 0x4a6749
lea edx, [esp + 8]
push 0x55c784
lea eax, [esp + 0x10]
push edx
push eax
call fcn.004e20cc
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov byte [esp + 0x27c], 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x4a6722
push ebx
push esi
mov esi, dword [esp + 0x288]
mov ebx, 1
test byte [esp + 0x24], 0x10
je 0x4a66f5
lea eax, [esp + 0x50]
push 0x55c780
push eax
call fcn.004bdb15
add esp, 8
test eax, eax
je 0x4a66f5
lea ecx, [esp + 0x50]
push 0x55c778
push ecx
call fcn.004bdb15
add esp, 8
test eax, eax
je 0x4a66f5
lea edx, [esp + 0x50]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.004e20cc
lea edx, [esp + 0x18]
push 0x5c
lea eax, [esp + 0x24]
push edx
push eax
mov byte [esp + 0x288], 2
call fcn.004d6960
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x284], 3
call fcn.004db676
lea ecx, [esp + 0x20]
mov byte [esp + 0x27c], 2
call fcn.004e1e27
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4a66cf
lea edx, [esp + 0x50]
push edx
call fcn.004e1329
lea eax, [esp + 0x18]
push esi
push eax
mov ecx, edi
call fcn.004a6590
mov ebp, eax
test ebp, ebp
jne 0x4a66e4
xor ebx, ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x27c], 1
call fcn.004e1e27
test ebx, ebx
je 0x4a6713
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
test ebx, ebx
jne 0x4a662d
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop ebx
jmp 0x4a6738
lea ecx, [esp + 0xc]
push ecx
call fcn.004bf9f7
mov edx, dword [eax]
mov ecx, edi
push edx
call fcn.004a6db0
xor ebp, ebp
lea ecx, [esp + 0xc]
mov byte [esp + 0x274], 0
call fcn.004e1e27
lea ecx, [esp + 8]
mov dword [esp + 0x274], 0xffffffff
call fcn.004e1e27
mov ecx, dword [esp + 0x26c]
mov eax, ebp
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x270
ret 8
Function at 0x4a69c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x513cd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x30]
push ebx
push esi
mov esi, ecx
push edi
push eax
lea ecx, [esp + 0x10]
call fcn.004e1b94
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x14], ebx
call fcn.004a6eb0
test eax, eax
je 0x4a6afa
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
lea edx, [esp + 0xc]
push edi
push edx
push eax
mov ecx, esi
call fcn.004a6b30
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
cmp eax, ebx
jne 0x4a6afa
push ebp
lea ecx, [esp + 0x18]
call fcn.004db3a1
mov ebp, dword [edi + 8]
xor esi, esi
cmp ebp, ebx
mov byte [esp + 0x34], 1
jle 0x4a6abe
mov bl, 2
mov ecx, dword [edi + 4]
lea edx, [ecx + esi*4]
lea ecx, [esp + 0x40]
push edx
call fcn.004e1b94
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x34], bl
mov eax, dword [eax - 8]
mov edx, dword [ecx - 8]
sub eax, edx
lea edx, [esp + 0x44]
push eax
push edx
lea ecx, [esp + 0x48]
call fcn.004d6e91
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x38], 3
call fcn.004e1f6e
lea ecx, [esp + 0x44]
mov byte [esp + 0x34], bl
call fcn.004e1e27
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x40]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.004db676
lea ecx, [esp + 0x40]
mov byte [esp + 0x34], 1
call fcn.004e1e27
inc esi
cmp esi, ebp
jl 0x4a6a49
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.004db434
mov ebp, dword [esp + 0x20]
xor esi, esi
test ebp, ebp
jle 0x4a6aeb
mov edx, dword [esp + 0x1c]
mov ecx, dword [edi + 8]
lea eax, [edx + esi*4]
push eax
push ecx
mov ecx, edi
call fcn.004db676
inc esi
cmp esi, ebp
jl 0x4a6ad3
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 0
call fcn.004db3d4
pop ebp
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.004e1e27
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 0x10
Function at 0x4a7740
Capabilities:
Get disk information

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0xc
lea eax, [esp + 0x10]
push esi
push 3
push eax
call fcn.004d6f0d
push 0x400
lea ecx, [esp + 0xc]
push 0
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push edx
push eax
push 0x3e8
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov esi, dword [esp + 4]
lea ecx, [esp + 0x14]
call fcn.004e1e27
mov eax, esi
pop esi
add esp, 0xc
ret

Function at 0x4a8120
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x513f4b
push eax
mov eax, 0x1058
mov dword fs:[0], esp
call fcn.004bdb50
mov eax, dword [esp + 0x1068]
push eax
call fcn.004aaf40
add esp, 4
test eax, eax
je 0x4a8245
push ebx
push ebp
push esi
push edi
mov ecx, 0x413
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], 0
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0x107c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
stosw word es:[edi], ax
mov edi, dword [esp + 0x1080]
mov esi, 1
mov dword [esp + 0x14], esi
mov ecx, dword [0x56b44c]
mov dword [esp + 0x10], ecx
mov edx, dword [edi]
push esi
push edx
lea eax, [esp + 0x18]
push 0x55fac4
push eax
mov dword [esp + 0x1080], 0
call fcn.004d736f
mov ecx, dword [esp + 0x1088]
add esp, 0x10
lea edx, [esp + 0x18]
mov eax, dword [ecx]
mov ecx, dword [ebx]
push eax
mov eax, dword [esp + 0x14]
push 0x828
push edx
push 0x5705d0
push eax
push ecx
call ebp
test eax, eax
jne 0x4a81e6
mov dword [esp + 0x14], eax
jmp 0x4a8220
mov eax, dword [esp + 0x1088]
test eax, eax
je 0x4a820f
lea ecx, [esp + 0x18]
push 0
push ecx
mov ecx, dword [esp + 0x108c]
call fcn.004dbde4
test eax, eax
jne 0x4a8220
lea edx, [esp + 0x18]
push edx
jmp 0x4a8214
lea eax, [esp + 0x18]
push eax
mov ecx, dword [esp + 0x1088]
call fcn.004dbabf
lea ecx, [esp + 0x10]
inc esi
mov dword [esp + 0x1070], 0xffffffff
call fcn.004e1e27
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4a818e
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1058]
mov dword fs:[0], ecx
add esp, 0x1064
ret

Function at 0x4aaef0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, dword [esp + 4]
and ecx, 0xffff
push ecx
call fcn.004bff11
add esp, 4
pop edi
add esp, 0x208
ret
Function at 0x4ab3b0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x34
mov ecx, dword [eax]
mov ax, word [ecx]
cmp ax, 0x41
je 0x4ab425
cmp ax, 0x61
je 0x4ab425
xor edx, edx
lea eax, [esp + 8]
mov dword [esp + 0xa], edx
push 0xa
mov dword [esp + 0x12], edx
push eax
mov dword [esp + 0x1a], edx
lea eax, [esp + 8]
mov dword [esp + 0x1e], edx
mov word [esp + 0x10], 0
mov word [esp + 0x22], dx
lea edx, [esp + 0x40]
push edx
lea edx, [esp + 0x10]
push eax
push edx
lea eax, [esp + 0x30]
push 0xc
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 8]
push ecx
push 0x55c714
push edx
call fcn.004d736f
add esp, 0xc
add esp, 0x34
ret
mov ecx, dword [esp + 0x3c]
push 0x5705d0
call fcn.004e1fbe
add esp, 0x34
ret

Function at 0x4ab440
Capabilities:
Get disk information

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push esi
push 0
push 0
call ebx
mov esi, eax
shl esi, 1
je 0x4ab4ac
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, eax
push esi
push 8
push edi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_HeapSize]
push eax
call ebx
cmp word [esi], 0
je 0x4ab4a3
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 8]
push esi
push eax
mov ecx, edi
call fcn.004db64a
push 0
push esi
call fcn.004be501
add eax, 2
add esp, 8
mov esi, eax
cmp word [esi], 0
jne 0x4ab481
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop esi
xor eax, eax
pop ebx
ret

Function at 0x4ab5f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5145e5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
lea eax, [esp]
push esi
push eax
mov dword [esp + 0xc], 0
call fcn.004ab690
add esp, 4
mov edx, dword [esp + 4]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x565f44
push edx
mov dword [esp + 0x22c], 1
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov esi, dword [esp + 0x224]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.004e1e9b
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x21c], 0
call fcn.004e1e27
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret

Function at 0x4ab690
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
lea eax, [esp + 4]
push esi
push eax
push 0x104
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [esp + 0x214]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.004e1e9b
mov eax, esi
pop esi
add esp, 0x20c
ret
Function at 0x4ab9e0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x418
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21a]
mov word [esp + 0x218], 0
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
push 0x565f4c
push SysFreeString
call esi
test eax, eax
je 0x4aba4e
lea ecx, [esp + 8]
push ecx
push 0x565fec
push SysFreeString
call esi
test eax, eax
jne 0x4abad9
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push 0x565fd8
push ecx
mov dword [esp + 0x24], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4abad9
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4abad9
lea ecx, [esp + 0x218]
push 0x104
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, dword [esp + 0x424]
lea eax, [esp + 0x218]
push eax
push 0x55c714
push ecx
call fcn.004d736f
add esp, 0xc
mov eax, 1
pop edi
pop esi
add esp, 0x418
ret
pop edi
xor eax, eax
pop esi
add esp, 0x418
ret

Function at 0x4abaf0
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
push eax
push esi
push edi
call ebx
test eax, eax
je 0x4abb32
lea ecx, [esp + 0x14]
push ecx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x4abb32
lea edx, [esp + 0x14]
push edx
push esi
push edi
call ebx
test eax, eax
je 0x4abb32
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
shl eax, 1
push eax
mov eax, dword [esp + 0x1c]
push esi
push 2
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x4abef0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
mov dword [esp], 4
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x4abf16
xor eax, eax
pop ecx
ret
mov edx, dword [esp + 0x10]
lea eax, [esp]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 0x10]
push ecx
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4abf40
mov dword [esp + 8], 0
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
pop ecx
ret
Function at 0x4abf60
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
push eax
push esi
push edi
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x4abf95
lea ecx, [esp + 0x14]
push ecx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x4abf95
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push 4
push edx
push 4
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4abfb9
mov ebx, 1
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4abfd0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5146c5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
mov eax, dword [0x56b44c]
push esi
push edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea ecx, [esp + 8]
mov dword [esp + 0x228], 1
mov dword [esp + 0x14], 0x208
call fcn.004e1daf
mov edx, dword [esp + 0x238]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x234]
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x4ac063
mov esi, dword [esp + 0x230]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.004e1b94
mov dword [esp + 0xc], 1
jmp 0x4ac0bc
mov ecx, dword [esp + 0x23c]
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
push eax
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4ac096
lea eax, [esp + 0x18]
lea ecx, [esp + 8]
push eax
call fcn.004e1fbe
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x230]
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.004e1b94
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0x228], 0
call fcn.004e1e27
mov ecx, dword [esp + 0x220]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x224
ret

Function at 0x4ac0f0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x4ac12e
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4ac118
pop edi
xor eax, eax
pop esi
ret
lea ecx, [esp + 0x10]
push ecx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x4ac12e
pop edi
xor eax, eax
pop esi
ret
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 0x14]
shl eax, 1
push eax
mov eax, dword [esp + 0x14]
push esi
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
ret