joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10033330
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e4df0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x10104008]
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
mov ecx, 0x101080e9
call fcn.100de193
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10033371
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x10033385
mov al, 1
jmp 0x10033502
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x1003338f
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]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100333b6
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10004bc0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10032f60
mov ebx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004b60
cmp ebx, 0xffffffff
jne 0x100333fe
xor al, al
jmp 0x10033502
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x10033408
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
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10033430
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10004bc0
mov dword [ebp - 4], 1
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.10032e80
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004b60
test bl, bl
je 0x100333f7
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10033479
mov eax, dword [esi]
push eax
call edi
test eax, eax
jne 0x1003337e
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.10033950
test al, al
je 0x100334c3
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call edi
test eax, eax
je 0x100334c3
mov bl, 1
jmp 0x100334f1
cmp dword [esi + 0x14], 8
jb 0x100334cb
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x44]
call fcn.10004af0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.10032e80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.10004b60
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004b60
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.100dcb60
mov esp, ebp
pop ebp
ret
Function at 0x10034bd0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x10104008]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, ecx
mov ecx, 0x101080e9
push edi
mov edi, dword [esp + 0x14]
call fcn.100de193
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x10034c41
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10034c1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10034c41
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.100dcb60
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.100dcb60
add esp, 8
ret 4

Function at 0x10035ae0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e53f0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10104008]
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 esi, ecx
mov edi, dword [ebp + 8]
mov ecx, 0x101080e9
call fcn.100de193
mov eax, dword [esi]
test eax, eax
je 0x10035bd1
cmp byte [eax + 0x54], 0
je 0x10035bd1
add eax, 0x1c
lea ecx, [ebp - 0x38]
push eax
call fcn.100069f0
push 0
mov edx, edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.1002a450
add esp, 4
mov byte [ebp - 4], 1
lea edi, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
mov eax, dword [esi]
cmovae edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x1c]
cmp dword [eax + 0x14], 8
jb 0x10035b6c
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10035bb6
push 2
push 0
push 0
push esi
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x30]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.100058f0
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.10006a40
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.100dcb60
mov esp, ebp
pop ebp
ret 4

Function at 0x10036490
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov ebx, ecx
mov esi, edx
push edi
mov ecx, 0x101080ea
call fcn.100de193
mov ebp, dword [esp + 0x14]
xor edi, edi
or esi, 0x100
nop
mov ecx, esi
mov eax, esi
shr ecx, 7
add esi, esi
and ecx, 1
shr eax, 8
neg ecx
sar ecx, 4
and ecx, 0x7f
movzx edx, word [ebx + eax*2]
shr edx, 4
xor edx, ecx
add edi, dword [ebp + edx*4]
cmp esi, 0x10000
jb 0x100364b0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x100364f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov ebp, ecx
mov esi, edx
push edi
mov ecx, 0x101080ea
call fcn.100de193
mov edi, dword [esp + 0x14]
mov edx, 0x100
xor ebx, ebx
or esi, edx
nop
add edi, edi
mov ecx, edx
and ecx, edi
mov eax, esi
shr eax, 8
add ecx, edx
add eax, ecx
movzx ecx, word [ebp + eax*2]
mov eax, esi
shr eax, 7
add esi, esi
and eax, 1
shr ecx, 4
neg eax
sar eax, 4
and eax, 0x7f
xor ecx, eax
mov eax, dword [esp + 0x18]
add ebx, dword [eax + ecx*4]
mov ecx, esi
xor ecx, edi
not ecx
and edx, ecx
cmp esi, 0x10000
jb 0x10036510
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret

Function at 0x100366b0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebp
mov dword [esp + 4], ecx
mov ebp, edx
push edi
mov ecx, 0x101080ea
call fcn.100de193
xor eax, eax
lea edi, [eax + 1]
test ebp, ebp
je 0x10036702
push ebx
mov ebx, dword [esp + 0x14]
push esi
mov ecx, dword [esp + 0x10]
mov esi, ebx
and esi, 1
shr ebx, 1
movzx edx, word [ecx + edi*2]
mov ecx, esi
neg ecx
shr edx, 4
sar ecx, 4
add edi, edi
and ecx, 0x7f
or edi, esi
xor edx, ecx
mov ecx, dword [esp + 0x1c]
add eax, dword [ecx + edx*4]
sub ebp, 1
jne 0x100366d2
pop esi
pop ebx
pop edi
pop ebp
pop ecx
ret
Function at 0x10036870
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov ebp, ecx
mov dword [esp + 0xc], edx
push edi
mov ecx, 0x101080ea
call fcn.100de193
movzx esi, word [ebp]
mov ebx, dword [esp + 0x2c]
mov eax, esi
movzx ecx, word [ebp + 2]
xor esi, 0x7f0
shr eax, 4
shr esi, 4
mov eax, dword [ebx + eax*4]
mov dword [esp + 0x14], eax
mov eax, ecx
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
mov eax, dword [ebx + eax*4]
add eax, dword [ebx + esi*4]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + ecx*4]
add eax, dword [ebx + esi*4]
xor esi, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], esi
cmp esi, dword [esp + 0x24]
jae 0x100369eb
mov edx, esi
xor edi, edi
mov esi, dword [esp + 0x10]
or edx, 8
mov ecx, edx
and edx, 1
shr ecx, 1
neg edx
sar edx, 4
and edx, 0x7f
lea eax, [ecx + esi*8]
movzx eax, word [ebp + eax*2 + 4]
shr eax, 4
xor eax, edx
mov edx, ecx
add edi, dword [ebx + eax*4]
cmp edx, 1
jne 0x100368e5
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
add eax, edi
mov dword [ecx + esi*4], eax
inc esi
mov dword [esp + 0x2c], esi
cmp esi, 8
jb 0x100368d0
cmp esi, 0x10
jae 0x10036994
lea eax, [esi - 8]
mov dword [esp + 0x14], eax
cmp esi, dword [esp + 0x24]
jae 0x100369eb
mov esi, dword [esp + 0x10]
mov edx, eax
xor edi, edi
or edx, 8
mov ecx, edx
and edx, 1
shr ecx, 1
neg edx
sar edx, 4
and edx, 0x7f
lea eax, [ecx + esi*8]
movzx eax, word [ebp + eax*2 + 0x104]
shr eax, 4
xor eax, edx
mov edx, ecx
add edi, dword [ebx + eax*4]
cmp edx, 1
jne 0x10036947
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
add eax, edi
mov dword [ecx + esi*4], eax
inc esi
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], eax
cmp esi, 0x10
jb 0x10036932
cmp esi, dword [esp + 0x24]
jae 0x100369eb
lea eax, [esi - 0x10]
mov dword [esp + 0x2c], eax
xor edi, edi
or eax, 0x100
mov edx, eax
and eax, 1
shr edx, 1
neg eax
sar eax, 4
and eax, 0x7f
movzx ecx, word [ebp + edx*2 + 0x204]
shr ecx, 4
xor ecx, eax
mov eax, edx
add edi, dword [ebx + ecx*4]
cmp eax, 1
jne 0x100369a8
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
add eax, edi
mov dword [ecx + esi*4], eax
inc esi
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
cmp esi, dword [esp + 0x24]
jb 0x100369a1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x10038570
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov dword [esp + 0xc], ecx
mov ecx, 0x101080ea
push edi
call fcn.100de193
mov ecx, dword [esp + 0x10]
xor ebp, ebp
mov dword [esp + 0x14], ebp
lea eax, [ecx + 0x32350]
mov dword [esp + 0x18], eax
nop dword [eax]
xor ebx, ebx
mov edi, ebp
lea eax, [ebx + 1]
lea ebp, [ebx + 4]
nop word [eax + eax]
movzx edx, word [ecx + eax*2 + 0x329f4]
mov esi, edi
and esi, 1
shr edx, 4
mov ecx, esi
shr edi, 1
neg ecx
add eax, eax
sar ecx, 4
or eax, esi
and ecx, 0x7f
xor edx, ecx
mov ecx, dword [esp + 0x10]
add ebx, dword [ecx + edx*4 + 0x30ca0]
sub ebp, 1
jne 0x100385b0
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
inc ebp
mov dword [esp + 0x14], ebp
mov dword [edx], ebx
add edx, 4
mov dword [esp + 0x18], edx
cmp ebp, 0x10
jb 0x100385a0
pop edi
pop esi
pop ebp
mov dword [ecx + 0x32390], 0
pop ebx
add esp, 0xc
ret
Function at 0x10038610
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x214
push ebx
push ebp
push esi
mov ebx, ecx
mov ecx, 0x101080ea
push edi
call fcn.100de193
mov ebp, 4
lea eax, [ebx + 0x30ca0]
movzx edi, byte [ebx + ebp + 0x304a0]
mov edx, edi
mov esi, edi
shr edx, 1
and esi, 1
dec edx
or esi, 2
mov ecx, edx
shl esi, cl
lea ecx, [ebx + 0x3290e]
push eax
mov eax, ebp
sub eax, esi
sub esi, edi
push eax
lea ecx, [ecx + esi*2]
call fcn.100366b0
mov dword [esp + ebp*4 + 0x2c], eax
add esp, 8
inc ebp
lea eax, [ebx + 0x30ca0]
cmp ebp, 0x80
jb 0x10038631
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], 4
sub ecx, ebx
lea ebp, [ebx + 0x31750]
lea esi, [ebx + 0x32710]
mov dword [esp + 0x18], ebp
lea edx, [ebx + 0x31b58]
mov dword [esp + 0x10], esi
sub ecx, 0x31b50
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ecx
nop dword [eax]
mov eax, dword [ebx + 0x32394]
xor edi, edi
test eax, eax
je 0x10038712
nop dword [eax]
mov ebp, dword [esp + 0x10]
mov eax, edi
xor esi, esi
or eax, 0x40
nop dword [eax + eax]
mov edx, eax
and eax, 1
shr edx, 1
neg eax
sar eax, 4
and eax, 0x7f
movzx ecx, word [ebp + edx*2]
shr ecx, 4
xor ecx, eax
mov eax, edx
add esi, dword [ebx + ecx*4 + 0x30ca0]
cmp eax, 1
jne 0x100386d0
mov ebp, dword [esp + 0x18]
mov dword [ebp + edi*4], esi
inc edi
mov eax, dword [ebx + 0x32394]
cmp edi, eax
jb 0x100386c0
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, 0xe
cmp eax, ecx
jbe 0x10038737
nop dword [eax + eax]
mov eax, ecx
shr eax, 1
shl eax, 4
sub eax, 0x50
add dword [ebp + ecx*4], eax
inc ecx
cmp ecx, dword [ebx + 0x32394]
jb 0x10038720
mov eax, dword [ebp]
mov ecx, 4
mov edi, dword [esp + 0x1c]
mov dword [edx - 8], eax
mov eax, dword [ebp + 4]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
mov dword [edx + 4], eax
add edx, 8
nop word [eax + eax]
movzx eax, byte [ebx + ecx + 0x304a0]
lea edx, [edx + 4]
inc ecx
mov eax, dword [ebp + eax*4]
add eax, dword [edx + edi - 4]
mov dword [edx - 4], eax
cmp ecx, 0x80
jb 0x10038760
mov edx, dword [esp + 0x14]
sub esi, 0xffffff80
add ebp, 0x100
mov dword [esp + 0x10], esi
add edx, 0x200
mov dword [esp + 0x18], ebp
sub edi, 0x200
mov dword [esp + 0x14], edx
sub dword [esp + 0x20], 1
mov dword [esp + 0x1c], edi
jne 0x100386b0
pop edi
pop esi
pop ebp
mov dword [ebx + 0x3baf8], 0
pop ebx
add esp, 0x214
ret
Function at 0x100387d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov ebx, ecx
mov ecx, 0x101080ea
push edi
mov dword [esp + 0x1c], ebx
call fcn.100de193
mov dword [ebx + 0x3bad4], 0
lea esi, [ebx + 0x8c]
mov dword [ebx + 0x3bad0], 0
xor edx, edx
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x48], 0x20
mov dword [ebx + 0x70], 1
mov dword [ebx + 0x64], 4
mov dword [ebx + 0x74], 0
mov ecx, edx
lea esi, [esi + 4]
and ecx, 1
mov eax, edx
shr eax, 1
neg ecx
and ecx, 0xedb88320
inc edx
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [esi - 4], eax
cmp edx, 0x100
jb 0x10038834
lea ecx, [esp + 0x20]
call fcn.10036000
lea edx, [esp + 0x20]
mov ecx, ebx
call fcn.10036160
lea edx, [ebx + 0x304a0]
mov eax, 2
mov word [edx], 0x100
mov ebx, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
nop dword [eax + eax]
mov ecx, ebx
mov ebp, 1
sar ecx, 1
dec ecx
shl ebp, cl
test ebp, ebp
je 0x1003893c
lea edi, [eax + edx]
mov ecx, ebp
mov al, bl
mov edx, dword [esp + 0x18]
movzx eax, al
mov esi, ecx
imul eax, eax, 0x1010101
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
add eax, ebp
mov dword [esp + 0x14], eax
inc ebx
cmp ebx, 0x16
jl 0x10038900
mov ebx, dword [esp + 0x1c]
mov edi, 8
nop dword [eax + eax]
xor edx, edx
mov eax, edi
lea esi, [edx + 4]
nop word [eax + eax]
imul eax, eax
add edx, edx
cmp eax, 0x10000
jb 0x1003897a
nop dword [eax]
shr eax, 1
inc edx
cmp eax, 0x10000
jae 0x10038970
sub esi, 1
jne 0x10038960
mov eax, edi
mov ecx, 0xa1
shr eax, 4
sub ecx, edx
add edi, 0x10
mov dword [ebx + eax*4 + 0x30ca0], ecx
cmp edi, 0x800
jb 0x10038950
pop edi
mov dword [ebx + 0x323ac], esi
mov dword [ebx + 0x3bb14], esi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
Function at 0x10039920
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
push ebp
push esi
mov ebp, ecx
mov esi, edx
push edi
mov ecx, 0x101080ea
mov dword [esp + 0x14], ebp
call fcn.100de193
mov eax, dword [esp + 0x20]
xor edi, edi
mov eax, dword [eax]
and eax, 7
cmp esi, 5
jae 0x10039951
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
push ebx
lea edx, [ebp - 4]
or ebx, 0xffffffff
add edx, esi
mov dword [esp + 0x10], edx
nop
lea esi, [edi + ebp]
cmp esi, edx
jae 0x10039976
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x10039976
inc esi
cmp esi, edx
jb 0x10039967
mov edi, esi
sub edi, ebp
mov ecx, edi
sub ecx, ebx
cmp esi, edx
jae 0x10039a92
cmp ecx, 3
jbe 0x100399b4
xor eax, eax
mov cl, byte [esi + 4]
mov ebx, edi
mov dword [esp + 0x14], ebx
test cl, cl
je 0x100399f0
cmp cl, 0xff
je 0x100399f0
mov edx, dword [esp + 0x10]
and eax, 3
add eax, eax
mov ecx, 1
or eax, 1
add edi, ecx
jmp 0x10039960
dec ecx
shl eax, cl
and eax, 7
je 0x1003998d
cmp byte [eax + 0x100e75a0], 0
je 0x100399e0
movzx ecx, byte [eax + 0x100e75a8]
mov edx, esi
sub edx, ecx
mov cl, byte [edx + 4]
test cl, cl
je 0x100399dc
cmp cl, 0xff
jne 0x1003998d
mov edx, dword [esp + 0x10]
and eax, 3
mov ebx, edi
add eax, eax
or eax, 1
inc edi
jmp 0x10039960
movzx edx, cl
movzx ecx, byte [esi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 1]
shl edx, 8
or edx, ecx
nop
cmp dword [esp + 0x28], 0
je 0x10039a1e
lea ebx, [edi + 5]
add ebx, edx
jmp 0x10039a25
mov ebx, edx
sub ebx, edi
sub ebx, 5
test eax, eax
je 0x10039a5a
movzx ebp, byte [eax + 0x100e75a8]
mov ecx, 0x18
shl ebp, 3
mov edx, ebx
sub ecx, ebp
shr edx, cl
test dl, dl
je 0x10039a47
cmp dl, 0xff
jne 0x10039a5a
mov ecx, 0x20
mov edx, 1
sub ecx, ebp
shl edx, cl
dec edx
xor edx, ebx
jmp 0x10039a10
mov ebp, dword [esp + 0x18]
mov ecx, ebx
mov edx, dword [esp + 0x10]
shr ecx, 0x18
and cl, 1
mov byte [esi + 1], bl
neg cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
mov ebx, dword [esp + 0x14]
shr ecx, 8
mov byte [esi + 2], cl
mov ecx, 5
add edi, ecx
jmp 0x10039960
pop ebx
cmp ecx, 3
jbe 0x10039aa9
mov ecx, dword [esp + 0x20]
xor eax, eax
mov dword [ecx], eax
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0xc
ret
dec ecx
shl eax, cl
mov ecx, dword [esp + 0x20]
and eax, 7
mov dword [ecx], eax
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x1006ebf0
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
mov ebx, ecx
mov ebp, edx
push edi
mov ecx, 0x101080ea
call fcn.100de193
push 0
push 0x14
mov dword [ebx], 0
call fcn.1003f3a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x1006ec22
lea eax, [esi + 7]
pop edi
pop esi
pop ebp
pop ebx
ret
cmp byte [0x1010404c], 0
mov edi, dword [esp + 0x14]
je 0x1006ec6b
mov eax, dword [0x1010413c]
test eax, eax
je 0x1006ec46
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x1006ec6b
lea eax, [esi + 4]
mov dword [esi + 8], ebp
push eax
push 0
push esi
push 0x10042510
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 0x1006ec78
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x1006ec90
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 0x1007b450
Capabilities:
Reference sql statements

Disassembly:
push ebx
mov ebx, ecx
mov ecx, 0x101080ea
push edi
mov edi, edx
call fcn.100de193
push dword [esp + 0xc]
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.1007ff30
add esp, 0x18
cmp dword [esp + 0xc], 0
jne 0x1007b494
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.1007ff30
add esp, 0x10
pop edi
pop ebx
ret

Function at 0x10080050
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov ebx, ecx
mov ebp, edx
push edi
mov ecx, 0x101080ea
mov dword [esp + 0x10], ebx
call fcn.100de193
mov ecx, dword [esp + 0x1c]
nop dword [eax]
xor esi, esi
cmp dword [ebx + 0x14], esi
jle 0x100800f1
mov edi, esi
xor edi, 1
cmp esi, 2
cmovge edi, esi
test ecx, ecx
je 0x100800a9
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]
movzx edx, byte [eax]
movzx ecx, byte [ebx + eax]
cmp edx, ecx
jne 0x100800ce
test edx, edx
jne 0x100800e0
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.10044500
add esp, 4
mov eax, dword [eax + 8]
test eax, eax
jne 0x10080158
jmp 0x100800e7
movzx ecx, byte [ecx + 0x100e9c58]
movzx edx, byte [edx + 0x100e9c58]
sub edx, ecx
jne 0x100800e3
inc eax
jmp 0x10080096
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
inc esi
cmp esi, dword [ebx + 0x14]
jl 0x10080077
mov edx, str.sqlite_master
sub edx, ebp
nop dword [eax + eax]
movzx ecx, byte [ebp]
movzx eax, byte [edx + ebp]
cmp ecx, eax
jne 0x10080124
test ecx, ecx
jne 0x10080136
mov eax, dword [ebx + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
test ecx, ecx
jne 0x10080139
neg eax
sbb eax, eax
jmp 0x10080148
movzx eax, byte [eax + 0x100e9c58]
movzx ecx, byte [ecx + 0x100e9c58]
sub ecx, eax
jne 0x10080156
inc ebp
jmp 0x10080100
test eax, eax
je 0x10080156
mov edx, eax
call fcn.10042ed0
mov ecx, dword [esp + 0x1c]
test eax, eax
jne 0x10080156
mov ebp, str.sqlite_temp_master
jmp 0x10080070
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x100804a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], edx
push edi
mov ecx, 0x101080ea
mov dword [esp + 0x14], esi
call fcn.100de193
xor ebx, ebx
xor edi, edi
cmp dword [esi + 0x14], ebx
jle 0x10080547
push ebp
mov ebp, dword [esp + 0x24]
nop dword [eax]
mov esi, dword [esi + 0x10]
mov ecx, edi
xor ecx, 1
cmp edi, 2
cmovge ecx, edi
add ecx, ecx
mov eax, dword [esi + ecx*8 + 0xc]
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x10080506
mov esi, dword [esi + ecx*8]
mov eax, ebp
sub esi, ebp
movzx edx, byte [eax]
movzx ecx, byte [esi + eax]
cmp edx, ecx
jne 0x10080532
test edx, edx
jne 0x10080544
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea ecx, [eax + 0x18]
push 0
call fcn.10044500
add esp, 4
mov ebx, dword [eax + 8]
test ebx, ebx
jne 0x10080528
mov esi, dword [esp + 0x18]
inc edi
cmp edi, dword [esi + 0x14]
jl 0x100804d0
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x10
ret
movzx ecx, byte [ecx + 0x100e9c58]
movzx edx, byte [edx + 0x100e9c58]
sub edx, ecx
jne 0x1008051e
inc eax
jmp 0x100804f3
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x10
ret