joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001040
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10007ad1
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x1000b078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.VirtualProtect
push str.kernel32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.VirtualAlloc
push str.kernel32.dll
mov dword [ebp - 0x174], eax
call esi
push eax
call edi
push 0x40
push 0x1000
push 0x100000
xor ebx, ebx
push ebx
mov dword [ebp - 0x16c], 0x1000
call eax
mov dword [ebp - 0x170], eax
cmp eax, ebx
je 0x10001255
push 0x104
lea eax, [ebp - 0x114]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x114]
mov dword [ebp - 0x138], 0xf
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x14c], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10001100
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x114]
lea esi, [ebp - 0x14c]
call fcn.10001470
mov dword [ebp - 4], ebx
mov ebx, 2
mov eax, esi
call fcn.10001300
mov ecx, esi
push eax
push ecx
lea esi, [ebp - 0x168]
call fcn.100012d0
lea esi, [ebp - 0x130]
mov byte [ebp - 4], 1
call fcn.100017c0
mov ebx, 0x10
mov byte [ebp - 4], 3
cmp dword [ebp - 0x154], ebx
jb 0x10001169
mov edx, dword [ebp - 0x168]
push edx
call fcn.1000200d
add esp, 4
mov eax, dword [ebp - 0x130]
xor edi, edi
mov dword [ebp - 0x154], 0xf
mov dword [ebp - 0x158], edi
mov byte [ebp - 0x168], 0
cmp dword [ebp - 0x11c], ebx
jae 0x10001196
lea eax, [ebp - 0x130]
push edi
push edi
push 4
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100011cf
cmp dword [ebp - 0x11c], ebx
jb 0x100011c7
mov eax, dword [ebp - 0x130]
push eax
call fcn.1000200d
add esp, 4
mov dword [ebp - 0x120], edi
jmp 0x1000122d
push edi
mov edi, dword [ebp - 0x170]
lea edx, [ebp - 0x16c]
push edx
push 0x100000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000120c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x178]
push edx
push 0x40
push 0x100000
push edi
call dword [ebp - 0x174]
call edi
cmp dword [ebp - 0x11c], ebx
jb 0x10001223
mov eax, dword [ebp - 0x130]
push eax
call fcn.1000200d
add esp, 4
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
cmp dword [ebp - 0x138], ebx
jb 0x10001255
mov ecx, dword [ebp - 0x14c]
push ecx
call fcn.1000200d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10001a9d
mov esp, ebp
pop ebp
ret

Function at 0x10001a9d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000b078]
jne 0x10001aa7
repz ret
jmp fcn.100023b2
Function at 0x1000558a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1000b078]
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.100029f9
and dword [ebp - 0x14], 0
cmp dword [0x1000c8a8], 0
mov dword [ebp - 0x18], eax
jne 0x1000563d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x100056e5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x100056e5
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1000c8a8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1000c8ac], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1000c8b0], eax
call edi
push eax
call esi
mov dword [0x1000c8b8], eax
test eax, eax
je 0x1000563d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1000c8b4], eax
mov eax, dword [0x1000c8b4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10005696
cmp dword [0x1000c8b8], ecx
je 0x10005696
push eax
call esi
push dword [0x1000c8b8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10005696
test ebx, ebx
je 0x10005696
call edi
test eax, eax
je 0x1000568d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1000568d
test byte [ebp - 8], 1
jne 0x10005696
or dword [ebp + 0x10], 0x200000
jmp 0x100056c9
mov eax, dword [0x1000c8ac]
cmp eax, dword [ebp - 0x18]
je 0x100056c9
push eax
call esi
test eax, eax
je 0x100056c9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100056c9
mov eax, dword [0x1000c8b0]
cmp eax, dword [ebp - 0x18]
je 0x100056c9
push eax
call esi
test eax, eax
je 0x100056c9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1000c8a8]
call esi
test eax, eax
je 0x100056e5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x100056e7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001a9d
leave
ret
Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
jmp section..htext

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x10001061
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [ebp + 8]
mov byte [ebp - 1], bl
push 0x80000002
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100010c1
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100010b3
mov byte [ebp - 1], 1
cmp dword [ebp - 8], ebx
je 0x100010c1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop ebx
leave
ret

Function at 0x1000cfb7
Capabilities:
Write file on windows

Disassembly:
push 0x48
mov eax, 0x10059ca7
call fcn.1002f811
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x3c], edi
je 0x1000d0c7
cmp byte [esi + 0x41], 0
je 0x1000d0c7
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x1000cfed
xor al, al
jmp 0x1000d0c9
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.1000a502
mov dword [ebp - 4], edi
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000dda6
mov ecx, eax
call fcn.1000cf39
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000dda6
mov ecx, eax
call fcn.1000cf39
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push eax
add edi, ebx
push edi
push dword [ebp - 0x34]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x1000d061
dec eax
je 0x1000d065
dec eax
dec eax
je 0x1000d0c3
xor bl, bl
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.100012ad
mov al, bl
jmp 0x1000d0c9
mov byte [esi + 0x41], 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000dda6
mov ecx, eax
call fcn.1000cf39
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x1000d0a5
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000dda6
mov ecx, eax
call fcn.1000cf39
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10031c09
add esp, 0x10
cmp edi, eax
jne 0x1000d04b
cmp byte [esi + 0x41], 0
je 0x1000d0c3
test edi, edi
jne 0x1000cffb
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.10002b50
jmp 0x1000cffb
mov bl, 1
jmp 0x1000d04d
mov al, 1
call fcn.1002f894
ret
Function at 0x1001633c
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x10071120]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x44
mov eax, 0x1005b4b8
call fcn.1002f7a8
mov esi, dword [ebp + 0x214]
lea eax, [ebp - 0x14]
push eax
push 0x2b
xor ebx, ebx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x1001643f
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x34]
call fcn.1001631a
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.1002019d
pop ecx
pop ecx
mov byte [ebp - 4], 1
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
call fcn.100014d4
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.100012ad
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.10015e4b
push dword [0x10070d1c]
mov ecx, esi
call fcn.10013f97
push dword [0x10070d18]
mov ecx, esi
call fcn.10013f97
cmp dword [esi + 0x18], 0x10
jb 0x10016415
mov esi, dword [esi + 4]
jmp 0x10016418
add esi, 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push esi
call fcn.100015f5
mov dword [ebp - 4], 2
or dword [ebp - 4], 0xffffffff
call fcn.10016109
add esp, 0x1c
cmp al, bl
je 0x1001643f
mov bl, 1
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.1002f799
add ebp, 0x20c
leave
ret
Function at 0x10016789
Capabilities:
Enumerate gui resources
Enumerate processes

Disassembly:
push ebp
sub esp, 0x264
lea ebp, [esp - 4]
mov eax, dword [0x10071120]
xor eax, ebp
mov dword [ebp + 0x264], eax
push 0x64
mov eax, 0x1005b5bb
call fcn.1002f7a8
push str.AdobeUpdater.exe
lea ecx, [ebp + 0x22c]
mov byte [ebp - 0xd], 0
call fcn.100015f5
xor esi, esi
mov dword [ebp - 4], esi
push 0x228
lea eax, [ebp + 4]
push esi
push eax
mov dword [ebp], esi
call fcn.1002fc50
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x1001694c
lea ecx, [ebp]
push ecx
mov edi, 0x22c
push eax
mov dword [ebp], edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x10016900
lea eax, [ebp + 0x24]
test eax, eax
je 0x100168e3
cmp byte [ebp + 0x274], 0
je 0x10016825
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, dword [ebp + 8]
je 0x10016834
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, dword [ebp + 8]
je 0x100168e3
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0x38]
call fcn.1001631a
mov byte [ebp - 4], 1
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 0x248]
push eax
call fcn.1002019d
pop ecx
pop ecx
mov byte [ebp - 4], 3
push esi
push 1
lea ecx, [ebp - 0x38]
call fcn.10015e4b
cmp dword [ebp + 0x260], 0x10
mov eax, dword [ebp + 0x24c]
jae 0x1001687a
lea eax, [ebp + 0x24c]
push eax
lea ecx, [ebp - 0x54]
call fcn.100015f5
mov byte [ebp - 4], 4
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.1001c0b7
pop ecx
pop ecx
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x22c]
push ecx
mov ecx, eax
call fcn.10005f7a
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
mov byte [ebp - 4], 4
push esi
push 1
lea ecx, [ebp - 0x70]
call fcn.100012ad
mov byte [ebp - 4], 3
push esi
push 1
lea ecx, [ebp - 0x54]
call fcn.100012ad
test bl, bl
jne 0x1001690a
mov byte [ebp - 4], bl
push esi
push 1
lea ecx, [ebp + 0x248]
call fcn.100012ad
push edi
lea eax, [ebp]
push esi
push eax
call fcn.1002fc50
add esp, 0xc
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
mov dword [ebp], edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10016806
jmp 0x10016943
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x270]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push 0x10015d1d
call dword [sym.imp.USER32.dll_EnumWindows]
mov byte [ebp - 0xd], 1
call fcn.100166a9
mov byte [ebp - 4], 0
push esi
push 1
lea ecx, [ebp + 0x248]
call fcn.100012ad
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Adobe_Updater
push esi
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, esi
je 0x1001696b
push esi
push esi
push dword [ebp + 0x270]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
or dword [ebp - 4], 0xffffffff
push esi
push 1
lea ecx, [ebp + 0x22c]
call fcn.100012ad
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x264]
xor ecx, ebp
call fcn.1002f799
add ebp, 0x268
leave
ret
Function at 0x10016ad9
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret
Function at 0x1001afd7
Capabilities:
Copy file

Disassembly:
push 0x40
mov eax, 0x10059a64
call fcn.1002f811
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.1002028e
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.1002028e
add esp, 0x10
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebp - 0x28]
jae 0x1001b014
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
jae 0x1001b020
lea eax, [ebp - 0x44]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
sete byte [ebp - 0x49]
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.100012ad
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.100012ad
mov al, byte [ebp - 0x49]
call fcn.1002f894
ret

Function at 0x1001b15d
Capabilities:
Set file attributes

Disassembly:
push 0x20
mov eax, 0x1005bfa3
call fcn.1002f811
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.1002028e
pop ecx
pop ecx
and dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x1001b188
lea eax, [ebp - 0x28]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1001b1b2
xor bl, bl
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.100012ad
mov al, bl
call fcn.1002f894
ret
mov bl, 1
jmp 0x1001b19a
Function at 0x1001bd1e
Capabilities:
Check os version

Disassembly:
push ebp
sub esp, 0x14c
lea ebp, [esp - 4]
mov eax, dword [0x10071120]
xor eax, ebp
mov dword [ebp + 0x14c], eax
push 0x18
mov eax, 0x1005c0d9
call fcn.1002f7a8
mov eax, dword [ebp + 0x158]
mov esi, dword [ebp + 0x15c]
mov edi, dword [ebp + 0x160]
push eax
lea eax, [ebp + 0x114]
xor ebx, ebx
push eax
mov byte [ebp - 0xd], bl
call fcn.1002028e
pop ecx
pop ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x12c], 0x10
mov eax, dword [ebp + 0x118]
jae 0x1001bd80
lea eax, [ebp + 0x118]
push ebx
push 0x80
push 3
push ebx
push 1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x1001be83
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.Kernel32.dll
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.100015f5
mov byte [ebp - 4], 1
lea eax, [ebp + 0x130]
push eax
mov byte [ebp - 4], bl
call fcn.1001ca93
add esp, 0x20
mov byte [ebp - 4], 2
cmp dword [ebp + 0x148], 0x10
mov eax, dword [ebp + 0x134]
jae 0x1001bde6
lea eax, [ebp + 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x18], eax
lea eax, [ebp]
push eax
mov dword [ebp], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp + 4], 5
jae 0x1001be2c
push str.GetFileSize
push dword [ebp - 0x18]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x1c]
call eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
jmp 0x1001be43
push str.GetFileSizeEx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp - 0x1c]
call eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 8
lea eax, [ebp - 0x24]
push eax
push esi
call fcn.100335e0
mov eax, dword [esi]
add esp, 0xc
push dword [ebp - 0x1c]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov byte [ebp - 0xd], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp + 0x130]
call fcn.100012ad
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp + 0x114]
call fcn.100012ad
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x14c]
xor ecx, ebp
call fcn.1002f799
add ebp, 0x150
leave
ret
Function at 0x1001c3e6
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0x3c
mov eax, 0x1005c28c
call fcn.1002f811
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.1002028e
pop ecx
pop ecx
and dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x1001c346
lea eax, [ebp - 0x28]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
mov bl, 1
je 0x1001c36d
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.100012ad
mov al, bl
call fcn.1002f894
ret
lea eax, [ebp - 0x48]
push esi
push eax
call fcn.1001c134
pop ecx
pop ecx
mov byte [ebp - 4], 1
xor esi, esi
cmp dword [ebp - 0x34], esi
je 0x1001c394
lea eax, [ebp - 0x48]
push eax
call 0x1001c31b
mov bl, al
test bl, bl
pop ecx
je 0x1001c3d2
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x1001c3a0
lea eax, [ebp - 0x28]
push eax
call edi
test eax, eax
jne 0x1001c3d2
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x1001c3b3
lea eax, [ebp - 0x28]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test bl, bl
jne 0x1001c3d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete bl
mov byte [ebp - 4], 0
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.100012ad
jmp 0x1001c355
jmp 0x1001c31b
Function at 0x1001c3fe
Capabilities:
Move file

Disassembly:
push 0x6c
mov eax, 0x1005c2c1
call fcn.1002f811
mov edx, dword [ebp + 8]
push 6
pop ecx
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x68], ebx
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.1002028e
pop ecx
pop ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x64], 3
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x40]
lea ecx, [ebp - 0x38]
call fcn.1000618d
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100028c0
mov esi, eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000dda6
push dword [esi + 4]
lea ecx, [ebp - 0x48]
push dword [esi]
push dword [eax + 4]
push dword [eax]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.1001bf0e
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x40]
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x2d], bl
call fcn.1000618d
lea eax, [ebp - 0x2d]
push eax
push 1
push dword [ebp - 0x34]
lea ecx, [ebp - 0x48]
push dword [ebp - 0x38]
call fcn.100209ed
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x40]
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x2d], bl
call fcn.1000618d
lea eax, [ebp - 0x2d]
push eax
push 1
push dword [ebp - 0x34]
lea ecx, [ebp - 0x48]
push dword [ebp - 0x38]
call fcn.100209ed
push ebx
lea ecx, [ebp - 0x48]
call fcn.1001aa84
cmp byte [ebp + 0xc], bl
mov dword [ebp - 0x60], eax
mov word [ebp - 0x58], 0x494
jne 0x1001c4eb
mov word [ebp - 0x58], 0x1494
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp eax, ebx
sete byte [ebp - 0x2d]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x48]
call fcn.1002094d
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.100012ad
mov al, byte [ebp - 0x2d]
call fcn.1002f894
ret
Function at 0x1001c657
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x10071120]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1ac]
push esi
mov esi, dword [ebp + 0x1a8]
push esi
mov dword [ebp - 0x7c], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1001c695
xor eax, eax
jmp 0x1001c7a1
push ebx
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x6c]
push eax
mov edi, 0x104
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov esi, eax
cmp esi, ebx
je 0x1001c79d
cmp esi, edi
jb 0x1001c6c8
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x1001c79d
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jl 0x1001c79d
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x78]
push edx
lea edx, [ebp - 0x80]
push edx
lea edx, [ebp - 0x6c]
push edx
push ebx
push ebx
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jge 0x1001c718
mov ecx, eax
and ecx, 0x1fff0000
cmp ecx, 0x70000
jne 0x1001c70c
movzx eax, ax
push eax
jmp 0x1001c70e
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x1001c794
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov esi, eax
cmp esi, ebx
jne 0x1001c73b
cmp word [ebp - 0x6c], bx
je 0x1001c73b
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1001c771
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea edi, [esi + 1]
cmp edi, dword [ebp + 0x1b0]
jbe 0x1001c75e
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, edi
jmp 0x1001c771
push dword [ebp + 0x1b0]
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x1001c794
mov eax, dword [ebp - 0x74]
push dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov eax, esi
pop ebx
mov ecx, dword [ebp + 0x19c]
xor ecx, ebp
pop esi
call fcn.1002f799
add ebp, 0x1a0
leave
ret 0xc