joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430364bf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4306c004]
jne 0x43065ea5
repz ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x4306c5f0], eax
mov dword [0x4306c5ec], ecx
mov dword [0x4306c5e8], edx
mov dword [0x4306c5e4], ebx
mov dword [0x4306c5e0], esi
mov dword [0x4306c5dc], edi
mov word [0x4306c608], ss
mov word [0x4306c5fc], cs
mov word [0x4306c5d8], ds
mov word [0x4306c5d4], es
mov word [0x4306c5d0], fs
mov word [0x4306c5cc], gs
pushfd
pop dword [0x4306c600]
mov eax, dword [ebp]
mov dword [0x4306c5f4], eax
mov eax, dword [ebp + 4]
mov dword [0x4306c5f8], eax
lea eax, [ebp + 8]
mov dword [0x4306c604], eax
mov eax, dword [ebp - 0x320]
mov dword [0x4306c540], 0x10001
mov eax, dword [0x4306c5f8]
mov dword [0x4306c4f4], eax
mov dword [0x4306c4e8], 0xc0000409
mov dword [0x4306c4ec], 1
mov eax, dword [0x4306c004]
mov dword [ebp - 0x328], eax
mov eax, dword [0x4306c218]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x4306c538], eax
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x43065fa8
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x4306c538], 0
jne 0x43065f91
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret

Function at 0x43037cf3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4306c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor eax, eax
mov word [ebp - 0x18], ax
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xa
lea eax, [ebp - 0x18]
xor ebx, ebx
push eax
inc ebx
push 0x43037904
mov dword [0x4306c05c], ebx
call esi
push 4
pop edi
test eax, eax
jne 0x4303ff48
and dword [0x4306c058], 0
and dword [0x4306c054], 0
push 0xa
lea eax, [ebp - 0x18]
push eax
push 0x43037d70
call esi
test eax, eax
jne 0x4303ff8c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.430364bf
leave
ret
mov ecx, 0x430437fc
lea eax, [ebp - 0x18]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4303ff74
test dx, dx
je 0x4303ff70
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4303ff74
add eax, edi
add ecx, edi
test dx, dx
jne 0x4303ff50
xor eax, eax
jmp 0x4303ff79
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x43037d3e
mov dword [0x4306c854], ebx
jmp 0x43037d3e
mov ecx, 0x43043800
lea eax, [ebp - 0x18]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4303ffb8
test dx, dx
je 0x4303ffb4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4303ffb8
add eax, edi
add ecx, edi
test dx, dx
jne 0x4303ff94
xor eax, eax
jmp 0x4303ffbd
sbb eax, eax
sbb eax, 0xffffffff
mov dword [0x4306c054], ebx
test eax, eax
jne 0x4303ffd2
and dword [0x4306c058], eax
jmp 0x43037d61
mov dword [0x4306c058], ebx
jmp 0x43037d61
Function at 0x4303892a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
mov edi, 0x20019
push edi
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x43038983
cmp dword [ebp - 4], ebx
je 0x43038983
lea eax, [ebp + 0xc]
push eax
push edi
push ebx
push dword [0x4306c1f4]
mov dword [ebp + 0xc], ebx
push dword [ebp - 4]
call esi
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
call esi
cmp edi, ebx
je 0x43042cdb
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
cmp dword [ebp + 0xc], ebx
je 0x43038983
lea eax, [ebp + 8]
push eax
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0xc]
mov edi, eax
call esi
cmp edi, ebx
je 0x43042d0b
cmp edi, 0xea
jne 0x43042d18
cmp dword [ebp + 8], ebx
je 0x43042d18
xor eax, eax
inc eax
jmp 0x43038985
xor eax, eax
jmp 0x43038985

