joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100603b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10135318
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10186bd0]
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
lea edi, [esi + 0x4c]
xor bl, bl
cmp dword [edi + 0x14], 8
jb 0x100603ec
mov eax, dword [edi]
jmp 0x100603ee
mov eax, edi
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3c], eax
cmp eax, 0xffffffff
jne 0x10060416
xor al, al
jmp 0x100604de
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10060435
mov eax, dword [ebp - 0x38]
mov bl, 1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
jmp 0x10060441
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x30], eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x100604dc
cmp dword [ebp - 0x2c], 0
jl 0x100604dc
jg 0x10060467
cmp dword [ebp - 0x30], 0xa00000
jb 0x100604dc
mov eax, dword [esi + 0x68]
lea ebx, [esi + 0x68]
test eax, eax
je 0x10060478
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.10027760
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.10060570
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.100602a0
test al, al
je 0x100604bc
mov ecx, esi
call fcn.1005b880
mov eax, dword [esi]
mov ecx, esi
push ebx
mov eax, dword [eax]
call eax
mov ecx, dword [ebp - 0x14]
mov bl, al
cmp ecx, 8
jb 0x100604dc
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.10028060
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.100eb369
mov esp, ebp
pop ebp
ret 4

Function at 0x10060500
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x1006054e
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
jne 0x1006054b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1006054b
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [esi], eax
cmp dword [esi], 0
mov ecx, dword [ebp + 0x1c]
setne bl
cmp ecx, 8
jb 0x10060566
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.10028060
pop esi
mov al, bl
pop ebx
pop ebp
ret 0x18
Function at 0x10060920
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
mov eax, edx
push edi
mov edi, esi
mov dword [esp + 0x10], eax
shr edi, 2
xor ebx, ebx
xor edx, edx
mov dword [esp + 0x1c], edi
mov ebp, ecx
test edi, edi
je 0x100609f9
cmp edi, 8
jb 0x100609d6
mov ebx, dword [esp + 0x10]
mov eax, edi
and eax, 7
mov ecx, edi
sub ecx, eax
mov esi, ebp
sub esi, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], esi
lea eax, [ebx + 0x10]
mov esi, dword [esp + 0x24]
xorps xmm3, xmm3
mov ebx, dword [esp + 0x14]
movaps xmm2, xmm3
mov edi, dword [esp + 0x18]
mov ecx, ebp
movups xmm0, xmmword [ecx]
add edx, 8
lea ecx, [ecx + 0x20]
lea eax, [eax + 0x20]
movups xmm1, xmmword [eax - 0x30]
pxor xmm1, xmm0
por xmm3, xmm1
movups xmm1, xmmword [edi + eax - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
por xmm2, xmm1
cmp edx, ebx
jb 0x10060981
mov edi, dword [esp + 0x1c]
por xmm2, xmm3
mov eax, dword [esp + 0x10]
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd ebx, xmm2
cmp edx, edi
jae 0x100609f9
mov esi, ebp
lea ecx, [eax + edx*4]
sub edi, edx
sub esi, eax
add edx, edi
mov eax, dword [ecx + esi]
lea ecx, [ecx + 4]
xor eax, dword [ecx - 4]
or ebx, eax
sub edi, 1
jne 0x100609e5
mov esi, dword [esp + 0x24]
shl edx, 2
sub esi, edx
jne 0x10060a0f
pop edi
xor eax, eax
test ebx, ebx
pop esi
pop ebp
sete al
pop ebx
add esp, 0x10
ret
mov ecx, dword [esp + 0x10]
add ebp, edx
add ecx, edx
mov eax, ebx
shr eax, 0x10
mov edx, ebx
shr edx, 0x18
xor edi, edi
or dl, al
mov dword [esp + 0x10], ecx
mov eax, ebx
shr eax, 8
or dl, al
or dl, bl
mov dword [esp + 0x1c], edx
test esi, esi
je 0x10060af5
cmp esi, 0x20
jb 0x10060ad9
mov eax, esi
mov ebx, esi
and eax, 0x1f
mov edx, ebp
sub ebx, eax
xorps xmm3, xmm3
sub edx, ecx
mov eax, ecx
mov dword [esp + 0x18], edx
movaps xmm2, xmm3
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
nop dword [eax + eax]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [eax + ecx - 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x10]
por xmm3, xmm1
movups xmm1, xmmword [edi + ebp + 0x10]
add edi, 0x20
pxor xmm1, xmm0
por xmm2, xmm1
cmp edi, ebx
jb 0x10060a70
por xmm2, xmm3
mov ecx, dword [esp + 0x10]
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd eax, xmm2
or dl, al
cmp edi, esi
jae 0x10060af5
sub ebp, dword [esp + 0x10]
add ecx, edi
sub esi, edi
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
or dl, al
sub esi, 1
jne 0x10060ae5
pop edi
xor eax, eax
test dl, dl
pop esi
pop ebp
sete al
pop ebx
add esp, 0x10
ret
Function at 0x100655d0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10135c70
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10186bd0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x10], edx
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov byte [edx + 0x51], 0
mov dword [edx + 0x58], 0x10
cmp byte [edx + 0x51], 0
jne 0x10065622
mov byte [edx + 0x51], 1
lea ecx, [edx + 0x10]
jmp 0x10065624
xor ecx, ecx
mov dword [edx + 0x5c], ecx
mov byte [edx + 0xa1], 0
mov dword [edx + 0xa8], 0x10
cmp byte [edx + 0xa1], 0
jne 0x1006564d
mov byte [edx + 0xa1], 1
lea ecx, [edx + 0x60]
jmp 0x1006564f
xor ecx, ecx
mov dword [edx + 0xac], ecx
mov eax, edx
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x10069db0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10186bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x100
push eax
lea eax, [ebp - 0x210]
mov esi, ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x10069e1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._Failed_in_getting_user_name_error:_d
push 0x101648d4
push ecx
call fcn.1002e950
add esp, 4
push eax
call fcn.1002f880
add esp, 0x10
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100eb369
mov esp, ebp
pop ebp
ret
cmp word [ebp - 0x210], 0
jne 0x10069e2a
xor ecx, ecx
jmp 0x10069e42
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10069e33
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.10027660
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.100eb369
mov esp, ebp
pop ebp
ret
Function at 0x1006de70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012ff06
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10186bd0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x30]
xor al, al
mov ecx, dword [esi + 0x2c]
mov edi, edx
rep stosb byte es:[edi], al
push edx
call fcn.1010458a
add esp, 4
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1006debf
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x1006ded0
push 0x44
push esi
call fcn.100ebb39
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x1006e800
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012ff06
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10186bd0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x50]
xor al, al
mov ecx, dword [esi + 0x4c]
mov edi, edx
rep stosb byte es:[edi], al
push edx
call fcn.1010458a
mov edx, dword [esi + 0x30]
xor al, al
mov ecx, dword [esi + 0x2c]
mov edi, edx
rep stosb byte es:[edi], al
push edx
call fcn.1010458a
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1006e861
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x1006e872
push 0x60
push esi
call fcn.100ebb39
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x1006f450
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push esi
xor eax, eax
push edi
movzx esi, byte [eax + 0x1014aa80]
mov edx, esi
mov ecx, esi
shr edx, 7
imul edi, edx, 0x1b000000
shl ecx, 0x19
imul edx, edx, 0x11b
xor edi, ecx
mov ecx, esi
shl ecx, 8
or ecx, esi
shl ecx, 8
or edi, ecx
lea ecx, [esi + esi]
xor edx, ecx
xor ecx, ecx
xor edx, esi
or ecx, edi
or edx, edi
mov dword [eax*8 + 0x1018d0a0], ecx
mov dword [eax*8 + 0x1018d0a4], edx
inc eax
cmp eax, 0x100
jl 0x1006f454
xorps xmm0, xmm0
pop edi
movlpd qword [0x1018d8a8], xmm0
movlpd qword [0x1018d8a0], xmm0
mov byte [0x1018d087], 1
pop esi
ret
Function at 0x10078a50
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, edx
xor esi, esi
mov ebx, ecx
test edi, edi
jle 0x10078a7d
nop dword [eax]
movzx eax, byte [ebx]
lea ecx, [esi*8]
dec edi
lea ebx, [ebx + 1]
movzx edx, byte [eax + 0x10148990]
xor edx, ecx
xor esi, edx
test edi, edi
jg 0x10078a60
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x10078b00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, edx
mov ebx, ecx
mov ecx, 0x80
mov dword [ebp - 4], ebx
push edi
lea eax, [esi*8]
cmp eax, 0x400
cmova esi, ecx
cmp esi, dword [ebx]
jne 0x10078b31
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x1018d8d8]
test eax, eax
je 0x10078b3c
call eax
lea eax, [esi*8]
push eax
call fcn.10074cc0
mov ecx, dword [0x1018d8dc]
add esp, 4
mov esi, eax
mov dword [ebp - 0xc], esi
test ecx, ecx
je 0x10078b5d
call ecx
test esi, esi
je 0x10078b28
push dword [ebx + 0xc]
call fcn.10074fe0
add esp, 4
mov dword [ebx + 0xc], esi
push esi
call dword [0x10188390]
shr eax, 3
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebx], eax
lea ecx, [eax*8]
push ecx
push 0
push esi
call fcn.10104290
mov ecx, dword [ebx + 8]
add esp, 0xc
mov dword [ebx + 8], 0
test ecx, ecx
je 0x10078c40
mov esi, dword [ecx + 0x10]
xor edi, edi
mov ebx, dword [ecx + 0xc]
test esi, esi
jle 0x10078bcf
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
dec esi
movzx edx, byte [eax + 0x10148990]
lea eax, [edi*8]
xor edx, eax
xor edi, edx
test esi, esi
jg 0x10078bb2
xor edx, edx
mov ebx, dword [ecx]
mov eax, edi
div dword [ebp - 8]
mov eax, dword [ebp - 0xc]
lea esi, [eax + edx*8]
test esi, esi
je 0x10078c1a
mov eax, dword [esi]
test eax, eax
je 0x10078bed
mov edx, dword [esi + 4]
jmp 0x10078bef
xor edx, edx
inc eax
mov dword [esi + 4], ecx
mov dword [esi], eax
test edx, edx
je 0x10078c1a
mov dword [ecx], edx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 4]
test eax, eax
je 0x10078c0f
mov dword [eax], ecx
mov dword [edx + 4], ecx
jmp 0x10078c36
mov eax, dword [ebp - 4]
mov dword [eax + 8], ecx
mov dword [edx + 4], ecx
jmp 0x10078c36
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov eax, dword [edx + 8]
test eax, eax
je 0x10078c2c
mov dword [eax + 4], ecx
mov dword [ecx + 4], 0
mov dword [edx + 8], ecx
mov ecx, ebx
test ebx, ebx
jne 0x10078ba6
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10078d60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, ecx
mov dword [ebp - 8], edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [eax + 0xc], 0
je 0x10078db4
push ebx
push esi
xor esi, esi
mov ebx, edx
push edi
mov edi, ecx
test ecx, ecx
jle 0x10078da4
movzx eax, byte [ebx]
lea ecx, [esi*8]
dec edi
lea ebx, [ebx + 1]
movzx edx, byte [eax + 0x10148990]
xor edx, ecx
xor esi, edx
test edi, edi
jg 0x10078d84
mov ecx, dword [ebp + 8]
mov eax, esi
xor edx, edx
mov esi, dword [ebp - 4]
pop edi
div dword [esi]
mov eax, esi
pop esi
pop ebx
jmp 0x10078db6
xor edx, edx
push edx
mov edx, dword [ebp - 8]
push ecx
mov ecx, eax
call fcn.10078c50
add esp, 8
test eax, eax
je 0x10078dd0
mov eax, dword [eax + 8]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10078de0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], edi
cmp dword [esi], 0
je 0x10078e35
mov eax, dword [ebp + 8]
xor edi, edi
mov ebx, eax
test eax, eax
jle 0x10078e25
mov esi, edx
movzx eax, byte [esi]
lea ecx, [edi*8]
dec ebx
lea esi, [esi + 1]
movzx edx, byte [eax + 0x10148990]
xor edx, ecx
xor edi, edx
test ebx, ebx
jg 0x10078e05
mov esi, dword [ebp - 0xc]
mov eax, edi
xor edx, edx
div dword [esi]
mov edi, dword [ebp - 8]
mov ebx, edx
mov dword [ebp - 4], edx
jmp 0x10078e3a
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
push dword [ebp + 8]
mov edx, edi
mov ecx, esi
call fcn.10078c50
add esp, 8
test eax, eax
je 0x10078e82
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x10078e72
push ebx
mov edx, eax
mov ecx, esi
call fcn.10078d00
mov eax, dword [ebp - 0xc]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x10078f20
push 0x14
call fcn.10074cc0
mov edi, eax
add esp, 4
test edi, edi
jne 0x10078ea6
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x10], eax
mov dword [edi + 8], ebx
inc dword [esi + 4]
mov edx, dword [esi + 4]
cmp edx, 0xa
jb 0x10078ee6
mov eax, dword [esi]
add eax, eax
cmp edx, eax
jbe 0x10078ee6
add edx, edx
mov ecx, esi
call fcn.10078b00
test eax, eax
je 0x10078ee6
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.10078a50
xor edx, edx
div dword [esi]
jmp 0x10078ee9
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10078f07
push edi
lea edx, [eax + edx*8]
mov ecx, esi
call fcn.10078a90
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 8]
mov dword [edi], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x10078f16
mov dword [eax + 4], edi
mov dword [edi + 4], 0
mov dword [esi + 8], edi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100aa140
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov eax, edx
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edx
push esi
mov esi, ecx
mov dword [ebp - 8], esi
push edi
mov edi, eax
test eax, eax
je 0x100aa16f
cmp byte [eax], dl
je 0x100aa167
inc edi
cmp byte [edi], dl
jne 0x100aa162
sub edi, eax
and edi, 0x3fffffff
xor ebx, ebx
cmp dword [esi + 0x14], edx
jle 0x100aa21b
nop word [eax + eax]
mov eax, ebx
mov ecx, ebx
xor eax, 1
cmp ebx, 2
cmovl ecx, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
test eax, eax
je 0x100aa1eb
mov edx, ecx
mov ecx, dword [esi + 0x10]
add edx, edx
mov esi, dword [ecx + edx*8]
mov ecx, eax
mov cl, byte [ecx]
test cl, cl
je 0x100aa1cd
nop dword [eax]
movzx edx, byte [esi]
movzx ecx, cl
mov cl, byte [ecx + 0x10148990]
cmp cl, byte [edx + 0x10148990]
jne 0x100aa1cd
mov cl, byte [eax + 1]
inc eax
inc esi
test cl, cl
jne 0x100aa1b0
movzx ecx, byte [esi]
movzx eax, byte [eax]
mov esi, dword [ebp - 8]
movzx ecx, byte [ecx + 0x10148990]
movzx eax, byte [eax + 0x10148990]
sub eax, ecx
jne 0x100aa20e
mov ecx, dword [ebp - 0xc]
mov eax, dword [esi + 0x10]
add ecx, ecx
mov edx, dword [ebp - 0x10]
push edi
mov ecx, dword [eax + ecx*8 + 0xc]
add ecx, 8
call fcn.10078d60
mov edx, eax
add esp, 4
mov dword [ebp - 4], edx
test edx, edx
jne 0x100aa21b
jmp 0x100aa211
mov edx, dword [ebp - 4]
inc ebx
cmp ebx, dword [esi + 0x14]
jl 0x100aa180
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100aa340
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, edx
xor edx, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
push ebx
push edi
mov edi, eax
test eax, eax
je 0x100aa36d
cmp byte [eax], dl
je 0x100aa365
nop dword [eax]
inc edi
cmp byte [edi], dl
jne 0x100aa360
sub edi, eax
and edi, 0x3fffffff
mov eax, dword [ecx + 0x14]
xor ebx, ebx
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x100aa419
push esi
mov esi, dword [ecx + 0x10]
mov dword [ebp - 0x14], esi
mov ecx, ebx
mov eax, ebx
xor ecx, 1
cmp ebx, 2
cmovl eax, ecx
mov ecx, dword [ebp + 8]
shl eax, 4
add esi, eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 8], eax
test ecx, ecx
je 0x100aa3eb
mov esi, dword [esi]
mov eax, ecx
mov cl, byte [ecx]
test cl, cl
je 0x100aa3d0
nop dword [eax]
movzx edx, byte [esi]
movzx ecx, cl
mov cl, byte [ecx + 0x10148990]
cmp cl, byte [edx + 0x10148990]
jne 0x100aa3cd
mov cl, byte [eax + 1]
inc eax
inc esi
test cl, cl
jne 0x100aa3b0
mov edx, dword [ebp - 4]
movzx eax, byte [eax]
movzx ecx, byte [esi]
movzx eax, byte [eax + 0x10148990]
movzx ecx, byte [ecx + 0x10148990]
sub eax, ecx
jne 0x100aa403
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
lea ecx, [eax + 0x18]
push edi
call fcn.10078d60
mov edx, eax
add esp, 4
mov dword [ebp - 4], edx
test edx, edx
jne 0x100aa410
mov esi, dword [ebp - 0x14]
inc ebx
cmp ebx, dword [ebp - 0x10]
jl 0x100aa384
pop esi
pop edi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100aa720
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x20], ebx
push edi
test esi, esi
je 0x100aa8d2
test ebx, ebx
je 0x100aa748
cmp dword [ebx + 0x200], 0
jne 0x100aa757
mov eax, 0xffff
add word [esi + 0x28], ax
jne 0x100aa8d2
mov edi, dword [esi + 8]
mov dword [ebp - 0x14], edi
test edi, edi
je 0x100aa887
mov esi, dword [edi + 0x14]
mov dword [ebp - 0x10], esi
test ebx, ebx
je 0x100aa77c
cmp dword [ebx + 0x200], 0
jne 0x100aa828
mov esi, dword [edi]
mov ecx, esi
mov dword [ebp - 0x24], esi
test esi, esi
je 0x100aa79e
cmp byte [esi], 0
je 0x100aa796
nop dword [eax]
inc ecx
cmp byte [ecx], 0
jne 0x100aa790
sub ecx, esi
and ecx, 0x3fffffff
mov eax, dword [edi + 0x18]
add eax, 0x18
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
mov edx, dword [eax]
mov dword [ebp - 0x28], edx
test edx, edx
je 0x100aa7fe
xor eax, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], esi
test ecx, ecx
jle 0x100aa7f4
mov edi, ecx
mov ebx, eax
mov ecx, esi
movzx eax, byte [ecx]
lea edx, [ebx*8]
dec edi
lea ecx, [ecx + 1]
movzx esi, byte [eax + 0x10148990]
xor esi, edx
xor ebx, esi
test edi, edi
jg 0x100aa7c5
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
jmp 0x100aa800
xor edx, edx
push edx
mov dword [ebp - 8], edx
mov edx, esi
push ecx
mov ecx, eax
call fcn.10078c50
add esp, 8
test eax, eax
je 0x100aa825
push dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov edx, eax
call fcn.10078d00
add esp, 4
mov esi, dword [ebp - 0x10]
test ebx, ebx
je 0x100aa835
cmp dword [ebx + 0x200], 0
jne 0x100aa84a
mov eax, dword [edi + 0x28]
test eax, eax
je 0x100aa84a
add dword [eax], 0xffffffff
jne 0x100aa84a
push eax
call fcn.10074fe0
add esp, 4
mov edx, dword [edi + 0x24]
mov ecx, ebx
call fcn.100a1f20
mov edx, dword [edi + 0x10]
mov ecx, ebx
call fcn.10075080
test byte [edi + 0x38], 0x10
je 0x100aa86e
mov edx, dword [edi + 0x20]
mov ecx, ebx
call fcn.10075080
mov edx, edi
mov ecx, ebx
call fcn.10075080
mov dword [ebp - 0x14], esi
mov edi, esi
test esi, esi
jne 0x100aa765
mov esi, dword [ebp - 0x2c]
mov edx, esi
mov ecx, ebx
call fcn.100b6210
mov edx, esi
mov ecx, ebx
call fcn.100aa6a0
mov edx, dword [esi]
mov ecx, ebx
call fcn.10075080
mov edx, dword [esi + 0x14]
mov ecx, ebx
call fcn.10075080
mov edx, dword [esi + 0xc]
mov ecx, ebx
call fcn.100be900
mov edx, dword [esi + 0x18]
mov ecx, ebx
call fcn.100a2ba0
mov edx, esi
mov ecx, ebx
call fcn.100cb880
mov edx, esi
mov ecx, ebx
call fcn.10075080
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100dd120
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10131f58
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10186bd0]
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], 0
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
jne 0x100dd17a
push str.OPM_db_is_not_initialized_in_opd_getOpdSchemaVersion
push 0x101648d4
call fcn.1002e950
push eax
call fcn.1002f880
add esp, 0xc
mov eax, 1
jmp 0x100dd1fc
push 0x35
push str.SELECT_value_FROM_opm_meta_WHERE_keyschema_version
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.1001d600
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [esi]
cmovae edx, dword [ebp - 0x28]
push edi
call fcn.100dc880
mov edi, eax
add esp, 4
test edi, edi
jne 0x100dd1e5
push 0x43
push str.SELECT_value_FROM_opm_meta_WHERE_keyschema_compatibility_version
lea ecx, [ebp - 0x28]
call fcn.1001d600
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
mov ecx, dword [esi]
cmovae edx, dword [ebp - 0x28]
push ebx
call fcn.100dc880
add esp, 4
mov edi, eax
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x100dd1fa
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.1001dd10
mov eax, edi
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.100eb369
mov esp, ebp
pop ebp
ret 8