joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4291a8
Capabilities:
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, eax
mov ebx, edi
mov eax, esi
call fcn.00423391
test al, al
jne 0x429399
mov ecx, edi
call fcn.00428420
cmp dword [esi + 0x18], 8
jb 0x4291d9
mov esi, dword [esi + 4]
jmp 0x4291dc
add esi, 4
push 0x8000080
push 3
push 1
push 0x80000000
push esi
call fcn.00422d23
mov esi, eax
add esp, 0x14
mov dword [ebp - 0x10], esi
cmp esi, 0xffffffff
je 0x429399
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 1]
push eax
push esi
mov dword [ebp - 8], ebx
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x429392
cmp dword [ebp - 8], 1
jne 0x429392
cmp dword [edi + 0x18], 8
jb 0x429238
mov eax, dword [edi + 4]
jmp 0x42923b
lea eax, [edi + 4]
push 0x80
push 2
push ebx
push 0x40000000
push eax
call fcn.00422d23
mov edi, eax
add esp, 0x14
mov dword [ebp - 0x1c], edi
cmp edi, 0xffffffff
je 0x429392
push ebx
lea eax, [ebp - 0xc]
push eax
push 2
push 0x44963c
push edi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x429386
cmp dword [ebp - 0xc], 2
jne 0x429386
or byte [ebp - 1], 1
mov esi, 0x100
push esi
call fcn.00410cae
pop ecx
mov dword [ebp - 0x18], eax
xor ecx, ecx
movsx edx, byte [ebp - 1]
imul edx, ecx
and edx, 0xff
mov byte [edx + eax], cl
inc ecx
cmp ecx, esi
jl 0x42929c
mov esi, 0x2800
push esi
call fcn.00410cae
pop ecx
mov edi, eax
mov dword [ebp - 0x20], 1
jmp 0x429321
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x42935a
mov dword [ebp - 0x14], ebx
jbe 0x4292ff
mov ecx, dword [ebp - 0x14]
mov dl, byte [ebp - 0x20]
lea eax, [ecx + edi]
mov dword [ebp - 0x24], eax
movzx eax, byte [eax]
add dl, cl
mov ecx, dword [ebp - 0x18]
xor dl, byte [eax + ecx]
mov eax, dword [ebp - 0x24]
inc dword [ebp - 0x14]
mov byte [eax], dl
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x14], eax
jb 0x4292d8
add dword [ebp - 0x20], eax
push ebx
lea ecx, [ebp - 0xc]
push ecx
push eax
push edi
push dword [ebp - 0x1c]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x429338
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jne 0x429338
push ebx
lea eax, [ebp - 8]
push eax
push esi
push edi
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4292c8
push edi
call fcn.00410f30
pop ecx
push dword [ebp - 0x18]
call fcn.00410f30
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x1c]
call esi
jmp 0x429399
push edi
call fcn.00410f30
pop ecx
push dword [ebp - 0x18]
call fcn.00410f30
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x1c]
call esi
mov ecx, dword [ebp + 8]
call fcn.00428420
mov al, 1
jmp 0x42939b
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
jmp 0x429356
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4293a0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0xa8
mov eax, 0x4404d9
call fcn.00412710
mov esi, dword [ebp + 8]
xor ebx, ebx
test byte [0x458020], 1
jne 0x4293e4
or dword [0x458020], 1
push ebx
mov ecx, 0x458004
mov dword [0x45801c], 0xf
call fcn.00401801
push 0x4434db
call fcn.0041133a
pop ecx
cmp dword [esi + 0x14], ebx
jne 0x4294ae
cmp dword [0x458018], ebx
jne 0x4294ae
lea eax, [ebp - 0x94]
push eax
call fcn.004280ba
cmp dword [eax + 0x18], 8
pop ecx
jb 0x429411
mov eax, dword [eax + 4]
jmp 0x429414
add eax, 4
push 0x8000080
push 3
push 1
push 0x80000000
push eax
call fcn.00422d23
add esp, 0x14
push ebx
push 1
lea esi, [ebp - 0x94]
mov dword [ebp - 0x18], eax
call fcn.0040115a
cmp dword [ebp - 0x18], 0xffffffff
jne 0x429449
xor al, al
jmp 0x42961b
mov esi, 0x2800
push esi
call fcn.00410cae
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
pop ecx
push ebx
lea ecx, [ebp + 8]
push ecx
push esi
mov dword [ebp - 0x14], eax
push eax
jmp 0x429485
cmp dword [ebp + 8], ebx
je 0x4294aa
push dword [ebp + 8]
mov eax, 0x458004
push dword [ebp - 0x14]
call fcn.00404305
push ebx
lea eax, [ebp + 8]
push eax
push esi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov dword [ebp + 8], ebx
call edi
test eax, eax
jne 0x429467
push dword [ebp - 0x14]
call fcn.00410f30
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x42961b
mov bl, 1
jmp 0x429491
mov ecx, esi
call fcn.00428420
mov dword [ebp - 4], ebx
cmp dword [0x458018], ebx
jne 0x4294d5
mov dword [ebp - 0x24], str.contents_is_empty
push 0x44d6fc
lea eax, [ebp - 0x24]
push eax
call fcn.004122ab
cmp dword [esi + 0x18], 8
jb 0x4294e0
mov eax, dword [esi + 4]
jmp 0x4294e3
lea eax, [esi + 4]
push 0x80
push 2
push ebx
push 0x40000000
push eax
call fcn.00422d23
mov esi, eax
add esp, 0x14
cmp esi, 0xffffffff
jne 0x429511
mov dword [ebp - 0x20], str.error_opening_file_for_writing
push 0x44d6fc
lea eax, [ebp - 0x20]
jmp 0x4294cf
cmp dword [0x45801c], 0x10
mov eax, dword [0x458008]
mov dword [ebp - 0x14], ebx
jae 0x429527
mov eax, 0x458008
push ebx
lea ecx, [ebp - 0x14]
push ecx
push dword [0x458018]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x429556
mov eax, dword [0x458018]
cmp eax, dword [ebp - 0x14]
jne 0x429556
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x42961b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], str.error_writing_file
push 0x44d6fc
lea eax, [ebp - 0x1c]
jmp 0x4294cf
call fcn.004127b5
ret
Function at 0x429621
Capabilities:
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
push edi
jne 0x4296cb
mov eax, esi
call fcn.00423391
test al, al
je 0x42964a
mov al, 1
jmp 0x429719
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x429657
mov eax, dword [edi]
jmp 0x429659
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [esi + 0x18], 8
mov dword [ebp - 8], eax
jb 0x42966d
mov eax, dword [edi]
jmp 0x42966f
mov eax, edi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, ebx
call fcn.00428420
cmp dword [ebx + 0x18], 8
lea eax, [ebx + 4]
mov dword [ebp - 4], eax
jb 0x429690
mov eax, dword [eax]
cmp dword [esi + 0x18], 8
jb 0x429698
mov edi, dword [edi]
push 3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4296e3
mov eax, ebx
call fcn.004235eb
test al, al
je 0x4296e3
cmp dword [ebx + 0x18], 8
mov eax, dword [ebp - 4]
jb 0x4296bc
mov eax, dword [eax]
push dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x429643
cmp dword [esi + 0x18], 8
jb 0x4296d6
mov eax, dword [esi + 4]
jmp 0x4296d9
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ecx, esi
call fcn.00428713
pop ecx
test al, al
je 0x429717
cmp dword [ebx + 0x18], 8
jb 0x4296fe
mov ebx, dword [ebx + 4]
jmp 0x429701
add ebx, 4
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, esi
call fcn.00428420
jmp 0x429643
xor al, al
pop edi
pop ebx
leave
ret
Function at 0x42aef9
Capabilities:
Terminate process

Disassembly:
push 8
mov eax, 0x43fc1b
call fcn.004126dd
and dword [ebp - 4], 0
push 0x10
push 0x449a58
push 0x449e60
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
sub esp, 0x1c
lea eax, [ebp + 8]
mov esi, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.004010aa
call fcn.0042aeb4
add esp, 0x1c
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x42b022
Capabilities:
Terminate process

Disassembly:
push 0x190
mov eax, 0x43fd10
call fcn.00412746
xor ebx, ebx
mov dword [ebp - 0x164], ebx
cmp byte [0x457cc0], bl
je 0x42b04e
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42b041
push 0x7530
push 0xea60
lea eax, [ebp - 0x15c]
push eax
mov byte [0x457cc0], 1
call fcn.00435f29
push 0xffffffffffffffff
lea eax, [ebp - 0x180]
push str.0x004000e0
push eax
mov dword [ebp - 4], ebx
call fcn.00424901
add esp, 0xc
push 0xffffffffffffffff
mov edi, 0x456a50
push edi
xor ebx, ebx
mov byte [ebp - 4], 1
call fcn.004010d2
push ebx
push 1
lea esi, [ebp - 0x180]
mov byte [ebp - 4], bl
call fcn.0040115a
cmp dword [0x456a64], 0xa
jne 0x42b0e2
push 2
push edi
lea esi, [ebp - 0x180]
call fcn.00401ae8
mov byte [ebp - 4], 2
push 0x449840
mov dword [ebp - 0x164], 1
call fcn.00403f05
mov byte [ebp - 0x15d], 1
test eax, eax
je 0x42b0e8
mov byte [ebp - 0x15d], bl
mov dword [ebp - 4], ebx
test byte [ebp - 0x164], 1
je 0x42b102
push ebx
push 1
lea esi, [ebp - 0x180]
call fcn.0040115a
cmp byte [ebp - 0x15d], bl
je 0x42b166
push 0xffffffffffffffff
push edi
push 2
pop ebx
lea esi, [ebp - 0x19c]
call fcn.00401ae8
mov ebx, eax
mov byte [ebp - 4], 3
call fcn.0042354f
push 0xffffffffffffffff
push dword [eax]
lea eax, [ebp - 0x180]
push eax
call fcn.00424901
add esp, 0xc
push 0xffffffffffffffff
push edi
xor ebx, ebx
mov byte [ebp - 4], 4
call fcn.004010d2
push ebx
push 1
lea esi, [ebp - 0x180]
call fcn.0040115a
push ebx
push 1
lea esi, [ebp - 0x19c]
mov byte [ebp - 4], bl
call fcn.0040115a
mov edx, edi
lea ecx, [ebp - 0x15c]
call fcn.00435b8e
push str._launch_info
lea esi, [ebp - 0x180]
call fcn.00401916
mov eax, esi
push eax
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 5
call fcn.00435b79
push ebx
push 1
mov byte [ebp - 4], bl
call fcn.0040115a
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x164], esp
push 0x4569a8
call fcn.00401424
lea ecx, [ebp - 0x180]
call fcn.00437503
add esp, 0x1c
push eax
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 6
call fcn.00437176
push ebx
push 1
lea ecx, [ebp - 0x19c]
call fcn.0040173a
push ebx
push 1
lea ecx, [ebp - 0x180]
call fcn.0040173a
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x42c16e
Capabilities:
Read file on windows

Disassembly:
push 0x28
mov eax, 0x440299
call fcn.004126dd
push 3
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x42afae
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
xor esi, esi
push esi
push fcn.0042b022
push 0x100
call fcn.00425cfc
add esp, 0xc
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, 0x2800
push edi
mov dword [ebp - 0x18], eax
call fcn.00410cae
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
pop ecx
push esi
lea ecx, [ebp - 0x10]
push ecx
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esi
push eax
jmp 0x42c208
push dword [ebp - 0x10]
lea esi, [ebp - 0x34]
push dword [ebp - 0x14]
call fcn.00404f07
and dword [ebp - 4], 0
push 0xffffffffffffffff
push 0
mov esi, 0x4569a8
call fcn.0040442e
or dword [ebp - 4], 0xffffffff
xor esi, esi
push esi
push 1
lea ecx, [ebp - 0x34]
call fcn.0040173a
push esi
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call ebx
cmp dword [ebp - 0x10], esi
jne 0x42c1ce
push dword [ebp - 0x14]
call fcn.00410f30
pop ecx
call fcn.0042b022
int3
Function at 0x43742b
Capabilities:
Encode data using xor

Disassembly:
push 0x30
mov eax, 0x43e80a
call fcn.00412746
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], esi
cmp dword [ebp + 0x1c], esi
jne 0x437465
push 0x446bf0
call fcn.004018b3
push esi
push 1
lea ecx, [ebp + 8]
call fcn.0040173a
mov eax, edi
jmp 0x4374fd
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
call fcn.00401801
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x3c], eax
dec eax
lea esi, [ebp - 0x2c]
call fcn.00404226
xor edi, edi
lea eax, [ebp + 8]
call fcn.004042d2
movzx eax, byte [eax]
push ebx
push eax
call fcn.004373f2
cmp dword [ebp - 0x3c], ebx
pop ecx
pop ecx
mov dword [ebp - 0x30], ebx
jle 0x4374d8
mov edi, dword [ebp - 0x30]
lea eax, [ebp + 8]
call fcn.004042d2
movzx eax, byte [eax]
mov al, byte [eax + 0x4578c0]
xor al, byte [ebp - 0x30]
lea edi, [ebp - 0x2c]
mov byte [ebp - 0x38], al
push dword [ebp - 0x38]
call fcn.0040424b
inc dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x3c]
jl 0x4374a8
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
push eax
call fcn.00401424
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0040173a
push 0
push ebx
lea ecx, [ebp + 8]
call fcn.0040173a
mov eax, dword [ebp - 0x34]
call fcn.004127c9
ret

Function at 0x437503
Capabilities:
Encode data using xor

Disassembly:
push 0x2c
mov eax, 0x43e83f
call fcn.00412746
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], edi
cmp dword [ebp + 0x1c], edi
jne 0x43753d
push 0x446bf0
call fcn.004018b3
push edi
push 1
lea ecx, [ebp + 8]
call fcn.0040173a
mov eax, esi
jmp 0x4375e4
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
call fcn.00401801
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x34], eax
inc eax
lea esi, [ebp - 0x2c]
call fcn.00404226
call fcn.00422e5f
mov byte [ebp - 0x30], al
movzx eax, al
push edi
push eax
call fcn.004373f2
pop ecx
pop ecx
push dword [ebp - 0x30]
mov edi, esi
call fcn.0040424b
mov esi, dword [ebp - 0x34]
and dword [ebp - 0x30], 0
test esi, esi
jle 0x4375bf
mov edi, dword [ebp - 0x30]
lea eax, [ebp + 8]
call fcn.004042d2
mov cl, byte [ebp - 0x30]
movzx eax, byte [eax]
inc cl
movzx ecx, cl
xor ecx, eax
mov al, byte [ecx + 0x4578c0]
mov byte [ebp - 0x34], al
push dword [ebp - 0x34]
lea edi, [ebp - 0x2c]
call fcn.0040424b
inc dword [ebp - 0x30]
cmp dword [ebp - 0x30], esi
jl 0x43758b
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x2c]
push eax
call fcn.00401424
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0040173a
push 0
push ebx
lea ecx, [ebp + 8]
call fcn.0040173a
mov eax, dword [ebp - 0x38]
call fcn.004127c9
ret
Function at 0x437b48
Capabilities:
Create process on windows

Disassembly:
push 0x94
mov eax, 0x43e311
call fcn.004126dd
mov esi, ecx
push 0x44
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.004146f0
mov ecx, dword [esi + 0x84]
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi + 0x30]
lea eax, [ecx + eax + 4]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00410cae
add esp, 0x10
mov edi, eax
push 0x22
pop eax
mov word [edi], ax
cmp dword [esi + 0x88], 8
mov eax, dword [esi + 0x84]
jb 0x437baf
mov ecx, dword [esi + 0x74]
jmp 0x437bb2
lea ecx, [esi + 0x74]
add eax, eax
push eax
push ecx
lea eax, [edi + 2]
push eax
call fcn.00413300
mov eax, dword [esi + 0x84]
add esp, 0xc
push 0x22
pop ecx
mov word [edi + eax*2 + 2], cx
mov eax, dword [esi + 0x84]
push 0x20
pop ecx
mov word [edi + eax*2 + 4], cx
cmp dword [esi + 0x34], 8
jb 0x437be9
mov ecx, dword [esi + 0x20]
jmp 0x437bec
lea ecx, [esi + 0x20]
mov eax, dword [esi + 0x84]
push ecx
lea eax, [edi + eax*2 + 6]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push 0xa
pop eax
mov word [ebp - 0x38], ax
lea eax, [esi + 0x8c]
cmp dword [eax + 0x18], 8
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x68], 0x44
mov byte [ebp - 0xd], 1
jb 0x437c28
mov eax, dword [eax + 4]
jmp 0x437c2b
add eax, 4
cmp dword [esi + 0x88], 8
jb 0x437c39
mov ecx, dword [esi + 0x74]
jmp 0x437c3c
lea ecx, [esi + 0x74]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x68]
push edx
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x437cb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xa0]
call fcn.00423a1f
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x84]
push str.launch_error_
push eax
call fcn.00403c93
add esp, 0xc
add esi, 0xa8
push esi
mov byte [ebp - 4], 1
call fcn.00401938
push 0
push 1
lea esi, [ebp - 0x84]
call fcn.0040115a
push 0
push 1
lea esi, [ebp - 0xa0]
call fcn.0040115a
mov byte [ebp - 0xd], 0
jmp 0x437cc8
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
mov dword [esi + 0xc8], eax
push edi
call fcn.00410f30
mov al, byte [ebp - 0xd]
pop ecx
call fcn.004127b5
ret

Function at 0x438a5d
Capabilities:
Set file attributes

Disassembly:
push ecx
mov ecx, esi
call fcn.00437e3b
test al, al
jne 0x438a6b
pop ecx
ret
call fcn.00422c6a
cmp dword [esi + 0x88], 8
jb 0x438a7e
mov eax, dword [esi + 0x74]
jmp 0x438a81
lea eax, [esi + 0x74]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, esi
call fcn.00437b48
test al, al
setne al
pop ecx
ret
Function at 0x438d35
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43dcfb
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x20c4
call fcn.0041b5d0
mov eax, dword [0x455534]
xor eax, esp
mov dword [esp + 0x20c0], eax
push ebx
push esi
push edi
mov eax, dword [0x455534]
xor eax, esp
push eax
lea eax, [esp + 0x20d8]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [esp + 0xcc]
push eax
xor ebx, ebx
push 0x1000
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x438daf
push 0x44668c
call fcn.00401916
mov eax, esi
jmp 0x438fb0
xor eax, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc8], 7
mov dword [esp + 0xc4], ebx
mov word [esp + 0xb4], ax
mov dword [esp + 0x20e0], ebx
cmp word [esp + 0xcc], bx
je 0x438f8c
mov edi, 0x446804
mov eax, dword [esp + 0x14]
cmp eax, 0x1000
jae 0x438f74
lea eax, [esp + eax*2 + 0xcc]
push eax
lea esi, [esp + 0x98]
call fcn.00401916
mov byte [esp + 0x20e0], 1
mov eax, dword [esp + 0xa8]
cmp eax, ebx
je 0x438f5e
cmp dword [esp + 0xac], 8
mov ecx, dword [esp + 0x14]
lea eax, [ecx + eax + 1]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x98]
jae 0x438e47
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x438f34
cmp dword [esp + 0xac], 8
mov eax, dword [esp + 0x98]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
jae 0x438e77
lea eax, [esp + 0x98]
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x438f34
push dword [esp + 0x20]
lea eax, [esp + 0x28]
push dword [esp + 0x20]
push eax
call fcn.004239d1
mov esi, eax
push edi
lea eax, [esp + 0xa4]
push eax
lea eax, [esp + 0x70]
push eax
mov byte [esp + 0x20f8], 2
call fcn.00403c02
push esi
push eax
lea eax, [esp + 0x98]
push eax
mov byte [esp + 0x2104], 3
call fcn.00403c48
push edi
push eax
lea eax, [esp + 0x6c]
push eax
mov byte [esp + 0x2110], 4
call fcn.00403c02
add esp, 0x30
push 0xffffffffffffffff
push ebx
lea esi, [esp + 0xb8]
mov byte [esp + 0x20e8], 5
call fcn.004028e7
push ebx
push 1
lea esi, [esp + 0x48]
call fcn.0040115a
push ebx
push 1
lea esi, [esp + 0x80]
call fcn.0040115a
push ebx
push 1
lea esi, [esp + 0x64]
call fcn.0040115a
push ebx
push 1
lea esi, [esp + 0x2c]
call fcn.0040115a
push ebx
push 1
lea esi, [esp + 0x9c]
mov byte [esp + 0x20e8], bl
call fcn.0040115a
mov eax, dword [esp + 0x14]
cmp word [esp + eax*2 + 0xcc], bx
jne 0x438de9
jmp 0x438f74
push ebx
push 1
lea esi, [esp + 0x9c]
mov byte [esp + 0x20e8], bl
call fcn.0040115a
mov eax, dword [esp + 0xc4]
cmp eax, ebx
je 0x438f8c
dec eax
lea ecx, [esp + 0xb0]
call fcn.00401a23
mov esi, dword [esp + 0x18]
lea eax, [esp + 0xb0]
push eax
call fcn.004010aa
push ebx
push 1
lea esi, [esp + 0xb8]
call fcn.0040115a
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20c0]
xor ecx, esp
call fcn.00410f21
mov esp, ebp
pop ebp
ret
Function at 0x438fd4
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
and dword [ebp - 4], 0
push esi
push 0x40
pop esi
push esi
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.004146f0
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x48], esi
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
jne 0x439013
mov esi, dword [ebp + 8]
push 0x44668c
call fcn.00401916
mov eax, esi
jmp 0x439027
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push dword [ebp + 8]
call fcn.004239d1
mov eax, dword [ebp + 8]
add esp, 0xc
pop esi
leave
ret
Function at 0x1000ae40
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10014b80
push 0x1000d3a0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10016014]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], pe_nt_image_headers32
mov eax, dword [ecx]
mov edi, dword [eax + 0x28]
mov dword [ebp - 0x40], edi
test edi, edi
jne 0x1000aea9
xor eax, eax
jmp 0x1000b01f
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000afea
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x1000afea
push str.AllocateAndInitializeSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000afea
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x24]
push ecx
call eax
test eax, eax
je 0x1000afea
push str.GetLengthSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000afea
push dword [ebp - 0x28]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x1000afea
push str.InitializeAcl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000afea
push 2
push dword [ebp - 0x30]
push esi
call eax
test eax, eax
je 0x1000afea
push str.AddAccessAllowedAce
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000afea
push dword [ebp - 0x28]
push 0x10000000
push 2
push esi
call eax
test eax, eax
je 0x1000afea
push str.SetSecurityDescriptorDacl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x1000afea
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x1000afd3
push 0
push ecx
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x1000afc0
mov ebx, 1
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x2c], 0
je 0x1000afd0
jmp 0x1000afea
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
push 0
push esi
push 1
push dword [ebp - 0x34]
call eax
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.1000b046
test ebx, ebx
jne 0x1000b01d
test esi, esi
je 0x1000b00f
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1000b01d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1000d049
mov esp, ebp
pop ebp
ret 0xc