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

Disassembly:
push 0x1c
mov eax, 0x4a5782
call fcn.00490e49
mov ebx, ecx
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0x50
jge 0x42c785
call fcn.0047dccb
push eax
lea ecx, [ebp - 0x24]
call fcn.00434103
mov eax, 0x400
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], eax
call fcn.0048c2b0
mov dword [ebp - 0x18], eax
mov eax, esp
mov dword [ebp - 0x14], esp
push dword [ebp + 0xc]
push str.AppNameGuess:_OnUninstallerKey:__s
push eax
call fcn.00453c70
add esp, 8
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0x4b9320
call fcn.00421197
push 1
mov byte [ebp - 4], 1
call fcn.00458060
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x20]
push eax
push esi
push str.DisplayName
push dword [ebp + 8]
call edi
test eax, eax
jne 0x42c771
push dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
call fcn.00421197
push str.Microsoft_Visual_C
xor ecx, ecx
lea esi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0042452c
cmp eax, 0xffffffff
je 0x42c65c
push str.Redistributable
xor ecx, ecx
call fcn.0042452c
cmp eax, 0xffffffff
jne 0x42c766
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x42c670
push 0x4b1cdc
mov ecx, ebx
call fcn.00423c06
mov esi, dword [ebp - 0x18]
push esi
mov ecx, ebx
call fcn.00424517
lea eax, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x20]
push eax
push 0
push str.Publisher
push dword [ebp + 8]
call edi
test eax, eax
jne 0x42c69d
mov ecx, dword [ebp + 0x10]
push esi
call fcn.004211db
lea eax, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x20]
push eax
push 0
push str.DisplayVersion
push dword [ebp + 8]
call edi
test eax, eax
jne 0x42c6bf
mov ecx, dword [ebp + 0x14]
push esi
call fcn.004211db
push ecx
mov ecx, dword [ebp + 0x14]
mov eax, esp
mov dword [ebp - 0x10], esp
push dword [ecx]
mov ecx, dword [ebp + 0x10]
push dword [ecx]
push dword [ebx]
push str.AppNameGuess:_RegAppName_s__RegPublisher_s__RegVersion_s
push eax
call fcn.00453c70
add esp, 0x10
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x4b9320
mov byte [ebp - 4], 4
call fcn.00421197
push 1
mov byte [ebp - 4], 3
call fcn.00458060
add esp, 0xc
push ebx
lea ecx, [ebp - 0x10]
call fcn.00421360
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x10]
mov esi, dword [eax - 0xc]
push esi
lea ecx, [ebp - 0x10]
call fcn.0042049e
lea ecx, [esi + 1]
push ecx
push eax
call fcn.0048d4c4
pop ecx
pop ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.004204ca
mov edi, str._REMOVE_ONLY_
push edi
xor ecx, ecx
lea esi, [ebp - 0x10]
call fcn.0042452c
mov esi, eax
cmp esi, 0xffffffff
je 0x42c75b
push edi
call fcn.0048c02b
pop ecx
push esi
push ebx
call fcn.00423ad1
call fcn.00422635
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0042001a
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0042001a
push dword [ebp - 0x18]
call fcn.0048c1d3
pop ecx
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.0042001a
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0042001a
call fcn.00490f21
ret
Function at 0x42d81e
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
cmp dword [0x4d1b88], esi
jne 0x42d87b
push esi
push esi
push esi
push esi
mov dword [0x4d1b88], 1
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x4d1754], eax
cmp dword [0x4d1b8c], esi
jne 0x42d86a
push esi
push esi
push 0x4b04e0
call fcn.0048cb7a
pop ecx
push eax
push 0x42d4f6
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4d1b8c], eax
push 0x190
push dword [0x4d1754]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
ret

Function at 0x42de7f
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp dword [esi + 0x8c], edi
je 0x42dec1
mov ecx, esi
call fcn.0042e8c6
test eax, eax
je 0x42dec6
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x42e1e3
push edi
push edi
call fcn.0048edd2
add esp, 0x18
mov dword [esi + 0xa8], eax
cmp eax, edi
je 0x42dec1
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop edi
leave
ret
mov eax, dword [esi + 0xb0]
cmp eax, edi
je 0x42dec1
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x1c]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb0]
push edi
mov ecx, dword [eax]
neg edx
push edx
push dword [ebp - 8]
push dword [ebp - 4]
push edi
push dword [esi + 0x68]
push dword [esi + 0x64]
push edi
push edi
push dword [esi + 0x90]
push eax
call dword [ecx + 0x20]
test eax, eax
jne 0x42dec1
push edi
push edi
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
xor eax, eax
inc eax
jmp 0x42dec3

