joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e4d0
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x43e9f9
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
mov dword [esp + 0x1c], 0
push 0x23
mov dword [esp + 0x14], 0
call fcn.00410480
add esp, 4
mov dword [esp + 0x1c], 0
push 0xd
push 0x448b60
push edi
mov dword [esp + 0x1c], 1
call fcn.0041fad0
mov eax, dword [edi]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40e552
mov eax, dword [edi]
push 0
push eax
call esi
mov ecx, dword [edi]
call fcn.004187f0
push 3
push 0x449b2c
push edi
call fcn.0041fad0
mov eax, dword [edi]
push eax
call ebp
test eax, eax
jne 0x40e576
mov eax, dword [edi]
push 0
push eax
call esi
mov ecx, dword [edi]
call fcn.004187f0
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret

Function at 0x40e7a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40e7b9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40e7f4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40e7f0
lea ebx, [ebx]
cmp esi, eax
jae 0x40e7f4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40e7e0
cmp esi, eax
jb 0x40e7fa
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40f650
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43d2c1
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x455d50]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0x24c
lea eax, [esp + 0x24]
push 0
push eax
mov dword [esp + 0x28], 0
call fcn.0042ab60
lea ecx, [esp + 0x20]
push esi
push ecx
mov ebx, str..
call fcn.0040dbe0
add esp, 0x14
mov dword [esp + 0x280], 0
mov eax, dword [eax]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [esp + 0x280], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0041d7d0
cmp edi, 0xffffffff
je 0x40f81e
mov ecx, 0x448b50
lea eax, [esp + 0x48]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40f726
test dx, dx
je 0x40f722
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40f726
add eax, 4
add ecx, 4
test dx, dx
jne 0x40f700
xor eax, eax
jmp 0x40f72b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40f803
mov ecx, 0x448b54
lea eax, [esp + 0x48]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40f766
test dx, dx
je 0x40f762
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40f766
add eax, 4
add ecx, 4
test dx, dx
jne 0x40f740
xor eax, eax
jmp 0x40f76b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40f803
lea eax, [esp + 0x18]
push esi
push eax
mov ebx, 0x448b5c
call fcn.0040dbe0
mov dword [esp + 0x288], 1
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ebx, [esp + 0x58]
call fcn.0040dbe0
add esp, 0x10
mov byte [esp + 0x280], 3
lea ecx, [esp + 0x18]
call fcn.0041d7d0
test byte [esp + 0x1c], 0x10
je 0x40f7d4
mov edx, dword [ebp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.0040f650
mov ecx, dword [esp + 0x18]
add esp, 8
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edx, dword [esp + 0x10]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x280], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0041d7d0
lea ecx, [esp + 0x1c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40f6f7
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0xc], 0
je 0x40f82d
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.00422c3d
mov esp, ebp
pop ebp
ret
Function at 0x410100
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov esi, eax
push 0
lea ecx, [esi + 0x90]
call fcn.00413161
add esi, 0x9fc
push 5
mov ecx, esi
call fcn.00413161
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x19
push 0x77
push eax
call edi
mov eax, dword [esi + 0x20]
push 0
push 0
push eax
push 0x41a6b0
push 0
push 0
call fcn.00429a23
mov ecx, dword [esi + 0x20]
add esp, 0x18
push 0
push 0x1388
push 0x75
push ecx
mov dword [esi + 0x74], eax
call edi
pop edi
pop esi
ret

Function at 0x410360
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43d7cc
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x455d50]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c]
xor eax, eax
mov dword [esp + 0x14], eax
xor ecx, ecx
push eax
mov ebx, 0x400
lea esi, [esp + 0x20]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], eax
mov word [esp + 0x24], cx
call fcn.0040ed00
mov dword [esp + 0x44], 1
mov eax, dword [esp + 0x20]
mov esi, 8
cmp dword [esp + 0x34], esi
jae 0x4103dc
lea eax, [esp + 0x20]
mov edx, dword [esp + 0x30]
push eax
dec edx
push edx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp dword [esp + 0x34], esi
mov esi, dword [esp + 0x20]
jae 0x4103f7
lea esi, [esp + 0x20]
lea eax, [esp + 0x10]
push eax
call fcn.00422ea0
mov byte [esp + 0x44], 2
push eax
push edi
mov ebx, ebp
call fcn.0041c660
add esp, 8
mov eax, 1
mov dword [esp + 0x14], eax
mov byte [esp + 0x44], al
lea ecx, [esp + 0x10]
push ecx
call fcn.004229a0
xor ebx, ebx
mov byte [esp + 0x44], bl
cmp dword [esp + 0x34], 8
jb 0x410443
mov edx, dword [esp + 0x20]
push edx
call fcn.0040ee99
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], ax
mov eax, edi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00422c3d
add esp, 0x38
ret
Function at 0x410480
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43e4f1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x455d50]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x10], eax
xor ecx, ecx
push eax
mov ebx, 0x104
lea esi, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], eax
mov word [esp + 0x20], cx
call fcn.0040ed00
mov dword [esp + 0x40], 1
mov eax, dword [esp + 0x1c]
mov ebp, 8
cmp dword [esp + 0x30], ebp
jae 0x4104f8
lea eax, [esp + 0x1c]
mov edx, dword [esp + 0x48]
push 1
push edx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x41051c
or eax, 0xffffffff
xor ebx, ebx
lea esi, [esp + 0x18]
call fcn.004177f0
jmp 0x410564
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], ebp
jae 0x41052a
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410530
mov ecx, dword [esp + 0x2c]
sub eax, edx
sar eax, 1
mov ebx, eax
cmp ebx, ecx
ja 0x410557
or eax, 0xffffffff
lea esi, [esp + 0x18]
call fcn.004177f0
jmp 0x410564
mov eax, ebx
sub eax, ecx
lea ebx, [esp + 0x18]
call fcn.0041fa40
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x30], ebp
jae 0x410572
lea ecx, [esp + 0x1c]
push edi
call fcn.0041f290
xor ebx, ebx
mov dword [esp + 0x10], 1
mov byte [esp + 0x40], bl
cmp dword [esp + 0x30], ebp
jb 0x410599
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040ee99
add esp, 4
xor ecx, ecx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], cx
mov eax, edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00422c3d
add esp, 0x34
ret

Function at 0x410ec1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x410ee5
cmp dword [edi + 0x54], 0
jne 0x410ee5
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00406e19
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00408e2b
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x411890
Capabilities:
Start service

Disassembly:
push 0xffffffffffffffff
push 0x43bd50
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x20], 0
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x41193f
mov eax, dword [esp + 0x28]
push 0x10
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [esp + 0x14], esi
mov byte [esp + 0x20], 1
test esi, esi
je 0x411933
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x411933
mov byte [esp + 0x20], 0
push esi
mov esi, ebp
call esi
mov dword [esp + 0x20], 0xffffffff
push edi
call esi
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
mov byte [esp + 0x20], 0
test esi, esi
je 0x41193f
push esi
call ebp
mov dword [esp + 0x20], 0xffffffff
test edi, edi
je 0x41194e
push edi
call ebp
xor al, al
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret

Function at 0x412680
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x43e4a8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
call fcn.0041f290
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0xc]
cmp dword [eax - 4], 1
mov esi, dword [eax - 0xc]
jle 0x4126d3
mov ecx, esi
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.0040b5e0
mov eax, dword [esp + 0xc]
lea ecx, [esi + esi]
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push ecx
push eax
push 1
push str.InstallDir
push str.SoftwareAdvancedSystemRepairPro
push SysReAllocString
call esi
mov eax, dword [esp + 0xc]
cmp dword [eax - 4], 1
mov edi, dword [eax - 0xc]
jle 0x41270f
mov edx, edi
push edx
lea eax, [esp + 0x10]
push eax
call fcn.0040b5e0
mov eax, dword [esp + 0xc]
lea ecx, [edi + edi]
push ecx
push eax
push 1
push str.InstallDir
push str.SoftwareAdvancedSystemRepairPro
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.0041d7d0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x412890
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43c7f8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], 1
jle 0x4128d6
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0040b5e0
mov eax, dword [esp + 0x20]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x412919
mov eax, dword [esp + 0x1c]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.0041d7d0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x412980
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
xor esi, esi
mov dword [esp + 4], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 4
mov dword [esp + 8], esi
cmp eax, esi
je 0x4129bc
lea ecx, [esp + 8]
push ecx
push 1
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x4129f2
mov eax, dword [esp + 8]
jmp 0x4129c1
mov eax, SysReAllocString
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
push esi
push 0x44a174
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4129ee
cmp dword [esp + 0xc], 4
jne 0x4129ee
cmp dword [esp + 0x10], esi
jne 0x4129f2
mov dword [esp + 4], esi
mov eax, dword [esp + 8]
cmp eax, esi
pop esi
je 0x412a02
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 0x10
ret

Function at 0x412a30
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
push 0
lea eax, [esp + 8]
push eax
push 0
push 2
push 0
push 0
push 0
push 0x44a178
push SysReAllocString
xor bl, bl
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x412a8c
mov edx, dword [esp + 4]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0x44a174
push eax
push edx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
jne 0x412a8c
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov bl, 1
mov eax, dword [esp + 4]
test eax, eax
je 0x412a9b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ecx
ret
Function at 0x412b20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43eb81
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x455d50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 4], edi
mov ebx, 1
mov byte [ebp - 4], bl
push 4
call fcn.0041ceed
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
cmp eax, edi
je 0x412b75
push eax
call fcn.0040b660
jmp 0x412b77
xor eax, eax
mov byte [ebp - 4], bl
mov dword [0x45a378], eax
mov ecx, dword [eax]
call fcn.004187f0
mov dword [ebp - 4], edi
jmp 0x412b9f
mov eax, dword [ebp + 8]
mov esi, dword [eax - 0xc]
cmp dword [eax - 4], ebx
jle 0x412bb9
mov eax, esi
push eax
lea ecx, [ebp + 8]
push ecx
call fcn.0040b5e0
mov eax, dword [ebp + 8]
lea edx, [esi + esi]
push edx
push eax
push ebx
push str.DisplayIcon
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallAdvanced_System_Repair_Pro
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push edi
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
push eax
mov ecx, str.NotifUpdate
call fcn.0041f290
mov byte [ebp - 4], 4
mov ecx, dword [0x45a378]
push ecx
mov byte [ebp - 4], 0
call fcn.00404980
push edi
push ecx
mov edx, esp
mov dword [ebp - 0x14], esp
push edx
mov ecx, str.FirstScanDone
call fcn.0041f290
mov byte [ebp - 4], 5
mov eax, dword [0x45a378]
push eax
mov byte [ebp - 4], 0
call fcn.00404980
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push ecx
mov ecx, str.LastDriverFix
call fcn.0041f290
mov byte [ebp - 4], 6
mov edx, dword [0x45a378]
push edx
mov byte [ebp - 4], 0
call fcn.00404980
mov byte [ebp - 4], 7
cmp byte [ebp + 0xc], 0
je 0x412cdc
lea eax, [ebp - 0x5c]
push eax
call fcn.004165c0
mov byte [ebp - 4], 8
push 0x27
lea ecx, [ebp - 0x14]
push ecx
call fcn.00423c80
mov esi, eax
mov byte [ebp - 4], 9
lea edx, [ebp - 0x44]
push edx
call fcn.004165c0
mov bl, 0xa
mov byte [ebp - 4], bl
lea eax, [ebp - 0x2c]
push eax
call fcn.004165c0
mov byte [ebp - 4], 0xb
mov esi, dword [esi]
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
je 0x412caa
push eax
mov eax, esi
call fcn.00417560
add esp, 4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00401f30
mov byte [ebp - 4], 9
lea edx, [ebp - 0x44]
push edx
call fcn.00401f30
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x14]
call fcn.0041d7d0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x5c]
push eax
call fcn.00401f30
mov dword [ebp - 4], edi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0041d7d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4138b0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x43eb08
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
call fcn.0040e250
add esp, 4
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ecx
call esi
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
mov ebx, str._shm
call fcn.0040dbe0
add esp, 8
mov byte [esp + 0x1c], 1
mov eax, dword [eax]
push eax
call esi
mov byte [esp + 0x1c], 0
lea ecx, [esp + 0x10]
call fcn.0041d7d0
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
mov ebx, str._wal
call fcn.0040dbe0
add esp, 8
mov byte [esp + 0x1c], 2
mov eax, dword [eax]
push eax
call esi
mov byte [esp + 0x1c], 0
lea ecx, [esp + 0x10]
call fcn.0041d7d0
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.0041d7d0
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x414a26
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x414a6d
call fcn.00406e19
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x414a6d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x414a89
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004091cc
mov esi, eax
test edi, edi
je 0x414a87
test ebx, ebx
je 0x414a87
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x414f40
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x43c9c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x455d50]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x40]
xor ecx, ecx
mov word [esp + 0x14], cx
mov ecx, eax
mov ebx, edx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x414f95
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x14]
call fcn.0040c800
mov dword [esp + 0x38], 0
push 1
mov eax, 0x448b5c
mov ecx, esi
call fcn.00401bd0
mov ecx, eax
mov eax, ebx
lea esi, [eax + 2]
jmp 0x414fd0
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x414fd0
sub eax, esi
sar eax, 1
push eax
mov eax, ebx
call fcn.00401bd0
cmp dword [esp + 0x28], 8
mov ecx, dword [esp + 0x14]
jae 0x414ff6
lea ecx, [esp + 0x14]
test edi, edi
je 0x415015
mov eax, edi
lea esi, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x415000
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
jmp 0x415017
xor eax, eax
push 1
push eax
xor eax, eax
call fcn.00416c60
add esp, 8
test eax, eax
sete bl
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x415045
mov edx, dword [esp + 0x14]
push edx
call fcn.0040ee99
add esp, 4
xor eax, eax
mov word [esp + 0x14], ax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00422c3d
add esp, 0x2c
ret
Function at 0x4160b0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
push edi
call esi
test eax, eax
je 0x4160d4
cmp dword [edi], 0
jne 0x4160ea
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
push 0
push edi
call esi
cmp dword [edi], 0
je 0x416117
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x20]
lea esi, [esp + 0xc]
call fcn.004033d0
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
lea ecx, [edi + 4]
push ecx
mov ecx, dword [edi]
push 0
push 0
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov eax, dword [edi + 4]
test eax, eax
je 0x41614c
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
push 0
lea edx, [esp + 0x1c]
push edx
mov ecx, 1
push 3
push eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
call esi
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push 4
push ecx
call esi
pop esi
add esp, 0x10
ret 8