joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5d3930
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x602119
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x70f200]
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, ecx
mov dword [ebp - 0x18], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x5d398c
xor esi, esi
jmp 0x5d3acc
test edi, edi
mov dword [ebp - 0x14], 0
lea esi, [ebp - 0x14]
xorps xmm0, xmm0
cmovne esi, edi
movlpd qword [ebp - 0x20], xmm0
push 0x94
mov dword [ebp - 0x24], esi
mov dword [esi], 0x94
call fcn.0041e7cf
mov edi, eax
mov dword [ebp - 0x1c], 0x94
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 1
push dword [esi]
call fcn.0041e7cf
push dword [esi]
mov ebx, eax
push 0
push edi
call fcn.00420090
mov esi, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
lea eax, [edi + 4]
add esp, 0x14
mov dword [edi], 9
push eax
push str.SeRestorePrivilege
push 0
call esi
lea eax, [edi + 0x10]
push eax
push str.SeBackupPrivilege
push 0
call esi
lea eax, [edi + 0x1c]
push eax
push str.SeDebugPrivilege
push 0
call esi
lea eax, [edi + 0x28]
push eax
push str.SeSecurityPrivilege
push 0
call esi
lea eax, [edi + 0x34]
push eax
push str.SeTakeOwnershipPrivilege
push 0
call esi
lea eax, [edi + 0x40]
push eax
push str.SeImpersonatePrivilege
push 0
call esi
lea eax, [edi + 0x4c]
push eax
push str.SeSystemProfilePrivilege
push 0
call esi
lea eax, [edi + 0x58]
push eax
push str.SeShutdownPrivilege
push 0
call esi
lea eax, [edi + 0x64]
push eax
push str.SeIncreaseQuotaPrivilege
push 0
call esi
lea eax, [edi + 0x70]
push eax
push str.SeAssignPrimaryTokenPrivilege
push 0
call esi
lea eax, [edi + 0x7c]
push eax
push str.SeTcbPrivilege
push 0
call esi
lea eax, [edi + 0x88]
push eax
push str.SeTrustedCredManAccessPrivilege
push 0
call esi
lea eax, [edi + 0xc]
mov ecx, 0xc
nop
mov dword [eax], 2
lea eax, [eax + 0xc]
sub ecx, 1
jne 0x5d3a90
mov eax, dword [ebp - 0x24]
push eax
push ebx
push dword [eax]
push edi
push ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x5d3ac1
push ebx
xor esi, esi
call fcn.0041e1c3
add esp, 4
jmp 0x5d3ac3
mov esi, ebx
push edi
call fcn.0041e1c3
add esp, 4
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xffffffff
je 0x5d3adf
test ecx, ecx
je 0x5d3adf
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.0041e1b5
mov esp, ebp
pop ebp
ret
Function at 0x5d5740
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60252f
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x70f200]
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, ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
call fcn.005dc5e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movq qword [ebp - 0x34], xmm0
call fcn.005d6ac0
push ecx
push 0x20019
push ebx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.005d6a30
mov ecx, edi
call fcn.005d6280
test eax, eax
je 0x5d5818
lea esi, [eax - 1]
test esi, esi
js 0x5d5818
nop dword [eax]
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
push esi
call fcn.005d6380
test al, al
je 0x5d5813
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x34]
lea ecx, [ebp - 0x1c]
push 0x624284
push ebx
call fcn.005dc200
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
mov ecx, edi
call fcn.005d5740
sub esi, 1
jns 0x5d57d0
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
push ebx
lea ecx, [ebp - 0x28]
movq qword [ebp - 0x28], xmm0
call fcn.005dc570
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.005dbf40
cmp byte [eax + 8], 0
je 0x5d5894
lea ecx, [ebp - 0x28]
call fcn.005dc3a0
inc eax
lea ecx, [ebp - 0x1c]
push eax
push 1
push ebx
call fcn.005dc260
mov ecx, eax
call fcn.005dadc0
push ecx
push 0x20019
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
mov ecx, edi
call fcn.005d6a30
test al, al
je 0x5d5894
lea ecx, [ebp - 0x28]
call fcn.005dc190
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
sete bl
jmp 0x5d5896
xor bl, bl
lea ecx, [ebp - 0x28]
call fcn.005dc430
lea ecx, [ebp - 0x34]
call fcn.005d6ab0
lea ecx, [ebp - 0x1c]
call fcn.005dc430
mov al, bl
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.0041e1b5
mov esp, ebp
pop ebp
ret 4
Function at 0x5d5f20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x70f200]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, ecx
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [eax]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
push edi
test esi, esi
jne 0x5d5f63
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
test ebx, ebx
je 0x5d5f7d
cmp eax, 1
jae 0x5d5f7d
mov ecx, ebx
call fcn.005d53c0
mov ecx, dword [esp + 0x14]
cmp edx, 7
jne 0x5d60d1
cmp eax, 2
jbe 0x5d60d1
mov ecx, ebx
call fcn.005d8c40
mov esi, eax
mov dword [esp + 0xc], eax
cmp esi, 1
jle 0x5d5fba
lea eax, [ebx - 2]
lea eax, [eax + esi*2]
cmp word [eax], 0xa
jne 0x5d5fb6
dec esi
sub eax, 2
cmp esi, 1
jg 0x5d5fa7
mov dword [esp + 0xc], esi
lea eax, [esi + 2]
xorps xmm0, xmm0
push eax
lea ecx, [esp + 0x20]
movlpd qword [esp + 0x20], xmm0
call fcn.00403510
mov edi, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x10], edi
test esi, esi
jle 0x5d6087
cmp esi, 8
jb 0x5d6058
lea eax, [ebx - 2]
lea eax, [eax + esi*2]
lea edx, [edi - 2]
lea edx, [edx + esi*2]
cmp edi, eax
ja 0x5d5ffb
cmp edx, ebx
jae 0x5d6058
mov eax, esi
and eax, 0x80000007
jns 0x5d6009
dec eax
or eax, 0xfffffff8
inc eax
movaps xmm4, xmmword [str._n_n_n_n_n_n_n_n]
mov edx, esi
sub edx, eax
mov esi, ebx
mov eax, edi
mov dword [esp + 0x1c], edx
sub esi, eax
nop
movups xmm3, xmmword [esi + eax]
add ecx, 8
lea eax, [eax + 0x10]
mov edx, ecx
movaps xmm2, xmm3
pcmpeqw xmm2, xmm4
movaps xmm1, xmm2
movups xmm0, xmmword [eax - 0x10]
andnps xmm1, xmm0
andps xmm1, xmm2
andnps xmm2, xmm3
orps xmm1, xmm2
movups xmmword [eax - 0x10], xmm1
cmp ecx, dword [esp + 0x1c]
jl 0x5d6020
mov esi, dword [esp + 0xc]
cmp edx, esi
jge 0x5d6087
sub ebx, dword [esp + 0x10]
lea edi, [edi + ecx*2]
mov dword [esp + 0x1c], esi
sub esi, ecx
movzx ecx, word [ebx + edi]
lea edi, [edi + 2]
xor edx, edx
mov eax, ecx
cmp ecx, 0xa
cmovne edx, eax
mov word [edi - 2], dx
sub esi, 1
jne 0x5d6065
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
xor eax, eax
mov dword [edi + esi*2], eax
lea eax, [esi*2 + 4]
push eax
mov eax, dword [esp + 0x1c]
push edi
push 7
push 0
push dword [esp + 0x24]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
test edi, edi
je 0x5d60bb
push edi
call fcn.0041e1c3
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 0x10
push eax
push ebx
push edx
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x24]
test eax, eax
pop edi
pop esi
sete al
pop ebx
xor ecx, esp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5d62e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx], 0
mov edx, dword [ebp + 0xc]
jne 0x5d630a
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edx]
push esi
xor esi, esi
mov dword [ebp - 8], 0x4010
mov word [eax], si
lea eax, [edx + 8]
push eax
push 0
lea esi, [edx + 4]
mov dword [eax], 0
push esi
push 0
lea eax, [ebp - 8]
mov dword [esi], 0xffffffff
push eax
push dword [edx]
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x5d6359
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor al, al
mov dword [esi], 0xffffffff
xor ecx, ebp
pop esi
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 8

