joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403a90
Capabilities:
Encode data using xor

Disassembly:
add ch, bl
adc eax, 0x4142a8
inc edx
in al, 0x55
adc eax, 0x4119a8
call 0xff691ea0
add esp, 4
pop edi
test eax, 0x5dff8bc7
ret
push ebp
push ebx
das
sbb dword [ecx + 0x75925692], 8
push edi
mov al, 0x46
or al, 0x85
sahf
jne 0x403ac4
mov eax, dword [esi + 0x824]
test eax, eax
outsb dx, byte [esi]
sbb byte [ecx + 0x41dbb4], ah
test eax, eax
je 0xd403c25
dec eax
mov dword [0xac02b4], eax
jmp 0x403c25
cmp dword [0x41024c], 1
jne 0x403ad7
mov edx, esp
adc byte [ebx - 0xc51b174], ah
push ebp
jge 0x403a63
mov ecx, dword [esi - 0x73]
mov eax, dword [0x97028c]
dec esi
lea esp, [ecx + 0x97028c]
cmp ecx, eax
je 0x403afb
ret 0xb861
mov eax, dword [0x4102ac]
mov ecx, dword [0x40d010]
cmp eax, ecx
jge 0x406925
mov esp, ebp
enter 0x410b, 0
mov edi, eax
pushal
out 5, eax
add edi, edx
inc eax
mov dword [0x4144ac], eax
call 0x486a00
mov dword [0x410b1d], eax
mov dword [0x410ba4], edx
mov dword [esi + 0x3e50], eax
mov esi, dword [ebp - 0x5c]
or eax, dword [ecx]
mov eax, dword [esi + 0x830]
add byte [eax], al
mov dword [esi + 0x854], edx
mov dword [edi], eax
mov ebp, esp
xor al, 8
add byte [eax], al
mov dword [edi - 0x47], ecx
mov ecx, dword [esi + 0x5d0838]
mov eax, dword [esi + 0x560830]
mov edx, dword [esi + 0xe334]
sub esp, ebx
mov eax, dword [esi - 0x37fff78b]
sbb eax, edx
test eax, eax
jg 0x403b87
jl 0x403b7a
loopne 0x403b41
jae 0x403b7e
xor ecx, ecx
xlatb
ror byte [ecx + 0x4789104f], 0x14
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], eax
mov ecx, dword [esi + 0x1c50]
mov eax, dword [esi + 0x830]
mov edx, dword [esi + 0x787f]
sub ecx, eax
mov eax, dword [esi + 0x200854]
sbb eax, edx
test eax, eax
jg 0x403bae
sbb al, 0
add byte [ebx + 0x83086], cl
add byte [ebx + 0x787f96], cl
add byte [ebx], ch
enter 0xffffffffffff868b, 0x54
or byte [eax], ah
add byte [ebx], bl
ret 0xc085
mov byte [eax*4 + 0x330373c9], 0x48
xor eax, dword [ecx]
xor ecx, dword [eax + 0x33]
add dword [ecx + 0x4789184f], ecx
sbb al, 0x8b
mov cs, word [eax + 8]
add byte [eax], al
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], eax
mov ecx, dword [esi + 0x848]
mov eax, dword [esi + 0xcd0840]
sahf
xchg esi, eax
inc esp
or byte [esi], cl
sub ecx, eax
mov eax, dword [esi + 0x845]
sbb edi, edi
stc
lea ecx, [eax - 0x7afb83f6]
leave
jae 0x403baa
xor ecx, ecx
inc esp
rcl byte [eax + 0x4f], 8
mov dword [edi + 0xc], eax
mov ecx, eax
adc al, 0xd0
inc eax
aaa
test ecx, ecx
ret 0x8b37
mov eax, dword [0x4117f8]
mov ecx, dword [esi + 4]
lea edx, [ebp - 0x76]
mov dword [ebp - 0x10], 0x4cd0
and eax, 0xa34d8950
call 0x58406200
mov ecx, dword [esi + 4]
sub eax, ebp
invalid
int3

Function at 0x405837
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esi + 4], 2
cmp dword [esi + 4], 2
xor bh, byte [ebx - 0xe]
push es
push 9
call fcn.00405bd0
mov esi, dword [esi + 8]
test esi, esi
jne 0x405808
mov esi, ebx
mov eax, dword [esi + 4]
mov esi, 0x8b0e74c0
push cs
push 0
push 0x67
push 0
push ecx
call 0x8da4b0
mov ebx, dword [0x11f68599]
sbb eax, 0x11f68599
sbb eax, 0x11f68599
in al, 0x5e
pop edi
pop ebx
mov esp, ebp
loopne 0x405807
nop
nop
cmc
nop
nop
nop
nop
nop
nop
nop
std
nop
Function at 0x406740
Capabilities:
Encode data using xor

Disassembly:
fisttp word [ebx - 0x48cf7414]
mov ecx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
sti
pop ecx
jge 0x40675d
mov edx, dword [esi + 0xc]
push 0
push edi
push esp
or al, 0xe8
jo 0x406767
Function at 0x662152e8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.6620d3f6
and dword [ebp - 4], 0
cmp dword [0x66242a40], 0
mov ebx, eax
jne 0x66215399
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x6621544a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x6621544a
push eax
call fcn.6620d384
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x66242a40], eax
call esi
push eax
call fcn.6620d384
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x66242a44], eax
call esi
push eax
call fcn.6620d384
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x66242a48], eax
call esi
push eax
call fcn.6620d384
pop ecx
mov dword [0x66242a50], eax
test eax, eax
je 0x66215399
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.6620d384
pop ecx
mov dword [0x66242a4c], eax
mov eax, dword [0x66242a4c]
cmp eax, ebx
je 0x662153f1
cmp dword [0x66242a50], ebx
je 0x662153f1
push eax
call fcn.6620d3ff
push dword [0x66242a50]
mov esi, eax
call fcn.6620d3ff
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x662153f1
test edi, edi
je 0x662153f1
call esi
test eax, eax
je 0x662153e8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x662153e8
test byte [ebp - 0xc], 1
jne 0x662153f1
or dword [ebp + 0x10], 0x200000
jmp 0x6621542a
mov eax, dword [0x66242a44]
cmp eax, ebx
je 0x6621542a
push eax
call fcn.6620d3ff
pop ecx
test eax, eax
je 0x6621542a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x6621542a
mov eax, dword [0x66242a48]
cmp eax, ebx
je 0x6621542a
push eax
call fcn.6620d3ff
pop ecx
test eax, eax
je 0x6621542a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x66242a40]
call fcn.6620d3ff
pop ecx
test eax, eax
je 0x6621544a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x6621544c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x438c7f
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov ebx, 0x438a14
dec eax
call fcn.00438cad
add edi, eax
or eax, eax
xor dword [ecx], ebx
and eax, edi
sub edi, 0xadbb4b8c
inc ecx
dec edi
cmp ecx, esi
jne fcn.00438c7f
dec eax
sub eax, 0xe3ad2591
add eax, eax
ret
Function at 0x401c50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x158
mov eax, dword [esp + 0x15c]
push esi
push edi
push eax
lea ecx, [esp + 0x60]
xor esi, esi
push 0x41730c
push ecx
mov dword [esp + 0x14], 0x44
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov word [esp + 0x44], 0xa
mov word [esp + 0x46], si
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
call fcn.00409f3d
add esp, 0xc
lea edx, [esp + 0x4c]
lea eax, [esp + 8]
lea ecx, [esp + 0x5c]
push edx
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
cmp edi, esi
je 0x401cfa
mov edx, dword [esp + 0x4c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x50]
push eax
call esi
mov eax, edi
pop edi
pop esi
add esp, 0x158
ret

Function at 0x401d10
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push ebp
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
lea edx, [esp + 0xc]
xor esi, esi
push edx
mov dword [esp + 0x10], 0x3c
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x2c], 1
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov edi, eax
cmp edi, esi
je 0x401da9
mov ecx, dword [esp + 0x44]
mov ebp, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea eax, [esp + 0x4c]
push eax
push ecx
call ebp
test eax, eax
je 0x401da9
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00406910
push 0xa
call esi
cmp dword [esp + 0x4c], 0x103
jne 0x401da9
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x4c]
push edx
push eax
call ebp
test eax, eax
jne 0x401d86
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x3c
ret
Function at 0x402f00
Capabilities:
Create process on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x25c
push esi
push edi
xor edi, edi
mov dword [esp + 8], 0x44
push edi
push str.MultiInstStat
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov word [esp + 0x40], 0xa
mov word [esp + 0x42], di
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
call fcn.00401740
push eax
call fcn.00401710
push eax
call fcn.00406bf0
add esp, 0x10
xor esi, esi
mov edx, 1
mov ecx, esi
shl edx, cl
test eax, edx
je 0x402f89
inc esi
cmp esi, 0x20
jl 0x402f76
lea eax, [esp + 0x5c]
push 0x104
push eax
push 0x41d1d4
push str.InstTo
call fcn.00401740
push eax
call fcn.00401710
push eax
call fcn.00406980
inc esi
push esi
call fcn.004017c0
lea ecx, [esp + 0x78]
push eax
push ecx
lea edx, [esp + 0x184]
push str.__sAAssist.bin___s
push edx
call fcn.00409f3d
add esp, 0x2c
lea eax, [esp + 0x4c]
lea ecx, [esp + 8]
lea edx, [esp + 0x160]
push eax
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403010
mov eax, dword [esp + 0x4c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x50]
push ecx
call esi
pop edi
pop esi
add esp, 0x25c
ret
push str._OK_
call fcn.004067b0
add esp, 4
pop edi
pop esi
add esp, 0x25c
ret

Function at 0x403030
Capabilities:
Set current directory

Disassembly:
sub esp, 0x108
lea eax, [esp + 1]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
push eax
push 0
call edi
lea ecx, [esp + 0xd]
push 0x5c
push ecx
call fcn.00409ea6
mov esi, eax
add esp, 8
test esi, esi
je 0x403120
lea edx, [esi + 1]
push 0x5c
push edx
call fcn.00409ea6
add esp, 8
test eax, eax
je 0x40308a
mov esi, eax
inc eax
push 0x5c
push eax
call fcn.00409ea6
add esp, 8
test eax, eax
jne 0x403078
cmp byte [esi - 1], 0x3a
je 0x403095
mov byte [esi], 0
jmp 0x403099
mov byte [esi + 1], 0
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [esp + 0xd]
push eax
call ebx
lea ecx, [esp + 0xd]
push 0x104
push ecx
push 0
call edi
lea edx, [esp + 0xd]
push 0x5c
push edx
call fcn.00409ea6
mov esi, eax
add esp, 8
test esi, esi
jne 0x4030cd
lea esi, [esp + 0xc]
lea eax, [esi + 1]
push 0x5c
push eax
call fcn.00409ea6
add esp, 8
test eax, eax
je 0x4030f1
mov esi, eax
inc eax
push 0x5c
push eax
call fcn.00409ea6
add esp, 8
test eax, eax
jne 0x4030df
lea edi, [esi + 1]
push 8
push str.Autorun_
push edi
call fcn.00413fc0
add esp, 0xc
test eax, eax
jne 0x403120
push 0x2e
push edi
call fcn.00409ea6
add esp, 8
test eax, eax
je 0x40311a
mov byte [eax], 0
add esi, 9
push esi
call ebx
pop edi
pop esi
pop ebx
add esp, 0x108
ret
Function at 0x403b30
Capabilities:
Get common file path

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x403ba6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 4]
push ecx
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x403b9c
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 4]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
mov eax, dword [esp]
je 0x403b91
mov edx, dword [esp + 4]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [esp]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, 1
add esp, 8
ret
mov ecx, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov eax, dword [esp]
push eax
mov edx, dword [eax]
call dword [edx + 8]
xor eax, eax
add esp, 8
ret
Function at 0x403ef0
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x214]
push ebp
push esi
mov al, byte [ebx]
push edi
cmp al, 0x7c
jne 0x404016
mov ebp, dword [esp + 0x21c]
inc ebx
push ebx
push ebp
call fcn.004065e0
push 0x5c
push ebx
call fcn.00409ea6
add esp, 0x10
test eax, eax
je 0x404009
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call fcn.00409ea6
mov byte [eax], 0
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
add esp, 8
lea edx, [esp + 0x114]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x114]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4170dc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x114]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x404009
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret
mov edi, dword [esp + 0x21c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4170dc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
inc eax
pop ebx
add esp, 0x208
ret
Function at 0x4040b0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x42c
lea eax, [esp + 8]
push eax
push 0x4181d0
call fcn.00413c8e
add esp, 8
test eax, eax
je 0x4040d5
xor eax, eax
add esp, 0x42c
ret
mov eax, dword [esp + 0xe]
test ah, 0x40
jne 0x4040e7
xor eax, eax
add esp, 0x42c
ret
push esi
push edi
mov dword [esp + 0xc], 1
call fcn.004031d0
mov esi, dword [esp + 0x438]
push str.Checker.exe
xor edi, edi
push str.Checker.exe
push esi
mov dword [0x41d530], edi
call fcn.004043d0
push str.UnInst.exe
push str.UnInst.exe
push esi
call fcn.004043d0
add esp, 0x18
test eax, eax
je 0x40422e
push ebx
push ebp
mov dword [esp + 0x10], edi
call fcn.00401800
push eax
lea ecx, [esp + 0x40]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallMajiroApp_s
push ecx
call fcn.00409f3d
add esp, 0xc
lea edx, [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [esp + 0x3c]
push edi
push edx
push edi
push 0xf003f
push edi
push edi
push edi
push eax
push 0x80000002
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4041a0
call fcn.00401800
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00401800
mov ecx, dword [esp + 0x14]
push eax
push 1
push 0
push str.DisplayName
push ecx
call ebp
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4041af
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x10]
push 0
push edx
push 0
push 0xf003f
push 0
push 0
lea eax, [esp + 0x54]
push 0
push eax
push 0x80000002
call ebx
test eax, eax
jne 0x404211
push esi
lea ecx, [esp + 0x240]
push str._sUnInst.exe
push ecx
call fcn.00409f3d
lea edi, [esp + 0x248]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0x23c]
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x20]
push str.UninstallString
push eax
call ebp
mov eax, dword [esp + 0x10]
xor edi, edi
pop ebp
cmp eax, edi
pop ebx
je 0x404224
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x41d530], 1
call fcn.00401770
cmp eax, 1
jg 0x404253
call fcn.00401990
push eax
call fcn.00401990
push eax
push esi
call fcn.004042a0
add esp, 0xc
test eax, eax
je 0x404280
jmp 0x40427c
call fcn.00401990
push eax
call fcn.00401990
push eax
push esi
call fcn.004043d0
push str.AAssist.bin
push str.AAssist.bin
push esi
call fcn.004042a0
add esp, 0x18
test eax, eax
je 0x404280
mov dword [esp + 0xc], edi
call fcn.004031b0
mov eax, dword [esp + 0xc]
pop edi
pop esi
add esp, 0x42c
ret
Function at 0x404820
Capabilities:
Get disk size

Disassembly:
sub esp, 0x114
mov ecx, dword [esp + 0x118]
lea eax, [esp + 0x10]
push ebx
push esi
push edi
push 0
push 0
push 0
push eax
push ecx
call fcn.0040a4e2
mov edi, 0x4170dc
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
pop edi
pop esi
test eax, eax
pop ebx
jne 0x4048a2
or eax, 0xffffffff
add esp, 0x114
ret
mov ecx, dword [esp + 4]
mov eax, 0x100000
imul ecx, dword [esp + 8]
cdq
idiv ecx
mov ecx, eax
mov eax, dword [esp]
cdq
idiv ecx
add esp, 0x114
ret
Function at 0x4048f0
Capabilities:
Create process on windows
Create process suspended
Get common file path
Self delete
Set current directory

Disassembly:
sub esp, 0x464
call fcn.004091c0
test eax, eax
je 0x404af6
push esi
lea eax, [esp + 0x364]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, dword [esp + 0x470]
push 0x3a
push esi
call fcn.00409ea6
add esp, 8
test eax, eax
push esi
je 0x404941
lea ecx, [esp + 0x268]
push ecx
call fcn.0040a6f0
add esp, 8
jmp 0x40495e
lea edx, [esp + 0x36c]
lea eax, [esp + 0x268]
push edx
push str._s_s
push eax
call fcn.00409f3d
add esp, 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x60]
push ebp
push ecx
push 0x104
call ebx
lea edx, [esp + 0x64]
push edx
call fcn.00403ac0
add esp, 4
call fcn.0040a6c7
push eax
call fcn.0040a6c7
push eax
lea eax, [esp + 0x170]
push str.makedir_fullaccess_d_d.bat
push eax
call fcn.00409f3d
lea edi, [esp + 0x178]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x74]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x4182e0
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x78]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x180]
push ecx
call fcn.00404b00
lea edx, [esp + 0x80]
push 0x4182dc
push edx
call fcn.0040a355
mov esi, eax
lea eax, [esp + 0x290]
push eax
push str.echo_y_cacls___s___p_everyone:F_n
push esi
call fcn.0040a68b
lea ecx, [esp + 0x198]
push ecx
push str.del___s__n
push esi
call fcn.0040a68b
lea edx, [esp + 0xa0]
push edx
push str.del___s__n
push esi
call fcn.0040a68b
add esp, 0x48
push esi
call fcn.0040a21d
add esp, 4
lea eax, [esp + 0x168]
push eax
push 0x104
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x168]
push ecx
call esi
xor eax, eax
mov dword [esp + 0x10], 0x44
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x54]
lea ecx, [esp + 0x10]
push edx
push ecx
push eax
push eax
push 0x40
push eax
push eax
lea edx, [esp + 0x80]
push eax
push edx
push eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], 1
mov word [esp + 0x68], ax
mov word [esp + 0x6a], ax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop ebp
pop ebx
test eax, eax
je 0x404aea
mov eax, dword [esp + 0x4c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0x50]
push ecx
call edi
lea edx, [esp + 0x368]
push edx
call esi
pop edi
pop esi
add esp, 0x464
ret
Function at 0x404bd0
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x208
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp]
push esi
push edi
mov edi, dword [esp + 0x214]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
ja 0x404c21
pop edi
mov eax, 1
pop esi
add esp, 0x208
ret
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 7], 0x5c
jne 0x404c81
lea esi, [esp + 8]
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
sub esi, 2
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dl, byte [ecx + esi]
push edx
call fcn.004048d0
add esp, 4
test eax, eax
jne 0x404c81
lea edi, [esp + 8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + esi], 0x3a
je 0x404c81
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 7], al
lea eax, [esp + 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 8]
push ecx
call fcn.00404cc0
add esp, 4
lea edx, [esp + 0x10c]
mov esi, eax
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, esi
pop edi
pop esi
add esp, 0x208
ret

Function at 0x404cc0
Capabilities:
Create directory
Set current directory

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebp
push esi
push edi
mov edi, dword [esp + 0x118]
mov ebp, 1
lea eax, [esp + 0x10]
push ebp
push eax
push edi
call fcn.00404d70
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call ebx
test eax, eax
jne 0x404d13
lea edx, [esp + 0x10]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x404d5c
lea eax, [esp + 0x10]
push eax
call fcn.004048f0
add esp, 4
lea esi, [esp + 0x10]
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x404d3d
test cl, cl
je 0x404d39
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x404d3d
add eax, 2
add esi, 2
test cl, cl
jne 0x404d19
xor eax, eax
jmp 0x404d42
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x404d4f
inc ebp
cmp ebp, 0x3e7
jl 0x404cdc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret