joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1019a490
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 0x1019a623
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 0x1019a5a4
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x1024852c]
mov ecx, edi
call esi
mov ecx, dword [ebx + 0x28]
xor eax, eax
cmp dword [ecx + 8], 3
je 0x1019a5a4
nop
cmp dword [ecx + 8], 5
je 0x1019a5a4
inc eax
mov dword [ebp - 4], eax
cmp eax, 0x12c
jne 0x1019a547
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x1019a508
cmp byte [0x102eec26], 0
jne 0x1019a513
call fcn.1018f140
mov ecx, dword [0x102eec4c]
mov eax, dword [ebx + 0x28]
mov esi, dword [ecx]
push dword [eax + 4]
mov esi, dword [esi + 0x14]
push str.forcing_the_job___d__to_terminate.
push ecx
mov ecx, esi
call dword [0x1024852c]
call esi
mov edi, dword [ebx + 0x28]
add esp, 0xc
mov eax, dword [edi]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x1024852c]
mov ecx, edi
call esi
jmp 0x1019a54e
cmp eax, 0x3e8
je 0x1019a568
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebx + 0x28]
mov eax, dword [ebp - 4]
cmp dword [ecx + 8], 3
jne 0x1019a4e0
jmp 0x1019a5a4
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x1019a57b
cmp byte [0x102eec26], 0
jne 0x1019a586
call fcn.1018f140
mov ecx, dword [0x102eec4c]
mov eax, dword [ebx + 0x28]
mov esi, dword [ecx]
push dword [eax + 4]
mov esi, dword [esi + 0x14]
push str.job___d__is_still_not_terminated._Closing_the_thread_handle_now
push ecx
mov ecx, esi
call dword [0x1024852c]
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 0x1019a61c
push 0x61a8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
test edi, edi
je 0x1019a60c
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x1019a5da
cmp byte [0x102eec26], 0
jne 0x1019a5e5
call fcn.1018f140
mov ecx, dword [0x102eec4c]
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 [0x1024852c]
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 0x1019b3a0
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 0x1023fa90
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x102e91c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea ecx, [ebx + 0x228]
call fcn.10194a30
mov ecx, ebx
call fcn.1019acf0
lea ecx, [ebx + 0x48c]
call fcn.1019ac10
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.1019fe00
mov eax, dword [ebx + 0x508]
lea esi, [ebx + 0x508]
mov ecx, esi
push dword [eax + 4]
push esi
call fcn.10010e30
push 0x40
push dword [esi]
call fcn.101d02bd
add esp, 8
lea ecx, [ebx + 0x48c]
call fcn.1019ac10
lea eax, [ebx + 0x498]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [ebx + 0x374]
call fcn.10198960
mov eax, dword [ebx + 0x36c]
lea esi, [ebx + 0x36c]
mov ecx, esi
push dword [eax + 4]
push esi
call fcn.101a01a0
push 0x20
push dword [esi]
call fcn.101d02bd
add esp, 8
lea ecx, [ebx + 0x348]
call fcn.1000ae90
lea ecx, [ebx + 0x324]
call fcn.100279d0
lea ecx, [ebx + 0x31c]
call fcn.100279d0
lea ecx, [ebx + 0x2f8]
call fcn.1000ae90
lea ecx, [ebx + 0x2e4]
call fcn.10010270
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0x2dc]
test eax, eax
je 0x1019b50c
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
jne 0x1019b502
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x1019b4df
cmp byte [0x102eec26], al
jne 0x1019b4ea
call fcn.1018f140
mov ecx, dword [0x102eec4c]
mov eax, dword [ecx]
push str.failed_to_close_session
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 8
mov dword [ebx + 0x2dc], 0
lea edi, [ebx + 0x228]
mov dword [ebp - 4], 1
cmp dword [edi], 0
je 0x1019b525
mov ecx, edi
call fcn.10194a30
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [edi + 0x98]
call fcn.1000ae90
lea ecx, [edi + 0x90]
call fcn.100279d0
lea ecx, [edi + 0x88]
call fcn.100279d0
lea ecx, [edi + 0x64]
call fcn.1000ae90
lea ecx, [edi + 0x50]
call fcn.10010270
lea ecx, [edi + 0x30]
call fcn.1000ae90
mov eax, dword [ebx + 0x218]
lea esi, [ebx + 0x218]
mov ecx, esi
push dword [eax + 4]
push esi
call fcn.101a0470
push 0x20
push dword [esi]
call fcn.101d02bd
add esp, 8
lea ecx, [ebx + 0x60]
call fcn.101a0b00
mov ecx, ebx
call fcn.1019acf0
lea eax, [ebx + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [ebx + 0x30]
call fcn.1000fb30
lea eax, [ebx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, ebx
call fcn.1000fb30
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 0x101a4410
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1021e04d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x102e91c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebx + 0x568]
mov dword [ebp - 0x14], eax
add eax, 0x18
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp byte [ebx + 4], 0
jne 0x101a4467
mov esi, 0xffffffd8
jmp 0x101a45b2
cmp dword [ebx + 0x564], 4
je 0x101a44b5
cmp dword [ebx + 0x564], 0x20
je 0x101a44b5
cmp dword [ebx + 0x564], 8
je 0x101a44b5
call fcn.101ab7d0
cmp dword [eax], 0
je 0x101a44ab
call fcn.101ab7d0
push str.PDM_is_either_running_already_or_closed
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 8
mov esi, 0x1e
jmp 0x101a45b2
mov eax, dword [ebx + 0x2f8]
push ebx
mov esi, dword [eax]
mov ecx, esi
call dword [0x1024852c]
lea ecx, [ebx + 0x2f8]
call esi
test al, al
jne 0x101a44ef
call fcn.101ab7d0
cmp dword [eax], 0
je 0x101a459f
call fcn.101ab7d0
push str.Failed_to_generate_workflow
jmp 0x101a4585
mov ecx, ebx
call fcn.101a47e0
push 8
lea edi, [ebx + 0x318]
call fcn.101cff73
add esp, 4
mov esi, eax
xorps xmm0, xmm0
mov dword [ebp - 0x18], esi
push 0
push 0
push esi
push 0x10144400
push 0
movq qword [esi], xmm0
push 0
mov dword [esi], 0x101a4660
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x101a45a4
push 8
push esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.101d02bd
add esp, 8
call fcn.101ab7d0
cmp dword [eax], 0
je 0x101a4571
call fcn.101ab7d0
push str.Could_not_make_manager_thread
push str.PackageDownloadManager
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x24]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0xc
call fcn.101ab7d0
cmp dword [eax], 0
je 0x101a459f
call fcn.101ab7d0
push str.Failed_to_run_the_thread_for_the_workflow
mov eax, dword [eax]
push str.PackageDownloadManager
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x24]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0xc
or esi, 0xffffffff
jmp 0x101a45b2
mov dword [ebx + 0x310], eax
test edi, edi
je 0x101a45b0
mov dword [edi], eax
xor esi, esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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 0x101a98a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 8
mov edi, ecx
call fcn.101cff73
add esp, 4
mov esi, eax
xorps xmm0, xmm0
mov dword [ebp - 4], esi
push 0
push 0
push esi
push 0x10144400
push 0
movq qword [esi], xmm0
push 0
mov dword [esi], 0x101aa400
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x101a98f7
push 8
push esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.101d02bd
add esp, 8
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x29c], eax
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x101af510
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10241189
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x102e91c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x60
call fcn.101cff73
mov edi, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
mov dword [edi + 0xc], 0xffffffff
mov dword [edi], vtable.CryptoPP::MessageQueue.1.0
mov dword [edi + 4], vtable.CryptoPP::MessageQueue.0
push 0x18
mov dword [edi + 0x10], vtable.CryptoPP::ByteQueue.1.0
mov dword [edi + 0x14], vtable.CryptoPP::ByteQueue.0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov byte [edi + 0x1c], 0
mov dword [edi + 0x20], 0x100
call fcn.101cff73
mov esi, eax
add esp, 8
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
mov ecx, dword [edi + 0x20]
mov dword [esi + 8], ecx
test ecx, ecx
jne 0x101af5a7
xor eax, eax
jmp 0x101af5ac
call fcn.101b2640
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi], 0
mov dword [edi + 0x28], esi
mov dword [edi + 0x24], esi
mov byte [ebp - 4], 2
lea esi, [edi + 0x38]
xorps xmm0, xmm0
mov dword [esi], 0
lea eax, [ebp - 0xd]
movlpd qword [ebp - 0x28], xmm0
push 8
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [ebp - 0x1c], eax
call fcn.101cff73
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [eax], esi
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
mov ecx, esi
call fcn.101b48d0
mov byte [ebp - 4], 5
lea esi, [edi + 0x4c]
lea eax, [ebp - 0xe]
mov dword [esi], 0
push 8
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [ebp - 0x24], eax
call fcn.101cff73
add esp, 4
mov dword [ebp - 0x28], eax
mov dword [eax], esi
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 7
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
add eax, ecx
test al, 3
jne 0x101af697
lea eax, [ecx + 4]
shr eax, 2
cmp dword [esi + 8], eax
ja 0x101af697
push ecx
mov ecx, esi
call fcn.101b4960
mov ecx, dword [esi + 8]
mov ebx, dword [esi + 0x10]
lea eax, [ecx*4 - 1]
dec ecx
and dword [esi + 0xc], eax
add ebx, dword [esi + 0xc]
mov eax, ebx
shr eax, 2
and ecx, eax
mov eax, dword [esi + 4]
shl ecx, 2
mov dword [ebp - 0x14], ecx
cmp dword [ecx + eax], 0
jne 0x101af6d6
push 0x10
call fcn.101cff73
mov ecx, dword [esi + 4]
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [edx + ecx], eax
mov ecx, edx
mov eax, dword [esi + 4]
and ebx, 3
mov eax, dword [ecx + eax]
mov dword [eax + ebx*4], 0
mov eax, edi
inc dword [esi + 0x10]
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 0x101b2490
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov eax, edx
mov ebp, esi
mov dword [esp + 0xc], eax
shr ebp, 2
xor ebx, ebx
push edi
xor edi, edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x101b2548
mov edx, ecx
sub edx, eax
cmp ebp, 8
jb 0x101b2524
mov ebx, ebp
xorps xmm3, xmm3
and ebx, 0xfffffff8
xorps xmm2, xmm2
add eax, 0x10
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ecx + edi*4]
add edi, 8
pxor xmm1, xmm0
por xmm3, xmm1
movups xmm1, xmmword [eax + edx - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
por xmm2, xmm1
cmp edi, ebx
jb 0x101b24d1
mov eax, dword [esp + 0x10]
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd ebx, xmm2
cmp edi, ebp
jae 0x101b2548
lea ecx, [eax + edi*4]
sub ebp, edi
mov edi, dword [esp + 0x14]
nop dword [eax]
mov eax, dword [ecx + edx]
lea ecx, [ecx + 4]
xor eax, dword [ecx - 4]
or ebx, eax
sub ebp, 1
jne 0x101b2530
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
shl edi, 2
sub esi, edi
jne 0x101b255c
pop edi
pop esi
test ebx, ebx
pop ebp
sete al
pop ebx
add esp, 0xc
ret
add eax, edi
mov edx, ebx
mov dword [esp + 0x10], eax
add ecx, edi
shr edx, 0x18
mov eax, ebx
shr eax, 0x10
xor edi, edi
or dl, al
mov eax, ebx
shr eax, 8
or dl, al
or dl, bl
test esi, esi
je 0x101b2630
mov ebp, dword [esp + 0x10]
mov ebx, ecx
sub ebx, ebp
cmp esi, 0x20
jb 0x101b261b
mov eax, esi
xorps xmm3, xmm3
and eax, 0xffffffe0
xorps xmm2, xmm2
mov dword [esp + 0x18], eax
lea eax, [ebp + 0x10]
nop word [eax + eax]
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x20]
movups xmm1, xmmword [edi + ecx]
add edi, 0x20
pxor xmm1, xmm0
por xmm3, xmm1
movups xmm1, xmmword [eax + ebx - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
por xmm2, xmm1
cmp edi, dword [esp + 0x18]
jb 0x101b25b0
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd eax, xmm2
or dl, al
cmp edi, esi
jae 0x101b2630
lea ecx, [edi + ebp]
sub esi, edi
mov al, byte [ecx + ebx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
or dl, al
sub esi, 1
jne 0x101b2620
pop edi
pop esi
test dl, dl
pop ebp
sete al
pop ebx
add esp, 0xc
ret
Function at 0x101b5460
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1021b6ed
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x102e91c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xor eax, eax
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea esi, [edi + 0x18]
mov dword [ebp - 4], eax
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.101cff73
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
xor eax, eax
mov dword [edi + 0x20], 0
mov word [edi + 0x20], ax
mov eax, edi
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x101b5660
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x102e91c0]
xor eax, esp
mov dword [esp + 8], eax
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [ebx + 0x8c], 1
jne 0x101b5702
xor eax, eax
cmp dword [ebx + 0x60], 8
mov word [esp + 0xc], ax
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x4c]
jb 0x101b569b
mov eax, dword [eax]
push str.rb__ccsUTF_8
push eax
lea eax, [esp + 0x18]
push eax
call fcn.101eb336
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x101b5702
push eax
push 2
lea eax, [esp + 0x14]
push 1
push eax
call fcn.101ead90
push dword [esp + 0x20]
call fcn.101ea32d
mov ax, word [esp + 0x20]
add esp, 0x14
cmp al, 0xff
jne 0x101b56df
cmp ah, 0xfe
je 0x101b5702
cmp ah, 0xff
jne 0x101b56e8
cmp al, 0xfe
je 0x101b5702
mov eax, dword [edi]
test eax, eax
je 0x101b56fb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
mov ecx, ebx
call fcn.101b7710
lea esi, [ebx + 0x4c]
push 1
mov ecx, esi
call fcn.10177820
add esp, 4
test eax, eax
je 0x101b5731
cmp eax, 1
jne 0x101b5783
push ecx
mov dl, al
mov ecx, esi
call fcn.1014f950
add esp, 4
test al, al
je 0x101b5783
mov dword [edi], 0xffffffff
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x101b573b
mov eax, dword [esi]
push 0
push 0x200080
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x101b57da
cmp dword [esi + 0x14], 8
jb 0x101b5763
mov esi, dword [esi]
push 0
push 0x200080
push 1
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x101b5799
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.101cff65
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 0x8c], 1
push 0
jne 0x101b57bb
mov ecx, 0xfeff
mov word [esp + 0x10], cx
lea ecx, [esp + 0x14]
push ecx
push 2
lea ecx, [esp + 0x18]
jmp 0x101b57d2
lea ecx, [esp + 0x14]
mov word [esp + 0x10], 0xbbef
push ecx
mov byte [esp + 0x16], 0xbf
lea ecx, [esp + 0x14]
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101cff65
mov esp, ebp
pop ebp
ret 4
Function at 0x101b5c30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x102e91c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov esi, edi
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x101b5c50
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
sar esi, 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
add esi, esi
push esi
push edi
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 4
push 0x1028d5c8
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101cff65
mov esp, ebp
pop ebp
ret 4

