joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40442f
Capabilities:
Delete file

Disassembly:
push 0x60
mov eax, 0x434585
call fcn.0041aab0
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
call fcn.00422831
push eax
call fcn.00422754
call fcn.00422733
push 0xa
mov edx, eax
lea edi, [ebp - 0x38]
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
push 0xa
lea eax, [ebp - 0x38]
push eax
push edx
call fcn.0042006b
push 0x437078
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.0040229e
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], ebx
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040229e
push str..txt
push eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 1
push eax
call fcn.0040229e
add esp, 0x38
mov ecx, dword [ebp - 0x40]
lea ecx, [ecx - 0x10]
call fcn.00401a54
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 4
lea ecx, [ecx - 0x10]
call fcn.00401a54
lea ecx, [ebp - 0x6c]
call fcn.0040cc06
push ebx
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
call fcn.0040215b
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 6
push eax
push 0x1021
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x6c]
call fcn.0040d120
test eax, eax
je 0x404500
lea ecx, [ebp - 0x6c]
call fcn.0040cea0
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x404503
mov ebx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x48]
add ecx, 0xfffffff0
mov dword [ebp - 0x58], vtable.CFileException.0
call fcn.00401a54
lea ecx, [ebp - 0x6c]
call fcn.0040cc35
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.00401a54
mov eax, ebx
call fcn.0041aa5a
ret
Function at 0x404a20
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 1
push esi
push dword [ebp + 0x10]
push 0x40000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404ad5
mov eax, 0x100000
mov dword [ebp - 8], esi
push eax
mov dword [ebp - 4], eax
mov edi, esi
call fcn.00422719
pop ecx
mov esi, eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404ac5
cmp dword [ebp - 8], 0
jbe 0x404ac5
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
push dword [ebp - 8]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x404aa5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
and dword [ebp - 8], 0
mov eax, 0x100000
mov dword [ebp - 4], eax
test esi, esi
je 0x404ac1
push eax
push 0
push esi
call fcn.0041bfd0
add esp, 0xc
test edi, edi
je 0x404a67
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0042251d
pop ecx
jmp 0x404add
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404fed
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405018
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push ebx
push dword [ebp - 4]
xor ebx, ebx
test eax, eax
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
leave
ret
Function at 0x4055af
Capabilities:
Enumerate process modules

Disassembly:
push 0x1c
mov eax, 0x43490b
call fcn.0041aa7c
xor ebx, ebx
push 8
pop esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], ebx
push eax
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], ebx
call fcn.004039ea
mov edi, dword [ebp - 0x28]
push 0x20
mov dword [ebp - 0x14], ebx
inc ebx
pop ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0xd], bl
lea eax, [ebp - 0x14]
push eax
push ecx
push edi
call sub.PSAPI.DLL_EnumProcesses
mov ecx, dword [ebp - 0x18]
test eax, eax
je 0x405633
cmp dword [ebp - 0x14], ecx
jb 0x405629
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
add esi, esi
lea ecx, [ebp - 0x28]
push esi
call fcn.004039ea
mov edi, dword [ebp - 0x28]
mov ecx, esi
mov al, byte [ebp - 0xd]
shl ecx, 2
mov dword [ebp - 0x18], ecx
jmp 0x40563c
mov esi, dword [ebp - 0x14]
shr esi, 2
xor al, al
jmp 0x405639
xor al, al
xor esi, esi
xor ebx, ebx
mov byte [ebp - 0xd], al
test al, al
jne 0x4055ef
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x40566c
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov dword [ebx + 4], eax
test esi, esi
je 0x405669
mov dword [ebp - 0x18], edi
push edi
mov ecx, ebx
call fcn.00403bfa
add edi, 4
sub esi, 1
jne 0x405656
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x1c]
test edi, edi
je 0x405681
mov ecx, dword [ebp - 0x20]
sub ecx, edi
and ecx, 0xfffffffc
push ecx
push edi
call fcn.0040391e
pop ecx
pop ecx
mov eax, ebx
call fcn.0041aa45
ret

Function at 0x405689
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret

Function at 0x4056a3
Capabilities:
Get common file path

Disassembly:
push 8
mov eax, 0x434936
call fcn.0041aa7c
call fcn.0040bda9
push eax
lea ecx, [ebp - 0x10]
call fcn.00401320
xor esi, esi
lea ecx, [ebp - 0x10]
push 0x104
mov dword [ebp - 4], esi
call fcn.00403333
push eax
push esi
push esi
push 0x2b
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.004033b5
test edi, edi
jne 0x405712
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004021f9
mov esi, str.AdobeARM1.0AdobeARM.exe
push esi
call fcn.0041fc6e
pop ecx
mov ecx, dword [ebp + 8]
push eax
push esi
call fcn.00402366
xor esi, esi
inc esi
jmp 0x40573d
push str.SHGetFolderPath_in_GetARMExePath_failed:
lea ecx, [ebp - 0x14]
call fcn.004020dd
push edi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push 1
call fcn.00403273
mov ecx, dword [ebp - 0x14]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401a54
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401a54
mov eax, esi
call fcn.0041aa45
ret
Function at 0x405750
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4484a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x105
xor esi, esi
push esi
push eax
call fcn.0041bfd0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push 0x24
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4057d5
lea eax, [ebp - 0x210]
push eax
call fcn.0041fc6e
pop ecx
push eax
lea eax, [ebp - 0x210]
mov ecx, edi
push eax
call fcn.0040360e
mov esi, str.TempArmUI.ini
push esi
call fcn.0041fc6e
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00402366
push edi
call fcn.00405689
pop ecx
test eax, eax
jne 0x405859
mov ecx, edi
call fcn.004025a7
mov esi, 0x104
mov ecx, edi
push esi
call fcn.00403333
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
mov ecx, edi
mov esi, eax
call fcn.004033b5
test esi, esi
je 0x40585d
push 0x5c
push dword [edi]
call fcn.0041d414
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x405839
mov eax, dword [edi]
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x405839
mov eax, dword [eax - 0xc]
dec eax
cmp ecx, eax
je 0x405839
mov esi, 0x437078
push esi
call fcn.0041fc6e
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00402366
mov esi, str.ArmUI.ini
push esi
call fcn.0041fc6e
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00402366
push edi
call fcn.00405689
pop ecx
test eax, eax
je 0x40585d
xor eax, eax
jmp 0x405860
push 2
pop eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041aa34
leave
ret
Function at 0x4058cc
Capabilities:
Get common file path

Disassembly:
push 0x218
mov eax, 0x434972
call fcn.0041aab0
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x224]
push str.GetPrimaryTokenFromExplorer...
call fcn.004020dd
xor edi, edi
lea eax, [ebp - 0x224]
push edi
push eax
push 2
mov dword [ebp - 4], edi
call fcn.00403273
mov ecx, dword [ebp - 0x224]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00401a54
call fcn.0040bda9
push eax
lea ecx, [ebp - 0x21c]
call fcn.00401320
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push edi
inc ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0041bfd0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4059b3
lea eax, [ebp - 0x218]
push eax
call fcn.0041fc6e
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040360e
mov edi, str.explorer.exe
push edi
call fcn.0041fc6e
pop ecx
push eax
push edi
lea ecx, [ebp - 0x21c]
call fcn.00402366
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], ebx
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.00405e21
add esp, 0xc
mov esi, eax
jmp 0x4059ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.GetWindowsDirectory_failed:
lea ecx, [ebp - 0x220]
mov esi, eax
call fcn.004020dd
push esi
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 2
push eax
push ebx
call fcn.00403273
mov ecx, dword [ebp - 0x220]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401a54
mov ecx, dword [ebp - 0x21c]
lea ecx, [ecx - 0x10]
call fcn.00401a54
mov eax, esi
call fcn.0041aa5a
ret
Function at 0x405a04
Capabilities:
Enumerate process modules

Disassembly:
push 0x2c
mov eax, 0x4349aa
call fcn.0041aa7c
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x1c], 1
push edi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [ebp - 0x2c], vtable.AutoHandle.0
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], edi
test ebx, ebx
je 0x405b28
cmp ebx, 0xffffffff
je 0x405b28
mov esi, edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], edi
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
push 4
lea eax, [ebp - 0x20]
push eax
push ebx
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x405aea
cmp byte [ebp + 0x10], 0
lea ecx, [ebp - 0x38]
push 0x20
pop esi
mov eax, 0x104
cmovne esi, eax
xor eax, eax
mov word [ebp - 0xe], ax
lea eax, [ebp - 0xe]
push eax
push esi
mov dword [ebp - 0x14], esi
call fcn.00403a3d
cmp byte [ebp + 0x10], 0
push esi
mov esi, dword [ebp - 0x38]
push esi
push dword [ebp - 0x20]
push ebx
je 0x405aa6
call sub.PSAPI.DLL_GetModuleFileNameExW
jmp 0x405aab
call sub.PSAPI.DLL_GetModuleBaseNameW
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x14]
jb 0x405aec
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x38]
xor eax, eax
add esi, esi
mov word [ebp - 0xe], ax
lea eax, [ebp - 0xe]
push eax
push esi
mov dword [ebp - 0x14], esi
call fcn.00403a3d
xor eax, eax
cmp dword [ebp - 0x18], 0x104
cmovbe eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x405a90
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x18]
jmp 0x405aec
mov eax, edi
xor ecx, ecx
cmp ecx, eax
sbb ebx, ebx
and ebx, dword [ebp - 0x1c]
cmp ebx, 1
jne 0x405b11
test esi, esi
je 0x405b07
push esi
call fcn.0041fc6e
pop ecx
mov edi, eax
mov ecx, dword [ebp + 0xc]
push edi
push esi
call fcn.0040360e
test esi, esi
je 0x405b2a
mov eax, dword [ebp - 0x30]
sub eax, esi
and eax, 0xfffffffe
push eax
push esi
call fcn.0040391e
pop ecx
pop ecx
jmp 0x405b2a
mov ebx, edi
test ebx, ebx
jne 0x405b36
mov ecx, dword [ebp + 0xc]
call fcn.004025a7
lea ecx, [ebp - 0x2c]
call fcn.00403fb5
mov eax, ebx
call fcn.0041aa45
ret
Function at 0x405b46
Capabilities:
Reference sql statements

Disassembly:
push 0x21c
mov eax, 0x4349f1
call fcn.0041aab0
mov edi, dword [ebp + 0x10]
mov ecx, edi
mov esi, dword [ebp + 0xc]
call fcn.004025a7
xor ebx, ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x220], ebx
push str.SELECT_Value_FROM_Property_WHERE_Property.Property
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 1
call fcn.004020dd
push 0x437d3c
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 2
push esi
push eax
call fcn.0040229e
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 3
push dword [eax - 0xc]
push eax
call fcn.00402366
mov ecx, dword [ebp - 0x228]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.00401a54
cmp dword [ebp - 0x21c], ebx
je 0x405bda
push dword [ebp - 0x21c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], ebx
push eax
push dword [ebp - 0x224]
push dword [ebp + 8]
call sub.msi.dll_MsiEnumClientsA
mov esi, eax
test esi, esi
jne 0x405c9f
push ebx
push dword [ebp - 0x21c]
call sub.msi.dll_MsiViewModify
mov esi, eax
test esi, esi
jne 0x405c9f
cmp dword [ebp - 0x220], eax
je 0x405c28
push dword [ebp - 0x220]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], ebx
push eax
push dword [ebp - 0x21c]
call sub.msi.dll_MsiDatabaseIsTablePersistentA
mov esi, eax
test esi, esi
jne 0x405c9f
mov eax, 0x104
push eax
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0041bfd0
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push dword [ebp - 0x220]
call sub.msi.dll_MsiRecordSetStreamA
mov esi, eax
test esi, esi
jne 0x405c9f
lea eax, [ebp - 0x218]
push eax
call fcn.0041fc6e
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.0040360e
mov ecx, dword [ebp - 0x224]
lea ecx, [ecx - 0x10]
call fcn.00401a54
cmp dword [ebp - 0x220], 0
je 0x405cc1
push dword [ebp - 0x220]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x21c], 0
je 0x405cd5
push dword [ebp - 0x21c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, esi
call fcn.0041aa5a
ret

Function at 0x405dca
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push esi
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x405e1a
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x407644
Capabilities:
Delete directory
Set file attributes

Disassembly:
push 0x28
mov eax, 0x434ea1
call fcn.0041aa7c
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
je 0x4077c1
cmp dword [eax - 0xc], 4
jb 0x4077c1
add eax, 0xfffffff0
push eax
call fcn.00402448
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
push 0x5c
push esi
mov byte [ebp - 4], 1
call fcn.0041d414
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x4076c9
sub ecx, esi
sar ecx, 1
cmp ecx, 0xffffffff
je 0x4076c9
mov eax, dword [esi - 0xc]
dec eax
cmp ecx, eax
jne 0x4076c9
push ecx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402a80
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004021f9
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00401a54
mov esi, str..
push esi
call fcn.0041fc6e
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00402366
lea ecx, [ebp - 0x34]
call fcn.0040d98a
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x34]
push 0
push esi
mov byte [ebp - 4], 3
call fcn.0040dc10
test eax, eax
je 0x407778
lea ecx, [ebp - 0x34]
call fcn.0040ddc0
lea ecx, [ebp - 0x34]
mov ebx, eax
call fcn.0040e1c0
test eax, eax
jne 0x407774
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040ded0
mov eax, dword [ebp - 0x34]
push 0x10
mov byte [ebp - 4], 4
mov edi, dword [eax + 0x38]
mov ecx, edi
call dword [0x43654c]
lea ecx, [ebp - 0x34]
call edi
test eax, eax
je 0x40775b
mov eax, dword [ebp - 0x14]
push ecx
add eax, 0xfffffff0
mov edi, esp
push eax
mov dword [ebp - 0x18], edi
call fcn.00402448
add eax, 0x10
pop ecx
mov dword [edi], eax
call fcn.00407644
jmp 0x407764
lea eax, [ebp - 0x14]
push eax
call fcn.0040414d
pop ecx
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.00401a54
test ebx, ebx
jne 0x4076fd
lea ecx, [ebp - 0x34]
call fcn.0040dbb0
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4077ae
push 0x186a0
lea eax, [ebp + 8]
push eax
push 2
call fcn.00403273
add esp, 0xc
lea ecx, [ebp - 0x34]
call fcn.0040db36
lea ecx, [esi - 0x10]
call fcn.00401a54
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x10]
call fcn.00401a54
call fcn.0041aa45
ret
Function at 0x407925
Capabilities:
Create process on windows

Disassembly:
push 0x64
mov eax, 0x434f2f
call fcn.0041aa7c
mov eax, dword [ebp + 0x10]
xor esi, esi
push 0x44
pop ebx
push ebx
mov edi, dword [eax]
lea eax, [ebp - 0x70]
push esi
push eax
mov dword [ebp - 0x1c], 0x20
call fcn.0041bfd0
push 0x10
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x70], ebx
push esi
push eax
mov dword [ebp - 0x68], str.winsta0default
call fcn.0041bfd0
add esp, 0x18
mov dword [ebp - 0x10], esi
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
push ebx
push edi
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x407984
mov dword [ebp - 0x1c], 0x420
jmp 0x4079b4
push str.CreateEnvironmentBlock_failed
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], esi
call fcn.004020dd
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], esi
push eax
push ebx
call fcn.00403273
mov ecx, dword [ebp - 0x18]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00401a54
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push str._Skip
push eax
call fcn.0040407d
mov eax, dword [ebp - 0x14]
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 4], ebx
mov eax, dword [eax - 0xc]
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040b742
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x407a28
push str.new_wchar_t_failed
lea ecx, [ebp - 0x18]
call fcn.004020dd
mov esi, 0x372
mov byte [ebp - 4], 2
push esi
lea eax, [ebp - 0x18]
push eax
push 1
call fcn.00403273
mov ecx, dword [ebp - 0x18]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401a54
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407ad3
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax - 0xc]
lea eax, [ecx + 1]
push eax
push ebx
call fcn.00422538
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp + 8]
push esi
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
push esi
push esi
push esi
push ebx
push dword [eax]
push edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x407a7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.CreateProcessAsUser_failed
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.004020dd
mov byte [ebp - 4], 3
jmp 0x407a8b
push str.CreateProcessAsUser_succeeded
lea ecx, [ebp - 0x1c]
call fcn.004020dd
mov byte [ebp - 4], 4
push esi
lea eax, [ebp - 0x1c]
push eax
push 1
call fcn.00403273
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401a54
cmp dword [ebp - 0x10], 0
je 0x407ab3
push dword [ebp - 0x10]
call sub.USERENV.dll_DestroyEnvironmentBlock
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0040b73d
pop ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401a54
mov eax, esi
call fcn.0041aa45
ret
Function at 0x4086c3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push dword [ebp + 0x14]
lea ecx, [ebp - 8]
xor esi, esi
call fcn.004020dd
mov eax, dword [ebp - 8]
mov edi, dword [eax - 0xc]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x408734
mov ecx, dword [ebp + 0x18]
cmp ecx, 1
je 0x40870f
cmp ecx, 2
je 0x40870f
push edi
jmp 0x408713
lea eax, [edi + edi]
push eax
push dword [ebp + 0x14]
push ecx
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.00401a54
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x408745
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0xf003f
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4087a9
push esi
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
test esi, esi
pop esi
cmove edi, eax
mov eax, edi
pop edi
leave
ret
Function at 0x414fc5
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x4358bd
call fcn.0041aae7
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [esi + 0x1c]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 8]
test ebx, ebx
jle 0x4150cf
cmp ebx, dword [esi + 0xc]
jge 0x4150cf
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x41501c
cmp ebx, dword [edi + 8]
jl 0x4150bd
cmp dword [ebp + 0xc], 0
je 0x4150bd
xor ebx, ebx
jmp 0x415056
xor ebx, ebx
push 0x10
mov dword [ebp - 4], ebx
call fcn.00414c52
mov edi, eax
test edi, edi
je 0x415036
mov dword [edi], vtable.CThreadData.0
jmp 0x415038
mov edi, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x14]
push edi
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
call fcn.00414f58
mov ecx, dword [esi + 0x14]
mov dword [eax], ecx
mov dword [esi + 0x14], edi
mov esi, dword [ebp - 0x14]
cmp dword [edi + 0xc], ebx
jne 0x415071
push 4
push dword [esi + 0xc]
call fcn.0040bd03
pop ecx
pop ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x415089
push 2
push 4
push dword [esi + 0xc]
call fcn.0040bd03
pop ecx
pop ecx
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x4150f6
mov ecx, dword [edi + 8]
mov dword [edi + 0xc], edx
mov eax, dword [esi + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push ebx
push eax
call fcn.0041bfd0
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [edi + 8], eax
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x4150cf
cmp ebx, dword [edi + 8]
jge 0x4150cf
mov eax, dword [ebp + 0xc]
mov dword [ecx + ebx*4], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0041aa45
ret 8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0040b7de
int3