joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b420
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10034034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLogNoMask]
push str.CVirLibSrv_Init_begin__bService___d.
mov esi, ecx
call edi
add esp, 8
lea ecx, [ebp - 8]
push ecx
push 0
lea eax, [esi + 0xc]
push eax
push 0x1000b400
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
push ebx
push str.CVirLibSrv_Init_begin__CreateThread_hThread___p.
call edi
add esp, 8
test ebx, ebx
jne 0x1000b499
cmp dword [esi + 0xc], ebx
jne 0x1000b4f3
call fcn.10004170
mov dword [esi + 0xc], eax
test eax, eax
jne 0x1000b4f3
pop edi
pop esi
lea eax, [ebx + 3]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10020d6c
mov esp, ebp
pop ebp
ret 4
push str.CVirLibSrv_Init_begin__WaitForSingleObject.
call edi
add esp, 4
push 0x7530
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1000b4e2
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push 0
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_RaiseException]
push str.CVirLibSrv_Init_end__WaitForSingleObject.
call edi
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
test eax, eax
je 0x1000b503
or dword [esi + 4], 0x80
jmp 0x1000b50a
and dword [esi + 4], 0xffffff7f
push eax
push str.CVirLibSrv_Init_end__bService___d.
call edi
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.10020d6c
mov esp, ebp
pop ebp
ret 4

Function at 0x1000b950
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10034034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push str.SoftwareiSafe
push 0x80000002
mov dword [ebp - 8], 1
xor bl, bl
mov dword [ebp - 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000b9bb
push edi
push esi
lea eax, [ebp - 8]
push eax
push 0
push str.path
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, bl
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x1000b9c9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.10020d6c
mov esp, ebp
pop ebp
ret
Function at 0x1000c120
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002439b
mov eax, dword fs:[0]
push eax
mov eax, 0x103c
call fcn.10023100
mov eax, dword [0x10034034]
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
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x1018]
push eax
push 0
push esi
push dword [edi]
mov dword [ebp - 0x1018], 1
mov dword [ebp - 0x1014], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x1000c30d
mov ecx, dword [ebp - 0x1018]
cmp ecx, 1
jne 0x1000c215
cmp word [ebp - 0x810], ax
jne 0x1000c1e2
xor ecx, ecx
push ecx
lea eax, [ebp - 0x810]
push eax
mov ecx, ebx
call fcn.10002160
mov eax, edi
jmp 0x1000c30d
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
jmp 0x1000c1f0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000c1f0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
push eax
mov ecx, ebx
call fcn.10002160
mov eax, edi
jmp 0x1000c30d
cmp ecx, 2
jne 0x1000c308
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x1030]
call fcn.10002260
lea edx, [ebp - 0x1030]
lea ecx, [ebp - 0x1048]
mov dword [ebp - 4], 0
call fcn.1000b9e0
cmp dword [eax + 0x14], 8
jb 0x1000c250
mov eax, dword [eax]
push 0x400
lea ecx, [ebp - 0x1010]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp dword [ebp - 0x1034], 8
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov dword [ebp - 0x1014], eax
jb 0x1000c289
push dword [ebp - 0x1048]
call esi
mov eax, dword [ebp - 0x1014]
add esp, 4
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x101c], 8
mov dword [ebp - 0x1034], 7
mov dword [ebp - 0x1038], 0
mov word [ebp - 0x1048], cx
jb 0x1000c2c7
push dword [ebp - 0x1030]
call esi
mov eax, dword [ebp - 0x1014]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x101c], 7
mov dword [ebp - 0x1020], 0
mov word [ebp - 0x1030], cx
test eax, eax
je 0x1000c301
cmp eax, 0x400
ja 0x1000c301
lea eax, [ebp - 0x1010]
push eax
mov ecx, ebx
call fcn.10001980
mov eax, edi
jmp 0x1000c30d
mov eax, 0xea
jmp 0x1000c30d
mov eax, 0x3f4
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.10020d6c
mov esp, ebp
pop ebp
ret 8
Function at 0x1000c330
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10034034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
cmp dword [eax + 0x18], 8
lea edx, [eax + 4]
push edi
mov edi, dword [eax]
mov esi, ecx
jb 0x1000c354
mov edx, dword [edx]
mov al, byte [eax + 0x1c]
push ebx
test al, al
push esi
mov ecx, 0x200
mov ebx, 0x100
cmovne ecx, ebx
or ecx, 0x20019
push ecx
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop ebx
test eax, eax
jne 0x1000c3a6
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x1000c3ae
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi], 0
jmp 0x1000c3e4
mov eax, dword [ebp - 8]
mov edx, dword [esi]
dec eax
mov dword [esi + 4], eax
test edx, edx
je 0x1000c3e4
test eax, eax
js 0x1000c3e4
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 8]
push ecx
lea ecx, [esi + 8]
push ecx
push eax
push edx
mov dword [ebp - 8], 0x103
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1000c3ea
xor eax, eax
mov word [esi + 8], ax
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10020d6c
mov esp, ebp
pop ebp
ret 4

Function at 0x1000c590
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
sub edx, edi
sar edx, 1
mov esi, 0x811c9dc5
mov ecx, 0
add edx, edx
je 0x1000c5c1
lea ecx, [ecx]
movzx eax, byte [ecx + edi]
xor esi, eax
inc ecx
imul esi, esi, 0x1000193
cmp ecx, edx
jb 0x1000c5b0
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x1000eb00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002422e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x10034034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x10]
push eax
push 0
lea ecx, [edi + 4]
mov dword [ebp - 0x10], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.1000cd70
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0
lea ecx, [edi + 0x24]
mov dword [ebp - 0x10], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.1000cd70
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea ecx, [edi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
mov byte [ebp - 4], 2
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x58], esi
mov dword [edi + 0x60], edx
mov byte [edi + 0x64], 0
mov dword [edi + 0x68], eax
test byte [esi + 8], 8
je 0x1000ec14
test dl, 0x10
jne 0x1000ec14
mov eax, 1
jmp 0x1000ec16
xor eax, eax
mov byte [edi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x70], eax
push dword [esi + 0x18]
call fcn.1000ecf0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x100149d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002488b
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x10034034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi], 0
je 0x10014a0a
mov al, 1
jmp 0x10014adf
call fcn.100146b0
test al, al
je 0x10014add
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x10014add
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.10002260
push str.GoogleChromeUser_Data
lea edx, [ebp - 0x248]
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
call fcn.100144f0
add esp, 4
lea ecx, [esi + 0x1c]
push eax
call fcn.10001940
cmp dword [ebp - 0x21c], 8
jb 0x10014aa5
push dword [ebp - 0x230]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
cmp dword [ebp - 0x234], 8
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
jb 0x10014ada
push dword [ebp - 0x248]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov byte [esi], 1
mov al, byte [esi]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10020d6c
mov esp, ebp
pop ebp
ret
Function at 0x10014b00
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10024941
mov eax, dword fs:[0]
push eax
mov eax, 0x1044
call fcn.10023100
mov eax, dword [0x10034034]
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 eax, ecx
mov dword [ebp - 0x1050], eax
lea ecx, [ebp - 0x104c]
push ecx
mov ecx, eax
call fcn.100149a0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1038], 8
lea eax, [ebp - 0x104c]
cmovae eax, dword [ebp - 0x104c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
cmp eax, 1
jne 0x10014cf9
cmp dword [ebp - 0x1038], 8
push 0
push 0x80
push 3
push 0
push 3
lea eax, [ebp - 0x104c]
cmovae eax, dword [ebp - 0x104c]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10014cf9
mov dword [ebp - 0x1020], 0xf
mov dword [ebp - 0x1024], 0
mov byte [ebp - 0x1034], 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x10014be0
push 0x1000
lea eax, [ebp - 0x1017]
push 0
push eax
mov dword [ebp - 0x101c], 0
mov byte [ebp - 0x1018], 0
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x101c]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1018]
push eax
push edi
call ebx
mov ecx, dword [ebp - 0x101c]
mov esi, eax
test ecx, ecx
je 0x10014c63
cmp byte [ebp - 0x1018], 0
jne 0x10014c38
xor ecx, ecx
jmp 0x10014c4a
lea ecx, [ebp - 0x1018]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10014c41
sub ecx, edx
push ecx
lea eax, [ebp - 0x1018]
push eax
lea ecx, [ebp - 0x1034]
call fcn.10014fa0
mov ecx, dword [ebp - 0x101c]
test esi, esi
je 0x10014c6f
test ecx, ecx
jne 0x10014be0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1034]
call fcn.10017f00
mov esi, eax
mov byte [ebp - 4], 2
test eax, eax
je 0x10014cb0
cmp dword [eax + 4], 6
jne 0x10014cb0
mov ecx, dword [ebp - 0x1050]
xor esi, esi
mov byte [ecx + 0x34], 1
push eax
add ecx, 0x38
mov dword [ebp - 0x1050], esi
call fcn.10014f60
mov bl, 1
jmp 0x10014cb2
xor bl, bl
mov byte [ebp - 4], 1
test esi, esi
je 0x10014cc2
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
cmp dword [ebp - 0x1020], 0x10
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jb 0x10014cdc
push dword [ebp - 0x1034]
call esi
add esp, 4
mov dword [ebp - 0x1020], 0xf
mov dword [ebp - 0x1024], 0
mov byte [ebp - 0x1034], 0
jmp 0x10014cfb
xor bl, bl
cmp dword [ebp - 0x1038], 8
jb 0x10014d0f
push dword [ebp - 0x104c]
call esi
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.10020d6c
mov esp, ebp
pop ebp
ret
Function at 0x10014d30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100248ed
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x10034034]
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 esi, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x220], 0
call fcn.100149d0
test al, al
je 0x10014d83
cmp byte [esi + 0x34], 0
jne 0x10014d83
mov ecx, esi
call fcn.10014b00
cmp byte [esi], 0
jne 0x10014d8f
xor al, al
jmp 0x10014f42
cmp dword [esi + 0x38], 0
je 0x10014e03
push 0x1a
push str.download.default_directory
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x228], 0xf
mov dword [ebp - 0x22c], 0
mov byte [ebp - 0x23c], 0
call fcn.10002d90
lea eax, [ebp - 0x224]
push eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x220], 1
mov ecx, dword [esi + 0x38]
push eax
call fcn.10018920
test al, al
je 0x10014e03
mov ecx, dword [ebp - 0x224]
push edi
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x10014e03
mov bl, 1
jmp 0x10014e05
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test byte [ebp - 0x220], 1
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
je 0x10014e2f
cmp dword [ebp - 0x228], 0x10
jb 0x10014e2f
push dword [ebp - 0x23c]
call esi
add esp, 4
test bl, bl
jne 0x10014f40
push str.SHGetKnownFolderPath
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10014e86
lea ecx, [ebp - 0x220]
push ecx
push 0
push 0
push 0x10026418
call eax
test eax, eax
js 0x10014e86
push dword [ebp - 0x220]
mov ecx, edi
call fcn.10001980
push dword [ebp - 0x220]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x10014f40
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x10014d88
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x26c]
call fcn.10002260
push str.Downloads
lea edx, [ebp - 0x26c]
lea ecx, [ebp - 0x254]
mov dword [ebp - 4], 1
call fcn.100144f0
add esp, 4
mov ecx, edi
push eax
call fcn.10001940
cmp dword [ebp - 0x240], 8
jb 0x10014f0f
push dword [ebp - 0x254]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp - 0x258], 8
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], 0
mov word [ebp - 0x254], ax
jb 0x10014f40
push dword [ebp - 0x26c]
call esi
add esp, 4
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 - 0x14]
xor ecx, ebp
call fcn.10020d6c
mov esp, ebp
pop ebp
ret 4
Function at 0x10016880
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10024b2a
mov eax, dword fs:[0]
push eax
mov eax, 0x106c
call fcn.10023100
mov eax, dword [0x10034034]
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
call fcn.10015f30
test al, al
je 0x10016a69
push str.prefs.js
lea edx, [esi + 0x1c]
lea ecx, [ebp - 0x1034]
call fcn.100144f0
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1020], 8
lea eax, [ebp - 0x1034]
cmovae eax, dword [ebp - 0x1034]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x10016a4d
cmp dword [ebp - 0x1020], 8
push 0
push 0x80
push 3
push 0
push 3
lea eax, [ebp - 0x1034]
cmovae eax, dword [ebp - 0x1034]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10016a4d
push 0x10
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x101c], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x10016965
mov ecx, eax
mov dword [eax + 8], 0
call fcn.100185f0
mov edi, eax
jmp 0x10016967
xor edi, edi
mov byte [ebp - 4], 0
test edi, edi
je 0x1001697a
cmp edi, dword [esi + 0x38]
jne 0x1001697a
call dword [sym.imp.MSVCR110.dll_abort]
mov ecx, dword [esi + 0x38]
mov dword [esi + 0x38], 0
test ecx, ecx
je 0x1001698e
mov eax, dword [ecx]
push 1
call dword [eax]
push 0x40
lea eax, [ebp - 0x1078]
push 0
push eax
mov dword [esi + 0x38], edi
call sub.MSVCR110.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
mov dword [ebp - 0x1078], 0x10016bf0
mov dword [ebp - 0x1074], esi
lea ebx, [ebx]
push 0x1000
lea eax, [ebp - 0x1017]
push 0
push eax
mov dword [ebp - 0x101c], 0
mov byte [ebp - 0x1018], 0
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x101c]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1018]
push eax
push ebx
call edi
mov ecx, dword [ebp - 0x101c]
mov esi, eax
test ecx, ecx
je 0x10016a26
push ecx
lea edx, [ebp - 0x1018]
lea ecx, [ebp - 0x1078]
call fcn.100152a0
mov ecx, dword [ebp - 0x101c]
add esp, 4
test esi, esi
je 0x10016a2e
test ecx, ecx
jne 0x100169c0
mov eax, dword [ebp - 0x1050]
test eax, eax
je 0x10016a42
push eax
call dword [sym.imp.MSVCR110.dll_free]
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x10016a4f
xor bl, bl
cmp dword [ebp - 0x1020], 8
jb 0x10016a67
push dword [ebp - 0x1034]
call dword [sym.imp.MSVCR110.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.10020d6c
mov esp, ebp
pop ebp
ret
Function at 0x10016c10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10024a64
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x10034034]
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, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x430], eax
cmp byte [edi], bl
jne 0x10016c60
call fcn.10015b60
mov byte [edi], al
test al, al
je 0x10016c70
cmp byte [edi + 0x34], bl
jne 0x10016c6c
mov ecx, edi
call fcn.10016880
cmp byte [edi], bl
jne 0x10016c77
xor al, al
jmp 0x10016e52
mov dword [ebp - 0x428], 1
cmp dword [edi + 0x38], ebx
je 0x10016d4e
push 0x1b
push str.browser.download.folderList
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x43c], 0xf
mov dword [ebp - 0x440], ebx
mov byte [ebp - 0x450], bl
call fcn.10002d90
mov dword [ebp - 4], 0
mov esi, dword [edi + 0x38]
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x438]
mov ebx, 1
push eax
lea ecx, [esi + 8]
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x438], 0
call fcn.10019620
mov eax, dword [ebp - 0x438]
cmp eax, dword [esi + 8]
je 0x10016d4e
mov ecx, dword [eax + 0x28]
lea edx, [ebp - 0x428]
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 8]
call eax
test al, al
je 0x10016d4e
cmp dword [ebp - 0x428], 2
jne 0x10016d4e
push str.browser.download.dir
lea ecx, [ebp - 0x468]
call fcn.10002cf0
push dword [ebp - 0x430]
mov dword [ebp - 4], ebx
mov ecx, dword [edi + 0x38]
lea eax, [ebp - 0x468]
mov ebx, 3
push eax
mov dword [ebp - 0x434], ebx
call fcn.10018b70
mov byte [ebp - 0x429], 1
test al, al
jne 0x10016d55
mov byte [ebp - 0x429], 0
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
test bl, 2
je 0x10016d92
and ebx, 0xfffffffd
cmp dword [ebp - 0x454], 0x10
jb 0x10016d77
push dword [ebp - 0x468]
call esi
add esp, 4
mov dword [ebp - 0x454], 0xf
mov dword [ebp - 0x458], 0
mov byte [ebp - 0x468], 0
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x10016db2
cmp dword [ebp - 0x43c], 0x10
jb 0x10016db2
push dword [ebp - 0x450]
call esi
add esp, 4
cmp byte [ebp - 0x429], 0
jne 0x10016e50
xor eax, eax
cmp dword [ebp - 0x428], 1
push 0x206
push eax
jne 0x10016e0b
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x422]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x10016c70
lea eax, [ebp - 0x424]
jmp 0x10016e44
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x10016c70
lea eax, [ebp - 0x21c]
mov ecx, dword [ebp - 0x430]
push eax
call fcn.10001980
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 - 0x14]
xor ecx, ebp
call fcn.10020d6c
mov esp, ebp
pop ebp
ret 4
Function at 0x1001cb80
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1001cbb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 8], esi
call fcn.10022660
mov dword [esp + 0xc], eax
test esi, esi
jne 0x1001cbb9
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, 0x1002d39c
lea ecx, [esp + 8]
call fcn.1001ca20
int3

Function at 0x1001ce60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10025390
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10034034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_class_std::exception_const__]
mov dword [ebp - 4], 0
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x14]
push 0xffffffffffffffff
push 0
lea eax, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.10002ea0
mov dword [ebp - 4], 1
mov dword [esi + 0x2c], vtable.boost::exception.0
mov ecx, dword [edi + 0x30]
mov dword [esi + 0x30], ecx
test ecx, ecx
je 0x1001ceeb
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov dword [esi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4