joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ed20
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x612120]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x1000
call fcn.00438100
push 0x208
mov ebx, eax
call fcn.00438100
add esp, 8
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x14], eax
test ebx, ebx
je 0x40edf3
lea eax, [ebp - 8]
push eax
push 0x1000
push ebx
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x40edf3
mov eax, dword [ebp - 8]
shr eax, 2
push esi
xor esi, esi
mov dword [ebp - 8], eax
test eax, eax
je 0x40edf2
push edi
nop word [eax + eax]
push dword [ebx + esi*4]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40eddc
push 0x104
push dword [ebp - 0xc]
push 0
push edi
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
test eax, eax
je 0x40edd5
push str.Creative_Cloud.exe
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40edd5
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebx + esi*4]
jne 0x40ede4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x40ed90
jmp 0x40edf1
mov eax, dword [ebx + esi*4]
push edi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
push ebx
call fcn.00438109
push dword [ebp - 0xc]
call fcn.00438109
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, dword [ebp - 0x10]
xor ecx, ebp
pop ebx
call fcn.00564ee1
mov esp, ebp
pop ebp
ret

Function at 0x4142f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591b3a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x612120]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.00563347
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x4143b0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.00567a61
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x60d1bc
push eax
call fcn.00567ae3
push edi
push esi
call fcn.0056368f
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00564ee1
mov esp, ebp
pop ebp
ret 4
Function at 0x416d10
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591ff3
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x612120]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor bh, bh
mov esi, dword [ebp + 8]
push 0x250
mov dword [ebp - 0x27c], eax
lea eax, [ebp - 0x278]
push 0
push eax
call fcn.00568da0
add esp, 0xc
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
mov word [ebp - 0x28], ax
push 0xffffffffffffffff
push eax
push esi
call fcn.00407320
push 4
push str..
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0040e970
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x278]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x416ec7
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov bh, 1
xor bl, bl
test byte [ebp - 0x278], 0x10
je 0x416e10
lea eax, [ebp - 0x24c]
push eax
call esi
cmp eax, 2
jne 0x416df4
mov ecx, 0x2e
cmp cx, word [ebp - 0x24c]
je 0x416e12
cmp cx, word [ebp - 0x24a]
jmp 0x416e0e
lea eax, [ebp - 0x24c]
push eax
call esi
cmp eax, 1
jne 0x416e10
mov eax, 0x2e
cmp ax, word [ebp - 0x24c]
je 0x416e12
mov bl, 1
test bl, bl
je 0x416eaa
xor eax, eax
mov dword [ebp - 0x280], 7
mov dword [ebp - 0x284], 0
mov word [ebp - 0x294], ax
cmp word [ebp - 0x24c], ax
je 0x416e5f
lea eax, [ebp - 0x24c]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416e50
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x294]
call fcn.004081c0
mov ecx, dword [ebp - 0x27c]
lea eax, [ebp - 0x294]
push eax
mov byte [ebp - 4], 1
call fcn.00407fe0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x280]
cmp eax, 8
jb 0x416eaa
inc eax
lea ecx, [ebp - 0x294]
push eax
push dword [ebp - 0x294]
call fcn.00407210
lea eax, [ebp - 0x278]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x416dc4
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x416edc
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00407210
mov al, bh
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00564ee1
mov esp, ebp
pop ebp
ret 8
Function at 0x418150
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590338
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x612120]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x41827e
cmp byte [ebx + 0x3d], 0
je 0x41827e
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x4181a9
xor al, al
jmp 0x418280
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00417f80
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x41820f
sub eax, 1
je 0x418213
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x418266
xor bl, bl
jmp 0x418268
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x418248
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00570c69
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x41820b
cmp byte [ebx + 0x3d], 0
je 0x418266
test esi, esi
jne 0x4181d1
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00403580
jmp 0x4181ce
mov bl, 1
cmp ecx, 0x10
jb 0x41827a
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004032e0
mov al, bl
jmp 0x418280
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00564ee1
mov esp, ebp
pop ebp
ret

Function at 0x419a50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0
push 0
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
test edi, edi
jne 0x419a6f
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
push esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056d099
mov esi, eax
add esp, 4
test esi, esi
je 0x419aa7
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
test eax, eax
jne 0x419aaf
call fcn.0056d094
add esp, 4
pop esi
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
call fcn.00408080
push esi
call fcn.0056d094
add esp, 4
mov al, 1
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x419b70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x612120]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0x2b
lea eax, [ebp - 0x20c]
mov esi, ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x419bae
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00564ee1
mov esp, ebp
pop ebp
ret
push str.Adobe
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00571486
add esp, 0xc
cmp word [ebp - 0x20c], 0
jne 0x419bd5
xor ecx, ecx
jmp 0x419bef
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419be0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004081c0
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00564ee1
mov esp, ebp
pop ebp
ret

Function at 0x419c10
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x612120]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0x26
lea eax, [ebp - 0x20c]
mov esi, ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x419c4e
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00564ee1
mov esp, ebp
pop ebp
ret
cmp word [ebp - 0x20c], 0
jne 0x419c5c
xor ecx, ecx
jmp 0x419c74
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419c65
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004081c0
push 0x1b
push str.AdobeAdobe_Creative_Cloud
mov ecx, esi
call fcn.0040e970
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00564ee1
mov esp, ebp
pop ebp
ret

Function at 0x419ee0
Capabilities:
Check if file exists
Create directory

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x419eed
mov eax, dword [esi]
jmp 0x419eef
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x419f10
cmp dword [esi + 0x14], 8
jb 0x419f02
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
pop esi
setne al
ret
cmp dword [esi + 0x14], 8
jb 0x419f18
mov esi, dword [esi]
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov esi, eax
test esi, esi
je 0x419f81
mov eax, dword [0x61e0e8]
test eax, eax
je 0x419f5c
push esi
push 0x5eb1f0
push 0x5e83dc
push 0x5e83dc
push str.FileUtils
push str.OOBEUtils
push 0x32
call eax
add esp, 0x1c
xor eax, eax
test esi, esi
sete al
pop esi
ret
mov ecx, dword [0x61e0ec]
test ecx, ecx
je 0x419f81
mov eax, dword [ecx]
push esi
push 0x5eb1f0
push str.FileUtils
push 0x5e83dc
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x18
xor eax, eax
test esi, esi
pop esi
sete al
ret
Function at 0x419f90
Capabilities:
Check if file exists
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5922e8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x612120]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x419fc9
mov eax, dword [esi]
jmp 0x419fcb
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41a031
mov eax, dword [0x61e0e8]
test eax, eax
je 0x41a006
push str.Source_file_does_not_exist_in_CopyFileFromSourceToDestination
push 0x5e83dc
push 0x5e83dc
push str.FileUtils
push str.OOBEUtils
push 0x32
call eax
add esp, 0x18
xor al, al
jmp 0x41a138
mov ecx, dword [0x61e0ec]
test ecx, ecx
je 0x41a02a
mov eax, dword [ecx]
push str.Source_file_does_not_exist_in_CopyFileFromSourceToDestination
push str.FileUtils
push 0x5e83dc
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x14
xor al, al
jmp 0x41a138
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00407320
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00419cb0
push ecx
lea ecx, [ebp - 0x28]
call fcn.00419ee0
add esp, 4
cmp dword [edi + 0x14], 8
jb 0x41a076
mov eax, dword [edi]
jmp 0x41a078
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x41a080
mov esi, dword [esi]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x41a10b
cmp dword [0x61e0e8], eax
je 0x41a0ce
cmp dword [edi + 0x14], 8
jb 0x41a09e
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Failed_to_copy_file_at_the_destination:_s._LastError:__d
push 0x5e83dc
push 0x5e83dc
push str.FileUtils
push str.OOBEUtils
push 0x32
call dword [0x61e0e8]
add esp, 0x20
xor bl, bl
jmp 0x41a121
mov esi, dword [0x61e0ec]
test esi, esi
je 0x41a107
cmp dword [edi + 0x14], 8
jb 0x41a0e0
mov edi, dword [edi]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Failed_to_copy_file_at_the_destination:_s._LastError:__d
push str.FileUtils
push 0x5e83dc
push 0x32
push dword [0x61e0ec]
call dword [esi + 0x34]
add esp, 0x1c
xor bl, bl
jmp 0x41a121
cmp dword [edi + 0x14], 8
jb 0x41a113
mov edi, dword [edi]
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov bl, 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x41a136
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00407210
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00564ee1
mov esp, ebp
pop ebp
ret
Function at 0x41e9e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41e9f5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41ea36
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x41ea32
nop word [eax + eax]
cmp esi, edx
jae 0x41ea36
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x41ea20
cmp esi, edx
jb 0x41ea3b
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x41f460
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x612120]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x234], ecx
push esi
push 0xf
mov dword [ebp - 0x238], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x41f4fa
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
mov ecx, dword [ebp - 0x234]
call fcn.00407130
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x41f4eb
mov edx, dword [ebp - 0x238]
push ecx
mov ecx, dword [ebp - 0x228]
call fcn.0041f370
add esp, 4
test al, al
je 0x41f4eb
inc esi
lea eax, [ebp - 0x230]
push eax
push edi
call ebx
test eax, eax
jne 0x41f4b4
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00564ee1
mov esp, ebp
pop ebp
ret
Function at 0x41f8e0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x612120]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x20c], 0x101
push eax
lea eax, [ebp - 0x208]
mov esi, ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x41f97f
cmp word [ebp - 0x208], 0
jne 0x41f944
xor ecx, ecx
lea eax, [ebp - 0x208]
push ecx
push eax
mov ecx, esi
call fcn.004081c0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00564ee1
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x208]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f950
sub ecx, edx
lea eax, [ebp - 0x208]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004081c0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00564ee1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00564ee1
mov esp, ebp
pop ebp
ret

Function at 0x41fa60
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x612120]
xor eax, esp
mov dword [esp + 0x1c], eax
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41fab1
lea eax, [esp + 4]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x41fac2
push dword [esp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00564ee1
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 4]
push 0
push 0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
push 0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
push 0
push dword [esp + 0x14]
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [esp]
test eax, eax
je 0x41faab
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
mov al, 1
xor ecx, esp
call fcn.00564ee1
mov esp, ebp
pop ebp
ret
Function at 0x429430
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x612120]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x8c], 1
jne 0x429474
call fcn.00429380
test al, al
jne 0x429474
mov eax, dword [ebx]
test eax, eax
je 0x42946d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
mov ecx, edi
call fcn.0042b110
cmp dword [edi + 0x60], 8
lea esi, [edi + 0x4c]
jb 0x429481
mov eax, dword [esi]
jmp 0x429483
mov eax, esi
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x429514
cmp dword [esi + 0x14], 8
jb 0x4294ab
mov esi, dword [esi]
push 0
push 0x80
push 1
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x4294e0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00564ee1
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x8c], 1
lea ecx, [ebp - 0xc]
push 0
push ecx
jne 0x4294fd
mov dword [ebp - 8], 0xfeff
lea ecx, [ebp - 8]
push 2
jmp 0x42950c
mov word [ebp - 8], 0xbbef
lea ecx, [ebp - 8]
mov byte [ebp - 6], 0xbf
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00564ee1
mov esp, ebp
pop ebp
ret 4
Function at 0x429530
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593316
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x612120]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x429635
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], eax
mov word [ebp - 0x248], ax
cmp word [ebp - 0x218], ax
jne 0x4295ae
xor ecx, ecx
jmp 0x4295c6
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4295b7
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.004081c0
xor bl, bl
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
push 0
cmovae eax, dword [ebp - 0x248]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x42960a
cmp eax, 0xb7
je 0x42960a
cmp eax, 0x50
jne 0x42960c
mov bl, 1
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x42962a
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00407210
test bl, bl
jne 0x429635
xor al, al
jmp 0x429756
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
jne 0x42965f
xor ecx, ecx
jmp 0x42967f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x429670
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.004081c0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
cmp word [esi], ax
jne 0x4296bf
xor ecx, ecx
jmp 0x4296d3
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4296c4
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x260]
call fcn.004081c0
lea edx, [ebp - 0x260]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.0042fcf0
mov byte [ebp - 4], 0
mov bl, al
mov ecx, dword [ebp - 0x24c]
cmp ecx, 8
jb 0x429719
inc ecx
push ecx
push dword [ebp - 0x260]
lea ecx, [ebp - 0x260]
call fcn.00407210
test bl, bl
je 0x429736
lea ecx, [edi + 0x4c]
lea eax, [ebp - 0x230]
cmp ecx, eax
je 0x429734
push 0xffffffffffffffff
push 0
push eax
call fcn.00407320
mov bl, 1
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x429754
inc ecx
push ecx
push dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
call fcn.00407210
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00564ee1
mov esp, ebp
pop ebp
ret 4
Function at 0x429990
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x612120]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov esi, edi
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4299b0
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
sar esi, 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
add esi, esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push dword [ebx + 0x68]
call esi
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 4
push 0x5ecbd8
push dword [ebx + 0x68]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00564ee1
mov esp, ebp
pop ebp
ret 4

Function at 0x429a20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x612120]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov esi, edi
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x429a40
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push dword [ebx + 0x68]
call esi
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 2
push 0x5ecbd4
push dword [ebx + 0x68]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00564ee1
mov esp, ebp
pop ebp
ret 4