joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42dc84
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4424f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, 0x80004005
cmp dword [edi], 0
je 0x42de64
push dword [edi]
lea eax, [ebp - 0x20c]
push 0x4078e8
push 0x104
push eax
call fcn.0040c0e1
add esp, 0x10
test eax, eax
js 0x42de64
push ebx
xor ebx, ebx
lea eax, [ebp - 0x210]
push ebx
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x42dd35
push ebx
lea eax, [ebp - 0x210]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0x210]
mov dword [ebp - 0x210], eax
jmp 0x42dd3b
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x42de63
push dword [edi + 0xc]
mov edx, 0x407940
mov ecx, eax
call fcn.0042d679
push dword [edi + 0x64]
mov ecx, dword [ebp - 0x210]
mov edx, 0x40795c
call fcn.0042d679
push dword [edi + 0x68]
mov ecx, dword [ebp - 0x210]
mov edx, 0x407974
call fcn.0042d679
push dword [edi + 0x5c]
mov ecx, dword [ebp - 0x210]
mov edx, 0x407994
call fcn.0042d679
push dword [edi + 0x54]
mov ecx, dword [ebp - 0x210]
mov edx, 0x4079b0
call fcn.0042d679
push dword [edi + 0x50]
mov ecx, dword [ebp - 0x210]
mov edx, 0x4079cc
call fcn.0042d679
push dword [edi + 0x58]
mov ecx, dword [ebp - 0x210]
mov edx, 0x4079ec
call fcn.0042d679
push dword [edi + 0x6c]
mov ecx, dword [ebp - 0x210]
mov esi, 0x407a08
mov edx, esi
call fcn.0042d679
push dword [edi + 0x70]
mov ecx, dword [ebp - 0x210]
mov edx, esi
call fcn.0042d679
push dword [edi + 0x74]
mov ecx, dword [ebp - 0x210]
mov edx, 0x407a28
call fcn.0042d679
push dword [edi + 0x78]
mov ecx, dword [ebp - 0x210]
mov esi, 0x407a48
mov edx, esi
call fcn.0042d679
push dword [edi + 0x7c]
mov ecx, dword [ebp - 0x210]
mov edx, esi
call fcn.0042d679
push dword [edi + 0x80]
mov ecx, dword [ebp - 0x210]
mov edx, 0x407a68
call fcn.0042d679
add edi, 0x4c
cmp dword [edi], ebx
je 0x42de55
push 4
push edi
push 4
push ebx
push 0x407a88
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
mov esi, ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00441130
leave
ret
Function at 0x42deda
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4424f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi], edi
je 0x42e031
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], edi
push eax
push 2
push edi
push 0x401690
mov ebx, SysReAllocStringLen
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42df55
mov ecx, dword [esi]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x42df28
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push dword [esi]
push 1
push edi
push 0x401f8c
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x214]
push eax
push 0x20006
push edi
push 0x407698
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42dfd2
push 0x407abc
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x407ad8
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esi]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x42df99
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push dword [esi]
push 1
push edi
push 0x407ad8
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esi]
lea eax, [ebp - 0x210]
push 0x4078e8
push 0x104
push eax
call fcn.0040c0e1
add esp, 0x10
test eax, eax
js 0x42e020
push edi
lea eax, [ebp - 0x214]
push eax
push edi
push 0x20006
push edi
push edi
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x42e020
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esi]
push 0x407afc
push 3
call fcn.0041e83a
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441130
leave
ret
Function at 0x431485
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x91c
mov eax, dword [0x4424f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x918], eax
mov ecx, dword [ebp + 0xc]
mov esi, edx
mov dword [ebp - 0x914], ecx
cmp dword [edi + 0x34], edx
je 0x4314c4
mov eax, 0x800704c7
jmp 0x431620
test eax, eax
je 0x431605
test ecx, ecx
je 0x431605
lea ebx, [edi + 0x2c]
cmp dword [ebx], edx
jne 0x43151b
cmp dword [edi + 0x38], edx
je 0x4314f8
call fcn.0042252e
xor edx, edx
test eax, eax
je 0x4314f8
mov ecx, ebx
call fcn.0043b8ab
mov esi, eax
xor edx, edx
jmp 0x4314fd
mov esi, 0xc00d0bca
cmp dword [ebx], edx
jne 0x431515
test esi, esi
js 0x43150a
mov esi, 0x80004005
push esi
push 0x408190
jmp 0x431614
mov ecx, dword [ebp - 0x914]
push edx
push edx
push 0x105
lea eax, [ebp - 0x110]
push eax
push 0xffffffffffffffff
push ecx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
lea eax, [ebp - 0x910]
push ecx
push ecx
push 0x800
push eax
push 0xffffffffffffffff
push dword [ebp - 0x918]
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x64
pop ecx
mov dword [edi + 0x28], eax
mov dword [edi + 0x30], 1
call fcn.0041dc25
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
mov dword [edi + 0x24], eax
cmp dword [edi + 0x28], ecx
je 0x43160a
mov eax, dword [ebx]
push ecx
push ecx
push ecx
mov esi, dword [eax]
lea ecx, [ebp - 0x110]
push 0x8000080
push 2
push ecx
lea ecx, [ebp - 0x910]
push ecx
mov ecx, dword [esi + 0x14]
push eax
call dword [0x445628]
call dword [esi + 0x14]
mov esi, eax
test esi, esi
js 0x4315e0
jmp 0x4315d9
push 0x258
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4315e0
cmp dword [edi + 0x30], 0
je 0x4315e0
mov ecx, edi
call fcn.00431088
mov esi, eax
mov eax, dword [edi + 0x28]
test eax, eax
jne 0x4315b7
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4315fa
test al, 0x10
jne 0x4315fa
test esi, esi
jns 0x43161e
test esi, esi
js 0x43160e
mov esi, 0x80070002
jmp 0x43160e
mov esi, 0x80070057
test esi, esi
jns 0x43161e
push esi
push 0x4081b8
push 4
call fcn.0041e83a
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441130
leave
ret 8
Function at 0x43288a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2e4
mov eax, dword [0x4424f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x2d8]
xor ebx, ebx
push eax
push 3
push ebx
push 0x401690
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov dword [ebp - 0x2d8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4329f1
mov ecx, dword [ebp - 0x2d8]
mov edx, 0x401f8c
push edi
push dword [esi + 0x10]
call fcn.0042d679
cmp dword [esi + 0x18], ebx
jne 0x432941
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4329e4
mov edx, 0x4015d0
mov eax, ecx
mov di, word [eax]
cmp di, word [edx]
jne 0x43291e
test di, di
je 0x43291a
mov di, word [eax + 2]
cmp di, word [edx + 2]
jne 0x43291e
add eax, 4
add edx, 4
test di, di
jne 0x4328f8
mov eax, ebx
jmp 0x432923
sbb eax, eax
or eax, 1
test eax, eax
je 0x4329e4
push ecx
mov ecx, dword [ebp - 0x2d8]
mov edx, 0x4080dc
call fcn.0042d679
jmp 0x4329e4
lea eax, [ebp - 0x2e4]
mov dword [ebp - 0x2e4], 0xc8
push eax
lea eax, [ebp - 0xcc]
xor edi, edi
push eax
lea eax, [ebp - 0x2dc]
inc edi
push eax
push ebx
push 0x4080dc
push dword [ebp - 0x2d8]
mov dword [ebp - 0x2dc], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4329e4
cmp dword [ebp - 0x2dc], edi
jne 0x4329e4
lea eax, [ebp - 0xcc]
push eax
push 0x4078e8
lea eax, [ebp - 0x2d4]
push 0x208
push eax
call fcn.0040c125
add esp, 0x10
test eax, eax
js 0x4329e4
push ebx
lea eax, [ebp - 0x2e0]
mov dword [ebp - 0x2e0], ebx
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2d4]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4329e4
push dword [ebp - 0x2e0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x2d8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
push ebx
lea eax, [ebp - 0x2d8]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push 0x4021e0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x432a32
push dword [esi + 0x20]
mov ecx, dword [ebp - 0x2d8]
mov edx, 0x402230
call fcn.0042d679
push dword [ebp - 0x2d8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00441130
leave
ret
Function at 0x432def
Capabilities:
Query service status
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4424f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
xor ebx, ebx
push esi
push 0x408af0
push 4
inc ebx
call fcn.0041e83a
add esp, 0xc
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x432e54
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x432e3c
push 0x57
pop eax
push eax
push esi
push 0x408b10
push 2
call fcn.0041e83a
add esp, 0x10
xor eax, eax
jmp 0x432fbe
push 0xf01ff
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
jne 0x432e93
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x432e77
push 0x57
pop eax
push eax
push esi
push 0x408b44
push 2
call fcn.0041e83a
add esp, 0x10
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x432e4d
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x432edb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x432eb1
push 0x57
pop edi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, 0x420
je 0x432fbc
push edi
push esi
push 0x408b7c
jmp 0x432e43
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x20]
push eax
push edi
mov dword [ebp - 0x2c], 0x927c0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x432f00
push esi
push 0x408bb4
jmp 0x432f81
mov ecx, dword [ebp - 0x1c]
cmp ecx, 4
je 0x432f8d
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
add eax, 0x7530
mov dword [ebp - 0x28], eax
cmp eax, dword [ebp - 0x2c]
jle 0x432f28
mov dword [ebp - 0x2c], eax
test eax, eax
jle 0x432f69
cmp ecx, 4
je 0x432f66
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x432fcf
mov eax, dword [ebp - 0x28]
mov ecx, 0x1f4
add dword [ebp - 0x24], ecx
sub eax, ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
test eax, eax
jg 0x432f2c
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x2c]
jg 0x432f7b
cmp ecx, 4
je 0x432f8d
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0xc]
jne 0x432f0f
push esi
push 0x408bfc
push 2
call fcn.0041e83a
add esp, 0xc
xor ebx, ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0x408ab0
test ebx, ebx
jne 0x432fab
mov eax, 0x408ac4
push eax
push esi
push 0x408c14
push 4
call fcn.0041e83a
add esp, 0x10
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441130
leave
ret 4
push esi
push 0x408bd8
jmp 0x432f81
Function at 0x4336e4
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4424f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push esi
push 0x408dd0
push 4
mov dword [ebp - 0x24], esi
inc edi
mov dword [ebp - 0x30], eax
call fcn.0041e83a
add esp, 0xc
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x43373a
xor edi, edi
jmp 0x433806
push 0xf01ff
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x433754
xor edi, edi
jmp 0x4337e9
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x43374d
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
push 2
push 0x40
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x4337e6
lea eax, [ebp - 0x28]
push eax
push edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x4337db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4337db
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x28]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x4337e6
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x28]
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x4337c6
xor edi, edi
jmp 0x4337db
mov ecx, dword [ebp - 0x30]
mov eax, dword [esi + 4]
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
neg eax
sbb eax, eax
and esi, eax
test esi, esi
je 0x4337e6
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x24]
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x4337fd
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0x408ab0
test edi, edi
jne 0x43380b
mov eax, 0x408ac4
push eax
push esi
push 0x408dec
push 4
call fcn.0041e83a
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00441130
leave
ret 8
Function at 0x433b4e
Capabilities:
Get session user name
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
push 0xffffffffffffffff
mov eax, ecx
xor esi, esi
push 0x4015d0
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], esi
call fcn.0043f4a6
mov edi, eax
test edi, edi
js 0x433d0e
lea ecx, [ebp - 0x3c]
call fcn.0043f3bf
lea ecx, [ebp - 0x30]
mov dword [ebp - 0xc], 0x7fff
call fcn.0043f3bf
push dword [ebp - 0xc]
lea ecx, [ebp - 0x30]
call fcn.0043f463
mov edi, eax
test edi, edi
jns 0x433bb5
lea ecx, [ebp - 0x30]
call fcn.0043f743
lea ecx, [ebp - 0x3c]
call fcn.0043f743
jmp 0x433d0e
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x30]
push 2
call dword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
jne 0x433be6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x433bd9
push 0x57
pop edi
test edi, edi
jle 0x433ba0
movzx edi, di
or edi, 0x80070000
jmp 0x433ba0
push ebx
push 0x44
pop edi
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x433c13
lea ecx, [ebp - 0x30]
mov edi, 0x8007000e
call fcn.0043f743
lea ecx, [ebp - 0x3c]
call fcn.0043f743
jmp 0x433d0d
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], edi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 0x30]
push esi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
jne 0x433c5a
cmp edi, 0x7a
je 0x433c5a
test edi, edi
jle 0x433cf6
movzx edi, di
or edi, 0x80070000
jmp 0x433cf6
lea ecx, [ebp - 0x24]
call fcn.0043f3bf
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x24]
inc eax
push eax
call fcn.0043f463
mov edi, eax
test edi, edi
js 0x433cee
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x24]
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 0x30]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
jne 0x433cad
test edi, edi
jle 0x433cee
movzx edi, di
or edi, 0x80070000
jmp 0x433cee
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
jne 0x433ccd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x433ca0
push 0x57
pop edi
jmp 0x433c9e
push 0xffffffffffffffff
push dword [ebp - 4]
lea ecx, [ebp - 0x3c]
call fcn.0043f4a6
mov edi, eax
test edi, edi
js 0x433cee
push ecx
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x18]
call fcn.0043f66e
mov edi, eax
lea ecx, [ebp - 0x24]
call fcn.0043f743
lea ecx, [ebp - 0x30]
call fcn.0043f743
lea ecx, [ebp - 0x3c]
call fcn.0043f743
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
cmp dword [ebp - 4], 0
je 0x433d1d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x433d23
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x101
push esi
push 0x4017d0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x433d8d
push edi
push 4
pop edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], edi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], edi
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0x409160
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x433d80
cmp dword [ebp - 0xc], edi
je 0x433d83
mov dword [ebp - 8], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, dword [ebp - 8]
pop esi
leave
ret

Function at 0x433d93
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4424f4]
xor eax, ebp
mov dword [ebp - 4], eax
xor edx, edx
lea ecx, [ebp - 0x20c]
inc edx
call fcn.0041fb21
test eax, eax
je 0x433df9
push 0x40918c
mov edx, 0x208
lea ecx, [ebp - 0x20c]
call fcn.0040c0a9
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x433df9
test al, 0x10
jne 0x433df9
xor ecx, ecx
lea eax, [ebp - 0x20c]
push ecx
push ecx
push ecx
push eax
push ecx
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00441130
leave

Function at 0x433e05
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4424f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor edx, edx
lea ecx, [ebp - 0x20c]
xor esi, esi
inc edx
inc esi
call fcn.0041fb21
test eax, eax
je 0x433ec1
push edi
xor edi, edi
lea ecx, [ebp - 0x20c]
push 0x40918c
mov edx, 0x208
mov dword [ebp - 0x210], edi
call fcn.0040c0a9
lea eax, [ebp - 0x210]
push eax
push 0x20106
push edi
push 0x403190
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x210], edi
je 0x433ec0
lea ecx, [ebp - 0x20c]
mov esi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x433e82
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push edi
push 0x4091a8
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00441130
leave
ret
Function at 0x434210
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4424f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x21c], edx
xor ebx, ebx
mov dword [ebp - 0x210], ecx
xor eax, eax
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x218]
mov dword [ebp - 0x220], 0x104
push edx
push edi
lea edx, [ebp - 0x224]
mov dword [ebp - 0x218], ebx
push edx
push 0
lea edx, [ebp - 0x220]
push edx
lea edx, [ebp - 0x20c]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
cmp esi, 0x103
je 0x434335
cmp esi, 0xea
jne 0x43429a
test edi, edi
je 0x43429e
push edi
call fcn.00440db7
pop ecx
xor edi, edi
test edi, edi
jne 0x4342c0
mov ebx, dword [ebp - 0x218]
shr ebx, 4
inc ebx
shl ebx, 4
push ebx
call fcn.00440dea
mov edi, eax
pop ecx
test edi, edi
je 0x434303
mov eax, dword [ebp - 0x214]
jmp 0x4342f8
test esi, esi
jne 0x4342e7
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push edi
push dword [ebp - 0x224]
push esi
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 0x214]
inc eax
mov dword [ebp - 0x214], eax
test esi, esi
jne 0x434306
mov ecx, dword [ebp - 0x210]
jmp 0x434240
push 0xe
pop esi
xor ebx, ebx
test edi, edi
je 0x434313
push edi
call fcn.00440db7
pop ecx
test esi, esi
jne 0x4343f8
mov edi, dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov esi, ebx
push ebx
jmp 0x4343dd
xor ebx, ebx
mov esi, ebx
jmp 0x434308
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], ebx
push eax
push 0x109
push ebx
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43439f
push ebx
lea eax, [ebp - 0x214]
push eax
push ebx
push 0x20106
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x43439f
mov edx, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x210]
call fcn.00434210
cmp dword [ebp - 0x210], 0
je 0x4343ba
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x210], ebx
cmp dword [ebp - 0x214], 0
je 0x4343cf
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea eax, [ebp - 0x20c]
inc esi
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x43433b
lea esi, [eax - 0x103]
neg esi
sbb esi, esi
and esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441130
leave