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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfe8
mov eax, dword [0x101e3070]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0xfd0
lea eax, [ebp - 0xfdc]
mov dword [ebp - 0xfe4], ecx
push 0
push eax
mov esi, edx
mov dword [ebp - 0xfe0], 0
call fcn.10154a20
mov edx, dword [ebp + 8]
lea eax, [ebp - 0xfdc]
push 0xfd0
push eax
push 0x57d20
push str.dbe113959660426ee70c233aedd166c8
push str.44e061a68ee8a76229d51517437988e92b79d45056204038beda458f5e2a827a
mov ecx, esi
call fcn.10011920
add esp, 0x20
test eax, eax
js 0x1001533a
lea esi, [ebp - 0xfdc]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x100152e0
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
sub esi, ecx
xor edi, edi
push 0
lea eax, [ebp - 0xfe0]
push eax
mov eax, esi
sub eax, edi
push eax
lea eax, [ebp - 0xfdc]
add eax, edi
push eax
push dword [ebp - 0xfe4]
call ebx
test eax, eax
je 0x10015334
add edi, dword [ebp - 0xfe0]
cmp edi, esi
jl 0x100152f1
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100a66bf
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a66bf
mov esp, ebp
pop ebp
ret

Function at 0x10015350
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfe8
mov eax, dword [0x101e3070]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0xfd0
lea eax, [ebp - 0xfdc]
mov dword [ebp - 0xfe8], edx
mov edi, ecx
mov dword [ebp - 0xfe0], 0
push 0
push eax
mov dword [ebp - 0xfe4], edi
call fcn.10154a20
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0xc
xor esi, esi
nop dword [eax]
push 0
lea eax, [ebp - 0xfe0]
push eax
mov eax, 0xfd0
sub eax, esi
push eax
lea eax, [ebp - 0xfdc]
add eax, esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test edi, edi
jne 0x100153d0
call ebx
cmp eax, 0xea
jne 0x100153e2
add esi, dword [ebp - 0xfe0]
test edi, edi
jne 0x100153f8
mov edi, dword [ebp - 0xfe4]
jmp 0x100153a0
call ebx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100a66bf
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov edx, esi
lea ecx, [ebp - 0xfdc]
push dword [ebp - 0xfe8]
push 0x57d20
push str.dbe113959660426ee70c233aedd166c8
push str.44e061a68ee8a76229d51517437988e92b79d45056204038beda458f5e2a827a
call fcn.10011770
add esp, 0x14
or ecx, 0xffffffff
test eax, eax
cmovs eax, ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a66bf
mov esp, ebp
pop ebp
ret
Function at 0x10016a40
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x101e3070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp byte [edi], 0
je 0x10016b69
test bx, bx
je 0x10016b69
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
test esi, esi
js 0x10016b69
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
xorps xmm0, xmm0
push edi
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
jne 0x10016ad4
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10016b69
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0x24]
push eax
call fcn.101544a0
add esp, 0xc
mov eax, 2
push ebx
mov word [ebp - 0x28], ax
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
mov word [ebp - 0x26], ax
xor eax, eax
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x80
push 0xffff
push esi
call edi
push 0x10
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x10016bab
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 5
push eax
push 0
lea eax, [ebp - 0x130]
mov dword [ebp - 0x14], 0
push eax
push 0
lea eax, [esi + 1]
mov dword [ebp - 0x12c], esi
push eax
mov dword [ebp - 0x130], 1
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test ebx, ebx
jns 0x10016b7f
call fcn.1015ac3d
cmp dword [eax], 4
je 0x10016b7d
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a66bf
mov esp, ebp
pop ebp
ret
test ebx, ebx
jle 0x10016b62
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 0x10]
push eax
push 0x1007
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
js 0x10016b62
cmp dword [ebp - 0x10], 0
jne 0x10016b69
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 8
push 0xffff
push esi
call edi
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x493e0
push eax
push 0x1006
push 0xffff
push esi
call edi
test eax, eax
js 0x10016bfa
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x493e0
push eax
push 0x1005
push 0xffff
push esi
call edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a66bf
mov esp, ebp
pop ebp
ret
Function at 0x10016c10
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x101e3070]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x120], edx
cmp edi, 0xffffffff
je 0x10016cbb
mov ebx, dword [ebp + 8]
lea eax, [edi + 1]
xor esi, esi
nop
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x3c
push ecx
push 0
push 0
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0xc], 0
push ecx
push eax
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x11c], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x10016cbb
jns 0x10016c84
call fcn.1015ac3d
cmp dword [eax], 4
jne 0x10016ca1
push 0
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp - 0x120]
add eax, esi
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x10016cbb
add esi, eax
lea eax, [edi + 1]
cmp esi, ebx
jl 0x10016c40
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100a66bf
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a66bf
mov esp, ebp
pop ebp
ret

Function at 0x10016cd0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x101e3070]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x120], edx
cmp edi, 0xffffffff
je 0x10016d7b
mov ebx, dword [ebp + 8]
lea eax, [edi + 1]
xor esi, esi
nop
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x3c
push ecx
push 0
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0xc], 0
push ecx
push 0
push eax
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x11c], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x10016d7b
jns 0x10016d44
call fcn.1015ac3d
cmp dword [eax], 4
jne 0x10016d61
push 0
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp - 0x120]
add eax, esi
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x10016d7e
add esi, eax
lea eax, [edi + 1]
cmp esi, ebx
jl 0x10016d00
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100a66bf
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a66bf
mov esp, ebp
pop ebp
ret

Function at 0x100175e0
Capabilities:
Hash data using sha1

Disassembly:
lea eax, [ecx + 0x80]
mov dword [ecx + 0xc0], eax
mov eax, ecx
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
ret
Function at 0x1001df80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [edi], 0
cmp dword [0x101e99f8], 0
je 0x1001dfd7
mov eax, dword [0x101ff258]
test eax, eax
je 0x1001dfb0
push eax
call dword [0x101e9a4c]
add esp, 4
lea edx, [ebp - 4]
mov ecx, 0x14
call fcn.1001b7d0
mov eax, dword [0x101ff258]
test eax, eax
je 0x1001dfd2
push eax
call dword [0x101e9a54]
mov esi, dword [ebp - 4]
jmp 0x1001dfe1
mov esi, dword [ebp - 4]
jmp 0x1001dfe4
push 0x14
call dword [0x101e9a1c]
mov esi, eax
add esp, 4
test esi, esi
jne 0x1001dff2
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x101e99fc], 0
mov ebx, dword [ebp + 8]
je 0x1001e03c
mov eax, dword [0x101e9b00]
test eax, eax
je 0x1001e015
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x1001e03c
mov eax, dword [ebp - 8]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x1001df50
push 0
push 0
mov dword [esi + 0xc], ebx
call fcn.10167bfd
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x1001e049
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x1001e062
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
mov dword [esi + 4], eax
call dword [ebp - 8]
add esp, 4
mov dword [esi + 0x10], eax
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1001ff80
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
xor eax, eax
mov cl, byte [esi]
test cl, cl
je 0x1001ffae
nop dword [eax + eax]
movzx ecx, cl
lea esi, [esi + 1]
movzx edx, byte [ecx + 0x101d1210]
lea ecx, [eax*8]
xor edx, ecx
mov cl, byte [esi]
xor eax, edx
test cl, cl
jne 0x1001ff90
pop esi
ret
Function at 0x10020020
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [edx*8]
mov esi, ecx
push edi
cmp eax, 0x400
mov dword [ebp - 4], esi
mov edi, 0x80
cmovbe edi, edx
cmp edi, dword [esi]
jne 0x1002004f
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x101ff278]
test eax, eax
je 0x1002005a
call eax
lea eax, [edi*8]
push 0
push eax
call fcn.1001b8d0
mov ecx, dword [0x101ff27c]
add esp, 8
mov ebx, eax
mov dword [ebp - 0xc], ebx
test ecx, ecx
je 0x1002007d
call ecx
test ebx, ebx
je 0x10020046
push dword [esi + 0xc]
call fcn.1001bbf0
add esp, 4
mov dword [esi + 0xc], ebx
push ebx
call dword [0x101e9a28]
shr eax, 3
add esp, 4
mov dword [ebp - 8], eax
mov dword [esi], eax
lea ecx, [eax*8]
push ecx
push 0
push ebx
call fcn.10154a20
mov ecx, dword [esi + 8]
add esp, 0xc
mov dword [esi + 8], 0
test ecx, ecx
je 0x10020160
mov edi, dword [ecx + 0xc]
xor ebx, ebx
mov al, byte [edi]
test al, al
je 0x100200ef
movzx eax, al
lea edx, [ebx*8]
lea edi, [edi + 1]
movzx esi, byte [eax + 0x101d1210]
mov al, byte [edi]
xor esi, edx
xor ebx, esi
test al, al
jne 0x100200d1
xor edx, edx
mov edi, dword [ecx]
mov eax, ebx
div dword [ebp - 8]
mov eax, dword [ebp - 0xc]
lea esi, [eax + edx*8]
test esi, esi
je 0x1002013a
mov eax, dword [esi]
test eax, eax
je 0x1002010d
mov edx, dword [esi + 4]
jmp 0x1002010f
xor edx, edx
inc eax
mov dword [esi + 4], ecx
mov dword [esi], eax
test edx, edx
je 0x1002013a
mov dword [ecx], edx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 4]
test eax, eax
je 0x1002012f
mov dword [eax], ecx
mov dword [edx + 4], ecx
jmp 0x10020156
mov eax, dword [ebp - 4]
mov dword [eax + 8], ecx
mov dword [edx + 4], ecx
jmp 0x10020156
mov esi, dword [ebp - 4]
mov eax, dword [esi + 8]
mov dword [ecx], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x1002014c
mov dword [eax + 4], ecx
mov dword [ecx + 4], 0
mov dword [esi + 8], ecx
mov ecx, edi
test edi, edi
jne 0x100200c6
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10020170
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov dword [ebp - 4], edx
push esi
push edi
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x100201c5
mov al, byte [edx]
xor esi, esi
mov edi, edx
test al, al
je 0x100201ae
nop
movzx eax, al
lea ecx, [esi*8]
lea edi, [edi + 1]
movzx edx, byte [eax + 0x101d1210]
mov al, byte [edi]
xor edx, ecx
xor esi, edx
test al, al
jne 0x10020190
xor edx, edx
mov eax, esi
div dword [ebx]
mov ebx, dword [ebx + 0xc]
mov ecx, edx
mov edx, dword [ebp - 4]
mov edi, dword [ebx + ecx*8 + 4]
mov ebx, dword [ebx + ecx*8]
jmp 0x100201cd
mov edi, dword [ebx + 8]
xor ecx, ecx
mov ebx, dword [ebx + 4]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
test ebx, ebx
je 0x10020232
mov eax, dword [edi + 0xc]
dec ebx
test eax, eax
jne 0x100201e6
mov eax, edx
neg eax
sbb eax, eax
jmp 0x10020228
test edx, edx
je 0x1002022c
mov cl, byte [eax]
mov esi, edx
test cl, cl
je 0x10020212
movzx edx, byte [esi]
movzx ecx, cl
mov cl, byte [ecx + 0x101d1210]
cmp cl, byte [edx + 0x101d1210]
jne 0x1002020f
mov cl, byte [eax + 1]
inc eax
inc esi
test cl, cl
jne 0x100201f2
mov edx, dword [ebp - 4]
movzx eax, byte [eax]
movzx ecx, byte [esi]
movzx eax, byte [eax + 0x101d1210]
movzx ecx, byte [ecx + 0x101d1210]
sub eax, ecx
test eax, eax
je 0x1002023b
mov edi, dword [edi]
test ebx, ebx
jne 0x100201d6
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003d6d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x101e3070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [edx + 0x14]
mov dword [ebp - 0x34], ecx
mov ecx, edi
mov dword [ebp - 0x38], eax
call fcn.10030880
mov esi, dword [edi + 0x10]
mov ecx, esi
mov eax, dword [edi + 0x14]
add ecx, 0xffffffff
adc eax, 0xffffffff
test eax, eax
ja 0x1003d7b6
jb 0x1003d71d
cmp ecx, 0x7ffffffe
ja 0x1003d7b6
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
movsx eax, byte [edi + 0x44]
mov edx, dword [edi + 0x18]
mov eax, dword [edi + eax*4 + 0x78]
mov ecx, dword [eax + 0x3c]
movzx eax, word [edi + 0x20]
sub ecx, edx
cmp eax, ecx
cmovb ecx, eax
cmp esi, ecx
ja 0x1003d75e
mov eax, 0x1010
mov dword [ebp - 0x20], edx
mov word [ebp - 0x28], ax
mov dword [ebp - 0x24], esi
jmp 0x1003d77b
lea eax, [ebp - 0x30]
xor edx, edx
push eax
push 1
push esi
mov ecx, edi
call fcn.10038540
add esp, 0xc
test eax, eax
jne 0x1003d7da
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
push 0
push dword [ebp - 0x38]
mov ecx, esi
call fcn.1003cb40
add esp, 8
mov dword [ebx], eax
test dword [ebp - 0x28], 0x2460
jne 0x1003d79b
cmp dword [ebp - 0x18], 0
je 0x1003d7a3
lea ecx, [ebp - 0x30]
call fcn.10037c00
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a66bf
mov esp, ebp
pop ebp
ret
push 0x101d8f94
push 0x118f4
push str.database_corruption_at_line__d_of___.10s_
push 0xb
mov dword [ebx], 0
call fcn.1001dd80
add esp, 0x10
mov eax, 0xb
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a66bf
mov esp, ebp
pop ebp
ret
Function at 0x10059d40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], edx
push edi
mov ebx, dword [esi + 8]
test ebx, ebx
jne 0x10059d8a
call fcn.10038bf0
mov ebx, eax
mov dword [esi + 8], ebx
test ebx, ebx
je 0x10059d71
mov edx, 0x9f
mov ecx, ebx
call fcn.10038e90
cmp dword [esi + 0x19c], 0
mov edx, dword [esp + 0xc]
jne 0x10059d8a
mov eax, dword [esi]
test byte [eax + 0x3c], 8
jne 0x10059d8a
mov byte [esi + 0x17], 1
mov al, byte [esi + 0x13]
test al, al
jne 0x10059d99
inc dword [esi + 0x48]
mov edi, dword [esi + 0x48]
jmp 0x10059da5
dec al
mov byte [esi + 0x13], al
movzx eax, al
mov edi, dword [esi + eax*4 + 0x18]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x20]
cmp dword [eax + 0x54], ecx
jg 0x10059dc9
push dword [ebp + 8]
mov ecx, ebx
push edi
push edx
mov edx, 0x77
call fcn.10038de0
mov edx, dword [ebp + 8]
add esp, 0xc
jmp 0x10059df7
lea eax, [ecx + 1]
mov dword [ebx + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 4]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp + 8]
mov word [eax + ecx*4], 0x77
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x19c]
mov ecx, esi
test eax, eax
push edi
cmovne ecx, eax
mov eax, str.sqlite_master
push edi
push dword [esp + 0x14]
cmp edx, 1
mov byte [ecx + 0x15], 1
mov ecx, str.sqlite_temp_master
cmove eax, ecx
shl edx, 4
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
push dword [eax + edx]
push str.UPDATE__Q._s_SET_rootpage_d_WHERE__d_AND_rootpage_d
push esi
call fcn.10056da0
add esp, 0x1c
test edi, edi
je 0x10059e73
mov dl, byte [esi + 0x13]
cmp dl, 8
jae 0x10059e73
xor ecx, ecx
lea eax, [esi + 0x78]
nop dword [eax]
cmp dword [eax + 0xc], edi
je 0x10059e6f
inc ecx
add eax, 0x14
cmp ecx, 0xa
jl 0x10059e50
movzx eax, dl
mov dword [esi + eax*4 + 0x18], edi
inc byte [esi + 0x13]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [eax + 6], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1008f9a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017be38
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x101e3070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x20
push str.52D298A1564D23A51AD7505925E98635
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x24], 0
call fcn.100056d0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
mov ecx, 0x101ffe00
call fcn.100057d0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1008fa1b
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.10005c20
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x24], 0
sub eax, 0
je 0x1008fa72
sub eax, 1
jne 0x1008fa92
push eax
push 0x101cf2a2
push 0x101cf2a2
push 0x101cf2a2
push 0x101cf2a2
mov ecx, 0x101ff460
call fcn.10015d20
push 0
push 0
push 0
push 0x1008f990
push 0
push 0
call fcn.10167bfd
add esp, 0x18
jmp 0x1008fa92
push 0
push 0x101cf2a2
push 0x101cf2a2
push 0x101cf2a2
push 0x101cf2a2
mov ecx, 0x101ff460
call fcn.10015d20
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100ac5e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
xor dl, dl
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x100ac606
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
sub esi, 1
jne 0x100ac5f6
pop edi
movzx eax, dl
pop esi
ret
Function at 0x100bad20
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.100a7a90
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x10], ecx
mov edi, dword [edi]
mov dword [esp + 0x14], edi
test edi, edi
je 0x100bad6d
mov edx, dword [esp + 0x30]
test esi, esi
je 0x100bad6d
mov al, byte [edi + edx]
dec esi
xor al, byte [ecx]
inc edi
mov byte [ebp], al
inc ecx
inc ebp
mov dword [esp + 0x10], ecx
and edi, 0xf
mov dword [esp + 0x14], edi
jne 0x100bad50
mov ebx, dword [esp + 0x2c]
movzx edx, byte [ebx + 0xc]
movzx eax, byte [ebx + 0xd]
shl edx, 8
or edx, eax
movzx eax, byte [ebx + 0xe]
shl edx, 8
or edx, eax
movzx eax, byte [ebx + 0xf]
shl edx, 8
or edx, eax
mov dword [esp + 0x24], edx
cmp esi, 0x10
jb 0x100bae27
mov edi, ebx
nop
mov ebx, esi
shr ebx, 4
add edx, ebx
mov dword [esp + 0x24], edx
cmp edx, ebx
jae 0x100badb7
sub ebx, edx
xor edx, edx
mov dword [esp + 0x24], edx
push edi
push dword [esp + 0x2c]
push ebx
push ebp
push ecx
call dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
add esp, 0x14
mov eax, edx
mov byte [edi + 0xf], dl
shr eax, 0x18
mov byte [edi + 0xc], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 0xd], al
mov eax, edx
shr eax, 8
mov byte [edi + 0xe], al
test edx, edx
jne 0x100bae09
mov edx, 0xc
mov ecx, 1
movzx eax, byte [edx + edi - 1]
dec edx
add ecx, eax
mov byte [edx + edi], cl
shr ecx, 8
test edx, edx
jne 0x100badf3
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
shl ebx, 4
sub esi, ebx
add ecx, ebx
add ebp, ebx
mov dword [esp + 0x10], ecx
cmp esi, 0x10
jae 0x100bada0
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x2c]
test esi, esi
je 0x100bae95
mov eax, dword [esp + 0x30]
xorps xmm0, xmm0
push ebx
push dword [esp + 0x2c]
push 1
push eax
push eax
movups xmmword [eax], xmm0
call dword [esp + 0x4c]
mov ecx, dword [esp + 0x38]
add esp, 0x14
inc ecx
mov eax, ecx
mov byte [ebx + 0xf], cl
shr eax, 0x18
mov byte [ebx + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [ebx + 0xe], al
test ecx, ecx
jne 0x100bae72
push ebx
call fcn.100baee0
add esp, 4
mov eax, dword [esp + 0x30]
sub ebp, eax
mov edx, dword [esp + 0x10]
sub edx, eax
lea ecx, [edi + eax]
add edi, esi
mov al, byte [edx + ecx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ecx + ebp - 1], al
sub esi, 1
jne 0x100bae83
mov eax, dword [esp + 0x34]
mov dword [eax], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x100bb4f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov eax, dword [ebx + 0x38]
or eax, dword [ebx + 0x3c]
je 0x100bb504
mov eax, 0xfffffffe
pop ebx
ret
push esi
mov esi, dword [esp + 0x14]
xor ecx, ecx
mov eax, esi
add eax, dword [ebx + 0x30]
adc ecx, dword [ebx + 0x34]
cmp ecx, 0x20000000
ja 0x100bb5b9
jb 0x100bb529
test eax, eax
jne 0x100bb5b9
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [ebx + 0x16c]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], ecx
test edi, edi
je 0x100bb569
nop
test esi, esi
je 0x100bb555
mov al, byte [ebp]
dec esi
xor byte [edi + ebx + 0x40], al
inc ebp
inc edi
and edi, 0xf
jne 0x100bb540
jmp 0x100bb559
test edi, edi
jne 0x100bb5ac
lea eax, [ebx + 0x60]
push eax
lea eax, [ebx + 0x40]
push eax
call fcn.100bc810
add esp, 8
mov eax, esi
and eax, 0xfffffff0
mov dword [esp + 0x14], eax
je 0x100bb58e
push eax
push ebp
lea eax, [ebx + 0x60]
push eax
lea eax, [ebx + 0x40]
push eax
call fcn.100bc5d0
add ebp, dword [esp + 0x24]
add esp, 0x10
sub esi, dword [esp + 0x14]
test esi, esi
je 0x100bb5ac
xor ecx, ecx
mov edi, esi
test esi, esi
je 0x100bb5ac
nop word [eax + eax]
mov al, byte [ecx + ebp]
xor byte [ebx + ecx + 0x40], al
inc ecx
cmp ecx, esi
jb 0x100bb5a0
mov dword [ebx + 0x16c], edi
xor eax, eax
pop edi
pop ebp
pop esi
pop ebx
ret
pop esi
or eax, 0xffffffff
pop ebx
ret