joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402810
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64c
cmp dword [ebp + 0x14], 0
push ebx
push esi
push edi
lea esi, [ebp - 0x24c]
je 0x402855
push dword [ebp + 0x14]
mov eax, esi
push eax
call fcn.0040a424
mov eax, esi
push eax
call fcn.0040a331
push dword [ebp + 0x14]
lea esi, [ebp + eax - 0x24b]
push esi
call fcn.0040a424
push esi
call fcn.0040a331
lea esi, [esi + eax + 1]
push 0x85
call fcn.004098a4
push eax
push esi
call fcn.0040a424
push esi
call fcn.0040a331
lea esi, [esi + eax + 1]
push 0x4122e4
push esi
call fcn.0040a424
push esi
call fcn.0040a331
push 0x4c
mov byte [eax + esi + 1], 0
pop esi
push esi
push 0
lea eax, [ebp - 0x4c]
push eax
call fcn.0040a236
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov eax, dword [0x414c78]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x4c], esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov edi, 0x400
push esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x1c], eax
call fcn.00407388
cmp eax, esi
jne 0x4028e4
lea eax, [ebp - 0x64c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x64c]
mov dword [ebp - 0x20], eax
cmp byte [ebp + 0x18], 0
mov ebx, dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], 0x1080c
push eax
je 0x402903
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x402905
call ebx
mov edi, eax
test edi, edi
jne 0x402933
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
cmp eax, 0x3002
jne 0x402931
cmp byte [ebp + 0x18], 0
lea eax, [ebp - 0x4c]
mov byte [esi], 0
push eax
je 0x40292d
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x40292f
call ebx
mov edi, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
leave
ret 0x14

Function at 0x402c81
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4141c4], 0
jne 0x402c8f
call fcn.00402c57
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x402cbc
test cl, 7
je 0x402cbc
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
dec esi
inc ecx
jmp 0x402c9d
cmp esi, 8
jb 0x402d40
mov edi, esi
shr edi, 3
xor eax, dword [ecx]
add ecx, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
mov edx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x4141c0]
xor eax, dword [ecx - 4]
shr edx, 8
xor eax, edx
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
dec edi
jne 0x402cc6
xor edx, edx
test esi, esi
jbe 0x402d60
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4141c0]
inc edx
cmp edx, esi
jb 0x402d47
pop ebx
pop edi
pop esi
ret 0xc
Function at 0x404b10
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24c0
call fcn.00401200
push ebx
push esi
push edi
lea ecx, [ebp - 0x24c0]
call fcn.00403517
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x24c0]
push eax
push dword [ebp + 0xc]
push edi
call fcn.00406001
test al, al
je 0x404ca9
cmp byte [ebp - 0x24c0], bl
je 0x404ca9
cmp byte [ebp - 0x1840], bl
je 0x404ca9
lea eax, [ebp - 0x1840]
push eax
lea eax, [ebp - 0x24c0]
push eax
call fcn.00407388
push eax
call fcn.0040dab8
test eax, eax
je 0x404ca9
lea eax, [ebp - 0x1840]
push eax
push edi
call fcn.00407388
push eax
call fcn.0040dab8
test eax, eax
jne 0x404ca9
mov esi, 0x400
push esi
push edi
lea eax, [ebp - 0x400]
push eax
call fcn.0040db94
push ebx
push str.rtmp_d
lea eax, [ebp - 0x400]
push eax
call fcn.00407388
push eax
call fcn.0040a5bd
add esp, 0xc
push 0
lea eax, [ebp - 0x400]
push eax
call fcn.00405728
test al, al
je 0x404be8
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x404ba2
push 0
lea eax, [ebp - 0x400]
push eax
call fcn.00405728
test al, al
jne 0x404ca9
push esi
push edi
lea eax, [ebp - 0x800]
push eax
call fcn.0040db94
lea eax, [ebp - 0x24c0]
push eax
call fcn.00407388
push eax
lea eax, [ebp - 0x800]
push eax
call fcn.00407388
push eax
call fcn.0040a424
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileA]
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x800]
push eax
call esi
test eax, eax
je 0x404ca9
lea ecx, [ebp - 0x1420]
call fcn.00404e84
push 0
push edi
xor bl, bl
call fcn.00405728
test al, al
jne 0x404c70
push 1
push 0
push edi
lea ecx, [ebp - 0x1420]
call fcn.00405199
mov bl, al
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x400]
push eax
call esi
test bl, bl
je 0x404c9a
lea ecx, [ebp - 0x1420]
call fcn.00404eef
lea ecx, [ebp - 0x1420]
call fcn.00404f6d
lea ecx, [ebp - 0x1420]
call fcn.00405035
mov al, 1
jmp 0x404cab
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405058
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi + 0xc18], ebx
cmp byte [esi + 0x16], bl
je 0x405072
mov byte [ebp + 0x10], 1
mov dword [ebp - 4], 0x80000000
cmp byte [ebp + 0x14], bl
je 0x405085
mov dword [ebp - 4], 0xc0000000
mov dword [ebp + 0x14], 1
cmp byte [ebp + 0x10], bl
je 0x405098
mov dword [ebp + 0x14], 3
xor eax, eax
cmp byte [esi + 0x15], bl
setne al
dec eax
and eax, 0x8000000
mov edi, eax
call fcn.00406e61
test eax, eax
je 0x4050d1
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4050d1
cmp word [eax], bx
je 0x4050d1
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x4050e5
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x405101
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x405101
mov dword [esi + 0xc18], 1
cmp edi, 0xffffffff
setne byte [ebp + 0x13]
mov byte [esi + 0x12], bl
mov dword [esi + 0xc], ebx
mov byte [esi + 0x10], bl
cmp byte [ebp + 0x13], bl
je 0x405163
mov dword [esi + 4], edi
cmp dword [ebp + 0xc], ebx
je 0x40512f
push dword [ebp + 0xc]
lea eax, [esi + 0x418]
push eax
call fcn.0040e3e0
jmp 0x405138
xor eax, eax
mov word [esi + 0x418], ax
lea eax, [esi + 0x17]
cmp dword [ebp + 8], ebx
je 0x40514b
push dword [ebp + 8]
push eax
call fcn.0040a424
jmp 0x405159
push 0x1000000
push eax
push dword [ebp + 0xc]
call fcn.0040e1bd
push dword [esi + 4]
mov ecx, esi
call fcn.00404ec8
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x405293
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xc], 1
mov esi, 0x4e20
jne 0x4052b9
cmp dword [ebp + 0xc], esi
jbe 0x4052ae
mov dword [ebp + 0xc], esi
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405309
mov ecx, edi
call fcn.00405012
test al, al
je 0x4052ef
cmp dword [ebp + 0xc], esi
jbe 0x4052ef
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.00405293
jmp 0x40530c
cmp dword [edi + 0xc], 1
jne 0x405304
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x405304
xor eax, eax
jmp 0x40530c
or eax, 0xffffffff
jmp 0x40530c
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x405546
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
je 0x405646
mov eax, dword [esi + 0xc]
test eax, eax
je 0x405573
dec eax
je 0x405568
dec eax
jne 0x405573
push 0xfffffffffffffff4
jmp 0x40556a
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [esi + 0xc], edi
je 0x4055c2
cmp dword [ebp + 0xc], edi
jbe 0x4055dd
mov ecx, dword [ebp + 0xc]
sub ecx, edi
mov eax, 0x4000
cmp ecx, eax
jae 0x40559a
mov eax, ecx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
je 0x4055dd
add edi, 0x4000
cmp edi, dword [ebp + 0xc]
jb 0x40558a
jmp 0x4055d9
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
test al, al
jne 0x405640
cmp byte [esi + 0x14], 0
je 0x405640
cmp dword [esi + 0xc], 0
jne 0x405640
push 0
lea eax, [esi + 0x17]
mov edi, 0x414c7c
push eax
mov ecx, edi
call fcn.004032c5
test al, al
je 0x405633
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x40557b
test eax, eax
jbe 0x40557b
push 0
mov ecx, esi
call fcn.00404f9d
mov ecx, dword [ebp - 4]
xor edi, edi
sub eax, ecx
sbb edx, edi
push edx
push eax
mov ecx, esi
call fcn.004054ae
jmp 0x40557b
lea eax, [esi + 0x17]
push eax
push 0
mov ecx, edi
call fcn.00403432
pop edi
mov byte [esi + 8], 1
pop ebx
pop esi
leave
ret 8

Function at 0x405728
Capabilities:
Get file attributes

Disassembly:
call fcn.00406e61
test eax, eax
je 0x405748
mov eax, dword [esp + 8]
test eax, eax
je 0x405748
cmp word [eax], 0
je 0x405748
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x405752
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret 8

Function at 0x405777
Capabilities:
Get file attributes

Disassembly:
call fcn.00406e61
test eax, eax
je 0x405797
mov eax, dword [esp + 8]
test eax, eax
je 0x405797
cmp word [eax], 0
je 0x405797
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x4057a1
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret 8

Function at 0x4057a4
Capabilities:
Set file attributes

Disassembly:
call fcn.00406e61
test eax, eax
je 0x4057c8
mov eax, dword [esp + 8]
test eax, eax
je 0x4057c8
cmp word [eax], 0
je 0x4057c8
push dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x4057d6
push dword [esp + 0xc]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
ret 0xc
Function at 0x405854
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.00406e61
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x405879
test esi, esi
je 0x405879
cmp word [esi], 0
je 0x405879
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x405884
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40589e
cmp byte [ebp + 0x10], 0
je 0x40589a
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.004057a4
xor eax, eax
jmp 0x4058b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4058b3
cmp eax, 3
je 0x4058b3
xor eax, eax
inc eax
jmp 0x4058b6
push 2
pop eax
pop esi
pop ebp
ret 0x10
Function at 0x4064b9
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
lea ecx, [ebp - 8]
push ecx
push edi
call dword [eax + 0x48]
test eax, eax
jl 0x4064eb
cmp dword [ebp - 8], ebx
jne 0x40652c
call esi
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x40652c
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4064d8
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4064d8
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x40656c
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x412858
push eax
call dword [ecx]
test eax, eax
jl 0x40656c
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
test eax, eax
jl 0x406563
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
setge bl
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 8
Function at 0x406d10
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x14], 0
push edi
jne 0x406d33
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov byte [esi + 0x14], 1
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [ebp + 0xc]
mov byte [esi + 0x15], 0
call ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.00406ca9
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [sym.imp.USER32.dll_GetParent]
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call edi
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi + 4]
test eax, eax
je 0x406d89
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push esi
push dword [esi]
push 0
push dword [ebp + 0xc]
call edi
mov ecx, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
xor edi, edi
push eax
mov eax, dword [ebp - 0x10]
sub ecx, eax
dec ecx
dec ecx
push ecx
push dword [ebp - 0xc]
inc eax
push eax
push 0x40000000
push edi
push str.RarHtmlClassName
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [esi + 4], eax
cmp eax, edi
je 0x406dd4
push 5
push eax
call ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp byte [esi + 0x15], 0
je 0x406de9
cmp dword [esi + 0x18], 0x64
jbe 0x406e5a
mov ecx, esi
call fcn.0040666f
jmp 0x406e5a
mov eax, dword [esi + 4]
cmp eax, edi
je 0x406dfa
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 4], edi
push 5
push dword [ebp + 0xc]
call ebx
push dword [ebp + 0x10]
call fcn.0040a331
imul eax, eax, 6
add eax, 0x100
push eax
call fcn.0040a199
push dword [ebp + 0x10]
mov ebx, eax
push ebx
call fcn.0040a424
push ebx
mov ecx, esi
call fcn.00406575
test al, al
jne 0x406e36
push ebx
mov ecx, esi
call fcn.004065a5
push ebx
mov ecx, esi
call fcn.004069d5
push ebx
mov esi, eax
call fcn.0040a1b2
cmp esi, edi
je 0x406e5a
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push esi
call fcn.0040a1b2
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4096bb
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
call fcn.004095e4
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
mov byte [ebp - 1], al
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call ebx
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [ebp - 0x1c]
sub edi, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x38]
sub edi, dword [ebp - 0x24]
sub esi, eax
sub esi, dword [ebp - 0x20]
inc edi
inc esi
cmp byte [ebp - 1], 0
je 0x409748
cmp byte [ebp + 0x10], 0
jne 0x409788
imul eax, dword [ebp - 8]
push 0x206
cdq
push 0x64
pop ecx
idiv ecx
add eax, esi
push eax
mov eax, dword [ebp - 0x3c]
imul eax, dword [ebp - 0xc]
cdq
idiv ecx
add eax, edi
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp byte [ebp + 0x10], 0
jne 0x409788
push 0x400
lea eax, [ebp - 0x444]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
push 1
lea eax, [ebp - 0x444]
push eax
push eax
call fcn.00409500
lea eax, [ebp - 0x444]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 8
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 5
push dword [ebp + 8]
sub esi, eax
call dword [sym.imp.USER32.dll_GetWindow]
and dword [ebp + 8], 0
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x14], eax
jmp 0x40987e
cmp dword [ebp + 8], 0x200
jge 0x409886
push 0x400
lea eax, [ebp - 0x444]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [ebp - 0x444], 0
je 0x4097fc
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
push 1
lea eax, [ebp - 0x444]
push eax
push eax
call fcn.00409500
lea eax, [ebp - 0x444]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetWindowTextA]
cmp byte [ebp - 1], 0
je 0x409868
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x10]
call ebx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
push 0x204
inc eax
imul eax, dword [ebp - 8]
cdq
push 0x64
pop ecx
idiv ecx
push eax
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
inc eax
imul eax, dword [ebp - 0xc]
cdq
idiv ecx
push eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x20]
sub eax, esi
imul eax, dword [ebp - 8]
cdq
idiv ecx
push eax
mov eax, edi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x34]
sar ecx, 1
sub eax, ecx
sub eax, dword [ebp - 0x24]
push 0x64
imul eax, dword [ebp - 0xc]
pop ecx
cdq
idiv ecx
push eax
push 0
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 2
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp + 0x10], eax
cmp eax, dword [ebp - 0x14]
je 0x409886
inc dword [ebp + 8]
test eax, eax
jne 0x4097ac
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40994f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push 0x20
push dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 8], ecx
call fcn.0040a263
xor eax, eax
push 4
xor ecx, ecx
mov dword [ebp + 8], eax
xor ebx, ebx
pop edx
cmp eax, 0xa
jg 0x409a5d
cmp ebx, edx
jge 0x4099a4
lea esi, [ebp + ebx*4 - 0x28]
mov dword [ebp - 4], esi
cmp ecx, edx
jge 0x4099a6
mov edi, dword [ebp - 8]
lea esi, [ecx + eax*4]
lea edi, [edi + esi*4 + 0x14]
mov esi, dword [ebp - 4]
add dword [ebp - 4], edx
inc ebx
inc ecx
cmp ebx, edx
movsd dword es:[edi], dword [esi]
jl 0x409989
cmp ecx, edx
jne 0x4099ae
inc eax
mov dword [ebp + 8], eax
xor ecx, ecx
cmp ebx, edx
jl 0x409975
cmp eax, 0xa
jg 0x409a5d
mov dword [ebp - 4], 0x418ca8
movzx esi, byte [ebp - 0x1b]
mov al, byte [ebp - 0x28]
xor al, byte [esi + 0x418dc8]
movzx esi, byte [ebp - 0x1a]
mov bl, byte [esi + 0x418dc8]
movzx esi, byte [ebp - 0x19]
xor byte [ebp - 0x27], bl
mov bl, byte [esi + 0x418dc8]
movzx esi, byte [ebp - 0x1c]
xor byte [ebp - 0x26], bl
mov bl, byte [esi + 0x418dc8]
mov esi, dword [ebp - 4]
xor al, byte [esi]
xor byte [ebp - 0x25], bl
inc dword [ebp - 4]
push 3
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x24]
pop edi
xor esi, esi
mov bl, byte [eax + esi - 4]
xor byte [eax + esi], bl
inc esi
cmp esi, edx
jl 0x409a09
add eax, edx
dec edi
jne 0x409a07
xor ebx, ebx
cmp dword [ebp + 8], 0xa
jg 0x409a5d
cmp ebx, edx
jge 0x409a46
lea eax, [ebp + ebx*4 - 0x28]
cmp ecx, edx
jge 0x409a48
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 8]
lea esi, [ecx + esi*4]
lea edi, [edi + esi*4 + 0x14]
mov esi, eax
inc ebx
add eax, edx
inc ecx
cmp ebx, edx
movsd dword es:[edi], dword [esi]
jl 0x409a2a
cmp ecx, edx
jne 0x409a4f
inc dword [ebp + 8]
xor ecx, ecx
cmp ebx, edx
jl 0x409a1c
cmp dword [ebp + 8], 0xa
jle 0x4099c2
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x409a64
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
add ecx, 0x24
push 4
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 9
pop edi
xor eax, eax
mov ecx, dword [ebp - 4]
lea esi, [ebp + eax - 0x1c]
add ecx, 2
mov dword [ebp - 8], edi
movzx edx, byte [ecx + 1]
movzx ebx, byte [ecx - 1]
mov dl, byte [eax + edx*4 + 0x415ca8]
xor dl, byte [eax + ebx*4 + 0x4164a8]
movzx ebx, byte [ecx - 2]
xor dl, byte [eax + ebx*4 + 0x4168a8]
movzx ebx, byte [ecx]
xor dl, byte [eax + ebx*4 + 0x4160a8]
add ecx, edi
mov byte [esi], dl
add esi, edi
dec dword [ebp - 8]
jne 0x409a8c
inc eax
cmp eax, edi
jl 0x409a7f
push 0x10
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call fcn.0040a263
add dword [ebp - 4], 0x10
dec dword [ebp - 0xc]
jne 0x409a7d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40acf3
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0x67
push dword [0x419f80]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x41a814], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x40ad55
mov ecx, dword [0x418ecc]
call fcn.00406458
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x4125aa
push 0
push 0xc2
push edi
call esi
mov byte [0x41a814], 1
mov edi, 0x5f5e100
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x40]
push eax
push 0
push 0x43a
push dword [ebp - 4]
mov dword [ebp - 0x40], 0x3c
call esi
xor eax, eax
inc eax
cmp byte [ebp + 8], 0
mov byte [ebp - 0x27], 0
mov dword [ebp - 0x3c], eax
je 0x40ada5
mov ecx, dword [ebp - 0x38]
and ecx, 0xbfffffff
or ecx, eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x2c], 0xa0
mov dword [ebp - 0x3c], 0x40000001
lea ecx, [ebp - 0x40]
push ecx
push eax
push 0x444
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
push 0
push 0xc2
push dword [ebp - 4]
call esi
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
cmp byte [ebp + 8], 0
je 0x40adef
mov eax, dword [ebp - 0x38]
and eax, 0xfffffffe
or eax, 0x40000000
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
push eax
push 1
push 0x444
push dword [ebp - 4]
call esi
push 0x4125e0
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40b6d6
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
lea eax, [ebp - 0x420]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp byte [0x41a815], 0
jne 0x40b765
push 6
push dword [0x41409c]
lea eax, [ebp - 0x420]
push eax
call fcn.00407388
push eax
call fcn.0040a56a
test eax, eax
jne 0x40b765
push 0x41234c
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x420]
push eax
call fcn.0040a331
push 0x1e
mov byte [ebp + eax - 0x41f], 0
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.0040a236
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
leave
ret

Function at 0x40b824
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
push ebx
push esi
xor esi, esi
inc esi
xor ebx, ebx
mov dword [0x419f70], esi
cmp dword [0x419f80], ebx
je 0x40b84e
push 0x7d
call fcn.004098a4
push eax
push esi
push dword [0x419f80]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov eax, dword [0x419f80]
mov dword [0x419f6c], ebx
mov dword [0x419f68], esi
cmp eax, ebx
je 0x40b89e
push esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x41a824], ebx
jne 0x40b895
cmp byte [0x41a814], bl
jne 0x40b895
push ebx
push esi
push 0x111
push dword [0x419f80]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40b895
call fcn.0040a7da
cmp dword [0x419f78], 2
jne 0x40b890
cmp byte [0x419f88], bl
pop esi
pop ebx
je 0x40b8ad
jmp fcn.0040b6d6
ret