joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b585
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
push 0x38
lea eax, [ebp - 0x38]
mov edi, edx
push 0
push eax
mov esi, ecx
call fcn.004bea90
push 0x9f988a3f
mov edx, 0xca5f2a41
mov dword [ebp - 0x3c], 0x3c
mov ecx, 0x68775c50
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x34], esi
call fcn.004014c9
push 0xb71a5a28
mov edx, 0xe2ddfa5c
mov dword [ebp - 0x30], eax
mov ecx, 0x40f58c55
mov dword [ebp - 0x2c], edi
call fcn.004014c9
and dword [ebp - 0x24], 0
add esp, 0x14
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x20], 5
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40b65f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x517490]
xor eax, ebp
mov dword [ebp - 4], eax
add cl, 0x41
movzx eax, cl
mov ecx, dword [eax*4 + 0x529a6c]
test ecx, ecx
je 0x40b6d1
cmp byte [ecx + 0x7f], 0
je 0x40b6d1
lea eax, [ebp - 0x20c]
push eax
call fcn.0042869f
lea eax, [ebp - 0x20c]
push eax
call fcn.0041fa4a
pop ecx
test al, al
je 0x40b6d1
push 5
push 0
push 0
lea eax, [ebp - 0x20c]
mov edx, 0xf065a678
push eax
push 0xa5a20608
mov ecx, 0x524dd075
call fcn.004014c9
pop ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b94b6
mov esp, ebp
pop ebp
ret

Function at 0x40b6df
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x517490]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x3a
pop edi
mov word [ebp - 0xa], di
mov esi, ecx
push 0x5c
pop edi
movzx ecx, dl
and edx, 0xff00
mov word [ebp - 8], di
xor edi, edi
mov word [ebp - 6], di
mov edi, 0x2400
lea eax, [ecx + 0x41]
mov word [ebp - 0xc], ax
cmp edx, edi
ja 0x40b7ab
je 0x40b7a3
cmp edx, 0x2000
je 0x40b78f
cmp edx, 0x2100
je 0x40b766
cmp edx, 0x2200
je 0x40b758
cmp edx, 0x2300
jne 0x40b7e9
mov edx, eax
mov ecx, esi
call fcn.0041476c
jmp 0x40b7e9
mov edx, eax
mov ecx, esi
call fcn.004146fa
jmp 0x40b7e9
push 5
xor esi, esi
lea eax, [ebp - 0xc]
push esi
push esi
push eax
push 0x64bdafa8
mov edx, 0x317a0fd8
mov ecx, 0x935279e1
call fcn.004014c9
pop ecx
push eax
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40b7e9
add cl, 0x41
movzx eax, cl
mov ecx, esi
push eax
push 7
pop edx
call fcn.0041ddd9
pop ecx
jmp 0x40b7e9
push eax
call fcn.0040dcf3
jmp 0x40b7e9
cmp edx, 0x2500
je 0x40b7e4
cmp edx, 0x2600
je 0x40b7db
cmp edx, 0x2700
je 0x40b7d7
cmp edx, 0x2800
jne 0x40b7e9
lea edx, [ebp - 0xc]
mov ecx, esi
call fcn.0040b585
jmp 0x40b7e9
xor dl, dl
jmp 0x40b7dd
mov dl, 1
call fcn.0040b602
jmp 0x40b7e9
call fcn.0040b65f
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004b94b6
mov esp, ebp
pop ebp
ret
Function at 0x40be2f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x517490]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, 0x104
lea eax, [ebp - 0x414]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, 0x4ee5d0
lea eax, [ebp - 0x414]
push ebx
push eax
push 0x3a7248ae
mov edx, 0x307c257a
mov ecx, 0x80cab4b3
call fcn.004013ad
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x20c]
push eax
call fcn.0041fa4a
add esp, 0x14
test al, al
jne 0x40beea
mov ecx, dword [0x529a90]
lea eax, [ebp - 0x20c]
push edi
push eax
push 0xf
call fcn.00420e3f
test eax, eax
jne 0x40bed4
movzx edx, word [0x51e44c]
lea eax, [ebp - 0x20c]
push edi
push eax
xor edx, 0x2525
mov ecx, 0x51e44e
call fcn.00412531
pop ecx
pop ecx
push 0x10
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x40bf58
push esi
call fcn.00408d19
mov esi, eax
call fcn.00408dfd
test esi, esi
je 0x40bf68
test eax, eax
je 0x40bf68
push edi
lea eax, [ebp - 0x20c]
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004bacf8
pop ecx
pop ecx
test eax, eax
je 0x40bf54
push 1
push esi
push 0x7e8416db
mov edx, 0x2b43b6aa
mov ecx, 0x896bc0f9
call fcn.004014c9
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004202f7
add esp, 0x10
test eax, eax
jne 0x40bffa
xor eax, eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004b94b6
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x529a90]
lea eax, [ebp - 0x20c]
push edi
push eax
push 0x10
call fcn.00420e3f
test eax, eax
jne 0x40bfa2
movzx edx, word [0x51e4d4]
lea eax, [ebp - 0x20c]
push edi
push eax
xor edx, 0x2525
mov ecx, 0x51e4d6
call fcn.00412531
pop ecx
pop ecx
push 0x14
push ebx
lea eax, [ebp - 0x20c]
xor esi, esi
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x40bf54
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 1
push esi
push 0x6003bbf8
mov edx, 0x35c41b89
mov ecx, 0x97ec6dac
call fcn.004014c9
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004202f7
add esp, 0x10
cmp eax, 0x64
jne 0x40bf54
call fcn.0040bdad
xor eax, eax
jmp 0x40bf57
Function at 0x40c254
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 0x10], edx
push esi
xor ebx, ebx
push edi
mov dword [ebp], ebx
mov edi, ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp + 0x10], 1
mov dword [esp + 0x14], eax
jle 0x40c369
test eax, eax
je 0x40c369
xor esi, esi
inc esi
cmp dword [esp + 0x10], esi
jle 0x40c369
mov ecx, dword [eax + esi*4]
movzx eax, word [ecx]
cmp eax, 0x2d
je 0x40c2b2
cmp eax, 0x2f
jne 0x40c35a
movzx eax, word [ecx + 2]
push eax
call fcn.0041fee1
movzx eax, ax
pop ecx
sub eax, 0x64
je 0x40c3a0
dec eax
je 0x40c39b
sub eax, 0xd
je 0x40c373
sub eax, 6
jne 0x40c35a
mov eax, dword [esp + 0x14]
mov eax, dword [eax + esi*4]
movzx eax, word [eax + 4]
push eax
call fcn.0041fee1
movzx eax, ax
pop ecx
cmp eax, 0x69
jne 0x40c312
xor ecx, ecx
xor edi, edi
inc ecx
inc edi
call fcn.0040950b
mov dword [ebp], eax
call fcn.004095b6
call fcn.0040c1f2
jmp 0x40c35a
cmp eax, 0x75
jne 0x40c32b
xor edi, edi
xor ecx, ecx
inc edi
call fcn.0040950b
mov dword [ebp], eax
call fcn.00409c62
jmp 0x40c35a
cmp eax, 0x66
jne 0x40c33d
xor ecx, ecx
xor edi, edi
inc ecx
inc edi
call fcn.0040950b
jmp 0x40c34a
cmp eax, 0x72
jne 0x40c34f
xor edi, edi
inc edi
call fcn.004066eb
mov dword [ebp], eax
jmp 0x40c35a
cmp eax, 0x68
jne 0x40c35a
mov eax, dword [esp + 0x18]
mov byte [eax], bl
mov eax, dword [esp + 0x14]
inc esi
cmp esi, dword [esp + 0x10]
jl 0x40c29e
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 0x70
call fcn.004b9c6e
pop ecx
test eax, eax
je 0x40c389
push ebx
mov ecx, eax
call fcn.0040cfc2
mov ebx, eax
xor ecx, ecx
mov dword [0x529a98], ebx
call fcn.00412400
xor eax, eax
inc eax
jmp 0x40c36b
xor ecx, ecx
inc ecx
jmp 0x40c3a2
xor ecx, ecx
call fcn.0040c1cd
jmp 0x40c396
Function at 0x40c6f3
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov byte [0x529aa8], 1
push ebx
push esi
push edi
push 0x4c
call fcn.004b9c6e
xor ebx, ebx
pop ecx
test eax, eax
je 0x40c71d
mov ecx, eax
call fcn.004203b5
jmp 0x40c71f
mov eax, ebx
mov esi, dword [ebp + 8]
mov dword [0x529a90], eax
mov dword [0x529a94], esi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 6
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0x8cd8ade4
mov edx, 0xd91f0d85
mov ecx, 0x7b377e64
call fcn.004014a8
pop ecx
push eax
push 0xea6535ce
mov edx, 0xbfa295b2
mov ecx, 0x1d8ae647
call fcn.004014a8
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c78d
lea ecx, [esp + 0x14]
push ecx
call eax
movzx eax, word [esp + 0x14]
test eax, eax
jne 0x40c8d7
push dword [ebp + 0x10]
call fcn.00423307
pop ecx
test al, al
jne 0x40c8d7
lea edx, [esp + 0xf]
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0xf], 1
call fcn.0040c254
test eax, eax
je 0x40c7c1
mov eax, dword [esp + 0x10]
jmp 0x40c8d9
push 0x70
call fcn.004b9c6e
pop ecx
test eax, eax
je 0x40c7d7
push ebx
mov ecx, eax
call fcn.0040cfc2
jmp 0x40c7d9
mov eax, ebx
mov dword [0x529a98], eax
call fcn.00411ec2
test eax, eax
jne 0x40c7f8
call fcn.0040c647
test eax, eax
jne 0x40c7f8
push 3
pop eax
jmp 0x40c8d9
push str.MUTEX_XREVEAL
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40c83b
push ebx
push str.XrevealWndClass
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x40c833
push ebx
push ebx
push 0x400
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
inc eax
jmp 0x40c8d9
call fcn.0040c132
test eax, eax
jne 0x40c848
push 2
jmp 0x40c7f2
call fcn.0040c49b
test eax, eax
jne 0x40c855
push 6
jmp 0x40c7f2
mov ecx, esi
call fcn.0040bbf2
test eax, eax
je 0x40c8c5
push 0x10
call fcn.004b9c6e
pop ecx
test eax, eax
je 0x40c87a
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov byte [eax + 0xc], 1
jmp 0x40c87c
mov eax, ebx
sub esp, 0xc
mov dword [0x529aa4], eax
call fcn.0040c95e
movzx edx, byte [esp + 0xf]
mov ecx, esi
call fcn.0040bc64
test eax, eax
je 0x40c8c5
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x40c8b7
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
call esi
test eax, eax
jne 0x40c8a1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x529a98]
call fcn.0040d802
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40c95e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x517490]
xor eax, ebp
mov dword [ebp + 0x94], eax
and dword [ebp - 0x7c], 0
lea eax, [ebp - 0x78]
push esi
mov esi, dword [0x529aa4]
push 0x10c
push 0
push eax
mov dword [ebp - 0x80], 0x114
call fcn.004bea90
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
jb 0x40c9ba
sub esp, 0xc
mov ecx, esi
call fcn.0040c9fb
jmp 0x40c9bc
xor eax, eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
pop esi
call fcn.004b94b6
lea esp, [ebp + 0x98]
pop ebp
ret 0xc

