joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a01f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp edx, eax
je 0x100a038c
cmp dword [edx + 0x1c], 7
mov eax, dword [ecx + 4]
push esi
mov dword [ebp - 0x18], eax
mov esi, edx
mov eax, dword [ecx + 0xc]
push edi
mov dword [ebp - 0x14], eax
lea edi, [edx + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x10]
jbe 0x100a022b
mov edi, dword [edi]
xor edx, edx
push ebx
mov ebx, 0x811c9dc5
add eax, eax
je 0x100a0254
mov ecx, eax
nop dword [eax]
movzx eax, byte [edx + edi]
inc edx
xor eax, ebx
imul ebx, eax, 0x1000193
cmp edx, ecx
jb 0x100a0240
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x18]
mov ecx, dword [ebp - 0x14]
and eax, ebx
lea eax, [ecx + eax*8]
mov ecx, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
nop dword [eax]
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
lea ecx, [edi + 8]
call fcn.10089a70
push 0x24
push edi
call fcn.100b9c1b
mov eax, dword [ebp - 4]
add esp, 8
dec dword [eax + 8]
cmp ebx, dword [ebp - 0x1c]
je 0x100a02b9
mov eax, dword [ebp + 0xc]
cmp esi, eax
jne 0x100a0270
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 8]
jne 0x100a02a8
mov edx, dword [ebp - 0xc]
mov dword [edx], esi
mov ecx, dword [ebp - 8]
pop ebx
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 8]
jne 0x100a02cb
mov ecx, dword [ebp - 0x18]
mov dword [edx], ecx
jmp 0x100a02ce
mov ecx, dword [ebp - 8]
mov dword [edx + 4], ecx
mov ecx, dword [ebp + 0xc]
cmp esi, ecx
je 0x100a037f
nop dword [eax]
cmp dword [esi + 0x1c], 7
lea edx, [esi + 8]
mov ebx, dword [edx + 0x10]
jbe 0x100a02ee
mov edx, dword [edx]
xor ecx, ecx
mov edi, 0x811c9dc5
add ebx, ebx
je 0x100a0314
nop dword [eax]
movzx eax, byte [ecx + edx]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, ebx
jb 0x100a0300
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
mov ecx, dword [ebp - 0x14]
and eax, edi
lea eax, [ecx + eax*8]
mov dword [ebp + 8], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
lea ecx, [edi + 8]
call fcn.10089a70
push 0x24
push edi
call fcn.100b9c1b
mov eax, dword [ebp - 4]
add esp, 8
dec dword [eax + 8]
cmp ebx, dword [ebp - 0x1c]
je 0x100a0369
mov eax, dword [ebp + 0xc]
cmp esi, eax
jne 0x100a0328
mov ecx, dword [ebp + 8]
pop ebx
pop edi
mov dword [ecx], esi
mov ecx, dword [ebp - 8]
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 0x18]
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov ecx, dword [ebp + 0xc]
cmp esi, ecx
jne 0x100a02e0
mov eax, dword [ebp - 8]
pop ebx
pop edi
mov dword [eax], esi
mov dword [esi + 4], eax
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x100a2540
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1022c00d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x102db080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test esi, esi
je 0x100a261b
mov ax, word [0x102369c0]
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x28], ax
mov al, byte [0x102369c2]
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x26], al
mov byte [ebp - 0x25], 0
push 6
push str._x32_
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.10088f70
mov ecx, esi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100a25c0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.10088f70
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x100a261b
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100a2611
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100a2611
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100b9c1b
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100b9f43
mov esp, ebp
pop ebp
ret
Function at 0x100a4830
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1022c55d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x102db080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x14
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.100b9beb
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
push 0x1009df90
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp - 0x18], 0
jbe 0x100a490e
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp + 8]
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
jne 0x100a490e
mov eax, dword [esi + 0x10]
test eax, eax
je 0x100a48ca
push edi
push eax
call fcn.1009c320
add esp, 8
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x100a48f4
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x100a48f0
nop dword [eax]
cmp esi, dword [eax + 8]
jne 0x100a48f0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x100a48e0
mov esi, eax
jmp 0x100a48b3
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x100a48b3
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x100a4900
jmp 0x100a48b3
lea ecx, [ebp - 0x1c]
mov esi, 1
call fcn.100993a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100ae180
Capabilities:
Move file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
push edi
cmp dword [esi + 0x14], 8
jb 0x100ae190
mov eax, dword [esi]
mov edi, dword [esp + 0xc]
mov ecx, edi
cmp dword [edi + 0x14], 8
jb 0x100ae19e
mov ecx, dword [edi]
push 3
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x100ae1cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x100ae1cd
push str.boost::filesystem::rename
push dword [esp + 0x18]
push esi
push edi
push eax
call fcn.100afb30
add esp, 0x14
pop edi
pop esi
ret
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100ae1e3
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
pop edi
pop esi
ret
Function at 0x100ae4d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1022d5cd
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x102db080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov edx, edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x30], eax
jb 0x100ae513
mov edx, dword [edi]
mov ecx, edx
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100ae530
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.100895c0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x2200000
push 3
push 0
push 7
push 0x88
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x38], esi
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0
cmp ecx, 8
jb 0x100ae5b5
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100ae5ab
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100ae5ab
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100b9c1b
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp esi, 0xffffffff
jne 0x100ae639
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
cmp eax, 5
jne 0x100ae626
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x100ae5e6
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100ae61b
test esi, 0x400
jne 0x100ae623
push esi
push edi
call fcn.100add50
mov ecx, dword [ebp - 0x2c]
and esi, 0x10
or esi, 0x20
add esp, 8
shr esi, 4
mov dword [ecx + 4], eax
mov eax, ecx
mov dword [ecx], esi
jmp 0x100ae653
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100ae626
mov eax, dword [ebp - 0x34]
push dword [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x2c]
push eax
push edi
call fcn.100ae090
add esp, 0x10
jmp 0x100ae651
push dword [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x2c]
push esi
push edi
call fcn.100ae220
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100b9f43
mov esp, ebp
pop ebp
ret
Function at 0x100b0890
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1022d99a
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x102db080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push 0x44
mov dword [ebp - 4], 0
mov dword [ebx], vtable.boost::archive::detail::basic_iarchive.0
call fcn.100b9beb
mov edi, eax
mov dword [ebp - 0x14], edi
push edi
mov byte [ebp - 4], 1
call fcn.100b56d0
mov ecx, dword [ebp + 8]
mov dword [edi + 4], ecx
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
lea esi, [edi + 0x24]
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov byte [edi + 0x20], 0
push 0x18
mov byte [ebp - 4], 2
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.100b9beb
add esp, 0xc
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, ebx
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [ebx + 0x10], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x100b5a0a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x100b5a31
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x100b5a34
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.100b59e6
pop esi
leave
ret 8
Function at 0x100b7fc0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1022e640
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x102db080]
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 - 0x10], esp
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp + 0xc]
xor esi, esi
push ecx
push eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x100b809e
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
cmp edi, 0x7fffffff
ja 0x100b80bc
push edi
lea ecx, [ebp - 0x24]
lfence
call fcn.1007a180
mov eax, dword [ebp - 0x24]
push edi
push esi
push eax
mov dword [ebp - 0x30], eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x30]
add esp, 0xc
push ecx
push edi
lea eax, [ecx + edi]
mov dword [ebp - 0x20], eax
push esi
lfence
push dword [ebp - 0x18]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x100b808b
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x102385c8
push dword [ebp - 0x30]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100b808b
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax + 0x10]
test ebx, ebx
je 0x100b808b
mov eax, dword [eax + 0x14]
mov dword [ebx], eax
lea ecx, [ebp - 0x24]
call fcn.10081f10
jmp 0x100b809e
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.100b9f43
mov esp, ebp
pop ebp
ret
call fcn.1004fc40
int3
Function at 0x100bbb50
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 0xf0000040
push 1
push 0
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x100bbc49
mov dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x100bbc3d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
add esp, 4
shl eax, 1
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 4]
mov dword [ebp - 0x1c], edx
push 0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x100bbc33
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 2
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x100bbc33
cmp dword [ebp - 8], 0
je 0x100bbc33
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.100bc650
push 0
mov ecx, dword [ebp + 0xc]
call fcn.1004e3e0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push 2
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x10], 0
jne 0x100bbc5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x100bdac0
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1022ed4e
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x102db080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
push 4
mov ecx, dword [ebp + 8]
call fcn.1004c4a0
mov ecx, dword [ebp + 8]
call fcn.10088b90
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
or eax, 1
mov dword [ebp - 0x1c], eax
push 0x104
push 0x104
mov ecx, dword [ebp + 8]
call fcn.10087e40
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
call fcn.1007a930
push 0
push 0x10239b60
mov ecx, dword [ebp + 8]
call fcn.100c4780
test eax, eax
jl 0x100bdb97
lfence
push 4
lea ecx, [ebp - 0x18]
call fcn.1004c4a0
lea edx, [ebp - 0x18]
push edx
call fcn.1008b260
add esp, 4
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.1004f770
push eax
push str._COMMON_APPDATA_
mov ecx, dword [ebp + 8]
call fcn.100c4800
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.10088c70
push 0
push 0x10239ba8
mov ecx, dword [ebp + 8]
call fcn.100c4780
test eax, eax
jl 0x100bdc11
lfence
push 4
lea ecx, [ebp - 0x14]
call fcn.1004c4a0
lea ecx, [ebp - 0x14]
call fcn.10088b90
mov dword [ebp - 4], 2
push 0x104
lea ecx, [ebp - 0x14]
call fcn.10087e40
push eax
push 0
push 0
push 0x802e
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.1007a930
lea ecx, [ebp - 0x14]
call fcn.1004f770
push eax
push str._COMMON_DOCUMENTS_
mov ecx, dword [ebp + 8]
call fcn.100c4800
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.10088c70
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100b9f43
mov esp, ebp
pop ebp
ret
Function at 0x100c4ae0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x102db080]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x38], 0
je 0x100c4b07
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x100c4b0e
mov al, 1
jmp 0x100c4bfe
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x44], edx
call fcn.1007a0e0
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x30]
call dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
call fcn.1007a0e0
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.10084070
add esp, 8
movzx eax, al
test eax, eax
je 0x100c4b54
xor al, al
jmp 0x100c4bfe
mov dword [ebp - 0x54], 0x20
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x50], edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x30]
add eax, 0x40
push eax
mov ecx, dword [ebp - 0x50]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x100c4b97
cmp dword [ebp - 0x34], 1
je 0x100c4b9e
cmp dword [ebp - 0x34], 3
je 0x100c4bf1
jmp 0x100c4bfc
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 0x3d], 0
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x100c4bd1
lfence
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp - 0x38]
push eax
push 1
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x100c4bd1
xor al, al
jmp 0x100c4bfe
mov edx, dword [ebp - 0x30]
movzx eax, byte [edx + 0x3d]
test eax, eax
jne 0x100c4be5
mov dword [ebp - 0x3c], 1
jmp 0x100c4bec
mov dword [ebp - 0x3c], 0
mov al, byte [ebp - 0x3c]
jmp 0x100c4bfe
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 0x3d], 0
mov al, 1
jmp 0x100c4bfe
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b9f43
mov esp, ebp
pop ebp
ret
Function at 0x100c8c90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x100c8cbc
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
jmp 0x100c8da8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x100c8d56
jg 0x100c8ce5
cmp dword [ebp + 0xc], 0
jbe 0x100c8d56
cmp dword [ebp - 8], 0
jl 0x100c8d56
jg 0x100c8cf3
cmp dword [ebp - 0xc], 0
jbe 0x100c8d56
lfence
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 8]
jg 0x100c8d14
jl 0x100c8d08
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0xc]
jae 0x100c8d14
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
push eax
call fcn.10089290
add esp, 0xc
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
sbb edx, dword [ebp - 8]
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int_]
cmp dword [ebp + 0x10], 0
jl 0x100c8d9c
jg 0x100c8d64
cmp dword [ebp + 0xc], 0
jbe 0x100c8d9c
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x4c], 0
je 0x100c8d9c
lfence
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100cbb20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1022fcf1
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x12c
mov eax, dword [0x102db080]
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 - 0x10], esp
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 0xb0], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x100cbbd1
mov dword [ebp - 0xb0], 0x57
push str.lpBuffer__NULL
lea ecx, [ebp - 0x10c]
call fcn.10089330
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xb8]
push ecx
lea ecx, [ebp - 0xe8]
call fcn.100b6330
push 0x102ca5a8
lea edx, [ebp - 0xe8]
push edx
call sub.VCRUNTIME140.dll__CxxThrowException
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10c]
call fcn.100895a0
cmp dword [ebp + 0x10], 0
jne 0x100cbc39
mov dword [ebp - 0xb0], 0x57
push str.lpNumberOfBytesWritten__NULL
lea ecx, [ebp - 0x124]
call fcn.10089330
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xc0], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xc0]
push ecx
lea ecx, [ebp - 0xf4]
call fcn.100b6330
push 0x102ca5a8
lea edx, [ebp - 0xf4]
push edx
call sub.VCRUNTIME140.dll__CxxThrowException
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.100895a0
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100cbc67
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xb0], eax
jmp 0x100cbd69
mov dword [ebp - 4], 0xffffffff
jmp 0x100cbd79
mov eax, dword [ebp - 0xb0]
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.100b9f43
mov esp, ebp
pop ebp
ret 0xc