joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1011e470
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x101f62b4]
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 0x1011e490
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 0x101d24a8
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.1015c875
mov esp, ebp
pop ebp
ret 4

Function at 0x1011e500
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x101f62b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ebx
push edi
mov edi, ecx
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x1011e520
push 2
push 0
push 0
push dword [edi + 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 ebx
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 2
push 0x101dd8bc
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1015c875
mov esp, ebp
pop ebp
ret 4
Function at 0x10126ac0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.1015dfc0
mov eax, dword [0x101f62b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, edx
mov edi, ecx
push ecx
mov ecx, esi
call fcn.1010a400
add esp, 4
test eax, eax
je 0x10126b15
cmp eax, 2
je 0x10126b03
push 0
mov dl, 1
mov ecx, esi
call fcn.100ffab0
add esp, 4
test al, al
jne 0x10126b15
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015c875
mov esp, ebp
pop ebp
ret
push ebx
xor ebx, ebx
cmp dword [edi + 0x14], 8
jb 0x10126b20
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 0x10126b43
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 0x10126b80
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.1015c875
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 0x10126bbf
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 0x10126bc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp dword [ebp - 0x2008], 0x1000
je 0x10126b80
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.1015c875
mov esp, ebp
pop ebp
ret
Function at 0x1012cd30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10196538
mov eax, dword fs:[0]
push eax
sub esp, 0xc
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 eax, [ebx + 0x568]
mov dword [ebp - 0x14], eax
lea eax, [ebx + 0x580]
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 0x1012cd8a
mov esi, 0xffffffd8
jmp 0x1012ced5
cmp dword [ebx + 0x564], 4
je 0x1012cdd8
cmp dword [ebx + 0x564], 0x20
je 0x1012cdd8
cmp dword [ebx + 0x564], 8
je 0x1012cdd8
call fcn.1012cb80
cmp dword [eax], 0
je 0x1012cdce
call fcn.1012cb80
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 [0x1019a4f8]
call esi
add esp, 8
mov esi, 0x1e
jmp 0x1012ced5
mov eax, dword [ebx + 0x2f8]
push ebx
mov esi, dword [eax]
mov ecx, esi
call dword [0x1019a4f8]
lea ecx, [ebx + 0x2f8]
call esi
test al, al
jne 0x1012ce12
call fcn.1012cb80
cmp dword [eax], 0
je 0x1012cec2
call fcn.1012cb80
push str.Failed_to_generate_workflow
jmp 0x1012cea8
mov ecx, ebx
call fcn.1012d0e0
push 8
lea edi, [ebx + 0x318]
call fcn.1015c88b
add esp, 4
mov esi, eax
xorps xmm0, xmm0
mov dword [ebp - 0x18], esi
push 0
push 0
push esi
push 0x10155550
push 0
movq qword [esi], xmm0
push 0
mov dword [esi], 0x1012cf40
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x1012cec7
push 8
push esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.1015cbd5
add esp, 8
call fcn.1012cb80
cmp dword [eax], 0
je 0x1012ce94
call fcn.1012cb80
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 [0x1019a4f8]
call esi
add esp, 0xc
call fcn.1012cb80
cmp dword [eax], 0
je 0x1012cec2
call fcn.1012cb80
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 [0x1019a4f8]
call esi
add esp, 0xc
or esi, 0xffffffff
jmp 0x1012ced5
mov dword [ebx + 0x310], eax
test edi, edi
je 0x1012ced3
mov dword [edi], eax
xor esi, esi
push dword [ebp - 0x10]
mov dword [ebp - 4], 5
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 0x101329c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 8
mov edi, ecx
call fcn.1015c88b
add esp, 4
mov esi, eax
xorps xmm0, xmm0
mov dword [ebp - 4], esi
push 0
push 0
push esi
push 0x10155550
push 0
movq qword [esi], xmm0
push 0
mov dword [esi], 0x101335c0
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x10132a17
push 8
push esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.1015cbd5
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 0x1013aa80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10197748
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
mov eax, dword [ebx]
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x1019a4f8]
mov ecx, ebx
call esi
mov esi, eax
mov dword [ebp - 0x10], esi
push dword [ebp + 0x14]
mov dword [ebp - 4], 0
mov edi, dword [ebx]
push dword [ebp + 0x10]
push esi
mov edi, dword [edi + 0x28]
mov ecx, edi
call dword [0x1019a4f8]
mov ecx, ebx
call edi
mov eax, dword [esi]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x1019a4f8]
mov ecx, esi
call edi
mov eax, dword [ebx]
push esi
mov edi, dword [eax + 0x30]
mov ecx, edi
call dword [0x1019a4f8]
mov ecx, ebx
call edi
mov bl, al
mov dword [ebp - 4], 1
mov ecx, dword [esi]
push 1
mov edi, dword [ecx]
mov ecx, edi
call dword [0x1019a4f8]
mov ecx, esi
call edi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10150500
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
mov ebx, edx
mov edx, esi
mov dword [esp + 0xc], ebx
shr edx, 2
xor ebp, ebp
mov dword [esp + 0x10], edx
push edi
mov edi, ecx
mov dword [esp + 0x18], edi
test edx, edx
je 0x101505e2
cmp edx, 0x10
jb 0x101505ba
lea eax, [ebx - 4]
lea eax, [eax + edx*4]
lea ecx, [edi - 4]
lea ecx, [ecx + edx*4]
cmp edi, eax
ja 0x10150547
cmp ecx, ebx
jae 0x101505ba
mov eax, edx
lea ecx, [ebx + 0x30]
and eax, 0xfffffff0
mov esi, ebx
sub esi, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], esi
lea eax, [edi + 0x10]
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
movups xmm0, xmmword [eax - 0x10]
add ebp, 0x10
lea eax, [eax + 0x40]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [ecx - 0x70]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [edx + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ecx - 0x50]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [ecx - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ebp, dword [esp + 0x20]
jb 0x10150566
mov edx, dword [esp + 0x14]
cmp ebp, edx
jae 0x101505e2
mov esi, ebx
lea ecx, [edi + ebp*4]
sub esi, edi
sub edx, ebp
mov ebp, dword [esp + 0x14]
nop dword [eax + eax]
mov eax, dword [esi + ecx]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
sub edx, 1
jne 0x101505d0
mov esi, dword [esp + 0x28]
shl ebp, 2
sub esi, ebp
mov dword [esp + 0x28], esi
je 0x101506a2
add edi, ebp
add ebx, ebp
xor ecx, ecx
test esi, esi
je 0x101506a2
cmp esi, 0x40
jb 0x10150683
lea eax, [ebx - 1]
lea edx, [edi - 1]
add eax, esi
add edx, esi
cmp edi, eax
ja 0x10150616
cmp edx, ebx
jae 0x10150683
mov ebp, esi
lea eax, [edi + 0x10]
mov esi, dword [esp + 0x10]
and ebp, 0xffffffc0
add ebx, 0x30
sub esi, dword [esp + 0x18]
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
movups xmm0, xmmword [eax - 0x10]
add ecx, 0x40
lea ebx, [ebx + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ebx - 0x70]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [edx + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ebx - 0x50]
pxor xmm1, xmm0
movups xmm0, xmmword [ebx - 0x40]
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ecx, ebp
jb 0x10150635
mov edx, dword [esp + 0x10]
cmp ecx, esi
jae 0x101506a2
sub edx, dword [esp + 0x18]
lea eax, [ecx + edi]
sub esi, ecx
mov cl, byte [edx + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub esi, 1
jne 0x10150694
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x101506b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ebp, edx
mov eax, esi
mov dword [esp + 0x10], ebp
shr eax, 2
xor ebx, ebx
xor edx, edx
mov dword [esp + 0xc], eax
push edi
mov edi, ecx
test eax, eax
je 0x1015076e
cmp eax, 8
jb 0x1015073f
mov ecx, eax
mov ebx, edi
and ecx, 0xfffffff8
lea eax, [ebp + 0x10]
xorps xmm3, xmm3
xorps xmm2, xmm2
sub ebx, ebp
nop
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x20]
movups xmm1, xmmword [edi + edx*4]
add edx, 8
pxor xmm1, xmm0
por xmm3, xmm1
movups xmm1, xmmword [ebx + eax - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
por xmm2, xmm1
cmp edx, ecx
jb 0x101506f0
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 edx, eax
jae 0x1015076e
lea ecx, [edx*4]
mov esi, edi
add ecx, ebp
sub esi, ebp
mov ebp, eax
sub ebp, edx
mov edx, eax
mov eax, dword [ecx + esi]
lea ecx, [ecx + 4]
xor eax, dword [ecx - 4]
or ebx, eax
sub ebp, 1
jne 0x10150756
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
shl edx, 2
sub esi, edx
mov dword [esp + 0x1c], esi
jne 0x10150786
pop edi
pop esi
test ebx, ebx
pop ebp
sete al
pop ebx
add esp, 8
ret
add edi, edx
add ebp, edx
mov edx, ebx
mov eax, ebx
shr edx, 0x18
shr eax, 0x10
or dl, al
mov eax, ebx
shr eax, 8
or dl, al
or dl, bl
xor ebx, ebx
mov dword [esp + 0x14], edx
test esi, esi
je 0x10150860
cmp esi, 0x20
jb 0x1015083d
mov ecx, esi
lea eax, [ebp + 0x10]
mov edx, edi
and ecx, 0xffffffe0
sub edx, ebp
xorps xmm3, xmm3
mov dword [esp + 0x10], edx
xorps xmm2, xmm2
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ebx + edi]
add ebx, 0x20
pxor xmm1, xmm0
por xmm3, xmm1
movups xmm1, xmmword [eax + esi - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
por xmm2, xmm1
cmp ebx, ecx
jb 0x101507d4
por xmm2, xmm3
mov esi, dword [esp + 0x1c]
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 ebx, esi
jae 0x10150860
sub edi, ebp
lea ecx, [ebx + ebp]
sub esi, ebx
nop dword [eax + eax]
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
or dl, al
sub esi, 1
jne 0x10150850
pop edi
pop esi
test dl, dl
pop ebp
sete al
pop ebx
add esp, 8
ret
Function at 0x101521d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10198369
mov eax, dword fs:[0]
push eax
sub esp, 0x10
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 dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], 0
lea esi, [eax + 4]
mov dword [ebp - 0x1c], eax
mov ecx, esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0
call fcn.101484b0
mov eax, dword [ebp - 0x10]
mov ecx, 8
mov dword [eax], vtable.CryptoPP::Integer.0
mov dword [esi + 4], 2
call fcn.101508e0
mov ecx, dword [ebp - 0x10]
mov dword [esi + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [ecx + 0x10], 0
mov dword [eax + 4], 0
mov eax, dword [ecx + 0xc]
mov dword [eax], 0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 0
push 1
push edi
mov edx, dword [edx]
push ebx
push ecx
mov dword [ebp - 0x18], 1
mov esi, dword [edx + 0x30]
mov ecx, esi
call dword [0x1019a4f8]
mov ecx, dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 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 0xc
Function at 0x1015912f
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x10159176
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10159176
mov eax, dword [ebp + 0xc]
test eax, eax
js 0x10159176
cmp eax, 3
jle 0x10159163
cmp eax, 4
jne 0x10159176
push str.SELECT_DISTINCT_PayloadID_FROM_payloads_ORDER_BY_installTime
push edx
push dword [ecx]
call fcn.1015a353
add esp, 0xc
pop ebp
ret
push eax
push str.SELECT_DISTINCT_PayloadID_FROM_payloads_WHERE_installState___d_ORDER_BY_installTime
push edx
push dword [ecx]
call fcn.1015a353
add esp, 0x10
pop ebp
ret
push 0xa
pop eax
pop ebp
ret

Function at 0x101594c3
Capabilities:
Create directory

Disassembly:
push 0x1c
mov eax, 0x10198998
call fcn.1015d3cd
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push 4
pop edi
push esi
push eax
call fcn.1015a6d2
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
call fcn.10159882
add esp, 0xc
test al, al
jne 0x1015950b
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
neg eax
sbb eax, eax
and edi, eax
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.10158db9
mov eax, edi
call fcn.1015d388
ret
Function at 0x1015951e
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x240
mov eax, 0x101989cb
call fcn.1015d3cd
mov esi, dword [ebp + 8]
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x21c], 7
mov bl, cl
mov dword [ebp - 0x220], ecx
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x24c]
mov dword [ebp - 4], ecx
push eax
push ecx
push ecx
push 0x2b
push ecx
mov dword [ebp - 0x24c], ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
lea eax, [ebp - 0x218]
push eax
js 0x101595c3
push dword [ebp - 0x24c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x101595b3
cmp word [ebp - 0x218], 0
jne 0x10159591
xor eax, eax
jmp 0x1015959e
lea eax, [ebp - 0x218]
push eax
call fcn.1016dc6b
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.10159029
mov bl, 1
push dword [ebp - 0x24c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor edi, edi
jmp 0x10159603
xor edi, edi
push edi
push edi
push 0x2b
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x10159603
cmp word [ebp - 0x218], di
jne 0x101595e1
mov eax, edi
jmp 0x101595ee
lea eax, [ebp - 0x218]
push eax
call fcn.1016dc6b
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.10159029
mov bl, 1
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x10159679
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x10159639
lea eax, [ecx - 1]
push edi
push eax
lea ecx, [ebp - 0x230]
call fcn.10101060
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.1015a78a
pop ecx
pop ecx
push eax
mov ecx, esi
call fcn.10109dd0
push edi
push 1
lea ecx, [ebp - 0x248]
call fcn.10158d64
mov edi, 0x1019c238
push edi
call fcn.1016e030
pop ecx
push eax
push edi
mov ecx, esi
call fcn.10158f0c
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.10158db9
mov al, bl
call fcn.1015d388
ret

Function at 0x10159690
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x101f62b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.1015a6d2
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
pop ecx
cmovae eax, dword [ebp - 0x1c]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x101596cf
test al, 0x10
jbe 0x101596cf
mov bl, 1
jmp 0x101596d1
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.10158db9
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.1015c875
mov esp, ebp
pop ebp
ret
Function at 0x10159882
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x101f62b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.1015a6d2
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
pop ecx
cmovae eax, dword [ebp - 0x1c]
pop ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0
push 1
lea ecx, [ebp - 0x1c]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call fcn.10158db9
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.1015c875
mov esp, ebp
pop ebp
ret
Function at 0x10159fdc
Capabilities:
Reference sql statements

Disassembly:
push 0x28
mov eax, 0x10198b38
call fcn.1015d3cd
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
lea eax, [edi + 0x30]
push eax
lea esi, [edi + 0x18]
push esi
call fcn.10159788
add esp, 0xc
test al, al
jne 0x1015a01c
push 0xa
pop esi
jmp 0x1015a166
lea eax, [ebp - 0x28]
push eax
call fcn.101596ee
pop ecx
test al, al
jne 0x1015a051
lea eax, [ebp - 0x28]
push eax
call fcn.10159882
pop ecx
test al, al
je 0x1015a040
xor esi, esi
inc esi
jmp 0x1015a166
push esi
call fcn.10159e44
mov esi, eax
pop ecx
test esi, esi
jne 0x1015a166
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push ebx
push dword [ebp + 8]
cmovae eax, dword [ebp - 0x28]
lea esi, [edi + 4]
push esi
push eax
call fcn.100df6c0
add esp, 0x10
test eax, eax
je 0x1015a081
push eax
mov dword [esi], ebx
call fcn.10159ebe
pop ecx
mov esi, eax
jmp 0x1015a166
push 0x7d0
push dword [esi]
call fcn.100dd7a0
cmp byte [edi + 0x4c], 0
mov esi, ebx
pop ecx
pop ecx
mov dword [edi], ebx
je 0x1015a166
mov eax, dword [edi + 0x50]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
sub eax, ebx
je 0x1015a0ce
sub eax, 1
je 0x1015a0c9
sub eax, 1
jne 0x1015a0ce
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x30], 1
push 3
jmp 0x1015a0d0
xor ebx, ebx
inc ebx
jmp 0x1015a0d1
push 2
pop ebx
push str.SELECT_value_FROM_pcd_meta_WHERE_key__schema_version
lea eax, [ebp - 0x34]
push eax
push edi
call fcn.1015a528
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1015a119
push dword [ebp - 0x34]
call fcn.10169fc6
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
mov dword [esp], str.SELECT_value_FROM_pcd_meta_WHERE_key__schema_compatibility_version
push eax
push edi
call fcn.1015a528
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1015a119
push dword [ebp - 0x34]
call fcn.10169fc6
pop ecx
jmp 0x1015a11c
mov eax, dword [ebp - 0x30]
cmp ebx, eax
jge 0x1015a125
push 0xd
pop esi
jmp 0x1015a15d
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jg 0x1015a159
push eax
mov ecx, edi
call fcn.1015a17b
mov esi, eax
test esi, esi
jne 0x1015a14e
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jle 0x1015a133
jmp 0x1015a164
mov eax, dword [ebp - 0x30]
xor ecx, ecx
cmp eax, dword [ebp - 0x2c]
cmove esi, ecx
test esi, esi
je 0x1015a164
mov ecx, edi
call fcn.10159fae
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.10158d64
mov eax, esi
call fcn.1015d388
ret 4
Function at 0x1017f3bc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1017f06d

Function at 0x1017f3c7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1017f1f7
Function at 0x3ba3de0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2d000]
push edi
jmp 0x3ba3dfa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x3ba3e01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x3ba3df0
mov eax, 1
add ebx, ebx
jne 0x3ba3e13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x3ba3e24
jne 0x3ba3e43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x3ba3e43
dec eax
add ebx, ebx
jne 0x3ba3e30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x3ba3e08
add ebx, ebx
jne 0x3ba3e3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x3ba3e95
xor ecx, ecx
sub eax, 3
jb 0x3ba3e5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x3ba3eca
sar eax, 1
mov ebp, eax
jmp 0x3ba3e66
add ebx, ebx
jne 0x3ba3e66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x3ba3e34
inc ecx
add ebx, ebx
jne 0x3ba3e74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x3ba3e34
add ebx, ebx
jne 0x3ba3e81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x3ba3e76
jne 0x3ba3e92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x3ba3e76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x3ba3eb4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x3ba3ea6
jmp 0x3ba3df6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x3ba3eb4
add edi, ecx
jmp 0x3ba3df6
pop esi
mov edi, esi
mov ecx, 0x16e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x3ba3ed2
cmp byte [edi], 0x48
jne 0x3ba3ed2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x3ba3ed7
mov ebp, dword [esi + 0x63034]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1cf]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x3ba3f32
sub esp, 0xffffff80
jmp 0x3b41778