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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e858
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4c5484]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], ecx
mov eax, dword [ebp - 0x68]
cmp dword [eax + 0x3c], 0
je 0x414b70
mov ecx, dword [ebp - 0x68]
movzx edx, byte [ecx + 0x41]
test edx, edx
jne 0x414b7c
mov al, 1
jmp 0x414d1f
mov dword [ebp - 0x10], 8
call fcn.004036e8
push eax
mov eax, dword [ebp - 0x68]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x68]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x3c], eax
call fcn.004036e8
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.00403198
add esp, 8
movzx eax, al
test eax, eax
je 0x414bbf
xor al, al
jmp 0x414d1f
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.00402306
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x34]
call fcn.00401154
mov ecx, eax
call fcn.00403b5c
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.00402289
add esi, eax
push esi
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
call fcn.00401154
mov ecx, eax
call fcn.00403b5c
push eax
mov ecx, dword [ebp - 0x68]
add ecx, 0x44
push ecx
mov edx, dword [ebp - 0x68]
mov ecx, dword [edx + 0x3c]
call fcn.0040320b
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x414c3a
cmp dword [ebp - 0x6c], 1
je 0x414c41
cmp dword [ebp - 0x6c], 3
je 0x414cdb
jmp 0x414cf3
mov eax, dword [ebp - 0x68]
mov byte [eax + 0x41], 0
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00401154
mov ecx, eax
call fcn.00403b5c
mov edx, dword [ebp - 0x14]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x414ca4
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x34]
call fcn.00401154
mov ecx, eax
call fcn.00403b5c
push eax
call fcn.0046333a
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x414ca4
mov byte [ebp - 0x61], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0040206d
mov al, byte [ebp - 0x61]
jmp 0x414d1f
mov ecx, dword [ebp - 0x68]
movzx edx, byte [ecx + 0x41]
test edx, edx
jne 0x414cc7
mov byte [ebp - 0x62], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0040206d
mov al, byte [ebp - 0x62]
jmp 0x414d1f
cmp dword [ebp - 0x38], 0
jne 0x414cd9
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.004024c8
jmp 0x414d0b
mov byte [ebp - 0x63], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0040206d
mov al, byte [ebp - 0x63]
jmp 0x414d1f
mov byte [ebp - 0x64], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0040206d
mov al, byte [ebp - 0x64]
jmp 0x414d1f
jmp 0x414bd2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00462614
mov esp, ebp
pop ebp
ret
Function at 0x417bf0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49edd0
mov eax, dword fs:[0]
push eax
mov eax, 0x10dc
call fcn.004640a0
mov eax, dword [0x4c5484]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10e8], ecx
call fcn.004024cd
movzx eax, al
test eax, eax
je 0x417c8d
mov ecx, dword [ebp + 0xc]
add ecx, 0xc
push 0x10b8
push ecx
lea edx, [ebp - 0x10e4]
push edx
call fcn.004640d0
add esp, 0xc
lea eax, [ebp - 0x1074]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402e50
mov dword [ebp - 4], 0
push 5
push 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.00403841
push eax
push 0x4abe00
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403364
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00462614
mov esp, ebp
pop ebp
ret 0xc
Function at 0x419160
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f088
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x4c5484]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4191aa
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x419244
push 0x4ac9e0
lea ecx, [ebp - 0x54]
call fcn.00403f8a
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004019d3
add esp, 8
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x94], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x94]
call fcn.00403841
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_get_std_handle__This_is_probably_ok_:__d___s_
push 0x212
lea edx, [ebp - 0x54]
push edx
push 0x4c71dc
call fcn.004021a8
push eax
call fcn.00403e63
add esp, 0x1c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.00403364
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.0040206d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040206d
jmp 0x41931b
push 0
lea ecx, [ebp + 8]
call fcn.00401d20
push 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 8]
call fcn.00402289
push eax
lea ecx, [ebp + 8]
call fcn.00401d11
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x41930c
push str.NotifyAndCloseHandle
lea ecx, [ebp - 0x8c]
call fcn.00403f8a
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x70]
push edx
call fcn.004019d3
add esp, 8
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x9c], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x9c]
call fcn.00403841
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_write_to_standard_output:__d___s_
push 0x21a
lea ecx, [ebp - 0x8c]
push ecx
push 0x4c71dc
call fcn.004021a8
push eax
call fcn.00403e63
add esp, 0x1c
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.00403364
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.0040206d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040206d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x445b90
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4c5484]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x14]
call fcn.004025ef
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00402b6c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x445bfb
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x14]
call fcn.00403eb8
mov eax, dword [ebp - 0x224]
jmp 0x445c8c
mov dword [ebp - 4], 0x100
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x445c61
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00401eba
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x445c58
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x14]
call fcn.00403eb8
mov eax, dword [ebp - 0x228]
jmp 0x445c8c
mov dword [ebp - 4], 0x100
jmp 0x445c02
lea ecx, [ebp - 0x14]
call fcn.00403e8b
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.004038d7
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x14]
call fcn.00403eb8
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00462614
mov esp, ebp
pop ebp
ret 4
Function at 0x447cb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2d6e
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4c5484]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x24]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x447d2f
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x447d2f
mov edx, dword [ebp - 0x18]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
lea eax, [ebp + 8]
push eax
call fcn.00401ec4
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
call fcn.00402847
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00403364
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x448110
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2e4b
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x4c5484]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4481f9
push str.CFileResource::WriteToFile::ScopedFileHandle::WriteRawData
lea ecx, [ebp - 0x90]
call fcn.00403f8a
mov dword [ebp - 4], 0
push 0x40
lea edx, [ebp - 0x90]
push edx
lea eax, [ebp - 0xac]
push eax
call fcn.004011c7
add esp, 8
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0xb8], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0xb8]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x74]
call fcn.004024eb
push 0x4beb3c
lea eax, [ebp - 0x74]
push eax
call fcn.00462623
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xac]
call fcn.00403364
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.0040206d
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x44d5a0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x4c5484]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x428], ax
push 0x208
push 0
lea ecx, [ebp - 0x426]
push ecx
call fcn.004630d0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x218], dx
push 0x208
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.004630d0
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.00403841
push eax
push 0x4af284
lea ecx, [ebp - 0x428]
push ecx
call fcn.00464435
add esp, 0xc
mov ecx, dword [ebp + 0xc]
call fcn.00403841
push eax
push 0x4af28c
lea edx, [ebp - 0x218]
push edx
call fcn.00464435
add esp, 0xc
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 2
lea eax, [ebp - 0x428]
mov dword [ebp - 0x440], eax
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x43c], ecx
mov edx, 0x614
mov word [ebp - 0x438], dx
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
xor eax, eax
cmp dword [ebp - 0x436], 0
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00462614
mov esp, ebp
pop ebp
ret
Function at 0x451cc0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a435c
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4c5484]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
add eax, 0x28
push eax
lea ecx, [ebp - 0x14]
call fcn.00402301
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [ecx + 0x41]
test edx, edx
je 0x451d1d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004029b4
jmp 0x451db4
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x24], 0
je 0x451d3d
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x24], 0
push 8
call fcn.004679e9
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
mov dword [ecx], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
lea edx, [ebp - 0x18]
push edx
push 4
mov eax, dword [ebp - 0x10]
push eax
push 0x4031c5
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x24], eax
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x24], 0
je 0x451d99
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x41], 1
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x451da5
mov eax, dword [ebp - 0x10]
push eax
call fcn.0046314a
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004029b4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x457a70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a4da8
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x4c5484]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x274], 0
push 0x4b0374
lea ecx, [ebp - 0x254]
call fcn.00402e50
mov dword [ebp - 4], 1
push 0x4b0398
lea ecx, [ebp - 0x270]
call fcn.00402e50
mov byte [ebp - 4], 2
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x270]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
lea edx, [ebp - 0x2c]
push edx
call fcn.004015ff
add esp, 0x10
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x270]
call fcn.00403364
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x254]
call fcn.00403364
push 0x4b0394
lea ecx, [ebp - 0x2c]
call fcn.004032e2
test eax, eax
jne 0x457b54
lea eax, [ebp - 0x234]
push eax
push 0
push 0
push 0x8026
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
jl 0x457b54
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00401d98
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00401ec4
mov eax, dword [ebp - 0x274]
or eax, 1
mov dword [ebp - 0x274], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00403364
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00462614
mov esp, ebp
pop ebp
ret
Function at 0x458790
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a5169
mov eax, dword fs:[0]
push eax
sub esp, 0x4f8
mov eax, dword [0x4c5484]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x4b08dc
mov ecx, dword [ebp + 8]
call fcn.004032e2
test eax, eax
jne 0x4587d1
jmp 0x458a04
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00402928
add esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x48c], 0
push 0x24c
push 0
lea edx, [ebp - 0x488]
push edx
call fcn.004630d0
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.00403841
push eax
push 0x4b08e0
push 0x104
lea eax, [ebp - 0x23c]
push eax
call fcn.004644e9
add esp, 0x10
lea ecx, [ebp - 0x48c]
push ecx
lea edx, [ebp - 0x23c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x45885b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403364
jmp 0x458a04
mov eax, dword [ebp - 0x48c]
and eax, 0x10
je 0x458962
lea ecx, [ebp - 0x460]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00403841
push eax
push 0x4b08f0
push 0x104
lea edx, [ebp - 0x23c]
push edx
call fcn.004644e9
add esp, 0x14
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x4c4]
call fcn.00402e50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c4]
push ecx
lea edx, [ebp - 0x4a8]
push edx
call fcn.00401ef6
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c4]
call fcn.00403364
push 0x4b08fc
lea ecx, [ebp - 0x4a8]
call fcn.004032e2
test eax, eax
je 0x4588f6
push 0x4b0900
lea ecx, [ebp - 0x4a8]
call fcn.004032e2
test eax, eax
jne 0x45890c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4a8]
call fcn.00403364
jmp 0x4589d1
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x458951
lea ecx, [ebp - 0x23c]
push ecx
lea ecx, [ebp - 0x4e0]
call fcn.00402e50
mov byte [ebp - 4], 4
mov edx, dword [ebp + 0x10]
push edx
movzx eax, byte [ebp + 0xc]
push eax
lea ecx, [ebp - 0x4e0]
push ecx
call fcn.004013c0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4e0]
call fcn.00403364
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4a8]
call fcn.00403364
jmp 0x4589d1
lea edx, [ebp - 0x460]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00403841
push eax
push 0x4b0908
push 0x104
lea eax, [ebp - 0x23c]
push eax
call fcn.004644e9
add esp, 0x14
lea ecx, [ebp - 0x23c]
push ecx
lea ecx, [ebp - 0x4fc]
call fcn.00402e50
mov dword [ebp - 0x500], eax
mov edx, dword [ebp - 0x500]
mov dword [ebp - 0x504], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x504]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00402f9f
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4fc]
call fcn.00403364
lea ecx, [ebp - 0x48c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x45885b
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403364
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00462614
mov esp, ebp
pop ebp
ret
Function at 0x458a20
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a51ca
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x4c5484]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x4b0914
mov ecx, dword [ebp + 8]
call fcn.004032e2
test eax, eax
jne 0x458a61
jmp 0x458bd0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.00402928
add esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
push 0x4b0918
lea ecx, [ebp - 0x6c]
call fcn.00402e50
mov byte [ebp - 4], 1
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.00403c92
add esp, 8
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.00403364
push 0x4b091c
lea ecx, [ebp - 0x88]
call fcn.00402e50
mov byte [ebp - 4], 2
push 0
lea ecx, [ebp - 0x88]
push ecx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x50]
push eax
call fcn.0040302b
add esp, 0x10
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x88]
call fcn.00403364
mov dword [ebp - 0x14], 1
jmp 0x458afd
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x10]
jge 0x458bb5
push 0x4b0920
lea ecx, [ebp - 0x50]
call fcn.004021f8
push 0x4b0924
lea ecx, [ebp - 0xa4]
call fcn.00402e50
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0xa4]
push ecx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0xc0]
push eax
call fcn.0040302b
add esp, 0x10
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0xc8], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0xc8]
push edx
lea ecx, [ebp - 0x50]
call fcn.004023bf
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xc0]
call fcn.00403364
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa4]
call fcn.00403364
push 0
lea ecx, [ebp - 0x50]
call fcn.00403841
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x80
lea ecx, [ebp - 0x50]
call fcn.00403841
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x458af4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00403364
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00403364
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00462614
mov esp, ebp
pop ebp
ret
Function at 0x458bf0
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a521b
mov eax, dword fs:[0]
push eax
sub esp, 0x4d4
mov eax, dword [0x4c5484]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x4b0928
mov ecx, dword [ebp + 8]
call fcn.004032e2
test eax, eax
jne 0x458c31
jmp 0x458e37
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00402928
add esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x48c], 0
push 0x24c
push 0
lea edx, [ebp - 0x488]
push edx
call fcn.004630d0
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.00403841
push eax
push str._s.
push 0x104
lea eax, [ebp - 0x23c]
push eax
call fcn.004644e9
add esp, 0x10
lea ecx, [ebp - 0x48c]
push ecx
lea edx, [ebp - 0x23c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x458cca
lea ecx, [ebp - 0x2c]
call fcn.00403841
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403364
jmp 0x458e37
mov eax, dword [ebp - 0x48c]
and eax, 0x10
je 0x458dbd
lea ecx, [ebp - 0x460]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00403841
push eax
push 0x4b093c
push 0x104
lea edx, [ebp - 0x23c]
push edx
call fcn.004644e9
add esp, 0x14
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x4c4]
call fcn.00402e50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c4]
push ecx
lea edx, [ebp - 0x4a8]
push edx
call fcn.00401ef6
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c4]
call fcn.00403364
push 0x4b0948
lea ecx, [ebp - 0x4a8]
call fcn.004032e2
test eax, eax
je 0x458d65
push 0x4b094c
lea ecx, [ebp - 0x4a8]
call fcn.004032e2
test eax, eax
jne 0x458d78
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4a8]
call fcn.00403364
jmp 0x458df5
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x4e0]
call fcn.00402e50
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4e0]
push ecx
call fcn.0040252c
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4e0]
call fcn.00403364
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4a8]
call fcn.00403364
jmp 0x458df5
lea edx, [ebp - 0x460]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00403841
push eax
push 0x4b0954
push 0x104
lea eax, [ebp - 0x23c]
push eax
call fcn.004644e9
add esp, 0x14
lea ecx, [ebp - 0x23c]
push ecx
call fcn.0046a4dc
add esp, 4
lea edx, [ebp - 0x48c]
push edx
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x458cca
lea ecx, [ebp - 0x2c]
call fcn.00403841
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403364
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00462614
mov esp, ebp
pop ebp
ret
Function at 0x459820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x4c5484]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x459898
mov dword [ebp - 0x834], 0x410
lea eax, [ebp - 0x834]
push eax
lea ecx, [ebp - 0x830]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea eax, [ebp - 0x830]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00462614
mov esp, ebp
pop ebp
ret