joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404b90
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6337e0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x6d9120]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x28]
call fcn.00407aa0
xor eax, eax
mov dword [ebp - 4], 0
cmp byte [esi + 0x700], al
lea ecx, [ebp - 0x28]
sete al
add eax, 0x80000001
push eax
call fcn.004089b0
push 0
push ecx
mov ecx, esp
push str.SoftwareMicrosoftWindowsCurrentVersionexplorerShell_Folders
call fcn.00403300
lea ecx, [ebp - 0x28]
call fcn.004088c0
test eax, eax
jne 0x404c04
xor bl, bl
jmp 0x404d16
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x6561e0
call fcn.00403300
cmp byte [esi + 0x700], 0
mov ecx, str.Common_Programs
push ecx
mov eax, str.Programs
mov byte [ebp - 4], 1
cmove eax, ecx
mov ecx, esp
push eax
call fcn.00403300
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0
push eax
lea ecx, [ebp - 0x28]
call fcn.00408690
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax - 0xc]
test ebx, ebx
jne 0x404c56
xor bl, bl
jmp 0x404cfe
mov edx, dword [ebp + 8]
mov esi, eax
mov edi, edx
sub edi, eax
nop
movzx ecx, word [esi]
lea esi, [esi + 2]
mov word [edi + esi - 2], cx
test cx, cx
jne 0x404c60
cmp word [edx + ebx*2 - 2], 0x5c
je 0x404c94
lea edi, [edx - 2]
nop dword [eax + eax]
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x404c80
mov ecx, dword [0x656500]
mov dword [edi], ecx
lea esi, [edx - 2]
nop word [eax + eax]
mov cx, word [esi + 2]
lea esi, [esi + 2]
test cx, cx
jne 0x404ca0
mov ecx, dword [str.PassIDform]
add edx, 0xfffffffe
mov dword [esi], ecx
mov ecx, dword [0x6567c8]
mov dword [esi + 4], ecx
mov ecx, dword [0x6567cc]
mov dword [esi + 8], ecx
mov ecx, dword [0x6567d0]
mov dword [esi + 0xc], ecx
mov ecx, dword [0x6567d4]
mov dword [esi + 0x10], ecx
mov cx, word [0x6567d8]
mov word [esi + 0x14], cx
mov cx, word [edx + 2]
add edx, 2
test cx, cx
jne 0x404ce6
mov ecx, dword [0x656500]
mov edi, edx
mov bl, 1
mov dword [edi], ecx
lea esi, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x404d16
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x28]
call fcn.00407af0
mov al, bl
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 0x404d40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x633816
mov eax, dword fs:[0]
push eax
sub esp, 0x820
mov eax, dword [0x6d9120]
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 edi, dword [ebp + 8]
lea ecx, [ebp - 0x824]
xor eax, eax
mov word [ebp - 0x410], ax
call fcn.00407aa0
xor eax, eax
mov dword [ebp - 4], 0
cmp byte [esi + 0x701], al
lea ecx, [ebp - 0x824]
setne al
add eax, 0x80000001
push eax
call fcn.004089b0
push 0
push ecx
mov ecx, esp
push str.SoftwareRDPassIDFormSettings
call fcn.00403300
lea ecx, [ebp - 0x824]
call fcn.004088c0
test eax, eax
je 0x404e43
push ecx
mov ecx, esp
mov dword [ebp - 0x828], esp
push 0x6561e0
call fcn.00403300
push ecx
mov ecx, esp
mov byte [ebp - 4], 1
push str.TemplateDir
call fcn.00403300
lea eax, [ebp - 0x814]
mov byte [ebp - 4], 0
push eax
lea ecx, [ebp - 0x824]
call fcn.00408690
mov eax, dword [ebp - 0x814]
lea esi, [ebp - 0x410]
mov edx, eax
sub esi, eax
movzx ecx, word [edx]
lea edx, [edx + 2]
mov word [esi + edx - 2], cx
test cx, cx
jne 0x404e11
lea edx, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404e39
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp word [ebp - 0x410], 0
jne 0x404ebd
lea eax, [ebp - 0x810]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x810]
push eax
call fcn.00403940
lea ecx, [ebp - 0x810]
add esp, 4
add ecx, 0xfffffffe
nop dword [eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x404e70
mov eax, dword [str.Templates]
mov dword [ecx], eax
mov eax, dword [0x656a60]
mov dword [ecx + 4], eax
mov eax, dword [0x656a64]
mov dword [ecx + 8], eax
mov eax, dword [0x656a68]
mov dword [ecx + 0xc], eax
mov eax, dword [0x656a6c]
mov dword [ecx + 0x10], eax
xor ecx, ecx
movzx eax, word [ebp + ecx - 0x810]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x412], ax
test ax, ax
jne 0x404ea5
lea eax, [ebp - 0x410]
push eax
call fcn.00403940
lea ecx, [ebp - 0x410]
add esp, 4
mov eax, ecx
sub edi, eax
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edi + ecx - 2], ax
test ax, ax
jne 0x404ee0
lea ecx, [ebp - 0x824]
call fcn.00407af0
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.005dddbe
mov esp, ebp
pop ebp
ret 4
Function at 0x404f60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x633856
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x6d9120]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x418], edi
cmp word [edi + 0x300], 0
lea esi, [edi + 0x300]
mov ebx, dword [ebp + 8]
je 0x404fc0
mov ecx, ebx
mov edx, esi
sub ecx, esi
nop
movzx eax, word [edx]
lea edx, [edx + 2]
mov word [ecx + edx - 2], ax
test ax, ax
jne 0x404fb0
lea ecx, [ebp - 0x428]
call fcn.00407aa0
xor eax, eax
mov dword [ebp - 4], 0
cmp byte [edi + 0x701], al
lea ecx, [ebp - 0x428]
setne al
add eax, 0x80000001
push eax
call fcn.004089b0
xor eax, eax
push eax
push ecx
mov ecx, esp
mov word [esi], ax
push str.SoftwareRDPassIDFormSettings
call fcn.00403300
lea ecx, [ebp - 0x428]
call fcn.004088c0
test eax, eax
je 0x405088
push ecx
mov ecx, esp
mov dword [ebp - 0x42c], esp
push 0x6561e0
call fcn.00403300
push ecx
mov ecx, esp
mov byte [ebp - 4], 1
push str.OutputDir
call fcn.00403300
lea eax, [ebp - 0x414]
mov byte [ebp - 4], 0
push eax
lea ecx, [ebp - 0x428]
call fcn.00408690
mov eax, dword [ebp - 0x414]
mov edi, esi
mov edx, eax
sub edi, eax
nop word [eax + eax]
movzx ecx, word [edx]
lea edx, [edx + 2]
mov word [edi + edx - 2], cx
test cx, cx
jne 0x405060
lea edx, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405088
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp word [esi], 0
jne 0x405140
lea eax, [ebp - 0x410]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4050b0
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x412], 0x5c
je 0x4050e6
lea edi, [ebp - 0x410]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4050d3
mov eax, dword [0x656500]
mov dword [edi], eax
lea ecx, [ebp - 0x410]
add ecx, 0xfffffffe
nop
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4050f0
mov eax, dword [str.Output]
mov edx, esi
mov dword [ecx], eax
mov eax, dword [0x656a88]
mov dword [ecx + 4], eax
mov eax, dword [0x656a8c]
mov dword [ecx + 8], eax
mov ax, word [0x656a90]
mov word [ecx + 0xc], ax
lea ecx, [ebp - 0x410]
mov eax, ecx
sub edx, eax
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x405130
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405145
mov eax, dword [ebp - 0x418]
sub ecx, edx
sar ecx, 1
cmp word [eax + ecx*2 + 0x2fe], 0x5c
je 0x405183
lea edi, [esi - 2]
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x405170
mov eax, dword [0x656500]
mov dword [edi], eax
sub ebx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ebx + esi - 2], ax
test ax, ax
jne 0x405185
lea ecx, [ebp - 0x428]
call fcn.00407af0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005dddbe
mov esp, ebp
pop ebp
ret 4
Function at 0x405200
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x633896
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x6d9120]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [ebp - 0x244]
call fcn.00407aa0
push 1
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00403670
test al, al
je 0x405430
lea eax, [ebp - 0x224]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405430
lea eax, [ebp - 0x234]
mov dword [ebp - 0x220], 0x105
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, 1
test eax, eax
jne 0x405413
nop dword [eax]
push 8
lea eax, [ebp - 0x21c]
push str.S_1_5_18
push eax
call fcn.005ed3aa
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x21c]
je 0x4053ce
push 8
push str.S_1_5_21
push eax
call fcn.005ed3aa
add esp, 0xc
test eax, eax
jne 0x4053d6
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
push SysStringLen
call fcn.004058b0
test eax, eax
jne 0x4053c8
call fcn.00414a71
test eax, eax
je 0x405426
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 1
push eax
push ecx
lea eax, [ebp - 0x21c]
mov ecx, esp
push eax
call fcn.00403300
mov ecx, edi
call fcn.004045e0
mov esi, dword [ebp - 0x228]
push esi
push str.temp
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
test eax, eax
je 0x40538e
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4053d6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4053d6
push str.temp
mov ecx, edi
call fcn.00404210
push str.temp
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4053d6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4053d6
lea eax, [ebp - 0x21c]
push eax
mov ecx, edi
call fcn.00404210
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], 0x105
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0x220]
mov eax, ebx
push ecx
lea ecx, [ebp - 0x21c]
inc ebx
push ecx
push eax
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4052c0
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
jmp 0x405432
push 0x80004005
call fcn.00402e30
xor esi, esi
lea ecx, [ebp - 0x244]
call fcn.00407af0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005dddbe
mov esp, ebp
pop ebp
ret
Function at 0x405a30
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6d9120]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x405a8b
lea eax, [ebp - 0x10]
push eax
push 0x656504
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dddbe
mov esp, ebp
pop ebp
ret

Function at 0x405ab0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6d9120]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00404b90
lea eax, [ebp - 0x20c]
push eax
call fcn.00403d40
add esp, 4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.005dddbe
mov esp, ebp
pop ebp
ret

Function at 0x405b00
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SoftwareRDPassIDForm
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405b3e
push 0x656bf4
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push dword [ebp - 4]
test eax, eax
je 0x405b44
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x405b50
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SoftwareRDPassIDForm
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405b8e
push 0x656bf4
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push dword [ebp - 4]
test eax, eax
je 0x405b94
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x405ba0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x633988
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x6d9120]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x20]
call fcn.00407aa0
xor eax, eax
mov dword [ebp - 4], 0
cmp byte [esi + 0x700], al
lea ecx, [ebp - 0x20]
sete al
add eax, 0x80000001
push eax
call fcn.004089b0
push 0
push ecx
mov ecx, esp
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
call fcn.00403300
lea ecx, [ebp - 0x20]
call fcn.004088c0
test eax, eax
je 0x405c29
push ecx
mov ecx, esp
push str.PassIDform
call fcn.00403300
lea ecx, [ebp - 0x20]
call fcn.00407ce0
test eax, eax
je 0x405c29
mov bl, 1
jmp 0x405c2b
xor bl, bl
lea ecx, [ebp - 0x20]
call fcn.00407af0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405c50
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
xor eax, eax
cmp byte [ecx + 0x700], al
push 0
push 0
sete al
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x405ca8
push str.PassIDForm
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x405d10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x6d9120]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push eax
lea eax, [ebp - 0x404]
mov dword [ebp - 0x40c], 0
push str.Control_PanelInput_MethodHot_Keys_s
push eax
call fcn.004079d0
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x405da7
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x40c], 0
push eax
lea eax, [ebp - 0x408]
push eax
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x405daf
push dword [ebp - 0x408]
call edi
lea eax, [ebp - 0x408]
push eax
push 0x20006
push 0
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405e2f
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp + 0x10]
push 4
push eax
push 3
push 0
push str.Virtual_Key
push dword [ebp - 0x408]
mov dword [ebp - 0x410], 0xc005
call esi
push 4
lea eax, [ebp - 0x410]
push eax
push 3
push 0
push str.Key_Modifiers
push dword [ebp - 0x408]
call esi
push 4
lea eax, [ebp + 0x14]
push eax
push 3
push 0
push str.Target_IME
push dword [ebp - 0x408]
call esi
push dword [ebp - 0x408]
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005dddbe
mov esp, ebp
pop ebp
ret 0x10
Function at 0x406550
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x406565
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4065a6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4065a2
nop word [eax + eax]
cmp esi, edx
jae 0x4065a6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x406590
cmp esi, edx
jb 0x4065ab
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x407ce0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 2
push 0
push dword [ecx + 0xc]
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407d1f
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x407d1f
mov esi, 1
jmp 0x407d21
xor esi, esi
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x407d3c
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x407dd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push esi
push eax
mov esi, ecx
push 1
push 0
push dword [esi + 0xc]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esi], eax
test eax, eax
jne 0x407e23
push eax
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov dword [esi], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi], 0
jne 0x407e23
mov esi, dword [ebp - 8]
jmp 0x407e25
xor esi, esi
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x407e40
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x408230
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 4
push eax
push 0x20019
push 0
push dword [ecx + 0xc]
mov dword [ebp - 0xc], 4
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x408265
mov esi, dword [ebp + 0xc]
jmp 0x408297
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
test eax, eax
push dword [ebp - 8]
cmovne ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4082b2
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x408450
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 3
push eax
push 0x20019
push 0
push dword [ecx + 0xc]
mov dword [ebp - 0xc], 4
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x408485
mov esi, dword [ebp + 0xc]
jmp 0x4084b7
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
test eax, eax
push dword [ebp - 8]
cmovne ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4084d2
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x408690
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x633f90
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x6d9120]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x220], 0
push ecx
mov esi, esp
mov dword [ebp - 4], 1
mov dword [ebp - 0x214], esi
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 0x218], 1
push eax
mov dword [ebp - 0x21c], 0xff
call fcn.00403a40
add esp, 4
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.00407dd0
mov dword [ebp - 0x218], eax
cmp eax, 1
je 0x408779
cmp eax, 2
je 0x408779
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
push eax
call fcn.00403a40
mov edx, dword [ebp + 0xc]
add eax, 0x10
or esi, 0xffffffff
mov dword [edi], eax
add esp, 4
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408751
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x408857
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x408857
lea eax, [ebp - 0x214]
push eax
push 0x20019
push 0
push dword [ebx + 0xc]
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebx], eax
test eax, eax
je 0x4087af
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
push eax
call fcn.00403a40
add esp, 4
add eax, 0x10
mov dword [edi], eax
jmp 0x408817
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x214]
xor ecx, ecx
mov dword [ebx], eax
test eax, eax
mov ebx, 1
cmovne ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x408809
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
push eax
call fcn.00403a40
add esp, 4
add eax, 0x10
mov dword [edi], eax
jmp 0x408817
lea eax, [ebp - 0x210]
mov ecx, edi
push eax
call fcn.00403300
mov edx, dword [ebp + 0xc]
or esi, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408838
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x408857
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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 - 0x10]
xor ecx, ebp
call fcn.005dddbe
mov esp, ebp
pop ebp
ret 0xc