joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48870b
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x403b5c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
mov dword [ebp - 0x20], ecx
mov word [ebp - 0x28], ax
je 0x488739
xor edx, edx
mov dword [ebp - 0x24], 0x20
jmp 0x48876c
and dword [ebp - 0x24], 0
and dword [ebp - 0x18], 0
push 2
pop edx
push 6
mov word [ebp - 0x1c], ax
pop eax
push 0xd
mov word [ebp - 0x1a], ax
pop eax
mov word [ebp - 0x10], ax
xor eax, eax
push 3
mov word [ebp - 0xe], ax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], 0x20
mov dword [ebp - 8], ecx
pop eax
push 0xc
push eax
lea eax, [ebp - 0x28]
push eax
mov word [ebp - 0x26], dx
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.0043f894
leave
ret 8

Function at 0x48b9ee
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x4a51bd
call fcn.0043fd29
mov esi, dword [ebp + 8]
test esi, esi
je 0x48ba91
mov edi, dword [ebp + 0xc]
test edi, edi
jle 0x48ba91
xor eax, eax
mov word [esi], ax
cmp edi, 0x104
jl 0x48ba91
push edi
push esi
push dword [ebp + 0x10]
xor ebx, ebx
mov ecx, 0x4f2eb0
mov dword [ebp - 4], ebx
call fcn.0048bb02
test eax, eax
je 0x48ba96
cmp eax, 2
jne 0x48ba41
mov eax, 0x80004005
jmp 0x48ba96
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
cmp dword [ebp + 0x14], ebx
je 0x48ba52
or eax, 0x8000
push esi
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, eax
test ebx, ebx
jns 0x48ba67
mov eax, ebx
jmp 0x48ba96
push edi
push esi
call fcn.00444caa
push esi
push dword [ebp + 0x10]
mov ecx, 0x4f2eb0
mov dword [ebp - 4], 2
call fcn.0048bab7
jmp 0x48ba63
mov eax, 0x80070057
call fcn.0043fdce
ret
Function at 0x4908c5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x403b5c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
xor esi, esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
push esi
mov word [edi], ax
push 0x2b
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x490937
cmp word [ebp - 0x20c], si
je 0x490937
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push edi
push 0x439dc0
push eax
call fcn.004907d2
mov esi, eax
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043f894
leave
ret 8

Function at 0x490981
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
push edi
push 0x16
pop edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
and dword [ebp - 8], esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x490a1c
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x490a1c
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x18]
ja 0x490a1c
add eax, eax
push eax
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x490a1c
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x490a1c
mov eax, dword [ebp - 8]
shr eax, 1
xor ecx, ecx
mov word [esi + eax*2 - 2], cx
push dword [ebp - 8]
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call dword [sym.imp.MSVCR100.dll_wcsncpy_s]
add esp, 0x10
mov edi, eax
cmp dword [ebp - 4], 0
je 0x490a2f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 4], 0
test esi, esi
je 0x490a3b
push esi
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
mov eax, edi
pop edi
pop esi
leave
ret 0x14
Function at 0x490a43
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [0x403b5c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x320]
push eax
mov dword [ebp - 0x320], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x31c], 6
jne 0x490b08
cmp dword [ebp - 0x318], 0
jne 0x490af8
push esi
push edi
mov edi, 0x104
push edi
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x40f200
push 0x439de8
push 0x80000002
call fcn.00490981
mov ecx, 0x439e44
lea eax, [ebp - 0x20c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x490ae8
test dx, dx
je 0x490aed
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x490ae8
add eax, 4
add ecx, 4
test dx, dx
jne 0x490ac4
jmp 0x490aed
sbb esi, esi
sbb esi, 0xffffffff
xor eax, eax
test esi, esi
pop edi
setne al
pop esi
jmp 0x490b11
cmp dword [ebp - 0x318], 2
jae 0x490b0e
cmp dword [ebp - 0x31c], 6
ja 0x490b0e
xor eax, eax
jmp 0x490b11
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043f894
leave
ret
Function at 0x49144d
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov edi, esi
cmp dword [ebp + 0x10], esi
je 0x4915a6
cmp dword [ebp + 0xc], esi
je 0x4915a6
push 0xf0000000
push 0x18
push esi
push esi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x49153f
lea eax, [ebp - 4]
push eax
push 1
push 0x6610
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
je 0x49153f
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x49153f
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push 1
push dword [ebp - 0xc]
mov dword [ebp - 0x10], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
je 0x49153f
mov eax, dword [ebp - 0x10]
lea esi, [eax + 0x14]
cmp esi, eax
ja 0x4914f6
mov esi, 0x80070216
jmp 0x4915ab
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x49150f
mov esi, 0x8007000e
jmp 0x4915ab
xor ecx, ecx
inc ecx
mov dword [edi], esi
mov dword [edi + 4], ecx
mov dword [edi + 8], 0x10000
mov eax, dword [ebp - 0x10]
mov dword [edi + 0xc], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0x10]
push eax
push 0
push ecx
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
jne 0x49154f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0048ee11
mov esi, eax
jmp 0x4915ab
mov eax, dword [0x4f2f50]
test eax, eax
jne 0x49155f
mov esi, 0x800701e7
jmp 0x4915ab
push edi
push esi
push dword [ebp + 8]
call eax
mov esi, eax
test esi, esi
js 0x4915ab
cmp dword [ebx + 4], 0
je 0x49157f
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
and dword [ebx + 4], 0
mov eax, dword [ebp - 4]
and dword [ebp - 4], 0
cmp dword [ebx], 0
mov dword [ebx + 4], eax
je 0x49159b
push 0
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
and dword [ebx], 0
mov eax, dword [ebp - 8]
and dword [ebp - 8], 0
mov dword [ebx], eax
jmp 0x4915ab
mov esi, 0x80070057
cmp dword [ebp - 0xc], 0
je 0x4915ba
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 4], 0
je 0x4915c9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 8], 0
je 0x4915da
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test edi, edi
je 0x4915e5
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x492a72
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x439d08
push 0x80000002
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, 0xffff
mov ebx, 0x80070000
test eax, eax
jle 0x492ab8
and eax, edi
or eax, ebx
test eax, eax
js 0x492ae6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push 0x40ee60
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jle 0x492adc
and eax, edi
or eax, ebx
test eax, eax
js 0x492ae6
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [edx], ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x492dbd
Capabilities:
Get hostname
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x403b5c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x42c], eax
xor eax, eax
xor esi, esi
mov ebx, 0x206
push ebx
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x418], esi
call sub.MSVCR100.dll_memset
xor eax, eax
push ebx
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push esi
push eax
call sub.MSVCR100.dll_memset
xor ebx, ebx
add esp, 0x18
inc ebx
test edi, edi
je 0x492e3e
cmp dword [ebp + 0xc], esi
jne 0x492e40
mov ebx, esi
push 0xffffffffffffffff
push 0x43a070
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.MSVCR100.dll_wcsncpy_s]
add esp, 0x10
cmp eax, 0x50
je 0x492fbc
cmp dword [ebp - 0x41c], 0x80000001
mov edi, dword [sym.imp.MSVCR100.dll_wcsncat_s]
jne 0x492ee1
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x424], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x492fbc
push 0xffffffffffffffff
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call edi
add esp, 0x10
cmp eax, 0x50
je 0x492fbc
push 0xffffffffffffffff
push 0x4035f0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call edi
add esp, 0x10
cmp eax, 0x50
je 0x492fbc
test ebx, ebx
je 0x492f5c
mov ebx, dword [ebp - 0x428]
cmp word [ebx], 0x7b
je 0x492f1c
push 0xffffffffffffffff
push 0x43a120
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov dword [ebp - 0x420], 1
call edi
add esp, 0x10
cmp eax, 0x50
je 0x492fbc
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push ebx
mov ebx, 0x104
push ebx
push eax
call edi
add esp, 0x10
cmp eax, 0x50
je 0x492fbc
cmp dword [ebp - 0x420], esi
je 0x492f5c
push 0xffffffffffffffff
push 0x439c20
lea eax, [ebp - 0x20c]
push ebx
push eax
call edi
add esp, 0x10
cmp eax, 0x50
je 0x492fbc
lea eax, [ebp - 0x418]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, 0xffff
mov ebx, 0x80070000
test eax, eax
jle 0x492f90
and eax, edi
or eax, ebx
test eax, eax
js 0x492fbc
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x492fb9
push esi
push esi
push esi
push esi
push eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jle 0x492fb7
and eax, edi
or eax, ebx
test eax, eax
js 0x492fbc
xor esi, esi
inc esi
cmp dword [ebp - 0x418], 0
je 0x492fd1
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043f894
leave
ret 0x10
Function at 0x49563b
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x4a56d7
call fcn.0043fd5f
mov eax, dword [ebp + 8]
push 1
xor esi, esi
push esi
push 0x80
push 2
push esi
push esi
push 0xc0000000
push eax
call dword [0x43b7bc]
mov edi, eax
cmp edi, 0xffffffff
je 0x495722
push esi
lea eax, [ebp - 0x38]
push eax
push 2
lea eax, [ebp - 0x30]
push eax
push edi
mov word [ebp - 0x30], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x495695
mov eax, 0x80004005
jmp 0x495724
mov dword [ebp - 0x34], esi
push 0x43a948
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], esi
call fcn.00493546
push esi
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4956d1
test esi, esi
je 0x49568b
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x49568b
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x1c], 0
xor eax, eax
push 0x43a9c0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.0043cc4a
lea eax, [ebp - 0x2c]
push eax
push 2
call dword [fcn.0043b7c0]
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0043d71f
test esi, esi
je 0x495722
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
call fcn.0043fde2
ret 4
Function at 0x49572c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x403b5c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x495751
mov eax, 0x80004003
jmp 0x49586e
push ebx
push edi
xor eax, eax
mov edi, 0x206
xor ebx, ebx
push edi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push ebx
push eax
mov dword [esi], ebx
call sub.MSVCR100.dll_memset
xor eax, eax
push edi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0x18
push 1
push 0x23
lea eax, [ebp - 0x414]
push eax
push ebx
mov dword [ebp - 0x43c], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4957f9
mov edi, dword [sym.imp.MSVCR100.dll__snwprintf_s]
lea eax, [ebp - 0x414]
push eax
push 0x43aa34
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push 0x104
push eax
call edi
add esp, 0x14
lea eax, [ebp - 0x438]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x495800
cmp dword [ebp - 0x438], 0xffffffff
je 0x4957f9
test byte [ebp - 0x438], 0x10
jne 0x495800
mov eax, 0x80004005
jmp 0x49586c
lea eax, [ebp - 0x414]
push eax
push 0x43aa70
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push 0x104
push eax
call edi
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x43c]
call fcn.00493546
mov edi, eax
test edi, edi
jns 0x49584f
cmp dword [ebp - 0x43c], ebx
je 0x49584b
push dword [ebp - 0x43c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, edi
jmp 0x49586c
mov eax, dword [ebp - 0x43c]
mov dword [esi], eax
lea eax, [ebp - 0x20c]
push eax
push 0x43aad8
push 2
call fcn.00495a16
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043f894
leave
ret 4

Function at 0x495f84
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x403c14
push 0x80000000
mov dword [ebp - 8], ebx
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x496022
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call esi
test eax, eax
jne 0x496018
push 4
pop esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x43ab70
push dword [ebp - 4]
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x496018
cmp dword [ebp + 8], esi
jne 0x496018
mov esi, dword [ebp - 0xc]
cmp esi, 3
ja 0x496018
cmp dword [ebp - 4], ebx
je 0x49600a
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], ebx
je 0x496014
push dword [ebp - 8]
call edi
mov eax, esi
jmp 0x49602e
cmp dword [ebp - 4], ebx
je 0x496022
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], ebx
je 0x49602c
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4963af
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x4f2f90], 0
je 0x4963c4
mov eax, dword [0x4f2f94]
leave
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x43ac50
push 0x80000001
mov dword [ebp - 4], esi
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x49643b
lea eax, [ebp - 8]
push eax
push 0x4f2f94
push esi
push esi
push dword [0x4f0e24]
mov dword [ebp - 8], 4
push dword [ebp - 4]
call edi
test eax, eax
jne 0x49643b
cmp dword [ebp - 8], 4
jne 0x49643b
mov esi, dword [0x4f2f94]
mov byte [0x4f2f90], 1
cmp dword [ebp - 4], eax
je 0x496434
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4964c6
mov eax, dword [ebp - 4]
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x49644e
push eax
call esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x43ac9c
push 0x80000001
call ebx
test eax, eax
jne 0x4964ab
push 4
pop ebx
lea eax, [ebp - 8]
push eax
push 0x4f2f94
push 0
push 0
push dword [0x4f0e24]
mov dword [ebp - 8], ebx
push dword [ebp - 4]
call edi
test eax, eax
jne 0x4964ab
cmp dword [ebp - 8], ebx
jne 0x4964ab
mov edi, dword [0x4f2f94]
mov byte [0x4f2f90], 1
cmp dword [ebp - 4], eax
je 0x4964a7
push dword [ebp - 4]
call esi
mov eax, edi
jmp 0x4964c6
and dword [0x4f2f94], 0
cmp dword [ebp - 4], 0
mov byte [0x4f2f90], 1
je 0x4964c4
push dword [ebp - 4]
call esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x498f93
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x904
mov eax, dword [0x403b5c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x100
lea eax, [ebp - 0x904]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x400
lea eax, [ebp - 0x804]
push eax
push esi
xor edi, edi
call fcn.0044081b
push 0x5c
pop esi
lea eax, [ebp - 0x804]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x498ff9
xor ecx, ecx
mov dword [ebp + edi*4 - 0x904], eax
mov word [eax], cx
inc edi
cmp edi, 0x40
jge 0x49903c
test eax, eax
je 0x499032
lea eax, [ebp - 0x804]
push eax
call fcn.00497009
test eax, eax
js 0x498fd8
jmp 0x499032
mov eax, dword [ebp + edi*4 - 0x908]
dec edi
mov word [eax], si
push 0
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x49903c
cmp edi, 1
jg 0x499014
xor eax, eax
inc eax
jmp 0x49903e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043f894
leave
ret 4
Function at 0x49905d
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x403b5c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov bh, byte [ebp + 8]
push esi
push edi
mov edi, ecx
push edi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4991f0
test al, 0x10
je 0x4991f0
test edi, edi
jne 0x4991bd
xor esi, esi
push edi
mov edi, dword [sym.imp.MSVCR100.dll_wcscpy_s]
lea eax, [ebp - 0x218]
push 0x10a
push eax
call edi
add esp, 0xc
push 0x5c
pop eax
cmp word [ebp + esi*2 - 0x21a], ax
je 0x4990ca
mov word [ebp + esi*2 - 0x218], ax
inc esi
push 0x43b084
lea eax, [esi + esi]
lea eax, [ebp + eax - 0x218]
push 4
push eax
call edi
lea eax, [esi*2 + 8]
add esp, 0xc
cmp eax, 0x214
jae 0x499203
xor ecx, ecx
mov word [ebp + eax - 0x218], cx
push 6
xor eax, eax
pop ecx
lea edi, [ebp - 0x234]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
and dword [ebp - 0x238], 0
lea eax, [ebp - 0x218]
mov dword [ebp - 0x230], eax
mov eax, 0x614
mov word [ebp - 0x228], ax
lea eax, [ebp - 0x238]
push eax
mov dword [ebp - 0x234], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x499166
push eax
lea eax, [ebp - 0x218]
push eax
push 0x43b090
push 0x14
push 0
push 0x20660e
call fcn.0043c3b8
add esp, 0x18
xor bl, bl
test bh, bh
je 0x4991b9
lea eax, [esi + esi]
cmp eax, 0x214
jae 0x499203
xor ecx, ecx
mov word [ebp + eax - 0x218], cx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4991b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x43b128
push 0x14
push 0
push 0x20660f
call fcn.0043c3b8
add esp, 0x18
xor bl, bl
mov al, bl
jmp 0x4991f2
push 0x105
push edi
call dword [sym.imp.MSVCR100.dll_wcsnlen]
mov esi, eax
pop ecx
pop ecx
cmp esi, 0x105
jne 0x49909c
push edi
push 0x43b058
push 0x14
push 0
push 0x20660d
call fcn.0043c3b8
add esp, 0x14
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043f894
leave
ret 4
call fcn.0043fe83
int3

Function at 0x499254
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x10
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x49929c
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x49929c
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x49929c
cmp word [eax + 2], 0
je 0x49929c
cmp dword [eax + 0x28], 0xfeef04bd
jne 0x49929c
add eax, 0x30
jmp 0x4992a1
mov eax, 0x43b1d4
pop esi
pop ebp
ret
Function at 0x499cf8
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x403b5c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], eax
test ebx, ebx
jne 0x499d3d
push 0x15b3c8
call fcn.00456bc8
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x499d36
and dword [ebp - 0x4c], ebx
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x499ea1
cmp dword [0x4f35ec], eax
je 0x499d54
mov eax, dword [0x4f1184]
mov dword [ebx], eax
xor eax, eax
inc eax
jmp 0x499ea1
push edi
mov dword [ebx], eax
lea eax, [ebp - 0x4c]
push eax
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x499d82
push 0x15b3c9
call fcn.00456bc8
xor edi, edi
jmp 0x499e8c
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 2
push dword [ebp - 0x4c]
call edi
test eax, eax
je 0x499da2
push 0x15b3ca
jmp 0x499d76
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x499db4
push 0x15b3cb
jmp 0x499d76
push esi
push dword [ebp - 0x54]
lea ecx, [ebp - 0x50]
call fcn.00445e96
mov esi, dword [ebp - 0x50]
test al, al
jne 0x499dd8
push 0x15b3cc
call fcn.00456bc8
xor edi, edi
jmp 0x499e80
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
push esi
push 2
push dword [ebp - 0x4c]
call edi
test eax, eax
jne 0x499df2
push 0x15b3cd
jmp 0x499dcc
push 0x43
lea eax, [ebp - 0x47]
push 0
push eax
mov byte [ebp - 0x48], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0xb
mov dword [ebp - 0x5c], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
jne 0x499e2a
push 0x15b3ce
jmp 0x499dcc
and dword [ebp - 0x58], 0
xor edi, edi
inc edi
cmp dword [esi], 0
jbe 0x499e73
lea eax, [esi + 4]
mov dword [ebp - 0x50], eax
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x499e5b
mov eax, dword [ebp - 0x50]
push dword [eax]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x499e71
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x50]
inc ecx
add eax, 8
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x50], eax
cmp ecx, dword [esi]
jb 0x499e3c
jmp 0x499e73
mov dword [ebx], edi
mov dword [0x4f35ec], edi
mov eax, dword [ebx]
mov dword [0x4f1184], eax
test esi, esi
je 0x499e8b
push esi
call fcn.00456ef0
pop ecx
pop esi
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x499e9e
and dword [ebp - 0x4c], 0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0043f894
leave
ret 4