joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a610
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x4f4284]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x43a6c5
lea eax, [ebp - 0x228]
push eax
sub esp, 8
lea eax, [ebp - 0x210]
mov edx, esp
mov dword [edx], eax
cmp word [ebp - 0x210], 0
jne 0x43a668
xor eax, eax
jmp 0x43a680
lea eax, [ebp - 0x210]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43a671
sub eax, esi
sar eax, 1
lea ecx, [ebp - 0x240]
mov dword [edx + 4], eax
call fcn.004379f0
mov ecx, eax
call fcn.00439400
push eax
mov ecx, edi
call fcn.00437ad0
lea ecx, [ebp - 0x228]
call fcn.00434920
lea ecx, [ebp - 0x240]
call fcn.00434920
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d8a1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0049d8a1
mov esp, ebp
pop ebp
ret

Function at 0x43a8f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x43a8fe
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x43a910
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp dword [esi + 0x14], 8
jb 0x43a922
mov eax, dword [esi]
jmp 0x43a924
mov eax, esi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x43a931
mov ecx, dword [edi]
jmp 0x43a933
mov ecx, edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x43a945
pop edi
mov al, 1
pop esi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00452d30
add esp, 4
mov dword [ebp + 0xc], eax
cmp dword [edi + 0x14], 8
jb 0x43a95f
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x43a967
mov esi, dword [esi]
push 0
push 0
push 2
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
jne 0x43a93f
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x43a99a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00452d30
add esp, 4
cmp eax, 0xfffffffc
cmove eax, dword [ebp + 0xc]
mov dword [esi], eax
pop edi
xor al, al
pop esi
pop ebp
ret
Function at 0x43a9c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], 0
cmp dword [eax + 0x14], 8
push edi
mov edi, dword [ebp + 0x10]
jb 0x43a9e0
mov eax, dword [eax]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
call fcn.00421fbf
mov eax, dword [ebp - 4]
test eax, eax
je 0x43aa34
cmp eax, 0xffffffff
je 0x43aa34
push 0
lea ecx, [ebp - 8]
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43aa31
mov esi, dword [ebp - 8]
cmp esi, edi
jne 0x43aa31
mov eax, dword [ebp - 4]
jmp 0x43aa37
mov eax, dword [ebp - 4]
or esi, 0xffffffff
test eax, eax
je 0x43aa61
cmp eax, 0xffffffff
je 0x43aa61
call fcn.004474b0
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
call fcn.00448e30
push dword [ebp - 4]
call fcn.00448960
add esp, 0x14
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43b390
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call fcn.00439290
test al, al
jne 0x43b3b1
mov ecx, dword [ebp + 0xc]
call fcn.00439290
test al, al
jne 0x43b3b1
pop ebp
jmp fcn.0043a790
xor al, al
pop ebp
ret

Function at 0x43b3e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
test ebx, ebx
je 0x43b403
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x43b3fe
mov eax, dword [ebx]
jmp 0x43b400
mov eax, ebx
mov byte [eax], 0
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00439290
test al, al
je 0x43b419
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 0x4d794c
push esi
call fcn.0043a830
mov edi, eax
add esp, 8
mov dword [ebp - 4], edi
test edi, edi
jne 0x43b43a
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10000
call fcn.0049d9a4
push edi
push 0x10000
mov esi, eax
mov dword [ebp + 0xc], 0
push 1
push esi
call fcn.004aa8e1
mov edi, eax
add esp, 0x14
test edi, edi
je 0x43b4ad
mov eax, dword [ebp + 0x10]
test ebx, ebx
je 0x43b483
mov ecx, eax
mov eax, edi
sub ecx, dword [ebp + 0xc]
cmp ecx, edi
cmovb eax, ecx
mov ecx, ebx
push eax
push esi
call fcn.0041b3c5
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
sub eax, ecx
cmp eax, edi
jb 0x43b4c3
push dword [ebp - 4]
add ecx, edi
push 0x10000
push 1
push esi
mov dword [ebp + 0xc], ecx
call fcn.004aa8e1
mov edi, eax
add esp, 0x10
mov eax, dword [ebp + 0x10]
test edi, edi
jne 0x43b467
mov ebx, dword [ebp - 4]
push ebx
call fcn.004aa3f0
add esp, 4
test eax, eax
jne 0x43b4c6
mov byte [ebp + 0xf], 1
jmp 0x43b4ca
mov ebx, dword [ebp - 4]
mov byte [ebp + 0xf], 0
push ebx
call fcn.004aa370
add esp, 4
test esi, esi
je 0x43b4e0
push esi
call fcn.0049d89c
add esp, 4
mov al, byte [ebp + 0xf]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43b4f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4f4284]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x43b61e
cmp byte [ebx + 0x3d], 0
je 0x43b61e
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x43b534
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d8a1
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
mov byte [ebp - 0x1c], 0
xorps xmm0, xmm0
mov dword [ebp - 8], ecx
cmp ecx, 0x10
movq qword [ebp - 0x1c], xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc], 8
cmovae eax, dword [ebp - 0x1c]
push esi
push edi
mov byte [eax + 8], 0
mov ecx, dword [ebp - 8]
cmp ecx, 0x10
lea eax, [ebp - 0x20]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x1c]
cmovae edi, dword [ebp - 0x1c]
lea esi, [ebp - 0x1c]
cmovae esi, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x43b5a0
sub eax, 1
je 0x43b5a4
mov ecx, dword [ebp - 8]
sub eax, 2
je 0x43b5f7
xor bl, bl
jmp 0x43b5f9
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x1c]
cmp ecx, 0x10
mov esi, dword [ebp - 0x20]
cmovae eax, edx
sub esi, eax
je 0x43b5d9
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004a9003
mov ecx, dword [ebp - 8]
add esp, 0x10
cmp esi, eax
jne 0x43b59c
cmp byte [ebx + 0x3d], 0
je 0x43b5f7
test esi, esi
jne 0x43b562
push esi
push 8
lea ecx, [ebp - 0x1c]
call fcn.0041b365
jmp 0x43b55f
mov bl, 1
pop edi
pop esi
cmp ecx, 0x10
jb 0x43b60d
inc ecx
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
call fcn.004310c0
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d8a1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop ebx
call fcn.0049d8a1
mov esp, ebp
pop ebp
ret
Function at 0x43f510
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
mov esi, dword [ebx + 4]
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebx + 0x18]
and ecx, eax
lea edx, [ecx*8]
mov ecx, dword [ebx + 0xc]
mov dword [ebp + 0xc], edx
mov eax, dword [ecx + edx]
cmp esi, eax
je 0x43f581
mov esi, dword [ecx + edx + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x43f581
mov ecx, dword [edi]
mov esi, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x43f5c5
cmp esi, eax
jne 0x43f575
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x43f5ae
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebx + 0xc]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx + 4]
jne 0x43f5fb
mov dword [ecx], edi
mov eax, dword [ebx + 0xc]
mov dword [edx + eax + 4], edi
jmp 0x43f61d
mov edi, dword [ebp + 0x10]
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ecx], eax
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea ecx, [edi + 0xc]
dec dword [ebx + 8]
call fcn.00434920
push edi
call fcn.0049d3f3
mov eax, dword [ebp + 8]
add esp, 4
pop edi
mov dword [eax], esi
pop esi
mov byte [eax + 4], 0
pop ebx
pop ebp
ret 0xc
cmp eax, esi
jne 0x43f603
mov dword [ecx], edi
jmp 0x43f61d
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x43f61d
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.0043fbe0
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
pop ebp
ret 0xc
Function at 0x43fd50
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [esi + 0xc]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [esi + 0x18]
mov esi, dword [esi + 4]
and ecx, eax
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov ebx, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
cmp ebx, esi
jne 0x43fdab
mov ecx, esi
jmp 0x43fdb0
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x43fdd5
mov ecx, dword [eax + 8]
cmp ecx, dword [edi]
je 0x43fdbf
mov eax, dword [eax]
jmp 0x43fda3
mov ecx, dword [edi]
cmp ecx, dword [eax + 8]
mov ecx, dword [ebp + 8]
cmovne eax, esi
pop edi
pop esi
mov dword [ecx], eax
mov eax, ecx
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x440100
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], 0
cmp byte [esi], 0
je 0x44011c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x44011f
mov eax, dword [esi + 4]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne bl
test bl, bl
je 0x440154
cmp byte [ebp + 0xc], 0
je 0x440154
cmp byte [esi], 0
je 0x440145
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x440148
mov eax, dword [esi + 4]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x445880
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 8
or eax, 0x20019
push esi
mov esi, ecx
push esi
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4458cd
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push 0
push 0
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x4458e0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi], 0
xor eax, eax
mov word [esi + 8], ax
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi]
dec ecx
mov dword [esi + 4], ecx
test edx, edx
je 0x445916
test ecx, ecx
js 0x445916
lea eax, [ebp - 8]
mov dword [ebp + 0x10], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp + 0x10]
push eax
lea eax, [esi + 8]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x44591c
xor eax, eax
mov word [esi + 8], ax
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x445a10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x445b03
cmp dword [esi + 4], 0
jl 0x445b03
mov eax, dword [esi + 0x24]
lea ebx, [esi + 0x2c]
sub eax, dword [esi + 0x20]
lea edx, [esi + 8]
mov ecx, dword [esi + 0x1c]
sar eax, 1
push ebx
push dword [esi + 0x20]
mov dword [ebp - 0xc], ecx
lea eax, [eax*2 - 2]
mov dword [ebp - 4], ecx
mov dword [ebx], eax
lea eax, [esi + 0x30]
push eax
push 0
lea eax, [ebp - 4]
push eax
push ecx
push edx
call fcn.00443370
add esp, 8
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0xea
jne 0x445ae8
mov ecx, dword [ebx]
mov eax, dword [esi + 0x24]
inc ecx
sub eax, dword [esi + 0x20]
shr ecx, 1
inc ecx
sar eax, 1
cmp ecx, eax
jbe 0x445a9f
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push ecx
lea ecx, [esi + 0x20]
call fcn.004461f0
mov eax, dword [esi + 0x24]
mov ecx, 0x4000
sub eax, dword [esi + 0x20]
sar eax, 1
push ebx
push dword [esi + 0x20]
lea eax, [eax*2 - 2]
mov dword [ebx], eax
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 4], eax
cmove eax, ecx
lea ecx, [esi + 0x30]
push ecx
push 0
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
push ecx
push eax
lea eax, [esi + 8]
push eax
call fcn.00443370
add esp, 8
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x445b03
mov ecx, dword [ebx]
mov eax, dword [esi + 0x20]
inc ecx
shr ecx, 1
xor edx, edx
pop edi
pop esi
pop ebx
mov word [eax + ecx*2], dx
mov al, 1
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
jb 0x445b0e
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [esi + 0x20]
pop edi
mov word [eax], cx
xor al, al
mov dword [esi + 0x2c], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x445ba0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0049dfb0
mov eax, dword [0x4f4284]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x100c]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edx
lea edx, [ebp - 0x804]
mov dword [ebp - 0x1008], 1
push edx
lea edx, [ebp - 0x1008]
mov dword [ebp - 0x100c], 0x800
push edx
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x445cdf
mov ecx, dword [ebp - 0x1008]
cmp ecx, 1
jne 0x445c72
cmp word [ebp - 0x804], ax
jne 0x445c36
xor ecx, ecx
lea eax, [ebp - 0x804]
push ecx
push eax
mov ecx, edi
call fcn.0041b79d
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d8a1
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x445c40
sub ecx, edx
lea eax, [ebp - 0x804]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.0041b79d
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d8a1
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x445cda
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x100c], eax
test eax, eax
je 0x445cc3
cmp eax, 0x400
ja 0x445cc3
lea eax, [ebp - 0x1004]
mov ecx, edi
push eax
call fcn.00431b70
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d8a1
mov esp, ebp
pop ebp
ret 8
pop edi
mov eax, 0xea
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d8a1
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0049d8a1
mov esp, ebp
pop ebp
ret 8
Function at 0x445d90
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4f4284]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp dword [esi + 0x14], 8
jb 0x445db3
mov edi, dword [esi]
jmp 0x445db5
mov edi, esi
push str.RegDeleteKeyExW
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x445ddb
push 0
push dword [ebp + 0x10]
push edi
push ebx
call eax
jmp 0x445de3
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x445dfa
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d8a1
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x38], 0
jb 0x445e0b
mov ecx, dword [esi]
jmp 0x445e0d
mov ecx, esi
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp + 0x10]
or eax, 8
push eax
push 0
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
je 0x445de7
test eax, eax
jne 0x445f74
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], eax
mov word [ebp - 0x1c], ax
call fcn.0041b708
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x445e70
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x445e70
push 0x4d3bf4
lea ecx, [ebp - 0x1c]
call fcn.00431eb0
mov edi, dword [ebp - 0xc]
xor eax, eax
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x104
push eax
lea eax, [ebp - 0x34]
push 0x104
push eax
call fcn.00443370
add esp, 8
push eax
push 0
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x445f40
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x24]
cmp ecx, eax
ja 0x445edf
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
mov dword [ebp - 0x24], ecx
cmovae eax, dword [ebp - 0x34]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x445eec
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x34]
call fcn.00420172
mov ecx, dword [ebp - 0xc]
cmp edi, ecx
ja 0x445f09
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc], edi
cmovae eax, dword [ebp - 0x1c]
xor ecx, ecx
mov word [eax + edi*2], cx
jmp 0x445f18
mov eax, edi
sub eax, ecx
lea ecx, [ebp - 0x1c]
push 0
push eax
call fcn.00420172
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0041b468
push dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push eax
push ebx
call fcn.00445d90
add esp, 0xc
test eax, eax
je 0x445e87
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi + 0x14], 8
jb 0x445f51
mov esi, dword [esi]
push 0
push dword [ebp + 0x10]
push esi
push ebx
call fcn.00445f90
add esp, 0x10
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.00434920
lea ecx, [ebp - 0x1c]
call fcn.00434920
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d8a1
mov esp, ebp
pop ebp
ret
Function at 0x446070
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, edx
push esi
push edi
mov esi, ecx
lea edi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x446080
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 8
Function at 0x44aa60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x44aa6e
mov eax, dword [eax]
push 0
push 0
push 0
push eax
push 0x4d8120
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg al
pop ebp
ret

Function at 0x44af70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
call fcn.00446770
cmp eax, 4
jge 0x44af81
xor al, al
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x44af8c
mov eax, dword [eax]
push 0
push 0
push 0
push eax
push str.taskbarunpin
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg al
pop ebp
ret

Function at 0x44f780
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4f4284]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x38], esi
push dword [ebp + 8]
push eax
call fcn.004448e0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x44f7b2
mov eax, dword [eax]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [ebp - 8]
mov edi, eax
cmp ecx, 8
jb 0x44f7d4
inc ecx
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
call fcn.004329f0
test edi, edi
jne 0x44f7ec
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d8a1
mov esp, ebp
pop ebp
ret 0xc
test esi, esi
je 0x44f8b1
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049d9a4
push dword [ebp + 0xc]
mov esi, eax
lea eax, [ebp - 0x1c]
push dword [ebp + 8]
push eax
call fcn.004448e0
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x44f828
mov eax, dword [eax]
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [ebp - 8]
cmp eax, 8
jb 0x44f846
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.004329f0
push esi
lea ecx, [ebp - 0x1c]
call fcn.0041606d
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00444a50
mov ecx, dword [ebp - 0x38]
add esp, 8
push eax
call fcn.00421b53
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x44f87d
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.004310c0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
cmp eax, 8
jb 0x44f8a4
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.004329f0
test esi, esi
je 0x44f8b1
push esi
call fcn.0049d89c
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0049d8a1
mov esp, ebp
pop ebp
ret 0xc