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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x4fb744]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 8]
push esi
mov esi, dword [0x61e218]
push edi
push 0xf0
push eax
mov edi, 1
push esi
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x10c], edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4023c8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4023c8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4023c8
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
jmp 0x402276
mov edi, dword [ebp - 0x10c]
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x4023b3
mov edx, dword [esi + 4]
mov edi, eax
movzx eax, word [esi + 2]
mov ecx, 0x403
add esi, 8
mov dword [ebp - 0x114], edx
cmp cx, ax
jne 0x402306
push 3
lea edx, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], edx
call fcn.00402090
mov eax, dword [ebp - 0x108]
mov edx, dword [ebp - 0x110]
push eax
mov eax, dword [edx + 4]
push 0
push 0x143
push edi
push eax
call ebx
cmp eax, 0xffffffff
jne 0x4022e4
mov dword [ebp - 0x10c], 0
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
cmp eax, ecx
je 0x402387
push eax
call fcn.004b3721
add esp, 4
jmp 0x402387
mov edx, 0x1234
cmp dx, ax
jne 0x402387
push 3
lea eax, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x138], 1
mov dword [ebp - 0x134], 0xffffffff
mov dword [ebp - 0x108], eax
call fcn.00402090
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x130], eax
cmp eax, ecx
je 0x40235d
push eax
call fcn.004b3721
add esp, 4
mov ecx, dword [ebp - 0x110]
lea edx, [ebp - 0x138]
push edx
mov edx, dword [ecx + 4]
push 0
push 0x40b
push edi
push edx
call ebx
cmp eax, 0xffffffff
jne 0x402387
mov dword [ebp - 0x10c], 0
add esi, dword [ebp - 0x114]
cmp dword [ebp - 0x10c], 0
jne 0x402270
mov eax, dword [ebp - 0x10c]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3f21
mov esp, ebp
pop ebp
ret 4
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3f21
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004b3f21
mov esp, ebp
pop ebp
ret 4
Function at 0x4089a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.00408810
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 5
push ebx
push esi
mov dword [ebp - 8], 0
call edi
mov dword [ebp - 0xc], eax
test eax, eax
je 0x408a6e
push 0xf0
push ebx
push esi
call edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
test eax, eax
je 0x4089f4
push eax
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov eax, dword [ebp - 0xc]
push eax
push esi
mov dword [ebp - 4], 0
call edi
test eax, eax
je 0x408a57
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x408a57
push ebx
push edi
call fcn.00401250
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
add esp, 8
push ecx
mov ebx, eax
mov eax, dword [ebp + 0x10]
push edx
push eax
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x408a43
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp ebx, edi
je 0x408a60
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x408a60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x408a6e
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409300
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40931b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x409352
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40934e
jmp 0x409340
cmp esi, eax
jae 0x409352
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x409340
cmp esi, eax
jb 0x409359
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x409560
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc396
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x4fb744]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov ebx, ecx
xor esi, esi
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0xa0], esi
mov eax, dword [edi]
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], esi
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0x98], 0
mov byte [ebp - 4], 1
test esi, esi
jle 0x40969e
lea eax, [esi + 1]
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
test ecx, ecx
jne 0x4095f7
cmp eax, 0xffffffff
jbe 0x409601
push 0x80070216
call fcn.00401030
cmp eax, 0x80
jbe 0x409630
push eax
lea ecx, [ebp - 0x98]
call fcn.004094c0
jmp 0x40963c
lea edx, [ebp - 0x94]
mov dword [ebp - 0x98], edx
mov eax, dword [ebp - 0x98]
test eax, eax
jne 0x409664
lea eax, [ebp - 0x94]
test eax, eax
je 0x409660
lea ecx, [ebp - 0x98]
call fcn.0040c4f0
jmp 0x409660
xor eax, eax
jmp 0x4096d5
mov edx, dword [ebx]
lea ecx, [esi + 1]
push ecx
push eax
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x40969e
lea eax, [ebp - 0x94]
cmp dword [ebp - 0x98], eax
je 0x40968f
lea ecx, [ebp - 0x98]
call fcn.0040c4f0
lea ecx, [ebp - 0xa0]
call fcn.00401580
xor eax, eax
jmp 0x4096d5
mov ecx, dword [ebp - 0x98]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi], eax
test esi, esi
je 0x4096ba
xor edx, edx
test eax, eax
setne dl
mov esi, edx
lea eax, [ebp - 0x94]
cmp dword [ebp - 0x98], eax
je 0x4096d3
lea ecx, [ebp - 0x98]
call fcn.0040c4f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b3f21
mov esp, ebp
pop ebp
ret 4
Function at 0x40c590
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4fb744]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
mov edx, dword [edi]
or ecx, 0x2001f
push ecx
xor esi, esi
push eax
push edx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x208], esi
call fcn.0040bd10
mov ebx, eax
cmp ebx, esi
je 0x40c60a
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x40c5f5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3f21
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x210]
push esi
push esi
push esi
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x204]
push edx
push esi
push eax
mov dword [ebp - 0x214], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40c68c
mov edi, edi
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x210]
call fcn.0040c590
mov ebx, eax
cmp ebx, esi
jne 0x40c5e4
lea edx, [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x210]
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x204]
push ecx
push esi
push edx
mov dword [ebp - 0x214], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40c640
mov eax, dword [ebp - 0x210]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x40c6a5
push eax
call ebx
mov dword [ebp - 0x210], esi
mov eax, dword [ebp - 0x218]
push eax
mov ecx, edi
mov dword [ebp - 0x20c], esi
call fcn.0040bbc0
mov edi, eax
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x40c6c8
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b3f21
mov esp, ebp
pop ebp
ret 4
Function at 0x40ea40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc5d6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4fb744]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x430], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x418], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x420], esi
test esi, esi
jne 0x40eabd
call fcn.00401e30
mov edi, eax
jmp 0x40eba2
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40ead6
call fcn.00401e30
jmp 0x40eb99
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x40eaf4
call fcn.00401e30
jmp 0x40eb99
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x41c], edi
cmp eax, edi
jae 0x40eb15
mov edi, 0x8007000e
jmp 0x40eb9b
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0040d610
mov dword [ebp - 4], 1
jmp 0x40eb4d
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x40eb5e
mov edi, 0x8007000e
jmp 0x40eb9b
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x40eb77
call fcn.00401e30
jmp 0x40eb99
mov edx, dword [ebp - 0x418]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x418]
push eax
push ecx
lea ecx, [ebp - 0x42c]
call fcn.0040e800
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x414]
cmp dword [ebp - 0x418], edx
je 0x40ebc0
lea ecx, [ebp - 0x418]
call fcn.0040c4f0
jmp 0x40ebc0
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 - 0x14]
xor ecx, ebp
call fcn.004b3f21
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40f3f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.00408810
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 5
push edi
push esi
mov dword [ebp - 8], 0xffffffff
call ebx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40f4ce
push 0xf0
push edi
push esi
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
xor edi, edi
test eax, eax
je 0x40f444
push eax
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 0xc]
push eax
push esi
mov dword [ebp - 4], 0
call ebx
test eax, eax
je 0x40f4ab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x40f4ab
push edi
push ebx
call fcn.00401250
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
add esp, 8
push ecx
mov edi, eax
mov eax, dword [ebp + 0x10]
push edx
push eax
push edi
push esi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
mov esi, eax
test esi, esi
je 0x40f48e
cmp esi, 0xffffffff
jne 0x40f497
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp edi, ebx
je 0x40f4b7
push edi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40f4b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x40f4c5
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41bfe0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 8]
xor eax, eax
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
cmp dword [edx + 0x14], eax
jle 0x41c04e
push esi
push edi
mov ecx, ebx
cmp ebx, 2
jge 0x41c002
xor ecx, 1
shl ecx, 4
add ecx, dword [edx + 0x10]
mov edx, dword [ebp + 0x10]
mov eax, dword [ecx + 0xc]
test edx, edx
je 0x41c025
mov edi, dword [ecx]
sub edi, edx
movzx ecx, byte [edx]
movzx esi, byte [edi + edx]
cmp ecx, esi
jne 0x41c053
test ecx, ecx
jne 0x41c065
mov edx, dword [ebp + 0xc]
push 0
push edx
add eax, 0x18
call fcn.00413650
mov eax, dword [eax + 8]
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
jne 0x41c04c
mov edx, dword [ebp + 8]
inc ebx
cmp ebx, dword [edx + 0x14]
jl 0x41bff8
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx esi, byte [esi + 0x4dfe80]
movzx ecx, byte [ecx + 0x4dfe80]
sub ecx, esi
jne 0x41c040
inc edx
jmp 0x41c016
Function at 0x4263c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, ecx
cmp ecx, 0x80
jge 0x4263e3
lea edx, [ecx - 0x41]
cmp edx, 0x19
ja 0x426493
lea eax, [ecx + 0x20]
mov esp, ebp
pop ebp
ret
cmp ecx, 0x10000
jge 0x426485
push ebx
push esi
push edi
mov edi, 0xa2
xor esi, esi
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + edi]
cdq
sub eax, edx
sar eax, 1
movzx edx, word [eax*4 + 0x4e5860]
mov ebx, ecx
sub ebx, edx
js 0x426420
mov edx, eax
mov dword [ebp - 4], edx
lea esi, [eax + 1]
jmp 0x426426
mov edx, dword [ebp - 4]
lea edi, [eax - 1]
cmp edi, esi
jge 0x426400
movzx eax, word [edx*4 + 0x4e5860]
movzx esi, byte [edx*4 + 0x4e5863]
add esi, eax
pop edi
cmp ecx, esi
pop esi
pop ebx
jge 0x426466
movzx edx, byte [edx*4 + 0x4e5862]
xor eax, ecx
and eax, edx
test al, 1
jne 0x426466
shr edx, 1
movzx eax, word [edx*2 + 0x4e5af0]
add eax, ecx
and eax, 0xffff
jmp 0x426468
mov eax, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x426493
xor edx, edx
cmp ecx, 2
sete dl
push edx
push eax
call fcn.00425fb0
add esp, 8
mov esp, ebp
pop ebp
ret
lea edx, [ecx - 0x10400]
cmp edx, 0x27
ja 0x426493
lea eax, [ecx + 0x28]
mov esp, ebp
pop ebp
ret

Function at 0x427720
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [eax], 0
cmp dword [0x4fa060], 0
push esi
je 0x427782
mov eax, dword [0x61e1b8]
test eax, eax
je 0x42774e
push eax
call dword [0x4fa0b0]
add esp, 4
lea ecx, [ebp - 4]
push ecx
mov eax, 0x14
call fcn.00426c90
mov eax, dword [0x61e1b8]
add esp, 4
test eax, eax
je 0x427772
push eax
call dword [0x4fa0b8]
add esp, 4
mov esi, dword [ebp - 4]
test esi, esi
jne 0x427791
lea eax, [esi + 7]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x14
call dword [0x4fa080]
add esp, 4
mov esi, eax
jmp 0x427775
cmp byte [0x4fa064], 0
je 0x4277d5
mov eax, dword [0x4fa154]
test eax, eax
je 0x4277b1
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x4277d5
lea edx, [esi + 4]
push edx
push 0
push esi
push 0x412360
push 0
push 0
mov dword [esi + 8], ebx
mov dword [esi + 0xc], edi
call fcn.004b51a9
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x4277e5
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 0x4277fd
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi + 4], eax
call ebx
add esp, 4
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [eax], esi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4294e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edi + 0x88]
xor ecx, ecx
push ebx
push esi
cmp eax, ecx
je 0x42950c
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov edx, dword [eax + 0x10]
mov dword [edi + 0x88], edx
mov edx, dword [eax + 8]
mov dword [eax + 0x10], ecx
mov dword [edx], ecx
mov dword [edx + 4], ecx
jmp 0x429581
movzx ebx, word [edi + 0x8c]
xor eax, eax
push eax
add ebx, 0x28
push ebx
call fcn.00426d80
mov esi, eax
add esp, 8
test esi, esi
je 0x429534
push ebx
push 0
push esi
call fcn.004b3f30
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov eax, esi
mov dword [ecx], esi
test esi, esi
jne 0x429571
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 0x98]
mov esi, dword [edi + 0x3c]
mov ebx, dword [esi]
push edx
push 0
cdq
dec ecx
push ecx
push edx
push eax
call fcn.004b5250
push edx
mov edx, dword [ebx + 0x48]
push eax
push esi
call edx
add esp, 0x10
pop esi
mov eax, 7
pop ebx
pop ebp
ret
lea ecx, [esi + 0x28]
mov dword [esi + 8], ecx
mov dword [esi + 0x1c], 0x10020
mov dword [esi + 0x14], edi
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x18], edx
mov dword [eax + 4], ecx
inc dword [edi + 0x78]
pop esi
xor eax, eax
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
mov al, byte [ebx + 0x44]
test al, al
js 0x42ad32
push esi
push edi
xor edi, edi
test al, al
jle 0x42accc
lea eax, [ebx + 0x78]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x48]
test byte [eax + 0x1c], 0x20
je 0x42acba
mov ecx, dword [eax + 0x14]
dec dword [ecx + 0x78]
mov edx, dword [ecx + 0x88]
mov dword [eax + 0x10], edx
mov esi, dword [ecx + 0x3c]
mov dword [ecx + 0x88], eax
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x18]
mov ebx, dword [esi]
dec eax
push edx
mov dword [ebp - 8], eax
mov eax, dword [ecx + 0x98]
cdq
push edx
push eax
mov eax, dword [ebp - 8]
push 0
push eax
call fcn.004b5250
push edx
push eax
mov eax, dword [ebx + 0x48]
push esi
call eax
mov ebx, dword [ebp + 8]
add esp, 0x10
jmp 0x42acbf
call fcn.00414640
movsx ecx, byte [ebx + 0x44]
add dword [ebp - 4], 4
inc edi
cmp edi, ecx
jl 0x42ac63
mov edx, dword [ebx + 0x74]
mov eax, dword [edx + 0x48]
test byte [eax + 0x1c], 0x20
je 0x42ad27
mov ecx, dword [eax + 0x14]
dec dword [ecx + 0x78]
mov edx, dword [ecx + 0x88]
mov dword [eax + 0x10], edx
mov esi, dword [ecx + 0x3c]
mov dword [ecx + 0x88], eax
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x18]
mov edi, dword [esi]
dec eax
push edx
mov dword [ebp + 8], eax
mov eax, dword [ecx + 0x98]
cdq
push edx
push eax
mov eax, dword [ebp + 8]
push 0
push eax
call fcn.004b5250
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
pop edi
pop esi
mov byte [ebx + 0x44], 0xff
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00414640
pop edi
mov byte [ebx + 0x44], 0xff
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42d6f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 0x14], ebx
jle 0x42d777
mov eax, ebx
cmp ebx, 2
jge 0x42d70b
xor eax, 1
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x42d732
mov esi, dword [edi + 0x10]
mov ecx, eax
add ecx, ecx
mov edi, dword [esi + ecx*8]
sub edi, edx
mov edi, edi
movzx ecx, byte [edx]
movzx esi, byte [edi + edx]
cmp ecx, esi
jne 0x42d759
test ecx, ecx
jne 0x42d76b
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x10]
mov ecx, dword [ebp + 0xc]
add eax, eax
mov eax, dword [edx + eax*8 + 0xc]
push 0
add eax, 8
push ecx
call fcn.00413650
mov eax, dword [eax + 8]
add esp, 8
test eax, eax
jne 0x42d7f9
jmp 0x42d771
movzx esi, byte [esi + 0x4dfe80]
movzx ecx, byte [ecx + 0x4dfe80]
sub ecx, esi
jne 0x42d76e
inc edx
jmp 0x42d720
mov edi, dword [ebp + 8]
inc ebx
cmp ebx, dword [edi + 0x14]
jl 0x42d701
mov ecx, dword [ebp + 0xc]
mov esi, str.sqlite_master
sub esi, ecx
movzx eax, byte [ecx]
movzx edx, byte [esi + ecx]
cmp eax, edx
jne 0x42d7b1
test eax, eax
jne 0x42d7c3
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx + 0x10]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x42d7c6
neg eax
sbb eax, eax
test eax, eax
jne 0x42d7f7
mov dword [ebp + 0xc], str.sqlite_temp_master
jmp 0x42d6f7
movzx edx, byte [edx + 0x4dfe80]
movzx eax, byte [eax + 0x4dfe80]
sub eax, edx
jne 0x42d7f7
inc ecx
jmp 0x42d781
test eax, eax
je 0x42d7f7
mov esi, eax
sub esi, ecx
mov edi, edi
movzx eax, byte [ecx]
movzx edx, byte [esi + ecx]
cmp eax, edx
jne 0x42d7e2
test eax, eax
je 0x42d7a5
inc ecx
jmp 0x42d7d0
movzx edx, byte [edx + 0x4dfe80]
movzx eax, byte [eax + 0x4dfe80]
sub eax, edx
jne 0x42d7a1
inc ecx
jmp 0x42d7d0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x444f70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4fb744]
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 - 0x34], ecx
mov ecx, dword [esi]
mov dword [ebp - 0x3c], edx
mov edx, dword [ecx + 0x10]
add eax, eax
mov eax, dword [edx + eax*8]
mov dword [ebp - 0x20], eax
mov eax, 1
push edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], eax
jmp 0x444fb3
mov esi, dword [ebp - 0x2c]
push eax
push str.sqlite_stat_d
lea ecx, [ebp - 0x1c]
push ecx
push 0x18
call fcn.0043efe0
mov edi, dword [esi]
lea edx, [ebp - 0x1c]
add esp, 0x10
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x30], edi
xor ebx, ebx
cmp dword [edi + 0x14], ebx
jle 0x445099
lea ecx, [ecx]
mov eax, ebx
cmp ebx, 2
jge 0x444fea
xor eax, 1
mov edx, dword [ebp - 0x20]
test edx, edx
je 0x445012
mov esi, dword [edi + 0x10]
mov ecx, eax
add ecx, ecx
mov edi, dword [esi + ecx*8]
sub edi, edx
lea ecx, [ecx]
movzx ecx, byte [edx]
movzx esi, byte [edi + edx]
cmp ecx, esi
jne 0x445074
test ecx, ecx
jne 0x445086
mov edi, dword [ebp - 0x30]
mov edx, dword [edi + 0x10]
mov ecx, dword [ebp - 0x24]
add eax, eax
mov eax, dword [edx + eax*8 + 0xc]
push 0
add eax, 8
push ecx
call fcn.00413650
add esp, 8
cmp dword [eax + 8], 0
je 0x44508f
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x1c]
push edx
push eax
push str.DELETE_FROM__Q._s_WHERE__s_Q
push ecx
call fcn.004443e0
add esp, 0x18
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp eax, 4
jle 0x444fb0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b3f21
mov esp, ebp
pop ebp
ret
movzx esi, byte [esi + 0x4dfe80]
movzx ecx, byte [ecx + 0x4dfe80]
sub ecx, esi
jne 0x44508c
inc edx
jmp 0x445000
mov edi, dword [ebp - 0x30]
inc ebx
cmp ebx, dword [edi + 0x14]
jl 0x444fe0
mov ecx, dword [ebp - 0x24]
mov esi, str.sqlite_master
sub esi, ecx
movzx eax, byte [ecx]
movzx edx, byte [esi + ecx]
cmp eax, edx
jne 0x4450d2
test eax, eax
jne 0x4450e8
cmp dword [ebp - 0x20], 0
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx + 0x10]
jne 0x4450eb
neg eax
sbb eax, eax
test eax, eax
jne 0x445053
mov dword [ebp - 0x24], str.sqlite_temp_master
jmp 0x444fd2
movzx edx, byte [edx + 0x4dfe80]
movzx eax, byte [eax + 0x4dfe80]
sub eax, edx
jne 0x445053
inc ecx
jmp 0x4450a3
test eax, eax
je 0x445053
mov ecx, dword [ebp - 0x20]
mov esi, eax
sub esi, ecx
lea ebx, [ebx]
movzx eax, byte [ecx]
movzx edx, byte [esi + ecx]
cmp eax, edx
jne 0x445112
test eax, eax
je 0x4450c6
inc ecx
jmp 0x445100
movzx edx, byte [edx + 0x4dfe80]
movzx eax, byte [eax + 0x4dfe80]
sub eax, edx
jne 0x4450c2
inc ecx
jmp 0x445100