Function at 0x40d01b
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx + 0x14]
push esi
mov esi, eax
and esi, 0x3f
jne 0x40d036
or dword [ecx + 0x18], 0x1000000
and eax, 0xffffffc1
or eax, 1
mov dword [ecx + 0x14], eax
mov edx, dword [ecx + 0x14]
mov eax, edx
and al, 0x3f
cmp al, 1
jne 0x40d04d
and edx, 0xffffffc2
or edx, 0x40000002
mov dword [ecx + 0x14], edx
mov edx, dword [ecx + 0x14]
mov eax, edx
and al, 0x3f
cmp al, 2
jne 0x40d064
and edx, 0xffffffc3
or edx, 0x82000003
mov dword [ecx + 0x14], edx
mov edx, dword [ecx + 0x14]
mov eax, edx
and eax, 0x3f
cmp al, 3
jne 0x40d07c
and edx, 0xf7ffffc4
or edx, 4
mov dword [ecx + 0x14], edx
mov eax, dword [ecx + 0x14]
and eax, 0x3f
cmp esi, eax
pop esi
jne fcn.0040d802
ret

Function at 0x40d08c
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x517490]
xor eax, ebp
mov dword [ebp + 0x190], eax
lea eax, [ebp - 0x80]
push eax
push dword [0x529b2c]
push 0x80000001
test cl, cl
je 0x40d0e7
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40d108
lea ecx, [ebp - 0x7c]
call fcn.0040d88e
add eax, eax
push eax
lea eax, [ebp - 0x7c]
push eax
push 1
push 0
push 0x4ee5d0
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x40d0ff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40d108
push 0x4ee5d0
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
call fcn.004b94b6
lea esp, [ebp + 0x194]
pop ebp
ret
Function at 0x40d11d
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3a8]
sub esp, 0x428
mov eax, dword [0x517490]
xor eax, ebp
mov dword [ebp + 0x3a4], eax
push ebx
lea eax, [ebp - 0x78]
xor ebx, ebx
push eax
push dword [0x529b2c]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x40d158
xor al, al
jmp 0x40d1ce
push esi
push edi
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0x106
push eax
lea eax, [ebp - 0x74]
mov edi, 0x4ee5d0
push eax
lea eax, [ebp - 0x7c]
xor esi, esi
push eax
push ebx
push edi
push dword [ebp - 0x78]
inc esi
mov dword [ebp - 0x7c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d1c1
lea ecx, [ebp + 0x198]
call fcn.0040d88e
add eax, eax
push eax
lea eax, [ebp + 0x198]
push eax
push esi
push ebx
push edi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp + 0x198]
push eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
movzx ebx, bl
cmove ebx, esi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop esi
mov ecx, dword [ebp + 0x3a4]
xor ecx, ebp
pop ebx
call fcn.004b94b6
lea esp, [ebp + 0x3a8]
pop ebp
ret

Function at 0x40d220
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
add eax, eax
xor ebx, ebx
mov dword [ebp + 0xc], eax
xor esi, esi
lea eax, [ebp + 0xc]
inc esi
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push ebx
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
movzx ecx, bl
cmove ecx, esi
pop esi
mov al, cl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d25a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x517490]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x18]
mov esi, ecx
push eax
push dword [0x529b30]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40d31c
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 3
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 8
push eax
push 0
push dword [0x529b34]
push dword [ebp - 0x18]
call edi
test eax, eax
jne 0x40d2c9
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x18], eax
push 4
pop ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [esi + 0x10]
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [0x529b38]
push dword [ebp - 0x18]
call edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [esi + 0x24]
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 0x10]
mov edx, 0xa74edb90
push eax
push 0
push 0xc594a434
mov ecx, 0x99e8b938
call fcn.00401557
pop ecx
push eax
push dword [ebp - 0x18]
call edi
pop edi
pop ebx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004b94b6
mov esp, ebp
pop ebp
ret

Function at 0x40d616
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
push 4
pop edi
mov edx, edi
mov word [esi + 8], ax
mov ecx, esi
call fcn.0040d334
test al, al
je 0x40d6c2
push 0x30b348fc
mov edx, 0x52693755
mov ecx, 0x6ccf5407
call fcn.00401557
pop ecx
mov ecx, eax
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d675
test dx, dx
je 0x40d671
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d675
add eax, edi
add ecx, edi
test dx, dx
jne 0x40d651
xor eax, eax
jmp 0x40d67a
sbb eax, eax
or eax, 1
test eax, eax
je 0x40d6c2
push 0xfbaf316
mov edx, 0x6d608cbf
mov ecx, 0x53c6eff9
call fcn.00401557
pop ecx
mov ecx, esi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40d6b9
test dx, dx
je 0x40d6b5
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40d6b9
add ecx, edi
add eax, edi
test dx, dx
jne 0x40d695
xor eax, eax
jmp 0x40d6be
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40d6ec
push 0x525f9ac3
mov edx, 0x3085e56a
mov ecx, 0xe238610
call fcn.00401557
pop ecx
mov ecx, eax
mov edx, esi
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x40d6dd
xor edx, edx
lea ecx, [ebp + 8]
call fcn.0040d8e5
test eax, eax
je 0x40d729
push 0xa
push esi
push 1
push 0
push 0x7663459c
mov edx, 0x14b93a3b
mov ecx, 0x2a1f5955
call fcn.00401557
pop ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, 1
pop esi
pop ebp
ret 4
Function at 0x40d731
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 5
pop edx
mov ecx, esi
mov word [esi + 0xa], ax
call fcn.0040d334
test al, al
je 0x40d794
push 0x6620ef07
mov edx, 0x4fa90ad
mov ecx, 0x3a5cf33b
call fcn.00401557
pop ecx
mov ecx, eax
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d78b
test dx, dx
je 0x40d787
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d78b
add eax, 4
add ecx, 4
test dx, dx
jne 0x40d765
xor eax, eax
jmp 0x40d790
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40d7be
push 0xca657fa6
mov edx, 0xa8bf000c
mov ecx, 0x96196384
call fcn.00401557
pop ecx
mov ecx, eax
mov edx, esi
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x40d7af
xor edx, edx
lea ecx, [ebp + 8]
call fcn.0040d8e5
test eax, eax
je 0x40d7fb
push 0xc
push esi
push 1
push 0
push 0x62301970
mov edx, 0xea66d0
mov ecx, 0x3e4c056a
call fcn.00401557
pop ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x40d802
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x517490]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x10]
mov esi, ecx
push eax
push dword [0x529b30]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40d876
mov eax, dword [esi + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x18]
push 8
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 3
push 0
push dword [0x529b34]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40d85d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 4
lea eax, [esi + 0x10]
push eax
push 4
push 0
push dword [0x529b38]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004b94b6
mov esp, ebp
pop ebp
ret
Function at 0x40d960
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor eax, eax
xor edx, edx
lea ecx, [ebp - 4]
mov word [edi], ax
call fcn.0040d8e5
test eax, eax
je 0x40d9ac
push 0x104
push edi
push 0xc0b6198
mov edx, 0x6ed11e3e
mov ecx, 0x50777dcc
call fcn.00401557
pop ecx
mov ecx, dword [ebp - 4]
mov edx, eax
call fcn.0040d220
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
cmp word [edi], bx
jne 0x40d9e1
mov ecx, edi
call fcn.0040df2c
push 0x313afe41
mov edx, 0x53e081e9
mov ecx, 0x6d46e0ff
mov esi, eax
call fcn.00401557
pop ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40d9e6
sub ecx, edx
sar ecx, 1
push 0x5c
pop eax
lea esi, [edi + ecx*2]
cmp word [esi - 2], ax
je 0x40da0c
mov word [esi], ax
add esi, 2
xor eax, eax
mov word [esi], ax
push edi
call fcn.0041fa4a
pop ecx
test al, al
jne 0x40da20
push ebx
push edi
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40da29
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push ebp
xor edx, edx
lea ecx, [esp + 8]
call fcn.0040d8e5
mov ebp, dword [esp + 0x10]
test eax, eax
je 0x40da96
cmp byte [esp + 0x14], 0
je 0x40da57
push 0xdec7a2b4
mov edx, 0xbc1ddd14
mov ecx, 0x82bbbd08
jmp 0x40da66
push 0xad1e9034
mov edx, 0xcfc4ef9e
mov ecx, 0xf1628f9c
call fcn.00401557
pop ecx
mov ecx, dword [esp + 8]
mov edx, eax
push 0x104
push ebp
call fcn.0040d220
pop ecx
pop ecx
push dword [esp + 8]
mov bl, al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x40da96
mov al, 1
jmp 0x40db68
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push esi
push edi
push ebp
xor edi, edi
push edi
push edi
push 0x1a
push edi
call ebx
test eax, eax
jne 0x40dafe
push 0x847ad136
mov edx, 0xe6a0ae8a
mov ecx, 0xd806cebe
call fcn.00401557
mov edx, eax
pop ecx
mov esi, edx
mov ax, word [edx]
add edx, 2
cmp ax, di
jne 0x40dac5
sub edx, esi
lea edi, [ebp - 2]
xor ecx, ecx
mov ax, word [edi + 2]
add edi, 2
cmp ax, cx
jne 0x40dad7
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebp
call fcn.0041fa4a
pop ecx
cmp al, 1
je 0x40db5a
xor edi, edi
push ebp
push edi
push edi
push 0x23
push edi
call ebx
test eax, eax
jne 0x40db5e
push 0x83fcb150
mov edx, 0xe126ceec
mov ecx, 0xdf80aebe
call fcn.00401557
mov edx, eax
pop ecx
mov esi, edx
mov ax, word [edx]
add edx, 2
cmp ax, di
jne 0x40db23
sub edx, esi
lea edi, [ebp - 2]
xor ecx, ecx
mov ax, word [edi + 2]
add edi, 2
cmp ax, cx
jne 0x40db35
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebp
call fcn.0041fa4a
pop ecx
cmp al, 1
jne 0x40db5e
mov al, 1
jmp 0x40db66
xor eax, eax
mov word [ebp], ax
xor al, al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x40dbe1
Capabilities:
Create directory

Disassembly:
push ecx
push ebp
push esi
push edi
push 0x63cca761
mov edx, 0x116d8c9
mov ecx, 0x3fb0b841
call fcn.00401557
pop ecx
xor edx, edx
lea ecx, [esp + 0xc]
mov ebp, eax
call fcn.0040d8e5
mov edi, dword [esp + 0x14]
test eax, eax
je 0x40dc5b
mov ecx, dword [esp + 0xc]
mov edx, ebp
push ebx
push 0x104
push edi
call fcn.0040d220
pop ecx
pop ecx
push dword [esp + 0x10]
mov bl, al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
pop ebx
je 0x40dc5b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [edi + eax*2]
cmp esi, edi
je 0x40dc8e
movzx eax, word [esi - 2]
cmp eax, 0x2f
je 0x40dc8e
push 0x5c
pop ecx
cmp ax, cx
je 0x40dc8e
mov word [esi], cx
add esi, 2
jmp 0x40dc89
mov ecx, edi
call fcn.0040df2c
mov esi, eax
sub eax, ebp
movzx ecx, word [ebp]
mov word [eax + ebp], cx
lea ebp, [ebp + 2]
test cx, cx
jne 0x40dc66
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x5c
pop eax
mov word [esi + 6], ax
add esi, 8
xor eax, eax
mov word [esi], ax
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 4