joyce8/EMBER2024-capa huggingface dataset:
Function at 0x12010c83
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
push edi
mov dword [ebp - 4], esi
je 0x12010d79
cmp byte [eax], 0
je 0x12010d79
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 8], edi
je 0x12010d79
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
sub esi, 0xe
push esi
call fcn.1207403b
mov ebx, eax
pop ecx
test ebx, ebx
je 0x12010d79
lea eax, [ebp + 8]
push 0
push eax
lea eax, [ebp - 0x18]
push 0xe
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
call edi
test eax, eax
je 0x12010d69
cmp dword [ebp + 8], 0xe
jne 0x12010d69
lea eax, [ebp + 8]
push 0
push eax
push esi
push ebx
push dword [ebp - 8]
call edi
test eax, eax
je 0x12010d69
cmp dword [ebp + 8], esi
jne 0x12010d69
push 0
call dword [sym.imp.USER32.dll_GetDC]
cmp dword [ebp + 0xc], 0
mov esi, eax
je 0x12010d3f
push dword [ebp + 0xc]
push ebx
push esi
call fcn.120100bf
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x12010d60
lea eax, [ebp + 0xc]
push eax
push ebx
call fcn.1200fecc
mov edi, eax
push edi
push ebx
push esi
call fcn.120100bf
add esp, 0x14
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebx
call fcn.12074064
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x12010d81
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [ebp - 4], ebx
je 0x12010e75
cmp byte [esi], bl
je 0x12010e75
cmp dword [ebp + 0xc], ebx
je 0x12010e75
push dword [ebp + 0x10]
push 0x18
push dword [ebp + 0xc]
call fcn.12010afc
mov edi, eax
add esp, 0xc
cmp edi, ebx
mov dword [ebp - 8], edi
je 0x12010e75
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
je 0x12010e6c
push edi
mov word [ebp - 0x18], 0x4d42
call fcn.12010ac7
pop ecx
lea eax, [eax*4 + 0x36]
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0xe], eax
add ecx, eax
lea eax, [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push eax
lea eax, [ebp - 0x18]
push 0xe
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x16], ecx
mov word [ebp - 0x12], bx
mov word [ebp - 0x10], bx
call esi
test eax, eax
je 0x12010e55
cmp dword [ebp + 0xc], 0xe
jne 0x12010e55
mov eax, dword [ebp - 0x16]
push ebx
lea edi, [eax - 0xe]
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp - 8]
push dword [ebp + 0x10]
call esi
test eax, eax
je 0x12010e55
cmp dword [ebp + 0xc], edi
jne 0x12010e55
mov dword [ebp - 4], 1
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], ebx
jne 0x12010e6c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 8]
call fcn.12074064
pop ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x12011aeb
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push ebx
push edi
xor edi, edi
push 1
cmp dword [0x120b890c], edi
pop ebx
jne 0x12011b56
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x12011b50
push 2
pop eax
cmp dword [ebp - 0x88], eax
jne 0x12011b39
cmp dword [ebp - 0x94], 5
jb 0x12011b50
mov dword [0x120b8908], eax
jmp 0x12011b50
cmp dword [ebp - 0x88], ebx
jne 0x12011b50
cmp dword [ebp - 0x90], 0xa
jb 0x12011b50
mov dword [0x120b8908], ebx
mov dword [0x120b890c], ebx
cmp dword [0x120b8908], ebx
jne 0x12011b95
push esi
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea eax, [ebp - 4]
push ebx
push eax
push edi
push 0x2000
mov dword [ebp - 4], edi
call esi
push ebx
push edi
push edi
mov edi, 0x2001
push edi
call esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push ebx
push dword [ebp - 4]
push 0
push edi
call esi
pop esi
jmp 0x12011b9e
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop ebx
leave
ret
Function at 0x12012379
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x120878ac
call fcn.12055780
sub esp, 0x10c
push esi
mov esi, dword [ebp + 0x10]
mov ecx, esi
call fcn.120738f5
push dword [ebp + 8]
lea ecx, [ebp + 0x10]
call fcn.120739d8
and dword [ebp - 4], 0
push str._shellopencommand
lea ecx, [ebp + 0x10]
call fcn.12073d46
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push dword [ebp + 0x10]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1201243d
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x120b7bd0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x12012434
push dword [ebp + 0xc]
lea eax, [ebp - 0x118]
push eax
push esi
call fcn.1206c4f3
lea eax, [ebp - 0x118]
push eax
push dword [esi]
call fcn.12055af0
add esp, 0x14
test eax, eax
jne 0x12012434
push dword [ebp + 0xc]
lea eax, [ebp - 0x118]
push eax
push 0x120ad270
push esi
call fcn.1206c497
add esp, 0x10
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
xor ecx, ecx
cmp dword [eax - 8], ecx
setne cl
or dword [ebp - 4], 0xffffffff
mov esi, ecx
lea ecx, [ebp + 0x10]
call fcn.1207396a
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x120124f3
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
push esi
cmp edx, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [eax], ebx
je 0x12012664
cmp byte [edx], bl
je 0x12012664
push 0xd
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_
pop ecx
lea edi, [ebp - 0x218]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 0x33
xor eax, eax
pop ecx
lea edi, [ebp - 0x1e3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x218]
push edx
push eax
call fcn.12055e90
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x218]
push str.Path
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call fcn.1200f59a
add esp, 0x1c
test eax, eax
je 0x12012664
cmp dword [ebp - 4], ebx
je 0x12012664
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
cmp eax, 2
jle 0x1201265b
push dword [ebp - 4]
call esi
mov ecx, dword [ebp - 4]
cmp byte [eax + ecx - 1], 0x3b
lea eax, [eax + ecx - 1]
jne 0x120125aa
mov byte [eax], bl
push dword [ebp - 4]
lea eax, [ebp - 0x114]
push eax
call fcn.12055e80
lea eax, [ebp - 0x114]
push eax
call fcn.12055dd0
add esp, 0xc
cmp byte [ebp + eax - 0x115], 0x5c
mov esi, 0x120a9b58
je 0x120125e6
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.12055e90
pop ecx
pop ecx
push dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
call fcn.12055e90
pop ecx
lea eax, [ebp - 0xc]
pop ecx
push eax
lea eax, [ebp - 0x114]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
je 0x1201265b
push edi
call fcn.1207403b
pop ecx
mov ebx, eax
push ebx
push edi
push dword [ebp - 0xc]
lea eax, [ebp - 0x114]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
push esi
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x12012654
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 8], 1
mov ecx, dword [eax + 8]
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
push ebx
call fcn.12074064
pop ecx
push dword [ebp - 4]
call fcn.12074064
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x1201272d
cmp byte [eax], 0
je 0x1201272d
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1201272d
test al, 0x10
jne 0x1201272d
push 1
pop eax
ret
xor eax, eax
ret

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

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x12012751
cmp byte [eax], 0
je 0x12012751
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x12012751
test al, 0x10
je 0x12012751
push 1
pop eax
ret
xor eax, eax
ret
Function at 0x12012754
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.1201270c
test eax, eax
pop ecx
jne 0x12012769
push 1
pop eax
pop esi
ret
cmp byte [esp + 0xc], 0
je 0x12012781
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
pop esi
neg eax
ret

Function at 0x12012790
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
cmp dword [ebp + 8], 0
push ebx
push 1
pop ebx
jne 0x120127aa
xor eax, eax
jmp 0x120128b2
push dword [ebp + 8]
call fcn.12012730
test eax, eax
pop ecx
jne 0x120127be
mov eax, ebx
jmp 0x120128b2
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
lea eax, [ebp - 0x20c]
push dword [ebp + 8]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call fcn.120126a9
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x20c]
mov dword [esp], 0x120ad320
push eax
call edi
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x1201289d
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call esi
lea eax, [ebp - 0x108]
push eax
call fcn.120126a9
pop ecx
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x108]
push eax
call edi
test byte [ebp - 0x34c], 0x10
je 0x12012865
cmp byte [ebp - 0x320], 0x2e
je 0x12012878
push 1
lea eax, [ebp - 0x108]
push dword [ebp + 0xc]
push eax
call fcn.12012790
add esp, 0xc
jmp 0x12012876
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
call fcn.12012754
pop ecx
pop ecx
mov ebx, eax
lea eax, [ebp - 0x34c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x12012890
test ebx, ebx
jne 0x12012814
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x120128ae
cmp byte [ebp + 0x10], 0
je 0x120128ae
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ebx, eax
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret

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

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
test ecx, ecx
je 0x12016fc3
cmp byte [ecx], al
je 0x12016fc3
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x12016fbd
xor eax, eax
shr eax, 4
and eax, 1
ret

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

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
test ecx, ecx
je 0x12016fe8
cmp byte [ecx], al
je 0x12016fe8
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x12016fe6
test al, 0x10
jne 0x12016fe6
push 1
pop eax
ret
xor eax, eax
ret
Function at 0x1201711f
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x350
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x12017240
push dword [ebp + 8]
call fcn.12016fa1
test eax, eax
pop ecx
je 0x1201723b
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x210]
push eax
call esi
mov ebx, 0x104
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.1201747d
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
pop ecx
pop ecx
lea eax, [ebp - 0x210]
push 0x120ad320
push eax
call edi
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x1201722e
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
call esi
lea eax, [ebp - 0x10c]
push ebx
push eax
call fcn.1201747d
pop ecx
lea eax, [ebp - 0x324]
pop ecx
push eax
lea eax, [ebp - 0x10c]
push eax
call edi
test byte [ebp - 0x350], 0x10
mov dword [ebp - 4], 1
je 0x120171f2
cmp byte [ebp - 0x324], 0x2e
je 0x12017205
lea eax, [ebp - 0x10c]
push eax
call fcn.1201711f
jmp 0x12017201
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.12016fe9
pop ecx
pop ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x350]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x1201721f
cmp dword [ebp - 4], 0
jne 0x120171a0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x12017240
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x12017240
push 1
pop eax
jmp 0x12017242
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x12017247
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x12017384
cmp byte [edi], 0
je 0x12017384
push edi
call fcn.12016fa1
test eax, eax
pop ecx
je 0x1201727e
mov dword [ebp - 4], 1
jmp 0x12017391
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, 0xa
push esi
mov dword [ebp - 8], esi
call fcn.1207403b
mov ebx, eax
pop ecx
test ebx, ebx
je 0x12017373
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call fcn.1207403b
mov esi, eax
pop ecx
test esi, esi
je 0x1201735b
and byte [esi], 0
cmp byte [ebx], 0x5c
mov dword [ebp + 8], 1
mov edi, ebx
jne 0x120172ec
cmp byte [ebx + 1], 0x5c
jne 0x120172ec
lea eax, [ebx + 2]
push 0x5c
push eax
call fcn.12055fb0
mov edi, eax
pop ecx
inc edi
pop ecx
mov eax, edi
sub eax, ebx
inc eax
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x120a9b58
push edi
call fcn.12055d20
mov edi, dword [ebp + 0xc]
pop ecx
pop ecx
test eax, eax
je 0x1201734c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp - 8]
push esi
call fcn.1201747d
push esi
call fcn.12016fa1
add esp, 0xc
mov dword [ebp + 8], eax
test eax, eax
jne 0x12017338
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test edi, edi
mov dword [ebp + 8], eax
je 0x12017338
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0x120a9b58
push 0
call fcn.12055d20
cmp dword [ebp + 8], 0
pop ecx
pop ecx
jne 0x120172fc
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 4], eax
call fcn.12074064
pop ecx
jmp 0x1201736a
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1201736a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
push ebx
call fcn.12074064
pop ecx
jmp 0x12017391
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x12017391
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x12017391
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x12017391
mov dword [eax], 0x57
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x12017686
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x350
cmp dword [ebp + 0x10], 0
push ebx
push esi
push edi
mov dword [ebp - 4], 1
je 0x1201783b
push dword [ebp + 8]
call fcn.12016fa1
test eax, eax
pop ecx
je 0x1201783b
and byte [ebp - 0x24c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x24b]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x24c]
push eax
call esi
mov ebx, 0x104
lea eax, [ebp - 0x24c]
push ebx
push eax
call fcn.1201747d
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
pop ecx
pop ecx
lea eax, [ebp - 0x24c]
push 0x120ad320
push eax
call edi
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x12017776
mov dword [ebp - 4], 1
test byte [ebp - 0x148], 0x10
jne 0x12017749
push dword [ebp + 0x14]
lea eax, [ebp - 0x148]
push 0
push eax
push dword [ebp + 8]
call dword [ebp + 0x10]
add esp, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x12017763
cmp dword [ebp - 4], 0
jne 0x12017728
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x1201783b
cmp dword [ebp + 0xc], 0
je 0x1201783b
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x1201783b
test byte [ebp - 0x148], 0x10
je 0x12017814
cmp byte [ebp - 0x11c], 0x2e
je 0x12017814
push dword [ebp + 0x14]
lea eax, [ebp - 0x148]
push 1
push eax
push dword [ebp + 8]
call dword [ebp + 0x10]
add esp, 0x10
mov dword [ebp - 4], eax
test eax, eax
je 0x12017814
push dword [ebp + 8]
lea eax, [ebp - 0x350]
push eax
call esi
lea eax, [ebp - 0x350]
push ebx
push eax
call fcn.1201747d
pop ecx
lea eax, [ebp - 0x11c]
pop ecx
push eax
lea eax, [ebp - 0x350]
push eax
call edi
push dword [ebp + 0x14]
lea eax, [ebp - 0x350]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.12017686
add esp, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x12017832
cmp dword [ebp - 4], 0
jne 0x120177a0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x12017b2c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, 0x120b7bd0
cmp edi, ebx
mov dword [ebp - 4], ebx
jne 0x12017b4b
mov edi, eax
mov esi, dword [ebp + 0xc]
cmp esi, ebx
jne 0x12017b54
mov esi, eax
push 0x104
lea eax, [ebp - 0x120]
push esi
push eax
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x120]
push eax
call fcn.120175ad
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.12017247
add esp, 0xc
test eax, eax
je 0x12017c60
lea eax, [ebp + 8]
push eax
push edi
call fcn.12017d1d
pop ecx
test eax, eax
pop ecx
je 0x12017c50
push ebx
push esi
call fcn.12016fe9
pop ecx
test eax, eax
pop ecx
je 0x12017c45
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x12017c26
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.12017d71
add esp, 0x14
test eax, eax
je 0x12017c16
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.12017e0f
add esp, 0x14
test eax, eax
je 0x12017c06
mov dword [ebp - 4], 1
jmp 0x12017c82
cmp dword [ebp + 0x10], ebx
je 0x12017c82
push dword [ebp + 8]
push esi
push str.ERROR:_Failed_to_set_filetime_for___s____lu_
jmp 0x12017c74
cmp dword [ebp + 0x10], ebx
je 0x12017c82
push dword [ebp + 8]
push edi
push str.ERROR:_Failed_to_get_filetime_for___s____lu_
jmp 0x12017c74
cmp dword [ebp + 0x10], ebx
je 0x12017c82
push dword [ebp + 8]
push esi
push edi
push str.ERROR:_Failed_to_copy___s__to___s____lu_
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.12056d50
add esp, 0x18
jmp 0x12017c82
cmp dword [ebp + 0x10], ebx
je 0x12017c82
push dword [ebp + 8]
push esi
jmp 0x12017c59
cmp dword [ebp + 0x10], ebx
je 0x12017c82
push dword [ebp + 8]
push edi
push str.ERROR:_Failed_to_make___s__writable___lu_
jmp 0x12017c74
cmp dword [ebp + 0x10], ebx
je 0x12017c82
push dword [ebp + 8]
lea eax, [ebp - 0x120]
push eax
push str.ERROR:_Failed_to_create_dir___s____lu_
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.12056d50
add esp, 0x14
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x12017d1d
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
xor esi, esi
test eax, eax
push edi
je 0x12017d5d
cmp byte [eax], 0
je 0x12017d5d
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call ebx
cmp edi, 0xffffffff
je 0x12017d5d
and edi, 0xfffffffe
push edi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, eax
neg esi
sbb esi, esi
neg esi
call ebx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x12017d6b
mov dword [eax], 0x57
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x12019284
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0xd
pop eax
cmp dword [ebp + 0x10], eax
jbe 0x12019295
mov dword [ebp + 0x10], eax
mov al, byte [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
and byte [ebp - 4], 0
and byte [ebp - 0x10], 0
push esi
mov esi, dword [ebp + 0x18]
push edi
lea edi, [ebp - 0xc]
lea ecx, [ebp - 0x18]
mov byte [esi], al
mov eax, dword [ebp + 8]
inc esi
sub edi, eax
sub ebx, eax
sub ecx, eax
mov dword [ebp + 8], ecx
mov dword [ebp + 0x18], 8
mov dl, byte [eax]
mov cl, dl
shr cl, 3
shl dl, 5
or cl, dl
mov edx, dword [ebp + 8]
mov byte [edi + eax], cl
xor byte [ebp - 4], cl
mov cl, byte [ebx + eax]
mov byte [edx + eax], cl
xor byte [ebp - 0x10], cl
mov byte [esi], cl
inc esi
inc eax
dec dword [ebp + 0x18]
jne 0x120192c5
push 1
pop eax
cmp dword [ebp + 0x10], eax
mov dword [ebp + 0x18], eax
jb 0x120193c1
mov ebx, 0x120b8da8
xor edi, edi
mov al, byte [ebp + edi - 0xc]
lea ecx, [ebp + edi - 0xc]
mov dl, al
shl dl, 6
shr al, 2
or dl, al
mov al, byte [ebp + edi - 0x18]
mov byte [ecx], dl
lea ecx, [ebp + edi - 0x18]
mov dl, al
shl dl, 6
shr al, 2
or dl, al
inc edi
cmp edi, 9
mov byte [ecx], dl
jb 0x12019302
xor ecx, ecx
cmp dword [ebp + 0x14], 0
je 0x12019359
mov eax, dword [ebp + 0x18]
push 9
xor edx, edx
pop edi
lea eax, [ecx + eax*2 - 1]
div edi
movzx eax, byte [ebx + ecx - 9]
mov dl, byte [ebp + edx - 0xc]
add dl, byte [eax + 0x120b8d8c]
mov byte [esi], dl
jmp 0x1201936a
movzx eax, byte [ebx + ecx - 9]
mov al, byte [eax + 0x120b8d8c]
add al, byte [ebp + ecx - 0xc]
mov byte [esi], al
inc esi
inc ecx
cmp ecx, 8
jb 0x12019332
xor ecx, ecx
cmp dword [ebp + 0x14], 0
je 0x12019398
mov eax, dword [ebp + 0x18]
push 9
xor edx, edx
pop edi
lea eax, [ecx + eax*2]
div edi
movzx eax, byte [ebx + ecx]
mov dl, byte [ebp + edx - 0x18]
add dl, byte [eax + 0x120b8d8c]
mov byte [esi], dl
jmp 0x120193a8
movzx eax, byte [ebx + ecx]
mov al, byte [eax + 0x120b8d8c]
add al, byte [ebp + ecx - 0x18]
mov byte [esi], al
inc esi
inc ecx
cmp ecx, 8
jb 0x12019373
inc dword [ebp + 0x18]
add ebx, 0x12
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp + 0x10]
jbe 0x12019300
pop edi
pop esi
pop ebx
leave
ret