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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10030b9b
mov eax, dword fs:[0]
push eax
mov eax, 0x1068
call fcn.10025400
mov eax, dword [0x1003c030]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
mov edi, ecx
push eax
mov dword [ebp - 0x1048], edi
mov dword [ebp - 0x1054], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x104c], esi
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x100017bc
cmp esi, 0xffffffff
jne 0x100017da
push 0x1003484b
mov ecx, edi
call fcn.1000399e
lea eax, [ebp - 0x104c]
call fcn.100011b0
mov eax, edi
jmp 0x10001867
lea eax, [ebp - 0x1054]
push eax
push esi
mov dword [ebp - 0x1054], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push 0x100f
lea eax, [ebp - 0x1043]
push ebx
push eax
mov dword [ebp - 0x1058], edi
mov byte [ebp - 0x1044], bl
call fcn.1001bc00
add esp, 0xc
lea eax, [ebp - 0x1050]
push ebx
push eax
mov dword [ebp - 0x1050], ebx
lea eax, [ebp - 0x1044]
cmp edi, 0x1000
ja 0x10001881
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10001846
cmp dword [ebp - 0x1050], edi
je 0x100018d4
mov ecx, dword [ebp - 0x1048]
push 0x1003484b
call fcn.1000399e
lea eax, [ebp - 0x104c]
call fcn.100011b0
mov eax, dword [ebp - 0x1048]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1001997f
leave
ret
mov edi, 0x800
push edi
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
call esi
test eax, eax
je 0x10001846
cmp dword [ebp - 0x1050], edi
jne 0x10001846
mov eax, dword [ebp - 0x1058]
push ebx
push ebx
add eax, 0xfffff800
push eax
push dword [ebp - 0x104c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x1050]
push eax
push edi
lea eax, [ebp - 0x844]
push eax
push dword [ebp - 0x104c]
call esi
jmp 0x10001836
push 7
pop ecx
push dword [ebp - 0x1058]
xor eax, eax
push dword [ebp - 0x1054]
mov byte [ebp - 0x34], bl
lea edi, [ebp - 0x33]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x34]
push str._08x_08x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea esi, [ebp - 0x34]
lea edi, [ebp - 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x1074]
push eax
lea ecx, [ebp - 0x1044]
movsd dword es:[edi], dword [esi]
call fcn.1001767b
add esp, 0x14
mov esi, dword [ebp - 0x1048]
push 0x20
push 0xa
push eax
mov byte [ebp - 4], 1
call fcn.10003a10
push ebx
push 1
lea ecx, [ebp - 0x1074]
call fcn.10003e16
lea eax, [ebp - 0x104c]
call fcn.100011b0
mov eax, esi
jmp 0x10001867
Function at 0x10002206
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
mov eax, dword [0x1003c030]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x330], 0
push esi
push edi
mov dword [ebp - 0x310], eax
xor eax, eax
push eax
mov word [ebp - 0x30c], ax
push 0x23
lea eax, [ebp - 0x30c]
push eax
push 0
mov esi, ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov word [ebp - 0x8c], ax
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x314]
push eax
movzx eax, word [ebp - 0x316]
push eax
movzx eax, word [ebp - 0x318]
push eax
movzx eax, word [ebp - 0x31a]
push eax
movzx eax, word [ebp - 0x31e]
push eax
movzx eax, word [ebp - 0x320]
push eax
push str._04d_02d_02d_02d_02d_02d
lea eax, [ebp - 0x8c]
push 0x40
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
xor eax, eax
add esp, 0x24
lea edi, [ebp - 0x10c]
mov word [ebp - 0x10c], ax
call fcn.10005a67
cmp dword [esi + 0x50], 8
jb 0x100022c4
mov eax, dword [esi + 0x3c]
jmp 0x100022c7
lea eax, [esi + 0x3c]
cmp dword [esi + 0x18], 0x10
jb 0x100022d2
mov esi, dword [esi + 4]
jmp 0x100022d5
add esi, 4
push eax
push esi
push str.filedp_hs_ls
lea ecx, [ebp - 0x32c]
call fcn.100063d6
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x100022f5
mov eax, dword [eax + 4]
jmp 0x100022f8
add eax, 4
push eax
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
push 1
lea esi, [ebp - 0x32c]
call fcn.10003f0e
lea edi, [ebp - 0x30c]
call fcn.10005854
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp - 0x310]
mov eax, edi
push eax
call fcn.10003a3e
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1001997f
leave
ret 4
Function at 0x10005854
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x1003c030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
cmp edi, ebx
je 0x1000594e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x1000594e
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.1001bc00
add esp, 0xc
lea esi, [ebp - 0x210]
mov ecx, edi
call fcn.10005b60
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100058cb
shr eax, 4
not eax
and eax, 1
jmp 0x10005950
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea esi, [ebp - 0x418]
call fcn.1000595e
test eax, eax
je 0x1000594e
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x10000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x420], eax
cmp eax, ebx
je 0x10005930
mov dword [ebp - 0x41c], 1
cmp eax, 0xffffffff
jne 0x10005936
mov dword [ebp - 0x41c], ebx
lea eax, [ebp - 0x420]
call fcn.100011b0
xor eax, eax
cmp byte [ebp - 0x41c], bl
setne al
jmp 0x10005950
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1001997f
leave
ret
Function at 0x10005c3d
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x224
lea ebp, [esp - 4]
mov eax, dword [0x1003c030]
xor eax, ebp
mov dword [ebp + 0x224], eax
push 0x28
mov eax, 0x1002face
call fcn.1001a6f1
mov esi, edx
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], edi
cmp esi, edi
jne 0x10005c87
push 0x1003484c
mov esi, ebx
call fcn.10003a3e
mov eax, ebx
jmp 0x10005d65
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call ebx
push esi
test eax, eax
jne 0x10005ca4
mov esi, dword [ebp - 0x14]
call fcn.10003a3e
mov eax, esi
jmp 0x10005d65
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea esi, [ebp]
call fcn.10003a3e
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 1
xor eax, eax
push 0x206
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push edi
push eax
call fcn.1001bc00
add esp, 0xc
push dword [ebp - 0x18]
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x10005cf8
lea eax, [ebp + 4]
push eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0x34]
push str.___d__s
call fcn.100063d6
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x10005d17
mov eax, dword [eax + 4]
jmp 0x10005d1a
add eax, 4
push eax
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
push 1
lea esi, [ebp - 0x34]
call fcn.10003f0e
lea eax, [ebp + 0x1c]
push eax
call ebx
test eax, eax
je 0x10005d88
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x270f
jl 0x10005cbd
push 0x1003484c
mov esi, dword [ebp - 0x14]
call fcn.10003a3e
push edi
push 1
lea esi, [ebp]
call fcn.10003f0e
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.1001997f
add ebp, 0x228
leave
ret
lea eax, [ebp + 0x1c]
push eax
jmp 0x10005d4f

Function at 0x10005d8e
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x434
mov eax, dword [0x1003c030]
xor eax, esp
mov dword [esp + 0x430], eax
mov eax, fcn.1000617a
push esi
test eax, eax
je 0x10005e1b
push 0x424
lea eax, [esp + 0x10]
push 0
push eax
call fcn.1001bc00
add esp, 0xc
push dword [ebp + 8]
mov dword [esp + 0xc], 0x428
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 4], esi
test esi, esi
je 0x10005e12
cmp esi, 0xffffffff
je 0x10005e12
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Module32FirstW
jmp 0x10005e0e
push edi
lea eax, [esp + 0xc]
push eax
call fcn.1000617a
test eax, eax
je 0x10005e12
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x10005df4
lea eax, [esp + 4]
call fcn.100011b0
mov ecx, dword [esp + 0x434]
pop esi
xor ecx, esp
call fcn.1001997f
mov esp, ebp
pop ebp
ret 4
Function at 0x10005e30
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1b4]
sub esp, 0x234
mov eax, dword [0x1003c030]
xor eax, ebp
mov dword [ebp + 0x1b0], eax
mov eax, fcn.10006128
test eax, eax
je 0x10005eb7
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x80], esi
test esi, esi
je 0x10005eae
cmp esi, 0xffffffff
je 0x10005eae
push 0x228
lea eax, [ebp - 0x78]
push 0
push eax
mov dword [ebp - 0x7c], 0x22c
call fcn.1001bc00
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x10005eaa
push edi
lea eax, [ebp - 0x7c]
push eax
call fcn.10006128
test eax, eax
je 0x10005eae
lea eax, [ebp - 0x7c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10005e92
lea eax, [ebp - 0x80]
call fcn.100011b0
pop esi
mov ecx, dword [ebp + 0x1b0]
xor ecx, ebp
call fcn.1001997f
add ebp, 0x1b4
leave
ret

Function at 0x10005ecc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
jne 0x10005edf
xor eax, eax
jmp 0x10005f38
push 0x40
lea eax, [ebp - 0x58]
push esi
push eax
mov dword [ebp - 0x5c], 0x44
call fcn.1001bc00
mov dword [ebp - 0x14], esi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
add esp, 0xc
call fcn.1000581a
mov edi, eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10005f30
push dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.10005847
mov eax, esi
pop edi
pop esi
leave
ret 4
Function at 0x10006019
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
jne 0x10006032
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
call fcn.10005f3e
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.10005e30
cmp dword [ebp - 0x14], esi
je 0x10006029
push dword [ebp - 0x18]
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0x10006068
cmp eax, 0xffffffff
jne 0x10006074
lea eax, [ebp - 0x10]
call fcn.100011b0
mov eax, esi
jmp 0x1000602b
lea ecx, [ebp - 8]
push ecx
push 0xf01ff
push eax
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10006068
push esi
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1000611e
mov edi, dword [ebp + 8]
call fcn.1000581a
push 0x40
mov dword [ebp + 8], eax
lea eax, [ebp - 0x68]
push esi
push eax
mov dword [ebp - 0x6c], 0x44
call fcn.1001bc00
add esp, 0xc
push 5
pop eax
mov word [ebp - 0x3c], ax
xor eax, eax
mov dword [ebp - 0x20], esi
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0xc]
mov dword [ebp - 0x40], 1
push 0x420
push esi
push esi
push esi
push dword [ebp + 8]
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x1000610d
push dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
call ebx
push dword [ebp + 8]
call fcn.10005847
push dword [ebp - 0xc]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push dword [ebp - 8]
call ebx
jmp 0x10006068

