joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430cb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x430d12
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc

Function at 0x430d20
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
mov edi, ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x430e12
lea ecx, [esp + 0x10]
push ecx
push str..htm
push 0x80000000
mov ecx, edi
call fcn.00430cb0
test eax, eax
jne 0x430e12
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x80000000
mov ecx, edi
call fcn.00430cb0
test eax, eax
jne 0x430e12
lea edx, [esp + 0x10]
push str.__1_
push edx
call fcn.004750db
mov esi, eax
add esp, 8
test esi, esi
jne 0x430de3
lea eax, [esp + 0x10]
push 0x4eedfc
push eax
call fcn.00474f70
mov esi, eax
add esp, 8
test esi, esi
jne 0x430de3
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x430de6
mov byte [esi], 0
push 0x4ee9d4
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x4315a0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0630
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0
mov dword [ebp - 4], 1
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x14]
push eax
push 0x4d3690
push 1
push 0
push 0x4d3680
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x431772
mov edi, dword [ebp + 0xc]
push edi
call fcn.004317b0
mov byte [ebp - 0x1c], al
mov eax, dword [ebp - 0x14]
add esp, 4
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x18]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x24]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x2c]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [ebp + 0x24]
cmp eax, 1
jne 0x43164a
mov eax, dword [ebp - 0x14]
push 3
push eax
mov edx, dword [eax]
call dword [edx + 0x3c]
jmp 0x43165a
cmp eax, 2
jne 0x43165a
mov eax, dword [ebp - 0x14]
push 7
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx - 8]
test eax, eax
je 0x431689
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x431672
xor eax, eax
jmp 0x43167b
push eax
call fcn.00474ead
add esp, 4
mov ecx, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x44]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
push edx
push 0x4d36a0
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x431751
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x224]
push 0x104
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x224]
push 1
push edx
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 2
call dword [ecx + 0x18]
push 0
push ebx
push 1
push 0x1000
mov esi, eax
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
jmp 0x431741
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 1
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov al, byte [ebp - 0x1c]
test al, al
je 0x431772
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
push eax
push edi
push ecx
call fcn.00431820
add esp, 0xc
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 0
call fcn.004a9c1f
lea ecx, [ebp + 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.004a9c1f
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4317b0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x108
mov eax, dword [0x4f0eb0]
push esi
mov esi, dword [esp + 0x110]
mov dword [esp + 4], eax
test esi, esi
je 0x431815
mov al, byte [esi]
test al, al
je 0x431815
cmp byte [esi + 1], 0x3a
jne 0x431815
lea ecx, [esp + 4]
mov byte [esp + 4], al
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x431815
push ebx
mov bl, byte [esi]
lea edx, [esp + 0xc]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
mov al, byte [esp + 0xc]
jne 0x431808
mov al, 0x43
mov byte [esi], al
mov al, bl
pop ebx
pop esi
add esp, 0x108
ret
xor al, al
pop esi
add esp, 0x108
ret

Function at 0x431ef0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c0730
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x2c]
push esi
push edi
push eax
lea ecx, [esp + 0xc]
call fcn.004b10dd
mov esi, dword [esp + 0x20]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
mov dword [esp + 0x1c], 0
call fcn.004b098f
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov edi, eax
mov eax, dword [esp + 0x2c]
push 0xf00021
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_PatBlt]
push edi
mov ecx, esi
call fcn.004b098f
mov dword [esp + 8], vtable.CGdiObject.0
lea ecx, [esp + 8]
mov dword [esp + 0x18], 1
call fcn.004b1077
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x432ca0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x433600
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4c086f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push esi
xor ebx, ebx
push ebp
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], ebx
call fcn.004a9c8d
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
lea eax, [esp + 0xc]
mov dword [esp + 0x1c], 1
push eax
push 0x20019
push ebx
push ecx
push edx
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x4336d3
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x28]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
lea edx, [esp + 0x3c]
push ebx
push edx
push ebx
push esi
push eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x44], ebx
call edi
test eax, eax
jne 0x4336c7
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x2c]
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.004aa003
lea edx, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x18]
push edx
push ebx
push esi
push eax
call edi
test eax, eax
push 0xffffffffffffffff
lea ecx, [esp + 0x38]
jne 0x4336b8
call fcn.004aa052
jmp 0x4336c7
call fcn.004aa052
push ebp
lea ecx, [esp + 0x38]
call fcn.004a9d5c
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x30]
push edx
mov ecx, esi
call fcn.004a9994
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x1c], bl
call fcn.004a9c1f
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x14

