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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x533b08
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x56adc0]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x56adc0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
mov esi, ecx
call fcn.00431090
add esp, 4
xor ebx, ebx
mov dword [esp + 0x48], ebx
cmp dword [esp + 0x10], ebx
je 0x431320
cmp dword [esi + 0x14], 8
jb 0x431240
mov eax, dword [esi]
jmp 0x431242
mov eax, esi
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 2
call fcn.0040e4f0
mov ecx, eax
add esp, 8
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x431270
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.004042dc
mov edi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push ebx
push 1
push 0x572238
call esi
sub eax, ebx
je 0x431377
dec eax
je 0x431290
mov edi, dword [0x57223c]
cmp edi, ebx
je 0x4312fc
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x4312c3
cmp eax, 0x80
jne 0x4312fc
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
je 0x4312f5
cmp dword [esp + 0x30], 0x10
mov eax, dword [esp + 0x1c]
jae 0x4312da
lea eax, [esp + 0x1c]
mov esi, dword [esp + 0x10]
mov edx, dword [esi]
push edx
push ecx
push 1
push eax
call fcn.004f8c8f
mov eax, dword [esi]
push eax
call fcn.004f8842
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [esp + 0x30], 0x10
jb 0x431310
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004f77ab
add esp, 4
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
mov dword [esp + 0x48], 0xffffffff
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x431359
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x431359
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x431359
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
push str.KOMETA_LOGGING_MUTEX
push ebx
push ebx
call edi
push 1
push 2
push 0x572238
mov dword [0x57223c], eax
call esi
jmp 0x431290
Function at 0x432520
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x531120
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x56adc0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x14]
push edx
xor ebx, ebx
xor edi, edi
call eax
mov dword [esp + 0x30], ebx
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x432617
lea esp, [esp]
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x43257f
cmp eax, ecx
je 0x432617
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x1c]
push eax
inc edi
call edx
mov byte [esp + 0x30], 1
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov esi, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
cmp esi, ebx
je 0x4325d5
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4325d5
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4325d5
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov byte [esp + 0x30], bl
mov esi, dword [esp + 0x20]
cmp esi, ebx
je 0x43260b
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x43260b
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x43260b
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
jne 0x432570
mov dword [esp + 0x30], 0xffffffff
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x432651
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x432651
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x432651
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x434a40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533f80
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push edi
mov eax, dword [0x56adc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x434b64
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x434b64
test al, 0x10
jne 0x434b64
call fcn.00433ae0
mov edi, eax
test edi, edi
je 0x434b64
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], edi
call fcn.00439020
push edi
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.004514a0
add esp, 0xc
mov dword [ebp - 4], 0
test esi, esi
je 0x434ada
cmp byte [esi], 0
je 0x434ada
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x434ac7
sub eax, edx
push eax
push esi
lea ecx, [edi + 0x14]
call fcn.004042dc
mov eax, dword [ebp + 8]
push 1
xor ecx, ecx
call fcn.004b2368
add esp, 4
mov dword [edi + 0xc], eax
test eax, eax
je 0x434b55
mov ecx, dword [edi + 0x10]
push ecx
lea edx, [ebp - 0x20]
push edx
mov ecx, eax
call fcn.00433b20
add esp, 8
mov byte [ebp - 4], 1
call fcn.00436a00
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00423c50
cmp dword [edi], 0
je 0x434b55
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx], ecx
mov edx, dword [ebx + 4]
mov dword [ebx + 4], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0xffffffff
call fcn.00423c50
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00423c50
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x4376b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x530fb3
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x56adc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x4376ec
mov eax, dword [esi]
jmp 0x4376ee
mov eax, esi
test eax, eax
je 0x43776f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43776f
test al, 0x10
je 0x43776f
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x437722
mov eax, dword [ecx]
mov edx, dword [eax + 0x24]
call edx
test al, al
jne 0x43776f
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
cmp eax, edi
jne 0x43776f
push 0x54
call fcn.004f7806
add esp, 4
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x437769
mov edx, dword [ebp + 8]
push edi
sub esp, 8
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [ebp + 0xc]
mov dword [ecx + 4], edx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], esp
test ecx, ecx
je 0x43775e
add ecx, 4
mov edx, 1
lock xadd dword [ecx], edx
push esi
push eax
call fcn.00434290
mov edi, eax
jmp 0x437771
xor eax, eax
mov edi, eax
jmp 0x437771
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4377a9
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4377a9
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4377a9
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43df30
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5329eb
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x56adc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x572204]
xor ebx, ebx
cmp eax, ebx
jne 0x43df67
xor al, al
jmp 0x43df81
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x43df7f
cmp eax, 0x80
je 0x43df7f
xor al, al
jmp 0x43df81
mov al, 1
mov byte [ebp - 0xd], al
mov dword [ebp - 4], ebx
cmp al, bl
je 0x43e11b
call fcn.0043da20
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, ebx
je 0x43e10b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov eax, dword [0x56fa7c]
mov edx, dword [eax + 4]
mov ecx, 0x56fa7c
mov dword [ebp - 0x20], edi
call edx
cmp eax, 0xffffffff
je 0x43e10b
mov eax, dword [0x56fa7c]
mov edx, dword [eax + 0xc]
mov ecx, 0x56fa7c
call edx
cmp edi, eax
je 0x43e10b
mov ecx, dword [esi + 4]
cmp ecx, ebx
jne 0x43e013
push 0x10
call fcn.004f7806
add esp, 4
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x43e009
mov esi, eax
call fcn.0043e380
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], bl
mov dword [esi + 4], eax
jmp 0x43e02e
xor eax, eax
mov byte [ebp - 4], bl
mov dword [esi + 4], eax
jmp 0x43e02e
mov esi, dword [ecx + 4]
lea ebx, [ebp - 0x18]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x18], edi
call fcn.0042d730
cmp dword [eax], esi
jne 0x43e0d4
xor ebx, ebx
push 0xc
call fcn.004f7806
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x43e055
push edi
push ebx
push 0x100000
mov dword [esi], edi
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [esi + 8], eax
jmp 0x43e057
xor esi, esi
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 2
cmp esi, ebx
je 0x43e103
cmp dword [esi + 8], ebx
je 0x43e103
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], esi
mov esi, dword [eax + 4]
lea edi, [ebp - 0x28]
call fcn.0043e9c0
push eax
push esi
lea esi, [ebp - 0x28]
call fcn.0043e570
cmp byte [ebp - 0x24], bl
je 0x43e103
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
push ecx
push 4
push edi
push 0x43ddc0
push ebx
push ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, ebx
je 0x43e0f0
push 1
push esi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x18]
call fcn.0043e350
lea eax, [ebp - 0xd]
call fcn.0043d7e0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x14]
mov ebx, dword [edx + 4]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], edi
call fcn.0043e300
xor ebx, ebx
lea eax, [ebp - 0x18]
call fcn.0043e350
mov eax, dword [0x572204]
cmp eax, ebx
je 0x43e11b
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor al, al
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 0x43eaf0
Capabilities:
Hash data with md5

Disassembly:
push esi
push 0x58
lea esi, [edi + 8]
push 0
push esi
mov dword [edi], vtable.hash::hash_CTX_MD5_impl.0
call fcn.004fbb00
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [edi + 4], 1
mov eax, edi
pop esi
ret

Function at 0x43ec90
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52f5c8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x56adc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x60
call fcn.004f7806
mov edi, eax
add esp, 4
test edi, edi
je 0x43ed0d
push 0x58
lea esi, [edi + 8]
push 0
push esi
mov dword [edi], vtable.hash::hash_CTX_MD5_impl.0
call fcn.004fbb00
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
add esp, 0xc
mov dword [edi + 4], 1
jmp 0x43ed0f
xor edi, edi
test edi, edi
je 0x43ed2b
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x446e30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [edx]
xor esi, esi
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
lea esp, [esp]
test edi, edi
je 0x446ee8
cmp byte [edi], 0
mov eax, edi
je 0x446e66
nop
inc eax
cmp byte [eax], 0
jne 0x446e60
sub eax, edi
and eax, 0x3fffffff
cmp dword [ebx + 0x1b0], 0
lea ecx, [ebx + 0x1a4]
mov esi, eax
je 0x446ec1
xor eax, eax
mov edx, esi
mov ecx, edi
test esi, esi
jle 0x446eb1
jmp 0x446e90
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x548ae0]
lea ebx, [eax*8]
xor edi, ebx
dec edx
xor eax, edi
inc ecx
test edx, edx
jg 0x446e90
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 8]
xor edx, edx
div dword [ebx + 0x1a4]
lea ecx, [ebx + 0x1a4]
jmp 0x446ec3
xor edx, edx
push esi
push edi
mov eax, ecx
call fcn.004478c0
add esp, 8
test eax, eax
je 0x446ede
mov eax, dword [eax + 8]
mov esi, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
jmp 0x446eeb
mov esi, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
xor eax, eax
jmp 0x446eeb
mov eax, dword [ebx + 8]
test eax, eax
je 0x446efd
movzx ecx, byte [esi + 0x548adc]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4 - 0x14]
cmp dword [eax + 0xc], 0
jne 0x446f1c
inc esi
mov dword [ebp - 4], esi
cmp esi, 3
jl 0x446e50
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov ecx, dword [eax + 0xc]
pop edi
pop esi
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], 0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4476f0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
test ecx, ecx
jle 0x44771d
push esi
push edi
jmp 0x447700
movzx esi, byte [edx]
movzx esi, byte [esi + 0x548ae0]
lea edi, [eax*8]
xor esi, edi
dec ecx
xor eax, esi
inc edx
test ecx, ecx
jg 0x447700
pop edi
pop esi
ret
Function at 0x447780
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0xc
push ebx
push esi
lea ecx, [eax*8]
push edi
mov edi, dword [ebp + 8]
cmp ecx, 0x400
jbe 0x4477a3
mov eax, 0x80
cmp eax, dword [edi]
jne 0x4477b0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [eax*8]
push edx
call fcn.0044eef0
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
test esi, esi
je 0x4477a7
mov eax, dword [edi + 0xc]
push eax
call fcn.0044f1b0
add esp, 4
push esi
mov dword [edi + 0xc], esi
call dword [0x56f8a8]
mov ebx, eax
shr ebx, 3
add esp, 4
lea ecx, [ebx*8]
push ecx
push 0
push esi
mov dword [ebp + 0xc], ebx
mov dword [edi], ebx
call fcn.004fbb00
mov ecx, dword [edi + 8]
add esp, 0xc
mov dword [edi + 8], 0
test ecx, ecx
je 0x4478ad
mov edx, dword [ecx + 0x10]
mov esi, dword [ecx + 0xc]
xor eax, eax
test edx, edx
jle 0x447841
lea ecx, [ecx]
movzx edi, byte [esi]
movzx edi, byte [edi + 0x548ae0]
lea ebx, [eax*8]
xor edi, ebx
dec edx
xor eax, edi
inc esi
test edx, edx
jg 0x447820
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
xor edx, edx
div ebx
mov eax, dword [ebp - 4]
lea eax, [eax + edx*8]
test eax, eax
je 0x447889
mov esi, dword [eax]
test esi, esi
je 0x44785f
mov edx, dword [eax + 4]
jmp 0x447861
xor edx, edx
inc esi
mov dword [eax], esi
mov dword [eax + 4], ecx
test edx, edx
je 0x447889
mov dword [ecx], edx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 4]
test eax, eax
je 0x447881
mov dword [eax], ecx
mov dword [edx + 4], ecx
jmp 0x4478a2
mov dword [edi + 8], ecx
mov dword [edx + 4], ecx
jmp 0x4478a2
mov edx, dword [edi + 8]
mov dword [ecx], edx
mov eax, dword [edi + 8]
test eax, eax
je 0x447898
mov dword [eax + 4], ecx
mov dword [ecx + 4], 0
mov dword [edi + 8], ecx
mov ecx, dword [ebp - 8]
test ecx, ecx
jne 0x447811
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x448140
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, edi
test edi, edi
jne 0x44815e
xor ebx, ebx
mov dword [ebp - 8], ebx
jmp 0x448174
cmp byte [edi], al
je 0x448167
inc ecx
cmp byte [ecx], al
jne 0x448162
sub ecx, edi
and ecx, 0x3fffffff
mov ebx, ecx
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x14]
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ecx
test ecx, ecx
jle 0x448275
jmp 0x448193
mov edi, dword [ebp + 0xc]
cmp esi, 2
jge 0x44819b
xor esi, 1
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4481fb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov edx, esi
shl edx, 4
mov edi, dword [edx + eax]
mov dl, byte [ecx]
test dl, dl
je 0x4481dd
jmp 0x4481c0
movzx eax, byte [edi]
movzx edx, dl
mov dl, byte [edx + 0x548ae0]
cmp dl, byte [eax + 0x548ae0]
jne 0x4481dd
mov dl, byte [ecx + 1]
inc ecx
inc edi
test dl, dl
jne 0x4481c0
movzx ecx, byte [ecx]
movzx edx, byte [edi]
movzx edx, byte [edx + 0x548ae0]
movzx ecx, byte [ecx + 0x548ae0]
sub ecx, edx
mov eax, dword [ebp - 4]
jne 0x448265
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
add esi, esi
mov esi, dword [eax + esi*8 + 0xc]
cmp dword [esi + 0x14], 0
je 0x448248
xor eax, eax
mov edx, ebx
mov ecx, edi
test ebx, ebx
jle 0x44823e
jmp 0x448220
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x548ae0]
lea ebx, [eax*8]
xor edi, ebx
dec edx
xor eax, edi
inc ecx
test edx, edx
jg 0x448220
mov ebx, dword [ebp - 8]
mov edi, dword [ebp + 0xc]
xor edx, edx
div dword [esi + 8]
jmp 0x44824a
xor edx, edx
push ebx
push edi
lea eax, [esi + 8]
call fcn.004478c0
add esp, 8
test eax, eax
je 0x44827c
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
test eax, eax
jne 0x448275
mov esi, dword [ebp - 0xc]
inc esi
mov dword [ebp - 0xc], esi
cmp esi, dword [ebp - 0x10]
jl 0x448190
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x448265
Function at 0x448380
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 8], esi
mov ecx, eax
test eax, eax
jne 0x44839d
xor ebx, ebx
mov dword [ebp - 0xc], ebx
jmp 0x4483b5
cmp byte [eax], 0
je 0x4483a8
inc ecx
cmp byte [ecx], 0
jne 0x4483a2
sub ecx, eax
and ecx, 0x3fffffff
mov ebx, ecx
mov dword [ebp - 0xc], ecx
mov ecx, dword [edx + 0x14]
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
jle 0x448497
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x10], ecx
push edi
nop
mov ecx, eax
cmp eax, 2
jge 0x4483da
xor ecx, 1
mov edx, dword [ebp + 0xc]
shl ecx, 4
add ecx, dword [ebp - 0x10]
mov edi, dword [ecx + 0xc]
test edx, edx
je 0x44842a
mov esi, dword [ecx]
mov cl, byte [edx]
test cl, cl
je 0x448412
movzx eax, byte [esi]
movzx ecx, cl
mov cl, byte [ecx + 0x548ae0]
cmp cl, byte [eax + 0x548ae0]
jne 0x44840f
mov cl, byte [edx + 1]
inc edx
inc esi
test cl, cl
jne 0x4483f2
mov eax, dword [ebp - 4]
movzx edx, byte [edx]
movzx ecx, byte [esi]
movzx ecx, byte [ecx + 0x548ae0]
movzx edx, byte [edx + 0x548ae0]
sub edx, ecx
jne 0x448486
cmp dword [edi + 0x24], 0
lea esi, [edi + 0x18]
je 0x448464
mov ecx, dword [ebp + 8]
xor eax, eax
mov edx, ebx
test ebx, ebx
jle 0x44845e
mov edi, edi
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x548ae0]
lea ebx, [eax*8]
xor edi, ebx
dec edx
xor eax, edi
inc ecx
test edx, edx
jg 0x448440
mov ebx, dword [ebp - 0xc]
xor edx, edx
div dword [esi]
jmp 0x448466
xor edx, edx
mov eax, dword [ebp + 8]
push ebx
push eax
mov eax, esi
call fcn.004478c0
add esp, 8
test eax, eax
je 0x44849d
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
test eax, eax
jne 0x448496
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ebp - 0x14]
jl 0x4483d0
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 8], 0
jmp 0x448483
Function at 0x44af40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x56adc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [esi]
mov dword [ebp - 0x40], edx
mov edx, dword [ecx + 0x10]
add eax, eax
mov eax, dword [edx + eax*8]
mov dword [ebp - 0x28], eax
mov eax, 1
push edi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], eax
jmp 0x44af83
mov esi, dword [ebp - 0x30]
push eax
push str.sqlite_stat_d
lea ecx, [ebp - 0x1c]
push ecx
push 0x18
call fcn.0047e7b0
mov ecx, dword [esi]
xor ebx, ebx
add esp, 0x10
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x1c]
cmp byte [ebp - 0x1c], bl
je 0x44afb5
lea esp, [esp]
inc eax
cmp byte [eax], bl
jne 0x44afb0
lea edx, [ebp - 0x1c]
sub eax, edx
and eax, 0x3fffffff
mov edi, eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x38], eax
cmp eax, ebx
jle 0x44b0d1
jmp 0x44afda
mov ecx, dword [ebp - 0x34]
mov edx, ebx
cmp ebx, 2
jge 0x44afe4
xor edx, 1
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x44b03b
mov ecx, dword [ecx + 0x10]
mov esi, edx
add esi, esi
mov esi, dword [ecx + esi*8]
mov ecx, eax
mov cl, byte [ecx]
test cl, cl
je 0x44b020
lea ecx, [ecx]
movzx ebx, byte [esi]
movzx ecx, cl
mov cl, byte [ecx + 0x548ae0]
cmp cl, byte [ebx + 0x548ae0]
jne 0x44b01d
mov cl, byte [eax + 1]
inc eax
inc esi
test cl, cl
jne 0x44b000
mov ebx, dword [ebp - 0x20]
movzx eax, byte [eax]
movzx ecx, byte [esi]
movzx ecx, byte [ecx + 0x548ae0]
movzx eax, byte [eax + 0x548ae0]
sub eax, ecx
jne 0x44b09d
mov ecx, dword [ebp - 0x34]
mov ecx, dword [ecx + 0x10]
add edx, edx
mov esi, dword [ecx + edx*8 + 0xc]
cmp dword [esi + 0x14], 0
je 0x44b07d
xor eax, eax
mov edx, edi
lea ecx, [ebp - 0x1c]
test edi, edi
jle 0x44b076
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x548ae0]
lea ebx, [eax*8]
xor edi, ebx
dec edx
xor eax, edi
inc ecx
test edx, edx
jg 0x44b055
mov ebx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x44]
xor edx, edx
div dword [esi + 8]
jmp 0x44b07f
xor edx, edx
lea eax, [ebp - 0x1c]
push edi
push eax
lea eax, [esi + 8]
call fcn.004478c0
add esp, 8
test eax, eax
je 0x44b0f2
mov eax, dword [eax + 8]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x44b0b0
inc ebx
mov dword [ebp - 0x20], ebx
cmp ebx, dword [ebp - 0x38]
jl 0x44afd7
cmp dword [ebp - 0x24], 0
je 0x44b0d1
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x28]
push edx
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x1c]
push eax
push ecx
push str.DELETE_FROM__Q._s_WHERE__s_Q
push edx
call fcn.004480a0
add esp, 0x18
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, 4
jle 0x44af80
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x24], 0
jmp 0x44b09d