joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475df1
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4a0340]
xor eax, ebp
cmp dword [ebp + 8], 0x800
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x475e21
push 0x4899b0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x475e33
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x475e65
lea eax, [ebp - 0xc]
push eax
push esi
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.00450a61
add esp, 0x10
cmp eax, 0xffffffff
je 0x475e65
cmp eax, esi
jae 0x475e65
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x475e67
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00450b02
leave
ret
Function at 0x475e8a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4a0340]
push ebx
push esi
xor eax, ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x489a5c
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x28], ebx
xor esi, esi
call edi
push 0x489a40
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x475f34
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x2c], ecx
call esi
push dword [ebp - 0x2c]
mov dword [ebp - 0x48], eax
call esi
push 0x489a24
push dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x40], eax
call esi
mov dword [ebp - 0x3c], eax
push 4
xor ebx, ebx
jmp 0x476036
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x475fe4
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push ebx
push 0x4899d8
push SysReAllocString
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x476037
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x475fd9
cmp dword [ebp - 0x34], 1
jne 0x475fd9
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x24]
push 0x4899cc
push eax
call fcn.00450b10
add esp, 0xc
cmp eax, 1
jne 0x475fd9
mov eax, dword [ebp - 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x48], eax
call esi
push 2
mov dword [ebp - 0x44], eax
pop esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x476037
push 0x4899b8
call edi
cmp eax, ebx
je 0x476037
lea ecx, [ebp - 0x28]
push ecx
push 0x475e74
push 1
push 0x10
push eax
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
cmp word [ebp - 0x28], bx
je 0x476037
movzx eax, word [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x48], eax
call esi
mov dword [ebp - 0x44], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x48], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x47605c
push dword [ebp + edi*4 - 0x48]
mov ecx, dword [ebp - 0x4c]
call fcn.00475df1
cmp eax, ebx
pop ecx
jne 0x47605e
inc edi
cmp edi, esi
jl 0x476046
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450b02
leave
ret 4
Function at 0x4776b4
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x47ed5d
call fcn.0044d428
sub esp, 0x228
mov eax, dword [0x4a0340]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, ebp
mov dword [ebp - 0x10], esp
lea edx, [ebp - 0x228]
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
push edx
push eax
push ecx
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x22c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
test esi, esi
jne 0x4777c2
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
test esi, esi
jne 0x477796
and dword [ebp - 4], eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x224]
call fcn.004424f1
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x228]
mov byte [ebp - 4], 1
call fcn.004776b4
mov ecx, dword [ebp - 0x224]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401148
test bl, bl
jne 0x477796
or dword [ebp - 4], 0xffffffff
jmp 0x477701
cmp esi, 0x103
je 0x4777a6
cmp esi, 0x3f2
jne 0x4777b6
push dword [edi]
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450b02
leave
ret 8

Function at 0x478338
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x47836d
cmp edi, dword [esi + 0xc]
jge 0x47836d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47836d
cmp edi, dword [eax + 8]
jge 0x47836d
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x47836f
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x478473
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4784a7
jmp fcn.0046161e
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret
Function at 0x478518
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x478611
cmp eax, dword [edi + 0xc]
jge 0x478611
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x478569
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x4785fa
cmp dword [ebp + 0xc], ebx
je 0x4785fa
jmp 0x478593
push 0x10
call fcn.00478204
cmp eax, ebx
je 0x47857f
mov ecx, eax
call fcn.0047846a
mov esi, eax
jmp 0x478581
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x4785aa
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4785ba
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x4785cc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0046161e
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.0044d4a0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x47860c
cmp ecx, dword [esi + 8]
jge 0x47860c
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x478612
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4786d0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4786fe
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47871c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047863a
jmp 0x47871c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47871c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0047863a
test edi, edi
mov eax, edi
jne 0x478706
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4a581c]
test ecx, ecx
je 0x4787cf
jmp 0x4786cf
ret 8
Function at 0x4789bd
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x4789ec
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
neg eax
sbb eax, eax
inc eax
jmp 0x478a3d
push esi
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x478a3a
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0xc]
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x478a3a
test esi, esi
jne 0x478a3a
inc eax
jmp 0x478a3c
xor eax, eax
pop esi
pop ebp
ret 0xc

Function at 0x47a4de
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov dword [ebp - 4], eax
and dword [ebp - 4], 1
push edi
mov edi, 0x48d800
je 0x47a544
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueW]
push 0
mov ebx, 0x48d8c8
push ebx
push 1
push edi
push dword [ebp + 8]
call esi
test eax, eax
jne 0x47a51e
push eax
push ebx
push 1
push edi
push dword [ebp + 0xc]
call esi
test eax, eax
je 0x47a541
xor esi, esi
cmp dword [ebp - 4], 0
je 0x47a538
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push edi
push dword [ebp + 0xc]
call ebx
push edi
push dword [ebp + 8]
call ebx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
mov eax, dword [ebp + 0x10]
xor ebx, ebx
test al, 2
je 0x47a54f
mov ebx, 0x49f8e0
test al, 4
je 0x47a558
mov ebx, 0x49f900
and eax, 6
cmp al, 6
jne 0x47a564
mov ebx, 0x49f8f4
test ebx, ebx
je 0x47a5c1
lea eax, [ebp + 0x10]
push eax
push 0x20006
push 0
push 0x48d7e0
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x47a520
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push 0x48d7c0
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0x10]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x47a520
xor eax, eax
inc eax
jmp 0x47a53a
Function at 0x47a6cd
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x47f599
call fcn.0044d428
sub esp, 0x224
mov eax, dword [0x4a0340]
push ebx
mov ebx, dword [ebp + 8]
xor eax, ebp
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x21c], edi
call fcn.00466fe3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x218], eax
and dword [ebp - 4], 0
call fcn.00466fe3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
and dword [ebp - 0x228], 0
mov esi, SysReAllocString
cmp edi, esi
mov byte [ebp - 4], 1
jne 0x47a761
lea eax, [ebp - 0x228]
push eax
push 0x20019
push 0
push 0x4851dc
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [ebx]
test edi, edi
mov dword [ebp - 0x22c], 1
je 0x47a864
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
add dword [ebp - 0x224], 4
cmp dword [ebp - 0x21c], esi
jne 0x47a794
cmp word [edi], 0
je 0x47a846
push edi
call ebx
push dword [ebp + 0x10]
lea eax, [edi + eax*2 + 2]
push dword [ebp - 0x230]
mov dword [ebp - 0x214], eax
push edi
lea eax, [ebp - 0x218]
push eax
call fcn.00470c8c
push dword [ebp + 0x10]
lea eax, [ebp - 0x220]
push dword [ebp - 0x230]
push dword [ebp - 0x214]
push eax
call fcn.00470c8c
cmp dword [ebp - 0x21c], esi
mov eax, dword [ebp - 0x218]
jne 0x47a7e6
cmp dword [eax - 0xc], 0
je 0x47a846
cmp dword [ebp + 0x14], 0
jne 0x47a81b
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x210]
push ecx
push eax
push dword [ebp - 0x21c]
mov dword [ebp - 0x214], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
je 0x47a846
mov eax, dword [ebp - 0x218]
mov edi, dword [ebp - 0x220]
push edi
mov dword [ebp - 0x214], eax
call ebx
shl eax, 1
push eax
push edi
push 1
push dword [ebp - 0x214]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
test eax, eax
jne 0x47a858
mov eax, dword [ebp - 0x224]
mov edi, dword [eax]
test edi, edi
jne 0x47a77b
jmp 0x47a864
cmp eax, 5
je 0x47a864
and dword [ebp - 0x22c], 0
cmp dword [ebp - 0x228], 0
pop edi
pop esi
pop ebx
je 0x47a87c
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.00401148
mov ecx, dword [ebp - 0x218]
add ecx, 0xfffffff0
call fcn.00401148
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x22c]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00450b02
leave
ret 0x14
Function at 0x47ca8d
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x47f015
call fcn.0044d428
sub esp, 0x198
mov eax, dword [0x4a0340]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, ebp
push 0x477d98
mov ecx, 0x4a55cc
mov dword [ebp - 0x10], eax
call fcn.00478398
mov edi, eax
xor ebx, ebx
cmp dword [edi + 0xc], ebx
jne 0x47caf1
cmp esi, ebx
jne 0x47cacf
lea esi, [ebp - 0x1a0]
push esi
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, ebx
jne 0x47cb23
cmp byte [esi], 1
jne 0x47cb1d
cmp byte [esi + 1], 1
jne 0x47cb1d
mov dword [edi + 0xc], 0x47ca5a
call fcn.00476c1f
mov esi, eax
cmp dword [esi + 0x30], ebx
jne 0x47cb30
push 0x1c
call fcn.004637cb
pop ecx
mov ecx, eax
mov dword [ebp - 0x1a4], ecx
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x47cb27
push 0xa
call fcn.00463160
jmp 0x47cb29
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x47cb93
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x30], eax
cmp dword [esi + 0x34], ebx
jne 0x47cb62
push 0x1c
call fcn.004637cb
pop ecx
mov ecx, eax
mov dword [ebp - 0x1a4], ecx
cmp ecx, ebx
mov dword [ebp - 4], 1
je 0x47cb59
push 0xa
call fcn.00463160
jmp 0x47cb5b
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x34], eax
cmp dword [esi + 0x38], ebx
jne 0x47cb90
push 0x1c
call fcn.004637cb
pop ecx
mov ecx, eax
mov dword [ebp - 0x1a4], ecx
cmp ecx, ebx
mov dword [ebp - 4], 2
je 0x47cb8b
push 0xa
call fcn.00462c41
jmp 0x47cb8d
xor eax, eax
mov dword [esi + 0x38], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.00450b02
leave
ret 4
Function at 0x40555a
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
and dword [ebp - 4], 0
lea ecx, [ebp - 8]
and dword [ebp - 0xc], 0
push ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], eax
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.00410369
mov esi, eax
test esi, esi
js 0x405616
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call fcn.00410369
mov esi, eax
test esi, esi
jne 0x40560f
mov ebx, dword [ebp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov eax, dword [ebp - 4]
push 0x2f
pop edx
movzx ecx, word [eax]
cmp dx, cx
je 0x4055c9
push 0x2d
pop edx
cmp dx, cx
jne 0x40562e
lea esi, [eax + 2]
push esi
push str.standalone
call edi
test eax, eax
jne 0x4055e3
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
jmp 0x4055f5
push esi
push str.standalone:temp
call edi
test eax, eax
jne 0x405635
mov dword [ebx], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call fcn.00410369
mov esi, eax
test esi, esi
je 0x4055b3
xor eax, eax
test esi, esi
cmovns esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x405623
push eax
call fcn.0040e63e
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, 0x80070057
jmp 0x405619
push esi
push str.standalone:delete
call edi
mov esi, 0x80070057
jmp 0x405616
Function at 0x409a32
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 8], ebx
cmp dword [edi + 0x44], ebx
je 0x409a4f
xor esi, esi
inc esi
jmp 0x409c24
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x409aa0
mov eax, dword [edi + 0xc]
lea edx, [ebp - 0xc]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov esi, eax
test esi, esi
js 0x409c24
lea eax, [ebp + 8]
push eax
push 2
push ebx
push dword [edi + 0x14]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x409c24
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], 1
mov eax, dword [edi + 0x48]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 4
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.Size
push ecx
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x409c15
mov eax, dword [edi + 0x50]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 4
push 0
push str.Progress
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x409c15
push 4
lea eax, [edi + 0x74]
push eax
push 4
push 0
push str.LastAttemptHigh
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x409c15
push 4
lea eax, [edi + 0x70]
push eax
push 4
push 0
push str.LastAttemptLow
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x409c15
push 4
lea eax, [edi + 0x6c]
push eax
push 4
push 0
push str.LastError
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x409c15
push 4
lea eax, [edi + 0x5c]
push eax
push 4
push 0
push str.StateCache
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x409c15
push 4
lea eax, [edi + 0x60]
push eax
push 4
push 0
push str.StateExtract
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x409c15
push 4
lea eax, [edi + 0x64]
push eax
push 4
push 0
push str.StateVerify
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x409c15
push 4
lea eax, [edi + 0x68]
push eax
push 4
push 0
push str.StateAvailable
push dword [ebp + 8]
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp dword [ebp - 8], 0
je 0x409c24
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40c630
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x116c
call fcn.0041188c
mov eax, dword [0x42e070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1164], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x116c], eax
xor edi, edi
mov eax, dword [ebp + 0x14]
push 0x1154
mov dword [ebp - 0x1168], eax
lea eax, [ebp - 0x1158]
push edi
push eax
mov dword [ebp - 0x115c], edi
mov dword [ebx], edi
call fcn.004122f1
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x1150]
mov dword [ebp - 0x1158], 0x1154
push 0x80
push eax
mov dword [ebp - 0x1154], 7
call fcn.004165bf
add esp, 0x1c
mov dword [ebp - 0x1160], 0x1048
lea eax, [ebp - 0x1160]
push eax
lea eax, [ebp - 0x1050]
push eax
push edi
push edi
push str.Path
push dword [ebp - 0x1164]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40c760
lea eax, [ebp - 0x1160]
mov dword [ebp - 0x1160], 4
push eax
lea eax, [ebp - 8]
push eax
push edi
push edi
push str.Priority
push dword [ebp - 0x1164]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40c760
lea eax, [ebp - 0x115c]
push eax
push dword [ebp - 0x1168]
lea eax, [ebp - 0x1158]
push eax
push dword [ebp - 0x116c]
call fcn.0040c5b9
mov esi, eax
test esi, esi
js 0x40c760
mov eax, dword [ebp - 0x115c]
mov esi, edi
mov dword [ebx], eax
mov dword [ebp - 0x115c], edi
jmp 0x40c766
mov edi, dword [ebp - 0x115c]
test edi, edi
je 0x40c77b
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
add eax, 4
add eax, edi
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411786
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40caed
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
xor esi, esi
push edi
mov eax, dword [ebx + 0x250]
mov edi, esi
cmp eax, 0xffffffff
jne 0x40cb0a
inc edi
jmp 0x40cbd5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx + 0x250], 0xffffffff
cmp dword [ebp + 8], esi
je 0x40cbd5
cmp dword [ebx + 0x14], esi
jne 0x40cbd5
push esi
push esi
push 3
push esi
push esi
push 0xc0000000
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x250], eax
cmp eax, 0xffffffff
jne 0x40cb64
call esi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40cbd5
push 0
push 0
push dword [ebx + 0x244]
push dword [ebx + 0x240]
push dword [ebx + 0x250]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x40cb98
call esi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40cbd5
push dword [ebx + 0x250]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x40cbbc
call esi
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x40cbd5
mov eax, dword [ebx + 0x244]
mov esi, dword [ebx + 0x20]
mov edx, dword [ebx + 0x240]
push eax
push edx
mov ecx, dword [esi]
push eax
push edx
push esi
call dword [ecx + 0x50]
mov eax, dword [ebx + 0x250]
cmp eax, 0xffffffff
je 0x40cbee
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx + 0x250], 0xffffffff
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4