joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407a80
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x415d04]
sub esp, 0x94
test eax, eax
jne 0x407abd
lea eax, [esp]
mov dword [0x415d04], 1
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x10], 2
jne 0x407abd
call fcn.00407830
mov dword [0x4122e8], eax
mov eax, dword [0x4122e8]
push ebx
test eax, eax
jne 0x407ae5
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0xa0]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
pop ebx
add esp, 0x94
ret
mov eax, dword [esp + 0xa0]
mov ebx, dword [esp + 0x9c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
test edx, edx
je 0x407b3b
push ebp
push esi
push edi
mov edi, 0x412364
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
mov eax, edx
pop ebx
add esp, 0x94
ret

Function at 0x407b50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
push ebp
push esi
push edi
push 0x41236c
push eax
push ebx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x407c2e
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x407c2e
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x407c21
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.00407a80
mov edi, dword [esp + 0x128]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x412368
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040931e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407c21
push esi
push ebp
push 1
push ebx
call fcn.004091f4
push esi
call fcn.0040919e
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x407c40
Capabilities:
Copy file

Disassembly:
sub esp, 0x348
lea eax, [esp]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp]
push 0x5c
push ecx
call fcn.00409331
add esp, 8
test eax, eax
jne 0x407c7a
lea edx, [esp]
push 0x3a
push edx
call fcn.00409331
add esp, 8
push ebx
mov ebx, dword [esp + 0x350]
push esi
push edi
mov edi, dword [ebx*4 + 0x4122d0]
lea edx, [eax + 1]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x114]
push ecx
call fcn.00407a80
mov edi, dword [ebx*4 + 0x4122d0]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x214]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x407d29
lea edx, [esp + 0x110]
push 0
lea eax, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
add esp, 0x348
ret

Function at 0x407d40
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x140
lea eax, [esp]
push esi
mov esi, dword [esp + 0x148]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x407d69
xor eax, eax
pop esi
add esp, 0x140
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
add esp, 0x140
ret
Function at 0x4084e0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
jne 0x4084ed
xor eax, eax
pop ebx
ret
mov eax, dword [esp + 0x10]
push esi
push edi
push ebx
push eax
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [esp + 0x14]
xor eax, eax
mov edi, dword [ecx*4 + 0x4122d0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
ret

Function at 0x408540
Capabilities:
Move file

Disassembly:
sub esp, 0x208
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileA]
xor esi, esi
push 0x104
lea eax, [esp + 0x110]
push esi
push eax
call fcn.00408480
push eax
call fcn.00408430
add esp, 0x10
test eax, eax
je 0x4085b7
push 0x104
lea ecx, [esp + 0xc]
push esi
push ecx
call fcn.004084e0
lea edx, [esp + 0x14]
push edx
call fcn.00407d40
mov al, byte [esp + 0x18]
add esp, 0x10
test al, al
je 0x4085a8
lea eax, [esp + 8]
lea ecx, [esp + 0x10c]
push eax
push ecx
call edi
test eax, eax
je 0x4085c8
lea edx, [esp + 0x10c]
lea eax, [esp + 8]
push edx
push eax
call edi
inc esi
cmp esi, 6
jl 0x408550
pop edi
xor eax, eax
pop esi
add esp, 0x208
ret
pop edi
mov eax, 1
pop esi
add esp, 0x208
ret

Function at 0x40bb39
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x412598
cmp edx, dword [eax]
je 0x40bb5b
add eax, 8
inc ecx
cmp eax, 0x412628
jl 0x40bb4c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x412598]
jne 0x40bc89
mov eax, dword [0x415d10]
cmp eax, 1
je 0x40bc63
test eax, eax
jne 0x40bb8c
cmp dword [0x4123e8], 1
je 0x40bc63
cmp edx, 0xfc
je 0x40bc89
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40bbc3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040da80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040adc0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40bc06
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040adc0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40f56c
push edi
call fcn.0040de90
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040da80
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040da90
lea eax, [ebp - 0xa0]
push 0x40f54c
push eax
call fcn.0040da90
push dword [esi + 0x41259c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040da90
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040ddff
add esp, 0x2c
pop edi
jmp 0x40bc89
lea eax, [ebp + 8]
lea esi, [esi + 0x41259c]
push 0
push eax
push dword [esi]
call fcn.0040adc0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10001180
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100ca170]
jne 0x1000118a
repz ret
jmp fcn.100027c9

Function at 0x1000a6dd
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.10004ef9
and dword [ebp - 4], 0
cmp dword [0x100cd234], 0
mov ebx, eax
jne 0x1000a78e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000a83f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1000a83f
push eax
call fcn.10004e87
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100cd234], eax
call esi
push eax
call fcn.10004e87
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100cd238], eax
call esi
push eax
call fcn.10004e87
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x100cd23c], eax
call esi
push eax
call fcn.10004e87
pop ecx
mov dword [0x100cd244], eax
test eax, eax
je 0x1000a78e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10004e87
pop ecx
mov dword [0x100cd240], eax
mov eax, dword [0x100cd240]
cmp eax, ebx
je 0x1000a7e6
cmp dword [0x100cd244], ebx
je 0x1000a7e6
push eax
call fcn.10004f02
push dword [0x100cd244]
mov esi, eax
call fcn.10004f02
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1000a7e6
test edi, edi
je 0x1000a7e6
call esi
test eax, eax
je 0x1000a7dd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000a7dd
test byte [ebp - 0xc], 1
jne 0x1000a7e6
or dword [ebp + 0x10], 0x200000
jmp 0x1000a81f
mov eax, dword [0x100cd238]
cmp eax, ebx
je 0x1000a81f
push eax
call fcn.10004f02
pop ecx
test eax, eax
je 0x1000a81f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1000a81f
mov eax, dword [0x100cd23c]
cmp eax, ebx
je 0x1000a81f
push eax
call fcn.10004f02
pop ecx
test eax, eax
je 0x1000a81f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100cd234]
call fcn.10004f02
pop ecx
test eax, eax
je 0x1000a83f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000a841
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10016120
Capabilities:
Encode data using xor

Disassembly:
mov cl, byte [edx]
xor eax, eax
test cl, cl
je 0x1001614d
push esi
lea esp, [esp]
movzx ecx, cl
movzx ecx, byte [ecx + 0x100b0400]
lea esi, [eax*8]
xor ecx, esi
inc edx
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x10016130
pop esi
ret

Function at 0x10018990
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 0x100189be
mov eax, dword [esp + 0x74]
cmp byte [eax + 0x10], 1
jne 0x100189be
call fcn.10010340
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], edx
xor ecx, ecx
add esi, 8
mov dword [esp + 0x14], ecx
test ebx, ebx
jle 0x10018a1f
jmp 0x100189d0
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 0x10018a07
fild dword [esp + 0x14]
jmp 0x10018a0b
fld dword [esp + 0x14]
fstp qword [esp + ecx*8 + 0x18]
inc ecx
add esi, 4
cmp ecx, ebx
jl 0x100189d0
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0x14], ecx
cmp dword [ebp + 4], 0x46
jne 0x10018a5a
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 0x10018a4a
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]
dec ecx
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 0x10018a9a
mov dword [edx], eax
mov edx, dword [esp + 0x78]
fld qword [edx]
fcomp qword [edi + 0x40]
fnstsw ax
test ah, 0x41
je 0x10018ab5
fldz
fcomp qword [edx]
fnstsw ax
test ah, 0x41
jne 0x10018aba
fld qword [edi + 0x40]
fstp qword [edx]
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x58
ret
Function at 0x10024a00
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov ecx, dword [eax + 0x14]
push ebp
push esi
xor ebp, ebp
xor esi, esi
mov dword [esp + 8], ebp
mov dword [esp + 0x10], ecx
test ecx, ecx
jle 0x10024adb
mov eax, dword [eax + 0x10]
mov dword [esp + 0xc], eax
push edi
cmp ebp, 2
mov eax, ebp
jge 0x10024a2e
xor eax, 1
mov ecx, dword [esp + 0x10]
shl eax, 4
mov edi, dword [eax + ecx + 0xc]
add eax, ecx
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x10024a53
mov edx, dword [eax]
push edx
push ecx
call sym.SQLite.Interop.dll_sqlite3_stricmp
add esp, 8
test eax, eax
jne 0x10024ac3
mov esi, dword [edi + 0x24]
test esi, esi
je 0x10024a94
mov cl, byte [ebx]
xor eax, eax
mov edx, ebx
test cl, cl
je 0x10024a84
movzx ecx, cl
movzx ecx, byte [ecx + 0x100b0400]
lea ebp, [eax*8]
xor ecx, ebp
inc edx
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x10024a64
mov ebp, dword [esp + 0xc]
xor edx, edx
div dword [edi + 0x18]
mov edi, dword [esi + edx*8]
lea eax, [esi + edx*8]
mov esi, dword [eax + 4]
jmp 0x10024a9a
mov esi, dword [edi + 0x20]
mov edi, dword [edi + 0x1c]
test edi, edi
je 0x10024ab8
mov edi, edi
mov edx, dword [esi + 0xc]
push ebx
push edx
dec edi
call sym.SQLite.Interop.dll_sqlite3_stricmp
add esp, 8
test eax, eax
je 0x10024abc
mov esi, dword [esi]
test edi, edi
jne 0x10024aa0
xor esi, esi
jmp 0x10024ac3
mov esi, dword [esi + 8]
test esi, esi
jne 0x10024ad2
inc ebp
cmp ebp, dword [esp + 0x14]
mov dword [esp + 0xc], ebp
jl 0x10024a24
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x10024af0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x14]
push ebp
push edi
xor ebp, ebp
xor edi, edi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], eax
test eax, eax
jle 0x10024bdb
push esi
cmp ebp, 2
mov esi, ebp
jge 0x10024b1b
xor esi, 1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10024b44
mov edx, dword [esp + 0x18]
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 0x10024bc3
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x10]
shl esi, 4
mov esi, dword [esi + eax + 0xc]
mov edi, dword [esi + 0x14]
add esi, 8
test edi, edi
je 0x10024b95
mov cl, byte [ebx]
xor eax, eax
mov edx, ebx
test cl, cl
je 0x10024b86
movzx ecx, cl
movzx ecx, byte [ecx + 0x100b0400]
lea ebp, [eax*8]
xor ecx, ebp
inc edx
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x10024b66
mov ebp, dword [esp + 0xc]
xor edx, edx
div dword [esi]
mov esi, dword [edi + edx*8]
lea eax, [edi + edx*8]
mov edi, dword [eax + 4]
jmp 0x10024b9b
mov edi, dword [esi + 8]
mov esi, dword [esi + 4]
test esi, esi
je 0x10024bb8
nop
mov edx, dword [edi + 0xc]
push ebx
push edx
dec esi
call sym.SQLite.Interop.dll_sqlite3_stricmp
add esp, 8
test eax, eax
je 0x10024bbc
mov edi, dword [edi]
test esi, esi
jne 0x10024ba0
xor edi, edi
jmp 0x10024bc3
mov edi, dword [edi + 8]
test edi, edi
jne 0x10024bd2
inc ebp
cmp ebp, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
jl 0x10024b11
pop esi
mov eax, edi
pop edi
pop ebp
add esp, 8
ret
mov eax, edi
pop edi
pop ebp
add esp, 8
ret

Function at 0x100256c0
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]
xor eax, eax
cmp ax, word [ebx + 0x4c]
push esi
push edi
mov dword [esp + 0x10], 0
jg 0x10025796
lea edi, [ebx + 0x78]
mov dword [esp + 0x14], edi
lea ebx, [ebx]
mov eax, dword [edi]
test eax, eax
je 0x10025766
mov eax, dword [eax + 0x44]
test byte [eax + 0x18], 0x40
mov esi, dword [eax + 0x10]
je 0x10025746
dec dword [esi + 0x78]
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
dec ecx
push 0
push ecx
call fcn.100083f0
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 0x1002574b
call fcn.1001d7d0
cmp dword [esi + 0x78], 0
jne 0x10025766
mov eax, dword [esi + 0xdc]
cmp dword [eax + 0xc], 0
jne 0x10025766
push esi
call fcn.10069eb0
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [edi], 0
movsx ecx, word [ebx + 0x4c]
inc eax
add edi, 4
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
jle 0x100256f0
or edx, 0xffffffff
mov word [ebx + 0x4c], dx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
or eax, 0xffffffff
pop esi
mov word [ebx + 0x4c], ax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100285a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, eax
lea eax, [esi*8]
cmp eax, 0x400
jbe 0x100285bb
mov esi, 0x80
cmp esi, dword [edi]
jne 0x100285c8
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [0x100cd594]
test eax, eax
je 0x100285d3
call eax
lea ecx, [esi*8]
push 0
push ecx
call fcn.10026040
mov esi, eax
mov eax, dword [0x100cd598]
add esp, 8
mov dword [esp + 0x10], esi
test eax, eax
je 0x100285f6
call eax
test esi, esi
je 0x100285bf
mov edx, dword [edi + 0xc]
push edx
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
push esi
mov dword [edi + 0xc], esi
call dword [0x100cb3f0]
mov ebx, eax
shr ebx, 3
add esp, 4
lea eax, [ebx*8]
push eax
push 0
push esi
mov dword [edi], ebx
call fcn.10004b00
mov ecx, dword [edi + 8]
add esp, 0xc
mov dword [edi + 8], 0
test ecx, ecx
je 0x100286d5
mov esi, dword [ecx + 0xc]
mov dl, byte [esi]
xor eax, eax
test dl, dl
je 0x1002866c
lea ebx, [ebx]
movzx edx, dl
movzx edx, byte [edx + 0x100b0400]
lea ebp, [eax*8]
xor edx, ebp
inc esi
xor eax, edx
mov dl, byte [esi]
test dl, dl
jne 0x10028650
xor edx, edx
div ebx
mov eax, dword [esp + 0x10]
mov ebp, dword [ecx]
lea eax, [eax + edx*8]
test eax, eax
je 0x100286b2
mov esi, dword [eax]
test esi, esi
je 0x10028688
mov edx, dword [eax + 4]
jmp 0x1002868a
xor edx, edx
inc esi
mov dword [eax], esi
mov dword [eax + 4], ecx
test edx, edx
je 0x100286b2
mov dword [ecx], edx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 4]
test eax, eax
je 0x100286aa
mov dword [eax], ecx
mov dword [edx + 4], ecx
jmp 0x100286cb
mov dword [edi + 8], ecx
mov dword [edx + 4], ecx
jmp 0x100286cb
mov edx, dword [edi + 8]
mov dword [ecx], edx
mov eax, dword [edi + 8]
test eax, eax
je 0x100286c1
mov dword [eax + 4], ecx
mov dword [ecx + 4], 0
mov dword [edi + 8], ecx
mov ecx, ebp
test ebp, ebp
jne 0x1002863f
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x100286f0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
mov dword [eax], 0
cmp dword [0x100cb3c0], 0
push esi
je 0x10028753
mov eax, dword [0x100cd6a0]
test eax, eax
je 0x10028720
push eax
call dword [0x100cb414]
add esp, 4
lea ebx, [esp + 0x10]
mov eax, 0x14
call fcn.10022ce0
mov eax, dword [0x100cd6a0]
test eax, eax
je 0x10028741
push eax
call dword [0x100cb41c]
add esp, 4
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x10028762
lea eax, [esi + 7]
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 0x14
call dword [0x100cb3e4]
add esp, 4
mov esi, eax
jmp 0x10028745
cmp dword [0x100cb3c4], 0
je 0x1002878f
lea ecx, [esi + 4]
push ecx
push 0
push esi
push 0x100170b0
push 0
push 0
mov dword [esi + 8], ebp
mov dword [esi + 0xc], edi
call fcn.10001f95
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x1002879f
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp dword [esi + 8], 0
jne 0x100287b7
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi + 4], eax
call ebp
add esp, 4
mov dword [esi + 0x10], eax
mov edx, dword [esp + 0x18]
mov dword [edx], esi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x10028d80
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, eax
mov edi, ecx
test esi, esi
jne 0x10028dcd
call sym.SQLite.Interop.dll_sqlite3_initialize
test eax, eax
jne 0x10028e4d
push eax
push 0x18
call fcn.10026040
mov esi, eax
add esp, 8
test esi, esi
je 0x10028e4d
xor eax, eax
mov dword [esi], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
cmp ebx, 0xffffffff
jne 0x10028dd8
mov ebx, dword [edi + 0x98]
mov eax, dword [esi + 0x10]
mov dword [esi], edi
lea edi, [esi + 0x14]
mov dword [esi + 0xc], ebx
mov dword [edi], ebx
test eax, eax
je 0x10028df9
push eax
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
mov dword [esi + 0x10], 0
mov eax, dword [edi]
mov ecx, dword [ebp + 8]
add eax, eax
push eax
push edi
push 0
push 0
push 1
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov edi, dword [edi]
add edi, 0x10
call sym.SQLite.Interop.dll_sqlite3_initialize
test eax, eax
je 0x10028e23
xor eax, eax
jmp 0x10028e38
test edi, edi
jg 0x10028e2b
xor eax, eax
jmp 0x10028e38
mov eax, edi
cdq
push edx
push eax
call fcn.10026040
add esp, 8
mov dword [esi + 0x10], eax
test eax, eax
jne 0x10028e56
cmp esi, dword [ebp + 0xc]
je 0x10028e4d
push esi
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10032360
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
mov dword [esp], 0
test ebx, ebx
je 0x10032425
test edi, edi
je 0x10032425
call fcn.10030430
test eax, eax
jne 0x1003238a
or eax, 0xffffffff
add esp, 8
ret
push esi
call fcn.1002d620
test eax, eax
je 0x10032398
xor esi, esi
jmp 0x100323b3
push 2
call dword [0x100cb40c]
mov esi, eax
add esp, 4
test esi, esi
je 0x100323b3
push esi
call dword [0x100cb414]
add esp, 4
mov ecx, dword [0x100cd6ec]
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 0x1003240e
mov edx, dword [esp + 4]
push 0
push edi
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x10032403
mov ecx, dword [esp + 4]
mov edx, dword [0x100cd6ec]
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 0x1003241c
push esi
call dword [0x100cb41c]
add esp, 4
mov eax, dword [esp + 8]
pop esi
add esp, 8
ret
xor eax, eax
add esp, 8
ret
Function at 0x10056b90
Capabilities:
Reference sql statements

Disassembly:
push edi
mov edi, 0x100cbb58
push 0x100cd390
call fcn.10020960
add edi, 0x24
add esp, 4
cmp edi, 0x100cc3c8
jl 0x10056b96
mov edi, 0x100cb4d8
push 0x100cd390
call fcn.10020960
add edi, 0x24
add esp, 4
cmp edi, 0x100cb5f8
jl 0x10056bb3
mov edi, 0x100cbac8
push 0x100cd390
call fcn.10020960
add edi, 0x24
add esp, 4
cmp edi, 0x100cbb34
jl 0x10056bd0
push 0x100cd390
mov edi, 0x100cbaa0
call fcn.10020960
add esp, 4
pop edi
ret