Function at 0x434490
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x4c0ac8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
lea eax, [esp]
push eax
call fcn.00434d10
lea ecx, [esp]
mov dword [esp + 0xc], 0
call fcn.004343e0
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp]
mov dword [esp + 0xc], 0xffffffff
call fcn.004a9c1f
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x434eb0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push eax
mov esi, ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.004a9d5c
mov ecx, esi
call fcn.00434be0
test eax, eax
jne 0x434eec
push 0x4ff328
mov ecx, esi
call fcn.004a9d0c
pop esi
add esp, 0x104
ret
Function at 0x435590
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x4c0d88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push ebp
mov ebp, ecx
push esi
lea eax, [esp + 0xc]
push edi
mov ecx, dword [ebp]
xor ebx, ebx
push eax
push ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
je 0x4356da
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebx
jne 0x43568b
push ebx
lea ecx, [esp + 0x24]
call fcn.00415cc0
push 3
push 0x7d8
push 0x7d1
lea ecx, [esp + 0x2c]
mov dword [esp + 0xa4], ebx
call fcn.004168e0
push ebx
push ebx
push 0xe6
lea ecx, [esp + 0x2c]
call fcn.00416340
lea ecx, [esp + 0x8c]
mov dword [esp + 0x98], 2
call fcn.004a9c1f
lea ecx, [esp + 0x88]
mov byte [esp + 0x98], 1
call fcn.004a9c1f
lea edx, [esp + 0x7c]
mov dword [esp + 0x98], 3
mov dword [esp + 0x1c], edx
mov dword [esp + 0x7c], vtable.CGdiObject.0
lea ecx, [esp + 0x7c]
mov byte [esp + 0x98], 4
call fcn.004b1077
lea ecx, [esp + 0x20]
mov dword [esp + 0x98], 0xffffffff
call fcn.004ab31a
xor eax, eax
jmp 0x435709
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp]
mov ebx, eax
mov eax, dword [esp + 0x10]
push ebx
push edi
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4356da
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
push 0x4ee660
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4356cc
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x24]
test ecx, ecx
jne 0x4356de
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x435709
mov edx, dword [esp + 0xa0]
mov ecx, dword [eax + 8]
push esi
mov dword [edx], ecx
mov ecx, dword [esp + 0xa8]
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 1
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x8c
ret 8
Function at 0x435730
Capabilities:
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x4c0deb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x16c
push ebx
push esi
mov dword [esp + 0x10], 0
mov ebx, 1
mov dword [esp + 0x17c], ebx
mov eax, dword [0x4f5b3c]
mov dword [esp + 0xc], eax
push 0x7e
lea ecx, [esp + 0x190]
mov byte [esp + 0x180], 3
call fcn.004aa09a
lea ecx, [esp + 0x18c]
lea edx, [esp + 0x188]
test eax, eax
push ecx
push edx
jge 0x4357ce
lea eax, [esp + 0x10]
push eax
call fcn.004a9e02
mov eax, dword [eax]
mov esi, dword [esp + 0x184]
push eax
mov ecx, esi
mov byte [esp + 0x180], 4
call fcn.004a9c8d
mov dword [esp + 0x10], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x17c], 3
call fcn.004a9c1f
jmp 0x43584c
lea eax, [esp + 0x10]
push eax
call fcn.004a9e02
mov eax, dword [eax]
push 0x200
lea ecx, [esp + 0x18]
push 0x160
push ecx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea ecx, [esp + 8]
call fcn.004a9c1f
lea edx, [esp + 0x20]
lea eax, [esp + 0x188]
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
call fcn.004a9e68
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x180], 5
call fcn.004a9d0c
lea ecx, [esp + 8]
mov byte [esp + 0x17c], 3
call fcn.004a9c1f
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 0x184]
push edx
mov ecx, esi
call fcn.004a9c8d
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0x17c], 2
call fcn.004a9c1f
lea ecx, [esp + 0x188]
mov byte [esp + 0x17c], bl
call fcn.004a9c1f
lea ecx, [esp + 0x18c]
mov byte [esp + 0x17c], 0
call fcn.004a9c1f
mov ecx, dword [esp + 0x174]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x178
ret 0xc
Function at 0x4405f0
Capabilities:
Get disk information

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov cl, byte [0x4f19ea]
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebx, eax
mov ax, word [0x4f19e8]
mov edi, 1
mov word [esp + 0x10], ax
mov byte [esp + 0x12], cl
xor esi, esi
test ebx, edi
je 0x44062f
lea edx, [esp + 0x10]
push edx
call ebp
cmp eax, 5
je 0x440649
mov al, byte [esp + 0x10]
inc al
shl edi, 1
inc esi
mov byte [esp + 0x10], al
cmp esi, 0x1b
jl 0x44061f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x440df0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4c3ac0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov eax, dword [0x4f5b3c]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x24]
mov byte [esp + 0x1c], 1
cmp esi, 0xfffffffd
jne 0x440e69
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.004a9994
mov ecx, ebx
call fcn.0043b130
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x1c], 0
call fcn.004a9c1f
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004a9c1f
mov eax, esi
jmp 0x440f52
cmp esi, edi
jle 0x440ec2
add esi, 0x40
lea eax, [esp + 0x10]
push esi
push str._c:_
push eax
call fcn.004a768f
add esp, 8
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.004a9994
mov ecx, ebx
call fcn.0043b130
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x1c], 0
call fcn.004a9c1f
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004a9c1f
mov eax, esi
jmp 0x440f52
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea eax, [edi + 0x41]
lea ecx, [esp + 0x10]
push eax
push str._c:_
push ecx
call fcn.004a768f
mov edx, dword [esp + 0x1c]
add esp, 0xc
push edx
call ebp
test esi, esi
jne 0x440ef7
cmp ax, 3
je 0x440f0f
cmp ax, 4
jne 0x440f2b
jmp 0x440f0f
cmp esi, 0xffffffff
jne 0x440f04
cmp ax, 3
jne 0x440f2b
jmp 0x440f0f
cmp esi, 0xfffffffe
jne 0x440f0f
cmp ax, 4
jne 0x440f2b
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.004a9994
mov ecx, ebx
call fcn.0043b130
test eax, eax
jne 0x440f67
inc edi
cmp edi, 0x1a
jl 0x440ec8
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 0
call fcn.004a9c1f
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004a9c1f
xor eax, eax
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 0
call fcn.004a9c1f
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004a9c1f
mov eax, 1
jmp 0x440f52

Function at 0x441be0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
lea eax, [esp]
mov dword [esp], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 8]
add esp, 0x20
ret
Function at 0x444180
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4c3fc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push edi
mov edx, ecx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 4]
mov dword [esp + 0x11c], 0
stosb byte es:[edi], al
mov eax, dword [edx + 8]
mov edx, dword [edx + 4]
push ecx
push 1
push 0
push eax
push edx
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
pop edi
jne 0x444266
lea eax, [esp + 4]
push esi
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x128]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x128]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.004a9d5c
mov ecx, dword [esi]
pop esi
mov eax, dword [ecx - 8]
test eax, eax
je 0x444266
lea ecx, [esp + 0x120]
mov dword [esp + 0x118], 0xffffffff
call fcn.004a9c1f
mov eax, 1
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
add esp, 0x11c
ret 8
lea ecx, [esp + 0x120]
mov dword [esp + 0x118], 0xffffffff
call fcn.004a9c1f
mov ecx, dword [esp + 0x110]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x11c
ret 8

Function at 0x4442a0
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c3fe8
push eax
mov dword fs:[0], esp
sub esp, 8
lea edx, [esp + 4]
mov eax, dword [ecx + 8]
push edx
lea edx, [esp + 4]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push eax
mov eax, dword [ecx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x444335
mov edx, dword [esp + 0x18]
push esi
lea ecx, [esp + 0x20]
push 4
push ecx
push 4
push eax
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x444335
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.004a9c1f
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 8
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.004a9c1f
mov ecx, dword [esp + 8]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x444360
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4c4010
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
push esi
push edi
mov edx, ecx
xor ebx, ebx
mov dword [esp + 0x120], ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0xc], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [edx + 8]
and ecx, 3
mov edx, dword [edx + 4]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x10]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x444459
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x14]
not ecx
push ecx
mov ecx, dword [esp + 0x12c]
push eax
push 1
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x444459
lea ecx, [esp + 0x128]
mov byte [esp + 0x120], bl
call fcn.004a9c1f
lea ecx, [esp + 0x12c]
mov dword [esp + 0x120], 0xffffffff
call fcn.004a9c1f
mov eax, 1
jmp 0x444485
lea ecx, [esp + 0x128]
mov byte [esp + 0x120], bl
call fcn.004a9c1f
lea ecx, [esp + 0x12c]
mov dword [esp + 0x120], 0xffffffff
call fcn.004a9c1f
xor eax, eax
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret 8
Function at 0x4444a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4c4030
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x10]
xor ebx, ebx
push ecx
push 1
push ebx
push eax
push edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x444522
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push ebx
push eax
push ecx
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x44451b
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x10]
push eax
call edi
mov ecx, dword [esp + 0x34]
push ecx
lea ecx, [esp + 0x18]
call fcn.004a9c8d
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
call fcn.00434b80
test eax, eax
mov eax, dword [esp + 0xc]
je 0x444550
cmp eax, ebx
jne 0x444550
mov eax, 1
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x10]
add eax, edx
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 4]
push ecx
push ebx
push 0x2001f
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 8]
push ebx
push ebx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4445d7
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x10]
push eax
call edi
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], bl
call fcn.004a9c1f
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004a9c1f
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], bl
call fcn.004a9c1f
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004a9c1f
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8