joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fd50
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba0c0
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x52a0b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 4], 0
mov eax, dword [ebp + 8]
je 0x40fdeb
test eax, eax
je 0x40fd93
mov dword [eax], 0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40fe4e
push 0
lea eax, [esi + 0xc]
mov dword [ebp - 0x44], 0x4e81b4
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x1c], 0x4e8f38
call fcn.00406fd0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x44]
push 1
push eax
lea ecx, [ebp - 0x9c]
call fcn.0040f660
push 0x527b44
lea eax, [ebp - 0x9c]
push eax
call fcn.004a35fa
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40fe4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x40fe4e
push 0
lea ecx, [esi + 0xc]
mov dword [ebp - 0x44], 0x4e81b4
push ecx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x1c], 0x4e8f38
call fcn.00406fd0
mov dword [ebp - 4], 4
lea eax, [ebp - 0x44]
push 1
push ebx
push eax
lea ecx, [ebp - 0x9c]
call fcn.0040f420
push 0x527bb8
lea eax, [ebp - 0x9c]
push eax
call fcn.004a35fa
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a14ba
mov esp, ebp
pop ebp
ret 4

Function at 0x410cf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba490
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x52a0b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 0xc], 0xffffffff
lea eax, [ebp - 0x98]
mov ecx, dword [esi + 4]
mov edx, 1
cmovne edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x98], 0
test ecx, ecx
je 0x410d9b
push eax
push edx
push edi
call fcn.0049b42b
test al, al
jne 0x410df1
push 0
lea eax, [esi + 0xc]
mov dword [ebp - 0x40], 0x4e81b4
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e8f38
call fcn.00406fd0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push 1
push eax
lea ecx, [ebp - 0x94]
call fcn.0040f660
push 0x527b44
lea eax, [ebp - 0x94]
push eax
call fcn.004a35fa
push 0
push eax
push edx
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410df1
push eax
lea eax, [esi + 0xc]
mov dword [ebp - 0x40], 0x4e81b4
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e8f38
call fcn.00406fd0
mov dword [ebp - 4], 4
lea eax, [ebp - 0x40]
push 1
push eax
lea ecx, [ebp - 0x90]
call fcn.0040f340
push 0x527bb8
lea eax, [ebp - 0x90]
push eax
call fcn.004a35fa
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a14ba
mov esp, ebp
pop ebp
ret 8
Function at 0x410e20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba4e0
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x52a0b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 0xc], 0xffffffff
lea eax, [ebp - 0x9c]
mov ecx, dword [esi + 4]
mov edx, 1
cmovne edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x9c], 0
test ecx, ecx
je 0x410ecb
push eax
push edx
push edi
call fcn.0049b42b
test al, al
jne 0x410f21
push 0
lea eax, [esi + 0xc]
mov dword [ebp - 0x40], 0x4e81b4
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e8f38
call fcn.00406fd0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push 1
push eax
lea ecx, [ebp - 0x98]
call fcn.0040f660
push 0x527b44
lea eax, [ebp - 0x98]
push eax
call fcn.004a35fa
push 0
push eax
push edx
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410f21
push eax
lea eax, [esi + 0xc]
mov dword [ebp - 0x40], 0x4e81b4
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e8f38
call fcn.00406fd0
mov dword [ebp - 4], 4
lea eax, [ebp - 0x40]
push 1
push eax
lea ecx, [ebp - 0x98]
call fcn.0040f340
push 0x527bb8
lea eax, [ebp - 0x98]
push eax
call fcn.004a35fa
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a14ba
mov esp, ebp
pop ebp
ret 8

