joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5d7f50]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.00543bb0
add esp, 0xc
lea ecx, [ebp - 0x110]
call fcn.0041f670
lea ecx, [ebp - 0x110]
call fcn.00425080
cmp eax, 1
je 0x40105c
push 0
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str.APPDATA
push 0x517
mov ebx, str.LngCHS.ini
lea ecx, [ebp - 0x110]
call fcn.00401210
push str.APPDATA
push 0x518
mov ebx, str.LngCHT.ini
lea ecx, [ebp - 0x110]
call fcn.00401210
push str.APPDATA
push 0x519
mov ebx, str.LngENU.ini
lea ecx, [ebp - 0x110]
call fcn.00401210
push str.APPDATA
push 0x51a
mov ebx, 0x5acd10
lea ecx, [ebp - 0x110]
call fcn.00401210
push 0xff
lea edx, [ebp - 0x20f]
push 0
push edx
mov byte [ebp - 0x210], 0
call fcn.00543bb0
add esp, 0xc
lea edi, [ebp - 0x210]
call fcn.004156e0
push str.APPDATA
push 0x51b
mov ebx, 0x5acd20
lea ecx, [ebp - 0x110]
call fcn.00401210
push str.APPDATA
push 0x51c
mov ebx, 0x5acd2c
lea ecx, [ebp - 0x110]
call fcn.00401210
push str.APPDATA
push 0x51d
mov ebx, str.ver.TXT
lea ecx, [ebp - 0x110]
call fcn.00401210
push str.APPDATA
push 0x51e
mov ebx, 0x5acd40
lea ecx, [ebp - 0x110]
call fcn.00401210
push 0x5acd60
push 0x51f
mov ebx, 0x5acd4c
lea ecx, [ebp - 0x110]
call fcn.00401210
push 0x5acd60
push 0x529
mov ebx, 0x5acd64
lea ecx, [ebp - 0x110]
call fcn.00401210
push 0x5acd60
push 0x53e
mov ebx, 0x5acd78
lea ecx, [ebp - 0x110]
call fcn.00401210
push 0x5acd60
push 0x532
mov ebx, 0x5acd90
lea ecx, [ebp - 0x110]
call fcn.00401210
push 0x5acd60
push 0x537
mov ebx, 0x5acda8
lea ecx, [ebp - 0x110]
call fcn.00401210
push 0x5acd60
push 0x538
mov ebx, 0x5acdc0
lea ecx, [ebp - 0x110]
call fcn.00401210
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0053c99c
mov esp, ebp
pop ebp
ret
Function at 0x401c30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push 0x38
xor esi, esi
lea eax, [ebp - 0x3c]
push esi
push eax
mov dword [ebp - 0x40], 0x3c
call fcn.00543bb0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x401cbb
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401c95
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401cb4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push edx
call esi
cmp dword [ebp - 4], 0x103
jne 0x401cfb
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, edi
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push ecx
call esi
push 0x3e8
call edi
cmp dword [ebp - 4], 0x103
je 0x401ce0
pop edi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401d1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401d39
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4024c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4024db
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402512
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40250e
jmp 0x402500
cmp esi, eax
jae 0x402512
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402500
cmp esi, eax
jb 0x402519
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402f40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56faa6
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x5d7f50]
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 eax, dword [ebp + 8]
xor ebx, ebx
push 0x103
lea ecx, [ebp - 0x157]
push ebx
push ecx
mov dword [ebp - 0x168], eax
mov byte [ebp - 0x158], bl
call fcn.00543bb0
add esp, 0xc
lea ecx, [ebp - 0x158]
call fcn.0041f670
lea edx, [ebp - 0x158]
push edx
lea ecx, [ebp - 0x15c]
call fcn.00402770
push 0xc
push str.Options.ini
lea ecx, [ebp - 0x15c]
mov dword [ebp - 4], ebx
call fcn.004078f0
mov eax, dword [ebp - 0x15c]
xor edi, edi
mov dword [ebp - method.CIni.virtual_0], vtable.CIni.0
mov dword [ebp - 0x160], edi
cmp eax, ebx
je 0x402ff3
push eax
call fcn.0053fe9a
mov edi, eax
add esp, 4
mov dword [ebp - 0x160], edi
push 0x40
lea eax, [ebp - 0x53]
push ebx
push eax
mov byte [ebp - 4], 1
call fcn.00543bb0
add esp, 0xc
push str.AutoUpdate
push str.Options
lea ecx, [ebp - 0x164]
mov byte [ebp - 0x54], bl
push ecx
xor ebx, ebx
call fcn.00425c60
push 0x40
mov esi, eax
push esi
lea edx, [ebp - 0x54]
push 0x40
push edx
call fcn.005403b4
push esi
call fcn.0043cd76
add esp, 0x14
cmp byte [ebp - 0x54], bl
je 0x403052
push 0xa
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.00540627
add esp, 0xc
test eax, eax
je 0x40307a
mov ecx, dword [ebp - 0x168]
mov eax, dword [ecx + 0x20]
lea edx, [ebp - 0x160]
push edx
push 0
push eax
push 0x423860
push 0
push 0
mov dword [ebp - 0x160], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test edi, edi
je 0x403087
push edi
call fcn.0053e8c6
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x15c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4030b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.0053c99c
mov esp, ebp
pop ebp
ret 4
Function at 0x4030d0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56ee48
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5d7f50]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x5d7f50]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0043d22d
mov eax, dword [ebx + 0x94]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
mov eax, dword [ebx + 0x20]
push 1
push 0x80
push eax
call edi
mov eax, dword [ebx + 0x94]
mov ecx, dword [ebx + 0x20]
push eax
xor esi, esi
push esi
push 0x80
push ecx
call edi
call fcn.00402e50
mov eax, dword [ebx + 0x20]
lea edx, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [ebx + 0x20]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 1
push 0x246
push 0x325
push eax
push ecx
mov ecx, ebx
call fcn.004444d6
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push 1
push 0x22a
push 0x320
push edx
push eax
mov ecx, 0x5e3518
call fcn.004444d6
call fcn.0044b779
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4031d7
push 0x80004005
call fcn.00402bc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
mov dword [esp + 0x4c], esi
call fcn.00442261
call fcn.00452eb9
call fcn.00452eb9
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [ebx + 0x20]
push edx
push eax
mov eax, dword [0x5e3494]
lea esi, [ebx + 0x98]
call fcn.004303d0
mov eax, dword [ebx + 0x20]
mov dword [ebx + 0x2a4], eax
mov eax, esi
call fcn.00430730
mov edi, dword [ebx + 0x20]
call fcn.00430d80
mov ecx, dword [esp + 0x14]
push ecx
mov eax, esi
call fcn.004306c0
mov ecx, ebx
call fcn.00406ee0
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [ebx + 0x2f8], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403287
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0053c99c
mov esp, ebp
pop ebp
ret
Function at 0x404830
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56caf0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5d7f50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x14]
push eax
push 0x2001f
xor edi, edi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocStringLen
mov dword [ebp - 0x20], 0xa0
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x40489c
push 0x5c9e00
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x1c], eax
call fcn.00543f24
mov eax, dword [ebp - 0x14]
push 4
lea edx, [ebp - 0x20]
push edx
push 4
push edi
push str.SecureProtocols
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, edi
je 0x4048d7
push 0x5c9e00
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x24], esi
call fcn.00543f24
mov eax, 0x4048d4
ret
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4048e5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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

Function at 0x406db0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e7d6
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x5d7f50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x103
lea eax, [ebp - 0x113]
push 0
push eax
mov byte [ebp - 0x114], 0
call fcn.00543bb0
add esp, 0xc
lea edi, [ebp - 0x11c]
call fcn.0041f1c0
lea esi, [ebp - 0x114]
mov dword [ebp - 4], 0
call fcn.0041f3a0
push 0x5ad324
lea ecx, [ebp - 0x118]
call fcn.00402770
push 0xc
push str.explorer.exe
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.004078f0
push 2
push 0x5ae274
lea ecx, [ebp - 0x118]
call fcn.004078f0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406e54
sub eax, edx
push eax
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x118]
call fcn.004078f0
mov edx, dword [ebp - 0x118]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406ea5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x406eb8
push eax
call fcn.0053ef9a
add esp, 4
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.0053c99c
mov esp, ebp
pop ebp
ret
Function at 0x407500
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x5d7f50]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4075af
push esi
push 0x103
push eax
lea ecx, [ebp - 0x107]
push ecx
mov byte [ebp - 0x108], al
call fcn.00543bb0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x108]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str.__hide
mov esi, eax
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0053d67c
mov edx, dword [ebp - 0x10c]
add esp, 0xc
add esi, 6
push esi
lea ecx, [ebp - 0x108]
push ecx
push 1
push 0
push str.csrcbankAssist
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053c99c
mov esp, ebp
pop ebp
ret
Function at 0x407a30
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56dc36
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x5d7f50]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
push esi
mov eax, dword [0x5d7f50]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
xor ebx, ebx
push 0x103
lea eax, [esp + 0x21]
push ebx
push eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x28], bl
call fcn.00543bb0
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call fcn.0044b779
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x407ab6
push 0x80004005
call fcn.00402bc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x138], ebx
call fcn.0044b779
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x407ae7
push 0x80004005
call fcn.00402bc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x13
push str.csrcbankAssist_HTML
lea ecx, [esp + 0x1c]
mov byte [esp + 0x140], 1
call fcn.00402a20
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push 0x5ae6d4
push eax
call fcn.004078c0
mov esi, dword [esp + 0x28]
add esp, 0x10
mov ecx, esi
call fcn.00425080
cmp eax, 1
je 0x407b53
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x407b7a
mov ecx, esi
call fcn.00425080
cmp eax, 1
jne 0x407b7a
push esi
push 0x100
push edi
mov dword [esp + 0x1c], 1
call fcn.0053d6e9
push 0x5ae6dc
push 0x100
push edi
call fcn.0053d67c
add esp, 0x18
lea eax, [esi - 0x10]
mov byte [esp + 0x138], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407b9d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x138], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407bc8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0053c99c
mov esp, ebp
pop ebp
ret
Function at 0x4098e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56cad0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5d7f50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x14]
push eax
push 0x2001f
xor edi, edi
push edi
push ecx
push SysReAllocStringLen
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x409941
push 0x5c9e00
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], eax
call fcn.00543f24
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push edi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, edi
je 0x40997b
push 0x5c9e00
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], esi
call fcn.00543f24
mov eax, 0x409978
ret
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x409989
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 8

Function at 0x4099a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56cab0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5d7f50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
push 0x20019
xor edi, edi
push edi
push ecx
push SysReAllocStringLen
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x409a0c
push 0x5c9e00
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], eax
call fcn.00543f24
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x24]
push edx
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, edi
je 0x409a4a
push 0x5c9e00
lea edx, [ebp - 0x28]
push edx
mov dword [ebp - 0x28], esi
call fcn.00543f24
mov eax, 0x409a47
ret
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x409a58
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 8
Function at 0x40ac80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56db90
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x5d7f50]
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 dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x207
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x21b]
push ebx
mov dword [ebp - 0x430], ebx
push eax
mov dword [ebp - 0x43c], ecx
mov dword [ebp - 0x440], edx
mov dword [ebp - 0x428], ebx
call fcn.00543bb0
push 0x207
lea ecx, [ebp - 0x423]
push ebx
push ecx
mov byte [ebp - 0x424], bl
call fcn.00543bb0
mov eax, dword [ebp - 0x43c]
mov ecx, 0xd
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea edi, [ebp - 0x21c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
add esp, 0x18
mov dword [ebp - 0x434], 0x208
mov dword [ebp - 0x430], ebx
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40ad30
lea edi, [ebp - 0x21c]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x40ad40
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x428]
push edx
push 0x101
mov ecx, eax
push ebx
and ecx, 3
lea eax, [ebp - 0x21c]
rep movsb byte es:[edi], byte [esi]
push eax
mov dword [ebp - 4], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x40adb1
lea ecx, [ebp - 0x428]
push ecx
push 1
push ebx
lea edx, [ebp - 0x21c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
cmp eax, ebx
je 0x40adb1
mov dword [ebp - 0x444], eax
push 0x5c9e00
lea eax, [ebp - 0x444]
push eax
call fcn.00543f24
lea ecx, [ebp - 0x434]
push ecx
mov ecx, dword [ebp - 0x440]
lea edx, [ebp - 0x424]
push edx
mov edx, dword [ebp - 0x428]
lea eax, [ebp - 0x430]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x40ae2d
mov dword [ebp - 0x438], eax
push 0x5c9e00
lea eax, [ebp - 0x438]
push eax
call fcn.00543f24
mov eax, dword [ebp - 0x428]
xor ebx, ebx
cmp eax, ebx
je 0x40ae0f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x428], ebx
mov ecx, dword [ebp - 0x42c]
push 0x5ad324
call fcn.00402420
mov eax, 0x40ae25
ret
mov esi, dword [ebp - 0x42c]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x424]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40ae50
sub eax, edx
push eax
lea ecx, [ebp - 0x424]
push ecx
mov ecx, esi
call fcn.00402320
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 - 0x14]
xor ecx, ebp
call fcn.0053c99c
mov esp, ebp
pop ebp
ret