joyce8/EMBER2024-capa huggingface dataset:
Function at 0x487f20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0x508bb8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov al, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x488a90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x488aa0
xor eax, eax
jmp 0x488c3d
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x488bfe
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x508c80]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x508c80]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x508c80]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x508c80]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x508c80]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x508c80]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x508c80]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x508c80]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x488aa9
cmp dword [ebp + 0x10], 0
je 0x488c37
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x508c80]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x488c04
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x488c40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0x5090a8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov al, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x48c420
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5392a4]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.0044ac48
add esp, 8
push str.DummySecurity.txt
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call fcn.0044ac48
add esp, 8
push 0
push 0x80
push 1
push 0
push 0
push 0x10000000
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x48c48d
xor eax, eax
jmp 0x48c4b8
push 1
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00434af0
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004489b2
mov esp, ebp
pop ebp
ret
Function at 0x48cbc0
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1d9d
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x474
mov eax, dword [0x5392a4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
cmp dword [0x592ea4], 0
je 0x48cdc3
mov dword [ebp - 0x26c], 0
lea ecx, [ebp - 0x270]
call fcn.004347c0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x480]
push ecx
call fcn.0044ac48
add esp, 8
lea edx, [ebp - 0x480]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
cmp dword [ebp + 0xc], 0
jne 0x48cc6d
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x480]
push ecx
call fcn.0048c420
add esp, 8
test eax, eax
je 0x48cc6d
lea ecx, [ebp - 0x270]
call fcn.00434c80
mov dword [ebp + 0xc], eax
lea edx, [ebp - 0x480]
push edx
call fcn.00448da2
add esp, 4
lea eax, [ebp + eax*2 - 0x480]
mov dword [ebp - 0x274], eax
push 0x509958
mov ecx, dword [ebp - 0x274]
push ecx
call fcn.0044ac48
add esp, 8
lea edx, [ebp - 0x268]
push edx
lea eax, [ebp - 0x480]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x484], eax
mov dword [ebp - 0x278], 1
jmp 0x48ccdd
lea ecx, [ebp - 0x268]
push ecx
mov edx, dword [ebp - 0x484]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x278], eax
cmp dword [ebp - 0x278], 1
jne 0x48cd7e
cmp dword [ebp - 0x484], 0xffffffff
je 0x48cd7e
push 0x50995c
lea eax, [ebp - 0x23c]
push eax
call fcn.0044b463
add esp, 8
test eax, eax
je 0x48cd27
push 0x509960
lea ecx, [ebp - 0x23c]
push ecx
call fcn.0044b463
add esp, 8
test eax, eax
jne 0x48cd29
jmp 0x48ccc3
lea edx, [ebp - 0x23c]
push edx
mov eax, dword [ebp - 0x274]
push eax
call fcn.0044ac48
add esp, 8
push 0
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x480]
push edx
call fcn.0048c6e0
add esp, 0xc
lea eax, [ebp - 0x480]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0x10
je 0x48cd79
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x480]
push edx
call fcn.0048cbc0
add esp, 8
jmp 0x48ccc3
mov eax, dword [ebp - 0x484]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x26c], 0
je 0x48cd9e
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x270]
call fcn.00434b80
jmp 0x48cdbc
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004489b2
mov esp, ebp
pop ebp
ret
Function at 0x48ce60
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f341e
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x440
mov eax, dword [0x5392a4]
xor eax, ebp
mov dword [ebp - 0x2c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00419540
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 0x100
mov dword [ebp - 0x20], 0
push 0xf003f
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00419460
test eax, eax
je 0x48cf1b
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0048c930
add esp, 8
push 0xf003f
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x18]
call fcn.00419460
test eax, eax
je 0x48cf16
mov dword [ebp - 0x440], 0x80004005
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00419520
mov eax, dword [ebp - 0x440]
jmp 0x48d0cf
jmp 0x48cfb1
push 4
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x434]
call fcn.00434920
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x434]
call fcn.00434c40
test eax, eax
je 0x48cfa2
lea ecx, [ebp - 0x434]
call fcn.00434c80
test eax, eax
jne 0x48cfa2
mov dword [ebp - 0x438], 0
lea ecx, [ebp - 0x438]
push ecx
call fcn.0048c380
add esp, 4
test eax, eax
jne 0x48cfa2
mov edx, dword [ebp - 0x438]
push edx
lea ecx, [ebp - 0x434]
call fcn.00434bb0
cmp dword [ebp + 0x10], 0
je 0x48cf8c
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
cmp dword [ebp - 0x438], 0
je 0x48cfa2
mov ecx, dword [ebp - 0x438]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x434]
call fcn.00434b80
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x450], edx
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x450]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0040ae10
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x48d085
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x430]
push eax
call fcn.0044ac48
add esp, 8
push 0x5099fc
lea ecx, [ebp - 0x430]
push ecx
call fcn.0044ac1a
add esp, 8
lea edx, [ebp - 0x230]
push edx
lea eax, [ebp - 0x430]
push eax
call fcn.0044ac1a
add esp, 8
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x430]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0048ce60
add esp, 0xc
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
je 0x48d079
mov ecx, dword [ebp - 0x43c]
mov dword [ebp - 0x444], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00419520
mov eax, dword [ebp - 0x444]
jmp 0x48d0cf
mov dword [ebp - 0x1c], 0x100
jmp 0x48cfb1
mov dword [ebp - 0x448], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00419520
mov eax, dword [ebp - 0x448]
jmp 0x48d0cf
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.004489b2
mov esp, ebp
pop ebp
ret
Function at 0x48d0f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x5392a4]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x48d1bb
mov dword [ebp - 0x240], 0x22c
cmp dword [ebp + 8], 0
jne 0x48d139
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
setne dl
mov byte [ebp - 0x241], dl
movzx eax, byte [ebp - 0x241]
test eax, eax
je 0x48d1b1
mov ecx, dword [ebp - 0x238]
cmp ecx, dword [ebp + 8]
jne 0x48d173
mov edx, dword [ebp - 0x228]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jne 0x48d199
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x48d199
mov dword [ebp - 0x248], 1
jmp 0x48d1a3
mov dword [ebp - 0x248], 0
mov dl, byte [ebp - 0x248]
mov byte [ebp - 0x241], dl
jmp 0x48d154
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004489b2
mov esp, ebp
pop ebp
ret

Function at 0x48d1d0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x5392a4]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov byte [ebp - 5], 0
mov eax, dword [ebp + 8]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x48d252
mov dword [ebp - 0x438], 0x428
lea ecx, [ebp - 0x438]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x48d248
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x48d234
mov byte [ebp - 5], 1
jmp 0x48d248
lea edx, [ebp - 0x438]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x48d219
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 5]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004489b2
mov esp, ebp
pop ebp
ret
Function at 0x48d270
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x5392a4]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov byte [ebp - 5], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x48d303
mov dword [ebp - 0x240], 0x22c
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x48d2f9
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.0044b3d0
add esp, 8
test eax, eax
jne 0x48d2e5
mov byte [ebp - 5], 1
cmp dword [ebp + 0xc], 0
je 0x48d2e3
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x238]
mov dword [ecx], edx
jmp 0x48d2f9
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x48d2b7
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 5]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004489b2
mov esp, ebp
pop ebp
ret

Function at 0x48d320
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x5392a4]
xor eax, ebp
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
call fcn.0043ead0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x48d3af
mov dword [ebp - 0x238], 0x22c
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x48d3a5
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x214]
push eax
call fcn.0044b3d0
add esp, 8
test eax, eax
jne 0x48d391
lea ecx, [ebp - 0x230]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0043ea60
lea edx, [ebp - 0x238]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x48d36b
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0xc]
call fcn.004333f0
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004489b2
mov esp, ebp
pop ebp
ret
Function at 0x48d3d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee278
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x5392a4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
call fcn.0043dea0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x48d5e8
mov dword [ebp - 0x244], 0x22c
lea eax, [ebp - 0x244]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x48d5de
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x23c]
push eax
call fcn.0048d1d0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x48d5c6
lea ecx, [ebp - 0x265]
call fcn.0040b800
push eax
lea ecx, [ebp - 0x264]
call fcn.004148f0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x264]
push edx
push 0x509a00
lea eax, [ebp - 0x220]
push eax
call fcn.00486e00
add esp, 0xc
test eax, eax
jne 0x48d4df
lea ecx, [ebp - 0x264]
push ecx
mov edx, dword [ebp - 0x23c]
push edx
call fcn.00486c30
add esp, 8
test eax, eax
je 0x48d4d4
lea eax, [ebp - 0x264]
push eax
push 0x509a20
lea ecx, [ebp - 0x260]
call fcn.00413e50
push eax
call fcn.00486e00
add esp, 0xc
test eax, eax
jne 0x48d4df
lea ecx, [ebp - 0x260]
call fcn.0041d350
lea ecx, [ebp - 0x260]
call fcn.00413930
movzx ecx, al
test ecx, ecx
jne 0x48d51d
push 0x509a48
lea edx, [ebp - 0x220]
push edx
push 0x509a40
lea ecx, [ebp - 0x260]
call fcn.00410cd0
mov ecx, eax
call fcn.00410cd0
mov ecx, eax
call fcn.00410cd0
jmp 0x48d560
lea ecx, [ebp - 0x289]
call fcn.0040b800
push eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x288]
call fcn.00414c40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x288]
push ecx
lea ecx, [ebp - 0x264]
call fcn.00415500
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x288]
call fcn.00414a10
lea edx, [ebp - 0x264]
push edx
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x2b0]
call fcn.00433360
mov dword [ebp - 0x2bc], eax
mov ecx, dword [ebp - 0x2bc]
mov dword [ebp - 0x2c0], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2c0]
push edx
lea eax, [ebp - 0x2b8]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004331a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2b0]
call fcn.0043e160
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x264]
call fcn.00414a10
lea ecx, [ebp - 0x244]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x48d43b
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0xc]
call fcn.00420000
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004489b2
mov esp, ebp
pop ebp
ret
Function at 0x48d770
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x5392a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x25c], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x468]
push ecx
call fcn.0044ac48
add esp, 8
lea edx, [ebp - 0x468]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0x509aac
lea eax, [ebp - 0x468]
push eax
call fcn.0044ac1a
add esp, 8
lea ecx, [ebp - 0x258]
push ecx
lea edx, [ebp - 0x468]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x46c], eax
mov dword [ebp - 0x260], 1
jmp 0x48d801
lea eax, [ebp - 0x258]
push eax
mov ecx, dword [ebp - 0x46c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x260], 1
jne 0x48d861
cmp dword [ebp - 0x46c], 0xffffffff
je 0x48d861
push 0x509ab0
lea edx, [ebp - 0x22c]
push edx
call fcn.0044b463
add esp, 8
test eax, eax
je 0x48d843
push 0x509ab4
lea eax, [ebp - 0x22c]
push eax
call fcn.0044b463
add esp, 8
test eax, eax
jne 0x48d845
jmp 0x48d7e7
mov ecx, dword [ebp - 0x258]
and ecx, 0x10
je 0x48d85f
mov edx, dword [ebp - 0x25c]
add edx, 1
mov dword [ebp - 0x25c], edx
jmp 0x48d7e7
mov eax, dword [ebp - 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x25c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004489b2
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [ebp + 0xc], 0
jne 0x48db83
xor al, al
jmp 0x48dc6d
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.00413e50
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x48dba5
xor al, al
jmp 0x48dc6d
mov eax, dword [ebp - 0x24]
and eax, 0x10
xor ecx, ecx
cmp eax, 0x10
sete cl
mov byte [ebp - 0x1d], cl
push 0
movzx edx, byte [ebp - 0x1d]
neg edx
sbb edx, edx
and edx, 0x1ffff90
add edx, 0x80
push edx
push 3
push 0
push 1
push SysReAllocStringLen
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.00413e50
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x48dbf7
xor al, al
jmp 0x48dc6d
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 1
je 0x48dc31
cmp dword [ebp - 0x28], 2
je 0x48dc59
cmp dword [ebp - 0x28], 4
je 0x48dc45
jmp 0x48dc6b
push 8
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00448f70
add esp, 0xc
jmp 0x48dc6b
push 8
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00448f70
add esp, 0xc
jmp 0x48dc6b
push 8
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00448f70
add esp, 0xc
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x48dce0
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x48dd03
push 0x80
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.00413e50
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.00413e50
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x48dd36
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
je 0x48dd2e
cmp dword [ebp - 4], 3
jne 0x48dd32
mov al, 1
jmp 0x48dd38
xor al, al
jmp 0x48dd38
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x48dd40
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.00413e50
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x48dd72
cmp dword [ebp + 0xc], 0
je 0x48dd72
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
cmp dword [ebp - 4], 0
setne al
mov esp, ebp
pop ebp
ret

Function at 0x48de00
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0xb
mov ecx, dword [ebp + 0xc]
add ecx, 4
call fcn.00413e50
push eax
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.00413e50
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne al
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
test ecx, ecx
jne 0x48de45
cmp dword [ebp + 0x10], 0
je 0x48de45
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x48ea70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x48ea86
xor eax, eax
jmp 0x48eaa7
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0044df1b
add esp, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x496940
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x496975
mov eax, 8
jmp 0x4969ee
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.0044899c
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4969bc
mov eax, 1
jmp 0x4969ee
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.00496890
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.0044ae14
add esp, 4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4