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

Disassembly:
push 0x60
mov eax, 0x4345f5
call fcn.0041ab20
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
call fcn.004228a1
push eax
call fcn.004227c4
call fcn.004227a3
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.004200db
push 0x437078
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.004021ce
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], ebx
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004021ce
push str..txt
push eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 1
push eax
call fcn.004021ce
add esp, 0x38
mov ecx, dword [ebp - 0x40]
lea ecx, [ecx - 0x10]
call fcn.00401a18
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 4
lea ecx, [ecx - 0x10]
call fcn.00401a18
lea ecx, [ebp - 0x6c]
call fcn.0040cc86
push ebx
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
call fcn.0040208b
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 6
push eax
push 0x1021
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x6c]
call fcn.0040d1a0
test eax, eax
je 0x404430
lea ecx, [ebp - 0x6c]
call fcn.0040cf20
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x404433
mov ebx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x48]
add ecx, 0xfffffff0
mov dword [ebp - 0x58], vtable.CFileException.0
call fcn.00401a18
lea ecx, [ebp - 0x6c]
call fcn.0040ccb5
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.00401a18
mov eax, ebx
call fcn.0041aaca
ret
Function at 0x404950
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 0x404a05
mov eax, 0x100000
mov dword [ebp - 8], esi
push eax
mov dword [ebp - 4], eax
mov edi, esi
call fcn.00422789
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 0x4049f5
cmp dword [ebp - 8], 0
jbe 0x4049f5
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 0x4049d5
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 0x4049f1
push eax
push 0
push esi
call fcn.0041c040
add esp, 0xc
test edi, edi
je 0x404997
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0042258d
pop ecx
jmp 0x404a0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404f1d
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 0x404f48
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 0x4054df
Capabilities:
Enumerate process modules

Disassembly:
push 0x1c
mov eax, 0x43497b
call fcn.0041aaec
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.0040391a
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 0x405563
cmp dword [ebp - 0x14], ecx
jb 0x405559
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
add esi, esi
lea ecx, [ebp - 0x28]
push esi
call fcn.0040391a
mov edi, dword [ebp - 0x28]
mov ecx, esi
mov al, byte [ebp - 0xd]
shl ecx, 2
mov dword [ebp - 0x18], ecx
jmp 0x40556c
mov esi, dword [ebp - 0x14]
shr esi, 2
xor al, al
jmp 0x405569
xor al, al
xor esi, esi
xor ebx, ebx
mov byte [ebp - 0xd], al
test al, al
jne 0x40551f
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x40559c
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov dword [ebx + 4], eax
test esi, esi
je 0x405599
mov dword [ebp - 0x18], edi
push edi
mov ecx, ebx
call fcn.00403b2a
add edi, 4
sub esi, 1
jne 0x405586
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x1c]
test edi, edi
je 0x4055b1
mov ecx, dword [ebp - 0x20]
sub ecx, edi
and ecx, 0xfffffffc
push ecx
push edi
call fcn.0040384e
pop ecx
pop ecx
mov eax, ebx
call fcn.0041aab5
ret

Function at 0x4055b9
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 0x4055d3
Capabilities:
Get common file path

Disassembly:
push 8
mov eax, 0x4349a6
call fcn.0041aaec
call fcn.0040be29
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.00403263
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.004032e5
test edi, edi
jne 0x405642
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00402129
mov esi, str.AdobeARM1.0AdobeARM.exe
push esi
call fcn.0041fcde
pop ecx
mov ecx, dword [ebp + 8]
push eax
push esi
call fcn.00402296
xor esi, esi
inc esi
jmp 0x40566d
push str.SHGetFolderPath_in_GetARMExePath_failed:
lea ecx, [ebp - 0x14]
call fcn.0040200d
push edi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push 1
call fcn.004031a3
mov ecx, dword [ebp - 0x14]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401a18
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401a18
mov eax, esi
call fcn.0041aab5
ret
Function at 0x405680
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.0041c040
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 0x405705
lea eax, [ebp - 0x210]
push eax
call fcn.0041fcde
pop ecx
push eax
lea eax, [ebp - 0x210]
mov ecx, edi
push eax
call fcn.0040353e
mov esi, str.TempArmUI.ini
push esi
call fcn.0041fcde
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00402296
push edi
call fcn.004055b9
pop ecx
test eax, eax
jne 0x405789
mov ecx, edi
call fcn.004024d7
mov esi, 0x104
mov ecx, edi
push esi
call fcn.00403263
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
mov ecx, edi
mov esi, eax
call fcn.004032e5
test esi, esi
je 0x40578d
push 0x5c
push dword [edi]
call fcn.0041d484
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x405769
mov eax, dword [edi]
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x405769
mov eax, dword [eax - 0xc]
dec eax
cmp ecx, eax
je 0x405769
mov esi, 0x437078
push esi
call fcn.0041fcde
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00402296
mov esi, str.ArmUI.ini
push esi
call fcn.0041fcde
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00402296
push edi
call fcn.004055b9
pop ecx
test eax, eax
je 0x40578d
xor eax, eax
jmp 0x405790
push 2
pop eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041aaa4
leave
ret
Function at 0x4057fc
Capabilities:
Get common file path

Disassembly:
push 0x218
mov eax, 0x4349e2
call fcn.0041ab20
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x224]
push str.GetPrimaryTokenFromExplorer...
call fcn.0040200d
xor edi, edi
lea eax, [ebp - 0x224]
push edi
push eax
push 2
mov dword [ebp - 4], edi
call fcn.004031a3
mov ecx, dword [ebp - 0x224]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00401a18
call fcn.0040be29
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.0041c040
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4058e3
lea eax, [ebp - 0x218]
push eax
call fcn.0041fcde
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040353e
mov edi, str.explorer.exe
push edi
call fcn.0041fcde
pop ecx
push eax
push edi
lea ecx, [ebp - 0x21c]
call fcn.00402296
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], ebx
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.00405d4f
add esp, 0xc
mov esi, eax
jmp 0x40591e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.GetWindowsDirectory_failed:
lea ecx, [ebp - 0x220]
mov esi, eax
call fcn.0040200d
push esi
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 2
push eax
push ebx
call fcn.004031a3
mov ecx, dword [ebp - 0x220]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401a18
mov ecx, dword [ebp - 0x21c]
lea ecx, [ecx - 0x10]
call fcn.00401a18
mov eax, esi
call fcn.0041aaca
ret
Function at 0x405934
Capabilities:
Enumerate process modules

Disassembly:
push 0x2c
mov eax, 0x434a1a
call fcn.0041aaec
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 0x405a58
cmp ebx, 0xffffffff
je 0x405a58
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 0x405a1a
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.0040396d
cmp byte [ebp + 0x10], 0
push esi
mov esi, dword [ebp - 0x38]
push esi
push dword [ebp - 0x20]
push ebx
je 0x4059d6
call sub.PSAPI.DLL_GetModuleFileNameExW
jmp 0x4059db
call sub.PSAPI.DLL_GetModuleBaseNameW
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x14]
jb 0x405a1c
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.0040396d
xor eax, eax
cmp dword [ebp - 0x18], 0x104
cmovbe eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x4059c0
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x18]
jmp 0x405a1c
mov eax, edi
xor ecx, ecx
cmp ecx, eax
sbb ebx, ebx
and ebx, dword [ebp - 0x1c]
cmp ebx, 1
jne 0x405a41
test esi, esi
je 0x405a37
push esi
call fcn.0041fcde
pop ecx
mov edi, eax
mov ecx, dword [ebp + 0xc]
push edi
push esi
call fcn.0040353e
test esi, esi
je 0x405a5a
mov eax, dword [ebp - 0x30]
sub eax, esi
and eax, 0xfffffffe
push eax
push esi
call fcn.0040384e
pop ecx
pop ecx
jmp 0x405a5a
mov ebx, edi
test ebx, ebx
jne 0x405a66
mov ecx, dword [ebp + 0xc]
call fcn.004024d7
lea ecx, [ebp - 0x2c]
call fcn.00403ee5
mov eax, ebx
call fcn.0041aab5
ret
Function at 0x405a76
Capabilities:
Reference sql statements

Disassembly:
push 0x21c
mov eax, 0x434a61
call fcn.0041ab20
mov edi, dword [ebp + 0x10]
mov ecx, edi
mov esi, dword [ebp + 0xc]
call fcn.004024d7
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.0040200d
push 0x437d3c
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 2
push esi
push eax
call fcn.004021ce
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 3
push dword [eax - 0xc]
push eax
call fcn.00402296
mov ecx, dword [ebp - 0x228]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.00401a18
cmp dword [ebp - 0x21c], ebx
je 0x405b0a
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 0x405bcf
push ebx
push dword [ebp - 0x21c]
call sub.msi.dll_MsiViewModify
mov esi, eax
test esi, esi
jne 0x405bcf
cmp dword [ebp - 0x220], eax
je 0x405b58
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 0x405bcf
mov eax, 0x104
push eax
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0041c040
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 0x405bcf
lea eax, [ebp - 0x218]
push eax
call fcn.0041fcde
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.0040353e
mov ecx, dword [ebp - 0x224]
lea ecx, [ecx - 0x10]
call fcn.00401a18
cmp dword [ebp - 0x220], 0
je 0x405bf1
push dword [ebp - 0x220]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x21c], 0
je 0x405c05
push dword [ebp - 0x21c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, esi
call fcn.0041aaca
ret

Function at 0x405cfa
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 0x405d4a
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 0x407572
Capabilities:
Delete directory
Set file attributes

Disassembly:
push 0x28
mov eax, 0x434f11
call fcn.0041aaec
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
je 0x4076ef
cmp dword [eax - 0xc], 4
jb 0x4076ef
add eax, 0xfffffff0
push eax
call fcn.00402378
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
push 0x5c
push esi
mov byte [ebp - 4], 1
call fcn.0041d484
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x4075f7
sub ecx, esi
sar ecx, 1
cmp ecx, 0xffffffff
je 0x4075f7
mov eax, dword [esi - 0xc]
dec eax
cmp ecx, eax
jne 0x4075f7
push ecx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.004029b0
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00402129
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00401a18
mov esi, str..
push esi
call fcn.0041fcde
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00402296
lea ecx, [ebp - 0x34]
call fcn.0040da0a
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x34]
push 0
push esi
mov byte [ebp - 4], 3
call fcn.0040dc90
test eax, eax
je 0x4076a6
lea ecx, [ebp - 0x34]
call fcn.0040de40
lea ecx, [ebp - 0x34]
mov ebx, eax
call fcn.0040e240
test eax, eax
jne 0x4076a2
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040df50
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 0x407689
mov eax, dword [ebp - 0x14]
push ecx
add eax, 0xfffffff0
mov edi, esp
push eax
mov dword [ebp - 0x18], edi
call fcn.00402378
add eax, 0x10
pop ecx
mov dword [edi], eax
call fcn.00407572
jmp 0x407692
lea eax, [ebp - 0x14]
push eax
call fcn.0040407d
pop ecx
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.00401a18
test ebx, ebx
jne 0x40762b
lea ecx, [ebp - 0x34]
call fcn.0040dc30
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 0x4076dc
push 0x186a0
lea eax, [ebp + 8]
push eax
push 2
call fcn.004031a3
add esp, 0xc
lea ecx, [ebp - 0x34]
call fcn.0040dbb6
lea ecx, [esi - 0x10]
call fcn.00401a18
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x10]
call fcn.00401a18
call fcn.0041aab5
ret
Function at 0x407853
Capabilities:
Create process on windows

Disassembly:
push 0x64
mov eax, 0x434fa7
call fcn.0041aaec
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.0041c040
push 0x10
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x70], ebx
push esi
push eax
mov dword [ebp - 0x68], str.winsta0default
call fcn.0041c040
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 0x4078b2
mov dword [ebp - 0x1c], 0x420
jmp 0x4078e2
push str.CreateEnvironmentBlock_failed
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], esi
call fcn.0040200d
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], esi
push eax
push ebx
call fcn.004031a3
mov ecx, dword [ebp - 0x18]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00401a18
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push str._Skip
push eax
call fcn.00403fad
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.0040b7c2
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x407956
push str.new_wchar_t_failed
lea ecx, [ebp - 0x18]
call fcn.0040200d
mov esi, 0x372
mov byte [ebp - 4], 2
push esi
lea eax, [ebp - 0x18]
push eax
push 1
call fcn.004031a3
mov ecx, dword [ebp - 0x18]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401a18
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407a34
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax - 0xc]
lea eax, [ecx + 1]
push eax
push ebx
call fcn.004225a8
add esp, 0xc
lea ecx, [ebp - 0x18]
push str.command_line:
call fcn.0040200d
push esi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x18]
push eax
push 1
call fcn.00402a61
mov ecx, dword [ebp - 0x18]
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00401a18
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 0x4079db
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.CreateProcessAsUser_failed
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.0040200d
mov byte [ebp - 4], 4
jmp 0x4079ec
push str.CreateProcessAsUser_succeeded
lea ecx, [ebp - 0x1c]
call fcn.0040200d
mov byte [ebp - 4], 5
push esi
lea eax, [ebp - 0x1c]
push eax
push 1
call fcn.004031a3
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401a18
cmp dword [ebp - 0x10], 0
je 0x407a14
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.0040b7bd
pop ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401a18
mov eax, esi
call fcn.0041aab5
ret
Function at 0x40864a
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.0040200d
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 0x4086bb
mov ecx, dword [ebp + 0x18]
cmp ecx, 1
je 0x408696
cmp ecx, 2
je 0x408696
push edi
jmp 0x40869a
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.00401a18
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x4086cc
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 0x408730
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 0x415035
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x435935
call fcn.0041ab57
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 0x41513f
cmp ebx, dword [esi + 0xc]
jge 0x41513f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x41508c
cmp ebx, dword [edi + 8]
jl 0x41512d
cmp dword [ebp + 0xc], 0
je 0x41512d
xor ebx, ebx
jmp 0x4150c6
xor ebx, ebx
push 0x10
mov dword [ebp - 4], ebx
call fcn.00414cc2
mov edi, eax
test edi, edi
je 0x4150a6
mov dword [edi], vtable.CThreadData.0
jmp 0x4150a8
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.00414fc8
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 0x4150e1
push 4
push dword [esi + 0xc]
call fcn.0040bd83
pop ecx
pop ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4150f9
push 2
push 4
push dword [esi + 0xc]
call fcn.0040bd83
pop ecx
pop ecx
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x415166
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.0041c040
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 0x41513f
cmp ebx, dword [edi + 8]
jge 0x41513f
mov eax, dword [ebp + 0xc]
mov dword [ecx + ebx*4], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0041aab5
ret 8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0040b85e
int3