joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d0b40
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c2648
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10224008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
cmp esi, 0xffffffff
jne 0x100d0b78
xor al, al
jmp 0x100d0bf7
and esi, 0xffffb1af
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x100d0b88
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push eax
call ebx
test eax, eax
je 0x100d0b9a
mov al, 1
jmp 0x100d0bf7
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.100d1680
test al, al
je 0x100d0be4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
je 0x100d0be4
mov bl, 1
jmp 0x100d0be6
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005540
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.1019e7b8
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c2678
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10224008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100d0c56
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100d0cba
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.100d1680
test al, al
je 0x100d0cab
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005540
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.1019e7b8
mov esp, ebp
pop ebp
ret
Function at 0x100d0ce0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c26b0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x10224008]
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, edx
mov esi, ecx
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x100d0d18
mov ecx, dword [edi]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100d0d22
mov eax, dword [esi]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x100d0ddc
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x41], al
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x40]
mov ecx, esi
call fcn.100d1680
movzx ecx, byte [ebp - 0x41]
test al, al
mov edx, 1
mov dword [ebp - 0x18], 0
cmovne ecx, edx
mov dword [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], dl
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.100d1680
test al, al
jne 0x100d0d9f
cmp byte [ebp - 0x48], al
je 0x100d0de0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x100d0de0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10005540
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10005540
mov al, 1
jmp 0x100d0dfd
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10005540
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10005540
xor al, al
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.1019e7b8
mov esp, ebp
pop ebp
ret
Function at 0x100d0e20
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c26f8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x10224008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x100d0e59
mov ecx, dword [esi]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x100d0e63
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0xb
push ecx
push eax
call ebx
test eax, eax
je 0x100d0e7a
mov al, 1
jmp 0x100d0fa0
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x59], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.100d1680
movzx ecx, byte [ebp - 0x59]
test al, al
mov edx, 1
mov dword [ebp - 0x18], 0
cmovne ecx, edx
mov dword [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], dl
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.100d1680
test al, al
jne 0x100d0ef6
cmp byte [ebp - 0x60], al
je 0x100d0f16
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push 0xb
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call ebx
test eax, eax
jne 0x100d0f6a
mov ecx, esi
call fcn.100d0c20
cmp eax, 0xffffffff
je 0x100d0f81
push esi
lea ecx, [ebp - 0x58]
call fcn.10006ac0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.100d1430
test al, al
je 0x100d0f75
lea edx, [ebp - 0x58]
mov ecx, esi
call fcn.100d0ce0
test al, al
je 0x100d0f75
mov edx, esi
mov ecx, edi
call fcn.100d0ce0
lea ecx, [ebp - 0x58]
test al, al
je 0x100d0f6e
call fcn.100d10a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.10005540
mov bl, 1
jmp 0x100d0f83
mov edx, esi
call fcn.100d0ce0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.10005540
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10005540
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10005540
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.1019e7b8
mov esp, ebp
pop ebp
ret
Function at 0x100d10a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c2770
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10224008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100d10d7
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x100d10eb
mov al, 1
jmp 0x100d1272
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x100d10f5
mov edx, dword [esi]
mov ecx, edx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100d1120
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.100055f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.100d0c20
mov ebx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005540
cmp ebx, 0xffffffff
jne 0x100d1168
xor al, al
jmp 0x100d1272
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x100d1172
mov edx, dword [esi]
mov ecx, edx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100d11a0
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.100055f0
mov dword [ebp - 4], 1
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.100d0b40
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005540
test bl, bl
je 0x100d1161
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100d11e9
mov eax, dword [esi]
push eax
call edi
test eax, eax
jne 0x100d10e4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 2
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.100d1680
test al, al
je 0x100d1233
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call edi
test eax, eax
je 0x100d1233
mov bl, 1
jmp 0x100d1261
cmp dword [esi + 0x14], 8
jb 0x100d123b
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x44]
call fcn.10004fc0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.100d0b40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.10005540
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005540
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.1019e7b8
mov esp, ebp
pop ebp
ret
Function at 0x100d24d0
Capabilities:
Get disk information

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c2a26
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x838
mov eax, dword [0x10224008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x818]
push eax
push 0x3fe
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov esi, eax
mov dword [ebp - 0x824], esi
test esi, esi
je 0x100d25d1
lea edx, [ebp - 0x818]
mov dword [ebp - 0x81c], 0
lea ecx, [ebp - 0x81c]
mov dword [ebp - 0x820], edx
call fcn.1006e740
mov dword [ebp - 4], 0
cmp esi, 0x3fe
jbe 0x100d25f1
xor ecx, ecx
lea eax, [esi + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1019f3bd
add esp, 4
mov dword [ebp - 0x820], eax
lea ecx, [ebp - 0x81c]
push eax
call fcn.1006e750
push dword [ebp - 0x820]
push esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x100d25bf
cmp eax, esi
ja 0x100d25bf
mov edx, dword [ebp - 0x820]
xor ecx, ecx
mov dword [ebp - 0x824], eax
mov dword [edx + eax*2], ecx
jmp 0x100d2626
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x81c]
call fcn.1006e650
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1019e7b8
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
add esi, esi
cmp esi, 0x800
jae 0x100d2722
xor eax, eax
mov word [ebp + esi - 0x818], ax
add esi, 2
cmp esi, 0x800
jae 0x100d2722
mov word [ebp + esi - 0x818], ax
mov eax, dword [ebp - 0x824]
xor ecx, ecx
xor esi, esi
test eax, eax
je 0x100d2709
mov eax, 2
add edx, 0xfffffffe
mov dword [ebp - 0x828], eax
mov dword [ebp - 0x82c], edx
nop word [eax + eax]
mov edx, dword [ebp - 0x82c]
cmp word [edx + eax], 0
mov edx, dword [ebp - 0x824]
jne 0x100d26f7
cmp ecx, esi
je 0x100d26f7
mov eax, dword [ebp - 0x820]
lea eax, [eax + ecx*2]
push eax
lea ecx, [ebp - 0x844]
call fcn.10004fc0
mov byte [ebp - 4], 1
mov eax, dword [edi + 4]
cmp dword [edi + 8], eax
je 0x100d26ca
movups xmm0, xmmword [ebp - 0x844]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x834]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [edi + 4], 0x18
mov dword [ebp - 0x834], 0
mov dword [ebp - 0x830], 7
mov word [ebp - 0x844], ax
jmp 0x100d26d9
lea ecx, [ebp - 0x844]
push ecx
push eax
mov ecx, edi
call fcn.1006e770
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x844]
call fcn.10005540
mov eax, dword [ebp - 0x828]
lea ecx, [esi + 1]
mov edx, dword [ebp - 0x824]
inc esi
add eax, 2
mov dword [ebp - 0x828], eax
cmp esi, edx
jb 0x100d2650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x81c]
call fcn.1006e650
mov al, 1
jmp 0x100d25d3
call fcn.1019f1cf
int3
Function at 0x100d58f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c3378
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10224008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
push 2
push 0xffffffffffffffff
push 0xffff8000
movlpd qword [ebp - 0x3c], xmm0
call fcn.100c5c30
test al, al
jne 0x100d5950
mov eax, 1
jmp 0x100d5acd
push 0x10000
call fcn.1019f3bd
mov ebx, eax
mov dword [ebp - 0x18], 0
add esp, 4
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
push 0x10000
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esi]
add esp, 0xc
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x100d5aa6
test ebx, ebx
je 0x100d5aa6
cmp dword [eax], 0xffffffff
je 0x100d5aa6
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x8000
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100d5aa6
mov esi, dword [ebp - 0x20]
mov ecx, 0x8000
xor ebx, ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], ecx
add esi, ecx
nop word [eax + eax]
cmp byte [edi + 0x9c], 0
jne 0x100d5a9c
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push edx
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push edx
push ecx
mov ecx, dword [ebp - 0x34]
lea eax, [esi + ebx]
push eax
call fcn.1019a390
test al, al
je 0x100d5a8f
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x100d5a42
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x100d5a31
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [edi + 0x9c], 0
jne 0x100d5a9c
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
jmp 0x100d5a4c
add ebx, eax
cmp ebx, 0x8000
je 0x100d5a5c
cmp dword [ebp - 0x28], 0xf
ja 0x100d5a85
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
mov dword [ebp - 0x2c], ecx
jne 0x100d59e0
mov ebx, dword [ebp - 0x20]
mov edx, 0x7ffc
mov ecx, ebx
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x100d5a7e
add ecx, 4
add esi, 4
sub edx, 4
jae 0x100d5a66
mov esi, 4
jmp 0x100d5ab7
mov esi, 5
jmp 0x100d5ab7
mov ebx, dword [ebp - 0x20]
mov esi, 3
jmp 0x100d5ab7
mov eax, dword [ebp - 0x30]
mov esi, 3
mov ebx, dword [ebp - 0x20]
jmp 0x100d5ab1
mov ebx, dword [ebp - 0x20]
mov esi, 2
jmp 0x100d5ab7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 1
mov dword [edi + 0xb0], eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x100d5acb
push ebx
call fcn.1019f0a0
add esp, 4
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.1019e7b8
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100d8b80
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c3918
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10224008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x100d8bc9
mov dword [ecx], 0
mov dword [eax], 0
cmp dword [edi], 0xffffffff
je 0x100d8d1b
mov eax, dword [ebp + 0xc]
mov ecx, 0x100000
push 0
mov ebx, eax
mov dword [ebp - 0x1c], 0
cmp eax, 0x100000
lea eax, [ebp - 0x1c]
push eax
cmova ebx, ecx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x1c], 0
je 0x100d8ce6
test eax, eax
je 0x100d8ce6
mov edx, dword [ebp - 0x1c]
cmp edx, ebx
jae 0x100d8ce9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x24], eax
cmp ecx, 0xffffffff
je 0x100d8c6b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100d8c5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100d8c6b
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add ecx, esi
adc eax, 0
jmp 0x100d8c79
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push 0
push dword [ebp - 0x24]
push eax
push ecx
sub esp, 0x18
lea eax, [edi + 4]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.10006ac0
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x18]
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x100d8ce6
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push ebx
add eax, esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
xor edx, edx
test ecx, ecx
mov eax, 0x80004005
cmovne eax, edx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
test ecx, ecx
je 0x100d8c24
jmp 0x100d8ce9
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
add dword [ecx], edx
test eax, eax
jne 0x100d8d12
test edx, edx
je 0x100d8d0e
mov eax, dword [ebp + 0xc]
add esi, edx
sub eax, edx
mov dword [ebp - 0x20], esi
mov dword [ebp + 0xc], eax
mov ecx, 0x100000
jne 0x100d8be0
mov al, 1
jmp 0x100d8d1d
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x100d8d1b
mov dword [ecx], eax
xor al, al
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.1019e7b8
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1011a3e0
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov ebp, edx
push 0
push 0x14
mov dword [ebx], 0
call fcn.100e6440
mov esi, eax
add esp, 8
test esi, esi
jne 0x1011a408
lea eax, [esi + 7]
pop edi
pop esi
pop ebp
pop ebx
ret
cmp byte [0x1022406c], 0
mov edi, dword [esp + 0x14]
je 0x1011a451
mov eax, dword [0x1022415c]
test eax, eax
je 0x1011a42c
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x1011a451
lea eax, [esi + 4]
mov dword [esi + 8], ebp
push eax
push 0
push esi
push 0x100e95c0
push 0
push 0
mov dword [esi + 0xc], edi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x1011a45e
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x1011a476
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi + 4], eax
call ebp
add esp, 4
mov dword [esi + 0x10], eax
pop edi
mov dword [ebx], esi
xor eax, eax
pop esi
pop ebp
pop ebx
ret
Function at 0x10128790
Capabilities:
Reference sql statements

Disassembly:
push ebx
push edi
push dword [esp + 0xc]
mov edi, edx
mov ebx, ecx
push edi
push str.sqlite_master
push edi
push str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
push ebx
call fcn.1012d910
add esp, 0x18
cmp dword [esp + 0xc], 0
jne 0x101287ca
push edi
push str.sqlite_master
push str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
push ebx
call fcn.1012d910
add esp, 0x10
pop edi
pop ebx
ret

Function at 0x1012da20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebx, ecx
mov ebp, edx
mov ecx, dword [esp + 0x14]
push esi
push edi
mov dword [esp + 0x10], ebx
xor esi, esi
cmp dword [ebx + 0x14], esi
jle 0x1012dabb
nop
mov edi, esi
xor edi, 1
cmp esi, 2
cmovge edi, esi
test ecx, ecx
je 0x1012da73
mov edx, edi
mov eax, ecx
mov ecx, dword [ebx + 0x10]
add edx, edx
mov ebx, dword [ecx + edx*8]
sub ebx, dword [esp + 0x1c]
nop
movzx edx, byte [eax]
movzx ecx, byte [ebx + eax]
cmp edx, ecx
jne 0x1012da98
test edx, edx
jne 0x1012daaa
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0x10]
add edi, edi
push 0
mov edx, ebp
mov ecx, dword [eax + edi*8 + 0xc]
add ecx, 8
call fcn.100eba30
add esp, 4
mov eax, dword [eax + 8]
test eax, eax
jne 0x1012db1a
jmp 0x1012dab1
movzx ecx, byte [ecx + 0x101d7b48]
movzx edx, byte [edx + 0x101d7b48]
sub edx, ecx
jne 0x1012daad
inc eax
jmp 0x1012da60
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
inc esi
cmp esi, dword [ebx + 0x14]
jl 0x1012da40
mov edx, str.sqlite_master
sub edx, ebp
movzx ecx, byte [ebp]
movzx eax, byte [edx + ebp]
cmp ecx, eax
jne 0x1012dae6
test ecx, ecx
jne 0x1012daf8
mov eax, dword [ebx + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
test ecx, ecx
jne 0x1012dafb
neg eax
sbb eax, eax
jmp 0x1012db0a
movzx eax, byte [eax + 0x101d7b48]
movzx ecx, byte [ecx + 0x101d7b48]
sub ecx, eax
jne 0x1012db18
inc ebp
jmp 0x1012dac2
test eax, eax
je 0x1012db18
mov edx, eax
call fcn.100ea1a0
mov ecx, dword [esp + 0x1c]
test eax, eax
jne 0x1012db18
mov ebp, str.sqlite_temp_master
jmp 0x1012da33
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x1012de60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x10
mov eax, ecx
mov dword [esp + 4], edx
push ebx
push edi
xor ebx, ebx
mov dword [esp + 0x10], eax
xor edi, edi
cmp dword [eax + 0x14], ebx
jle 0x1012defa
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov eax, dword [eax + 0x10]
mov esi, edi
xor esi, 1
cmp edi, 2
cmovge esi, edi
shl esi, 4
add esi, eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x1012deb9
mov esi, dword [esi]
mov eax, ebp
sub esi, ebp
movzx edx, byte [eax]
movzx ecx, byte [esi + eax]
cmp edx, ecx
jne 0x1012dee5
test edx, edx
jne 0x1012def7
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea ecx, [eax + 0x18]
push 0
call fcn.100eba30
add esp, 4
mov ebx, dword [eax + 8]
test ebx, ebx
jne 0x1012dedb
mov eax, dword [esp + 0x18]
inc edi
cmp edi, dword [eax + 0x14]
jl 0x1012de82
pop esi
pop ebp
pop edi
mov eax, ebx
pop ebx
add esp, 0x10
ret
movzx ecx, byte [ecx + 0x101d7b48]
movzx edx, byte [edx + 0x101d7b48]
sub edx, ecx
jne 0x1012ded1
inc eax
jmp 0x1012dea6
pop edi
mov eax, ebx
pop ebx
add esp, 0x10
ret