Function at 0x42df26
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
call fcn.0048002e
mov eax, dword [eax + 0xc]
push 0x4b3c10
push 0x3ed
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x42dfd3
call fcn.0048002e
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x42dfd3
call fcn.0048002e
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x42dfd3
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x42dfcc
test ebx, ebx
je 0x42dfcc
push edi
push eax
push ebx
call fcn.0048cf70
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 8]
push edi
push esi
call fcn.0042d9cd
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
jmp 0x42dfd5
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x42eee1
Capabilities:
Print debug messages

Disassembly:
push 8
mov eax, 0x4a45e3
call fcn.00490e49
and dword [ebp - 4], 0
push dword [ebp + 8]
push 0x4b4008
call fcn.00451e00
pop ecx
pop ecx
push 0x4b3048
lea ecx, [ebp + 8]
call fcn.00423c06
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00433db4
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call fcn.0048eeae
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push str.Loader:
push eax
call fcn.0042250c
add esp, 0x10
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.004226f7
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0042001a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0042001a
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0042001a
call fcn.00490f21
ret
Function at 0x434cfd
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4ccc64]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x3b8
xor ebx, ebx
lea eax, [esi + 0x54]
push ebx
push eax
call fcn.0048cb00
push 0x110
xor edi, edi
inc edi
lea eax, [ebp - 0x114]
push ebx
push eax
mov dword [esi + 0x40c], ebx
mov dword [esi + 0x410], edi
mov dword [esi + 0x414], edi
mov dword [esi + 0x454], ebx
mov dword [esi + 0x458], edi
mov dword [esi + 0x418], ebx
mov dword [esi + 0x438], ebx
mov dword [esi + 0x450], ebx
mov dword [esi + 0x420], ebx
mov dword [esi + 0x45c], ebx
mov dword [ebp - 0x118], 0x114
call fcn.0048cb00
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x434da0
cmp dword [ebp - 0x114], 5
jae 0x434da2
xor edi, edi
mov ecx, dword [ebp - 4]
mov dword [esi + 0x41c], edi
pop edi
xor ecx, ebp
pop ebx
call fcn.0048b97b
leave
ret

Function at 0x435710
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
push ecx
mov byte [ebp - 1], 0
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [eax], edi
call fcn.0048cb7a
add esp, 4
mov ebx, eax
lea edx, [eax + 2]
jmp 0x435740
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x435740
sub eax, edx
sar eax, 1
cmp eax, 5
jb 0x435794
lea esi, [ebx + eax*2 - 0xa]
mov ecx, 0x4b6208
mov eax, esi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x435786
cmp dx, di
je 0x435782
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x435786
add eax, 4
add ecx, 4
cmp dx, di
jne 0x435760
xor eax, eax
jmp 0x43578b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x435794
xor edx, edx
mov word [esi], dx
mov edx, dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 0xc]
push ecx
push edi
push ebx
push edx
call esi
cmp eax, 0xea
je 0x4357b6
cmp eax, edi
jne 0x4357f6
mov eax, dword [ebp - 8]
push eax
call fcn.0048c2b0
add esp, 4
lea ecx, [ebp - 8]
push ecx
mov edi, eax
mov eax, dword [ebp + 8]
push edi
lea edx, [ebp - 0xc]
push edx
push 0
push ebx
push eax
call esi
test eax, eax
jne 0x4357ed
mov esi, dword [ebp - 8]
call fcn.0047b840
mov ecx, dword [ebp + 0xc]
not eax
mov dword [ecx], eax
mov byte [ebp - 1], 1
push edi
call fcn.0048c1d3
add esp, 4
push ebx
call fcn.0048c1d3
mov al, byte [ebp - 1]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452270
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x28
mov dword [ebp - 8], 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x45229e
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x452296
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x2c], edx
lea edx, [ebp - 0x20]
push edx
push 0x10
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 0
push ecx
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x24], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jne 0x452296
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
or dword [ebp - 0x14], 2
push 0
push 0
push ecx
mov dword [ebp - 0x1c], edx
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
push 0
push eax
mov dword [ebp - 0x20], 1
call esi
call edi
test eax, eax
jne 0x452296
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4526e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.0048cb00
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], ecx
add esp, 0xc
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4527e0
cmp dword [ebp + 0x10], 0
je 0x452756
mov edx, dword [ebp - 4]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test edi, edi
je 0x452765
mov eax, dword [ebp - 4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test ebx, ebx
je 0x452770
mov ecx, dword [ebp - 4]
mov dword [ebx], ecx
jmp 0x45277a
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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 0x452799
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 0x4527b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4527d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov esp, ebp
pop ebp
ret
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 0x4527ff
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 0x45281e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45283d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x454710
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push esi
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push eax
mov dword [ebp - 8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [edi], 0
mov dword [ebx], 0
cmp esi, 0xffffffff
je 0x4547d7
push 0
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx], eax
test eax, eax
jne 0x45478b
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 0x454783
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], 0
je 0x454794
add eax, 2
push eax
call fcn.0048c2b0
add esp, 4
push 0
lea ecx, [ebp - 4]
push ecx
mov dword [edi], eax
mov edx, dword [ebx]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4547d0
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
je 0x4547d0
mov ecx, dword [edi]
mov byte [eax + ecx], 0
mov edx, dword [edi]
mov eax, dword [ebp - 4]
mov byte [edx + eax + 1], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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 0x4547f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x454800
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3fe0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4ccc64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push edi
push edi
push 3
push edi
push edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
push 0x4b04e0
mov dword [ebp - 0x10], esi
call fcn.0048c02b
add esp, 4
push eax
push 0x4b04e0
mov ecx, ebx
call fcn.004214c7
cmp esi, 0xffffffff
jne 0x454899
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454886
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
push esi
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, edi
jne 0x4548c9
mov dword [ebp - 4], 0xffffffff
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
jmp 0x45499e
push esi
call fcn.0048c2b0
mov edx, dword [ebp - 0x10]
add esp, 4
push 0
lea ecx, [ebp - 0x14]
push ecx
push esi
mov edi, eax
push edi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45497a
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
mov edx, edi
call fcn.00454470
add esp, 4
mov byte [ebp - 4], 1
mov ecx, dword [eax]
mov esi, dword [ebx]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x454957
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x45494b
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x45494b
push eax
call fcn.00421538
mov dword [ebp - 0x18], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x454941
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x10
mov dword [ebx], ecx
jmp 0x454957
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, ebx
call fcn.004214c7
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45497a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
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 0x4549aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4549c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x454a0a
mov edx, dword [ebp + 0xc]
push ebx
lea ecx, [ebp - 4]
push ecx
push edi
push edx
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x454a03
cmp dword [ebp - 4], edi
jne 0x454a03
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
movzx esi, bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454a2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x454a40
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp + 8]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp eax, 0xffffffff
mov eax, dword [ebp + 8]
je 0x454aa5
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x454a9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
pop ebp
ret
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454ac1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop ebp
ret
Function at 0x454da0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push ecx
push SysReAllocStringLen
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x454e05
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push esi
push edx
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x454dfb
cmp dword [ebp - 8], 4
jne 0x454dfb
lea esi, [eax + 1]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 0x454e24
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 0x454e43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x454e50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3808
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4ccc64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 4], 2
mov dword [ebp - 0x10], edi
mov esi, 0xf003f
cmp dword [ebp + 0x18], edi
je 0x454e99
call fcn.00457140
test eax, eax
je 0x454e99
mov esi, 0xf013f
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push edi
push edi
push edi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x454ef7
mov eax, dword [ebp + 0x14]
cmp dword [eax - 4], 1
mov esi, dword [eax - 0xc]
jle 0x454ecf
mov eax, esi
push eax
lea ecx, [ebp + 0x14]
call fcn.00420560
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
lea ecx, [esi + esi]
push ecx
push eax
mov eax, dword [ebp - 0x10]
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x454eed
lea edi, [eax + 1]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x454f1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454f3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454f63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x454f80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push esi
lea eax, [ebp - 4]
push eax
push ecx
xor esi, esi
push SysReAllocStringLen
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x454fc9
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
push 4
lea edx, [ebp + 0x10]
push edx
push 4
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x454fbf
lea esi, [eax + 1]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 0x454fe8
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 0x455007
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret