joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10077754
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x1007779c
call fcn.10074883
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1007779c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x100777df
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x100777c8
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x100777c8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x100777dc
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x100845a9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.10074883
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x100845d6
xor eax, eax
jmp 0x1008467c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x100845cf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100845cf
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1006423e
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x1008462d
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x1008461c
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.10083331
push edi
mov ebx, eax
call fcn.10064278
pop ecx
test ebx, ebx
je 0x1008466f
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.100839be
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.10083a72
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4
Function at 0x100867f8
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x100c093d
call fcn.100a17f1
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.10002884
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x1008685a
call fcn.10074134
cmp eax, 1
jne 0x1008685a
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.1000191e
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.10001848
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.100010b0
mov dword [ebp + 8], reloc.ODBC32.dll_SQLAllocConnect
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.100010b0
mov eax, esi
call fcn.100a18c9
ret 0x10

Function at 0x10086883
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x100c093d
call fcn.100a17f1
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.10002884
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x100868e5
call fcn.10074134
cmp eax, 1
jne 0x100868e5
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.1000191e
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.10001848
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.100010b0
mov dword [ebp + 8], reloc.ODBC32.dll_SQLAllocConnect
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.100010b0
mov eax, esi
call fcn.100a18c9
ret 0x14
Function at 0x100a17e2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100ee20c]
jne 0x100a17ec
repz ret
jmp fcn.100aabfc

Function at 0x100b705d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.100aa573
and dword [ebp - 4], 0
cmp dword [0x10100150], 0
mov ebx, eax
jne 0x100b710e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100b71bf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100cf824
push edi
call esi
test eax, eax
je 0x100b71bf
push eax
call fcn.100aa501
mov dword [esp], 0x100cf814
push edi
mov dword [0x10100150], eax
call esi
push eax
call fcn.100aa501
mov dword [esp], 0x100cf800
push edi
mov dword [0x10100154], eax
call esi
push eax
call fcn.100aa501
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10100158], eax
call esi
push eax
call fcn.100aa501
pop ecx
mov dword [0x10100160], eax
test eax, eax
je 0x100b710e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100aa501
pop ecx
mov dword [0x1010015c], eax
mov eax, dword [0x1010015c]
cmp eax, ebx
je 0x100b7166
cmp dword [0x10100160], ebx
je 0x100b7166
push eax
call fcn.100aa57c
push dword [0x10100160]
mov esi, eax
call fcn.100aa57c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100b7166
test edi, edi
je 0x100b7166
call esi
test eax, eax
je 0x100b715d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100b715d
test byte [ebp - 0xc], 1
jne 0x100b7166
or dword [ebp + 0x10], 0x200000
jmp 0x100b719f
mov eax, dword [0x10100154]
cmp eax, ebx
je 0x100b719f
push eax
call fcn.100aa57c
pop ecx
test eax, eax
je 0x100b719f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100b719f
mov eax, dword [0x10100158]
cmp eax, ebx
je 0x100b719f
push eax
call fcn.100aa57c
pop ecx
test eax, eax
je 0x100b719f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10100150]
call fcn.100aa57c
pop ecx
test eax, eax
je 0x100b71bf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100b71c1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100019b7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100c58c0]
jne 0x100019c1
repz ret
jmp fcn.10005236

