joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470ef0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f05ee
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x541770]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0xc]
push eax
call fcn.00470dc0
mov dword [esp + 0x30], 1
mov ecx, dword [esp + 0x3c]
mov dx, word [esp + 0x40]
mov dword [esp + 0x20], ecx
mov word [esp + 0x24], dx
test esi, esi
jne 0x470f43
xor eax, eax
jmp 0x470f4c
push esi
call fcn.004c6f29
add esp, 4
push eax
push esi
lea eax, [esp + 0x14]
call fcn.00405ca6
mov eax, dword [esp + 0x44]
mov cx, word [esp + 0x48]
mov dx, word [esp + 0x4c]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov ax, word [esp + 0x50]
mov word [esp + 0x18], cx
mov cx, word [esp + 0x54]
add esi, 0x14
lea ebx, [esp + 0xc]
mov dword [esp + 0x14], 0
mov word [esp + 0x1a], dx
mov word [esp + 0x1c], ax
mov word [esp + 0x1e], cx
call fcn.004713c0
mov dword [esp + 0x30], 0xffffffff
mov edx, ebx
push edx
call fcn.00470e20
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x28
ret 0x20

Function at 0x471cec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor esi, esi
inc esi
cmp byte [ebp + 0x10], 0
push edi
mov eax, esi
je 0x471d05
mov eax, 0x101
lea ecx, [ebp - 0x14]
push ecx
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x14
mov dword [ebp - 0x10], esi
pop esi
push esi
mov edi, eax
call fcn.004c4260
push esi
mov ebx, eax
mov dword [ebp - 8], esi
call fcn.004c4260
push eax
mov dword [ebp - 4], esi
call fcn.004c8958
push esi
call fcn.004c4260
and dword [ebp + 0x10], 0
add esp, 0x10
mov dword [ebp - 0x1c], eax
test edi, edi
jne 0x471e1e
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0xc], str.InstallLanguage
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call edi
mov dword [ebp - 0x18], eax
cmp eax, 0xea
jne 0x471dca
push ebx
call fcn.004c8958
push dword [ebp - 8]
call fcn.004c4260
push dword [ebp - 0x1c]
mov ebx, eax
call fcn.004c8958
push dword [ebp - 4]
call fcn.004c4260
add esp, 0x10
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call edi
mov eax, dword [ebp - 0xc]
mov esi, ebx
sub esi, str.InstallLanguage
inc eax
mov cl, byte [esi + eax]
mov dl, byte [eax]
cmp cl, dl
jl 0x471e11
jg 0x471e11
test cl, cl
je 0x471de9
test dl, dl
jne 0x471dd5
mov esi, dword [ebp - 0x1c]
or dword [ebp + 0x10], 0xffffffff
lea eax, [ebp + 0x10]
call fcn.00476878
mov esi, eax
push dword [ebp - 0x1c]
call fcn.004c8958
push ebx
call fcn.004c8958
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
inc dword [ebp + 0x10]
cmp dword [ebp - 0x18], 0
je 0x471d68
xor esi, esi
jmp 0x471dfa
Function at 0x474c4d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x541770]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [edx + 0x28]
call fcn.00477ed4
test al, al
jne 0x474ce5
test dword [edx + 0x6c], 0x2000
jne 0x474ce5
push edx
call fcn.00475aa7
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jl 0x474ce5
test ecx, ecx
jge 0x474c93
push 0x80070057
call fcn.00403765
cmp word [eax], 0x5c
jne 0x474cb1
cmp ecx, 1
jl 0x474c89
cmp word [eax + 2], 0x5c
jne 0x474cb1
cmp ecx, 2
jl 0x474c89
cmp word [eax + 4], 0x5c
jne 0x474ce5
push esi
xor esi, esi
test esi, esi
jl 0x474c89
mov ecx, esi
mov eax, edi
call fcn.0046ac10
mov word [ebp + esi*2 - 0xc], ax
inc esi
cmp esi, 3
jl 0x474cb4
xor eax, eax
mov word [ebp - 6], ax
pop esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
setne al
jmp 0x474ce7
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004c625d
leave
ret

Function at 0x474cf4
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
call fcn.00475aa7
lea esi, [ebp - 4]
mov ebx, eax
call fcn.00468830
push 0x5c
mov esi, ebx
call fcn.0044d969
lea edx, [eax + 1]
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.0044279c
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.00403bf6
lea ecx, [ebp - 0xc]
call fcn.004036cd
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x474d54
push 0x80
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebx]
push 0
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x474d6e
xor esi, esi
inc esi
mov dword [edi + 0x10], esi
jmp 0x474de2
push ebx
push 3
lea esi, [edi + 0x18]
pop eax
mov ecx, esi
call fcn.004816ac
lea eax, [ebp - 8]
push eax
call fcn.0040372d
xor ebx, ebx
push ebx
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00481734
push dword [eax]
lea eax, [ebp - 8]
push dword [ebp - 4]
push 0x510728
push eax
call fcn.00453582
add esp, 0x10
lea ecx, [ebp - 0xc]
call fcn.004036cd
lea eax, [edi + 0x16c]
call fcn.0048141b
push ebx
push 0x20
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0047bbcc
add esp, 0x14
xor esi, esi
test al, al
jne 0x474dda
inc esi
mov dword [edi + 0x10], esi
lea ecx, [ebp - 8]
call fcn.004036cd
lea ecx, [ebp - 4]
call fcn.004036cd
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x477a9c
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0xc0], 0
je 0x477c0f
cmp byte [ebx + 0xd8], 0
jne 0x477c0f
push esi
lea esi, [ebx + 0x90]
cmp dword [esi], 3
push edi
je 0x477aeb
mov edi, ebx
call fcn.00479016
mov esi, dword [esi]
cmp esi, 2
je 0x477aeb
cmp esi, 1
je 0x477aeb
test byte [ebx + 0x44], 0x48
je 0x477aeb
call fcn.004782a3
mov ecx, dword [ebx + 0xa8]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
cmp ecx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], eax
jle 0x477b5c
lea eax, [ebx + 0xa4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.0047a582
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call edi
test esi, esi
jne 0x477b51
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.0047a582
mov ebx, eax
lea esi, [ebp - 0x24]
call fcn.00466770
mov ebx, dword [ebp + 8]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jl 0x477b1e
mov esi, dword [ebx + 0xb4]
dec esi
mov dword [ebp - 4], esi
js 0x477bae
lea eax, [ebx + 0xb0]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov eax, esi
call fcn.0047a582
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], 0
jne 0x477ba8
mov ecx, dword [ebp - 8]
mov eax, esi
call fcn.0047a582
mov ebx, eax
lea esi, [ebp - 0x18]
call fcn.00466770
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 4]
dec esi
mov dword [ebp - 4], esi
jns 0x477b71
lea eax, [ebx + 0xa4]
lea edi, [ebp - 0x24]
call fcn.0047a401
lea esi, [ebx + 0xb0]
call fcn.0044ebe6
mov edi, dword [ebp - 0x14]
dec edi
js 0x477be4
mov eax, edi
lea ecx, [ebp - 0x18]
call fcn.0047a582
mov ebx, eax
call fcn.00466770
dec edi
jns 0x477bcd
mov ebx, dword [ebp + 8]
xor eax, eax
cmp dword [ebx + 0xa8], eax
jne 0x477bf7
cmp dword [ebx + 0xb4], eax
jne 0x477bf7
inc eax
lea esi, [ebp - 0x18]
mov byte [ebx + 0xd8], al
call fcn.0044ebe6
lea esi, [ebp - 0x24]
call fcn.0044ebe6
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4782a3
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [edi + 0x68]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00403ccd
mov eax, edi
call fcn.00477ed4
test al, al
je 0x478306
mov eax, dword [edi + 0x44]
and eax, 8
cmp eax, 8
sete cl
xor edx, edx
test cl, cl
setne dl
cmp eax, 8
sete al
movzx eax, al
neg eax
lea edx, [edx + edx + 1]
sbb eax, eax
mov ecx, edx
and eax, 7
push ecx
push eax
mov eax, edi
call fcn.00478a62
lea ecx, [edi + 0x78]
call fcn.0047a505
mov esi, eax
lea eax, [ebp - 8]
add esi, 0x18
push eax
jmp 0x47834d
test byte [edi + 0x44], 0x40
je 0x478369
lea esi, [ebp - 8]
mov ecx, edi
call fcn.00479ce6
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.00403bf6
mov ecx, esi
call fcn.004036cd
lea eax, [ebp - 4]
call fcn.004687f0
push 6
mov eax, edi
call fcn.00478aa6
lea ecx, [edi + 0x98]
call fcn.00481a75
lea ecx, [ebp - 8]
push ecx
mov esi, eax
call fcn.00468bf0
mov eax, dword [eax]
pop ecx
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.00403bf6
lea ecx, [ebp - 8]
call fcn.004036cd
lea eax, [ebp - 4]
push eax
call fcn.00469000
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 4]
call fcn.004036cd
xor eax, eax
pop esi
leave
ret
Function at 0x479016
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, edi
call fcn.00477ed4
test al, al
jne 0x479031
test byte [edi + 0x44], 0x40
je 0x479160
mov eax, dword [edi + 0x7c]
and dword [ebp - 8], 0
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x479160
push ebx
push esi
mov eax, dword [ebp - 8]
lea ecx, [edi + 0x78]
call fcn.0047a505
mov esi, eax
xor bl, bl
cmp byte [esi + 0x1c], bl
je 0x47914f
mov eax, dword [esi]
cmp eax, 1
je 0x479091
cmp eax, 3
je 0x479091
cmp eax, 7
je 0x479091
cmp eax, 8
je 0x479091
cmp eax, 0x64
jb 0x4790b8
mov eax, dword [edi + 0x90]
cmp eax, 2
je 0x47914f
cmp eax, 5
jne 0x4790b8
jmp 0x47914f
mov eax, dword [edi + 0x90]
cmp eax, 4
je 0x4790b8
cmp eax, 2
je 0x47914f
cmp eax, 1
je 0x47914f
test byte [esi + 8], 1
jne 0x47914f
mov eax, dword [esi + 4]
mov ecx, edi
call fcn.00479d5e
push eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
call fcn.00403ccd
mov esi, dword [esi + 0x18]
push dword [esi - 0xc]
lea eax, [ebp - 4]
push esi
call fcn.00403bf6
lea esi, [ebp - 4]
call fcn.004189d3
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x479128
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x479128
lea eax, [ebp - 0x20]
push eax
call fcn.0040372d
lea eax, [ebp - 0x1c]
push eax
call fcn.0040372d
lea eax, [ebp - 0x20]
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
push eax
mov ebx, esi
call fcn.0047224e
lea eax, [ebp - 0x20]
push eax
call fcn.0044d987
push dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
lea esi, [ebp - 4]
call fcn.00468bf0
pop ecx
push eax
call fcn.00469460
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
call fcn.004036cd
mov ecx, esi
call fcn.004036cd
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jl 0x479045
pop esi
pop ebx
leave
ret
Function at 0x479162
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
push ebx
xor ebx, ebx
push edi
cmp dword [esi + 0x10], ebx
jne 0x47917c
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x1c]
xor ecx, ecx
add eax, dword [esi + 0x58]
push ebx
adc ecx, dword [esi + 0x5c]
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x84]
push eax
push ecx
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4791c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esi + 0x60]
push ecx
push 0x103
push esi
mov ebx, eax
call fcn.00479d25
push 2
pop eax
jmp 0x479176
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.0040372d
mov byte [esp + 0x3c], bl
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
cmp dword [esi + 0x10], ebx
jbe 0x4792ba
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 0x84]
push ebx
lea ecx, [esp + 0x18]
push ecx
push 0x18
lea ecx, [esp + 0x2c]
push ecx
push eax
call edi
test eax, eax
je 0x4792c3
cmp dword [esp + 0x14], ebx
je 0x4792c3
cmp dword [esp + 0xc], ebx
je 0x47923d
push dword [esp + 0xc]
call fcn.004c8958
pop ecx
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0xc]
inc eax
push ecx
call fcn.0047a3de
test al, al
je 0x4792be
mov eax, dword [esi + 0x84]
push ebx
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x3c]
add ecx, ecx
push ecx
push dword [esp + 0x18]
push eax
call edi
test eax, eax
je 0x4792c3
cmp dword [esp + 0x14], ebx
je 0x4792c3
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0xc]
xor eax, eax
mov word [edx + ecx*2], ax
lea eax, [esp + 0x20]
lea ebx, [esi + 0x78]
push eax
call fcn.0047a46b
mov eax, dword [esp + 0x10]
mov ecx, ebx
call fcn.0047a505
push dword [esp + 0xc]
add eax, 0x18
push eax
call fcn.00405d23
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp eax, dword [esi + 0x10]
jb 0x479201
xor edi, edi
jmp 0x4792dd
push 3
pop edi
jmp 0x4792dd
push 2
pop edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esi + 0x60]
push ecx
push 0x103
push esi
mov ebx, eax
call fcn.00479d25
push dword [esp + 0xc]
call fcn.004c8958
pop ecx
lea ecx, [esp + 0x38]
call fcn.004036cd
mov eax, edi
jmp 0x479176
Function at 0x4792f7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
push ebx
xor ebx, ebx
cmp dword [edi + 0x9c], ebx
push esi
jle 0x479313
xor eax, eax
jmp 0x47949b
mov eax, dword [edi + 0xc]
xor ecx, ecx
add eax, dword [edi + 0x58]
push ebx
adc ecx, dword [edi + 0x5c]
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x34], ecx
mov ecx, dword [edi + 0x84]
push eax
push ecx
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x47935e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [edi + 0x60]
push ecx
push 0x103
push edi
mov ebx, eax
call fcn.00479d25
push 2
pop eax
jmp 0x47949b
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], ebx
cmp dword [edi + 8], ebx
jbe 0x47948f
mov eax, dword [edi + 0x84]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [esp + 0x14]
push ecx
push 8
lea ecx, [esp + 0x24]
push ecx
push eax
call esi
test eax, eax
je 0x479475
cmp dword [esp + 0x10], ebx
je 0x479475
lea eax, [esp + 0x20]
push eax
call fcn.0040372d
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], eax
cmp dword [esp + 0xc], ebx
je 0x4793cb
push dword [esp + 0xc]
call fcn.004c8958
pop ecx
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
inc eax
push ecx
call fcn.0047a3de
test al, al
je 0x479446
mov eax, dword [edi + 0x84]
push ebx
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x24]
add ecx, ecx
push ecx
push dword [esp + 0x18]
push eax
call esi
test eax, eax
je 0x479453
cmp dword [esp + 0x10], ebx
je 0x479453
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x1c]
xor ecx, ecx
push eax
mov word [eax + edx*2], cx
lea eax, [esp + 0x24]
push eax
call fcn.00405d23
lea esi, [edi + 0x98]
lea ebx, [esp + 0x20]
call fcn.0048e4bc
mov ecx, ebx
call fcn.004036cd
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
xor ebx, ebx
cmp eax, dword [edi + 8]
jb 0x479377
jmp 0x47948f
lea ecx, [esp + 0x20]
call fcn.004036cd
push 3
jmp 0x47948e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [edi + 0x60]
push ecx
push 0x103
push edi
mov ebx, eax
call fcn.00479d25
lea ecx, [esp + 0x20]
call fcn.004036cd
jmp 0x47948c
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [edi + 0x60]
push ecx
push 0x103
push edi
mov ebx, eax
call fcn.00479d25
push 2
pop ebx
push dword [esp + 0xc]
call fcn.004c8958
pop ecx
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47a657
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x47a66a
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
lea esi, [ebx + 0xc]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x47a6c7
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 4]
push eax
mov edi, 0x510f94
push edi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 4], 0
je 0x47a6c6
push dword [esi]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
lea eax, [ebp - 8]
push eax
call fcn.00405d46
lea eax, [ebp - 8]
push eax
call fcn.0047b740
pop ecx
lea ecx, [ebp - 8]
call fcn.004036cd
pop edi
lea ecx, [ebx + 0x1c]
call fcn.00476a20
lea ecx, [ebx + 0x10]
call fcn.00476a20
mov ecx, esi
call fcn.004036cd
pop esi
leave
ret