Function at 0x100168cd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x10016923
cmp eax, 0xffffffff
je 0x10016923
push esi
lea ecx, [ebp - 4]
push ecx
push 4
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10016923
cmp dword [ebp - 4], 4
jne 0x10016923
cmp dword [ebp - 8], 0x21726152
jne 0x10016923
inc esi
lea eax, [ebp - 0xc]
call fcn.100011b0
mov eax, esi
pop esi
leave
ret
Function at 0x10016b8f
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x321c
call fcn.10025400
mov eax, dword [0x1003c030]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 1
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x3218], eax
je 0x10016bca
cmp dword [ebp + 0xc], 0
je 0x10016bca
mov eax, 0x451
jmp 0x10016cd8
and dword [ebp - 0x3214], 0
push 1
lea ebx, [ebp - 0x3214]
call fcn.100169c4
xor ebx, ebx
pop ecx
cmp eax, ebx
jne 0x10016cd8
push 0x3ff
lea eax, [ebp - 0x320f]
push ebx
push eax
mov byte [ebp - 0x3210], bl
call fcn.1001bc00
add esp, 0xc
push 0x23fc
lea eax, [ebp - 0x2e10]
push ebx
push eax
call fcn.1001bc00
mov edi, dword [ebp - 0x3214]
lea eax, [ebp - 0xa10]
add esp, 0xc
mov dword [ebp - 0x19a8], eax
mov dword [ebp - 0x19a4], 0x400
jmp 0x10016cae
cmp dword [ebp + 0xc], 1
jne 0x10016c98
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.1001bc00
add esp, 0xc
push dword [ebp - 0x3218]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x2210]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10016c98
push ebx
push ebx
push ebx
jmp 0x10016ca1
push ebx
push dword [ebp - 0x3218]
push 2
push edi
call dword [0x1003f244]
mov esi, eax
cmp esi, ebx
jne 0x10016cc6
lea eax, [ebp - 0x3210]
push eax
push edi
call dword [0x1003f240]
mov esi, eax
cmp esi, ebx
je 0x10016c37
push edi
call dword [0x1003f23c]
mov eax, esi
sub eax, 0xa
neg eax
sbb eax, eax
and eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001997f
leave
ret
Function at 0x10016ce7
Capabilities:
Check if file exists

Disassembly:
push 0xa4
mov eax, 0x1002ffe3
call fcn.1001a75a
mov esi, ecx
mov edi, edx
push esi
mov dword [ebp - 0x60], edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10016d12
mov eax, 0x44f
jmp 0x10016e96
push esi
call fcn.100168cd
pop ecx
test eax, eax
je 0x10016d2b
mov edx, edi
mov ecx, esi
call fcn.10016a61
jmp 0x10016e96
push esi
push 0x10036684
push 0x10036688
lea ecx, [ebp - 0x4c]
call fcn.100063d6
add esp, 0xc
xor edi, edi
mov dword [ebp - 4], edi
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
call fcn.10004386
mov byte [ebp - 4], 3
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x10016d66
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x30]
push ecx
push eax
call fcn.10016861
pop ecx
pop ecx
mov dword [ebp - 0x5c], eax
cmp eax, edi
jne 0x10016e7d
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x10016d89
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.1000639b
pop ecx
pop ecx
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x6c]
mov dword [ebp - 0x50], edi
cmp esi, dword [ebp - 0x68]
jbe 0x10016da9
call fcn.10019e15
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], esi
mov esi, dword [ebp - 0x68]
cmp dword [ebp - 0x6c], esi
jbe 0x10016dbf
call fcn.10019e15
mov eax, dword [ebp - 0x58]
cmp eax, edi
je 0x10016dcb
cmp eax, dword [ebp - 0x78]
je 0x10016dd0
call fcn.10019e15
cmp dword [ebp - 0x54], esi
je 0x10016e6c
lea esi, [ebp - 0x58]
call fcn.10006caa
push eax
call fcn.1000a09d
test eax, eax
jne 0x10016df0
inc dword [ebp - 0x50]
jmp 0x10016e5f
cmp dword [ebp - 0x50], 1
jne 0x10016e59
lea esi, [ebp - 0x58]
call fcn.10006caa
cmp dword [eax + 0x14], 0x35
jbe 0x10016e5f
call fcn.10006caa
push 0xffffffffffffffff
push 0x35
push eax
lea esi, [ebp - 0xb0]
call fcn.10003a10
push eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 5
call fcn.10005604
pop ecx
push eax
mov eax, dword [ebp - 0x60]
mov byte [ebp - 4], 6
call fcn.100067fa
push edi
push 1
lea esi, [ebp - 0x94]
call fcn.10003f0e
push edi
push 1
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 4
call fcn.10003e16
jmp 0x10016e5f
cmp dword [ebp - 0x50], 2
je 0x10016e6c
lea esi, [ebp - 0x58]
call fcn.10006cd2
jmp 0x10016db2
lea esi, [ebp - 0x78]
call fcn.10003f55
push dword [ebp - 0x78]
call fcn.10019e83
pop ecx
push edi
push 1
lea ecx, [ebp - 0x30]
call fcn.10003e16
push edi
push 1
lea esi, [ebp - 0x4c]
call fcn.10003f0e
mov eax, dword [ebp - 0x5c]
call fcn.1001a7dd
ret
Function at 0x10016e9c
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebx + 0x18]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [ebx]
push esi
push edi
mov dword [ebp - 4], 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
lea edi, [ebp - 0x14]
lea esi, [ebp - 0xc]
mov dword [ebp - 0x14], eax
call fcn.10006ec3
test al, al
jne 0x10016f41
call fcn.10008da1
add eax, 0x1c
cmp dword [eax + 0x18], 8
jb 0x10016ee5
mov eax, dword [eax + 4]
jmp 0x10016ee8
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10016f30
lea esi, [ebp - 0xc]
call fcn.10008da1
cmp dword [eax + 0x18], 8
jb 0x10016f06
mov edi, dword [eax + 4]
jmp 0x10016f09
lea edi, [eax + 4]
lea esi, [ebp - 0xc]
call fcn.10008da1
add eax, 0x1c
cmp dword [eax + 0x18], 8
jb 0x10016f1f
mov eax, dword [eax + 4]
jmp 0x10016f22
add eax, 4
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x10016f34
and dword [ebp - 4], 0
lea esi, [ebp - 0xc]
call fcn.10008b55
jmp 0x10016eb8
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x10017419
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2028
call fcn.10025400
mov eax, dword [0x1003c030]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
call fcn.100174fc
test al, al
je 0x100174ef
xor eax, eax
mov word [ebp - 0x80c], ax
mov word [ebp - 0x100c], ax
push str.__ls__ls
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x10036714
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x2028]
push eax
call fcn.1001733e
cmp dword [eax + 0x18], 8
pop ecx
jb 0x1001748a
mov eax, dword [eax + 4]
jmp 0x1001748d
add eax, 4
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x100c]
push 0x400
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
push 0
push 1
lea esi, [ebp - 0x2028]
call fcn.10003f0e
xor eax, eax
mov word [ebp - 0x200c], ax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x100c]
push eax
push 0x800
lea eax, [ebp - 0x200c]
push eax
call dword [sym.imp.SHLWAPI.dll_wvnsprintfW]
lea eax, [ebp - 0x200c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.1001997f
leave
ret

Function at 0x10017b31
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 4
shl eax, 4
pop edx
mov esi, ecx
lea edi, [eax + ecx + 0x3c]
mov dword [ebp - 4], edx
xor eax, eax
mov ecx, edi
mov bl, byte [ecx]
xor byte [esi + eax], bl
inc eax
add ecx, edx
cmp eax, edx
jl 0x10017b4b
inc edi
add esi, edx
dec dword [ebp - 4]
jne 0x10017b47
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10017c66
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1003c030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 4
lea esi, [ebp - 8]
lea ecx, [eax + 4]
pop edi
mov al, byte [esi - 0xc]
mov dl, byte [esi - 8]
call fcn.10017e2c
mov bl, al
mov al, dl
call fcn.10017e2c
xor bl, al
xor bl, byte [esi - 4]
mov al, dl
xor bl, byte [esi]
xor bl, dl
mov byte [ecx - 4], bl
call fcn.10017e2c
mov bl, al
mov al, byte [esi - 4]
call fcn.10017e2c
xor bl, al
xor bl, byte [esi - 0xc]
mov al, byte [esi - 4]
xor bl, byte [esi]
xor bl, al
mov byte [ecx], bl
call fcn.10017e2c
mov bl, al
mov al, byte [esi]
call fcn.10017e2c
xor bl, al
mov al, byte [esi]
xor bl, dl
xor bl, byte [esi - 0xc]
xor bl, al
mov byte [ecx + 4], bl
call fcn.10017e2c
mov bl, al
mov al, byte [esi - 0xc]
call fcn.10017e2c
xor bl, al
xor bl, dl
xor bl, byte [esi - 4]
xor bl, byte [esi - 0xc]
inc ecx
mov byte [ecx + 7], bl
inc esi
dec edi
jne 0x10017c8e
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001997f
leave
ret 4
Function at 0x10017d1b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1003c030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x10]
lea esi, [eax + 4]
mov dword [ebp - 0x1c], 4
mov al, byte [edi - 4]
mov bl, byte [edi + 4]
call fcn.10017ea8
push ebx
mov dl, al
call fcn.10017e81
xor dl, al
movzx eax, byte [edi + 8]
push eax
call fcn.10017e3c
xor dl, al
movzx eax, byte [edi]
push eax
call fcn.10017e5a
xor dl, al
movzx eax, byte [edi - 4]
push eax
mov byte [esi - 4], dl
call fcn.10017e3c
push ebx
mov byte [ebp - 0x15], al
call fcn.10017e5a
mov cl, byte [ebp - 0x15]
xor cl, al
movzx eax, byte [edi + 8]
push eax
mov byte [ebp - 0x15], cl
call fcn.10017e81
mov cl, byte [ebp - 0x15]
xor cl, al
mov al, byte [edi]
mov byte [ebp - 0x15], cl
call fcn.10017ea8
mov cl, byte [ebp - 0x15]
xor cl, al
movzx eax, byte [edi - 4]
push eax
mov byte [esi], cl
call fcn.10017e81
mov bl, al
mov al, byte [edi + 4]
call fcn.10017ea8
movzx edx, byte [edi + 8]
push edx
xor bl, al
call fcn.10017e5a
xor bl, al
movzx eax, byte [edi]
push eax
call fcn.10017e3c
xor bl, al
movzx eax, byte [edi - 4]
push eax
mov byte [esi + 4], bl
call fcn.10017e5a
mov bl, al
movzx eax, byte [edi + 4]
push eax
call fcn.10017e3c
xor bl, al
mov al, dl
call fcn.10017ea8
xor bl, al
movzx eax, byte [edi]
push eax
call fcn.10017e81
xor bl, al
mov byte [esi + 8], bl
inc esi
inc edi
dec dword [ebp - 0x1c]
jne 0x10017d47
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001997f
leave
ret 4