joyce8/EMBER2024-capa huggingface dataset:
Function at 0x542390
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x671330]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x5424a3
cmp dword [ebp + 0x10], edi
je 0x5424a3
xor eax, eax
push str.KERNEL32
mov word [esi], ax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x54242b
push str.QueryFullProcessImageNameW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
test eax, eax
je 0x54242b
push ebx
push edi
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x542490
lea eax, [ebp + 0x10]
push eax
push esi
push edi
push ebx
call dword [ebp - 8]
test eax, eax
mov ecx, 1
push ebx
cmovne edi, ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00544286
mov esp, ebp
pop ebp
ret
push ebx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x542490
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push ebx
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x542489
push dword [ebp + 0x10]
push esi
push dword [ebp - 0xc]
push ebx
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
jne 0x542484
push ebx
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00544286
mov esp, ebp
pop ebp
ret
mov edi, 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00544286
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00544286
mov esp, ebp
pop ebp
ret
Function at 0x545310
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 0xf0000040
push 1
push 0
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x5453ed
mov dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x5453e1
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
add esp, 4
shl eax, 1
push eax
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x5453d7
mov dword [ebp - 8], 0
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push 2
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x5453d7
cmp dword [ebp - 8], 0
je 0x5453d7
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004901b0
push 0
lea ecx, [ebp - 8]
push ecx
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00418b20
push eax
push 2
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x10], 0
jne 0x545403
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x549950
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5de28b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x671330]
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 eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp + 0x18]
push 0x1fe
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x210]
push ebx
push eax
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x21c], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x214], 0xff
lea eax, [ebp - 0x224]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftInternet_Account_Manager
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x549b74
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x21c]
push eax
push ebx
push str.Default_Mail_Account
push dword [ebp - 0x224]
call edi
test eax, eax
jne 0x549b68
call fcn.00407f00
mov ecx, eax
test ecx, ecx
jne 0x549a31
push 0x80004005
call fcn.00407890
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x210]
mov dword [ebp - 4], 0
push eax
push str.SoftwareMicrosoftInternet_Account_ManagerAccounts
lea eax, [ebp - 0x228]
mov dword [ebp - 0x220], 0
push 0x5fb88c
push eax
mov dword [ebp - 0x218], 0
call fcn.004b3830
mov esi, dword [ebp - 0x228]
lea eax, [ebp - 0x220]
add esp, 0x10
push eax
push 0x20019
push 0
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x549b49
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x549ad4
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], 0xff
push ecx
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push str.SMTP_Server
push dword [ebp - 0x220]
call edi
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x549b06
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], 0xff
push ecx
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push str.SMTP_Email_Address
push dword [ebp - 0x220]
call edi
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x549b38
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], 4
push ecx
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push str.SMTP_Port
push dword [ebp - 0x220]
call edi
push dword [ebp - 0x220]
mov ebx, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x549b68
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
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.00544286
mov esp, ebp
pop ebp
ret
Function at 0x54abe0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5de4c1
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x671330]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.CInterceptorsMgr.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
lea esi, [edi + 0x10]
mov dword [ebp - 4], 0
mov ecx, esi
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0054db00
mov dword [esi], eax
lea esi, [edi + 0x18]
mov byte [ebp - 4], 1
push 8
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.00544038
add esp, 4
test eax, eax
jne 0x54ac8a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov dword [esi], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
lea ecx, [edi + 0x2c]
mov byte [ebp - 4], 2
call fcn.0042f570
lea eax, [edi + 0x3c]
mov byte [edi + 0x58], 0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push edi
push 0x54bd80
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov dword [edi + 0x54], eax
add esp, 0x18
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x54ae90
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5de516
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x671330]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x3e8
push dword [edi + 0x54]
mov dword [edi], vtable.CInterceptorsMgr.0
mov byte [edi + 0x58], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x54aede
push 0xffffffffffffffff
push dword [edi + 0x54]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [edi + 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [edi + 0x30]
call esi
push dword [edi + 0x34]
call esi
lea ecx, [edi + 0x18]
call fcn.0054dfc0
push 8
push 1
push dword [edi + 0x18]
call fcn.0040b970
add esp, 0xc
mov dword [edi + 0x18], 0
mov eax, dword [edi + 0x10]
lea ecx, [edi + 0x10]
push eax
mov dword [ebp - 4], 0
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.0054e160
push 0x20
push 1
push dword [edi + 0x10]
call fcn.0040b970
mov ecx, dword [edi + 4]
add esp, 0xc
test ecx, ecx
je 0x54af7c
mov eax, dword [edi + 0xc]
sub eax, ecx
push 8
sar eax, 3
push eax
push ecx
call fcn.0040b970
mov dword [edi + 4], 0
add esp, 0xc
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x564610
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x671330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push edi
mov edi, dword [ebp + 0x1c]
add ecx, 4
imul eax, eax, 0xc4
push edi
push dword [ebp + 0x18]
add eax, ecx
push eax
mov dword [ebp - 0x18], eax
call fcn.0057a950
mov ebx, dword [ebp + 0x14]
add esp, 0xc
test ebx, ebx
jle 0x56469b
push esi
mov esi, dword [ebp + 0x10]
dec ebx
shr ebx, 4
add esi, 8
inc ebx
nop dword [eax]
mov eax, dword [esi - 8]
xor eax, dword [edi]
mov dword [ebp - 0x14], eax
mov eax, dword [esi - 4]
xor eax, dword [edi + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
xor eax, dword [edi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
xor eax, dword [edi + 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push edi
push eax
push dword [ebp - 0x18]
call fcn.0057a950
add esp, 0xc
lea esi, [esi + 0x10]
sub ebx, 1
jne 0x564660
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00544286
mov esp, ebp
pop ebp
ret
Function at 0x56a2d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x56a320
mov eax, dword [ebp + 0xc]
xor esi, esi
mov edi, eax
mov al, byte [eax]
test al, al
je 0x56a311
nop dword [eax]
movzx eax, al
lea ecx, [esi*8]
lea edi, [edi + 1]
movzx edx, byte [eax + 0x5fce00]
mov al, byte [edi]
xor edx, ecx
xor esi, edx
test al, al
jne 0x56a2f0
mov ecx, dword [ebx + 0xc]
mov eax, esi
xor edx, edx
div dword [ebx]
mov edi, dword [ecx + edx*8 + 4]
mov ecx, dword [ecx + edx*8]
jmp 0x56a328
mov edi, dword [ebx + 8]
xor edx, edx
mov ecx, dword [ebx + 4]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
test ecx, ecx
je 0x56a396
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
movzx esi, byte [eax + 0x5fce00]
mov dword [ebp + 8], esi
mov eax, dword [edi + 0xc]
dec ecx
mov dword [ebp + 0x10], ecx
mov bl, byte [eax]
movzx ecx, bl
movzx ecx, byte [ecx + 0x5fce00]
sub ecx, esi
jne 0x56a38d
mov esi, edx
sub esi, eax
nop dword [eax]
test bl, bl
je 0x56a383
movzx ecx, byte [esi + eax + 1]
inc eax
movzx edx, byte [ecx + 0x5fce00]
mov bl, byte [eax]
movzx ecx, bl
movzx ecx, byte [ecx + 0x5fce00]
sub ecx, edx
je 0x56a360
jmp 0x56a387
test ecx, ecx
je 0x56a39d
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edi, dword [edi]
test ecx, ecx
jne 0x56a341
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x56fba0
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x56fd11
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jle 0x56fd11
mov eax, 0x10
cmp ebx, eax
push edi
mov edi, dword [ebp + 8]
cmovg ebx, eax
xor ecx, ecx
nop dword [eax + eax]
mov eax, ecx
cdq
idiv ebx
mov al, byte [edx + esi]
mov byte [edi + ecx + 0xb4], al
inc ecx
cmp ecx, 0x10
jl 0x56fbd0
mov byte [edi], bl
lea ebx, [edi + 0x14]
mov byte [edi + 1], 0
mov eax, dword [edi + 0xb4]
bswap eax
mov dword [edi + 4], eax
mov eax, dword [edi + 0xb8]
bswap eax
mov dword [edi + 8], eax
mov eax, dword [edi + 0xbc]
bswap eax
mov dword [edi + 0xc], eax
mov ecx, dword [edi + 0xc0]
bswap ecx
mov eax, ecx
mov dword [edi + 0x10], ecx
shr eax, 0x10
movzx eax, al
mov edx, dword [eax*4 + str.ccccwwww]
mov eax, ecx
shr eax, 8
xor edx, 0x1000000
movzx eax, al
and edx, 0xff000000
mov eax, dword [eax*4 + str.ccccwwww]
and eax, 0xff0000
xor edx, eax
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax*4 + str.ccccwwww]
xor edx, eax
movzx eax, cl
mov ecx, dword [edi + 0xc]
mov eax, dword [eax*4 + str.ccccwwww]
and eax, 0xff00
xor edx, eax
mov eax, dword [edi + 8]
xor edx, dword [edi + 4]
xor eax, edx
mov dword [ebx], edx
mov dword [edi + 0x18], eax
xor ecx, eax
mov eax, dword [edi + 0x10]
xor eax, ecx
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x20], eax
mov edi, 0x600994
nop dword [eax]
mov ecx, dword [ebx + 0xc]
lea esi, [ebx]
mov eax, ecx
lea ebx, [esi + 0x10]
shr eax, 8
movzx eax, al
mov edx, dword [eax*4 + str.ccccwwww]
mov eax, ecx
shr eax, 0x10
and edx, 0xff0000
movzx eax, al
mov eax, dword [eax*4 + str.ccccwwww]
and eax, 0xff000000
xor edx, eax
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax*4 + str.ccccwwww]
xor edx, eax
movzx eax, cl
mov eax, dword [eax*4 + str.ccccwwww]
and eax, 0xff00
xor edx, eax
xor edx, dword [edi]
add edi, 4
xor edx, dword [esi]
mov dword [ebx], edx
mov eax, dword [esi + 4]
xor eax, edx
mov dword [esi + 0x14], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov dword [esi + 0x18], ecx
mov eax, dword [esi + 0xc]
xor eax, ecx
mov dword [esi + 0x1c], eax
cmp edi, 0x6009b8
jne 0x56fc90
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov word [eax], 0x100
pop ebp
ret
Function at 0x578c30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
mov ecx, 0x80
push edi
mov edi, dword [ebp + 0xc]
lea eax, [edi*8]
cmp eax, 0x400
cmova edi, ecx
cmp edi, dword [esi]
jne 0x578c5c
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x6841a8]
test eax, eax
je 0x578c67
call eax
push ebx
lea eax, [edi*8]
push 0
push eax
call fcn.005933e0
mov ecx, dword [0x6841ac]
add esp, 8
mov ebx, eax
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x578c8b
call ecx
test ebx, ebx
jne 0x578c98
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push dword [esi + 0xc]
call fcn.00556b90
push ebx
mov dword [esi + 0xc], ebx
call dword [0x671b54]
shr eax, 3
mov dword [ebp + 0xc], eax
mov dword [esi], eax
lea ecx, [eax*8]
push ecx
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esi + 8]
add esp, 0x14
mov dword [esi + 8], 0
test ecx, ecx
je 0x578d71
mov edi, dword [ecx + 0xc]
xor ebx, ebx
mov al, byte [edi]
test al, al
je 0x578d00
movzx eax, al
lea edx, [ebx*8]
lea edi, [edi + 1]
movzx esi, byte [eax + 0x5fce00]
mov al, byte [edi]
xor esi, edx
xor ebx, esi
test al, al
jne 0x578ce2
xor edx, edx
mov edi, dword [ecx]
mov eax, ebx
div dword [ebp + 0xc]
mov eax, dword [ebp - 4]
lea esi, [eax + edx*8]
test esi, esi
je 0x578d4b
mov eax, dword [esi]
test eax, eax
je 0x578d1e
mov edx, dword [esi + 4]
jmp 0x578d20
xor edx, edx
inc eax
mov dword [esi + 4], ecx
mov dword [esi], eax
test edx, edx
je 0x578d4b
mov dword [ecx], edx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 4]
test eax, eax
je 0x578d40
mov dword [eax], ecx
mov dword [edx + 4], ecx
jmp 0x578d67
mov eax, dword [ebp + 8]
mov dword [eax + 8], ecx
mov dword [edx + 4], ecx
jmp 0x578d67
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov dword [ecx], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x578d5d
mov dword [eax + 4], ecx
mov dword [ecx + 4], 0
mov dword [esi + 8], ecx
mov ecx, edi
test edi, edi
jne 0x578cd7
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x583830
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x671330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
add ecx, ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [edi]
mov dword [ebp - 0x20], edi
mov eax, dword [eax + 0x10]
mov ebx, dword [eax + ecx*8]
mov eax, 1
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], eax
nop dword [eax]
push eax
push str.sqlite_stat_d
lea eax, [ebp - 0x1c]
push eax
push 0x18
call fcn.00556760
mov eax, dword [edi]
add esp, 0x10
xor edi, edi
mov dword [ebp - 0x24], 0
cmp dword [eax + 0x14], edi
jle 0x58397f
mov eax, edi
mov ecx, edi
xor eax, 1
cmp edi, 2
cmovl ecx, eax
mov dword [ebp - 0x30], ecx
test ebx, ebx
je 0x583942
mov esi, dword [ebp - 0x20]
mov edx, ecx
add edx, edx
mov eax, ebx
mov bl, byte [ebx]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x10]
mov edx, dword [ecx + edx*8]
movzx ecx, bl
movzx esi, byte [ecx + 0x5fce00]
movzx ecx, byte [edx]
movzx ecx, byte [ecx + 0x5fce00]
sub esi, ecx
jne 0x583905
sub edx, dword [ebp - 0x28]
mov dword [ebp - 0x34], edx
test bl, bl
je 0x583938
movzx ecx, byte [edx + eax + 1]
inc eax
movzx edx, byte [ecx + 0x5fce00]
mov bl, byte [eax]
movzx ecx, bl
movzx esi, byte [ecx + 0x5fce00]
sub esi, edx
mov edx, dword [ebp - 0x34]
je 0x5838e1
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
inc edi
mov ebx, dword [ebp - 0x28]
mov eax, dword [ecx]
cmp edi, dword [eax + 0x14]
jl 0x583898
test edx, edx
je 0x58397b
push dword [ebp - 0x38]
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x3c]
push eax
push ebx
push str.DELETE_FROM__Q._s_WHERE__s_Q
push edi
call fcn.00593c00
add esp, 0x18
jmp 0x583982
test esi, esi
jne 0x583905
mov ecx, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
add ecx, ecx
mov eax, dword [edx]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx*8 + 0xc]
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x1c]
add eax, 8
push ecx
push eax
call fcn.0056a2d0
add esp, 0xc
test eax, eax
je 0x583974
mov edx, dword [eax + 8]
mov dword [ebp - 0x24], edx
test edx, edx
jne 0x58391a
jmp 0x583908
xor edx, edx
mov dword [ebp - 0x24], edx
jmp 0x583908
mov edi, ecx
jmp 0x583982
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, 4
jle 0x583870
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00544286
mov esp, ebp
pop ebp
ret
Function at 0x58bea0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
push edi
xor edi, edi
mov dword [ebp - 4], edx
cmp dword [ebx + 0x14], edx
jle 0x58bf6b
push esi
nop dword [eax]
mov eax, edi
mov ecx, edi
xor eax, 1
cmp edi, 2
cmovl ecx, eax
mov eax, dword [ebx + 0x10]
add ecx, ecx
mov edx, dword [eax + ecx*8 + 0xc]
mov dword [ebp - 8], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x58bf3e
mov ebx, dword [eax + ecx*8]
mov esi, edx
mov al, byte [edx]
movzx ecx, byte [ebx]
movzx edx, byte [ecx + 0x5fce00]
movzx ecx, al
movzx ecx, byte [ecx + 0x5fce00]
sub ecx, edx
jne 0x58bf22
sub ebx, esi
test al, al
je 0x58bf37
movzx ecx, byte [ebx + esi + 1]
inc esi
movzx edx, byte [ecx + 0x5fce00]
mov al, byte [esi]
movzx ecx, al
movzx ecx, byte [ecx + 0x5fce00]
sub ecx, edx
je 0x58bf01
mov edx, dword [ebp - 4]
mov ebx, dword [ebp + 8]
inc edi
cmp edi, dword [ebx + 0x14]
jl 0x58bec0
pop esi
pop edi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
test ecx, ecx
jne 0x58bf22
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push dword [ebp + 0xc]
add eax, 0x18
push eax
call fcn.0056a2d0
add esp, 0xc
test eax, eax
je 0x58bf64
mov edx, dword [eax + 8]
mov dword [ebp - 4], edx
test edx, edx
jne 0x58bf2e
jmp 0x58bf28
xor edx, edx
mov dword [ebp - 4], edx
jmp 0x58bf28
pop edi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x58bf80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
push edi
xor edi, edi
mov dword [ebp - 4], edx
cmp dword [ebx + 0x14], edx
jle 0x58c05a
push esi
nop dword [eax]
mov esi, dword [ebp + 0x10]
mov eax, edi
xor eax, 1
mov ecx, edi
cmp edi, 2
cmovl ecx, eax
mov dword [ebp - 0xc], ecx
test esi, esi
je 0x58c01d
mov edx, ecx
mov eax, esi
mov ecx, dword [ebx + 0x10]
add edx, edx
mov bl, byte [esi]
mov edx, dword [ecx + edx*8]
movzx ecx, bl
movzx esi, byte [ecx + 0x5fce00]
movzx ecx, byte [edx]
movzx ecx, byte [ecx + 0x5fce00]
sub esi, ecx
jne 0x58c006
sub edx, eax
mov dword [ebp - 8], edx
test bl, bl
je 0x58c016
movzx ecx, byte [edx + eax + 1]
inc eax
movzx edx, byte [ecx + 0x5fce00]
mov bl, byte [eax]
movzx ecx, bl
movzx esi, byte [ecx + 0x5fce00]
sub esi, edx
mov edx, dword [ebp - 8]
je 0x58bfe2
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
inc edi
cmp edi, dword [eax + 0x14]
jge 0x58c04a
mov ebx, eax
jmp 0x58bfa0
test esi, esi
jne 0x58c006
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add ecx, ecx
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx*8 + 0xc]
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp + 0xc]
add eax, 8
push eax
call fcn.0056a2d0
add esp, 0xc
test eax, eax
je 0x58c053
mov edx, dword [eax + 8]
mov dword [ebp - 4], edx
test edx, edx
je 0x58c009
pop esi
pop edi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
xor edx, edx
mov dword [ebp - 4], edx
jmp 0x58c009
pop edi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x59fa10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [edi], 0
cmp dword [0x671b20], 0
je 0x59fa62
mov eax, dword [0x6840d8]
test eax, eax
je 0x59fa3a
push eax
call dword [0x671b78]
add esp, 4
lea eax, [ebp + 8]
push eax
push 0x14
call fcn.00570910
mov eax, dword [0x6840d8]
add esp, 8
test eax, eax
je 0x59fa5d
push eax
call dword [0x671b80]
mov esi, dword [ebp + 8]
jmp 0x59fa6c
mov esi, dword [ebp + 8]
jmp 0x59fa6f
push 0x14
call dword [0x671b48]
mov esi, eax
add esp, 4
test esi, esi
jne 0x59fa7a
pop edi
lea eax, [esi + 7]
pop esi
pop ebp
ret
cmp dword [0x671b24], 0
push ebx
mov ebx, dword [ebp + 0x10]
je 0x59fac6
mov eax, dword [0x671c28]
test eax, eax
je 0x59fa9e
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x59fac6
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x59fb60
push 0
push 0
mov dword [esi + 0xc], ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x59fad3
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x59faec
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
mov dword [esi + 4], eax
call dword [ebp + 0xc]
add esp, 4
mov dword [esi + 0x10], eax
pop ebx
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
pop ebp
ret