Function at 0x47aa56
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x541770]
xor eax, ebp
mov dword [ebp + 0x18c], eax
mov eax, dword [edi + 0xc]
cmp dword [eax - 0xc], 0
je 0x47aadd
push 0x104
lea eax, [ebp - 0x7c]
push eax
push dword [0x5442f0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x47aadd
push esi
lea esi, [eax + eax]
xor eax, eax
and dword [ebp - 0x80], eax
mov word [ebp + esi - 0x7c], ax
lea eax, [ebp - 0x80]
push eax
push 0x510f94
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp dword [ebp - 0x80], 0
je 0x47aadc
add esi, 2
push esi
lea eax, [ebp - 0x7c]
push eax
push 1
push 0
push dword [edi + 0xc]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
call fcn.004c625d
add ebp, 0x190
leave
ret

Function at 0x47addc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.0040372d
movzx ebx, word [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0
push 0x5057a4
push 2
push ebx
call edi
mov esi, eax
lea eax, [esi - 1]
push eax
push 0x78
pop ecx
lea edx, [ebp - 4]
call fcn.004411bc
push esi
lea esi, [ebp - 4]
call fcn.004189d3
push eax
push 2
push ebx
call edi
push dword [ebp - 4]
push dword [ebp + 0xc]
push 0x5110b0
push dword [ebp + 8]
call fcn.00453582
add esp, 0x10
mov ecx, esi
call fcn.004036cd
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47b2e1
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x47b368
push esi
call fcn.004c4260
mov edi, eax
pop ecx
test edi, edi
jne 0x47b320
push 8
pop esi
push edi
call fcn.004c8958
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret
push edi
push esi
push dword [ebp - 0xc]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x47b368
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x50ec88
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x47b371
cmp dword [ebp - 0x10], 0
je 0x47b371
mov eax, dword [ebp - 8]
test ebx, ebx
je 0x47b35a
mov ecx, dword [eax + 8]
mov dword [ebx], ecx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x47b371
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
jmp 0x47b371
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
jmp 0x47b313

Function at 0x47b376
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.00403ccd
lea eax, [ebp - 0xc]
push eax
lea esi, [ebp - 4]
call fcn.004189d3
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x47b483
push esi
call fcn.004c4260
mov edi, eax
pop ecx
test edi, edi
jne 0x47b3c1
lea ecx, [ebp - 4]
call fcn.004036cd
push edi
jmp 0x47b48d
push edi
push esi
push dword [ebp - 0xc]
lea esi, [ebp - 4]
call fcn.004189d3
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x47b3b3
lea eax, [ebp - 8]
push eax
call fcn.0040372d
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x47b411
cmp dword [ebp - 0x10], 0
je 0x47b411
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push 0x507af4
push ecx
push eax
jmp 0x47b420
push 0x507af4
push 0x4e2
push 0x409
lea eax, [ebp - 8]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.00453582
add esp, 0x14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea esi, [ebp - 8]
call fcn.004189d3
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x47b476
cmp dword [ebp - 0x18], 0
je 0x47b476
push dword [ebp - 0x1c]
push dword [ebp + 8]
call fcn.00405d23
mov ecx, esi
call fcn.004036cd
lea ecx, [ebp - 4]
call fcn.004036cd
push edi
call fcn.004c8958
mov al, 1
jmp 0x47b494
lea ecx, [ebp - 8]
call fcn.004036cd
jmp 0x47b3b3
lea ecx, [ebp - 4]
call fcn.004036cd
push 0
call fcn.004c8958
xor al, al
pop ecx
pop edi
pop esi
leave
ret
Function at 0x47b635
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
push esi
mov dword [ebp - 4], 0xc8
call fcn.004c8958
pop ecx
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], esi
call fcn.0047a3de
mov ebx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push ebx
lea ecx, [ebp - 0xc]
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push dword [ebp + 8]
call esi
mov edi, 0xea
jmp 0x47b6b6
add dword [ebp - 4], 2
push ebx
call fcn.004c8958
and dword [ebp - 8], 0
pop ecx
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0047a3de
mov ebx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push ebx
lea ecx, [ebp - 0xc]
push ecx
push 0
push eax
push dword [ebp + 8]
call esi
cmp eax, edi
je 0x47b682
test eax, eax
je 0x47b6d1
mov byte [ebp + 0xf], 0
push ebx
call fcn.004c8958
mov al, byte [ebp + 0xf]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 0xc]
cmp eax, 1
je 0x47b700
cmp eax, 2
je 0x47b700
cmp eax, 7
je 0x47b700
cmp eax, 4
jne 0x47b6be
push dword [ebx]
push 0x5111c0
push dword [ebp + 0x10]
call fcn.00453582
add esp, 0xc
mov byte [ebp + 0xf], 1
jmp 0x47b6c2
shr dword [ebp - 4], 1
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [ebx + ecx*2], ax
mov edi, dword [ebp - 4]
jmp 0x47b715
dec edi
mov dword [ebp - 4], edi
cmp word [ebx + edi*2], ax
je 0x47b711
inc edi
push ebx
mov ecx, 0x5442cc
lea esi, [ebp + 0xc]
mov dword [ebp - 4], edi
call fcn.00442b86
mov edi, dword [ebp + 0x10]
mov eax, esi
call fcn.004412d2
mov ecx, esi
call fcn.004036cd
jmp 0x47b6fa