Function at 0x43038ced
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x43038d68
push dword [ebp + 8]
mov dword [ebp - 8], ebx
mov byte [ebp - 1], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43038d4b
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push 0x43038d98
push dword [ebp - 8]
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x43038d61
cmp eax, ebx
je 0x430429a1
cmp dword [ebp - 8], ebx
pop ebx
je 0x43038d5a
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
leave
ret 4
mov byte [ebp - 1], 1
jmp 0x43038d4b
cmp dword [ebp - 0x10], 4
jne 0x43038d61
cmp dword [ebp + 8], 4
jne 0x430429bd
cmp dword [ebp - 0xc], ebx
setne byte [ebp - 1]
jmp 0x43038d4b
cmp dword [ebp + 8], 1
je 0x430429cd
cmp dword [ebp + 8], 2
jne 0x43038d4b
cmp word [ebp - 0xc], 0x30
jne 0x43038d61
mov byte [ebp - 1], bl
cmp word [ebp - 0xa], bx
jne 0x43038d61
jmp 0x43038d4b
Function at 0x4304c25f
Capabilities:
Hide graphical window

Disassembly:
cmp byte [edi + 0x30], 0
push esi
sete al
mov byte [edi + 0x30], al
lea esi, [edi + 4]
test al, al
je 0x4304c28c
push 5
push 0x1f7
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 0x2c]
jmp 0x4304c2a5
push 0
push 0x1f7
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 0x28]
call fcn.430481d2
xor eax, eax
pop esi
ret

Function at 0x4304e605
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4306c004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4306c84c], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
jne 0x4304e719
push ebx
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor eax, eax
mov word [ebp - 0x18], ax
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xa
lea eax, [ebp - 0x18]
xor ebx, ebx
push eax
inc ebx
push 0x43037904
mov dword [0x4306c84c], ebx
call esi
push 4
pop edi
test eax, eax
je 0x4304e69a
mov ecx, 0x430437fc
lea eax, [ebp - 0x18]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4304e68b
test dx, dx
je 0x4304e687
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4304e68b
add eax, edi
add ecx, edi
test dx, dx
jne 0x4304e667
xor eax, eax
jmp 0x4304e690
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4304e69a
mov dword [0x4306c848], ebx
and dword [0x4306c840], 0
push 0xa
lea eax, [ebp - 0x18]
push eax
push 0x43037d70
mov byte [0x4306c844], bl
call esi
test eax, eax
je 0x4304e6fb
mov ecx, 0x43043800
lea eax, [ebp - 0x18]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4304e6e4
test dx, dx
je 0x4304e6e0
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4304e6e4
add eax, edi
add ecx, edi
test dx, dx
jne 0x4304e6c0
xor eax, eax
jmp 0x4304e6e9
sbb eax, eax
sbb eax, 0xffffffff
mov dword [0x4306c840], ebx
test eax, eax
je 0x4304e70f
mov byte [0x4306c844], bl
jmp 0x4304e716
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x68]
test eax, eax
je 0x4304e716
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
test eax, eax
jne 0x4304e716
mov byte [0x4306c844], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.430364bf
leave
ret 4
Function at 0x4304eb37
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x4306c86c], 0
jne 0x4304eb50
push 0x4304eb78
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [0x4306c86c], eax
cmp dword [0x4306c868], 0
jne 0x4304eb74
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x4304eb9e
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x4306c868], eax
ret

Function at 0x43052a56
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x43052aaf
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x43052aa1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x43052a9d
cmp edi, eax
jae 0x43052aa1
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x43052a8f
cmp edi, eax
jb 0x43052aa5
xor eax, eax
jmp 0x43052aae
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
ret 8
Function at 0x43054cc6
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x640
mov eax, dword [0x4306c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x640], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x63c], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x634], eax
xor edi, edi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x638], esi
cmp dword [0x4306c854], edi
je 0x43054f39
push ebx
push 0x1fe
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push edi
push eax
mov dword [ebp - 0x630], edi
call sub.MSVCR100.dll_memset
add esp, 0xc
push dword [esi + 0x50]
mov esi, 0x105
mov edx, SysReAllocString
mov eax, esi
lea ecx, [ebp - 0x210]
call fcn.4304c327
mov ebx, eax
cmp ebx, edi
jl 0x43054f20
push 0x43043804
lea edi, [ebp - 0x210]
call fcn.4304c2de
mov ebx, eax
test ebx, ebx
js 0x43054f20
push 0x43043810
mov eax, edi
push eax
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x43054e5b
lea eax, [ebp - 0x41c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [eax - 1]
cmp ecx, 0x103
ja 0x43054f1b
xor ecx, ecx
mov word [ebp - 0x214], cx
cmp word [ebp + eax*2 - 0x41e], 0x5c
je 0x43054de0
push 0x5c
pop ecx
mov word [ebp + eax*2 - 0x41c], cx
inc eax
cmp eax, esi
jae 0x43054f1b
xor ecx, ecx
mov word [ebp + eax*2 - 0x41c], cx
lea eax, [ebp - 0x41c]
push eax
mov edx, SysReAllocString
mov eax, esi
lea ecx, [ebp - 0x210]
call fcn.4304c327
mov ebx, eax
test ebx, ebx
js 0x43054f20
mov eax, dword [ebp - 0x638]
push dword [eax + 0x48]
lea edi, [ebp - 0x210]
call fcn.4304c2de
mov ebx, eax
test ebx, ebx
js 0x43054f20
push 0x43043804
call fcn.4304c2de
mov ebx, eax
test ebx, ebx
js 0x43054f20
push 0x43043810
mov eax, edi
push eax
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x43054e5b
mov ebx, 0x80070005
jmp 0x43054f20
cmp dword [ebp - 0x630], 0
je 0x43054f36
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x100
lea eax, [ebp - 0x61c]
push eax
push 0
lea eax, [ebp - 0x62c]
push eax
push SysReAllocString
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
mov esi, dword [sym.imp.MSVCR100.dll_fwprintf]
test eax, eax
je 0x43054ebb
lea eax, [ebp - 0x61c]
push eax
push 0x43043818
push dword [ebp - 0x630]
call esi
add esp, 0xc
push 0x43043850
push dword [ebp - 0x630]
call esi
push dword [ebp - 0x640]
mov edi, 0x4304389c
push edi
push dword [ebp - 0x630]
call esi
push 0x430438a8
push dword [ebp - 0x630]
call esi
push dword [ebp - 0x63c]
push edi
push dword [ebp - 0x630]
call esi
push 0x430438f8
push dword [ebp - 0x630]
call esi
push dword [ebp - 0x634]
push edi
push dword [ebp - 0x630]
call esi
add esp, 0x3c
test eax, eax
jns 0x43054f20
mov ebx, 0x8000ffff
cmp dword [ebp - 0x630], 0
je 0x43054f36
push dword [ebp - 0x630]
call dword [sym.imp.MSVCR100.dll_fclose]
pop ecx
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.430364bf
leave
ret 0xc
Function at 0x43055760
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x4306c004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x1a
pop ecx
mov esi, 0x43055830
lea edi, [ebp - 0xb8]
rep movsd dword es:[edi], dword [esi]
push 0x4c
xor edi, edi
lea eax, [ebp - 0x50]
push edi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x27
lea eax, [ebp - 0x52]
push eax
push 0x43039f38
mov dword [ebp - 0xbc], edi
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x430557ba
mov esi, 0x8000ffff
jmp 0x43055807
lea eax, [ebp - 0xbc]
push eax
push 2
push edi
lea eax, [ebp - 0xb8]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x430557f9
push ebx
push dword [ebp - 0xbc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, 2
jne 0x430557f1
xor esi, esi
inc esi
jmp 0x43055807
cmp eax, edi
jne 0x430557f9
xor esi, esi
jmp 0x43055807
jle 0x43055805
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp dword [ebp - 0xbc], edi
je 0x4305581b
push dword [ebp - 0xbc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.430364bf
leave
ret

Function at 0x4305c24a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x201
xor esi, esi
push esi
push dword [ebp + 8]
xor edi, edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x4305c295
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
mov dword [ebp + 8], 4
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
je 0x4305c2a3
jle 0x4305c2a1
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp dword [ebp - 4], esi
je 0x4305c2b1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret 0xc
Function at 0x4305c457
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x4306c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0xd0], ebx
mov dword [ebp - 0xd4], 0xc8
call fcn.4305c132
test eax, eax
je 0x4305c493
xor eax, eax
inc eax
jmp 0x4305c567
lea eax, [ebp - 0xd0]
push eax
push 0x20219
push ebx
push 0x4305c578
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x4305c4b8
jle 0x4305c4e9
jmp 0x4305c4df
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xcc]
push eax
push ebx
push ebx
push 0x43044250
push dword [ebp - 0xd0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x4305c4ed
jle 0x4305c4e9
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x4305c54b
mov eax, dword [ebp + 8]
dec eax
push edi
je 0x4305c50a
dec eax
je 0x4305c4fe
mov ebx, 0x8000ffff
jmp 0x4305c54a
mov eax, 0x4305c61c
mov edi, 0x4305c644
jmp 0x4305c514
mov eax, 0x4305c5cc
mov edi, 0x4305c5f4
push esi
mov esi, dword [sym.imp.msi.dll_MsiDatabaseApplyTransformA]
push 3
push eax
lea eax, [ebp - 0xcc]
push eax
call esi
test eax, eax
jne 0x4305c53b
push 3
push edi
lea eax, [ebp - 0xcc]
push eax
call esi
test eax, eax
je 0x4305c549
jle 0x4305c547
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
pop esi
pop edi
cmp dword [ebp - 0xd0], 0
je 0x4305c560
push dword [ebp - 0xd0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test ebx, ebx
setns al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.430364bf
leave
ret 4
Function at 0x4305c697
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x4306c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0xd4]
push eax
push 0x20219
xor ebx, ebx
push ebx
push 0x4305c860
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xd0], ebx
mov dword [ebp - 0xd4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x4305c6f3
jle 0x4305c6e8
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0xd0], eax
jmp 0x4305c821
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xcc]
push eax
push ebx
push dword [ebp - 0xd4]
mov dword [ebp - 0xdc], ebx
mov dword [ebp - 0xd8], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x4305c821
push edi
cmp eax, ebx
jne 0x4305c80e
mov edi, dword [sym.imp.MSVCR100.dll_wcsncmp]
push 4
lea eax, [ebp - 0xcc]
push 0x4305c848
push eax
call edi
add esp, 0xc
test eax, eax
jne 0x4305c7ce
push 4
lea eax, [ebp - 0xcc]
push 0x4305c854
push eax
call edi
add esp, 0xc
test eax, eax
jne 0x4305c7ce
lea eax, [ebp - 0xcc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4305c773
sub eax, edx
sar eax, 1
lea edi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_]
mov ecx, dword [esi + 0x190]
mov dword [esi + ecx*4], eax
lea eax, [ebp - 0xcc]
push eax
mov eax, dword [esi + 0x190]
push edi
push dword [esi + eax*4]
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0x10
inc dword [esi + 0x190]
cmp dword [esi + 0x190], 0x64
jge 0x4305c820
inc dword [ebp - 0xdc]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0xdc]
mov dword [ebp - 0xd8], 0xc8
push dword [ebp - 0xd4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x4305c820
jmp 0x4305c72e
jle 0x4305c81a
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0xd0], eax
pop edi
cmp dword [ebp - 0xd4], ebx
pop ebx
je 0x4305c836
push dword [ebp - 0xd4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xd0]
xor ecx, ebp
call fcn.430364bf
leave
ret
Function at 0x4305c96c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x4306c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x198], ebx
mov dword [ebp - 0x19c], 0xc8
call fcn.4305c8ac
test eax, eax
je 0x4305c9ab
xor eax, eax
inc eax
jmp 0x4305caa7
push 0x43044268
lea eax, [ebp - 0xcc]
push 0x64
push eax
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
push esi
lea eax, [ebp - 0xcc]
push 0x64
push eax
call dword [sym.imp.MSVCR100.dll_wcscat_s]
add esp, 0x18
lea eax, [ebp - 0x198]
push eax
push 0x20219
push ebx
lea eax, [ebp - 0xcc]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x4305c9f9
jle 0x4305ca2a
jmp 0x4305ca20
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x194]
push eax
push ebx
push ebx
push 0x43044250
push dword [ebp - 0x198]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x4305ca2e
jle 0x4305ca2a
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x4305ca8b
mov eax, dword [ebp + 8]
dec eax
mov esi, dword [sym.imp.msi.dll_MsiDatabaseApplyTransformA]
push edi
je 0x4305ca4c
dec eax
je 0x4305ca45
mov ebx, 0x8000ffff
jmp 0x4305ca8a
mov edi, 0x430442d8
jmp 0x4305ca6c
xor ecx, ecx
mov eax, 0x4305cab8
mov edi, 0x430442b8
cmp ecx, eax
je 0x4305ca6c
push 3
push eax
lea eax, [ebp - 0x194]
push eax
call esi
test eax, eax
jne 0x4305ca7c
push 3
push edi
lea eax, [ebp - 0x194]
push eax
call esi
test eax, eax
je 0x4305ca8a
jle 0x4305ca88
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
pop edi
cmp dword [ebp - 0x198], 0
je 0x4305caa0
push dword [ebp - 0x198]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test ebx, ebx
setns al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.430364bf
leave
ret 4
Function at 0x4305cc5e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 8]
push eax
xor esi, esi
push 0x20019
push esi
push 0x4305cd20
push SysReAllocString
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebx], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
je 0x4305cca0
jle 0x4305cc9b
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x4305cd07
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push esi
push esi
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
call edi
cmp eax, esi
jne 0x4305ccf7
mov eax, dword [ebp - 0xc]
shr eax, 1
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_]
pop ecx
mov dword [ebx], eax
cmp eax, esi
jne 0x4305cce6
mov dword [ebp - 4], 0x8007000e
jmp 0x4305cd06
lea ecx, [ebp - 0xc]
push ecx
push eax
push esi
push esi
push esi
push dword [ebp - 8]
call edi
cmp eax, esi
je 0x4305cd06
jle 0x4305cd03
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
pop edi
cmp dword [ebp - 8], esi
pop esi
je 0x4305cd16
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
leave
ret

Function at 0x4305cd98
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
xor edi, edi
mov dword [ebx], edi
mov dword [ebp - 4], edi
cmp dword [ebp + 8], edi
jne 0x4305cdb7
mov edi, 0x80004003
jmp 0x4305ce55
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 3
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeExW]
mov esi, eax
cmp esi, edi
jne 0x4305cde5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x4305cde1
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x4305ce54
push esi
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_]
pop ecx
mov dword [ebp - 8], eax
test eax, eax
jne 0x4305cdfb
mov edi, 0x8007000e
jmp 0x4305ce54
push eax
push esi
push dword [ebp - 4]
push dword [ebp + 8]
push 3
call dword [sym.imp.VERSION.dll_GetFileVersionInfoExW]
test eax, eax
jne 0x4305ce27
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4305ce23
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x4305ce4a
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x43044320
push dword [ebp - 8]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4305ce0f
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0xa]
mov dword [ebx], eax
push dword [ebp - 8]
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
pop ecx
pop esi
mov eax, edi
pop edi
leave
ret 4

Function at 0x4305d013
Capabilities:
Check internet connectivity via wininet

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov al, byte [ebp - 4]
shr al, 5
and al, 1
leave
ret