Function at 0x10007c1b
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x100c5ed0]
je 0x10007c36
inc edi
cmp edi, 0x17
jb 0x10007c27
cmp edi, 0x17
jae 0x10007db6
push ebp
push 3
call fcn.1000a690
cmp eax, 1
pop ecx
je 0x10007d82
push 3
call fcn.1000a690
test eax, eax
pop ecx
jne 0x10007c6a
cmp dword [0x100c7834], 1
je 0x10007d82
cmp ebx, 0xfc
je 0x10007db5
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x100c7f48
push ebp
call fcn.10005f3e
add esp, 0xc
test eax, eax
je 0x10007ca0
push esi
push esi
push esi
push esi
push esi
call fcn.10003c34
add esp, 0x14
push 0x104
mov esi, 0x100c7f61
push esi
push 0
mov byte [0x100c8065], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10007ce4
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10005f3e
add esp, 0xc
test eax, eax
je 0x10007ce4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10003c34
add esp, 0x14
push esi
call fcn.10008ac0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10007d29
push esi
call fcn.10008ac0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x100c825c
push 0x100a8e8c
sub ecx, eax
push ecx
push eax
call fcn.100060c6
add esp, 0x14
test eax, eax
je 0x10007d29
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10003c34
add esp, 0x14
jmp 0x10007d2b
xor esi, esi
push 0x100a8e88
push ebx
push ebp
call fcn.100085f0
add esp, 0xc
test eax, eax
je 0x10007d4b
push esi
push esi
push esi
push esi
push esi
call fcn.10003c34
add esp, 0x14
push dword [edi*8 + 0x100c5ed4]
push ebx
push ebp
call fcn.100085f0
add esp, 0xc
test eax, eax
je 0x10007d6d
push esi
push esi
push esi
push esi
push esi
call fcn.10003c34
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1000a4d3
add esp, 0xc
jmp 0x10007db5
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10007db5
cmp ebp, 0xffffffff
je 0x10007db5
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x100c5ed4]
push dword [esi]
call fcn.10008ac0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1000a4d3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.100047f1
xor ebx, ebx
cmp dword [0x100c828c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1000a5a9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1000a689
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1000a689
push eax
call fcn.10004783
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100c828c], eax
call esi
push eax
call fcn.10004783
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100c8290], eax
call esi
push eax
call fcn.10004783
mov dword [0x100c8294], eax
lea eax, [ebp - 0xc]
push eax
call fcn.10006527
test eax, eax
pop ecx
pop ecx
je 0x1000a577
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10003c34
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1000a5a9
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10004783
cmp eax, ebx
pop ecx
mov dword [0x100c829c], eax
je 0x1000a5a9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10004783
pop ecx
mov dword [0x100c8298], eax
mov eax, dword [0x100c8298]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1000a62e
cmp dword [0x100c829c], ecx
je 0x1000a62e
push eax
call fcn.100047fa
push dword [0x100c829c]
mov esi, eax
call fcn.100047fa
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1000a62e
cmp edi, ebx
je 0x1000a62e
call esi
cmp eax, ebx
je 0x1000a5fb
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000a5fb
test byte [ebp - 0x18], 1
jne 0x1000a62e
lea eax, [ebp - 0x10]
push eax
call fcn.1000655e
test eax, eax
pop ecx
je 0x1000a616
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10003c34
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1000a625
or dword [ebp + 0x10], 0x200000
jmp 0x1000a669
or dword [ebp + 0x10], 0x40000
jmp 0x1000a669
mov eax, dword [0x100c8290]
cmp eax, dword [ebp - 8]
je 0x1000a669
push eax
call fcn.100047fa
cmp eax, ebx
pop ecx
je 0x1000a669
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1000a669
mov eax, dword [0x100c8294]
cmp eax, dword [ebp - 8]
je 0x1000a669
push eax
call fcn.100047fa
cmp eax, ebx
pop ecx
je 0x1000a669
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100c828c]
call fcn.100047fa
cmp eax, ebx
pop ecx
je 0x1000a689
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000a68b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10015380
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor eax, eax
test ecx, ecx
jle 0x100153b1
push esi
push edi
jmp 0x10015390
movzx esi, byte [edx]
movzx esi, byte [esi + 0x100ab370]
lea edi, [eax*8]
xor esi, edi
sub ecx, 1
xor eax, esi
add edx, 1
test ecx, ecx
jg 0x10015390
pop edi
pop esi
ret

Function at 0x10017b00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x58
push ebx
push ebp
mov ebp, dword [esp + 0x64]
cmp dword [ebp + 4], 0x47
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ebx, dword [edi + 0x1c]
mov esi, eax
jne 0x10017b2e
mov eax, dword [esp + 0x74]
cmp byte [eax + 0x10], 1
jne 0x10017b2e
call fcn.1000fff0
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], edx
xor ecx, ecx
add esi, 8
test ebx, ebx
mov dword [esp + 0x14], ecx
jle 0x10017b91
jmp 0x10017b40
mov eax, dword [esi]
mov edx, eax
and edx, 0xff0000
mov ebp, eax
shr ebp, 0x10
or edx, ebp
mov ebp, eax
and ebp, 0xff00
shl eax, 0x10
or ebp, eax
shr edx, 8
shl ebp, 8
or edx, ebp
cmp dword [esp + 0x70], 0
mov dword [esp + 0x14], edx
je 0x10017b77
fild dword [esp + 0x14]
jmp 0x10017b7b
fld dword [esp + 0x14]
fstp qword [esp + ecx*8 + 0x18]
add ecx, 1
add esi, 4
cmp ecx, ebx
jl 0x10017b40
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0x14], ecx
cmp dword [ebp + 4], 0x46
jne 0x10017bcc
mov edx, dword [ebp + 8]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push edi
call edx
add esp, 0x10
cmp dword [esp + 0x14], 0
jne 0x10017bbc
mov ecx, dword [esp + 0x7c]
mov dword [ecx], 0
fldz
mov edx, dword [esp + 0x78]
fstp qword [edx]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
lea eax, [esp + 0x18]
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0x74]
movzx ecx, byte [eax + 0x10]
sub ecx, 1
mov dword [edi + 0x20], ecx
push edi
fld qword [eax]
fst qword [edi + 0x30]
fstp qword [edi + 0x40]
movzx eax, byte [eax + 0x11]
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], eax
mov edx, dword [ebp + 8]
call edx
mov edx, dword [esp + 0x80]
mov ecx, eax
mov eax, dword [edi + 0x3c]
add esp, 4
cmp eax, dword [edx]
jge 0x10017c0e
mov dword [edx], eax
mov edx, dword [esp + 0x78]
fld qword [edx]
fcomp qword [edi + 0x40]
fnstsw ax
test ah, 0x41
je 0x10017c29
fldz
fcomp qword [edx]
fnstsw ax
test ah, 0x41
jne 0x10017c2e
fld qword [edi + 0x40]
fstp qword [edx]
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x58
ret
Function at 0x1001db60
Capabilities:
Encrypt data using rc4 via winapi
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 8
test ebx, ebx
mov dword [esp], 0
je 0x1001dc25
test edi, edi
je 0x1001dc25
call fcn.10017060
test eax, eax
jne 0x1001db8a
or eax, 0xffffffff
add esp, 8
ret
push esi
call sym.SQLite.Interop.dll_sqlite3_initialize
test eax, eax
je 0x1001db98
xor esi, esi
jmp 0x1001dbb3
push 2
call dword [0x100c649c]
mov esi, eax
add esp, 4
test esi, esi
je 0x1001dbb3
push esi
call dword [0x100c64a4]
add esp, 4
mov ecx, dword [0x100c86f0]
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x8004
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1001dc0e
mov edx, dword [esp + 4]
push 0
push edi
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1001dc03
mov ecx, dword [esp + 4]
mov edx, dword [0x100c86f0]
lea eax, [esp + 8]
push eax
push 0
push ecx
push 0x6801
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test esi, esi
je 0x1001dc1c
push esi
call dword [0x100c64ac]
add esp, 4
mov eax, dword [esp + 8]
pop esi
add esp, 8
ret
xor eax, eax
add esp, 8
ret
Function at 0x10023ef0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push edi
mov edi, dword [esp + 0x1c]
xor ebp, ebp
test edi, edi
mov eax, edi
jne 0x10023f06
xor ebx, ebx
jmp 0x10023f21
cmp byte [edi], 0
je 0x10023f18
jmp 0x10023f10
add eax, 1
cmp byte [eax], 0
jne 0x10023f10
sub eax, edi
and eax, 0x3fffffff
mov ebx, eax
mov edx, dword [ecx + 0x14]
xor eax, eax
test edx, edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], edx
jle 0x10023fe6
mov ecx, dword [ecx + 0x10]
push esi
mov dword [esp + 0x14], ecx
jmp 0x10023f44
mov eax, dword [esp + 0x10]
cmp eax, 2
jge 0x10023f4c
xor eax, 1
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
shl eax, 4
mov esi, dword [eax + edx + 0xc]
add eax, edx
test ecx, ecx
je 0x10023f71
mov eax, dword [eax]
push eax
push ecx
call sym.SQLite.Interop.dll_sqlite3_stricmp
add esp, 8
test eax, eax
jne 0x10023fc3
cmp dword [esi + 0x24], 0
lea ecx, [esi + 0x18]
je 0x10023fad
xor eax, eax
test ebx, ebx
mov esi, ebx
mov edx, edi
jle 0x10023fa7
movzx edi, byte [edx]
movzx edi, byte [edi + 0x100ab370]
lea ebp, [eax*8]
xor edi, ebp
sub esi, 1
xor eax, edi
add edx, 1
test esi, esi
jg 0x10023f84
mov edi, dword [esp + 0x20]
xor edx, edx
div dword [ecx]
jmp 0x10023faf
xor edx, edx
push edi
call fcn.1001cea0
add esp, 4
test eax, eax
je 0x10023fe2
mov ebp, dword [eax + 8]
test ebp, ebp
jne 0x10023fd8
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
jl 0x10023f40
pop esi
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
xor ebp, ebp
jmp 0x10023fc3
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x10023ff0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
xor edi, edi
test ebp, ebp
mov eax, ebp
jne 0x10024007
xor ebx, ebx
jmp 0x10024021
cmp byte [ebp], 0
je 0x10024018
lea ecx, [ecx]
add eax, 1
cmp byte [eax], 0
jne 0x10024010
sub eax, ebp
and eax, 0x3fffffff
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x14]
xor esi, esi
test eax, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
jle 0x100240e6
jmp 0x10024044
mov esi, dword [esp + 0x10]
cmp esi, 2
jge 0x1002404c
xor esi, 1
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10024071
mov edx, dword [esp + 0x1c]
mov edx, dword [edx + 0x10]
mov ecx, esi
shl ecx, 4
mov ecx, dword [ecx + edx]
push ecx
push eax
call sym.SQLite.Interop.dll_sqlite3_stricmp
add esp, 8
test eax, eax
jne 0x100240d1
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x10]
shl esi, 4
mov ecx, dword [esi + eax + 0xc]
add ecx, 8
cmp dword [ecx + 0xc], 0
je 0x100240bb
xor eax, eax
test ebx, ebx
mov edi, ebx
mov edx, ebp
jle 0x100240b5
movzx esi, byte [edx]
movzx esi, byte [esi + 0x100ab370]
lea ebp, [eax*8]
xor esi, ebp
sub edi, 1
xor eax, esi
add edx, 1
test edi, edi
jg 0x10024092
mov ebp, dword [esp + 0x20]
xor edx, edx
div dword [ecx]
jmp 0x100240bd
xor edx, edx
push ebp
call fcn.1001cea0
add esp, 4
test eax, eax
je 0x100240f0
mov edi, dword [eax + 8]
test edi, edi
jne 0x100240e6
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
jl 0x10024040
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
xor edi, edi
jmp 0x100240d1

Function at 0x10024de0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
cmp word [ebx + 0x54], 0
push esi
push edi
mov dword [esp + 0x10], 0
jl 0x10024ead
lea edi, [ebx + 0x80]
mov dword [esp + 0x14], edi
lea esp, [esp]
mov eax, dword [edi]
test eax, eax
je 0x10024e89
mov eax, dword [eax + 0x44]
test byte [eax + 0x18], 0x40
mov esi, dword [eax + 0x10]
je 0x10024e69
add dword [esi + 0x78], 0xffffffff
mov ecx, dword [esi + 0x88]
mov dword [eax + 0xc], ecx
mov edi, dword [esi + 0x3c]
mov dword [esi + 0x88], eax
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0x14]
mov eax, dword [esi + 0x98]
mov ebx, dword [edi]
push edx
cdq
push edx
push eax
sub ecx, 1
push 0
push ecx
call fcn.10008f60
push edx
mov edx, dword [ebx + 0x48]
push eax
push edi
call edx
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 0x24]
add esp, 0x10
jmp 0x10024e6e
call fcn.1001ca10
cmp dword [esi + 0x78], 0
jne 0x10024e89
mov eax, dword [esi + 0xdc]
cmp dword [eax + 0xc], 0
jne 0x10024e89
push esi
call fcn.10065200
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [edi], 0
movsx ecx, word [ebx + 0x54]
add eax, 1
add edi, 4
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
jle 0x10024e10
pop edi
pop esi
mov word [ebx + 0x54], 0xffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10026690
Capabilities:
Encode data using xor

Disassembly:
push ecx
cmp dword [esp + 0xc], 0
push ebp
mov ebp, dword [esp + 0xc]
jne 0x100266b8
mov ecx, ebp
call fcn.10023d20
test eax, eax
jne 0x100266b0
cmp dword [ebp + 0x10], eax
jne 0x100266b0
pop ebp
pop ecx
ret
mov eax, 1
pop ebp
pop ecx
ret
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x10026704
mov esi, dword [edi + 0x14]
xor edx, edx
test esi, esi
jle 0x100266fd
lea ecx, [edi + 0x24]
mov edi, edi
mov eax, dword [ecx]
mov ebx, dword [esp + 0x1c]
cmp dword [ebx + eax*4], 0
jge 0x100267ac
movsx ebx, word [ebp + 0x24]
cmp eax, ebx
jne 0x100266f3
cmp dword [esp + 0x20], 0
jne 0x100267ac
add edx, 1
add ecx, 8
cmp edx, esi
jl 0x100266d0
mov edi, dword [edi + 4]
test edi, edi
jne 0x100266c2
mov edi, dword [ebp]
test edi, edi
mov eax, edi
jne 0x10026711
xor ebx, ebx
jmp 0x10026727
cmp byte [edi], 0
je 0x1002671e
add eax, 1
cmp byte [eax], 0
jne 0x10026716
sub eax, edi
and eax, 0x3fffffff
mov ebx, eax
mov ecx, dword [ebp + 0x44]
add ecx, 0x38
cmp dword [ecx + 0xc], 0
mov dword [esp + 0x10], ecx
je 0x1002676e
xor eax, eax
test ebx, ebx
mov esi, ebx
mov edx, edi
jle 0x10026768
movzx ecx, byte [edx]
movzx ecx, byte [ecx + 0x100ab370]
lea ebp, [eax*8]
xor ecx, ebp
sub esi, 1
xor eax, ecx
add edx, 1
test esi, esi
jg 0x10026741
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
xor edx, edx
div dword [ecx]
jmp 0x10026770
xor edx, edx
push edi
call fcn.1001cea0
add esp, 4
test eax, eax
je 0x100267a4
mov esi, dword [eax + 8]
test esi, esi
je 0x100267a4
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edx
push eax
push ebp
mov eax, esi
call fcn.10019fb0
add esp, 0xc
test eax, eax
jne 0x100267ac
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x10026784
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
pop ecx
ret
pop edi
pop esi
pop ebx
mov eax, 1
pop ebp
pop ecx
ret
Function at 0x10026c70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10026db4
call fcn.100207e0
mov eax, dword [edi + 4]
mov ebx, dword [eax + 8]
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x10026d90
mov edi, edi
mov ecx, dword [ebx + 0x40]
push ecx
call sym.SQLite.Interop.dll_sqlite3_free
mov edx, dword [ebp + 0xc]
add esp, 4
cmp word [ebx + 0x54], 0
mov dword [ebx + 0x40], 0
mov byte [ebx + 0x51], 4
mov dword [ebx + 0x4c], edx
mov dword [esp + 0xc], 0
jl 0x10026d81
lea edi, [ebx + 0x80]
mov dword [esp + 0x10], edi
lea ebx, [ebx]
mov eax, dword [edi]
test eax, eax
je 0x10026d5a
mov eax, dword [eax + 0x44]
test byte [eax + 0x18], 0x40
mov esi, dword [eax + 0x10]
je 0x10026d3a
add dword [esi + 0x78], 0xffffffff
mov ecx, dword [esi + 0x88]
mov dword [eax + 0xc], ecx
mov edi, dword [esi + 0x3c]
mov dword [esi + 0x88], eax
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0x14]
mov eax, dword [esi + 0x98]
mov ebx, dword [edi]
push edx
cdq
push edx
push eax
sub ecx, 1
push 0
push ecx
call fcn.10008f60
push edx
mov edx, dword [ebx + 0x48]
push eax
push edi
call edx
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
add esp, 0x10
jmp 0x10026d3f
call fcn.1001ca10
cmp dword [esi + 0x78], 0
jne 0x10026d5a
mov eax, dword [esi + 0xdc]
cmp dword [eax + 0xc], 0
jne 0x10026d5a
push esi
call fcn.10065200
add esp, 4
mov eax, dword [esp + 0xc]
mov dword [edi], 0
movsx ecx, word [ebx + 0x54]
add eax, 1
add edi, 4
cmp eax, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edi
jle 0x10026ce0
mov edi, dword [ebp + 8]
mov ebx, dword [ebx + 8]
test ebx, ebx
mov dword [esp + 0x14], ebx
jne 0x10026ca0
cmp byte [edi + 9], 0
je 0x10026db4
add dword [edi + 0xc], 0xffffffff
jne 0x10026db4
mov edx, dword [edi + 4]
mov eax, dword [edx + 0x38]
test eax, eax
je 0x10026db0
push eax
call dword [0x100c64ac]
add esp, 4
mov byte [edi + 0xa], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret