joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4033c2
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41888c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5a8
mov eax, dword [0x41f310]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], eax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x78]
xor eax, eax
push str.Products
push ecx
mov dword [esp + 0x5c8], eax
mov dword [esp + 0x20], eax
mov ebp, 1
call ebx
push 0x7d5
lea ecx, [esp + 0x14]
call fcn.004145a1
lea edx, [esp + 0x10]
push str._n_r_n_r
lea eax, [esp + 0x28]
push edx
push eax
call fcn.00414384
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c4], 1
call fcn.00414269
lea ecx, [esp + 0x24]
mov byte [esp + 0x5c0], 0
call fcn.004141c0
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esi, 0x4ac
push ebp
lea ecx, [esp + 0x2c]
push str.Prod_d
push ecx
call fcn.0040475f
add esp, 0xc
lea edx, [esp + 0xb8]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x78]
push esi
push 0xff
push edx
push 0x422890
push eax
push ecx
call edi
mov al, byte [esp + 0xb8]
test al, al
je 0x403528
push esi
lea edx, [esp + 0x3c]
push 0xff
push edx
push 0x422890
lea eax, [esp + 0xc8]
push 0x41f1a4
push eax
call edi
mov al, byte [esp + 0x38]
test al, al
je 0x403528
lea ecx, [esp + 0xb8]
push str.SOFTWAREkingdee_
push ecx
call ebx
lea edx, [esp + 0x38]
lea eax, [esp + 0xb8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.DisplayName
lea ecx, [esp + 0x1bc]
push 0x400
lea edx, [esp + 0xc0]
push ecx
push edx
push 0x80000002
call fcn.00401520
mov al, byte [esp + 0x1cc]
add esp, 0x14
test al, al
je 0x403522
lea eax, [esp + 0x1b8]
lea ecx, [esp + 0x10]
push eax
call fcn.004144cb
push 0x41f180
lea ecx, [esp + 0x14]
call fcn.004144cb
inc dword [esp + 0x18]
inc ebp
jmp 0x403443
mov eax, dword [0x41f310]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
push 0x7e3
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c4], 3
call fcn.004145a1
push 0x7d6
lea ecx, [esp + 0x20]
call fcn.004145a1
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
push 0x40
jle 0x403573
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push ecx
push edx
jmp 0x40357d
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00412753
lea ecx, [esp + 0xc]
mov byte [esp + 0x5b0], 2
call fcn.004141c0
lea ecx, [esp + 4]
mov byte [esp + 0x5b0], 0
call fcn.004141c0
lea ecx, [esp]
mov dword [esp + 0x5b0], 0xffffffff
call fcn.004141c0
mov ecx, dword [esp + 0x5a8]
mov dword fs:[0], ecx
add esp, 0x5b4
ret
Function at 0x4087c4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41fd80
cmp edx, dword [eax]
je 0x4087e6
add eax, 8
inc ecx
cmp eax, 0x41fe10
jl 0x4087d7
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41fd80]
jne 0x408914
mov eax, dword [0x424868]
cmp eax, 1
je 0x4088ee
test eax, eax
jne 0x408817
cmp dword [0x41f778], 1
je 0x4088ee
cmp edx, 0xfc
je 0x408914
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40884e
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040a0b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040a1a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x408891
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040a1a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41b1b8
push edi
call fcn.0040a550
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040a0b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040a0c0
lea eax, [ebp - 0xa0]
push 0x41b198
push eax
call fcn.0040a0c0
push dword [esi + 0x41fd84]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040a0c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040b437
add esp, 0x2c
pop edi
jmp 0x408914
lea eax, [ebp + 8]
lea esi, [esi + 0x41fd84]
push 0
push eax
push dword [esi]
call fcn.0040a1a0
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 0x40f950
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00405e60
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x40fa1b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x40fa1b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x40f9ce
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x40f9d9
or bh, 8
and edi, 0x8000000
je 0x40f9f4
mov eax, dword [0x425ffc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x40fa1b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40fdf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40fe1b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40fe3f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x40fe5a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x413121
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x413163
call fcn.0041744c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x413163
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41315a
xor eax, eax
jmp 0x41316b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00413171
pop edi
pop esi
pop ebx
ret 4

Function at 0x4179a9
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4179d7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4179f5
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041790f
jmp 0x4179f5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4179f5
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041790f
test edi, edi
mov eax, edi
jne 0x4179df
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x419a10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
mov al, byte [esi + 0x44]
test al, al
js 0x419b0a
xor ebx, ebx
test al, al
jle 0x419aa7
lea ecx, [esi + 0x78]
mov dword [esp + 0x10], ecx
nop word [eax + eax]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x419a8e
mov eax, dword [ecx + 0x14]
dec dword [eax + 0x78]
mov edx, dword [eax + 0x88]
mov dword [ecx + 0x10], edx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], ecx
push dword [ecx + 4]
mov eax, dword [eax + 0x98]
mov ecx, dword [ecx + 0x18]
mov edi, dword [esi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.004f4a20
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [esp + 0x24]
add esp, 0x10
jmp 0x419a93
call fcn.0040f8d0
mov ecx, dword [esp + 0x10]
inc ebx
movsx eax, byte [esi + 0x44]
add ecx, 4
mov dword [esp + 0x10], ecx
cmp ebx, eax
jl 0x419a40
mov eax, dword [esi + 0x74]
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x419aff
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004f4a20
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [esp + 0x24]
add esp, 0x10
mov byte [esi + 0x44], 0xff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edx
call fcn.0040f8d0
mov byte [esi + 0x44], 0xff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41e670
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x559940]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov esi, ecx
mov eax, edx
mov ecx, dword [ebp + 8]
push edi
mov dword [esp + 0x18], ecx
xor edi, edi
cmp byte [esi + 0x11], 0
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], ecx
je 0x41e75a
mov edi, dword [esp + 0x10]
lea esi, [eax + 1]
lea ebx, [esi - 2]
cmp esi, 2
jae 0x41e6c0
xor edx, edx
jmp 0x41e6ef
mov eax, 0xcccccccd
mul dword [edi + 0x24]
mov eax, ebx
mov ecx, edx
xor edx, edx
shr ecx, 2
inc ecx
div ecx
mov eax, dword [0x55b1cc]
mov ecx, ebx
sub ecx, edx
xor edx, edx
div dword [edi + 0x20]
xor edx, edx
dec eax
cmp ecx, eax
sete dl
add edx, 2
add edx, ecx
cmp edx, esi
je 0x41e702
mov eax, dword [0x55b1cc]
xor edx, edx
div dword [edi + 0x20]
inc eax
cmp esi, eax
jne 0x41e706
inc esi
inc ebx
jmp 0x41e6b7
cmp esi, dword [edi + 0x2c]
mov edi, 0
ja 0x41e750
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x13]
mov edx, esi
push eax
call fcn.0041a190
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x41e7bc
cmp byte [esp + 0xf], 4
mov edx, dword [esp + 0x14]
jne 0x41e74a
cmp dword [esp + 0x20], edx
jne 0x41e74a
mov eax, esi
lea ebx, [edi + 0x65]
jmp 0x41e7be
mov esi, dword [esp + 0x10]
jmp 0x41e75c
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
jmp 0x41e75c
mov edx, eax
mov ecx, dword [esi]
xor eax, eax
cmp dword [esp + 0x18], eax
mov ebx, 2
cmove eax, ebx
push eax
lea eax, [esp + 0x24]
push eax
mov eax, dword [ecx + 0xc8]
push edx
push ecx
call eax
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x41e7bc
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov edi, dword [ebx + 8]
cmp edx, dword [edi + 4]
je 0x41e7b1
mov eax, dword [ebx + 4]
cmp edx, 1
mov dword [edi + 0x38], eax
setne al
mov dword [edi + 0x48], ebx
dec al
mov dword [edi + 0x34], esi
and al, 0x64
mov dword [edi + 4], edx
mov byte [edi + 9], al
mov eax, dword [edi + 0x38]
xor ebx, ebx
mov eax, dword [eax]
bswap eax
jmp 0x41e7be
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41e7d0
mov dword [eax], edi
jmp 0x41e823
test edi, edi
je 0x41e823
mov edx, dword [edi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x41e81c
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004f4a20
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x41e823
mov ecx, edx
call fcn.0040f8d0
mov ecx, dword [esp + 0x24]
xor eax, eax
cmp ebx, 0x65
pop edi
cmove ebx, eax
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret
Function at 0x420e30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov edi, ecx
push esi
push ebx
push edi
mov eax, dword [edi + 0x50]
call eax
movzx eax, word [esi + 0x10]
add esp, 0xc
mov edx, dword [esi + 0xc]
mov dword [esp + 0x14], eax
cmp eax, edx
je 0x42100f
movzx esi, word [esi + 0x12]
movzx ecx, word [edi + 0x18]
add ecx, dword [edi + 0x38]
lea eax, [esi - 1]
add eax, ebx
cmp eax, ecx
jbe 0x420e9f
push 0x54b514
push 0x10135
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00407d30
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [edi + 0x34]
sub edx, dword [esp + 0x14]
mov esi, dword [esi + ebx - 4]
bswap esi
mov ecx, dword [edi + 0x24]
sub ecx, 4
mov dword [esp + 0xc], edi
lea eax, [edx - 1]
xor edx, edx
add eax, ecx
div ecx
mov ebx, eax
test ebx, ebx
je 0x42100f
nop dword [eax]
dec ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
cmp esi, 2
jb 0x420fe5
cmp esi, dword [edi + 0x2c]
ja 0x420fe5
test ebx, ebx
je 0x420f21
lea eax, [esp + 0x14]
mov edx, esi
push eax
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.0041e670
add esp, 8
test eax, eax
jne 0x421011
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x420f30
mov edi, dword [esp + 0xc]
mov edx, esi
mov ecx, edi
call fcn.0041b3a0
mov edi, eax
test edi, edi
je 0x420f62
mov ecx, dword [edi + 0x48]
cmp word [ecx + 0x1e], 1
je 0x420f62
push 0x54b514
push 0x1015a
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00407d30
add esp, 0x14
mov dword [esp + 0x10], 0xb
jmp 0x420f75
mov ecx, dword [esp + 0xc]
mov edx, edi
push esi
call fcn.00420890
add esp, 4
mov dword [esp + 0x10], eax
test edi, edi
je 0x420fcc
mov edx, dword [edi + 0x48]
test edx, edx
je 0x420fcc
test byte [edx + 0x1c], 0x20
je 0x420fc5
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004f4a20
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x420fcc
mov ecx, edx
call fcn.0040f8d0
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x421011
mov esi, dword [esp + 0x14]
test ebx, ebx
je 0x42100f
mov edi, dword [esp + 0xc]
jmp 0x420ed0
push 0x54b514
push 0x10146
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00407d30
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43ac60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov eax, ecx
mov ebx, edx
push edi
push 0
push 0x14
mov dword [ebp - 4], ebx
mov dword [ebp - 8], eax
mov dword [eax], 0
call fcn.004051e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x43ac95
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x55a41c], 0
je 0x43ace0
mov eax, dword [0x55a51c]
test eax, eax
je 0x43acb5
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x43ace0
mov eax, dword [ebp + 8]
lea edi, [esi + 8]
mov dword [edi], ebx
lea ebx, [esi + 4]
push ebx
push 0
push esi
push 0x407fa0
push 0
push 0
mov dword [esi + 0xc], eax
call fcn.00509a56
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x43acf3
jmp 0x43ace6
lea edi, [esi + 8]
lea ebx, [esi + 4]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [edi], 0
jne 0x43ad0c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push dword [ebp + 8]
mov dword [ebx], eax
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
pop edi
mov dword [eax], esi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44fad0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
xor edi, edi
cmp dword [ecx + 0x14], edi
jle 0x44fb60
mov eax, dword [ebp + 8]
mov esi, edi
xor esi, 1
cmp edi, 2
cmovge esi, edi
test eax, eax
je 0x44fba5
mov ecx, dword [ecx + 0x10]
mov edx, esi
add edx, edx
mov ecx, dword [ecx + edx*8]
mov edx, eax
mov dword [ebp - 0xc], ecx
movzx ecx, byte [ecx]
mov bl, byte [edx]
movzx edx, byte [ecx + 0x54ce60]
movzx ecx, bl
movzx ecx, byte [ecx + 0x54ce60]
sub ecx, edx
jne 0x44fb54
mov ecx, dword [ebp - 0xc]
sub ecx, eax
mov dword [ebp - 0xc], ecx
nop
test bl, bl
je 0x44fb9f
movzx ecx, byte [ecx + eax + 1]
inc eax
movzx edx, byte [ecx + 0x54ce60]
mov bl, byte [eax]
movzx ecx, bl
movzx ecx, byte [ecx + 0x54ce60]
sub ecx, edx
mov ecx, dword [ebp - 0xc]
je 0x44fb30
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
inc edi
cmp edi, dword [ecx + 0x14]
jl 0x44fae8
mov dl, byte [ebx]
movzx eax, dl
cmp byte [eax + 0x54ce60], 0x73
jne 0x44fb96
mov esi, str.sqlite_master
sub esi, ebx
test dl, dl
je 0x44fbc6
movzx eax, byte [esi + ebx + 1]
inc ebx
movzx ecx, byte [eax + 0x54ce60]
mov dl, byte [ebx]
movzx eax, dl
movzx eax, byte [eax + 0x54ce60]
sub eax, ecx
je 0x44fb75
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x10]
add esi, esi
push 0
mov edx, ebx
mov ecx, dword [eax + esi*8 + 0xc]
add ecx, 8
call fcn.00409f50
add esp, 4
mov eax, dword [eax + 8]
test eax, eax
jne 0x44fb98
jmp 0x44fb57
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x10]
test ecx, ecx
jne 0x44fbdc
neg eax
sbb eax, eax
jmp 0x44fbe7
test eax, eax
je 0x44fb96
mov edx, eax
call fcn.00408ab0
test eax, eax
jne 0x44fb96
mov ecx, dword [ebp - 8]
mov ebx, str.sqlite_temp_master
mov dword [ebp - 4], ebx
jmp 0x44fae1
Function at 0x44fd90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, ecx
mov dword [ebp - 0x10], edx
xor edx, edx
mov dword [ebp - 0x14], eax
push edi
xor edi, edi
mov dword [ebp - 4], edx
cmp dword [eax + 0x14], edx
jle 0x44fe45
push ebx
push esi
mov eax, dword [eax + 0x10]
mov ecx, edi
xor ecx, 1
cmp edi, 2
cmovge ecx, edi
add ecx, ecx
mov edx, dword [eax + ecx*8 + 0xc]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 8]
test edx, edx
je 0x44fe26
mov ebx, dword [eax + ecx*8]
mov esi, edx
mov al, byte [edx]
movzx ecx, byte [ebx]
movzx edx, byte [ecx + 0x54ce60]
movzx ecx, al
movzx ecx, byte [ecx + 0x54ce60]
sub ecx, edx
jne 0x44fe11
sub ebx, esi
test al, al
je 0x44fe26
movzx ecx, byte [ebx + esi + 1]
inc esi
movzx edx, byte [ecx + 0x54ce60]
mov al, byte [esi]
movzx ecx, al
movzx ecx, byte [ecx + 0x54ce60]
sub ecx, edx
je 0x44fdf0
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
inc edi
cmp edi, dword [eax + 0x14]
jl 0x44fdb1
pop esi
pop ebx
mov eax, edx
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
add ecx, 0x18
push 0
call fcn.00409f50
add esp, 4
mov edx, dword [eax + 8]
mov dword [ebp - 4], edx
test edx, edx
jne 0x44fe1d
jmp 0x44fe14
mov eax, edx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4c0f50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x55920c
mov eax, dword [ebp + 8]
push eax
call fcn.00506f50
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4c0f77
xor eax, eax
jmp 0x4c104a
push 2
push 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.0050751c
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
call fcn.00507c34
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4c0faf
mov eax, dword [ebp - 4]
push eax
call fcn.00506d35
add esp, 4
xor eax, eax
jmp 0x4c104a
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00507d4a
add esp, 4
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
call dword [0x5591fc]
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4c0fea
mov ecx, dword [ebp - 4]
push ecx
call fcn.00506d35
add esp, 4
xor eax, eax
jmp 0x4c104a
mov edx, dword [ebp - 4]
push edx
push 1
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.0050714d
add esp, 0x10
cmp eax, 1
jae 0x4c1032
mov edx, dword [ebp - 4]
push edx
call fcn.00506d65
add esp, 4
test eax, eax
je 0x4c1032
mov eax, dword [ebp - 4]
push eax
call fcn.00506d35
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
call dword [0x559200]
add esp, 4
xor eax, eax
jmp 0x4c104a
mov edx, dword [ebp - 4]
push edx
call fcn.00506d35
add esp, 4
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov byte [eax], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4c33b0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
xor ecx, ecx
xor edx, edx
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 4]
mov dword [eax + edx + 0x4c], 0x6a09e667
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx + 0x4c], 0xbb67ae85
mov eax, 4
shl eax, 1
mov ecx, dword [ebp - 4]
mov dword [ecx + eax + 0x4c], 0x3c6ef372
mov edx, 4
imul eax, edx, 3
mov ecx, dword [ebp - 4]
mov dword [ecx + eax + 0x4c], 0xa54ff53a
mov edx, 4
shl edx, 2
mov eax, dword [ebp - 4]
mov dword [eax + edx + 0x4c], 0x510e527f
mov ecx, 4
imul edx, ecx, 5
mov eax, dword [ebp - 4]
mov dword [eax + edx + 0x4c], 0x9b05688c
mov ecx, 4
imul edx, ecx, 6
mov eax, dword [ebp - 4]
mov dword [eax + edx + 0x4c], 0x1f83d9ab
mov ecx, 4
imul edx, ecx, 7
mov eax, dword [ebp - 4]
mov dword [eax + edx + 0x4c], 0x5be0cd19
mov esp, ebp
pop ebp
ret