joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006a30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010c098
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x10152034]
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 edi, dword [ebp + 8]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x30]
mov eax, dword [ecx]
push edx
call dword [eax + 0x1c]
xor eax, eax
mov byte [ebp - 4], 1
push 0xffffffffffffffff
push eax
mov word [ebp - 0x64], ax
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x50], 7
push eax
mov dword [ebp - 0x54], 0
call fcn.10001d60
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.10041500
cmp dword [ebp - 0x50], 8
lea eax, [ebp - 0x64]
cmovae eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov byte [ebp - 4], 1
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
setne bl
cmp dword [ebp - 0x50], 8
jb 0x10006ae9
push dword [ebp - 0x64]
call esi
add esp, 4
test bl, bl
jne 0x10006b10
push str.ERR:json_file_not_exist_
push 1
push 0x321
push 0x101192b4
push 0x101192dc
call fcn.100ff930
add esp, 0x14
jmp 0x10006c03
sub esp, 0x18
mov dword [ebp - 0x18], 0
mov ecx, esp
lea ebx, [ebp - 0x18]
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x30]
push eax
call fcn.10001d60
mov ecx, ebx
call fcn.100bd2f0
add esp, 0x18
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x10006b87
movdqu xmm0, xmmword [ebp - 0x30]
sub esp, 0x18
mov eax, esp
push str.ERR:_file_is_empty___s
push 1
push 0x328
movdqu xmmword [eax], xmm0
push 0x10119338
movq xmm0, qword [ebp - 0x20]
push 0x10119388
movq qword [eax + 0x10], xmm0
call fcn.100ffcc0
add esp, 0x2c
jmp 0x10006c03
push eax
call fcn.100c5f50
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10006bca
push str.os_crypt
push ebx
call fcn.100c7450
add esp, 8
test eax, eax
je 0x10006bca
push str.encrypted_key
push eax
call fcn.100c7450
add esp, 8
test eax, eax
je 0x10006bca
mov eax, dword [eax + 0x10]
test eax, eax
je 0x10006bca
push eax
lea ecx, [ebp - 0x48]
call fcn.10006cd0
push ebx
call fcn.100c4d40
add esp, 4
cmp dword [ebp - 0x38], 0
jne 0x10006bf7
push str.ERR:not_find_encrypted_key
push 1
push 0x343
push str..._srcMoniterHelper_browserChrome.cpp
push str.CChrome::GetEncodedKeyFromLocalStateFile
call fcn.100ff930
add esp, 0x14
push dword [ebp - 0x18]
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
lea eax, [ebp - 0x48]
mov ecx, edi
push eax
call fcn.10007d60
cmp dword [ebp - 0x1c], 8
jb 0x10006c1c
push dword [ebp - 0x30]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x1c], 7
cmp dword [ebp - 0x34], 0x10
mov dword [ebp - 0x20], eax
mov word [ebp - 0x30], ax
jb 0x10006c3a
push dword [ebp - 0x48]
call esi
add esp, 4
mov eax, edi
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.1010a06b
mov esp, ebp
pop ebp
ret 4
Function at 0x100086c0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010c227
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x10152034]
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 edi, ecx
push 1
mov dword [ebp - 0x238], edi
call fcn.10003c80
mov dword [ebp - 4], 0
lea esi, [edi + 0x80]
mov dword [edi], vtable.COperaDev.0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
sub esp, 0x18
mov byte [ebp - 4], 2
mov edx, esp
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], eax
mov word [edx], ax
cmp word [ebp - 0x218], ax
jne 0x10008792
xor ecx, ecx
jmp 0x100087af
lea ecx, [ebp - 0x218]
lea ebx, [ecx + 2]
jmp 0x100087a0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100087a0
sub ecx, ebx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, edx
push eax
call fcn.10002100
lea ecx, [ebp - 0x230]
call fcn.100416f0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x250]
push 0x10119468
push eax
call fcn.10040660
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 0x24
mov dword [ebp - 0x234], eax
cmp esi, eax
je 0x10008830
cmp dword [esi + 0x14], 8
jb 0x10008815
push dword [esi]
call ebx
mov eax, dword [ebp - 0x234]
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
mov ecx, esi
push eax
call fcn.10001be0
cmp dword [ebp - 0x23c], 8
jb 0x10008844
push dword [ebp - 0x250]
call ebx
add esp, 4
push 0x14
push 0
push 0x10119480
mov ecx, esi
call fcn.10007090
cmp eax, 0xffffffff
je 0x10008874
mov ecx, edi
mov byte [edi + 0x71], 1
call fcn.10008a50
push 0
push 0x101194ac
mov ecx, esi
call fcn.10002100
jmp 0x10008881
push esi
lea ecx, [edi + 0x74]
mov byte [edi + 0x71], 0
call fcn.10006e40
cmp dword [ebp - 0x21c], 8
jb 0x10008895
push dword [ebp - 0x230]
call ebx
add esp, 4
mov eax, edi
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.1010a06b
mov esp, ebp
pop ebp
ret
Function at 0x100098a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010c3b8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x10152034]
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 ebx, ecx
mov dword [ebp - 4], 0
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 8
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
test eax, eax
je 0x10009916
mov ecx, ebx
call fcn.10009a60
test al, al
jne 0x10009946
push str.init_ntdll_fail_
push 3
push 0x6e
push 0x1011a048
push 0x1011a0a0
call fcn.100ffcc0
add esp, 0x14
xor bl, bl
cmp dword [ebp + 0x20], 8
jb 0x10009926
push dword [ebp + 0xc]
call edi
add esp, 4
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 - 0x14]
xor ecx, ebp
call fcn.1010a06b
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, ebx
call fcn.1000a940
test al, al
jne 0x10009966
push str.Get_process_id_fail_
push 3
push 0x75
push 0x1011a148
push str.CEdgeHelper::GetHistoryData
jmp 0x1000990e
xor esi, esi
jmp 0x10009970
push dword [esi + 0x1011b3d0]
lea ecx, [ebp - 0x4c]
call fcn.10002200
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebx + 0x10]
call fcn.1000c550
cmp dword [ebp - 0x38], 8
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
jb 0x100099a1
push dword [ebp - 0x4c]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 7
push eax
mov word [ecx], ax
lea eax, [ebp + 0xc]
push eax
call fcn.10001d60
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
push dword [ebp - 0x34]
call fcn.1000a100
test al, al
jne 0x10009a0d
mov byte [ebp - 4], al
cmp dword [ebp - 0x18], 8
jb 0x100099fa
push dword [ebp - 0x2c]
call edi
add esp, 4
add esi, 4
cmp esi, 0x10
jb 0x10009970
mov bl, 1
jmp 0x10009918
sub esp, 0x18
mov dword [ebx + 0x18], 0
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x2c]
push eax
call fcn.10001d60
push dword [ebp + 8]
mov ecx, ebx
call fcn.1000aaf0
cmp dword [ebp - 0x18], 8
jb 0x10009a50
push dword [ebp - 0x2c]
call edi
add esp, 4
mov bl, 1
jmp 0x10009918
Function at 0x1000a940
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010c4db
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x10152034]
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 ebx, ecx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000a9ba
push 0x228
lea eax, [ebp - 0x23c]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x240], 0x22c
lea eax, [ebp - 0x240]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x1000a9c1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1000aad4
add ebx, 0x10
xor eax, eax
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
cmp word [ebp - 0x21c], ax
je 0x1000aa02
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000a9f3
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x260]
call fcn.10002100
lea eax, [ebp - 0x260]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.1000c8e0
mov esi, eax
cmp esi, dword [ebx]
je 0x1000aa57
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
mov ecx, dword [eax + 0x10]
jb 0x1000aa3e
mov eax, dword [eax]
push ecx
push eax
push dword [ebp - 0x250]
lea ecx, [ebp - 0x260]
push 0
call fcn.100035e0
test eax, eax
jns 0x1000aa8d
lea eax, [ebp - 0x260]
push ecx
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x248]
push eax
push ecx
mov ecx, ebx
call fcn.1000d570
push eax
add eax, 0x10
mov ecx, ebx
push eax
push esi
lea eax, [ebp - 0x244]
push eax
call fcn.1000d5b0
mov esi, dword [ebp - 0x244]
mov eax, dword [ebp - 0x238]
mov dword [esi + 0x28], eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x24c], 8
jb 0x1000aab5
push dword [ebp - 0x260]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea eax, [ebp - 0x240]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1000a9c4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
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.1010a06b
mov esp, ebp
pop ebp
ret
Function at 0x1000c1b0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010c628
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x10152034]
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
push 0
push 0x80
push 3
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
cmovae eax, dword [ebp + 8]
push 0
push 1
push SysReAllocString
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x1000c235
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
inc eax
push eax
mov dword [ebp - 0x18], eax
call fcn.100ff1d0
mov esi, eax
add esp, 4
test esi, esi
jne 0x1000c269
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
cmp dword [ebp + 0x1c], 8
jb 0x1000c249
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
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 - 0x10]
xor ecx, ebp
call fcn.1010a06b
mov esp, ebp
pop ebp
ret 0x18
push dword [ebp - 0x18]
push 0
push esi
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0
push eax
push dword [ebp - 0x1c]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
sub esp, 8
mov dword [esi + 0x34], 3
lea eax, [esi + 4]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.1000c320
mov eax, dword [ebp - 0x18]
push 0
push 0x80
push 3
mov dword [esi], eax
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
push 0
cmovae eax, dword [ebp + 8]
push 0
push 0x40000000
push eax
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1000c2f4
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
push ebx
call edi
jmp 0x1000c235
push 0
lea eax, [ebp - 0x14]
push eax
push 0x29c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call edi
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov bl, 1
jmp 0x1000c237
Function at 0x1000c320
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor edx, edx
xor bl, bl
push esi
mov esi, 0x1ffc
mov dword [ebp - 4], edx
cmp dword [ebp + 8], edx
jne 0x1000c342
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1000c337
mov bh, al
and bh, 3
push edi
mov edi, 0x89abcdef
mov byte [ebp + 0xf], bh
jbe 0x1000c3ac
mov bh, 4
sub bh, byte [ebp + 0xf]
je 0x1000c3a4
xor edx, edx
mov bl, 1
cmp bh, 4
jb 0x1000c372
movzx edx, byte [eax + 3]
mov bl, 2
shl edx, 8
cmp bh, 3
jb 0x1000c382
movzx ecx, byte [eax + 2]
or edx, ecx
shl edx, 8
inc bl
cmp bh, 2
jb 0x1000c392
movzx ecx, byte [eax + 1]
or edx, ecx
shl edx, 8
inc bl
movzx ecx, byte [eax]
or edx, ecx
movzx ecx, bl
add eax, ecx
xor edi, edx
sub bh, bl
jne 0x1000c360
xor edx, edx
mov bh, byte [ebp + 0xf]
movzx ecx, bl
sub esi, ecx
cmp esi, 4
jbe 0x1000c3c6
lea ecx, [esi - 5]
shr ecx, 2
inc ecx
xor edx, dword [eax]
sub esi, 4
add eax, 4
dec ecx
jne 0x1000c3b8
mov dword [ebp - 4], edx
test bh, bh
je 0x1000c3f1
movzx ecx, bh
and ecx, 0x80000003
jns 0x1000c3da
dec ecx
or ecx, 0xfffffffc
inc ecx
mov bl, 4
shl cl, 3
sub bl, bh
shl edx, cl
shl bl, 3
mov cl, bl
mov ebx, dword [ebp - 4]
shr ebx, cl
xor edi, edx
jmp 0x1000c3f4
mov ebx, dword [ebp - 4]
movzx ecx, byte [ebp + 0xf]
xor edi, ebx
and ecx, 0x80000003
jns 0x1000c407
dec ecx
or ecx, 0xfffffffc
inc ecx
mov bl, 4
sub bl, cl
cmp bl, 4
je 0x1000c43b
movzx edx, byte [eax]
shl edx, 8
cmp bl, 2
jb 0x1000c421
movzx ecx, byte [eax + 1]
or edx, ecx
shl edx, 8
cmp bl, 3
jb 0x1000c42f
movzx ecx, byte [eax + 2]
or edx, ecx
movzx ecx, bl
shl edx, 8
add eax, ecx
sub esi, ecx
xor edi, edx
test esi, esi
je 0x1000c484
nop
xor edx, edx
mov bl, 1
cmp esi, 4
jb 0x1000c452
movzx edx, byte [eax + 3]
mov bl, 2
shl edx, 8
cmp esi, 3
jb 0x1000c463
movzx ecx, byte [eax + 2]
or edx, ecx
shl edx, 8
add bl, 1
cmp esi, 2
jb 0x1000c474
movzx ecx, byte [eax + 1]
or edx, ecx
shl edx, 8
add bl, 1
movzx ecx, byte [eax]
or edx, ecx
movzx ecx, bl
add eax, ecx
xor edi, edx
sub esi, ecx
jne 0x1000c440
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1000e1b0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010c786
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x10152034]
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, ecx
mov dword [esi], vtable.CFirefox.0
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov dword [ebp - 0x21c], esi
mov word [esi + 4], cx
mov dword [ebp - 4], ecx
mov dword [esi + 0x30], 7
mov dword [esi + 0x2c], ecx
mov word [esi + 0x1c], cx
lea edi, [esi + 0x34]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ecx
mov word [edi], ax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
push 0x206
mov byte [ebp - 4], 3
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebp - 0x218], 0
jne 0x1000e26d
xor ecx, ecx
jmp 0x1000e285
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000e276
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.10002100
push 0x14
push 0
push 0x1011b3e0
mov ecx, edi
call fcn.10007090
cmp eax, 0xffffffff
je 0x1000e2c4
mov ecx, esi
mov byte [esi + 0x4c], 1
call fcn.1000e590
push 0
push 0x1011b40c
mov ecx, edi
call fcn.10002100
jmp 0x1000e2d1
push edi
lea ecx, [esi + 0x50]
mov byte [esi + 0x4c], 0
call fcn.10006e40
mov eax, dword [0x10157f64]
test al, 1
jne 0x1000e2fc
or eax, 1
mov dword [0x10157f64], eax
mov byte [ebp - 4], 4
call fcn.10015cb0
push 0x10116320
call fcn.1010a16b
add esp, 4
mov byte [ebp - 4], 3
cmp dword [0x10157fc4], 8
mov edx, 0x10157fb0
cmovae edx, dword [0x10157fb0]
cmp word [edx], 0
jne 0x1000e319
xor ecx, ecx
jmp 0x1000e32f
mov ecx, edx
lea edi, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000e320
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 4]
call fcn.10002100
push 0
push 0x1011b410
lea ecx, [esi + 0x1c]
call fcn.10002100
mov dword [esi + 0x5c], 0
mov eax, esi
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.1010a06b
mov esp, ebp
pop ebp
ret
Function at 0x1000e370
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1010c7dc
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x10152034]
xor eax, esp
mov dword [esp + 0x2b0], eax
push ebx
push esi
push edi
mov eax, dword [0x10152034]
xor eax, esp
push eax
lea eax, [esp + 0x2c8]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
add ecx, 0x34
mov dword [esp + 0x14], 0
cmp dword [ecx + 0x14], 8
jb 0x1000e3c6
mov ecx, dword [ecx]
push ecx
lea eax, [esp + 0x40]
push 0x1011b414
push eax
call fcn.10040660
push 0x1011b44c
lea eax, [esp + 0x4c]
mov dword [esp + 0x2e0], 0
push eax
lea eax, [esp + 0x38]
push eax
call fcn.10007490
add esp, 0x18
xorps xmm0, xmm0
mov dword [esp + 0x20], 0
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov byte [esp + 0x2d0], 2
lea ecx, [esp + 0x6c]
cmp dword [esp + 0x38], 8
lea eax, [esp + 0x24]
push ecx
cmovae eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1000e470
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
jmp 0x1000e504
test byte [esp + 0x6c], 0x10
je 0x1000e4d9
cmp word [esp + 0x98], 0x2e
je 0x1000e4d9
cmp dword [esp + 0x50], 8
lea ecx, [esp + 0x98]
push ecx
lea eax, [esp + 0x40]
cmovae eax, dword [esp + 0x40]
push eax
lea eax, [esp + 0x5c]
push str._s_splaces.sqlite
push eax
call fcn.10040660
add esp, 0x10
lea eax, [esp + 0x54]
mov byte [esp + 0x2d0], 3
push eax
lea ecx, [esp + 0x1c]
call fcn.10006e40
mov byte [esp + 0x2d0], 2
cmp dword [esp + 0x68], 8
jb 0x1000e4d9
push dword [esp + 0x54]
call edi
add esp, 4
lea eax, [esp + 0x6c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1000e470
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x18]
mov dword [esi], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 8], eax
cmp dword [esp + 0x38], 8
jb 0x1000e514
push dword [esp + 0x24]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x38], 7
cmp dword [esp + 0x50], 8
mov word [esp + 0x24], ax
mov dword [esp + 0x34], eax
jb 0x1000e537
push dword [esp + 0x3c]
call edi
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2b0]
xor ecx, esp
call fcn.1010a06b
mov esp, ebp
pop ebp
ret 4
Function at 0x1000e910
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010c849
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x10152034]
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 dword [ebp - 0x48], ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 1
xor eax, eax
push 0xffffffffffffffff
mov dword [esi + 0x14], 7
mov ecx, esi
mov dword [esi + 0x10], 0
push eax
mov word [esi], ax
lea eax, [ebp + 0xc]
push eax
call fcn.10001d60
xor eax, eax
mov dword [ebp - 0x4c], 1
push 0xffffffffffffffff
push eax
mov word [ebp - 0x44], ax
lea ecx, [ebp - 0x44]
lea eax, [ebp + 0xc]
mov dword [ebp - 0x30], 7
push eax
mov dword [ebp - 0x34], 0
call fcn.10001d60
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.10041500
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
setne bl
cmp dword [ebp - 0x30], 8
jb 0x1000e9d8
push dword [ebp - 0x44]
call edi
add esp, 4
test bl, bl
je 0x1000eab2
push 0
call dword [sym.imp.MSVCR120.dll__time64]
mov ecx, eax
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x48]
add esp, 4
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x1000e9fe
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0x2c]
push str._sDB__d.db
push eax
call fcn.10040660
add esp, 0x10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
lea eax, [ebp + 0xc]
push 0
cmovae ecx, dword [ebp - 0x2c]
cmp dword [ebp + 0x20], 8
push ecx
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
xor eax, eax
mov dword [ebp - 0x30], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x44], ax
lea ecx, [ebp - 0x44]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x34], 0
push eax
call fcn.10001d60
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.10041500
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov byte [ebp - 4], 3
setne bl
cmp dword [ebp - 0x30], 8
jb 0x1000ea8d
push dword [ebp - 0x44]
call edi
add esp, 4
test bl, bl
je 0x1000eaa4
lea eax, [ebp - 0x2c]
cmp esi, eax
je 0x1000eaa4
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.10001d60
cmp dword [ebp - 0x18], 8
jb 0x1000eab2
push dword [ebp - 0x2c]
call edi
add esp, 4
cmp dword [ebp + 0x20], 8
jb 0x1000eac0
push dword [ebp + 0xc]
call edi
add esp, 4
mov eax, esi
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.1010a06b
mov esp, ebp
pop ebp
ret 0x1c