joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406cf6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4363f2
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x44e080]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x414]
xor esi, esi
mov ebx, dword [ebp + 0x410]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], esi
mov dword [ebp], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x406d91
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x1c], eax
test edi, edi
jne 0x406d91
call fcn.00405885
mov esi, eax
jmp 0x406e6d
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x406dae
call fcn.00405885
jmp 0x406e60
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x406da4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x406ddb
mov esi, 0x8007000e
jmp 0x406e62
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, esi
ja 0x406ea4
jb 0x406df6
cmp eax, 0xffffffff
ja 0x406ea4
cmp eax, 0x400
jbe 0x406e08
push eax
lea ecx, [ebp]
call fcn.00405863
jmp 0x406e1e
lea eax, [ebp + 4]
mov dword [ebp], eax
jmp 0x406e1e
mov dword [ebp - 4], 1
cmp dword [ebp], 0
je 0x406dd1
push ebx
push dword [ebp]
push ebx
push dword [ebp - 0x14]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x406da4
mov eax, dword [ebp]
xor edx, edx
push dword [ebp + 0x41c]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x24]
push dword [ebp]
call fcn.00406baa
mov esi, eax
test edi, edi
je 0x406e6d
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x406e7d
lea ecx, [ebp]
call fcn.0040584e
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.00421c45
add ebp, 0x408
leave
ret 0x10
push 0x80070216
call fcn.0040268b
int3
Function at 0x407155
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x44e080]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
lea eax, [ebp - 0x7c]
mov esi, ecx
push eax
push 0x104
mov dword [ebp - 0x80], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4071ae
call fcn.0040219e
push eax
mov ecx, esi
call fcn.00401fe1
mov ecx, dword [ebp + 0x18c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00421c45
add ebp, 0x190
leave
ret
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x7e], cx
je 0x4071be
mov word [ebp + eax*2 - 0x7c], cx
inc eax
add eax, eax
cmp eax, 0x208
jae 0x4071db
xor ecx, ecx
mov word [ebp + eax - 0x7c], cx
lea eax, [ebp - 0x7c]
push eax
mov ecx, esi
call fcn.00402742
jmp 0x407196
call fcn.004222e1
int3
Function at 0x407407
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x254]
sub esp, 0x254
push 0xffffffffffffffff
push 0x436466
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x44e080]
xor eax, ebp
mov dword [ebp + 0x250], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00404f5e
add eax, 0x10
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00407130
mov esi, 0x444d74
push esi
call fcn.00425b9b
pop ecx
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.00404e09
push 0x250
lea eax, [ebp]
push 0
push eax
call fcn.00423750
mov esi, dword [ebp - 0x14]
lea eax, [ebp]
add esp, 0xc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40757b
mov esi, dword [ebp - 0x18]
push 0x2e
pop eax
cmp word [ebp + 0x2c], ax
jne 0x4074ca
cmp word [ebp + 0x2e], 0
je 0x407562
cmp word [ebp + 0x2e], ax
jne 0x4074ca
cmp word [ebp + 0x30], 0
je 0x407562
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.00404f5e
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00407130
lea eax, [ebp + 0x2c]
push eax
call fcn.00425b9b
pop ecx
push eax
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp - 0x10]
call fcn.00404e09
test byte [ebp], 0x10
je 0x407531
mov dl, 1
lea ecx, [ebp - 0x10]
call fcn.00407407
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x407527
and eax, 0xfffffffe
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x10]
call fcn.004075ac
jmp 0x407553
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x40754b
and eax, 0xfffffffe
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x10]
call fcn.0040762f
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00402471
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4074a8
mov esi, dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esi - 0x10]
call fcn.00402471
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.00421c45
add ebp, 0x254
leave
ret
Function at 0x4075ac
Capabilities:
Delete directory

Disassembly:
push 4
mov eax, 0x436496
call fcn.00422682
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0x104
jl 0x40760c
call fcn.00407af9
test al, al
jne 0x40760c
push 0x443540
lea ecx, [ebp - 0x10]
call fcn.00402742
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
call fcn.00404e09
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 0x10]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.00402471
jmp 0x40761d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
dec eax
neg eax
sbb al, al
inc al
mov bl, al
test bl, bl
jne 0x407627
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, bl
call fcn.0042265c
ret

Function at 0x40762f
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x436496
call fcn.00422682
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0x104
jl 0x40768f
call fcn.00407af9
test al, al
jne 0x40768f
push 0x443540
lea ecx, [ebp - 0x10]
call fcn.00402742
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
call fcn.00404e09
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x10]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.00402471
jmp 0x4076a0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
dec eax
neg eax
sbb al, al
inc al
mov bl, al
test bl, bl
jne 0x4076aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, bl
call fcn.0042265c
ret

Function at 0x4076b2
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x4364b9
call fcn.00422682
mov edi, edx
mov dword [ebp - 0x14], edi
mov esi, ecx
call fcn.0040219e
push eax
lea ecx, [ebp - 0x10]
call fcn.00401fe1
xor ebx, ebx
lea edx, [ebp - 0x10]
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0040773d
mov esi, dword [ebp - 0x10]
test al, al
je 0x40772d
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [edi]
lea ecx, [esi - 0x10]
sub ebx, 0x10
cmp ecx, ebx
je 0x40772b
cmp dword [ebx + 0xc], 0
jl 0x407720
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x407720
call fcn.00404f5e
mov ecx, ebx
mov edi, eax
call fcn.00402471
mov ecx, dword [ebp - 0x14]
lea eax, [edi + 0x10]
mov dword [ecx], eax
jmp 0x40772b
push dword [esi - 0xc]
mov ecx, edi
push esi
call fcn.004026cf
mov bl, 1
lea ecx, [esi - 0x10]
call fcn.00402471
mov al, bl
call fcn.0042265c
ret
Function at 0x4078fc
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0xcc
push 0xffffffffffffffff
push 0x436528
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x44e080]
xor eax, ebp
mov dword [ebp + 0xc8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp]
push eax
push 0x64
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, eax
xor esi, esi
lea eax, [ebp]
lea eax, [eax + esi*2]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4079a7
lea eax, [ebp]
lea eax, [eax + esi*2]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402742
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 1
push eax
mov ecx, edi
call fcn.004042a2
xor eax, eax
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00402471
cmp esi, ebx
jae 0x4079b9
xor eax, eax
cmp word [ebp + esi*2], ax
je 0x4079b9
inc esi
cmp esi, ebx
jb 0x4079ad
inc esi
cmp esi, ebx
jb 0x407964
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc8]
xor ecx, ebp
call fcn.00421c45
add ebp, 0xcc
leave
ret
Function at 0x407d76
Capabilities:
Create directory

Disassembly:
push 0x20
mov eax, 0x4365bb
call fcn.00422682
mov bl, dl
mov esi, ecx
call fcn.004079e3
test al, al
je 0x407d96
xor eax, eax
jmp 0x407e88
mov ecx, esi
call fcn.00407ab6
xor edi, edi
mov byte [ebp - 0xd], al
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov edx, esi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x2c]
call fcn.00407b50
push edi
lea ecx, [ebp - 0x2c]
call fcn.004041c5
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00404f5e
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
dec eax
test bl, bl
mov ebx, edi
lea ecx, [eax + 1]
cmove ecx, eax
inc edi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edi
cmp ecx, 1
jle 0x407e6d
lea ecx, [esi - 0x10]
call fcn.00404f5e
add eax, 0x10
mov dword [ebp - 0x18], eax
push 0x444d80
mov byte [ebp - 4], 2
call fcn.00425b9b
pop ecx
push eax
push 0x444d80
lea ecx, [ebp - 0x18]
call fcn.00404e09
push edi
lea ecx, [ebp - 0x2c]
call fcn.004041c5
lea ecx, [ebp - 0x18]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00404e09
mov edi, dword [ebp - 0x18]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407e8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
je 0x407ea0
cmp byte [ebp - 0xd], 0
jne 0x407ea0
cmp dword [ebp - 0x1c], 1
jle 0x407e65
lea ecx, [ebp - 0x14]
call fcn.004075ac
lea ecx, [edi - 0x10]
call fcn.00402471
lea ecx, [esi - 0x10]
call fcn.00402471
lea ecx, [ebp - 0x2c]
call fcn.00404266
xor eax, eax
cmp ebx, 0xb7
cmovne eax, ebx
call fcn.0042265c
ret
cmp dword [ebp + 8], 0
je 0x407ea0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.004042a2
mov esi, 0x444d80
push esi
call fcn.00425b9b
pop ecx
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.00404e09
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
call fcn.004041c5
lea ecx, [ebp - 0x14]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00404e09
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 1
call fcn.00402471
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
inc edi
mov dword [ebp - 0x1c], edi
cmp edi, dword [ebp - 0x20]
jge 0x407e6d
jmp 0x407def

Function at 0x407eef
Capabilities:
Enumerate files on windows

Disassembly:
push 0x25c
mov eax, 0x4365e1
call fcn.004226b6
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.00404f5e
add eax, 0x10
mov dword [ebp - 0x268], eax
mov esi, 0x444d78
xor edi, edi
push esi
mov dword [ebp - 4], edi
call fcn.00425b9b
pop ecx
push eax
push esi
lea ecx, [ebp - 0x268]
call fcn.00404e09
push 0x250
lea eax, [ebp - 0x264]
push edi
push eax
call fcn.00423750
mov esi, dword [ebp - 0x268]
lea eax, [ebp - 0x264]
add esp, 0xc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407f7c
lea eax, [ebp - 0x264]
inc edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407f5f
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
add edi, 0xfffffffe
lea ecx, [esi - 0x10]
call fcn.00402471
mov eax, edi
call fcn.00422671
ret
Function at 0x407f8c
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
mov edi, edx
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x407fc3
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x407fc3
mov dword [edi], eax
mov bl, 1
test esi, esi
je 0x407fce
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
ret

Function at 0x409fa0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0x24
mov eax, 0x436a86
call fcn.00422682
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp byte [edi + 0xc0], 0
je 0x40a117
cmp byte [edi + 0xd8], 0
jne 0x40a117
xor ebx, ebx
inc ebx
cmp dword [edi + 0x90], 3
je 0x409ff8
call fcn.0040ad9a
mov eax, dword [edi + 0x90]
cmp eax, 2
je 0x409ff8
cmp eax, ebx
je 0x409ff8
test byte [edi + 0x44], 0x48
je 0x409ff8
mov ecx, edi
call fcn.0040a27e
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], bl
mov ebx, ecx
mov eax, dword [edi + 0xa8]
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x40a066
lea eax, [edi + 0xa4]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
push ebx
mov ecx, eax
call fcn.004041c5
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x40a05b
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.004041c5
push eax
lea ecx, [ebp - 0x30]
call fcn.004042a2
mov eax, dword [ebp - 0x10]
inc ebx
cmp ebx, edi
jl 0x40a02d
mov edi, dword [ebp - 0x14]
mov ebx, dword [edi + 0xb4]
lea eax, [edi + 0xb0]
sub ebx, 1
mov dword [ebp - 0x18], eax
js 0x40a0b1
mov edi, eax
push ebx
mov ecx, edi
call fcn.004041c5
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x40a0a9
push ebx
mov ecx, edi
call fcn.004041c5
push eax
lea ecx, [ebp - 0x24]
call fcn.004042a2
sub ebx, 1
jns 0x40a07c
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x30]
push eax
lea ecx, [edi + 0xa4]
call fcn.0040b6ff
lea ebx, [edi + 0xb0]
mov ecx, ebx
call fcn.00404266
mov esi, dword [ebp - 0x20]
jmp 0x40a0e3
push esi
lea ecx, [ebp - 0x24]
call fcn.004041c5
push eax
mov ecx, ebx
call fcn.004042a2
sub esi, 1
jns 0x40a0d2
cmp dword [edi + 0xa8], 0
jne 0x40a0ff
cmp dword [edi + 0xb4], 0
jne 0x40a0ff
xor eax, eax
inc eax
jmp 0x40a101
xor al, al
lea ecx, [ebp - 0x24]
mov byte [edi + 0xd8], al
call fcn.00404266
lea ecx, [ebp - 0x30]
call fcn.00404266
call fcn.0042265c
ret
Function at 0x40ad9a
Capabilities:
Delete file

Disassembly:
push 0x284
mov eax, 0x436c7f
call fcn.004226b6
mov edi, ecx
test byte [edi + 0x44], 1
je 0x40adbb
test byte [edi + 0x44], 0x40
je 0x40afa3
mov ecx, dword [edi + 0x7c]
xor eax, eax
mov dword [ebp - 0x280], ecx
mov dword [ebp - 0x26c], eax
test ecx, ecx
jle 0x40afa3
lea ecx, [edi + 0x78]
push eax
call fcn.0040b67b
mov ebx, eax
mov ecx, edi
push dword [ebx + 4]
call fcn.0040b612
mov dword [ebp - 0x278], eax
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00404f5e
add eax, 0x10
mov dword [ebp - 0x268], eax
and dword [ebp - 4], 0
lea ecx, [ebp - 0x268]
mov eax, dword [ebx + 0x18]
push dword [eax - 0xc]
push eax
call fcn.00404e09
cmp byte [ebx + 0x1c], 0
mov esi, dword [ebp - 0x268]
jne 0x40ae8f
push 0x250
lea eax, [ebp - 0x264]
push 0
push eax
call fcn.00423750
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor ecx, ecx
mov edx, eax
add ecx, dword [ebp - 0x244]
mov eax, dword [ebp - 0x248]
adc eax, 0
mov dword [ebp - 0x274], ecx
mov dword [ebp - 0x270], eax
test edx, edx
je 0x40ae7e
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x270]
mov ecx, dword [ebp - 0x274]
cmp ecx, dword [ebx + 0xc]
jne 0x40af7b
test eax, eax
jne 0x40af7b
cmp dword [ebx], 1
je 0x40aec1
cmp dword [ebx], 3
je 0x40aec1
cmp dword [ebx], 7
je 0x40aec1
cmp dword [ebx], 8
je 0x40aec1
cmp dword [ebx], 0x64
jb 0x40aee8
mov eax, dword [edi + 0x90]
cmp eax, 2
je 0x40af7b
cmp eax, 5
jne 0x40aee8
jmp 0x40af7b
mov eax, dword [edi + 0x90]
cmp eax, 4
je 0x40aee8
cmp eax, 2
je 0x40af7b
cmp eax, 1
je 0x40af7b
test byte [ebx + 8], 1
jne 0x40af7b
cmp dword [esi - 4], 1
jle 0x40af02
push dword [esi - 0xc]
lea ecx, [ebp - 0x268]
call fcn.00402489
mov esi, dword [ebp - 0x268]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40af4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x40af4b
push 0
push ecx
lea ecx, [ebp - 0x290]
call fcn.0040293e
lea eax, [ebp - 0x268]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x290]
call fcn.00402971
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 0
call fcn.00402a57
lea edx, [ebp - 0x268]
lea ecx, [ebp - 0x27c]
call fcn.00407369
mov edx, dword [ebp - 0x278]
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.004077b8
mov ecx, dword [ebp - 0x27c]
lea ecx, [ecx - 0x10]
call fcn.00402471
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00402471
mov eax, dword [ebp - 0x26c]
lea ecx, [edi + 0x78]
inc eax
mov dword [ebp - 0x26c], eax
cmp eax, dword [ebp - 0x280]
jl 0x40add7
call fcn.00422671
ret
Function at 0x40bc4a
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
or dword [ebp - 0x14], 0xffffffff
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], eax
push edi
push edi
mov esi, 0x4470ec
mov dword [ebp - 0x18], edi
push edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call fcn.00417aec
mov ecx, dword [ebp - 0x18]
call fcn.0040b954
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x18], edi
je 0x40bccc
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x14], 0xffffffff
je 0x40bcc3
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x40bcc3
cmp dword [ebp + 8], 0x103
jne 0x40bcc3
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret 4

Function at 0x40be32
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x2c
mov eax, dword [0x44e080]
xor eax, esp
mov dword [esp + 0x24], eax
push ebp
push esi
mov ebp, ecx
push 2
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
xorps xmm0, xmm0
lea eax, [esp + 0x1c]
push eax
push esi
movups xmmword [esp + 0x24], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
xor eax, eax
cmp byte [ebp + 0x2c], al
push 5
pop ecx
cmovne eax, ecx
push eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0x3e9
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [esp + 0xc]
mov dword [esp + 8], eax
push ecx
xorps xmm0, xmm0
push eax
movups xmmword [esp + 0x14], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [ebp + 0x30], 0
jne 0x40beb6
mov eax, dword [esp + 0x14]
mov dword [ebp + 0x30], eax
cmp byte [ebp + 0x2c], 0
je 0x40bec1
mov eax, dword [ebp + 0x30]
jmp 0x40bec5
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push 0x206
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.0040c146
mov ecx, dword [esp + 0x2c]
pop esi
pop ebp
xor ecx, esp
call fcn.00421c45
add esp, 0x2c
ret
Function at 0x40c317
Capabilities:
Read file on windows

Disassembly:
push 0x20
mov eax, 0x436daf
call fcn.00422682
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x40c338
xor eax, eax
jmp 0x40c3f1
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x2c], 0x443654
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], ebx
push 2
pop esi
cmp edi, 0xffffffff
je 0x40c3e4
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x20]
and dword [ebp - 0x20], 0
sub ebx, esi
push 0
push eax
push esi
push edi
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x40c3e4
mov eax, ebx
lea ecx, [ebp + 8]
shr eax, 1
push eax
push 0x78
call fcn.0040827e
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x40c3b1
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00402489
mov eax, dword [ebp + 8]
push 0
lea ecx, [ebp - 0x14]
push ecx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40c3d9
cmp dword [ebp - 0x14], 0
je 0x40c3d9
mov ecx, dword [ebp - 0x18]
lea eax, [ebp + 8]
push eax
call fcn.0040e07f
movzx esi, al
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00402471
test edi, edi
je 0x40c3ef
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
call fcn.0042265c
ret 0xc

Function at 0x40dd43
Capabilities:
Print debug messages

Disassembly:
push 0xc
mov eax, 0x436e5b
call fcn.00422682
mov edi, ecx
cmp byte [0x44fccc], 0
je 0x40dda0
call fcn.0040219e
push eax
lea ecx, [ebp - 0x10]
call fcn.00401fe1
and dword [ebp - 4], 0
mov esi, dword [edi]
test esi, esi
je 0x40dd83
push esi
call fcn.00425b9b
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00404e09
lea eax, [ebp - 0x10]
mov ecx, 0x44fc98
push eax
call fcn.004117dd
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00402471
cmp byte [0x44e8d0], 0
push dword [edi]
je 0x40ddfc
lea ecx, [ebp - 0x14]
call fcn.00402742
mov dword [ebp - 4], 1
call fcn.0040219e
push eax
lea ecx, [ebp - 0x10]
call fcn.00401fe1
push 0x10
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
lea edx, [ebp - 0x14]
mov ecx, eax
call fcn.0041763d
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00402471
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402471
jmp 0x40de02
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.0042265c
ret