joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100346a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100512d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100346d0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10034700
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10034700
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x100347fa
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10034729
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1003475d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x100347fa
cmp eax, 1
jle 0x100347bb
cmp eax, 3
jne 0x100347fa
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.10037d40
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100347d9
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x100347fa
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x100347fa
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
Function at 0x100396b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100412f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100512d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1005128c]
cmp eax, 0xffffffff
jne 0x100396e6
xor ebx, ebx
jmp 0x100396ef
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x1003972f
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x1003976e
test esi, esi
jne 0x10039772
push 0x10038230
push 0x10052ad8
call fcn.10037d40
mov eax, dword [0x1005128c]
add esp, 8
cmp eax, 0xffffffff
je 0x1003972f
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003975c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003975c
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x100397b4
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1003979d
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x10039772
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10039700
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100397d9
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x100397d9
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.10037d40
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x100397c0
jmp 0x10039700
Function at 0x4012f0
Capabilities:
Schedule task via itaskservice

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0x4c]
sub esp, 0xa4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x404470
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x404320
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
test eax, eax
js 0x401411
xor edx, edx
xor ecx, ecx
mov eax, dword [ebp - 0x4c]
xor ebx, ebx
mov word [ebp - 0x48], dx
xor edx, edx
mov word [ebp - 0x38], cx
mov word [ebp - 0x18], dx
mov ecx, dword [ebp - 0x18]
mov word [ebp - 0x28], bx
mov edx, dword [eax]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp - 0x14]
mov dword [esp + 0x38], ecx
mov ecx, dword [ebp - 0x10]
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebp - 0xc]
mov dword [esp + 0x40], ecx
mov ecx, dword [ebp - 0x28]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp - 0x24]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp - 0x20]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp - 0x38]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp - 0x34]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp - 0x30]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp - 0x48]
mov dword [esp + 4], ecx
mov ecx, dword [ebp - 0x44]
mov dword [esp + 8], ecx
mov ecx, dword [ebp - 0x40]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [esp], eax
mov dword [esp + 0x10], ecx
call dword [edx + 0x28]
sub esp, 0x44
test eax, eax
js 0x401408
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x18]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x1c]
mov ebx, eax
mov eax, dword [ebp - 0x4c]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x18]
sub esp, 4
test ebx, ebx
js 0x401418
mov ebx, dword [ebp - 4]
leave
ret
test byte [0x403000], 1
jne 0x401450
xor eax, eax
jmp 0x4013ff
test byte [0x403000], 1
je 0x401411
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.GetFolder_failed:__08lx_n
mov dword [esp + 8], global___func__
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
xor eax, eax
jmp 0x4013ff
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Connect_failed:__08lx_n
mov dword [esp + 8], global___func__
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
xor eax, eax
jmp 0x4013ff
Function at 0x402590
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x4025e8
cmp byte [esi + ebx - 1], 0xa
je 0x4025bc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x407084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x402b80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xfc
mov edi, dword [0x407094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x402d40
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x407094]
movzx eax, al
bt eax, esi
jae 0x402da0
mov ecx, dword [0x407084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x402c45
test byte [0x403018], 8
jne 0x402ce0
lea ebx, [ebp - 0xe0]
mov edi, ebx
test byte [0x403028], 8
jne 0x402c90
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x402c14
cmp esi, 3
jbe 0x402c50
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xfc
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 8], str._s:_s:_s
lea edx, [edi + 1]
mov dword [esp], eax
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x405568]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x402c14
mov ecx, dword [0x407094]
test ecx, ecx
je 0x402d80
mov dword [esp], 0x403028
call dword [0x407094]
test al, 8
je 0x402beb
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x402beb
mov ebx, dword [0x407094]
test ebx, ebx
je 0x402d60
mov dword [esp], 0x403018
call dword [0x407094]
test al, 8
je 0x402bd6
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [ebp - 0xe0]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x402bde
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x407094
call sym._load_func.part.0
jmp 0x402b9d
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x407094
call sym._load_func.part.0
jmp 0x402cea
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x407094
call sym._load_func.part.0
jmp 0x402c9e
mov eax, 0xffffffff
jmp 0x402c45
Function at 0x402f00
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
Function at 0x4fdc8207
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x4fdc8221
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 0xc

Function at 0x4fdc824a
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x4fdc8255
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x4fdc8a94
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4fddc808]
xor eax, dword [ebp + 4]
push ebx
push esi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], esi
call fcn.4fdc81d2
cmp eax, esi
jne 0x4fdc8b17
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x4fdc8ae0
lea eax, [ebp - 0x114]
push eax
call fcn.4fdc8a94
cmp eax, esi
jne 0x4fdc8b16
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0xc], pe_nt_image_headers32
call edi
test eax, eax
lea ecx, [ebp - 8]
je 0x4fdc8ad0
call fcn.4fdc816d
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 8]
mov esi, eax
call fcn.4fdc816d
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
mov eax, esi
pop esi
pop ebx
call fcn.4fdce82b
leave
ret 4
Function at 0x4fdca9e6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4fdda664
call fcn.4fdcefac
sub esp, 0x418
mov eax, dword [0x4fddc808]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
call dword [0x4fddc080]
xor edi, edi
mov ebx, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x424], edi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], edi
jne 0x4fdcaa2b
xor eax, eax
jmp 0x4fdcaa55
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.4fdceb00
mov dword [ebp - 0x10], esp
mov eax, esp
push ebx
push esi
push dword [ebp + 8]
push eax
call fcn.4fdc7ffc
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x18], ebx
jne 0x4fdcaa74
call fcn.4fdc8112
mov esi, eax
jmp 0x4fdcab1b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, edi
je 0x4fdcaa96
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
mov dword [ebp + 0x10], eax
jne 0x4fdcaa9d
call fcn.4fdc8112
jmp 0x4fdcab10
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
push eax
lea ecx, [ebp - 0x424]
mov dword [ebp + 8], ebx
mov byte [ebp - 4], 1
call fcn.4fdc8c62
jmp 0x4fdcaaca
cmp dword [ebp - 0x424], edi
mov dword [ebp - 4], edi
jne 0x4fdcaadc
mov esi, 0x8007000e
jmp 0x4fdcab12
mov edi, dword [ebp - 0x424]
mov esi, dword [ebp + 0x10]
push dword [ebp + 0x14]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x424]
and byte [ebx + eax], 0
push dword [ebp - 0x424]
lea ecx, [ebp - 0x20]
call fcn.4fdc9eb2
mov esi, eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x4fdcab34
lea ecx, [ebp - 0x424]
call fcn.4fdc87db
mov eax, esi
lea esp, [ebp - 0x430]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp + 4]
call fcn.4fdce82b
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4fdcb67a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
push edi
mov eax, dword [0x4fddc808]
xor eax, dword [ebp + 4]
push 0xa
pop ecx
mov esi, 0x4fdc1d84
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x4fdc1d78
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x4c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4fdcb6f7
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4fdcb6fb
xor eax, eax
jmp 0x4fdcb6ff
movzx eax, word [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
call fcn.4fdce82b
leave
ret

Function at 0x4fdcb70e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4fddc808]
xor eax, dword [ebp + 4]
push esi
mov dword [ebp - 4], eax
mov esi, ecx
call fcn.4fdcb667
test al, al
je 0x4fdcb79b
or byte [ebp - 0x50], 0xff
push edi
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x4f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xc]
push eax
push 0x4fdc1dc8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
pop edi
jne 0x4fdcb79b
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x4fdc1db0
push dword [ebp - 0xc]
mov dword [ebp - 8], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4fdcb792
cmp dword [ebp - 0x10], 3
jne 0x4fdcb792
cmp dword [ebp - 8], 8
jb 0x4fdcb792
cmp dword [ebp - 0x4c], eax
je 0x4fdcb792
mov byte [esi + 0x3d], 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.4fdce82b
leave
ret
Function at 0x4fdcba51
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0x10
push edi
lea edi, [esi + 4]
jb 0x4fdcba67
mov eax, dword [edi]
jmp 0x4fdcba69
mov eax, edi
lea ecx, [ebp - 4]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4fdcbacc
push ebx
call fcn.4fdcf181
cmp dword [esi + 0x18], 0x10
pop ecx
mov dword [esi + 0x1c], eax
jb 0x4fdcba8b
mov edi, dword [edi]
push eax
push ebx
push dword [ebp - 4]
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4fdcbab3
lea edi, [esi + 0x24]
push edi
lea eax, [esi + 0x20]
push eax
push 0x4fdc20f4
push dword [esi + 0x1c]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4fdcbac9
push dword [esi + 0x1c]
call fcn.4fdce83e
xor eax, eax
lea edi, [esi + 0x24]
pop ecx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [edi], eax
shr dword [edi], 2
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4fdcbe6b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4fddc808]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [ebp - 0x108]
dec edi
xor ebx, ebx
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4fdcbe9d
mov ecx, dword [ebp + 8]
mov esi, 0x4fdc218c
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x108]
push eax
movsw word es:[edi], word [esi]
call fcn.4fdcbd91
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
pop edi
pop esi
cmp eax, ebx
pop ebx
je 0x4fdcbee8
cmp eax, 0xffffffff
je 0x4fdcbee8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4fdcbeea
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.4fdce82b
leave
ret 4
Function at 0x4fdcbf61
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x4fddc808]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov ebx, ecx
and byte [ebx + 0x1c], 0
and byte [ebx + 0x3c], 0
and byte [ebx + 0x3d], 0
push 0xa
pop ecx
mov esi, 0x4fdc21c8
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, 0x4fdc21bc
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x48]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4fdcc0ac
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 8]
mov dword [ebp - 0x10], 0x1f4
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4fdcc0a3
lea eax, [ebp - 0x23c]
push eax
call fcn.4fdcf7a1
pop ecx
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebx + 0x20]
call fcn.4fdcbd91
lea eax, [ebp - 0x23c]
push 0x4fdc21b8
push eax
call fcn.4fdcf61f
pop ecx
test eax, eax
pop ecx
setne al
mov ecx, ebx
mov byte [ebx + 0x1c], al
call fcn.4fdcb667
test al, al
je 0x4fdcc0a3
push 5
pop esi
push esi
lea eax, [ebp - 0x23c]
push 0x4fdc21b0
push eax
call fcn.4fdcf6cc
add esp, 0xc
test eax, eax
je 0x4fdcc09f
push esi
lea eax, [ebp - 0x23c]
push 0x4fdc21a8
push eax
call fcn.4fdcf6cc
add esp, 0xc
test eax, eax
je 0x4fdcc09f
push esi
lea eax, [ebp - 0x23c]
push 0x4fdc21a0
push eax
call fcn.4fdcf6cc
add esp, 0xc
test eax, eax
je 0x4fdcc09f
push esi
lea eax, [ebp - 0x23c]
push 0x4fdc2198
push eax
call fcn.4fdcf6cc
add esp, 0xc
test eax, eax
jne 0x4fdcc0a3
mov byte [ebx + 0x3d], 1
jmp 0x4fdcc0a3
mov byte [ebx + 0x3c], 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.4fdce82b
leave
ret