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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b15a0
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x51c0b0]
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 0x40fadb
test eax, eax
je 0x40fa83
mov dword [eax], 0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40fb3e
push 0
lea eax, [esi + 0xc]
mov dword [ebp - 0x44], 0x4dd804
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x1c], 0x4dcac4
call fcn.00407160
mov dword [ebp - 4], 1
lea eax, [ebp - 0x44]
push 1
push eax
lea ecx, [ebp - 0x9c]
call fcn.0040f350
push 0x519200
lea eax, [ebp - 0x9c]
push eax
call fcn.0049b7fa
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40fb3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x40fb3e
push 0
lea ecx, [esi + 0xc]
mov dword [ebp - 0x44], 0x4dd804
push ecx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x1c], 0x4dcac4
call fcn.00407160
mov dword [ebp - 4], 4
lea eax, [ebp - 0x44]
push 1
push ebx
push eax
lea ecx, [ebp - 0x9c]
call fcn.0040f110
push 0x519274
lea eax, [ebp - 0x9c]
push eax
call fcn.0049b7fa
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.004996ca
mov esp, ebp
pop ebp
ret 4

Function at 0x4109f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1970
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x51c0b0]
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
mov eax, dword [ebp + 0xc]
mov ecx, 1
mov edx, dword [ebp + 8]
cmp eax, 0xffffffff
mov dword [ebp - 0x98], 0
cmove eax, ecx
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x410a9c
lea edi, [ebp - 0x98]
push edi
push eax
push edx
call fcn.00493592
test al, al
jne 0x410af8
push 0
lea eax, [esi + 0xc]
mov dword [ebp - 0x40], 0x4dd804
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4dcac4
call fcn.00407160
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push 1
push eax
lea ecx, [ebp - 0x94]
call fcn.0040f350
push 0x519200
lea eax, [ebp - 0x94]
push eax
call fcn.0049b7fa
push 0
lea ecx, [ebp - 0x98]
push ecx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410af8
push eax
lea eax, [esi + 0xc]
mov dword [ebp - 0x40], 0x4dd804
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4dcac4
call fcn.00407160
mov dword [ebp - 4], 4
lea eax, [ebp - 0x40]
push 1
push eax
lea ecx, [ebp - 0x90]
call fcn.0040f030
push 0x519274
lea eax, [ebp - 0x90]
push eax
call fcn.0049b7fa
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.004996ca
mov esp, ebp
pop ebp
ret 8
Function at 0x410b20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b19c0
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x51c0b0]
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
mov eax, dword [ebp + 0xc]
mov ecx, 1
mov edx, dword [ebp + 8]
cmp eax, 0xffffffff
mov dword [ebp - 0x9c], 0
cmove eax, ecx
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x410bcc
lea edi, [ebp - 0x9c]
push edi
push eax
push edx
call fcn.00493592
test al, al
jne 0x410c28
push 0
lea eax, [esi + 0xc]
mov dword [ebp - 0x40], 0x4dd804
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4dcac4
call fcn.00407160
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push 1
push eax
lea ecx, [ebp - 0x98]
call fcn.0040f350
push 0x519200
lea eax, [ebp - 0x98]
push eax
call fcn.0049b7fa
push 0
lea ecx, [ebp - 0x9c]
push ecx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410c28
push eax
lea eax, [esi + 0xc]
mov dword [ebp - 0x40], 0x4dd804
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4dcac4
call fcn.00407160
mov dword [ebp - 4], 4
lea eax, [ebp - 0x40]
push 1
push eax
lea ecx, [ebp - 0x98]
call fcn.0040f030
push 0x519274
lea eax, [ebp - 0x98]
push eax
call fcn.0049b7fa
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.004996ca
mov esp, ebp
pop ebp
ret 8
Function at 0x411940
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1d62
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x51c0b0]
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 0x412760
Capabilities:
Hash data with crc32

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x412809
push 0x400
call fcn.004996e0
add esp, 4
mov dword [esi], eax
xor edx, edx
lea ecx, [ecx]
mov eax, edx
shr eax, 1
test dl, 1
je 0x41278e
xor eax, 0xedb88320
test al, 1
je 0x41279b
shr eax, 1
xor eax, 0xedb88320
jmp 0x41279d
shr eax, 1
test al, 1
je 0x4127aa
shr eax, 1
xor eax, 0xedb88320
jmp 0x4127ac
shr eax, 1
test al, 1
je 0x4127b9
shr eax, 1
xor eax, 0xedb88320
jmp 0x4127bb
shr eax, 1
test al, 1
je 0x4127c8
shr eax, 1
xor eax, 0xedb88320
jmp 0x4127ca
shr eax, 1
test al, 1
je 0x4127d7
shr eax, 1
xor eax, 0xedb88320
jmp 0x4127d9
shr eax, 1
test al, 1
je 0x4127e6
shr eax, 1
xor eax, 0xedb88320
jmp 0x4127e8
shr eax, 1
test al, 1
je 0x4127f5
shr eax, 1
xor eax, 0xedb88320
jmp 0x4127f7
shr eax, 1
mov ecx, dword [esi]
mov dword [ecx + edx*4], eax
inc edx
cmp edx, 0xff
jle 0x412780
pop esi
ret
Function at 0x412810
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.00412760
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x14]
lea ebx, [esi*2 + 2]
cmp ebx, dword [edi + 0x20]
jae 0x412839
cmp dword [edi + 0x1c], 0
jne 0x412857
push dword [edi + 0x1c]
call fcn.004996db
shr ebx, 6
inc ebx
shl ebx, 6
push ebx
mov dword [edi + 0x20], ebx
call fcn.004996e0
add esp, 8
mov dword [edi + 0x1c], eax
push 3
push dword [edi + 0x20]
mov ecx, edi
push dword [edi + 0x1c]
call fcn.00408500
mov ecx, dword [edi + 0x1c]
or ebx, 0xffffffff
mov edi, dword [ebp - 4]
test esi, esi
je 0x41288b
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 0x412875
mov eax, dword [edi]
test eax, eax
je 0x41289a
push eax
call fcn.004996db
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.0049f5e9
mov eax, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x413250
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2218
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x51c0b0]
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 0x4132a8
mov eax, dword [eax]
push 0x20019
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x1c]
call fcn.00413a20
mov esi, dword [ebp - 0x1c]
test eax, eax
jne 0x4132e4
mov eax, dword [ebp + 0x10]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x4132d0
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 0x413300
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 0x414320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b26b8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x51c0b0]
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 0x41437c
call fcn.00492a05
test al, al
je 0x41437c
mov ecx, 0x100
jmp 0x41437e
xor ecx, ecx
cmp dword [esi + 0x28], 8
lea eax, [esi + 0x14]
jb 0x414389
mov eax, dword [eax]
or ecx, 0x20019
push ecx
push eax
push dword [esi + 0xc]
lea ecx, [ebp - 0x1c]
call fcn.00413a20
mov edi, dword [ebp - 0x1c]
test eax, eax
je 0x4143a7
xor bl, bl
jmp 0x4143db
cmp dword [esi + 0x54], 0
jne 0x4143b1
mov bl, 1
jmp 0x4143db
add esi, 0x44
mov dword [ebp - 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x4143c3
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 0x4143f4
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 0x415720
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2e8f
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x51c0b0]
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.0045a200
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.0042e9c0
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 0x4271a0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b84d8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x51c0b0]
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], 0x4dd804
mov dword [ecx + 0x28], 0x4dcac4
call fcn.004042c0
mov byte [ebp - 4], 2
push SysReAllocStringLen
mov dword [ebp - 4], 0xffffffff
call fcn.0049211a
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], 0x4dd804
mov dword [ecx + 0x28], 0x4dcac4
call fcn.004042c0
mov dword [ebp - 4], 4
sub esp, 0x30
mov eax, esp
mov dword [ebp - 0x48], esp
mov ecx, edi
push eax
call fcn.00439c20
mov byte [ebp - 4], 5
push SysReAllocStringLen
mov dword [ebp - 4], 0xffffffff
call fcn.0049211a
add esp, 0x64
mov dword [ebp - 0x40], 0x4dd804
lea eax, [ebp - 0x41]
mov dword [ebp - 0x18], 0x4dcac4
lea ecx, [ebp - 0x40]
push 0
push eax
push 0x4d7438
call fcn.004042c0
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.00423380
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404db0
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.004996ca
mov esp, ebp
pop ebp
ret 8
Function at 0x432ce0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba82e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x51c0b0]
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
lea ecx, [esi + 0x30]
mov dword [esi], vtable.com_exception.0
call fcn.00404aa0
mov byte [ebp - 4], 1
sub esp, 8
lea ecx, [esi + 0x60]
call fcn.00404aa0
mov byte [ebp - 4], 2
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
lea eax, [edi + 0x30]
test eax, eax
je 0x432d55
add eax, 4
jmp 0x432d57
xor eax, eax
lea ecx, [esi + 0x34]
cmp ecx, eax
je 0x432d68
push 0xffffffffffffffff
push 0
push eax
call fcn.004046f0
lea eax, [edi + 0x60]
test eax, eax
je 0x432d74
add eax, 4
jmp 0x432d76
xor eax, eax
lea ecx, [esi + 0x64]
cmp ecx, eax
je 0x432d87
push 0xffffffffffffffff
push 0
push eax
call fcn.004046f0
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov dword [ebp - 4], 0xffffffff
mov eax, esi
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 0x433200
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba93e
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x51c0b0]
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 [0x4d25a8]
mov dword [esi + 0x10], eax
mov eax, dword [0x4d25ac]
mov dword [esi + 0x14], eax
mov eax, dword [0x4d25b0]
mov dword [esi + 0x18], eax
mov eax, dword [0x4d25b4]
mov dword [esi + 0x1c], eax
mov eax, dword [0x4d25a8]
mov dword [esi + 0x20], eax
mov eax, dword [0x4d25ac]
mov dword [esi + 0x24], eax
mov eax, dword [0x4d25b0]
mov dword [esi + 0x28], eax
mov eax, dword [0x4d25b4]
mov dword [esi + 0x2c], eax
call fcn.00404aa0
mov byte [ebp - 4], 1
sub esp, 8
lea ecx, [esi + 0x60]
call fcn.00404aa0
mov byte [ebp - 4], 2
mov ecx, esi
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
call fcn.00432fb0
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 0x433c10
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 0x433c81
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x433c4f
cmp eax, 2
jne 0x433c6b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x433c7b
test ecx, ecx
je 0x433c76
test cl, 1
jne 0x433c6b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x433c7b
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 0x434470
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bad4a
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x51c0b0]
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 0x434539
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.00499a25
add esp, 4
mov dword [eax], 1
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 0
lea eax, [ebp - 0x234]
push 0x5193b0
push eax
call fcn.0049b7fa
push 0
lea eax, [ebp - 0x249]
mov dword [ebp - 0x248], 0x4dd804
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 0x4dcac4
push eax
lea ecx, [ebp - 0x248]
call fcn.004042c0
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x248]
push 0x4de8d0
call fcn.00435540
push 0
push eax
mov ecx, esi
mov dword [esi], 0x4dd804
mov dword [esi + 0x28], 0x4dcac4
call fcn.00407160
mov byte [ebp - 4], 4
mov dword [ebp - 0x250], 1
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.00404db0
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.004996ca
mov esp, ebp
pop ebp
ret
Function at 0x434660
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bae31
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x51c0b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x70]
sub esp, 8
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x78], 0
call fcn.00411490
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x70]
mov eax, dword [ebp + 0xc]
push 0x104
cmp eax, 1
jne 0x4347e0
lea eax, [ebp - 0x84]
push eax
call fcn.00409e80
mov byte [ebp - 4], 2
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00404040
push 0x104
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
sete bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.00409da0
test bl, bl
je 0x434719
lea ecx, [ebp - 0x2c]
call fcn.004115a0
push 0x5193b0
lea eax, [ebp - 0x2c]
push eax
call fcn.0049b7fa
push 0
lea eax, [ebp - 0x71]
mov dword [ebp - 0x40], 0x4dd804
push eax
push 0x4de744
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4dcac4
call fcn.004042c0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x40]
push 0x5c
sub esp, 0x30
mov ecx, esp
mov dword [ebp - 0x8c], esp
mov dword [ebp - 0x90], ecx
push 0
push eax
mov dword [ecx], 0x4dd804
mov dword [ecx + 0x28], 0x4dcac4
call fcn.00407160
mov byte [ebp - 4], 6
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
call fcn.00408d90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00404db0
push 0x4de8d0
lea ecx, [ebp - 0x70]
call fcn.00435540
push 0
push eax
mov ecx, esi
mov dword [esi], 0x4dd804
mov dword [esi + 0x28], 0x4dcac4
call fcn.00407160
mov byte [ebp - 4], 1
mov dword [ebp - 0x78], 1
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00404db0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004996ca
mov esp, ebp
pop ebp
ret
cmp eax, 2
lea eax, [ebp - 0x84]
push eax
jne 0x43485f
call fcn.00409e80
mov byte [ebp - 4], 8
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00404040
push 0x104
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
sete bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.00409da0
test bl, bl
jne 0x434703
push 0
lea eax, [ebp - 0x71]
mov dword [ebp - 0x40], 0x4dd804
push eax
push str.syswow64
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4dcac4
call fcn.004042c0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x70]
call fcn.004345e0
jmp 0x434779
call fcn.00409e80
mov byte [ebp - 4], 0xc
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00404040
push 0x104
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
sete bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.00409da0
test bl, bl
je 0x434785
jmp 0x434703