joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ed910
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0xc], ecx
cmp byte [edi + 0x20], 0
je 0x100ed9cc
cmp byte [edi + 0x28], 0
je 0x100ed9cc
mov esi, dword [ebp + 0x18]
cmp esi, dword [ebp + 0x14]
mov dword [ebx], 0
cmova esi, dword [ebp + 0x14]
test esi, esi
jne 0x100ed95a
lea eax, [esi + 2]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push esi
push 0
push dword [ecx]
call fcn.10160450
mov eax, dword [esp + 0x18]
add esp, 0xc
push ebx
push esi
push dword [eax]
push dword [edi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x100ed9ba
call fcn.100e0f20
push str.Error__u_in_WinHttpReadData._n
push 0x101ace0c
push eax
mov edx, dword [eax]
mov esi, dword [edx + 0x24]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.100ebbe0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebx]
neg eax
sbb eax, eax
add eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [0x101fc26c]
test ecx, ecx
je 0x100ed9df
cmp byte [0x101fc262], 0
jne 0x100ed9ea
call fcn.100e0c40
mov ecx, dword [0x101fc26c]
mov eax, dword [ecx]
push str.downloader_is_not_initialized
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1019a4f8]
call esi
sub esp, 0x10
xor eax, eax
mov ecx, esp
push eax
push 0x101ace0c
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
call fcn.10001d60
push 0
push 0x13
mov ecx, edi
call fcn.100eba40
pop edi
pop esi
mov eax, 3
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x100ee940
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10193100
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x101f62b4]
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
mov dword [ebp - 0x20], ebx
cmp byte [ebx + 0x28], 0
je 0x100eeaf5
lea eax, [ebx + 0x10]
push eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebx + 0x2c]
add ebx, 0x2c
mov dword [ebp - 0x1c], ebx
mov edi, dword [esi]
mov dword [ebp - 0x14], edi
cmp edi, esi
je 0x100ee9ca
nop dword [eax]
mov edi, dword [edi + 0x14]
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1019a4f8]
mov ecx, edi
call esi
lea ecx, [ebp - 0x14]
call fcn.1002d5d0
mov esi, dword [ebx]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x28], esi
cmp edi, esi
jne 0x100ee9a0
mov edi, dword [esi]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x14], edi
cmp edi, esi
je 0x100eeaa5
mov ecx, dword [edi + 0x14]
call fcn.100f0e10
mov esi, dword [edi + 0x14]
test esi, esi
je 0x100eea86
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x24]
mov dword [esi], vtable.WorkerThread.0
test eax, eax
je 0x100eea6a
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x100eea5a
mov ecx, dword [0x101fc26c]
test ecx, ecx
je 0x100eea22
cmp byte [0x101fc262], 0
jne 0x100eea30
call fcn.100e0c40
mov ecx, dword [0x101fc26c]
mov eax, dword [ebp - 0x18]
mov ebx, dword [ecx]
push eax
push dword [esi + 0x38]
mov ebx, dword [ebx + 0x14]
push str.Forcing_the_thread___d__to_terminate_forcibly._Thread_seem_to_get_hanged._Error____d
push ecx
mov ecx, ebx
call dword [0x1019a4f8]
call ebx
add esp, 0x10
push 0
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, dword [ebp - 0x1c]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], 0
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push 0x3c
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.1015cbd5
add esp, 8
lea ecx, [ebp - 0x14]
mov dword [edi + 0x14], 0
call fcn.1002d5d0
mov esi, dword [ebx]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x18], esi
cmp edi, esi
jne 0x100ee9d8
mov edi, dword [esi + 4]
cmp byte [edi + 0xd], 0
jne 0x100eead0
nop
push dword [edi + 8]
mov ecx, ebx
push ebx
call fcn.100eed70
mov eax, edi
mov edi, dword [edi]
push 0x1c
push eax
call fcn.1015cbd5
add esp, 8
cmp byte [edi + 0xd], 0
je 0x100eeab0
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x24]
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [ebx + 4], 0
mov dword [eax], 0
mov byte [eax + 0x28], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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.1015c875
mov esp, ebp
pop ebp
ret
Function at 0x100f0ac0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x101f62b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
cmp byte [edi + 4], 0
jne 0x100f0b27
mov ecx, dword [0x101fc26c]
test ecx, ecx
je 0x100f0aed
cmp byte [0x101fc262], 0
jne 0x100f0af8
call fcn.100e0c40
mov ecx, dword [0x101fc26c]
push str.Thread_is_not_initialized__so_it_cannot_run
mov eax, dword [ecx]
push 0x101ace0c
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0xc
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015c875
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x24], 0
mov dword [edi + 0x34], 1
je 0x100f0b72
mov eax, dword [0x101fc26c]
test eax, eax
je 0x100f0b46
cmp byte [0x101fc262], 0
jne 0x100f0b50
call fcn.100e0c40
mov eax, dword [0x101fc26c]
mov esi, dword [eax]
push dword [edi + 0x38]
push str.thread___d__is_already_running._Closing_it_first
mov esi, dword [esi + 4]
mov ecx, esi
push eax
call dword [0x1019a4f8]
call esi
add esp, 0xc
mov ecx, edi
call fcn.100f0e10
lea eax, [ebp - 8]
push eax
push 4
push edi
push 0x100f08b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x24], eax
test eax, eax
jne 0x100f0bb6
mov ecx, dword [0x101fc26c]
test ecx, ecx
je 0x100f0ba1
cmp byte [0x101fc262], al
jne 0x100f0bac
call fcn.100e0c40
mov ecx, dword [0x101fc26c]
push str.failed_to_create_a_new_thread._Fatal_Error
jmp 0x100f0afd
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x100f0c1f
mov ecx, dword [0x101fc26c]
test ecx, ecx
je 0x100f0bd5
cmp byte [0x101fc262], 0
jne 0x100f0be0
call fcn.100e0c40
mov ecx, dword [0x101fc26c]
mov eax, dword [ecx]
push str.thread_failed_to_resumed._fatal_error
push 0x101ace0c
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0xc
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x24], 0
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015c875
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [edi + 0x38], eax
xor ecx, ebp
pop edi
mov al, 1
pop esi
call fcn.1015c875
mov esp, ebp
pop ebp
ret
Function at 0x100f0e10
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
cmp byte [ebx + 4], 0
je 0x100f0fa6
lea eax, [ebx + 0xc]
mov dword [ebx + 0x34], 2
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebx + 0x28]
test edi, edi
je 0x100f0f27
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x1019a4f8]
mov ecx, edi
call esi
mov eax, dword [ebx + 0x28]
xor ecx, ecx
cmp dword [eax + 8], 3
je 0x100f0f27
mov edx, eax
cmp dword [eax + 8], 5
je 0x100f0f27
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, 0x12c
jne 0x100f0ec9
mov ecx, dword [0x101fc26c]
test ecx, ecx
je 0x100f0e8a
cmp byte [0x101fc262], 0
jne 0x100f0e98
call fcn.100e0c40
mov eax, dword [ebx + 0x28]
mov ecx, dword [0x101fc26c]
mov esi, dword [ecx]
push dword [eax + 4]
push str.forcing_the_job___d__to_terminate.
mov esi, dword [esi + 0x14]
push ecx
mov ecx, esi
call dword [0x1019a4f8]
call esi
mov edi, dword [ebx + 0x28]
add esp, 0xc
mov eax, dword [edi]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x1019a4f8]
mov ecx, edi
call esi
jmp 0x100f0ed1
cmp ecx, 0x3e8
je 0x100f0eed
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 0x28]
mov edx, eax
mov ecx, dword [ebp - 4]
cmp dword [eax + 8], 3
jne 0x100f0e61
jmp 0x100f0f27
mov eax, dword [0x101fc26c]
test eax, eax
je 0x100f0eff
cmp byte [0x101fc262], 0
jne 0x100f0f0c
call fcn.100e0c40
mov edx, dword [ebx + 0x28]
mov eax, dword [0x101fc26c]
mov esi, dword [eax]
push dword [edx + 4]
push str.job___d__is_still_not_terminated._Closing_the_thread_handle_now
mov esi, dword [esi + 0x14]
mov ecx, esi
push eax
call dword [0x1019a4f8]
call esi
add esp, 0xc
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x100f0f9f
push 0x61a8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
test edi, edi
je 0x100f0f8f
mov ecx, dword [0x101fc26c]
test ecx, ecx
je 0x100f0f5d
cmp byte [0x101fc262], 0
jne 0x100f0f68
call fcn.100e0c40
mov ecx, dword [0x101fc26c]
mov esi, dword [ecx]
push edi
push dword [ebx + 0x38]
mov esi, dword [esi + 0x14]
push str.Forcing_the_thread___d__to_terminate_forcibly._Thread_seem_to_get_hanged._Error____d
push ecx
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0x10
push 0
push dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x34], 3
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100f21f0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10193400
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x101f62b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea ecx, [ebx + 0x228]
call fcn.100eab00
mov ecx, ebx
call fcn.100f16f0
lea ecx, [ebx + 0x48c]
call fcn.100f14f0
lea eax, [ebx + 0x4b4]
mov byte [ebx + 0x2d8], 0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea eax, [ebx + 0x4d0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [ebx + 0x510]
call fcn.100f6fc0
mov eax, dword [ebx + 0x508]
lea esi, [ebx + 0x508]
mov ecx, esi
push dword [eax + 4]
push esi
call fcn.10019590
push 0x40
push dword [esi]
call fcn.1015cbd5
add esp, 8
lea ecx, [ebx + 0x48c]
mov dword [ebp - 4], 0
call fcn.100f14f0
lea eax, [ebx + 0x498]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [ebx + 0x374]
call fcn.100eee10
mov eax, dword [ebx + 0x36c]
lea esi, [ebx + 0x36c]
mov ecx, esi
push dword [eax + 4]
push esi
call fcn.100f8210
push 0x20
push dword [esi]
call fcn.1015cbd5
add esp, 8
lea ecx, [ebx + 0x348]
call fcn.10001d00
lea ecx, [ebx + 0x324]
call fcn.100f0650
lea ecx, [ebx + 0x31c]
call fcn.100f0650
lea ecx, [ebx + 0x2f8]
call fcn.10001d00
lea ecx, [ebx + 0x2e4]
call fcn.100182e0
mov dword [ebp - 4], 1
mov eax, dword [ebx + 0x2dc]
test eax, eax
je 0x100f2363
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
jne 0x100f2359
mov ecx, dword [0x101fc26c]
test ecx, ecx
je 0x100f2336
cmp byte [0x101fc262], al
jne 0x100f2341
call fcn.100e0c40
mov ecx, dword [0x101fc26c]
mov eax, dword [ecx]
push str.failed_to_close_session
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 8
mov dword [ebx + 0x2dc], 0
lea edi, [ebx + 0x228]
mov dword [ebp - 4], 2
cmp dword [edi], 0
je 0x100f237c
mov ecx, edi
call fcn.100eab00
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [edi + 0x98]
call fcn.10001d00
lea ecx, [edi + 0x90]
call fcn.100f0650
lea ecx, [edi + 0x88]
call fcn.100f0650
lea ecx, [edi + 0x64]
call fcn.10001d00
lea ecx, [edi + 0x50]
call fcn.100182e0
lea ecx, [edi + 0x30]
call fcn.10001d00
mov eax, dword [ebx + 0x218]
lea esi, [ebx + 0x218]
mov ecx, esi
push dword [eax + 4]
push esi
call fcn.100f84f0
push 0x20
push dword [esi]
call fcn.1015cbd5
add esp, 8
lea ecx, [ebx + 0x60]
call fcn.100f8bb0
mov ecx, ebx
mov dword [ebp - 4], 3
call fcn.100f16f0
lea eax, [ebx + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [ebx + 0x30]
call fcn.100f19d0
lea eax, [ebx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, ebx
call fcn.100f19d0
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 0x100f6250
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x100f6344
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x100f6333
jg 0x100f6290
test edx, edx
je 0x100f6333
nop dword [eax]
call fcn.100e4eb0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x100f62e4
jg 0x100f62a7
test esi, esi
je 0x100f62e4
cmp ebx, eax
jg 0x100f62b7
jl 0x100f62b1
cmp edi, esi
jae 0x100f62b7
mov esi, edi
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x20]
push dword [eax]
call fcn.1015f8f0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x100f6317
mov eax, dword [esp + 0x10]
movzx ecx, byte [eax]
mov eax, dword [esp + 0xc]
push ecx
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1019a4f8]
mov ecx, dword [esp + 0x10]
call esi
cmp eax, 0xffffffff
je 0x100f632d
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x100f6290
jl 0x100f632d
test edi, edi
jne 0x100f6290
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x100f6366
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x100f6368
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x100f63e6
jg 0x100f637b
test esi, esi
je 0x100f63e6
test eax, eax
jl 0x100f63c0
jg 0x100f6385
test ebx, ebx
je 0x100f63c0
cmp edi, eax
jg 0x100f6395
jl 0x100f638f
cmp esi, ebx
jae 0x100f6395
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.1015f8f0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov eax, dword [ecx + 0x30]
sbb edi, dword [esp + 0x14]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
jmp 0x100f63c3
mov edx, dword [ebp + 8]
test edi, edi
jl 0x100f63e6
jg 0x100f63cd
test esi, esi
je 0x100f63e6
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x100f63e6
push eax
push esi
push 1
push edx
call fcn.101740f7
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100f6970
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x101f62b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x100f69a0
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015c875
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x100f69dc
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [esi + ecx]
cmp ecx, eax
jae 0x100f69dc
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015c875
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x4c], 0
je 0x100f6ad3
mov esi, dword [edi + 0xc]
lea eax, [edi + 0x3c]
cmp dword [esi], eax
jne 0x100f6a04
mov edx, dword [edi + 0x54]
mov ecx, dword [edi + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [edi + 0x1c]
mov dword [eax], ecx
mov eax, dword [edi + 0x2c]
mov dword [eax], edx
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x100f6a3a
push dword [edi + 0x4c]
movsx eax, bl
push eax
call fcn.10173937
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop esi
pop edi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015c875
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x25], bl
mov esi, dword [eax]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
mov esi, dword [esi + 0x1c]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x1019a4f8]
mov ecx, dword [ebp - 0x34]
call esi
test eax, eax
js 0x100f6ad3
cmp eax, 1
jle 0x100f6aa6
cmp eax, 3
jne 0x100f6ad3
push dword [edi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.10173937
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop esi
pop edi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015c875
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x100f6ac3
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.101740f7
add esp, 0x10
cmp esi, eax
jne 0x100f6ad3
lea eax, [ebp - 0x25]
mov byte [edi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x100f69c7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.1015c875
mov esp, ebp
pop ebp
ret 4
Function at 0x100f75e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x101f62b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x100f76b8
cmp byte [ebx + 0x3d], 0
je 0x100f76b8
mov eax, dword [ebx]
push esi
push 0xffffffffffffffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1019a4f8]
mov ecx, ebx
call esi
cmp eax, 0xffffffff
je 0x100f76a6
push edi
mov edi, dword [ebx + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov esi, dword [edi]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebx + 0x40]
push eax
mov esi, dword [esi + 0x20]
mov ecx, esi
call dword [0x1019a4f8]
mov ecx, edi
call esi
pop edi
sub eax, 0
je 0x100f766e
sub eax, 1
je 0x100f7672
sub eax, 2
jne 0x100f76a6
mov byte [ebx + 0x3d], al
mov al, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015c875
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0x3d], 0
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x100f768f
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.101740f7
add esp, 0x10
cmp esi, eax
jne 0x100f76a6
cmp byte [ebx + 0x3d], 0
pop esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015c875
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015c875
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop ebx
call fcn.1015c875
mov esp, ebp
pop ebp
ret

Function at 0x100f7ac0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101928e0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x101f62b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1015c88b
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1015ad74
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
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 0x100fc360
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x101f62b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push 0
push 0
mov edi, ecx
mov esi, edx
push edi
push 0
xor bl, bl
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
lea eax, [ebp - 0x20c]
push eax
js 0x100fc3ee
push dword [ebp - 0x210]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x100fc3e0
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100fc3c0
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10001d60
mov bl, 1
push dword [ebp - 0x210]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x100fc430
push 1
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x100fc430
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100fc410
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10001d60
mov bl, 1
mov eax, dword [esi + 0x10]
test eax, eax
je 0x100fc480
mov edx, dword [esi + 0x14]
mov ecx, esi
cmp edx, 8
jb 0x100fc443
mov ecx, dword [esi]
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x100fc480
lea ecx, [eax - 1]
cmp ecx, eax
ja 0x100fc475
mov dword [esi + 0x10], ecx
cmp edx, 8
jb 0x100fc45c
mov esi, dword [esi]
xor eax, eax
pop edi
mov word [esi + ecx*2], ax
mov al, bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015c875
mov esp, ebp
pop ebp
ret
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.10101090
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1015c875
mov esp, ebp
pop ebp
ret

Function at 0x100fc930
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
push 0
push 0
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
test edi, edi
je 0x100fc97c
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10169c26
mov esi, eax
add esp, 4
test esi, esi
je 0x100fc97c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x100fc982
push esi
call fcn.1016851e
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
ret
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100fc987
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, ebx
call fcn.10001d60
push esi
call fcn.1016851e
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
ret