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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2bac
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x51c91c]
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, dword [ebp + 8]
lea eax, [ebp - 0x220]
push 0x210
push 0
push eax
mov dword [ebp - 0x23c], esi
call fcn.00469210
lea eax, [ebp - 0x224]
push eax
call fcn.0045a1a0
add esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
push 0x20219
push dword [ebp - 0x224]
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040ab10
test eax, eax
je 0x45a4dd
push 0x20119
push dword [ebp - 0x224]
lea ecx, [ebp - 0x234]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040ab10
test eax, eax
je 0x45a4dd
call fcn.00414c00
mov ecx, eax
test ecx, ecx
je 0x45a5db
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0x4eab1c
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004036f0
test al, al
jne 0x45a49e
push 0
push 0x4eab1c
mov ecx, esi
call fcn.00404ae0
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x45a4af
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x224]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x45a5be
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x45a5be
mov edi, dword [ebp - 0x234]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x228], 0x210
push eax
lea eax, [ebp - 0x238]
push eax
push 0
push str.InstallDir
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45a536
mov eax, dword [ebp - 0x238]
cmp eax, 1
je 0x45a524
cmp eax, 2
jne 0x45a536
cmp dword [ebp - 0x228], 0
jne 0x45a536
xor eax, eax
mov word [ebp - 0x220], ax
call fcn.00414c00
mov ecx, eax
test ecx, ecx
je 0x45a5e5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 3
push eax
mov ecx, esi
call fcn.004036f0
test al, al
jne 0x45a58e
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45a570
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00404ae0
test edi, edi
je 0x45a599
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x224]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45a5be
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
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.004530b8
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004036d0
push 0x80004005
call fcn.004036d0
int3
Function at 0x45a5f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
call fcn.0045a720
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 4]
mov esi, eax
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x45a629
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45ab80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2cc8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x51c91c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], 0x360033
mov dword [ebp - 0x24], 0x730030
mov dword [ebp - 0x20], 0x660061
mov dword [ebp - 0x1c], 0x2e0065
mov dword [ebp - 0x18], 0x780065
mov dword [ebp - 0x14], 0x65
call fcn.00414c00
mov ecx, eax
test ecx, ecx
je 0x45ac47
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.004036f0
test al, al
jne 0x45ac2b
lea ecx, [ebp - 0x28]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45ac10
sub ecx, edx
lea eax, [ebp - 0x28]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00404ae0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004530b8
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004036d0
int3

Function at 0x45bfd0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3138
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x51c91c]
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 esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], 0x4f0053
mov dword [ebp - 0x78], 0x540046
mov dword [ebp - 0x74], 0x410057
mov dword [ebp - 0x70], 0x450052
mov dword [ebp - 0x6c], 0x4d005c
mov dword [ebp - 0x68], 0x630069
mov dword [ebp - 0x64], 0x6f0072
mov dword [ebp - 0x60], 0x6f0073
mov dword [ebp - 0x5c], 0x740066
mov dword [ebp - 0x58], 0x57005c
mov dword [ebp - 0x54], 0x6e0069
mov dword [ebp - 0x50], 0x6f0064
mov dword [ebp - 0x4c], 0x730077
mov dword [ebp - 0x48], 0x43005c
mov dword [ebp - 0x44], 0x720075
mov dword [ebp - 0x40], 0x650072
mov dword [ebp - 0x3c], 0x74006e
mov dword [ebp - 0x38], 0x650056
mov dword [ebp - 0x34], 0x730072
mov dword [ebp - 0x30], 0x6f0069
mov dword [ebp - 0x2c], 0x5c006e
mov dword [ebp - 0x28], 0x700041
mov dword [ebp - 0x24], 0x200070
mov dword [ebp - 0x20], 0x610050
mov dword [ebp - 0x1c], 0x680074
mov dword [ebp - 0x18], 0x5c0073
mov word [ebp - 0x14], ax
call fcn.00414c00
mov ecx, eax
test ecx, ecx
je 0x45c129
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.004036f0
test al, al
jne 0x45c10b
lea ecx, [ebp - 0x7c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45c0f0
sub ecx, edx
lea eax, [ebp - 0x7c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00404ae0
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.004530b8
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004036d0
int3
Function at 0x45c230
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e31a8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x51c91c]
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 esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], 0x4f0053
mov dword [ebp - 0x78], 0x540046
mov dword [ebp - 0x74], 0x410057
mov dword [ebp - 0x70], 0x450052
mov dword [ebp - 0x6c], 0x4d005c
mov dword [ebp - 0x68], 0x630069
mov dword [ebp - 0x64], 0x6f0072
mov dword [ebp - 0x60], 0x6f0073
mov dword [ebp - 0x5c], 0x740066
mov dword [ebp - 0x58], 0x57005c
mov dword [ebp - 0x54], 0x6e0069
mov dword [ebp - 0x50], 0x6f0064
mov dword [ebp - 0x4c], 0x730077
mov dword [ebp - 0x48], 0x43005c
mov dword [ebp - 0x44], 0x720075
mov dword [ebp - 0x40], 0x650072
mov dword [ebp - 0x3c], 0x74006e
mov dword [ebp - 0x38], 0x650056
mov dword [ebp - 0x34], 0x730072
mov dword [ebp - 0x30], 0x6f0069
mov dword [ebp - 0x2c], 0x5c006e
mov dword [ebp - 0x28], 0x6e0055
mov dword [ebp - 0x24], 0x6e0069
mov dword [ebp - 0x20], 0x740073
mov dword [ebp - 0x1c], 0x6c0061
mov dword [ebp - 0x18], str.B_b
mov word [ebp - 0x14], ax
call fcn.00414c00
mov ecx, eax
test ecx, ecx
je 0x45c389
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.004036f0
test al, al
jne 0x45c36b
lea ecx, [ebp - 0x7c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45c350
sub ecx, edx
lea eax, [ebp - 0x7c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00404ae0
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.004530b8
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004036d0
int3
Function at 0x45f490
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3a2e
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x51c91c]
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, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], 0
call fcn.00414c00
mov ecx, eax
test ecx, ecx
je 0x45f6c4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], 1
call fcn.0041ed30
add esp, 4
lea ecx, [ebp - 0x224]
mov eax, dword [eax + 0xc]
push eax
call fcn.004033c0
mov dword [ebp - 4], 1
call fcn.00414c00
mov ecx, eax
test ecx, ecx
je 0x45f6ce
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push 0x4f5ed8
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.004036f0
test al, al
jne 0x45f56b
push 3
push 0x4f5ed8
lea ecx, [ebp - 0x21c]
call fcn.00404ae0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
push 0x20219
push dword [ebp - 0x224]
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 4
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040ab10
mov esi, dword [ebp - 0x21c]
mov edi, dword [ebp - 0x238]
test eax, eax
jne 0x45f65e
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00469210
add esp, 0xc
mov dword [ebp - 0x220], 0x208
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x22c]
push eax
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45f65e
mov eax, dword [ebp - 0x22c]
cmp eax, 1
je 0x45f60f
cmp eax, 2
jne 0x45f65e
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x45f62c
test al, 1
jne 0x45f65e
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x45f635
jmp 0x45f65e
xor eax, eax
mov word [ebp - 0x218], ax
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45f640
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.00404ae0
test edi, edi
je 0x45f669
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45f687
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
mov byte [ebp - 4], 0
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x45f6a6
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.004530b8
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004036d0
push 0x80004005
call fcn.004036d0
int3
Function at 0x45f7a0
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x51c91c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
js 0x45f934
push 0x208
lea eax, [ebp - 0x228]
push 0
push eax
call fcn.00469210
add esp, 0xc
lea eax, [ebp - 0x228]
push 0x104
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x228]
push eax
call edi
test esi, esi
jle 0x45f80f
lea eax, [ebp - 0x228]
push eax
call edi
sub esi, 1
jne 0x45f801
lea eax, [ebp - 0x63c]
mov dword [ebp - 0x63c], 0
push eax
call fcn.0041ebf0
mov ecx, dword [ebp - 0x63c]
mov edi, eax
add esp, 4
mov esi, edi
lea ecx, [ecx + ecx*4]
shl ecx, 4
add ecx, edi
cmp edi, ecx
je 0x45f934
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
nop dword [eax + eax]
push 0x208
lea eax, [ebp - 0x638]
push 0
push eax
call fcn.00469210
add esp, 0xc
lea eax, [ebp - 0x228]
push dword [esi + 8]
push eax
lea eax, [ebp - 0x638]
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esi]
test eax, eax
jne 0x45f95a
cmp ecx, 2
jne 0x45f91b
push 0x208
push eax
lea eax, [ebp - 0x430]
push eax
call fcn.00469210
add esp, 0xc
mov dword [ebp - 0x20], 0x61004d
lea eax, [ebp - 0x430]
mov dword [ebp - 0x1c], 0x740073
mov dword [ebp - 0x18], 0x720065
mov dword [ebp - 0x14], 0x440050
push 0
push 0x1a
push eax
push 0
mov dword [ebp - 0x10], 0x440046
mov dword [ebp - 0xc], 0x740061
mov dword [ebp - 8], 0x61
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x45f947
mov eax, dword [ebp - 0x63c]
add esi, 0x50
lea eax, [eax + eax*4]
shl eax, 4
add eax, edi
cmp esi, eax
jne 0x45f850
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004530b8
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004530b8
mov esp, ebp
pop ebp
ret
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004530b8
mov esp, ebp
pop ebp
ret

Function at 0x4637a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00463310
Function at 0x464a80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3df3
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x51c91c]
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, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x80], 0
mov dword [edi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0041ed70
mov eax, dword [ebp - 0x80]
add esp, 8
test eax, eax
je 0x464c93
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
call esi
test eax, eax
je 0x464c93
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x464c93
push eax
call esi
test eax, eax
je 0x464c93
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
push 0x201
push dword [ebp - 0x80]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 2
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004649d0
mov esi, dword [ebp - 0x90]
test eax, eax
jne 0x464c84
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.00469210
add esp, 0xc
mov dword [ebp - 0x78], 0x64
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x84]
push eax
push 0
push dword [ebp - 0x7c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x464c84
mov eax, dword [ebp - 0x84]
cmp eax, 1
je 0x464bab
cmp eax, 2
jne 0x464c84
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x464bcc
test cl, 1
jne 0x464c84
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x76], 0
je 0x464bd2
jmp 0x464c84
xor eax, eax
mov word [ebp - 0x74], ax
shr ecx, 1
cmp ecx, 0x2d
jne 0x464c84
lea ecx, [ebp - 0x78]
call fcn.00462d80
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x78]
call fcn.00462e50
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0
push eax
lea eax, [ebp - 0x20]
push 0x4f2224
push eax
call fcn.00432fe0
push 0x2a
push dword [ebp - 0x78]
call fcn.00463310
movzx eax, al
add esp, 0x14
cmp dword [ebp - 0x84], eax
jne 0x464c7c
lea edx, [ebp - 0x74]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x464c32
sub edx, ecx
lea eax, [ebp - 0x74]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.00462b10
push dword [0x51c960]
lea eax, [ebp - 0x74]
push dword [0x51c95c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x464c6d
mov dword [edi], 1
lea ecx, [ebp - 0x78]
call fcn.0041fab0
mov edi, 1
jmp 0x464c86
lea ecx, [ebp - 0x78]
call fcn.0041fab0
xor edi, edi
test esi, esi
je 0x464c95
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x464c95
xor edi, edi
push dword [ebp - 0x7c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x80]
call esi
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.004530b8
mov esp, ebp
pop ebp
ret
Function at 0x464cd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x464ce5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x464cf0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x467fc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x468031
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x467fff
cmp eax, 2
jne 0x46801b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x46802b
test ecx, ecx
je 0x468026
test cl, 1
jne 0x46801b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x46802b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4a3d3a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a3514

Function at 0x4a3d45
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a374f

Function at 0x4a4a35
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a47bc

Function at 0x4ad5bb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ad1c0

Function at 0x4ad5c6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ad341
Function at 0x4b4a40
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call fcn.004b5050
add esp, 8
test al, al
je 0x4b4a65
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4b4a65
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x4b5050
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x4b6500
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b652b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4b652b
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x1006a66
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x102b184]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push 0x20
push 2
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], 1
cmp eax, ebx
je 0x1006ad3
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1006aca
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
pop ebx
call fcn.010107a9
leave
ret 4

Function at 0x1006b9a
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1240
call fcn.01010c50
mov eax, dword [0x102b184]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x230], 0
lea eax, [ebp - 0x230]
push eax
push 0x1000
lea eax, [ebp - 0x1240]
push eax
mov dword [ebp - 0x240], ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x1006cfb
mov eax, dword [ebp - 0x230]
and dword [ebp - 0x228], 0
push ebx
shr eax, 2
push esi
push edi
mov dword [ebp - 0x23c], eax
test eax, eax
jbe 0x1006cf6
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x228]
cmp eax, 0x400
jae 0x1006cf6
cmp dword [ebp + eax*4 - 0x1240], 0
je 0x1006cde
push 5
pop ecx
push 0x1f4
lea eax, [ebp - 0x210]
push 0
mov esi, 0x10018cc
lea edi, [ebp - 0x224]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.010108d0
mov eax, dword [ebp - 0x228]
add esp, 0xc
push dword [ebp + eax*4 - 0x1240]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x22c], esi
test esi, esi
je 0x1006cde
and dword [ebp - 0x238], 0
lea eax, [ebp - 0x238]
push eax
push 4
lea eax, [ebp - 0x234]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
jne 0x1006c94
push esi
jmp 0x1006cdc
push 0x104
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x234]
push esi
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
je 0x1006c91
push 6
pop ecx
push 0xc
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x1c]
mov esi, 0x10018b4
lea edi, [ebp - 0x1c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.01010b9f
add esp, 0xc
test eax, eax
je 0x1006d07
push dword [ebp - 0x22c]
call ebx
inc dword [ebp - 0x228]
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp - 0x23c]
jb 0x1006c05
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010107a9
leave
ret
mov esi, dword [ebp - 0x240]
mov ecx, dword [esi + 4]
push 0x1001870
call fcn.0100efbf
mov eax, dword [ebp - 0x228]
push dword [ebp + eax*4 - 0x1240]
mov ecx, dword [esi + 4]
call fcn.0100f065
push dword [ebp - 0x22c]
call ebx
xor eax, eax
inc eax
jmp 0x1006cf8