joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402f00
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402f20
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402f2f
mov ebx, 0x410908
mov eax, dword [ebp + 8]
test eax, eax
js 0x402f44
mov ecx, dword [0x42a538]
add ecx, eax
push ecx
call fcn.00402ee9
push 4
lea eax, [ebp + 0x14]
push eax
call fcn.00402eb7
test eax, eax
jne 0x402f5b
push 0xfffffffffffffffd
pop eax
jmp 0x4030ba
test dword [ebp + 0x14], 0x80000000
je 0x403099
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x420910
mov dword [ebp - 0xc], eax
call fcn.00406b4c
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x4030b7
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402f9b
mov esi, dword [ebp + 0x14]
push esi
mov edi, 0x40c908
push edi
call fcn.00402eb7
test eax, eax
je 0x402f53
sub dword [ebp + 0x14], esi
mov dword [0x420928], edi
mov dword [0x42092c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x420910
mov dword [0x420930], ebx
mov dword [0x420934], eax
call fcn.00406b6c
mov dword [ebp - 0x10], eax
test eax, eax
js 0x40308b
mov esi, dword [0x420930]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x42a5d4], 1
mov edi, eax
je 0x40303f
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x403006
cmp dword [ebp + 0x14], 0
jne 0x40303f
push dword [ebp + 8]
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x94]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push 0
call fcn.00404a7e
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x403080
cmp dword [ebp + 0x10], eax
jne 0x403068
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403092
cmp dword [ebp - 0x14], esi
jne 0x403092
add dword [ebp - 4], esi
jmp 0x403074
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x420930]
cmp dword [ebp - 0x10], 1
jne 0x402fba
jmp 0x4030b7
cmp dword [ebp + 0x14], eax
jg 0x402f8e
jmp 0x4030b7
push 0xfffffffffffffffc
jmp 0x402f55
push 0xfffffffffffffffe
jmp 0x402f55
test edi, edi
je 0x403100
cmp dword [ebp + 0x14], esi
jge 0x4030a5
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00402eb7
test eax, eax
je 0x402f53
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x4030cc
mov esi, dword [ebp + 0x14]
push esi
mov edi, 0x40c908
push edi
call fcn.00402eb7
test eax, eax
je 0x402f53
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403092
cmp esi, dword [ebp + 0x10]
jne 0x403092
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x4030c1
jmp 0x4030b7
Function at 0x403108
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x400
mov esi, 0x438800
push esi
add eax, 0x3e8
push ebx
mov dword [0x42a540], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 3
push 0x80000000
push esi
call fcn.00405908
mov edi, eax
mov dword [ebp - 0xc], edi
mov dword [0x40a010], edi
cmp edi, 0xffffffff
jne 0x403162
mov eax, str.Error_launching_installer
jmp 0x403337
push esi
mov esi, 0x436800
push esi
call fcn.00405ac1
push esi
call fcn.0040601c
push eax
push 0x439000
call fcn.00405ac1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x420998], eax
mov esi, eax
cmp eax, ebx
jle 0x40327d
mov ebx, 0x418910
mov eax, dword [0x42a54c]
neg eax
sbb eax, eax
and eax, 0x7e00
add eax, 0x200
mov edi, esi
cmp esi, eax
jl 0x4031b6
mov edi, eax
push edi
push ebx
call fcn.00402eb7
test eax, eax
je 0x40333e
cmp dword [0x42a54c], 0
jne 0x403248
push 0x1c
push ebx
lea eax, [ebp - 0x28]
push eax
call fcn.004058c4
mov eax, dword [ebp - 0x28]
test eax, 0xfffffff0
jne 0x403256
cmp dword [ebp - 0x24], 0xdeadbeef
jne 0x403256
cmp dword [ebp - 0x18], 0x74736e49
jne 0x403256
cmp dword [ebp - 0x1c], 0x74666f73
jne 0x403256
cmp dword [ebp - 0x20], 0x6c6c754e
jne 0x403256
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [0x41890c]
and eax, 2
or dword [0x42a5c0], eax
mov eax, dword [ebp - 0x10]
mov dword [0x42a54c], ecx
cmp eax, esi
jg 0x403346
test byte [ebp + 8], 8
jne 0x40323a
test byte [ebp + 8], 4
jne 0x40327b
inc dword [ebp - 4]
lea esi, [eax - 4]
cmp edi, esi
jbe 0x403256
mov edi, esi
jmp 0x403256
test byte [ebp + 8], 2
jne 0x403256
push 0
call fcn.00402e53
pop ecx
cmp esi, dword [0x420998]
jge 0x40326b
push edi
push ebx
push dword [ebp - 8]
call fcn.00406adb
mov dword [ebp - 8], eax
add dword [0x41890c], edi
sub esi, edi
test esi, esi
jg 0x40319b
xor ebx, ebx
push 1
call fcn.00402e53
pop ecx
cmp dword [0x42a54c], ebx
je 0x403346
cmp dword [ebp - 4], ebx
je 0x4032c0
push dword [0x41890c]
call fcn.00402ee9
push 4
lea eax, [ebp + 8]
push eax
call fcn.00402eb7
test eax, eax
je 0x403346
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x403346
push dword [ebp - 0x14]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov eax, dword [0x42a54c]
add eax, 0x1c
push eax
call fcn.00402ee9
push dword [ebp - 0x14]
push esi
push ebx
push 0xffffffffffffffff
call fcn.00402f00
cmp eax, dword [ebp - 0x14]
jne 0x403346
test byte [ebp - 0x28], 1
mov dword [0x42a4ec], esi
mov eax, dword [esi]
mov dword [0x42a548], eax
je 0x403305
inc dword [0x42a544]
push 8
pop ecx
lea eax, [esi + 0x44]
sub eax, 8
add dword [eax], esi
dec ecx
cmp ecx, ebx
jne 0x40330b
push 1
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x3c], eax
push 0x40
add esi, 4
push esi
push 0x42a500
call fcn.004058c4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
push 1
call fcn.00402e53
pop ecx
mov eax, 0x408320
jmp 0x403337
Function at 0x4056f7
Capabilities:
Create process on windows

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

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405905
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4

Function at 0x405908
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [eax + 1]
push 0
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_CreateFileW]
ret 0xc

Function at 0x405937
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x4087ac]
mov dword [ebp - 8], eax
mov eax, dword [0x4087b0]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405987
test edi, edi
jne 0x405944
mov word [esi], ax
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405981

Function at 0x40598b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov word [esi], ax
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405a04
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x800
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4059ed
cmp dword [ebp + 0x14], 1
je 0x4059f2
cmp dword [ebp + 0x14], 2
je 0x4059f2
xor eax, eax
mov word [esi], ax
push dword [ebp + 0x18]
xor eax, eax
mov word [esi + 0x7fe], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret 0x14
Function at 0x406049
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425230
push esi
call fcn.00405ac1
push esi
call fcn.00405811
mov edi, eax
test edi, edi
jne 0x40606a
xor eax, eax
jmp 0x4060c7
push edi
call fcn.00405af0
test byte [0x42a548], 0x80
je 0x406086
movzx eax, word [edi]
test ax, ax
je 0x406066
cmp eax, 0x5c
je 0x406066
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x4060a8
push esi
call fcn.00405b9f
test eax, eax
je 0x4060a2
test byte [eax], 0x10
je 0x4060cc
push esi
call fcn.0040601c
push esi
call ebx
cmp eax, edi
jg 0x406093
push esi
call fcn.00405fed
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x4060c6
Function at 0x406361
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x408894
mov ebx, 0x425a30
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
mov esi, 0x400
cmp edi, ebp
je 0x4063af
push 1
push ebp
push edi
call fcn.00405908
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x40652a
cmp eax, esi
jg 0x40652a
push esi
mov edi, 0x427880
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x40652a
cmp eax, esi
jg 0x40652a
push ebp
push ebp
push esi
push 0x426230
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x40652a
push ebp
push ebp
push esi
mov esi, 0x426880
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x40652a
push esi
push 0x426230
push str._s_s_r_n
push 0x426c80
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x42a4ec]
push dword [eax + 0x128]
push edi
call fcn.004060d0
push 4
push 0xc0000000
push edi
call fcn.00405908
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x40652a
push ebp
push eax
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
cmp esi, ebp
je 0x406520
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406520
cmp edi, dword [esp + 0x10]
jne 0x406520
push str._Rename__r_n
push esi
call fcn.0040586e
cmp eax, ebp
jne 0x4064b3
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4064e8
push 0x408888
add eax, 0xa
push eax
call fcn.0040586e
mov ebp, eax
test ebp, ebp
je 0x4064e6
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
cmp ecx, ebp
jbe 0x4064dd
sub eax, ecx
mov dl, byte [ecx]
mov byte [eax + ecx], dl
dec ecx
cmp ecx, ebp
ja 0x4064d3
sub ebp, esi
lea eax, [ebp + 1]
xor ebp, ebp
jmp 0x4064ea
xor ebp, ebp
mov eax, edi
push ebx
push 0x426c80
add eax, esi
push eax
call fcn.004058c4
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x406563
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00406049
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
test cl, 8
je 0x406598
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42a5a8], eax
jmp 0x40673d
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x4065b3
test eax, eax
je 0x4066e8
test cl, 2
je 0x4066e8
push edi
push ebx
mov esi, 0x427080
push esi
call fcn.00405ac1
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x4065d6
push str..
push esi
call edi
jmp 0x4065dc
push ebx
call fcn.0040601c
cmp word [ebx], 0
jne 0x4065ec
cmp word [0x427080], 0x5c
jne 0x4065f4
push 0x4082d0
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebx + eax*2]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x4066d7
lea esi, [ebp - 0x230]
push 0x3f
mov eax, esi
push eax
call fcn.004057be
xor edi, edi
cmp word [eax], di
je 0x40663b
cmp word [ebp - 0x28], di
je 0x40663b
lea esi, [ebp - 0x28]
cmp word [esi], 0x2e
jne 0x406655
movzx eax, word [esi + 2]
cmp ax, di
je 0x4066b4
cmp eax, 0x2e
jne 0x406655
cmp word [esi + 4], di
je 0x4066b4
push esi
push dword [ebp - 4]
call fcn.00405ac1
test byte [ebp - 0x25c], 0x10
je 0x40667c
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4066b4
push dword [ebp + 0xc]
push ebx
call fcn.00406563
jmp 0x4066b4
push ebx
call fcn.004058e8
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4066ac
test byte [ebp + 0xc], 4
je 0x4066a4
push ebx
push 0xfffffffffffffff1
call fcn.00404a7e
push edi
push ebx
call fcn.00406530
jmp 0x4066b4
inc dword [0x42a5a8]
jmp 0x4066b4
push ebx
push 0xfffffffffffffff2
call fcn.00404a7e
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40661b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4066d9
xor edi, edi
cmp dword [ebp + 8], edi
pop edi
je 0x4066e8
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [ecx - 2], ax
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40673c
cmp dword [ebp - 0xc], esi
je 0x40672c
push ebx
call fcn.00405b9f
test eax, eax
je 0x40673c
push ebx
call fcn.00405fed
push ebx
call fcn.004058e8
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x406734
test byte [ebp + 0xc], 4
je 0x40672c
push ebx
push 0xfffffffffffffff1
call fcn.00404a7e
push esi
push ebx
call fcn.00406530
jmp 0x40673c
inc dword [0x42a5a8]
jmp 0x40673c
push ebx
push 0xffffffffffffffe5
call fcn.00404a7e
pop esi
pop ebx
leave
ret 8
Function at 0x406adb
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x428084], 0
jne 0x406b19
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406aef
mov dword [ecx*4 + 0x428080], eax
inc ecx
cmp ecx, 0x100
jl 0x406aea
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406b46
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x428080]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406b27
not eax
pop ebp
ret 0xc
Function at 0x40644a
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call fcn.00407940
add esp, 4
add eax, 1
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x411754], eax
mov ecx, dword [0x411754]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [0x411758], eax
mov edx, dword [ebp + 8]
push edx
push 0x410630
mov eax, dword [0x411758]
push eax
call fcn.00407ee6
add esp, 0xc
mov ecx, dword [0x411754]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edx, dword [0x411754]
push edx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop ebp
ret

Function at 0x406bdd
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
push 0x400
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleA]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x41067c
lea ecx, [ebp - 0x804]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0x804]
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push 0x28
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x804]
push eax
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 0x404], eax
lea ecx, [ebp - 0x400]
push ecx
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [ebp - 0x404]
mov esp, ebp
pop ebp
ret

Function at 0x406cbc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push edi
mov al, byte [0x8d66a0]
mov byte [ebp - 0x64], al
mov ecx, 0x18
xor eax, eax
lea edi, [ebp - 0x63]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x410684
lea ecx, [ebp - 0x64]
push ecx
call fcn.00407b80
add esp, 8
fild dword [ebp + 8]
sub esp, 8
fstp qword [esp]
call fcn.00406027
add esp, 8
push eax
call fcn.004061e8
add esp, 4
push eax
lea edx, [ebp - 0x64]
push edx
call fcn.00407b90
add esp, 8
push 0x410690
push 0x8d68e0
call fcn.00407b6b
add esp, 8
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jne 0x406d34
push 1
call fcn.00407e11
mov eax, dword [ebp - 0x68]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.00407b08
add esp, 8
mov edx, dword [ebp - 0x68]
push edx
call fcn.00407ab2
add esp, 4
push 1
call fcn.00406c5c
add esp, 4
push 0
call fcn.00407e11
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x406d66
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
push 0x410694
call fcn.00407c98
add esp, 8
push 1
call fcn.00407e11
pop ebp
ret
Function at 0x407079
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 0x14], 1
jne 0x40714d
movsx eax, word [ebp + 0xa]
push eax
movsx ecx, word [ebp + 8]
push ecx
call fcn.0040749d
add esp, 8
cmp dword [0x8d6530], 1
jne 0x40714d
movsx edx, word [ebp + 8]
add edx, 1
mov dword [ebp - 4], edx
fild dword [ebp - 4]
sub esp, 8
fstp qword [esp]
call fcn.00406027
add esp, 8
push eax
call fcn.004061e8
add esp, 4
push eax
push 0x8d6638
call fcn.00407b80
add esp, 8
push 0x410720
push 0x8d6638
call fcn.00407b90
add esp, 8
movsx eax, word [ebp + 0xa]
add eax, 1
mov dword [ebp - 8], eax
fild dword [ebp - 8]
sub esp, 8
fstp qword [esp]
call fcn.00406027
add esp, 8
push eax
call fcn.004061e8
add esp, 4
push eax
push 0x8d6638
call fcn.00407b90
add esp, 8
push 0x410724
push 0x8d6638
call fcn.00407b90
add esp, 8
push 0x8d6538
push 0x8d6638
call fcn.00407b90
add esp, 8
push 0x8d6638
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, 1
test ecx, ecx
je 0x407165
cmp dword [ebp + 0x14], 1
je 0x407165
mov dword [ebp - 0xc], 1
jmp 0x40716c
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0xc]
mov dword [ebp + 0xc], edx
cmp dword [ebp + 0xc], 0
je 0x407319
cmp dword [0x8d664c], 0
jne 0x407194
mov dword [0x8d664c], 1
jmp 0x407319
cmp dword [0x8d6530], 0
jne 0x4071bf
movsx eax, word [ebp + 0xa]
add eax, 1
push eax
movsx ecx, word [ebp + 8]
add ecx, 1
push ecx
call fcn.00407002
add esp, 8
mov dword [0x8d664c], 0
cmp dword [0x8d6530], 1
jne 0x407319
cmp dword [0x8d6534], 0
jne 0x40725e
movsx edx, word [ebp + 8]
add edx, 1
mov dword [ebp - 0x10], edx
fild dword [ebp - 0x10]
sub esp, 8
fstp qword [esp]
call fcn.00406027
add esp, 8
push eax
call fcn.004061e8
add esp, 4
push eax
push 0x8d6538
call fcn.00407b90
add esp, 8
push 0x410728
push 0x8d6538
call fcn.00407b90
add esp, 8
movsx eax, word [ebp + 0xa]
add eax, 1
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
sub esp, 8
fstp qword [esp]
call fcn.00406027
add esp, 8
push eax
call fcn.004061e8
add esp, 4
push eax
push 0x8d6538
call fcn.00407b90
add esp, 8
mov dword [0x8d6534], 1
jmp 0x40730f
push 0x41072c
push 0x8d6538
call fcn.00407b90
add esp, 8
movsx ecx, word [ebp + 8]
add ecx, 1
mov dword [ebp - 0x18], ecx
fild dword [ebp - 0x18]
sub esp, 8
fstp qword [esp]
call fcn.00406027
add esp, 8
push eax
call fcn.004061e8
add esp, 4
push eax
push 0x8d6538
call fcn.00407b90
add esp, 8
push 0x410730
push 0x8d6538
call fcn.00407b90
add esp, 8
movsx edx, word [ebp + 0xa]
add edx, 1
mov dword [ebp - 0x1c], edx
fild dword [ebp - 0x1c]
sub esp, 8
fstp qword [esp]
call fcn.00406027
add esp, 8
push eax
call fcn.004061e8
add esp, 4
push eax
push 0x8d6538
call fcn.00407b90
add esp, 8
push 0x410734
push 0x8d6538
call fcn.00407b90
add esp, 8
mov dword [0x8d6534], 0
push 0x8d6538
call fcn.0040644a
add esp, 4
mov dword [0x8d664c], 0
mov esp, ebp
pop ebp
ret
Function at 0x4089e5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x408a05
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040b339
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x408a26
test byte [esp + 8], 2
je 0x408a26
mov dword [0x8d66a4], 0xd
mov dword [0x8d66a8], 5
jmp 0x408a01
xor eax, eax
ret

Function at 0x40a939
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x410d00
cmp edx, dword [eax]
je 0x40a95b
add eax, 8
inc ecx
cmp eax, 0x410d90
jl 0x40a94c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x410d00]
jne 0x40aa89
mov eax, dword [0x8d6700]
cmp eax, 1
je 0x40aa63
test eax, eax
jne 0x40a98c