Function at 0x101b5cc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x102e91c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov esi, edi
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x101b5ce0
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push esi
push edi
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 2
push 0x1028c8e8
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101cff65
mov esp, ebp
pop ebp
ret 4
Function at 0x101b7710
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102418e5
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x102e91c0]
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
lea esi, [edi + 0x4c]
push esi
lea ecx, [ebp - 0x28]
call fcn.1000fe90
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.101bca00
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.101bc860
mov ecx, dword [ebp - 0x30]
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 1
jb 0x101b78b5
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
push 1
push 0x102681cc
push ecx
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x74]
call fcn.10011120
mov byte [ebp - 4], 2
lea eax, [ebp - 0x74]
cmp dword [ebp - 0x60], 8
lea ecx, [ebp - 0x28]
push dword [ebp - 0x64]
cmovae eax, dword [ebp - 0x74]
push eax
call fcn.10010650
lea ecx, [ebp - 0x74]
call fcn.1000ae90
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.101bcc50
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x28]
call fcn.101bca80
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x101b787d
push 0
mov ecx, esi
call fcn.10177820
add esp, 4
test eax, eax
jne 0x101b787d
cmp dword [esi + 0x10], eax
je 0x101b787d
cmp dword [ebp - 0x18], eax
je 0x101b787d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [esi + 0x14], 8
jb 0x101b784d
mov esi, dword [esi]
push eax
push esi
call fcn.101ed9bb
add esp, 8
test eax, eax
jne 0x101b787d
lea ecx, [edi + 0xd4]
lea eax, [ebp - 0x28]
cmp ecx, eax
je 0x101b7879
cmp dword [ebp - 0x14], 8
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10010360
mov bl, 1
jmp 0x101b787f
xor bl, bl
lea ecx, [ebp - 0x58]
call fcn.1000ae90
lea ecx, [ebp - 0x40]
call fcn.1000ae90
lea ecx, [ebp - 0x28]
call fcn.1000ae90
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.101cff65
mov esp, ebp
pop ebp
ret
call fcn.1000a360
int3
Function at 0x101bcd00
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.101d0ca0
mov eax, dword [0x102e91c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, edx
mov edi, ecx
push 1
mov ecx, esi
call fcn.10177820
add esp, 4
test eax, eax
je 0x101bcd55
cmp eax, 1
jne 0x101bcd43
push ecx
mov dl, al
mov ecx, esi
call fcn.1014f950
add esp, 4
test al, al
jne 0x101bcd55
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101cff65
mov esp, ebp
pop ebp
ret
push ebx
xor ebx, ebx
cmp dword [edi + 0x14], 8
jb 0x101bcd60
mov edi, dword [edi]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [esi + 0x14], 8
mov edi, eax
jb 0x101bcd83
mov esi, dword [esi]
push 0
push 0x200080
push 4
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x101bcdc0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101cff65
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x2008]
push eax
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101bcdff
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 0x2008]
lea eax, [ebp - 0x2004]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x101bce07
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp dword [ebp - 0x2008], 0x1000
je 0x101bcdc0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
test ebx, ebx
pop ebx
sete al
xor ecx, ebp
pop edi
pop esi
call fcn.101cff65
mov esp, ebp
pop ebp
ret