joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10040bf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [0x101257f8]
mov eax, ecx
mov dword [ebp - 8], eax
mov dword [esi + 0x2c40], 0
test eax, eax
je 0x10040ce1
push edi
lea edi, [esi + 0x2c44]
mov dword [esi + 0x2c40], 0
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x10040c44
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.10041ad0
mov dword [edi], 0
cmp dword [edi + 4], 0
jne 0x10040c59
push 8
mov ecx, edi
call fcn.10041ad0
mov eax, dword [edi]
mov ecx, dword [edi + 8]
push ebx
mov dword [ebp - 4], 0
mov byte [ecx + eax], 0
inc dword [edi]
cmp dword [esi + 0x2c50], 0
jle 0x10040c9c
xor ebx, ebx
mov eax, dword [esi + 0x2c58]
add eax, ebx
push edi
push eax
push esi
mov eax, dword [eax + 0x10]
call eax
mov eax, dword [ebp - 4]
add esp, 0xc
inc eax
add ebx, 0x18
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x2c50]
jl 0x10040c77
mov edi, dword [edi]
mov ebx, 0x1012569b
mov ecx, dword [ebp - 8]
mov edx, 0x100dd9f8
lea eax, [edi - 1]
neg edi
sbb edi, edi
and edi, eax
mov eax, dword [esi + 0x2c4c]
test eax, eax
cmovne ebx, eax
call fcn.100312c0
mov esi, eax
test esi, esi
je 0x10040cdf
push esi
push edi
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100646f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
push esi
push edi
xorps xmm0, xmm0
lea edx, [esp + 0x10]
sub esp, 8
movaps xmmword [esp + 0x18], xmm0
movq qword [esp + 0x28], xmm0
call fcn.10003f80
push 0x58
lea eax, [esp + 0x44]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword fs:[0x2c]
add esp, 0x14
mov ecx, dword [0x1012535c]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x1015eee0]
cmp eax, dword [esi + 4]
jle 0x1006477e
push 0x1015eee0
call fcn.10079ad7
add esp, 4
cmp dword [0x1015eee0], 0xffffffff
jne 0x1006477e
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
mov dword [0x1015eee8], eax
mov dword [0x1015eeec], edx
push 0x1015eee0
call fcn.10079a86
add esp, 4
mov ecx, dword [0x1015eeec]
mov eax, dword [0x1015eee8]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], str.playing_cs:go
mov dword [esp + 0x50], str.https:__i.imgur.com_ZFZqM0G.png
mov dword [esp + 0x40], eax
call fcn.10004590
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x100647e6
sub eax, 1
jne 0x1006493a
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push esi
push 0x10064470
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp + 0x10], 0
jne 0x1006493a
mov ecx, 0x1015f4ac
call fcn.1002bb10
mov ecx, 0x1015f538
call fcn.1002bb10
mov ecx, 0x1015f510
call fcn.1002bb10
mov ecx, 0x1015f54c
call fcn.1002bb10
mov ecx, 0x1015f4e8
call fcn.1002bb10
mov ecx, 0x1015f4fc
call fcn.1002bb10
mov ecx, 0x1015f574
call fcn.1002bb10
mov ecx, 0x1015f560
call fcn.1002bb10
mov eax, dword [0x10160eec]
cmp eax, dword [esi + 4]
jle 0x1006487d
push 0x10160eec
call fcn.10079ad7
add esp, 4
cmp dword [0x10160eec], 0xffffffff
jne 0x1006487d
push 0x1007eb50
call fcn.10079a38
add esp, 4
push 0x10160eec
call fcn.10079a86
add esp, 4
mov eax, dword [0x1015bd44]
xor edi, edi
cmp dword [eax + 0xc], edi
jle 0x100648cc
xor ecx, ecx
mov dword [esp + 0xc], ecx
nop
mov esi, dword [eax]
add esi, ecx
cmp dword [esi], 0xfffffffe
jne 0x100648bf
mov edx, dword [esi + 4]
test edx, edx
je 0x100648bf
mov eax, dword [edx + 8]
lea ecx, [edx + 8]
mov eax, dword [eax + 0x24]
call eax
mov ecx, dword [esp + 0xc]
test al, al
mov eax, dword [0x1015bd44]
jne 0x100648bf
mov dword [esi + 0x14], 0
inc edi
add ecx, 0x38
mov dword [esp + 0xc], ecx
cmp edi, dword [eax + 0xc]
jl 0x10064890
mov eax, dword [0x10160ee0]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ecx + 0x20], eax
call fcn.1002a570
call fcn.10063bf0
mov esi, dword [0x101257f8]
mov ecx, esi
mov dword [0x1015b7ac], 0
mov dword [0x1015b7b4], 0
call fcn.100350c0
cmp dword [0x101257f8], esi
jne 0x10064916
mov dword [0x101257f8], 0
test esi, esi
je 0x1006493a
mov ecx, esi
call fcn.10041cc0
mov eax, dword [0x101257f8]
test eax, eax
je 0x10064930
dec dword [eax + 0x36c]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1006f570
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x1006f663
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1006f65c
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x20], 0x10
jb 0x1006f642
call ebx
cmp dword [ebp - 0x14], eax
jne 0x1006f642
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1006f642
mov edx, dword [esi]
test edx, edx
jne 0x1006f608
push 0x200
push edx
push dword [0x10125810]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x1006f65c
jmp 0x1006f633
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1006f633
shl eax, 3
push eax
push edx
push 0
push dword [0x10125810]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1006f65c
mov eax, dword [esi + 4]
add eax, eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
lea eax, [ecx + 1]
mov dword [esi + 8], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1006f5c7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x1006f6a9
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x1006f6a9
nop
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1006f6a3
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.1006f420
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x1006f670
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1006f6b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
imul esi, ecx, 0x2c
push edi
add esi, dword [0x101610b0]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ebx, [eax*2 + 5]
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1006f6f6
pop edi
pop esi
mov eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x1006f711
mov eax, dword [esi]
mov word [eax], 0xf9eb
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [esi + 0x14], 6
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1006f740
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [0x101610b8]
push ebx
push esi
xor ebx, ebx
xor esi, esi
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x1006f81d
mov eax, dword [0x101610b0]
add eax, 0x14
test byte [eax], 2
je 0x1006f77a
inc esi
add eax, 0x2c
cmp esi, ecx
jb 0x1006f765
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x1006f81d
push edi
push 1
or edx, 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.1006f570
mov ecx, dword [0x101610b8]
add esp, 4
cmp esi, ecx
jae 0x1006f7cb
imul edi, esi, 0x2c
mov eax, dword [0x101610b0]
test byte [edi + eax + 0x14], 2
jne 0x1006f7c0
mov ecx, esi
call fcn.1006f6b0
mov ebx, eax
test ebx, ebx
jne 0x1006f7c8
mov ecx, dword [0x101610b8]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x1006f7a1
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1006f81c
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x1006f80d
mov ebx, eax
nop dword [eax + eax]
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1006f801
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x1006f7e0
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x10125810]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10074cf0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x130
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov al, byte [0x100df898]
xorps xmm0, xmm0
movaps xmmword [esp], xmm0
mov ecx, 0x1015f3a4
movq xmm0, qword [str.C:gloss_]
mov byte [esp + 8], al
lea eax, [esp]
push eax
mov dword [esp + 0x14], 9
mov dword [esp + 0x18], 0xf
movq qword [esp + 4], xmm0
mov byte [esp + 0xd], 0
call fcn.10017e00
mov ecx, dword [esp + 0x14]
cmp ecx, 0x10
jb 0x10074d87
mov edx, dword [esp]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10074d7d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10074d7d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10079a4d
add esp, 8
cmp dword [0x1015f3b8], 0x10
mov eax, 0x1015f3a4
push 0
cmovae eax, dword [0x1015f3a4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, 0x1015ef08
call fcn.10070860
mov ecx, 0x1015ef08
call fcn.10071da0
mov ecx, 0x1015ef08
call fcn.10073110
mov esp, ebp
pop ebp
ret
Function at 0x1007a6e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push 0x1007f660
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.1007a6bc
pop esi
leave
ret 8
Function at 0x40141e
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x214
lea eax, [esp]
push ebp
push esi
mov esi, dword [esp + 0x228]
push edi
mov edi, dword [esp + 0x22c]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or eax, 9
push eax
push dword [esp + 0x230]
push dword [esp + 0x230]
call fcn.00406274
test eax, eax
jne 0x401527
xor ebp, ebp
test byte [esp + 0x22c], 2
je 0x401493
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebp
push eax
lea eax, [esp + 0x28]
push eax
push ebp
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x401503
push 0x105
lea eax, [esp + 0x18]
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x4014ce
test edi, edi
jne 0x401503
push dword [esp + 0x22c]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call fcn.0040141e
test eax, eax
jne 0x4014d8
push 0x105
lea eax, [esp + 0x18]
push eax
push edi
push dword [esp + 0x18]
call ebp
test eax, eax
je 0x4014a6
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406882
test eax, eax
jne 0x401514
push dword [esp + 0x228]
push dword [esp + 0x228]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x401527
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x401527
push 0
push esi
push dword [esp + 0x230]
push dword [esp + 0x230]
call eax
pop edi
pop esi
pop ebp
add esp, 0x214
ret 0xc
Function at 0x4032f7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push edi
xor edi, edi
test ecx, ecx
js 0x403320
mov eax, dword [0x7a7dd8]
push edi
add eax, ecx
push edi
push eax
push dword [0x40a014]
mov dword [0x40c954], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00403178
test eax, eax
js 0x4033f6
push ebx
push esi
push 4
lea eax, [ebp + 8]
push eax
push dword [0x40a014]
call fcn.004068e4
test eax, eax
je 0x4033f1
push dword [ebp + 8]
add dword [0x40c954], 4
call fcn.00403178
mov esi, eax
test esi, esi
js 0x4033ed
cmp dword [ebp + 0x10], edi
jne 0x4033c1
mov ecx, dword [ebp + 8]
test ecx, ecx
jle 0x4033ed
mov ebx, 0x4000
mov edi, 0x793238
cmp ecx, ebx
mov eax, ebx
cmovl eax, ecx
push eax
push edi
push dword [0x40a014]
mov dword [ebp - 4], eax
call fcn.004068e4
test eax, eax
je 0x4033f1
push dword [ebp - 4]
push edi
push dword [ebp + 0xc]
call fcn.004069a7
test eax, eax
je 0x4033bd
mov eax, dword [ebp - 4]
add esi, eax
mov ecx, dword [ebp + 8]
add dword [0x40c954], eax
sub ecx, eax
mov dword [ebp + 8], ecx
test ecx, ecx
jg 0x403379
jmp 0x4033ed
push 0xfffffffffffffffe
jmp 0x4033f3
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x14]
cmp dword [ebp + 8], eax
cmovl eax, dword [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4033f1
mov esi, dword [ebp - 4]
add dword [0x40c954], esi
mov eax, esi
jmp 0x4033f4
push 0xfffffffffffffffd
pop eax
pop esi
pop ebx
pop edi
leave
ret 0x10

Function at 0x403419
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
cmp dword [ebp + 8], 0
je 0x403441
mov eax, dword [0x40c968]
test eax, eax
je 0x403438
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x40c968], 0
leave
ret
cmp dword [0x40c968], 0
je 0x403453
push 0
call fcn.004061ab
leave
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x7a7d80]
jbe 0x4034bd
cmp dword [0x7a6d78], 0
je 0x403498
test byte [0x7a7e74], 1
je 0x4034bd
call fcn.004033fb
push eax
lea eax, [ebp - 0x80]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push 0
call fcn.00405ce5
leave
ret
push 0
push 0x40377b
push 0
push 0x6f
push dword [0x7a6d74]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [0x40c968], eax
call dword [sym.imp.USER32.dll_ShowWindow]
leave
ret
Function at 0x405dc9
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405de3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4
Function at 0x40613a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
lea eax, [ebp - 0x23c]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
ja 0x406174
test eax, eax
je 0x406174
add eax, eax
cmp word [ebp + eax - 0x23e], 0x5c
je 0x406176
mov ecx, 0x4082a8
jmp 0x40617b
xor eax, eax
mov ecx, 0x4082aa
push dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x23c]
add eax, ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4061d9
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4061fc
push dword [esp + 8]
push dword [esp + 8]
call fcn.004062a2
pop ecx
pop ecx
inc dword [0x7a7e50]
ret 8

Function at 0x4062a2
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, 0x400
mov dword [0x7a4ec0], 0x55004e
mov ebp, 0x7a4ec0
mov dword [0x7a4ec4], 0x4c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
je 0x4062f8
push 1
push 0
push esi
call fcn.004068b7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x4063d8
cmp eax, ebx
jg 0x4063d8
push ebx
mov esi, 0x7a46c0
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x4063d8
cmp eax, ebx
jg 0x4063d8
push esi
push ebp
push str._ls_ls_r_n
push 0x7a42c0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x7a7d90]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.00405e44
push 4
push 0xc0000000
push esi
call fcn.004068b7
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4063d8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [ebp + 0xa]
add ecx, esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4063d1
push esi
push edi
push ebx
call fcn.004068e4
test eax, eax
je 0x4063d1
push str._Rename__r_n
push edi
call fcn.00406ad2
test eax, eax
jne 0x4063dd
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push ebp
push 0x7a42c0
lea eax, [ecx + edi]
push eax
call fcn.00406650
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + ebp]
push eax
push edi
push ebx
call fcn.004069a7
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x408984
add eax, 0xa
push eax
call fcn.00406ad2
mov ecx, eax
test ecx, ecx
je 0x4063a2
lea edx, [edi + esi]
jmp 0x4063fc
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x4063f6
sub ecx, edi
inc ecx
jmp 0x4063a4
Function at 0x406521
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.00406b39
mov edi, eax
cmp edi, 0xffffffff
je 0x406564
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x406545
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40654b
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x406554
xor eax, eax
inc eax
jmp 0x406566
test byte [ebp + 0xc], 4
jne 0x406564
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop ebp
ret 8

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

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x7a3ac0
push ebx
call fcn.00406ab6
push ebx
call fcn.00406b61
mov esi, eax
test esi, esi
je 0x406649
push esi
call fcn.00406cd9
test byte [0x7a7d8c], 0x80
je 0x40660d
movzx eax, word [esi]
test ax, ax
je 0x406649
cmp eax, 0x5c
je 0x406649
sub esi, ebx
sar esi, 1
jmp 0x406627
call fcn.0040656b
test eax, eax
je 0x406621
test byte [eax], 0x10
je 0x406649
push ebx
call fcn.00406cac
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
cmp eax, esi
jg 0x406613
call fcn.004064f2
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406649
xor eax, eax
inc eax
jmp 0x40664b
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x406672
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x7a3278], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x7a3278
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4066b1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x4066b5
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x25c
push ebx
mov ebx, dword [esp + 0x268]
push esi
mov esi, dword [esp + 0x268]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.004065d4
mov dword [esp + 0x14], eax
test bl, 8
je 0x4066f7
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x7a7e48], eax
jmp 0x406876
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x14], ebp
je 0x406714
test eax, eax
je 0x406865
test bl, 2
je 0x40682e
push esi
push 0x7a32c0
call fcn.00406ab6
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x406737
push str..
push 0x7a32c0
call ebp
jmp 0x40673d
push esi
call fcn.00406cac
xor eax, eax
cmp word [esi], ax
jne 0x40674e
cmp word [0x7a32c0], 0x5c
jne 0x406756
push 0x4082a8
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
push 0x7a32c0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x406817
push 0x2e
pop eax
cmp word [esp + 0x48], ax
jne 0x4067a0
cmp word [esp + 0x4a], 0
je 0x4067f9
cmp word [esp + 0x4a], ax
jne 0x4067a0
cmp word [esp + 0x4c], 0
je 0x4067f9
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x14]
call fcn.00406ab6
test byte [esp + 0x1c], 0x10
je 0x4067c7
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x4067f9
push ebx
push esi
call fcn.004066b5
jmp 0x4067f9
push edi
push esi
call fcn.00406521
test eax, eax
jne 0x4067f1
test edi, edi
je 0x4067e9
push esi
push 0xfffffffffffffff1
call fcn.00405ce5
xor eax, eax
push eax
push esi
call fcn.004061d9
jmp 0x4067f9
inc dword [0x7a7e48]
jmp 0x4067f9
push esi
push 0xfffffffffffffff2
call fcn.00405ce5
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x406782
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x14], 0
je 0x406875
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [eax - 2], cx
cmp dword [esp + 0x18], ecx
je 0x406865
push esi
call fcn.0040656b
test eax, eax
je 0x406875
push esi
call fcn.004064f2
mov eax, edi
or eax, 1
push eax
push esi
call fcn.00406521
test eax, eax
jne 0x40686d
test edi, edi
je 0x406865
push esi
push 0xfffffffffffffff1
call fcn.00405ce5
xor eax, eax
push eax
push esi
call fcn.004061d9
jmp 0x406875
inc dword [0x7a7e48]
jmp 0x406875
push esi
push 0xffffffffffffffe5
call fcn.00405ce5
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x25c
ret 8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc