joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41eace
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x485f38]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41eb0e
cmp byte [ebx], 0xa
jne 0x41eb0e
or byte [eax + edi + 0x28], 4
jmp 0x41eb13
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41ec11
mov al, byte [edx]
cmp al, 0x1a
je 0x41ebf3
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41eb42
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41eb67
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41eb71
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41eb24
jmp 0x41ec11
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ebee
cmp dword [ebp - 0xc], 0
je 0x41ebee
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x485f38]
test byte [eax + edi + 0x28], 0x48
je 0x41ebc8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ebb3
mov byte [esi], dl
jmp 0x41ebc4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x485f38]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41ec11
cmp byte [ebp - 1], 0xa
jne 0x41ebd7
cmp esi, ebx
jne 0x41ebd7
mov byte [esi], 0xa
jmp 0x41ec10
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041877e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41ec11
mov byte [esi], 0xd
jmp 0x41ec10
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x485f38]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ec0d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ec11
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41ec1a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x485f38]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ec5d
cmp word [esi], dx
jne 0x41ec5d
or byte [edi + eax + 0x28], 4
jmp 0x41ec62
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41edb5
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41ed95
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41eca4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41ecda
cmp eax, edx
jae 0x41ece6
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41ec7c
jmp 0x41edb5
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ed91
cmp dword [ebp - 0x14], 0
je 0x41ed91
mov eax, dword [ebx*4 + 0x485f38]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41ed69
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41ed32
mov word [esi], cx
jmp 0x41ed65
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x485f38]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x485f38]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x485f38]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41edb5
pop ebx
cmp word [ebp - 4], bx
jne 0x41ed7a
cmp esi, dword [ebp + 0xc]
jne 0x41ed7a
mov word [esi], bx
jmp 0x41edb2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041877e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41edb5
push 0xd
jmp 0x41edae
mov ecx, dword [ebx*4 + 0x485f38]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41edac
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41edb5
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x421550
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42157d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42157d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x47bfd3
Capabilities:
Packed with generic packer

Disassembly:
push edx
mov edx, 0x64
jmp 0x47bff6
mov ecx, 0x1000
jmp 0x47bfe7
add eax, ecx
add eax, ebx
dec ecx
or ecx, ecx
jne 0x47bfe2
push edx
push esp
push esp
call dword [sym.imp.kernel32.dll_lstrcpy]
pop edx
dec edx
or edx, edx
jne 0x47bfdb
pop edx
jmp section..data_2
Function at 0x402a7c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42ec10]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402af7
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x402afe
cmp dword [ebp + 0x10], ebx
jne 0x402aeb
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a7c
test eax, eax
jne 0x402afe
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x402abe
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405e35
cmp eax, ebx
je 0x402b23
push ebx
push dword [0x42ec10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402af7
cmp dword [0x42ec10], ebx
jne 0x402af4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402af4
jmp 0x402af7
Function at 0x40531e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x42bfd0], 0x44
push eax
xor eax, eax
push 0x42bfd0
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 0x405359
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4053ff
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.004056b5
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x405433
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42ebe8], eax
jmp 0x4055cc
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x405451
test eax, eax
je 0x405577
test byte [ebp + 0xc], 2
je 0x405577
mov esi, 0x42afd0
push edi
push esi
call fcn.00405ae9
test ebx, ebx
je 0x40546e
push str..
push esi
call fcn.00405b0c
jmp 0x405474
push edi
call fcn.00405619
cmp byte [edi], 0
jne 0x405482
cmp byte [0x42afd0], 0x5c
jne 0x40548d
push 0x409010
push edi
call fcn.00405b0c
push edi
call fcn.00405aff
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 0x40556d
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.004055fd
cmp byte [eax], 0
je 0x4054d3
cmp byte [ebp - 0x18], 0
je 0x4054d3
lea esi, [ebp - 0x18]
mov al, byte [esi]
cmp al, 0x2e
jne 0x4054ee
cmp byte [esi + 1], 0
je 0x40554c
cmp al, al
jne 0x4054ee
cmp byte [esi + 1], al
jne 0x4054ee
cmp byte [esi + 2], 0
je 0x40554c
push esi
push ebx
call fcn.00405ae9
test byte [ebp - 0x148], 0x10
je 0x405513
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40554c
push dword [ebp + 0xc]
push edi
call fcn.004053ff
jmp 0x40554c
push edi
call fcn.0040579f
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405544
test byte [ebp + 0xc], 4
je 0x40553c
push edi
push 0xfffffffffffffff1
call fcn.00404e52
push 0
push edi
call fcn.00405836
jmp 0x40554c
inc dword [0x42ebe8]
jmp 0x40554c
push edi
push 0xfffffffffffffff2
call fcn.00404e52
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4054b1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x405577
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4055cc
cmp dword [ebp - 8], esi
jne 0x40558c
inc dword [0x42ebe8]
jmp 0x4055cc
push edi
call fcn.00405e0e
test eax, eax
je 0x4055cc
push edi
call fcn.004055d2
push edi
call fcn.0040579f
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4055c4
test byte [ebp + 0xc], 4
je 0x405584
push edi
push 0xfffffffffffffff1
call fcn.00404e52
push esi
push edi
call fcn.00405836
jmp 0x4055cc
push edi
push 0xffffffffffffffe5
call fcn.00404e52
pop edi
pop esi
leave
ret 8
Function at 0x4056b5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42b3d0
push esi
call fcn.00405ae9
push esi
call fcn.00405666
mov edi, eax
test edi, edi
jne 0x4056d6
xor eax, eax
jmp 0x405728
push edi
call fcn.00405d75
test byte [0x42eb78], 0x80
je 0x4056ef
mov al, byte [edi]
test al, al
je 0x4056d2
cmp al, 0x5c
je 0x4056d2
sub edi, esi
push esi
call fcn.00405aff
cmp eax, edi
push esi
jle 0x405712
call fcn.00405e0e
test eax, eax
je 0x40570a
test byte [eax], 0x10
je 0x4056d2
push esi
call fcn.00405619
jmp 0x4056f1
call fcn.004055d2
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 0x40579f
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 0x4057bb
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4057be
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 0x4057ed
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop 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 0x405832
mov eax, edi
dec edi
test eax, eax
jne 0x4057f8
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x40582c
Function at 0x405836
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.00405e35
test eax, eax
mov esi, dword [esp + 0x18]
je 0x40585a
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405993
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x42c158], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x42c158
je 0x40589e
push 1
push 0
push esi
call fcn.004057be
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405999
cmp eax, edi
jg 0x405999
mov esi, 0x42bbd0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405999
cmp eax, edi
jg 0x405999
push esi
push ebp
push str._s_s_r_n
push 0x42b7d0
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.00405b1d
push 4
push 0xc0000000
push esi
call fcn.004057be
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405993
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 0x40598c
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 0x40598c
cmp edi, dword [esp + 0x18]
jne 0x40598c
push str._Rename__r_n
push esi
call fcn.0040572d
test eax, eax
jne 0x4059a0
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405ae9
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x42b7d0
push eax
call fcn.00405779
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.0040572d
test eax, eax
je 0x405957
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x4059c7
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x4059bc
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405959
Function at 0x4059cf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405a40
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405a2f
cmp dword [ebp + 0x14], 1
je 0x405a31
cmp dword [ebp + 0x14], 2
je 0x405a31
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405eab
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x42c55c], esi
push edi
jne 0x405ee5
mov ecx, 0x42c558
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x405ec1
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x42c958
jl 0x405ebc
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x405f1a
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c558]
xor eax, esi
inc ecx
dec edx
jne 0x405efd
pop edi
pop esi
not eax
ret 0xc
Function at 0x10012bf
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1003028]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x150], edi
mov dword [ebp - 0x14c], 0x10011c5
mov dword [ebp - 0x148], edi
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], edi
cmp dword [0x1003030], edi
jne 0x1001315
mov dword [ebp - 0x138], edi
jmp 0x1001327
push 0x7f00
push edi
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x138], eax
push 4
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x150]
mov esi, 0x10033a0
push eax
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x12c], esi
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x100135f
xor eax, eax
jmp 0x1001450
push ebx
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
lea eax, [ebp - 0x128]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetClipBox]
push ebx
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x10013f0
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10013f0
cmp dword [ebp - 0x108], 2
jne 0x10013f0
cmp dword [ebp - 0x114], 5
jb 0x10013f0
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x1000
call ebx
test eax, eax
je 0x10013f0
push 0x4e
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x124], edi
call ebx
push 0x4f
mov dword [ebp - 0x120], eax
call ebx
mov dword [ebp - 0x11c], eax
jmp 0x10013f6
mov eax, dword [ebp - 0x11c]
sub eax, dword [ebp - 0x124]
mov ecx, dword [0x1003030]
push edi
push dword [0x1003028]
push edi
push ecx
push eax
mov eax, dword [ebp - 0x120]
sub eax, dword [ebp - 0x128]
neg ecx
push eax
push dword [ebp - 0x124]
sbb ecx, ecx
push dword [ebp - 0x128]
and ecx, 0xc0000000
add ecx, 0x80000000
or ecx, 0x10000000
push ecx
push esi
push esi
push 0x88
call dword [sym.imp.USER32.dll_CreateWindowExW]
neg eax
sbb eax, eax
neg eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01001882
leave
ret
Function at 0x1001463
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0xff
mov ebx, 0x10033a0
push ebx
push 0x64
push dword [0x1003028]
mov esi, eax
call dword [sym.imp.USER32.dll_LoadStringW]
xor edi, edi
cmp word [esi], di
je 0x1001542
push 0x20
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
cmp eax, edi
je 0x10014b5
cmp word [eax], 0x20
mov esi, eax
jne 0x1001521
inc esi
inc esi
cmp word [esi], 0x20
je 0x10014ab
jmp 0x1001521
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2]
jmp 0x1001521
movzx eax, word [esi]
cmp ax, 0x2f
je 0x10014d0
cmp ax, 0x2d
jne 0x100151f
movzx eax, word [esi + 2]
cmp ax, 0x73
je 0x10014e0
cmp ax, 0x53
jne 0x10014ea
mov dword [0x1003034], 1
movzx eax, word [esi + 2]
cmp ax, 0x63
je 0x10014fa
cmp ax, 0x43
jne 0x1001505
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [0x100302c], eax
movzx eax, word [esi + 2]
cmp ax, 0x70
je 0x1001528
cmp ax, 0x50
je 0x1001528
push 0x20
pop eax
mov word [esi], ax
mov word [esi + 2], ax
inc esi
inc esi
cmp word [esi], di
jne 0x10014c1
jmp 0x1001542
add esi, 4
push esi
mov dword [0x1003034], 1
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
mov dword [0x1003030], eax
cmp dword [0x1003034], edi
je 0x1001553
call fcn.010012bf
test eax, eax
jne 0x1001574
push edi
push 0xfffd
push 1
push 0x66
push 0x65
push ebx
push edi
push dword [0x100302c]
call dword [sym.imp.COMCTL32.dll_Ordinal_344]
push edi
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
ret
Function at 0x1001873
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1001ce8
call fcn.01001a14
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x10035ac
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1001688
cmp eax, esi
jne 0x100167b
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x100168b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001662
xor esi, esi
inc esi
mov eax, dword [0x10035a8]
cmp eax, esi
jne 0x100169e
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10016d9
mov eax, dword [0x10035a8]
test eax, eax
jne 0x10016d3
mov dword [0x10035a8], esi
push 0x1001104
push 0x10010f8
call fcn.010015df
pop ecx
pop ecx
test eax, eax
je 0x10016d9
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x10017a3
mov dword [0x1003054], esi
mov eax, dword [0x10035a8]
cmp eax, esi
jne 0x10016fd
push 0x10010f4
push 0x10010ec
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10035a8], 2
cmp dword [ebp - 0x1c], ebx
jne 0x100170a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10035b0], ebx
je 0x100172b
push 0x10035b0
call fcn.01001989
pop ecx
test eax, eax
je 0x100172b
push ebx
push 2
push ebx
call dword [0x10035b0]
push dword [0x100303c]
push dword [0x1003040]
push dword [0x1003038]
call fcn.01001580
add esp, 0xc
mov dword [0x1003050], eax
cmp dword [0x1003044], ebx
jne 0x1001789
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1003054], ebx
jne 0x1001797
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1003050]
call fcn.01001a59
ret
call fcn.01001b61
jmp 0x1001640
Function at 0x401fa0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
xor ebx, ebx
movzx eax, byte [ebp + 0x10]
cmp ebx, dword [ebp + 8]
mov byte [ebp - 0xd], al
jge 0x401fe0
mov esi, esi
lea edi, [edi]
cld
mov edx, dword [ebp + 0xc]
mov ecx, 8
mov esi, str.__trace
mov edx, dword [edx + ebx*4]
mov edi, edx
mov dword [ebp - 0x14], edx
repe cmpsb byte [esi], byte es:[edi]
je 0x401fed
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x401fc0
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + 1]
cmp eax, dword [ebp + 8]
je 0x402045
mov edx, dword [ebp + 0xc]
mov ebx, dword [edx + eax*4]
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], 0x42b008
call fcn.004146a0
cmp byte [ebp - 0xd], 0
je 0x401fe0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.004015b0
test al, al
jne 0x401fe0
mov eax, dword [0x42b008]
mov dword [esp], eax
call sub.KERNEL32.dll_DeleteFileA
sub esp, 4
jmp 0x401fe0
mov dword [esp], 0
mov eax, dword [ebp - 0x14]
mov edi, 1
mov dword [esp + 4], edi
mov dword [esp + 0xc], eax
mov eax, 0x4283d8
mov dword [esp + 8], eax
call fcn.00401ac0
xor eax, eax
jmp 0x401fe5