Function at 0x5d6380
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x5d63ec
mov eax, dword [esi]
xor edx, edx
push edx
push edx
push edx
push edx
mov dword [ebp - 8], 0x4010
mov word [eax], dx
lea eax, [ebp - 8]
push eax
push dword [esi]
mov dword [esi + 4], 0xffffffff
push dword [ebp + 8]
mov dword [esi + 8], edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x5d63ec
mov eax, dword [esi]
cmp word [eax], 0
je 0x5d63ec
mov dword [esi + 4], 0xfffffffe
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 8
Function at 0x5d6740
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x14], esi
test edi, edi
je 0x5d6865
test eax, eax
mov ebx, 0x62439c
mov ecx, edi
cmovne ebx, eax
call fcn.005dc400
mov eax, dword [esi]
test eax, eax
je 0x5d6865
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], 0
push ecx
push 0
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], 0
push ecx
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5d6865
mov eax, dword [ebp - 0xc]
cmp eax, 1
je 0x5d67c1
cmp eax, 2
je 0x5d67c1
cmp eax, 7
jne 0x5d6865
mov esi, dword [ebp - 8]
mov ecx, edi
add esi, 4
push 0
mov dword [ebp - 8], esi
shr esi, 1
push 0
push esi
mov dword [ebp - 0x10], esi
call fcn.005db9a0
dec esi
mov ecx, edi
push esi
call fcn.005dc120
xor ecx, ecx
mov word [eax], cx
mov ecx, edi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffffe
push eax
call fcn.005dc120
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 8]
push eax
mov ecx, edi
call fcn.005dc190
push eax
mov eax, dword [ebp - 0x14]
push 0
push 0
push ebx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5d6865
cmp dword [ebp - 0xc], 7
jne 0x5d6850
cmp dword [ebp - 0x10], 3
jbe 0x5d6850
mov ecx, edi
call fcn.005dc190
xor ecx, ecx
test esi, esi
je 0x5d6850
lea edi, [ecx + 0xa]
xor edx, edx
cmp dx, word [eax + ecx*2]
jne 0x5d684b
cmp word [eax + ecx*2 + 2], dx
je 0x5d684b
mov word [eax + ecx*2], di
inc ecx
cmp ecx, esi
jb 0x5d6838
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 8
Function at 0x5d68b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, ecx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [eax]
push edi
lea ebx, [esi + 8]
lea edi, [esi + 4]
test eax, eax
je 0x5d69b3
push edi
push 0
push ebx
push 0
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5d69b3
mov eax, dword [edi]
test eax, eax
je 0x5d69a8
add eax, 4
mov dword [ebp + 0xc], edi
cmp dword [esi + 0xc], eax
jae 0x5d6927
mov ecx, dword [esi]
test ecx, ecx
je 0x5d6914
push ecx
call fcn.0041e1c3
lea eax, [esi + 4]
add esp, 4
mov dword [ebp + 0xc], eax
lea ebx, [esi + 8]
mov eax, dword [edi]
add eax, 4
push eax
mov dword [esi + 0xc], eax
call fcn.0041e7cf
add esp, 4
mov dword [esi], eax
mov ecx, dword [edi]
mov eax, dword [esi]
mov edi, dword [ebp + 0xc]
push edi
mov byte [ecx + eax], 0
mov ecx, dword [edi]
mov eax, dword [esi]
mov byte [ecx + eax + 1], 0
mov ecx, dword [edi]
mov eax, dword [esi]
mov byte [ecx + eax + 2], 0
mov eax, dword [esi]
mov ecx, dword [edi]
mov byte [ecx + eax + 3], 0
push dword [esi]
mov eax, dword [ebp - 4]
push ebx
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebx], 7
jne 0x5d69a8
mov edx, dword [edi]
cmp edx, 4
jbe 0x5d69a8
mov esi, dword [esi]
mov eax, edx
shr eax, 1
xor ecx, ecx
sub eax, 1
je 0x5d699f
lea ebx, [ecx + 0xa]
nop dword [eax]
xor eax, eax
cmp ax, word [esi + ecx*2]
jne 0x5d6993
cmp word [esi + ecx*2 + 2], ax
je 0x5d6993
mov word [esi + ecx*2], bx
mov edx, dword [edi]
inc ecx
mov eax, edx
shr eax, 1
dec eax
cmp ecx, eax
jb 0x5d6980
shr edx, 1
xor eax, eax
mov word [esi + edx*2 - 2], ax
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [esi + 0xc], 1
mov dword [ebx], 0xffffffff
mov dword [edi], 0
jbe 0x5d69cc
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5d81e0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6028f9
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x70f200]
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, ecx
mov edi, dword [ebp + 8]
mov dword [esi], 0
test edi, edi
je 0x5d82ef
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push edi
lea ecx, [ebp - 0x20]
movq qword [ebp - 0x20], xmm0
call fcn.005dc570
push 4
push 1
push 1
push 1
push str.S_1_
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.005daa70
test eax, eax
je 0x5d8264
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
jmp 0x5d82e7
lea eax, [ebp - 0x14]
mov dword [ebp - 0x34], 0
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push 0
lea eax, [ebp - 0x34]
push eax
push 0
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x5d82e7
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
xorps xmm0, xmm0
mov dword [esi], eax
lea ecx, [ebp - 0x2c]
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], 0
call fcn.005dc5e0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
call fcn.005db9a0
push eax
lea eax, [ebp - 0x34]
push eax
push dword [esi]
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea ecx, [ebp - 0x2c]
call fcn.005dc430
lea ecx, [ebp - 0x20]
call fcn.005dc430
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.0041e1b5
mov esp, ebp
pop ebp
ret 4

Function at 0x5db1d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x602ac2
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
movlpd qword [ebp - 0x1c], xmm0
call fcn.005dc3e0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
push edx
push esi
push 0
push 0
push esi
mov dword [ebp - 4], 0
call fcn.005db9a0
push eax
push edi
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [ebp - 0x24]
test eax, eax
mov eax, dword [ebp - 0x1c]
setne cl
mov byte [esi + 8], cl
test eax, eax
je 0x5db261
push eax
call fcn.0041e1c3
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 0x14
Function at 0x5dbc20
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x5dbc8c
mov eax, dword [ebp + 8]
test eax, eax
je 0x5dbc41
push 0
push 0
push eax
push str._UserProfile_
call fcn.005da270
push ebx
push edi
push 0x2000
call fcn.0041e7cf
add esp, 4
mov edi, eax
push 0x1000
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test ebx, ebx
jne 0x5dbc78
push edi
call fcn.0041e1c3
add esp, 4
mov eax, esi
pop edi
pop ebx
pop esi
pop ebp
ret 4
push dword [esi]
call fcn.0041e1c3
add esp, 4
mov dword [esi], edi
lea eax, [ebx - 1]
mov dword [esi + 4], eax
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x5dddf0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x602d18
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
cmp byte [ebp + 8], 0
push 0
je 0x5ddec4
push 0x20019
push str.HKLM64SOFTWAREMicrosoftWindowsCurrentVersion
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.005d6a80
push esi
push str.ProgramFilesDir
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.005d6740
mov ecx, esi
call fcn.005dbeb0
test al, al
je 0x5dde6f
push 1
push str.C:Program_Files
call fcn.005dc260
push 0
push 0
push 0x104
mov ecx, edi
call fcn.005db9a0
push eax
push 1
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x5ddeba
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.__x86_
mov ecx, esi
call fcn.005dc190
push eax
mov ecx, edi
call fcn.005dc200
lea ecx, [ebp - 0x14]
call fcn.005d69e0
jmp 0x5ddef0
push 0
push 0x104
call fcn.005db9a0
push eax
push 1
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 1
mov ecx, esi
call fcn.005dc190
push eax
mov ecx, edi
call fcn.005dc260
mov al, 1
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.0041e1b5
mov esp, ebp
pop ebp
ret 4
Function at 0x5e0e70
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x70f200]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 7
mov edi, ecx
mov dword [esp + 0x24], 0
push 0
push edi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
jne 0x5e0ebd
or esi, 0xffffffff
jmp 0x5e0ec2
cmp esi, 0xffffffff
jne 0x5e0eee
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x5e0efa
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
push ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x5e0efa
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
cmp esi, 0xffffffff
je 0x5e0f12
test esi, esi
je 0x5e0f12
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x26c]
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
xor ecx, esp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret
Function at 0x5e1200
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5e1218
test al, 0x10
je 0x5e1218
shr eax, 0xa
not al
and al, 1
ret
xor al, al
ret

Function at 0x5e1650
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x602eee
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x70f200]
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, ecx
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push esi
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x1c], xmm0
call fcn.005dc570
push 4
push 1
push 1
push 1
push 0x624390
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.005daa70
test eax, eax
je 0x5e16c1
push 4
lea ecx, [ebp - 0x1c]
call fcn.005dad50
lea ecx, [ebp - 0x1c]
call fcn.005dc3a0
mov edi, eax
test edi, edi
jne 0x5e16d6
xor bl, bl
jmp 0x5e176a
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5e16fc
push eax
push 1
push 1
push eax
push 0x624384
lea ecx, [ebp - 0x1c]
call fcn.005daa70
test eax, eax
jne 0x5e16fc
mov bl, 1
jmp 0x5e176a
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
xorps xmm0, xmm0
mov dword [ebp - 0x22], 0
push 0
lea ecx, [ebp - 0x1c]
movlpd qword [ebp - 0x2a], xmm0
mov dword [ebp - 0x3c], 0
lea esi, [edi + 1]
mov dword [ebp - 0x38], 3
call fcn.005dc190
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.005db9a0
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x34], eax
call fcn.005dc440
xor ecx, ecx
mov word [eax], cx
mov eax, 0x454
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x30], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete bl
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x1c]
call fcn.005dc430
mov al, bl
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.0041e1b5
mov esp, ebp
pop ebp
ret 8
Function at 0x5e2950
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x28], eax
movzx eax, word [ebp + 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x38], 0
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
mov dword [ebp - 8], 0
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x5e29c6
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x5e29f3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 0xc