joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7a2c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
xor eax, eax
mov dword [ebp - 4], eax
mov eax, 1
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x7a2ca2
mov edx, ebx
and edx, 1
shr ebx, 1
mov esi, dword [ebp + 8]
mov esi, dword [esi + eax*4]
mov edi, edx
neg edi
and edi, 0x7ff
xor esi, edi
shr esi, 4
mov edi, dword [ebp + 0x14]
mov esi, dword [edi + esi*4]
add dword [ebp - 4], esi
add eax, eax
or edx, eax
mov eax, edx
dec ecx
test ecx, ecx
jne 0x7a2c72
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x7a7760
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
xor edx, edx
add edx, 0x18
add eax, edx
mov edx, dword [ebp - 0x2c]
movzx edx, word [edx + 0x14]
add eax, edx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
movzx eax, word [eax + 6]
dec eax
test eax, eax
jl 0x7a7893
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x10], 0
jne 0x7a781f
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jle 0x7a7819
push 4
push 0x1000
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x1c]
push eax
call fcn.006bff08
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x7a77f7
mov byte [ebp - 0xd], 0
jmp 0x7a7897
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
xor ecx, ecx
call fcn.00407754
add dword [ebp - 0x24], 0x28
jmp 0x7a7887
push 4
push 0x1000
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x1c]
push eax
call fcn.006bff08
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x7a784b
mov byte [ebp - 0xd], 0
jmp 0x7a7897
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x14]
add eax, dword [ebp - 4]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
call fcn.00406fb0
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [eax + 8], edx
add dword [ebp - 0x24], 0x28
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x7a77b3
mov byte [ebp - 0xd], 1
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret
Function at 0x7a95fc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
call fcn.00409d10
lea eax, [ebp + 8]
call fcn.00409d10
xor eax, eax
push ebp
push 0x7a972d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor eax, eax
push ebp
push 0x7a9701
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.0040a71c
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040a71c
push eax
mov eax, dword [0x7ba624]
push eax
call sub.kernel32.dll_FindResourceW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x7a96f7
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [0x7ba624]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x7a96f7
xor eax, eax
push ebp
push 0x7a96f0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x7a96d9
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [0x7ba624]
push eax
call sub.kernel32.dll_SizeofResource
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00406e0c
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, dword [ebp - 4]
mov edx, dword [edx]
mov eax, dword [ebp - 0x1c]
call fcn.00406fb0
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7a96f7
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_FreeResource
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x7a970f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7a9734
lea eax, [ebp - 0xc]
call fcn.00409c54
lea eax, [ebp + 8]
call fcn.00409c54
ret
Function at 0x4049b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x57aa54]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x12c], 0
push 0x11c
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.0049ce00
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x404a3b
cmp dword [ebp - 0x124], 6
jne 0x404a25
cmp dword [ebp - 0x120], 1
jne 0x404a25
movzx edx, byte [ebp - 0xe]
cmp edx, 1
jne 0x404a25
mov dword [ebp - 0x130], 1
jmp 0x404a2f
mov dword [ebp - 0x130], 0
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049c63c
mov esp, ebp
pop ebp
ret
Function at 0x405740
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5f0a
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x57aa54]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x125], 0
mov ecx, dword [ebp - 0x20]
mov byte [ecx + 0x126], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 1
jle 0x405830
push 0x4be1e4
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 4]
push edx
call fcn.0049cdbc
add esp, 8
test eax, eax
jne 0x405830
mov ecx, dword [ebp - 0x20]
add ecx, 0xc4
call fcn.00410080
movzx eax, al
test eax, eax
jne 0x40581a
push 0
push 0
push 0x97
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.00409c20
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
call fcn.0040ca60
push eax
call fcn.00481baa
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00403970
xor al, al
jmp 0x40585b
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x125], 1
mov ecx, dword [ebp - 0x20]
mov byte [ecx + 0x126], 0
jmp 0x405859
mov ecx, dword [ebp - 0x20]
add ecx, 0xc4
call fcn.00410080
movzx edx, al
test edx, edx
je 0x405859
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x125], 1
mov ecx, dword [ebp - 0x20]
mov byte [ecx + 0x126], 1
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x405e30
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x57aa54]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x418], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x40c], 0
push 0x400
push 0
lea eax, [ebp - 0x408]
push eax
call fcn.0049ce00
add esp, 0xc
push eax
push 0x1ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x40c], 0
je 0x405f10
mov dword [ebp - 0x410], 0
jmp 0x405eaa
mov ecx, dword [ebp - 0x410]
add ecx, 4
mov dword [ebp - 0x410], ecx
mov edx, dword [ebp - 0x410]
cmp edx, dword [ebp - 0x40c]
jge 0x405f10
mov eax, dword [ebp - 0x410]
lea ecx, [ebp + eax*2 - 0x408]
mov dword [ebp - 0x414], ecx
mov edx, dword [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x405f0e
mov eax, dword [ebp - 0x414]
push eax
call fcn.0049ca64
add esp, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x414]
push edx
call fcn.0049d0d4
add esp, 0xc
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 4], eax
je 0x405f0e
jmp 0x405f10
jmp 0x405e9b
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0049c63c
mov esp, ebp
pop ebp
ret 4
Function at 0x405f30
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
mov eax, dword [0x57aa54]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x82c], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x405fec
cmp dword [ebp + 0xc], 0
je 0x405f86
push 0
push 0x26
push 0x208
push 0
lea ecx, [ebp - 0x210]
push ecx
call fcn.0049ce00
add esp, 0xc
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
jmp 0x405fa5
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
mov eax, 0x208
call fcn.0049ce80
mov dword [ebp - 0x830], esp
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x210]
push edx
push 0x208
push 0
mov eax, dword [ebp - 0x830]
push eax
call fcn.0049ce00
add esp, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0049cd9d
add esp, 8
jmp 0x40606a
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x82c]
call fcn.00405e30
test eax, eax
jne 0x40606a
push 0x104
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
mov eax, 0x208
call fcn.0049ce80
mov dword [ebp - 0x834], esp
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
push eax
lea eax, [ebp - 0x418]
push eax
push 0x208
push 0
mov ecx, dword [ebp - 0x834]
push ecx
call fcn.0049ce00
add esp, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0049cd9d
add esp, 8
call fcn.004049b0
test eax, eax
je 0x406137
push 0
push 0x26
push 0x208
push 0
lea eax, [ebp - 0x620]
push eax
call fcn.0049ce00
add esp, 0xc
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x620]
push ecx
call fcn.0049ca64
add esp, 4
push eax
lea edx, [ebp - 0x620]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0049d0d4
add esp, 0xc
test eax, eax
jne 0x406137
push 0x104
lea ecx, [ebp - 0x828]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [ebp - 0x828]
push edx
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
mov eax, 0x208
call fcn.0049ce80
mov dword [ebp - 0x838], esp
lea eax, [ebp - 0x620]
push eax
call fcn.0049ca64
add esp, 4
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax*2]
push edx
lea eax, [ebp - 0x828]
push eax
push 0x208
push 0
mov ecx, dword [ebp - 0x838]
push ecx
call fcn.0049ce00
add esp, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0049cd9d
add esp, 8
lea esp, [ebp - 0x838]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049c63c
mov esp, ebp
pop ebp
ret 8
Function at 0x406fd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
add eax, 0x88
push eax
mov ecx, dword [ebp - 8]
add ecx, 0xc4
call fcn.0040a090
mov ecx, dword [ebp - 8]
add ecx, 0x84
push ecx
mov ecx, dword [ebp - 8]
add ecx, 0xc4
call fcn.0040a070
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
push 0x407040
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0x1f4
push 1
mov ecx, dword [ebp - 8]
call fcn.0040a8b0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x74], eax
mov esp, ebp
pop ebp
ret

Function at 0x40d940
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6991
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x57aa54]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x5c
mov ecx, dword [ebp + 8]
call fcn.00403160
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403260
mov dword [ebp - 4], 0
xor edx, edx
je 0x40d9a1
push 0x4bf540
lea ecx, [ebp - 0x18]
call fcn.004039b0
lea ecx, [ebp - 0x18]
call fcn.004039f0
sub eax, 1
push eax
lea ecx, [ebp - 0x18]
call fcn.0040c9e0
movzx eax, ax
cmp eax, 0x3a
jne 0x40d9f4
push 0x5c
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.0040f950
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00403990
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00403970
lea edx, [ebp - 0x18]
push edx
call fcn.0040e380
add esp, 4
movzx eax, al
test eax, eax
jne 0x40da13
lea ecx, [ebp - 0x18]
push ecx
call fcn.0040d940
add esp, 4
mov byte [ebp - 4], 2
push 0
mov ecx, dword [ebp + 8]
call fcn.0040ca60
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x40da49
mov dword [ebp - 4], 0
jmp 0x40da66
mov byte [ebp - 0x22], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00403970
mov al, byte [ebp - 0x22]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40dc80
Capabilities:
Check if file exists
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6a22
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x57aa54]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x40ddd7
lea ecx, [ebp - 0x28]
call fcn.0048c58b
mov dword [ebp - 4], 0
push 0
push 0x4bf550
lea ecx, [ebp - 0x50]
call fcn.0040fa70
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x54]
push ecx
call fcn.004032e0
add esp, 0xc
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x68], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x68]
call fcn.0040ca60
push eax
lea ecx, [ebp - 0x28]
call fcn.0048c623
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.00403970
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00403970
cmp dword [ebp - 0x2c], 0
jne 0x40dd51
mov byte [ebp - 0x55], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0048c5b4
mov al, byte [ebp - 0x55]
jmp 0x40de45
lea ecx, [ebp - 0x40]
call fcn.00483870
mov byte [ebp - 4], 3
cmp dword [ebp - 0x2c], 0
je 0x40ddb4
lea ecx, [ebp - 0x28]
call fcn.0048c28b
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x28]
call fcn.0048c54c
test eax, eax
je 0x40dd7c
jmp 0x40dd5d
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x28]
call fcn.0048c850
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.0040fa50
test eax, eax
je 0x40dda6
push 1
lea ecx, [ebp - 0x44]
push ecx
call fcn.0040dc80
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.00403970
jmp 0x40dd5d
lea ecx, [ebp - 0x28]
call fcn.0048c1a5
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00483a4d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0048c5b4
mov edx, dword [ebp + 8]
push edx
call fcn.0040de60
add esp, 4
mov dword [ebp - 4], 5
mov ecx, dword [ebp + 8]
call fcn.0040ca60
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40de14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 2
jne 0x40de10
mov al, 1
jmp 0x40de45
xor al, al
jmp 0x40de45
jmp 0x40de35
mov dword [ebp - 4], 0xffffffff
jmp 0x40de43
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e910
Capabilities:
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6bf8
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x57aa54]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x11], 0
mov dword [ebp - 4], 0
movzx eax, byte [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0040ca60
push eax
mov ecx, dword [ebp + 8]
call fcn.0040ca60
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne cl
mov byte [ebp - 0x11], cl
movzx edx, byte [ebp - 0x11]
test edx, edx
je 0x40e996
mov ecx, dword [ebp + 0xc]
call fcn.0040ca60
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0040ca60
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x40e9b1
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e9d0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6c13
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x57aa54]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.0040ca60
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40ea2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 2
jne 0x40ea29
mov al, 1
jmp 0x40ea5e
xor al, al
jmp 0x40ea5e
jmp 0x40ea4e
mov dword [ebp - 4], 0xffffffff
jmp 0x40ea5c
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410080
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6fc7
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x57aa54]
xor eax, ebp
mov dword [ebp - 0x28], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x240]
call fcn.00413760
mov dword [ebp - 4], 0
mov byte [ebp - 0xd], 0
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0040ca60
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x1c], eax
je 0x410198
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x24], 0x104
mov dword [ebp - 0x20], 1
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x20]
push ecx
push 0
mov ecx, dword [ebp - 0x240]
add ecx, 0x54
call fcn.0040ca60
push eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x1c], eax
je 0x41018e
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x238]
call fcn.004038f0
mov dword [ebp - 0x244], eax
mov ecx, dword [ebp - 0x244]
mov dword [ebp - 0x248], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x248]
push edx
mov ecx, dword [ebp - 0x240]
add ecx, 0xc
call fcn.00403990
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.00403970
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
jne 0x4101b0
push 1
mov ecx, dword [ebp - 0x240]
call fcn.00414010
mov byte [ebp - 0xd], al
mov dl, byte [ebp - 0xd]
mov byte [ebp - 0x239], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00403970
mov al, byte [ebp - 0x239]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.0049c63c
mov esp, ebp
pop ebp
ret
Function at 0x411520
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x57aa54]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4116ca
cmp dword [ebp - 4], 0
je 0x4116ca
mov dword [ebp - 0x46c], 0
push 0x208
push 0
lea ecx, [ebp - 0x210]
push ecx
call fcn.0049ce00
add esp, 0xc
lea edx, [ebp - 0x468]
push edx
push 0x4bfc94
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
je 0x4116ca
push 0x208
push 0
lea edx, [ebp - 0x210]
push edx
call fcn.0049ce00
add esp, 0xc
lea eax, [ebp - 0x43c]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [ebp - 0x468]
and eax, 0x10
je 0x411669
push 0x4bfc98
lea ecx, [ebp - 0x43c]
push ecx
call fcn.0049cdbc
add esp, 8
test eax, eax
je 0x411667
push 0x4bfca0
lea edx, [ebp - 0x43c]
push edx
call fcn.0049cdbc
add esp, 8
test eax, eax
je 0x411667
cmp dword [ebp + 0xc], 0
je 0x41163d
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [ebp + 0xc]
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41163d
jmp 0x4116bd
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x210]
push eax
call fcn.00411520
add esp, 0x14
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x411667
jmp 0x4116bd
jmp 0x4116a1
mov ecx, dword [ebp - 0x468]
and ecx, 4
jne 0x4116a1
mov edx, dword [ebp - 0x468]
and edx, 2
jne 0x4116a1
cmp dword [ebp + 0x14], 0
je 0x4116a1
mov eax, dword [ebp + 0x18]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [ebp + 0x14]
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4116a1
jmp 0x4116bd
lea edx, [ebp - 0x468]
push edx
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4115ab
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0049c63c
mov esp, ebp
pop ebp
ret
Function at 0x4116e0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x57aa54]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], 0
push 0x208
push 0
lea eax, [ebp - 0x418]
push eax
call fcn.0049ce00
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x418]
push edx
call fcn.0049cd9d
add esp, 8
push 0x208
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.0049ce00
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
push eax
lea edx, [ebp - 0x210]
push edx
call fcn.0049cd9d
add esp, 8
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
je 0x411809
push 0x4bfca4
lea ecx, [ebp - 0x210]
push ecx
call fcn.0049e01a
add esp, 8
mov dword [ebp - 0x420], eax
jmp 0x4117a7
push 0x4bfca8
push 0
call fcn.0049e01a
add esp, 8
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0
je 0x411809
mov edx, dword [ebp - 0x420]
push edx
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x411807
push 0
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x411807
jmp 0x411809
jmp 0x411792
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049c63c
mov esp, ebp
pop ebp
ret