Function at 0x4118c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba792
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x52a0b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ebp - 4], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov byte [ebp - 4], 1
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov byte [ebp - 4], 2
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov byte [ebp - 4], 3
lea eax, [ecx + 0x30]
mov dword [ebp - 0x14], eax
mov dword [eax], 0
mov byte [ebp - 4], 5
lea eax, [ecx + 0x34]
mov dword [ebp - 0x14], eax
mov dword [eax], 0
mov byte [ebp - 4], 7
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x3c], 0
mov dword [ecx + 0x40], 0
mov byte [ebp - 4], 8
mov dword [ecx + 0x44], 0
mov dword [ecx + 0x48], 0
mov dword [ecx + 0x4c], 0
mov byte [ebp - 4], 9
mov dword [ecx + 0x50], 0
mov dword [ecx + 0x54], 0
mov dword [ecx + 0x58], 0
mov byte [ebp - 4], 0xa
mov dword [ecx + 0x5c], 0
mov dword [ecx + 0x60], 0
mov dword [ecx + 0x64], 0
mov byte [ebp - 4], 0xb
mov dword [ecx + 0x68], 0
mov byte [ebp - 4], 0xc
mov dword [ecx + 0x6c], 0
mov byte [ebp - 4], 0xd
mov dword [ecx + 0x70], 0
mov byte [ebp - 4], 0xe
mov dword [ecx + 0x74], 0
mov byte [ebp - 4], 0xf
mov dword [ecx + 0x78], 0
mov byte [ebp - 4], 0x10
mov dword [ecx + 0x7c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x412840
Capabilities:
Hash data with crc32

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4128e9
push 0x400
call fcn.004a14d0
add esp, 4
mov dword [esi], eax
xor edx, edx
lea ecx, [ecx]
mov eax, edx
shr eax, 1
test dl, 1
je 0x41286e
xor eax, 0xedb88320
test al, 1
je 0x41287b
shr eax, 1
xor eax, 0xedb88320
jmp 0x41287d
shr eax, 1
test al, 1
je 0x41288a
shr eax, 1
xor eax, 0xedb88320
jmp 0x41288c
shr eax, 1
test al, 1
je 0x412899
shr eax, 1
xor eax, 0xedb88320
jmp 0x41289b
shr eax, 1
test al, 1
je 0x4128a8
shr eax, 1
xor eax, 0xedb88320
jmp 0x4128aa
shr eax, 1
test al, 1
je 0x4128b7
shr eax, 1
xor eax, 0xedb88320
jmp 0x4128b9
shr eax, 1
test al, 1
je 0x4128c6
shr eax, 1
xor eax, 0xedb88320
jmp 0x4128c8
shr eax, 1
test al, 1
je 0x4128d5
shr eax, 1
xor eax, 0xedb88320
jmp 0x4128d7
shr eax, 1
mov ecx, dword [esi]
mov dword [ecx + edx*4], eax
inc edx
cmp edx, 0xff
jle 0x412860
pop esi
ret

Function at 0x4128f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov eax, ecx
push edi
mov dword [ebp - 4], eax
call fcn.00412840
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x14]
lea ebx, [esi*2 + 2]
cmp ebx, dword [edi + 0x20]
jae 0x412919
cmp dword [edi + 0x1c], 0
jne 0x412936
push dword [edi + 0x1c]
call fcn.004a14cb
and ebx, 0xffffffc0
lea eax, [ebx + 0x40]
push eax
mov dword [edi + 0x20], eax
call fcn.004a14d0
add esp, 8
mov dword [edi + 0x1c], eax
push 3
push dword [edi + 0x20]
mov ecx, edi
push dword [edi + 0x1c]
call fcn.00408320
mov ecx, dword [edi + 0x1c]
or ebx, 0xffffffff
mov edi, dword [ebp - 4]
test esi, esi
je 0x41296a
mov edx, dword [edi]
movzx eax, byte [ecx]
lea ecx, [ecx + 1]
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [edx + eax*4]
sub esi, 1
jne 0x412954
mov eax, dword [edi]
test eax, eax
je 0x412979
push eax
call fcn.004a14cb
add esp, 4
not ebx
mov dword [edi], 0
mov dword [ebp + 8], ebx
movzx eax, bl
rol eax, 3
xor al, 0x74
mov dword [ebp - 4], ebx
mov byte [ebp + 8], al
movzx eax, byte [ebp + 9]
ror eax, 5
xor al, 0x74
mov byte [ebp + 9], al
movzx eax, byte [ebp + 0xa]
rol eax, 7
xor al, 0x74
mov byte [ebp + 0xa], al
movzx eax, byte [ebp + 0xb]
ror eax, 3
xor al, 0x74
mov byte [ebp + 0xb], al
lea eax, [ebp - 4]
push 4
push eax
lea eax, [ebp + 8]
push eax
call fcn.004a7169
mov eax, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4132a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bac78
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x52a0b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x4132f8
mov eax, dword [eax]
push 0x20019
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x1c]
call fcn.00413a60
mov esi, dword [ebp - 0x1c]
test eax, eax
jne 0x413334
mov eax, dword [ebp + 0x10]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x413320
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push ecx
push 0
lea ecx, [ebp + 0xc]
push ecx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x413350
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
mov eax, edi
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x414360
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb118
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x52a0b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
cmp byte [esi + 0x70], 0
je 0x4143ba
call fcn.0049a8a3
mov ecx, 0x20119
test al, al
jne 0x4143bf
mov ecx, 0x20019
cmp dword [esi + 0x28], 8
lea eax, [esi + 0x14]
jb 0x4143ca
mov eax, dword [eax]
push ecx
push eax
push dword [esi + 0xc]
lea ecx, [ebp - 0x1c]
call fcn.00413a60
mov edi, dword [ebp - 0x1c]
test eax, eax
je 0x4143e2
xor bl, bl
jmp 0x414416
cmp dword [esi + 0x54], 0
jne 0x4143ec
mov bl, 1
jmp 0x414416
add esi, 0x44
mov dword [ebp - 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x4143fe
mov esi, dword [esi]
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
setne bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x41442f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
mov al, bl
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415750
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb92f
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x52a0b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea esi, [edi + 4]
mov dword [edi], vtable.CProperties.0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004623d0
mov dword [esi], eax
mov dword [ebp - 4], 2
mov byte [edi + 0xc], 0
mov dword [ebp - 4], 3
mov dword [edi], vtable.CLanguageManager.0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov byte [ebp - 4], 4
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov byte [ebp - 4], 5
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov byte [ebp - 4], 6
lea esi, [edi + 0x44]
mov dword [edi + 0x34], 0x409
mov dword [edi + 0x38], 0x409
mov dword [edi + 0x3c], 0
mov word [edi + 0x40], 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00431650
mov dword [esi], eax
mov byte [ebp - 4], 9
mov dword [edi + 0x4c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x429150
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c19a8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x52a0b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [edi]
sub esp, 0x30
mov esi, dword [ebp + 0xc]
mov eax, esp
mov dword [ebp - 0x50], esp
push eax
call dword [edx + 4]
mov dword [ebp - 4], 0
sub esp, 0x30
mov ecx, esp
mov dword [ebp - 0x48], esp
lea eax, [ebp - 0x41]
mov dword [ebp - 0x4c], ecx
push 0
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov dword [ecx], 0x4e81b4
mov dword [ecx + 0x28], 0x4e8f38
call fcn.00404190
mov byte [ebp - 4], 2
push SysReAllocString
mov dword [ebp - 4], 0xffffffff
call fcn.00499f3c
add esp, 0x34
lea eax, [ebp - 0x41]
mov ecx, esp
mov dword [ebp - 0x4c], esp
mov dword [ebp - 0x48], ecx
push 0
push eax
push str.Reboot
mov dword [ecx], 0x4e81b4
mov dword [ecx + 0x28], 0x4e8f38
call fcn.00404190
mov dword [ebp - 4], 4
sub esp, 0x30
mov eax, esp
mov dword [ebp - 0x48], esp
mov ecx, edi
push eax
call fcn.00441440
mov byte [ebp - 4], 5
push SysReAllocString
mov dword [ebp - 4], 0xffffffff
call fcn.00499f3c
add esp, 0x64
mov dword [ebp - 0x40], 0x4e81b4
lea eax, [ebp - 0x41]
mov dword [ebp - 0x18], 0x4e8f38
lea ecx, [ebp - 0x40]
push 0
push eax
push 0x4e23a8
call fcn.00404190
mov dword [ebp - 4], 7
lea eax, [ebp - 0x40]
push esi
mov esi, dword [ebp + 8]
mov ecx, edi
push eax
push esi
push 2
call fcn.00425220
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404c20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a14ba
mov esp, ebp
pop ebp
ret 8
Function at 0x436340
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c419e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x52a0b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xor eax, eax
mov dword [edi], vtable.std::exception.0
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [ebp - 4], eax
sub esp, 8
lea ecx, [edi + 0x30]
mov dword [edi], vtable.com_exception.0
call fcn.00404910
mov byte [ebp - 4], 1
sub esp, 8
lea ecx, [edi + 0x60]
call fcn.00404910
mov byte [ebp - 4], 2
lea ecx, [edi + 0x34]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xc]
lea edx, [ebx + 0x30]
mov dword [edi + 0xc], eax
lea eax, [edx + 4]
neg edx
sbb edx, edx
and edx, eax
cmp ecx, edx
je 0x4363c6
push 0xffffffffffffffff
push 0
push edx
call fcn.00404530
lea edx, [ebx + 0x60]
lea eax, [edx + 4]
neg edx
lea ecx, [edi + 0x64]
sbb edx, edx
and edx, eax
cmp ecx, edx
je 0x4363e3
push 0xffffffffffffffff
push 0
push edx
call fcn.00404530
mov eax, dword [ebx + 0x20]
mov dword [edi + 0x20], eax
mov eax, dword [ebx + 0x24]
mov dword [edi + 0x24], eax
mov eax, dword [ebx + 0x28]
mov dword [edi + 0x28], eax
mov eax, dword [ebx + 0x2c]
mov dword [edi + 0x2c], eax
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [ebx + 0x18]
mov dword [edi + 0x18], eax
mov eax, dword [ebx + 0x1c]
mov dword [edi + 0x1c], eax
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x436850
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c42ae
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x52a0b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [esi], vtable.std::exception.0
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
sub esp, 8
mov dword [esi], vtable.com_exception.0
lea ecx, [esi + 0x30]
mov eax, dword [0x4dd5a8]
mov dword [esi + 0x10], eax
mov eax, dword [0x4dd5ac]
mov dword [esi + 0x14], eax
mov eax, dword [0x4dd5b0]
mov dword [esi + 0x18], eax
mov eax, dword [0x4dd5b4]
mov dword [esi + 0x1c], eax
mov eax, dword [0x4dd5a8]
mov dword [esi + 0x20], eax
mov eax, dword [0x4dd5ac]
mov dword [esi + 0x24], eax
mov eax, dword [0x4dd5b0]
mov dword [esi + 0x28], eax
mov eax, dword [0x4dd5b4]
mov dword [esi + 0x2c], eax
call fcn.00404910
mov byte [ebp - 4], 1
sub esp, 8
lea ecx, [esi + 0x60]
call fcn.00404910
mov byte [ebp - 4], 2
mov ecx, esi
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
call fcn.00436600
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x437260
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4372d1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x43729f
cmp eax, 2
jne 0x4372bb
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x4372cb
test ecx, ecx
je 0x4372c6
test cl, 1
jne 0x4372bb
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x4372cb
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x437ac0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c46ba
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x52a0b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x254], esi
lea eax, [ebp - 0x218]
mov dword [ebp - 0x258], esi
push eax
push 0x104
mov dword [ebp - 0x250], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x437b89
mov dword [ebp - method.std::exception.virtual_0], vtable.std::exception.0
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 4], 1
mov dword [ebp - method.is::win32_exception.virtual_0], vtable.is::win32_exception.0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 4
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], 0
mov byte [ebp - 0x220], 0
call fcn.004a1806
add esp, 4
mov dword [eax], 1
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 0
lea eax, [ebp - 0x234]
push 0x527a94
push eax
call fcn.004a35fa
push 0
lea eax, [ebp - 0x249]
mov dword [ebp - 0x248], 0x4e81b4
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 0x4e8f38
push eax
lea ecx, [ebp - 0x248]
call fcn.00404190
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x248]
push 0x4e82a8
call fcn.00409f30
push 0
push eax
mov ecx, esi
mov dword [esi], 0x4e81b4
mov dword [esi + 0x28], 0x4e8f38
call fcn.00406fd0
mov byte [ebp - 4], 4
mov dword [ebp - 0x250], 1
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.00404c20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a14ba
mov esp, ebp
pop ebp
ret
Function at 0x437c30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c476a
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x52a0b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x104
push eax
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x250], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x437cf4
mov dword [ebp - method.std::exception.virtual_0], vtable.std::exception.0
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 4], 1
mov dword [ebp - method.is::win32_exception.virtual_0], vtable.is::win32_exception.0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 4
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], 0
mov byte [ebp - 0x220], 0
call fcn.004a1806
add esp, 4
mov dword [eax], 1
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 0
lea eax, [ebp - 0x234]
push 0x527a94
push eax
call fcn.004a35fa
push 0
lea eax, [ebp - 0x249]
mov dword [ebp - 0x248], 0x4e81b4
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 0x4e8f38
push eax
lea ecx, [ebp - 0x248]
call fcn.00404190
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x248]
push 0x4e82a8
call fcn.00409f30
push 0
push eax
mov ecx, esi
mov dword [esi], 0x4e81b4
mov dword [esi + 0x28], 0x4e8f38
call fcn.00406fd0
mov byte [ebp - 4], 4
mov dword [ebp - 0x250], 1
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.00404c20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a14ba
mov esp, ebp
pop ebp
ret
Function at 0x437d90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c481a
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x52a0b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x254], esi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x25c], esi
push 0
push eax
mov dword [ebp - 0x258], 0
call fcn.004a34a0
add esp, 0xc
mov dword [ebp - 0x24c], 0
mov dword [ebp - 4], 1
mov eax, 0x20019
test edi, edi
jns 0x437e12
mov eax, 0x20119
and edi, 0x7fffffff
lea ecx, [ebp - 0x24c]
push ecx
push eax
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x437e69
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 0x208
push eax
lea eax, [ebp - 0x218]
cmp edi, 1
push eax
push 0
mov ecx, 0x4e9ed8
mov eax, str.CommonFilesDir
push 0
cmovne eax, ecx
push eax
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0
lea eax, [ebp - 0x24d]
mov dword [ebp - 0x248], 0x4e81b4
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 0x4e8f38
push eax
lea ecx, [ebp - 0x248]
call fcn.00404190
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x248]
push 0x4e82a8
call fcn.00409f30
push 0
push eax
mov ecx, esi
mov dword [esi], 0x4e81b4
mov dword [esi + 0x28], 0x4e8f38
call fcn.00406fd0
mov byte [ebp - 4], 4
mov dword [ebp - 0x258], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x248]
call fcn.00404c20
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x24c]
test ecx, ecx
je 0x437f04
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x437f04
push ecx
call eax
mov dword [ebp - 0x24c], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a14ba
mov esp, ebp
pop ebp
ret