joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40526c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x42bfe8], 0x44
push eax
xor eax, eax
push 0x42bfe8
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4052a7
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405331
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004055e0
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x405365
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42ebe8], eax
jmp 0x4054f9
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x405383
test eax, eax
je 0x4054a4
test byte [ebp + 0xc], 2
je 0x4054a4
mov esi, 0x42afe8
push edi
push esi
call fcn.00405a0c
test ebx, ebx
je 0x4053a0
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4053a6
push edi
call fcn.00405546
cmp byte [edi], 0
jne 0x4053b4
cmp byte [0x42afe8], 0x5c
jne 0x4053bf
push 0x409010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40549a
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.0040552a
cmp byte [eax], 0
je 0x405405
cmp byte [ebp - 0x18], 0
je 0x405405
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x40541b
mov al, byte [esi + 1]
test al, al
je 0x405479
cmp al, 0x2e
jne 0x40541b
cmp byte [esi + 2], 0
je 0x405479
push esi
push ebx
call fcn.00405a0c
test byte [ebp - 0x148], 0x10
je 0x405440
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405479
push dword [ebp + 0xc]
push edi
call fcn.00405331
jmp 0x405479
push edi
call fcn.004056c4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405471
test byte [ebp + 0xc], 4
je 0x405469
push edi
push 0xfffffffffffffff1
call fcn.00404daa
push 0
push edi
call fcn.0040575a
jmp 0x405479
inc dword [0x42ebe8]
jmp 0x405479
push edi
push 0xfffffffffffffff2
call fcn.00404daa
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4053e3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x4054a4
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4054f9
cmp dword [ebp - 8], esi
jne 0x4054b9
inc dword [0x42ebe8]
jmp 0x4054f9
push edi
call fcn.00405d03
test eax, eax
je 0x4054f9
push edi
call fcn.004054ff
push edi
call fcn.004056c4
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4054f1
test byte [ebp + 0xc], 4
je 0x4054b1
push edi
push 0xfffffffffffffff1
call fcn.00404daa
push esi
push edi
call fcn.0040575a
jmp 0x4054f9
push edi
push 0xffffffffffffffe5
call fcn.00404daa
pop edi
pop esi
leave
ret 8
Function at 0x4055e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42b3e8
push esi
call fcn.00405a0c
push esi
call fcn.00405593
mov edi, eax
test edi, edi
jne 0x405601
xor eax, eax
jmp 0x405653
push edi
call fcn.00405c6a
test byte [0x42eb78], 0x80
je 0x40561a
mov al, byte [edi]
test al, al
je 0x4055fd
cmp al, 0x5c
je 0x4055fd
sub edi, esi
jmp 0x405632
call fcn.00405d03
test eax, eax
je 0x40562c
test byte [eax], 0x10
je 0x4055fd
push esi
call fcn.00405546
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x40561e
call fcn.004054ff
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4056c4
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4056e0
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4056e3
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405712
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405756
test edi, edi
jne 0x40571d
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405750
Function at 0x40575a
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405d2a
test eax, eax
mov esi, dword [esp + 0x18]
je 0x40577e
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x4058b7
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x42c170], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x42c170
je 0x4057c2
push 1
push 0
push esi
call fcn.004056e3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4058bd
cmp eax, edi
jg 0x4058bd
mov esi, 0x42bbe8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4058bd
cmp eax, edi
jg 0x4058bd
push esi
push ebp
push str._s_s_r_n
push 0x42b7e8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42eb70]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405a2e
push 4
push 0xc0000000
push esi
call fcn.004056e3
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x4058b7
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4058b0
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4058b0
cmp edi, dword [esp + 0x18]
jne 0x4058b0
push str._Rename__r_n
push esi
call fcn.00405658
test eax, eax
jne 0x4058c4
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405a0c
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x42b7e8
push eax
call fcn.004056a4
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x42ebf0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409330
push eax
call fcn.00405658
test eax, eax
je 0x40587b
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x4058eb
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x4058e0
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x40587d
Function at 0x405d96
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x405dcd
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405da7
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da2
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dfe
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x405de0
pop edi
not eax
pop esi
ret 0xc
Function at 0x5e06b3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
test byte [eax + 0x6c], ch
or bl, byte [ebx]
call 0xe18e9e97
add dword [edi + 0x5272608e], ecx
xchg ebp, eax
das
pop ds
jb 0x5e073c
jmp 0xe1893b55
or dword fs:[edi + 0x402e12f], ecx
aaa
mov dword [esi + 0x1a], eax
das
loope 0x5e07b3
pushfd
sbb cl, ah
add dword [ecx], edx
dec esi
insb byte es:[edi], dx
mov al, ch
jno 0x5e0784
pop ds
aas
sbb ecx, dword cs:[ecx]
xchg edi, eax
push ds
xchg ecx, eax
add dword [esi + 0xb11a1b5], ecx
lodsb al, byte [esi]
loope 0x5e0767
pop dword [ebp - 0x50080392]
and eax, dword [ecx]
invalid
test dword [esi - 4], ebp
imul dword [edi - 0x4c01fedd]
jmp 0x5e0773
das
sub ebp, dword [eax - 0x68]
das
loope 0x5e077b
add dword [eax], ecx
or byte [ebp - 0x58ebcd63], ch
lodsd eax, dword [esi]
popfd
xor dl, byte [edi]
add al, 0x12
je 0x5e07b9
loope 0x5e0787
invalid
lea ecx, [eax - 0x1ed07027]
jecxz 0x5e07ce
and byte [esi - 7], 0xff
das
invalid
xor dword [ecx + 0x68], eax
leave
out dx, eax
imul esi, dword cs:[esi + esi + 0x3796f779], 0x87d46837
mov ebx, 0x74700d21
xchg ebp, eax
je 0x5e074a
ljmp 0xb3fe:0xe72c6708
out 0xfe, eax
mov bl, 0xe4
add dword [edi + 0x2726892f], ecx
das
loope 0x5e079e
daa
sbb ebx, dword cs:[0x794f173f]
mov gs, word [edi]
xor al, dl
jb 0x5e0850
cdq
xchg ebp, eax
xor al, 0x23
mov byte [ecx - 0x271ed0da], bh
daa
sbb byte [esi], bh
add dword [edi - 0x68fc76d1], ecx
das
loope 0x5e0779
dec esi
and dh, ch
xor al, 0xf9
pushal
sal dword [ecx], 1
fnstcw word [esi]
push ds
invalid

Function at 0x5e7009
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5e7024
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124ac249]
pop edx
test eax, eax
je 0x5e70f6
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5e70e5
test dword [ebp - 0x2a8], 1
jne 0x5e70e5
and dword [ebp - 0x2a8], 0x100
jne 0x5e70e5
push esi
push edx
push 4
push esi
call dword [edx + 0x122d2d39]
pop edx
pop esi
test eax, eax
je 0x5e7088
jmp 0x5e70e5
cmp word [esi], 0x5a4d
jne 0x5e70e5
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5e70e5
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d2d0d]
pop edx
test eax, eax
je 0x5e70e5
lea eax, [ebp - 0x28c]
push eax
call fcn.005e6f65
test eax, eax
jne 0x5e70de
jmp 0x5e70e5
mov eax, esi
jmp 0x5e70f6
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5e7024
pop esi
leave
ret 4
Function at 0x442024
Capabilities:
Packed with generic packer

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add al, byte [eax]
add byte [eax], al
cld
scasd eax, dword es:[edi]
invalid
clc
jmp 0x44202a
pushal
jmp 0x442034
call 0x442040
jg 0x441fea
add al, 0x49
loopne 0x442098
in eax, 0x5e
jae 0x442047
retf
add esi, 0xffffffc7
jmp 0x442057
cmp dword [esi], 0
clc
jae 0x442060
jnp 0x4420a3
dec edx
je 0x4420ee
jmp 0x44206e
mov edi, esi
jae 0x442074
and ecx, dword [ecx - 0x7d]
mov byte [ebx + ebp*8], 4
movsb byte es:[edi], byte [esi]
sub cl, dh
dec ebx
add esi, 4
jmp 0x44207d
mov eax, dword [esi]
jmp 0x442084
add eax, esi
clc
jmp 0x44208f
mov edx, dword [esi + 4]
jmp 0x44209d
invalid
sub dword [eax], 0x38a856d
jmp 0x4420aa
add eax, 4
jmp 0x4420b8
sub edx, 1
clc
jae 0x4420c0
adc al, 0x8a
jne 0x442092
jmp 0x4420ca
add esi, 8
jmp 0x4420d1
sub dword [edi], 1
clc
jae 0x4420d8
cdq
jne 0x442077
stc
jb 0x4420e3
pop ebp
pop ebx
mov ebx, esi
jb 0x4420e9
imul eax, dword [ebp + 0xee8], 0
call fcn.004420fc
jmp 0x4420f2
popal
stc
jmp 0x4420f7
jmp loc.0043bfd0
Function at 0x4017f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40cecd
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4120a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp + 8]
call fcn.00403180
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x40186a
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402fa0
mov eax, dword [ebp - 0x34]
jmp 0x401948
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4018a3
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402fa0
mov eax, dword [ebp - 0x38]
jmp 0x401948
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp - 0x1c]
mov dword [ecx], edx
mov eax, dword [ebp - 0x18]
mov dword [ecx + 4], eax
push 4
push 0x1000
mov ecx, dword [ebp + 0x28]
mov edx, dword [ecx]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 0x24]
mov dword [ecx], eax
push 0
mov edx, dword [ebp + 0x2c]
push edx
mov eax, dword [ebp + 0x28]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0x24]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp + 0x24]
cmp dword [edx], 0
jne 0x40191f
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402fa0
mov eax, dword [ebp - 0x3c]
jmp 0x401948
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402fa0
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x401e90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40cf8f
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4120a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.ALLUSERSPROFILE
call fcn.00406f5c
add esp, 4
push eax
lea ecx, [ebp - 0x64]
call fcn.00402e90
mov dword [ebp - 4], 0
push 0x40e2b0
lea ecx, [ebp - 0x64]
call fcn.00403050
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x68], esp
push str.CFBtbHd9cH1wbHoB
call fcn.00402b00
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00401580
add esp, 0x20
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x7c], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x7c]
push edx
lea ecx, [ebp - 0x64]
call fcn.00403020
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00402fa0
push 0x40e2c8
lea ecx, [ebp - 0x64]
call fcn.00403050
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x6c], esp
push str.B3ZveH1zgjZvfG8D
call fcn.00402b00
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x48]
push eax
call fcn.00401580
add esp, 0x20
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x88], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x88]
push edx
lea ecx, [ebp - 0x64]
call fcn.00403020
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00402fa0
lea ecx, [ebp - 0x64]
call fcn.00403180
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x70], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00402fa0
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004054ee
mov esp, ebp
pop ebp
ret
Function at 0x4028d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x4120a0]
xor eax, ebp
mov dword [ebp - 8], eax
push 3
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 4], eax
mov dword [ebp - 0x48], 0
jmp 0x402915
mov ecx, dword [ebp - 0x48]
add ecx, 1
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
cmp edx, dword [ebp - 0x28]
jge 0x40291f
jmp 0x40290c
push 0x40e3f8
lea ecx, [ebp - 0x24]
call fcn.00402e90
push 0x40e3fc
lea ecx, [ebp - 0x44]
call fcn.00402e90
mov eax, dword [ebp + 0x10]
push eax
call fcn.00406fd6
add esp, 4
test eax, eax
je 0x4029a7
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x44]
call fcn.00403000
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x24]
call fcn.00403000
push 0x40e400
lea ecx, [ebp - 0x64]
call fcn.00402e90
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x44]
call fcn.00404140
shl eax, 1
push eax
lea ecx, [ebp - 0x44]
call fcn.00403180
push eax
call fcn.00404b40
add esp, 0xc
lea ecx, [ebp - 0x64]
call fcn.00403180
push eax
lea ecx, [ebp - 0x44]
call fcn.00403000
lea ecx, [ebp - 0x64]
call fcn.00402fa0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x68], esp
lea edx, [ebp - 0x44]
push edx
call fcn.00402d90
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x6c], esp
lea eax, [ebp - 0x24]
push eax
call fcn.00402d90
call fcn.00402220
add esp, 0x38
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0x44]
call fcn.00402fa0
lea ecx, [ebp - 0x24]
call fcn.00402fa0
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004054ee
mov esp, ebp
pop ebp
ret 0x10

Function at 0x404ac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x404af6
xor eax, eax
jmp 0x404b2f
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x404b20
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x404b2f
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4054ee
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4120a0]
jne 0x4054f8
repz ret
jmp fcn.00408d8c
Function at 0x40c8ad
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4120a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00408830
and dword [ebp - 0x14], 0
cmp dword [0x4139d4], 0
mov dword [ebp - 0x18], eax
jne 0x40c960
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40ca08
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40ca08
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4139d4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4139d8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4139dc], eax
call edi
push eax
call esi
mov dword [0x4139e4], eax
test eax, eax
je 0x40c960
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4139e0], eax
mov eax, dword [0x4139e0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c9b9
cmp dword [0x4139e4], ecx
je 0x40c9b9
push eax
call esi
push dword [0x4139e4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c9b9
test ebx, ebx
je 0x40c9b9
call edi
test eax, eax
je 0x40c9b0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c9b0
test byte [ebp - 8], 1
jne 0x40c9b9
or dword [ebp + 0x10], 0x200000
jmp 0x40c9ec
mov eax, dword [0x4139d8]
cmp eax, dword [ebp - 0x18]
je 0x40c9ec
push eax
call esi
test eax, eax
je 0x40c9ec
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c9ec
mov eax, dword [0x4139dc]
cmp eax, dword [ebp - 0x18]
je 0x40c9ec
push eax
call esi
test eax, eax
je 0x40c9ec
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4139d4]
call esi
test eax, eax
je 0x40ca08
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40ca0a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004054ee
leave
ret
Function at 0x40a411
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417354]
jne 0x40a41b
repz ret
jmp fcn.0040efec

Function at 0x412cf4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040cf8d
and dword [ebp - 0x14], 0
cmp dword [0x439ec8], 0
mov dword [ebp - 0x18], eax
jne 0x412da7
push 0x40374c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x412e4f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403740
push ebx
call edi
test eax, eax
je 0x412e4f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403730
push ebx
mov dword [0x439ec8], eax
call edi
push eax
call esi
push 0x40371c
push ebx
mov dword [0x439ecc], eax
call edi
push eax
call esi
push 0x403700
push ebx
mov dword [0x439ed0], eax
call edi
push eax
call esi
mov dword [0x439ed8], eax
test eax, eax
je 0x412da7
push 0x4036e8
push ebx
call edi
push eax
call esi
mov dword [0x439ed4], eax
mov eax, dword [0x439ed4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x412e00
cmp dword [0x439ed8], ecx
je 0x412e00
push eax
call esi
push dword [0x439ed8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x412e00
test ebx, ebx
je 0x412e00
call edi
test eax, eax
je 0x412df7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x412df7
test byte [ebp - 8], 1
jne 0x412e00
or dword [ebp + 0x10], 0x200000
jmp 0x412e33
mov eax, dword [0x439ecc]
cmp eax, dword [ebp - 0x18]
je 0x412e33
push eax
call esi
test eax, eax
je 0x412e33
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x412e33
mov eax, dword [0x439ed0]
cmp eax, dword [ebp - 0x18]
je 0x412e33
push eax
call esi
test eax, eax
je 0x412e33
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x439ec8]
call esi
test eax, eax
je 0x412e4f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x412e51
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a411
leave
ret
Function at 0x414c30
Capabilities:
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1000
call fcn.004142c0
cmp dword [0x46b19c], 0x37
jne 0x414ca6
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push 0x404020
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea eax, [esp + 0x404]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x404040
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push 0x404058
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea edx, [esp + 0x804]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov eax, dword [0x46bd80]
mov edx, dword [0x4681fc]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1000
ret