joyce8/EMBER2024-capa huggingface dataset:
Function at 0x489716
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp dword [ebp + 8], 0
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebp - 4], eax
je 0x4897ad
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
mov ecx, dword [esi + 8]
sub ecx, dword [esi]
push eax
push ecx
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push dword [ebp - 4]
mov dword [edi + 0x3e0], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov edx, dword [esi + 0xc]
push 0xcc0020
push eax
push ecx
push dword [ebp - 8]
sub edx, eax
mov eax, dword [esi + 8]
push edx
sub eax, ecx
push eax
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [edi + 0x354]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_FillRect]
push dword [ebp + 8]
call ebx
jmp 0x489807
mov eax, dword [edi + 0x3e0]
test eax, eax
je 0x489807
push eax
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi]
push 0xcc0020
push 0
push 0
push dword [ebp - 4]
mov dword [ebp + 8], eax
mov eax, dword [esi + 4]
sub edx, eax
push edx
mov edx, dword [esi + 8]
sub edx, ecx
push edx
push eax
push ecx
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [edi + 0x3e0]
call ebx
and dword [edi + 0x3e0], 0
push dword [ebp - 4]
call ebx
push dword [ebp - 8]
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop ebx
leave
ret 4
Function at 0x48c1de
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, eax
test esi, esi
je 0x48c32b
cmp dword [esi + 0x4c], 0
je 0x48c32b
mov eax, dword [esi + 4]
push ebx
mov ebx, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 8]
push edi
mov edi, dword [esi + 0xc]
sub edi, dword [esi + 4]
mov dword [ebp - 8], eax
sub ebx, eax
mov eax, dword [ebp + 8]
push dword [eax + 8]
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
push edi
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x20], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 8]
mov eax, dword [ebp + 8]
push dword [ebp - 0xc]
push ebx
push edi
push 0
push 0
push dword [ebp - 4]
call fcn.0048b124
mov eax, dword [ebp + 8]
push dword [eax + 0xe0]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp - 8]
neg ecx
push ecx
mov ecx, dword [ebp - 0xc]
neg ecx
push ecx
push dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push dword [ebp - 0x14]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [sym.imp.GDI32.dll_CreateRectRgn]
xor eax, eax
push eax
push eax
push eax
push eax
call esi
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
call dword [sym.imp.GDI32.dll_GetClipRgn]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
lea eax, [ebx + ecx]
push eax
mov eax, dword [ebp - 0xc]
lea edx, [edi + eax]
push edx
push ecx
push eax
call esi
mov esi, dword [sym.imp.GDI32.dll_SelectClipRgn]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
call esi
push 0xcc0020
push 0
push 0
push dword [ebp - 4]
push ebx
mov ebx, dword [ebp - 0x10]
push edi
push dword [ebp - 8]
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x18]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
cmp dword [ebp - 0x1c], 1
jne 0x48c304
push dword [ebp - 0x14]
jmp 0x48c306
push 0
push ebx
call esi
push dword [ebp - 0x14]
call edi
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x20]
call edi
mov eax, dword [ebp + 8]
push ebx
push dword [eax + 8]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x48ebe8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x48ebf3
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x48eca5
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x508ef8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x508ef8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x508ef8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x508ef8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x508ef8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x508ef8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x508ef8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x508ef8]
inc ecx
sub edi, 8
dec esi
jne 0x48ec0a
pop ebx
test edi, edi
je 0x48ecbe
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x508ef8]
inc ecx
dec edi
jne 0x48eca9
pop esi
not eax
pop edi
ret

Function at 0x48f369
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x48f399
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48f394
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x48f3c1
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x48f3aa
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.004dbd40
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret

Function at 0x4969ee
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc850
push 0x4dbba4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
cmp word [ecx], 0x5a4d
jne 0x496a74
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
je 0x496a4c
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x496a7a
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x496a44
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x496a44
mov al, 1
jmp 0x496a46
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x496ad9
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push esi
mov esi, dword [0x545600]
test esi, esi
je 0x496afd
lea eax, [esp + 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
jmp 0x496ae1
pop esi
pop ecx
ret

Function at 0x496b00
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x54560c], eax
je 0x496b16
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x54561c]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x496b63
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x496b54
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x496b54
push eax
call fcn.00496bca
pop ecx
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call fcn.004d5a72
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x496b25
mov dword [0x54561c], ebx
call fcn.00496ba3
mov esi, dword [0x545618]
cmp esi, ebx
je 0x496b90
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.004d5a72
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x496b78
pop edi
mov dword [0x545618], ebx
mov dword [0x54560c], ebx
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x496e4d
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x545610]
push esi
test eax, eax
push edi
jne 0x496eb7
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 0xc]
cmp edi, eax
je 0x496eb5
push 8
call fcn.004d6661
mov esi, eax
pop ecx
test esi, esi
jne 0x496e79
push 8
pop edi
jmp 0x496e94
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x496ea5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.004d5a72
pop ecx
and dword [0x545614], 0
mov dword [0x545610], edi
mov eax, edi
jmp 0x496eb7
mov dword [esi + 4], edi
mov eax, dword [0x545618]
mov dword [esi], eax
mov dword [0x545618], esi
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x497174
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, 0x7ff80000
mov ebx, 0x10000
jbe 0x497198
lea eax, [esi - 0x7ff80000]
mov dword [ebp + 8], eax
jmp 0x49719b
mov dword [ebp + 8], ebx
cmp esi, 0x80000000
jae 0x4971ae
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x4971b5
mov dword [ebp - 4], 0xfff80000
mov eax, dword [0x545604]
mov ecx, dword [0x545600]
test eax, eax
jne 0x4971cf
test ecx, ecx
je 0x4971e4
mov eax, ecx
mov dword [0x545604], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x4971e4
cmp edx, dword [ebp + 8]
jb 0x4971e4
cmp edx, dword [ebp - 4]
jbe 0x49733d
mov eax, ecx
test ecx, ecx
mov dword [0x545604], eax
je 0x497214
test eax, eax
je 0x497208
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x497208
cmp ecx, dword [ebp + 8]
jb 0x497208
cmp ecx, dword [ebp - 4]
jbe 0x49733d
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x545604], eax
jne 0x4971f3
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp + 8]
mov edi, esi
jbe 0x49727c
cmp edi, 0x70000000
jb 0x497239
cmp edi, 0x80000000
ja 0x497239
mov edi, 0x6fff0000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x49727c
cmp dword [ebp - 0x10], ebx
jne 0x497254
cmp dword [ebp - 0x14], ebx
jae 0x497264
mov eax, dword [ebp - 0x1c]
lea edi, [eax - 0x10000]
cmp edi, dword [ebp + 8]
ja 0x497224
jmp 0x49727c
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x545604], eax
jne 0x4972f3
cmp esi, dword [ebp - 4]
jae 0x497364
cmp esi, 0x70000000
jb 0x49729a
cmp esi, 0x80000000
ja 0x49729a
mov esi, 0x80010000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x497364
cmp dword [ebp - 0x10], ebx
jne 0x4972e8
cmp dword [ebp - 0x14], ebx
jb 0x4972e8
mov ecx, esi
and ecx, 0xffff
je 0x4972d0
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x14], eax
add dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x20]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x545604], eax
jne 0x4972f3
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
lea esi, [eax + ecx]
jmp 0x49727c
mov dword [eax], 0x52727464
mov eax, dword [0x545604]
xor ecx, ecx
mov dword [eax + 8], ecx
mov eax, dword [0x545604]
mov edx, dword [0x545600]
mov dword [eax + 4], edx
mov eax, dword [0x545604]
mov dword [0x545600], eax
add eax, 0xffe0
mov edx, 0x7fd
mov dword [eax + 0x18], ecx
mov ecx, eax
sub eax, 0x20
dec edx
jne 0x497325
mov eax, dword [0x545604]
mov dword [eax + 8], ecx
mov eax, dword [0x545604]
mov esi, dword [eax + 8]
cmp esi, dword [ebp + 8]
jb 0x497364
cmp esi, dword [ebp - 4]
ja 0x497364
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call fcn.004dbcc0
add esp, 0xc
mov eax, esi
jmp 0x497366
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49736b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc860
push 0x4dbba4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4973e0
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x4973dc
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x4973dc
cmp word [eax + 0x14], 0
jne 0x4973d1
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x4973e2
mov eax, ecx
jmp 0x4973cb
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4992d1
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
jle 0x4992fa
push esi
movzx edx, byte [ecx]
movzx edx, byte [edx + 0x4fe670]
mov esi, eax
shl esi, 3
xor edx, esi
xor eax, edx
inc ecx
dec dword [esp + 8]
cmp dword [esp + 8], 0
jg 0x4992da
pop esi
ret

Function at 0x4997a5
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x20]
push edi
test eax, eax
je 0x4997e6
cdq
push esi
mov esi, eax
add eax, dword [ebp + 0xc]
mov edi, edx
mov ecx, edx
adc ecx, dword [ebp + 0x10]
push edi
sub eax, 1
push esi
sbb ecx, 0
push ecx
push eax
call fcn.004dc1e0
push edi
push esi
push edx
push eax
call fcn.004dc560
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
pop esi
push dword [ebp + 0x10]
mov edi, ebx
push dword [ebp + 0xc]
call fcn.00499646
pop ecx
pop ecx
test eax, eax
jne 0x49980f
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x499816
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x10], eax
mov dword [ebp - 4], 0x60a
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret

Function at 0x499841
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp + 8]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x499871
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x499871
mov dword [esi + 0x10], eax
mov eax, 0x70a
jmp 0x499891
push 1
push 0
push 0
push dword [ebp + 8]
call fcn.004dc560
mov ecx, eax
xor eax, eax
add ecx, edi
adc edx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x499b74
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebx
push ebp
push edi
push dword [esp + 0x14]
xor ebp, ebp
xor ebx, ebx
call fcn.00499b61
mov edi, eax
pop ecx
test edi, edi
jne 0x499b93
push 7
pop eax
jmp 0x499c1c
push esi
call fcn.00499425
test eax, eax
je 0x499bcf
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x499bbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x499c01
inc ebp
cmp ebp, 5
jge 0x499c01
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x499b9d
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x499bf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x499c01
inc ebp
cmp ebp, 5
jge 0x499c01
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x499bcf
push edi
call fcn.004d618d
pop ecx
cmp esi, 0xffffffff
pop esi
jne 0x499c17
cmp ebx, 2
jne 0x499c17
xor eax, eax
jmp 0x499c1c
mov eax, 0xa0a
pop edi
pop ebp
pop ebx
ret
Function at 0x4a169e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x52ec00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [sym.hao123Juzi.exe_sqlite3_temp_directory]
push ebx
push esi
test eax, eax
je 0x4a16d8
push eax
push 0x514d4c
lea eax, [ebp - 0x10c]
push eax
push 0xe6
call sym.hao123Juzi.exe_sqlite3_snprintf
add esp, 0x10
jmp 0x4a1750
call fcn.00499425
mov esi, 0xe6
test eax, eax
je 0x4a1718
lea eax, [ebp - 0x314]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x314]
push eax
call fcn.004994d2
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x4a1734
push 7
pop eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004d5a7d
leave
ret
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x210]
push eax
call sym.hao123Juzi.exe_sqlite3_win32_mbcs_to_utf8
jmp 0x4a1700
push ebx
push 0x514d4c
lea eax, [ebp - 0x10c]
push eax
push esi
call sym.hao123Juzi.exe_sqlite3_snprintf
push ebx
call fcn.004d618d
add esp, 0x14
mov ecx, str.etilqs_
call fcn.004986de
lea ecx, [ebp - 0x10c]
mov edx, eax
call fcn.004986de
lea eax, [edx + eax + 0x11]
mov edx, dword [ebp + 8]
cmp eax, edx
jl 0x4a1777
xor eax, eax
inc eax
jmp 0x4a170a
lea ecx, [ebp - 0x10c]
call fcn.004986de
test eax, eax
jbe 0x4a1790
dec ecx
cmp byte [ecx + eax], 0x5c
jne 0x4a1790
dec eax
jne 0x4a1787
mov byte [ebp + eax - 0x10c], 0
lea eax, [ebp - 0x10c]
push eax
push str._setilqs_
add edx, 0xffffffef
push edi
push edx
call sym.hao123Juzi.exe_sqlite3_snprintf
mov ecx, edi
call fcn.004986de
mov esi, eax
lea eax, [edi + esi]
push eax
push 0xf
call sym.hao123Juzi.exe_sqlite3_randomness
add esp, 0x18
push 0xf
pop ecx
movzx eax, byte [edi + esi]
xor edx, edx
push 0x3e
pop ebx
div ebx
mov al, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi], al
inc esi
dec ecx
jne 0x4a17c8
mov byte [edi + esi], cl
xor eax, eax
jmp 0x4a170a
Function at 0x4a1977
Capabilities:
Get disk size

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x52ec00]
xor eax, ebp
mov dword [ebp + 0x90], eax
mov eax, dword [ebp + 0xa0]
lea ecx, [ebp - 0x78]
push ecx
push 0x104
push eax
push dword [ebp + 0x9c]
mov dword [ebp - 0x80], 0x200
call fcn.004a18a1
add esp, 0x10
test eax, eax
jne 0x4a1a4b
push ebx
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00499b61
mov esi, eax
xor ebx, ebx
pop ecx
cmp esi, ebx
je 0x4a1a42
push edi
call fcn.00499425
test eax, eax
mov eax, esi
je 0x4a1a0e
cmp word [esi], bx
je 0x4a19f8
cmp word [eax], 0x5c
je 0x4a19f3
inc eax
inc eax
cmp word [eax], bx
jne 0x4a19e4
jmp 0x4a19f8
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x7c]
push eax
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x4a1a34
cmp byte [esi], bl
je 0x4a1a20
cmp byte [eax], 0x5c
je 0x4a1a1e
inc eax
cmp byte [eax], bl
jne 0x4a1a12
jmp 0x4a1a20
mov byte [eax], bl
lea eax, [ebp - 0x7c]
push eax
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
mov edi, eax
call fcn.004d618d
pop ecx
cmp edi, ebx
pop edi
jne 0x4a1a49
mov dword [ebp - 0x80], 0x200
pop esi
pop ebx
mov ecx, dword [ebp + 0x90]
mov eax, dword [ebp - 0x80]
xor ecx, ebp
call fcn.004d5a7d
add ebp, 0x94
leave
ret
Function at 0x4a490a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x4a4a22
test esi, esi
je 0x4a4a22
movzx edx, word [edi + 2]
mov eax, 0x800
mov ecx, edx
and ecx, eax
mov ebx, eax
cmp cx, bx
je 0x4a49c6
movzx ecx, word [esi + 2]
mov ebx, ecx
and ebx, eax
cmp bx, ax
je 0x4a49c6
xor cl, dl
test cl, 0x10
jne 0x4a49c6
mov al, byte [edi]
cmp al, byte [esi]
jne 0x4a49c6
push dword [esi + 8]
push dword [edi + 8]
call fcn.004a490a
pop ecx
pop ecx
test eax, eax
jne 0x4a49c6
push dword [esi + 0xc]
push dword [edi + 0xc]
call fcn.004a490a
pop ecx
pop ecx
test eax, eax
jne 0x4a49c6
mov ebx, dword [esi + 0x10]
mov edi, dword [edi + 0x10]
call fcn.0049da47
test eax, eax
jne 0x4a49c6
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x18]
cmp eax, dword [esi + 0x18]
jne 0x4a49c6
mov ax, word [edi + 0x1c]
cmp ax, word [esi + 0x1c]
jne 0x4a49c6
movzx eax, word [edi + 2]
mov ecx, eax
mov eax, 0x400
and ecx, eax
mov edx, eax
cmp cx, dx
jne 0x4a49cb
mov cx, word [esi + 2]
and cx, dx
cmp cx, ax
jne 0x4a49c6
mov eax, dword [edi + 4]
cmp eax, dword [esi + 4]
je 0x4a49f5
push 2
pop eax
jmp 0x4a4a2d
cmp byte [edi], 0x98
je 0x4a49f5
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4a49f5
mov dx, word [esi + 2]
mov ebx, eax
and dx, bx
cmp dx, ax
je 0x4a49c6
mov edx, dword [esi + 4]
test edx, edx
je 0x4a49c6
call fcn.00498753
test eax, eax
jne 0x4a49c6
movzx ecx, word [edi + 2]
mov dx, word [esi + 2]
mov eax, 0x100
and ecx, eax
and dx, ax
cmp cx, dx
je 0x4a4a11
xor eax, eax
inc eax
jmp 0x4a4a2d
test cx, cx
je 0x4a4a1e
mov eax, dword [edi + 0x14]
cmp eax, dword [esi + 0x14]
jne 0x4a49c6
xor eax, eax
jmp 0x4a4a2d
mov eax, esi
sub eax, edi
neg eax
sbb eax, eax
and eax, 2
pop edi
pop esi
pop ebx
ret
Function at 0x4a5fee
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xc]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebx]
lea esi, [edi + 2]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esi
call fcn.0049daf8
mov esi, eax
mov eax, ecx
call fcn.0049daa9
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
call fcn.0049da24
push 0
push eax
mov ecx, esi
mov eax, ebx
call fcn.004a481f
mov ecx, dword [ebp - 4]
add edi, esi
push edi
push dword [ebx + 8]
push 0x35
pop eax
call fcn.004a332b
mov eax, dword [ebp + 8]
inc edi
push edi
mov edi, dword [ebp + 0x14]
xor ebx, ebx
inc ebx
call fcn.004a46a5
push dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
push edi
push esi
push 0x1e
pop eax
call fcn.004a3296
push dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
push dword [ebx + 8]
mov ecx, dword [ebp - 4]
push 0x46
pop eax
call fcn.004a332b
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add esp, 0x28
call fcn.0049dac4
mov ecx, esi
call fcn.0049db1c
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x30]
test ecx, ecx
je 0x4a60fc
mov eax, dword [eax + 0x34]
lea edi, [eax + 1]
test eax, eax
jne 0x4a60a3
mov edi, ecx
mov esi, dword [ebp - 4]
push edi
push 0x73
pop eax
mov ecx, esi
call fcn.004a331a
push 0xffffffffffffffff
push edi
mov dword [ebp + 8], eax
push 0x14
pop eax
mov ecx, esi
call fcn.004a332b
push 1
mov ecx, esi
call fcn.004a3308
mov edi, eax
mov eax, dword [ebp + 8]
mov ecx, esi
call fcn.0049cada
push dword [ebx + 8]
mov ecx, esi
push 0x3f
pop eax
call fcn.004a331a
push dword [ebx + 8]
mov ecx, esi
push 0x39
pop eax
call fcn.004a331a
add esp, 0x18
mov eax, edi
mov ecx, esi
call fcn.0049cada
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4a6101
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi + 0x34]
test eax, eax
je 0x4a614b
cmp dword [esp + 8], 0
je 0x4a614b
push 0xffffffffffffffff
push eax
push 0x14
pop eax
mov ecx, edi
call fcn.004a332b
push dword [esi + 0x34]
mov ecx, edi
push 0x72
pop eax
call fcn.004a331a
push dword [esp + 0x14]
mov esi, eax
xor eax, eax
push 0
inc eax
mov ecx, edi
call fcn.004a332b
add esp, 0x14
mov eax, esi
mov ecx, edi
pop esi
jmp fcn.0049cada
pop esi
ret
Function at 0x4a73bf
Capabilities:
Get system information on windows

Disassembly:
push esi
push 0x24
push 0
mov esi, 0x5b9820
push esi
call fcn.004dbcc0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 1
push 0x52e240
call sym.hao123Juzi.exe_sqlite3_vfs_register
pop ecx
pop ecx
xor eax, eax
pop esi
ret