joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5905a110
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x59155ba7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8d0
push ebx
push ebp
push esi
mov esi, 1
push edi
mov ebx, ecx
xor edi, edi
push esi
push 0x591af048
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], edi
call fcn.590b5cc0
mov eax, dword [0x591af06c]
mov dword [esp + 0x8e8], edi
cmp eax, edi
jle 0x5905a309
or ebp, 0xffffffff
lea ecx, [esp + 0x1c]
mov dword [esp + 0x8e8], ebp
call fcn.590b5d20
push esi
push 0x591af048
lea ecx, [esp + 0x24]
call fcn.590b5cc0
mov edx, dword [0x591af068]
mov eax, dword [0x591af06c]
mov dword [esp + 0x8e8], esi
mov ecx, 0x22e
mov esi, edx
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
lea ecx, [eax - 1]
test ecx, ecx
je 0x5905a1c5
mov eax, ecx
shl eax, 5
sub eax, ecx
lea ecx, [eax + eax*8]
lea eax, [edx + 0x8b8]
shl ecx, 3
push ecx
push eax
push edx
call fcn.5908a070
add esp, 0xc
mov eax, dword [0x591af06c]
dec eax
test eax, eax
mov dword [0x591af06c], eax
jg 0x5905a1dc
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x8e8], ebp
call fcn.590b5d20
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x591af1a8
call fcn.590a18b0
sub esp, 0x8b8
mov ecx, 0x22e
lea esi, [esp + 0x8e4]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov dword [esp + 0x11a4], ebp
call fcn.5905a380
mov ecx, dword [0x591af1a8]
push 0x591ae140
push ecx
call fcn.5908b099
add esp, 8
test eax, eax
je 0x5905a320
mov edx, dword [0x591af1a8]
push edx
call fcn.590c7c90
add esp, 4
test eax, eax
je 0x5905a320
mov eax, dword [0x591af1a8]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push eax
call esi
mov ecx, dword [0x591af1a8]
mov edi, 0x591889fc
xor eax, eax
mov edx, dword [ecx - 8]
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub edx, ecx
mov ecx, 0x591af1a8
push edx
lea edx, [esp + 0x18]
push edx
call fcn.590a4900
mov eax, dword [0x591ae1c8]
mov ebx, 3
test eax, eax
mov dword [esp + 0x8e8], ebx
je 0x5905a2e1
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
call fcn.590a6d60
mov ecx, dword [eax]
mov byte [esp + 0x8e8], 4
push ecx
push str.AnalysBufferData_strLeave:_s
push str.winncap
push ebp
push 0x591ae15c
call fcn.590851e0
add esp, 0x14
lea ecx, [esp + 0x18]
mov byte [esp + 0x8e8], bl
call fcn.590a7660
mov edx, dword [esp + 0x14]
push edx
call esi
push 0x591ae140
mov ecx, 0x591af1a8
call fcn.590a2540
lea ecx, [esp + 0x14]
mov dword [esp + 0x8e8], ebp
call fcn.590a22e0
jmp 0x5905a320
or ebp, 0xffffffff
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], esi
mov dword [esp + 0x8e8], ebp
call fcn.590b5d20
mov eax, dword [0x591af034]
mov ecx, dword [0x591af024]
test eax, eax
jg 0x5905a333
test ecx, ecx
jle 0x5905a35c
mov edx, dword [0x591ae1c8]
test edx, edx
je 0x5905a357
push ecx
push eax
push str.AnalysBufferData___d__d_
push str.Combine
push ebp
push 0x591ae15c
call fcn.590851e0
add esp, 0x18
call fcn.5902a130
mov ecx, dword [esp + 0x8e0]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x8dc
ret
Function at 0x5905f7e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x591562ea
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push ebx
mov edx, eax
mov ebx, dword [esp + 0x18]
shl edx, 4
add edx, eax
mov eax, dword [ecx]
push ebp
push esi
mov ecx, dword [eax + edx*4]
lea ebp, [eax + edx*4]
push edi
mov dword [ebx], ecx
lea esi, [ebp + 4]
lea edi, [ebx + 4]
mov ecx, 6
lea edx, [ebp + 0x1c]
rep movsd dword es:[edi], dword [esi]
push edx
lea ecx, [ebx + 0x1c]
mov dword [esp + 0x14], 0
call fcn.590a6c60
lea eax, [ebp + 0x20]
mov esi, 1
push eax
lea ecx, [ebx + 0x20]
mov dword [esp + 0x20], esi
call fcn.590a6c60
lea ecx, [ebp + 0x24]
mov byte [esp + 0x1c], 2
push ecx
lea ecx, [ebx + 0x24]
call fcn.590a6c60
lea edx, [ebp + 0x28]
lea ecx, [ebx + 0x28]
push edx
mov byte [esp + 0x20], 3
call fcn.590a6c60
lea eax, [ebp + 0x2c]
lea ecx, [ebx + 0x2c]
push eax
mov byte [esp + 0x20], 4
call fcn.590a6c60
lea ecx, [ebp + 0x30]
mov byte [esp + 0x1c], 5
push ecx
lea ecx, [ebx + 0x30]
call fcn.590a6c60
lea edx, [ebp + 0x34]
lea ecx, [ebx + 0x34]
push edx
mov byte [esp + 0x20], 6
call fcn.590a6c60
lea eax, [ebp + 0x38]
lea ecx, [ebx + 0x38]
push eax
mov byte [esp + 0x20], 7
call fcn.590a6c60
lea ecx, [ebp + 0x3c]
mov byte [esp + 0x1c], 8
push ecx
lea ecx, [ebx + 0x3c]
call fcn.590a18b0
mov edx, dword [ebp + 0x40]
mov byte [esp + 0x1c], 9
mov dword [ebx + 0x40], edx
mov byte [esp + 0x1c], 0
mov dword [esp + 0x10], esi
pop edi
mov eax, ebx
pop esi
mov ecx, dword [esp + 0xc]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x590630e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x5915689b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8e0
push ebx
mov ebx, ecx
push ebp
push esi
push edi
lea eax, [ebx + 0x1c]
push 1
push eax
lea ecx, [esp + 0x1c]
call fcn.590b5cc0
mov ebp, dword [esp + 0x900]
mov edx, dword [esp + 0x904]
sub esp, 0x10
mov eax, dword [esp + 0x918]
mov ecx, esp
xor edi, edi
mov dword [esp + 0x908], edi
mov dword [esp + 0x20], 1
mov dword [ecx], ebp
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x91c]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov ecx, ebx
call fcn.59062880
mov esi, eax
cmp esi, edi
jne 0x5906322c
mov edx, dword [esp + 0x90c]
mov ecx, 0x233
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x904]
mov ecx, dword [esp + 0x908]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x910]
mov ecx, 0x22e
lea esi, [esp + 0x914]
lea edi, [esp + 0x38]
mov dword [esp + 0x34], eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebx + 4]
test edx, edx
jne 0x590631da
push 0x8d8
call fcn.5913e1e0
mov edx, eax
add esp, 4
test edx, edx
je 0x5906326a
jmp 0x590631e6
mov eax, dword [ebx + 0x14]
mov ecx, dword [edx]
dec eax
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x14], eax
mov dword [edx + 4], 0
mov dword [edx], esi
mov ecx, dword [ebx + 0x10]
lea ebp, [edx + 8]
inc ecx
xor eax, eax
mov dword [ebx + 0x10], ecx
mov ecx, 0x234
mov edi, ebp
test edx, edx
rep stosd dword es:[edi], eax
je 0x5906326a
mov ecx, 0x234
lea esi, [esp + 0x20]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 4]
test eax, eax
je 0x59063224
mov dword [eax + 4], edx
mov dword [ebx + 4], edx
jmp 0x5906326a
mov dword [ebx + 8], edx
mov dword [ebx + 4], edx
jmp 0x5906326a
mov edx, dword [esp + 0x910]
mov dword [esp + 0x10], edi
mov dword [esi + 0x14], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x11ac]
mov edx, dword [esp + 0x11b4]
mov dword [esi], eax
mov eax, dword [esp + 0x938]
push edi
mov dword [esi + 0x3c], eax
push edi
push ecx
add esi, 0x18
push edx
push esi
call fcn.59072330
add esp, 0x14
lea ecx, [esp + 0x14]
mov dword [esp + 0x8f8], 0xffffffff
call fcn.590b5d20
mov ecx, dword [esp + 0x8f0]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x8ec
ret 0x8cc
Function at 0x59065320
Capabilities:
Get session user name

Disassembly:
sub esp, 0x64
xor eax, eax
push ebx
mov ebx, dword [esp + 0x70]
mov ecx, ebx
push ebp
mov ebp, dword [esp + 0x70]
push esi
mov edx, ecx
push edi
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.590bc630
test eax, eax
je 0x590653e4
push 0x41
push 0
push 1
push str.default
call dword [0x591aa4b8]
mov esi, eax
test esi, esi
jne 0x5906536f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push 0x59065480
push esi
call dword [0x591aa494]
push esi
call dword [0x591aa4c4]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, ebx
jb 0x590653b6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, 1
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x84], 0x64
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov esi, eax
test esi, esi
je 0x59065462
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, ebx
jb 0x59065434
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, 1
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4dd
jne 0x59065474
mov esi, 1
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
Function at 0x590669e0
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x591568c8
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
test ebp, ebp
je 0x59066b5e
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x59066b5e
push ebp
lea ecx, [esp + 0x10]
call fcn.590a19b0
push 3
push 0x5c
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
call fcn.590a33c0
push 2
push 0x59190d88
push ebp
mov esi, eax
call fcn.5908bc2e
add esp, 0xc
test eax, eax
jne 0x59066a5d
inc esi
lea ecx, [esp + 0xc]
push esi
push 0x5c
call fcn.590a33c0
mov esi, eax
push 0x591ae140
lea ecx, [esp + 0x28]
call fcn.590a19b0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or ebp, 0xffffffff
cmp esi, ebp
mov byte [esp + 0x1c], 1
je 0x59066ade
lea eax, [esp + 0x10]
push esi
push eax
lea ecx, [esp + 0x14]
call fcn.590a4900
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 2
call fcn.590a2460
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 1
call fcn.590a22e0
mov ecx, dword [esp + 0x24]
push ecx
call edi
cmp eax, ebp
jne 0x59066ac7
mov edx, dword [esp + 0x24]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x59066b43
jmp 0x59066acb
test al, 0x10
je 0x59066b43
inc esi
lea ecx, [esp + 0xc]
push esi
push 0x5c
call fcn.590a33c0
mov esi, eax
cmp esi, ebp
jne 0x59066a7d
mov esi, dword [esp + 0xc]
call fcn.590db100
push eax
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
mov eax, dword [esp + 0x24]
push eax
call edi
mov ecx, dword [esp + 0x28]
mov edx, ecx
or edx, 0x10
cmp eax, edx
je 0x59066b11
mov eax, dword [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 0
call fcn.590a22e0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], ebp
call fcn.590a22e0
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 0
call fcn.590a22e0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], ebp
call fcn.590a22e0
mov ecx, dword [esp + 0x14]
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x59069260
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x59156b58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x20]
test ebx, ebx
jne 0x5906928c
test ebp, ebp
jbe 0x5906933e
mov eax, dword [esp + 0x24]
push esi
lea edx, [esp + 0x20]
push eax
push edx
call fcn.5906ba40
mov eax, dword [esp + 0x20]
push 0
push 0
push 4
push 0
push 3
push 0xc0000000
push eax
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x590692f1
push 2
push 0
push 0
push esi
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0x24]
push 0
push ecx
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
mov dword [esp + 0x10], eax
push 0
lea edx, [esp + 0x30]
push 0
lea eax, [esp + 0x18]
push edx
push eax
push 0
push 0
push 0
push esi
mov ecx, 0x591af2d8
call fcn.59068a20
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.590a22e0
pop esi
mov ecx, dword [esp + 0xc]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x5906cd70
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x59156faf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
push esi
mov dword [esp + 8], 0
call fcn.5906c490
add esp, 4
test eax, eax
jne 0x5906cdca
mov esi, dword [esp + 0x18]
push 0x591af1e0
mov ecx, esi
call fcn.590a6ec0
mov dword [esp + 4], 1
mov eax, esi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [0x591638c0]
mov dword [esp + 0x1c], ecx
mov ecx, esi
mov dword [esp + 0x10], 1
dec ecx
je 0x5906ce2e
dec ecx
jne 0x5906ce76
mov ecx, dword [eax + 0x30]
mov edx, dword [eax + 4]
push ecx
push ecx
push edx
mov edx, dword [eax + 0x34]
push edx
mov edx, dword [eax + 0x24]
push ecx
mov ecx, dword [eax + 0x28]
push ecx
mov ecx, dword [eax + 0x20]
push edx
mov edx, dword [eax + 0x1c]
push ecx
mov ecx, dword [eax + 0x18]
push edx
mov edx, dword [eax + 0x14]
push ecx
mov ecx, dword [eax + 0x10]
push edx
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
push ecx
push edx
push eax
lea ecx, [esp + 0x54]
push str.SELECT__s__s__s__s__s__s__s__s__s__s__s_FROM__s_WHERE__s____1_ORDER_BY__s_DESC
push ecx
call fcn.590aa5e0
add esp, 0x40
jmp 0x5906ce76
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0x2c]
mov esi, dword [eax + 4]
push ecx
push edx
push esi
mov esi, dword [eax + 0x34]
push esi
push edx
mov edx, dword [eax + 0x30]
push edx
mov edx, dword [eax + 0x28]
push edx
mov edx, dword [eax + 0x24]
push edx
mov edx, dword [eax + 0x20]
push edx
mov edx, dword [eax + 0x1c]
push edx
mov edx, dword [eax + 0x18]
push edx
mov edx, dword [eax + 0x14]
push edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
push edx
push eax
push ecx
lea ecx, [esp + 0x58]
push str.SELECT__s__s__s__s__s__s__s__s__s__s__s__s_FROM__s_WHERE___s____1_ORDER_BY__s_DESC
push ecx
call fcn.590aa5e0
add esp, 0x44
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.590a6c60
lea ecx, [esp + 0x1c]
mov dword [esp + 4], 1
mov byte [esp + 0x10], 0
call fcn.590a7660
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x5906ceb0
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x59156fdf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
push esi
mov dword [esp + 8], 0
call fcn.5906c490
add esp, 4
test eax, eax
jne 0x5906cf0a
mov esi, dword [esp + 0x18]
push 0x591af1e0
mov ecx, esi
call fcn.590a6ec0
mov dword [esp + 4], 1
mov eax, esi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [0x591638c0]
mov dword [esp + 0x1c], ecx
mov ecx, esi
mov dword [esp + 0x10], 1
dec ecx
jne 0x5906cf47
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0x38]
mov esi, dword [eax + 0x34]
push ecx
push ecx
push edx
push edx
mov edx, dword [eax + 4]
push esi
push esi
push edx
push ecx
lea eax, [esp + 0x3c]
push str.SELECT__s_FROM__s_WHERE____s______AND__s___1__OR___s______AND__s___2___AND__s____3_ORDER_BY__s_DESC
push eax
call fcn.590aa5e0
add esp, 0x28
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.590a6c60
lea ecx, [esp + 0x1c]
mov dword [esp + 4], 1
mov byte [esp + 0x10], 0
call fcn.590a7660
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x5906cfe0
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x5915700f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x591638c0]
push esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], 1
push esi
call fcn.5906cf80
mov ecx, esi
add esp, 4
dec ecx
jne 0x5906d042
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0xc]
push ecx
push edx
push eax
lea ecx, [esp + 0x10]
push str.SELECT__s_FROM__s_WHERE__s___1
push ecx
call fcn.590aa5e0
add esp, 0x14
mov esi, dword [esp + 0x1c]
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.590a6c60
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.590a7660
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x5906d1c0
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x5915705f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push 1
mov dword [esp + 0xc], 0
call fcn.5906d1a0
add esp, 4
test eax, eax
jne 0x5906d219
mov esi, dword [esp + 0x1c]
push 0x591af1e0
mov ecx, esi
call fcn.590a6ec0
mov dword [esp + 8], 1
mov eax, esi
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov ecx, dword [0x591638c0]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 1
dec ecx
jne 0x5906d258
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax + 0x14]
push ecx
mov ecx, dword [eax + 0x10]
push edx
mov edx, dword [eax + 0xc]
push ecx
push edx
lea eax, [esp + 0x18]
push str.SELECT__s__s__s_FROM__s_WHERE__s___1
push eax
call fcn.590aa5e0
add esp, 0x1c
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.590a6c60
lea ecx, [esp + 4]
mov dword [esp + 8], 1
mov byte [esp + 0x14], 0
call fcn.590a7660
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x5906df60
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x591571f7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push 0x591af1e0
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0
call fcn.590a6ec0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], 1
test eax, eax
je 0x5906e0a3
mov esi, dword [esp + 0x24]
test esi, esi
je 0x5906e0a3
mov eax, dword [eax + 4]
push eax
call fcn.5906c490
add esp, 4
test eax, eax
je 0x5906e0a3
mov ecx, dword [0x591638c0]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x38]
push ecx
push ecx
push edx
push eax
lea ecx, [esp + 0x34]
push str.SELECT__s_FROM__s_WHERE__s___1_ORDER_BY__s_DESC
push ecx
mov byte [esp + 0x2c], 2
call fcn.590aa5e0
mov eax, dword [esp + 0x3c]
add esp, 0x18
lea edx, [esp + 0x20]
mov ecx, 0x591ae0e8
push 0
push edx
push 0xffffffffffffffff
push eax
push esi
mov dword [esp + 0x34], 0
call fcn.59002350
test eax, eax
jne 0x5906e071
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push ecx
push edx
push 1
push eax
mov ecx, 0x591ae0e8
call fcn.59002380
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, 0x591ae0e8
call fcn.590023e0
cmp eax, 0x64
jne 0x5906e060
mov edx, dword [esp + 0x20]
push 0
push edx
mov ecx, 0x591ae0e8
call fcn.59002430
push eax
lea ecx, [esp + 8]
call fcn.590a78e0
mov eax, dword [esp + 0x20]
mov ecx, 0x591ae0e8
push eax
call fcn.59002590
jmp 0x5906e095
mov ecx, dword [0x591ae1c8]
test ecx, ecx
je 0x5906e095
push eax
push str.MailMasterGetSentIdFromMailId_sqlite3_prepare16_v2__Failed__nSqlRet:__d_
push str.History
push 0xffffffffffffffff
push 0x591ae15c
call fcn.590851e0
add esp, 0x14
lea ecx, [esp + 0x24]
mov byte [esp + 0x14], 1
call fcn.590a7660
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.590a6c60
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.590a7660
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x5906e750
Capabilities:
Reference sql statements

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x591572b0
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
mov edi, dword [esp + 0x1c]
xor ebx, ebx
cmp edi, ebx
je 0x5906e94e
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x5906e94e
mov esi, dword [esp + 0x24]
mov ecx, dword [esi]
cmp dword [ecx - 8], ebx
je 0x5906e94e
mov edx, dword [0x591638c0]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x14], ebx
push eax
call fcn.5906c490
add esp, 4
cmp eax, ebx
je 0x5906e929
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x5906e929
mov ecx, dword [esi]
lea edx, [esp + 0x20]
push ecx
push eax
push str.SELECT_bodyHTML_FROM__s_WHERE_messageid___s
push edx
call fcn.590aa5e0
mov eax, dword [0x591ae1c8]
add esp, 0x10
cmp eax, ebx
je 0x5906e7ff
mov eax, dword [esp + 0x20]
push eax
push str.AliMailGetHtmlBody_wstrSql__s_
push str.History
push 0xffffffffffffffff
push 0x591ae15c
call fcn.590851e0
add esp, 0x14
mov eax, dword [esp + 0x20]
cmp dword [eax - 8], ebx
je 0x5906e929
lea ecx, [esp + 0x1c]
push ebx
push ecx
push 0xffffffffffffffff
push eax
push edi
mov ecx, 0x591ae0e8
call fcn.59002350
cmp eax, ebx
jne 0x5906e907
mov eax, dword [esi]
mov edx, dword [esp + 0x1c]
push ebx
push 0xffffffffffffffff
push eax
push 1
push edx
mov ecx, 0x591ae0e8
call fcn.590023b0
mov eax, dword [esp + 0x1c]
mov ecx, 0x591ae0e8
push eax
call fcn.590023e0
mov esi, dword [esp + 0x28]
cmp eax, 0x64
jne 0x5906e893
mov ecx, dword [esp + 0x1c]
push ebx
push ecx
mov ecx, 0x591ae0e8
call fcn.59002430
push eax
mov ecx, esi
call fcn.590a78e0
cmp dword [0x591ae1c8], ebx
je 0x5906e893
mov edx, dword [esi]
push edx
push str.AliMailGetHtmlBody_wstrHtml___s_
push str.History
push 0xffffffffffffffff
push 0x591ae15c
call fcn.590851e0
add esp, 0x14
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x5906e8aa
push eax
mov ecx, 0x591ae0e8
call fcn.59002590
mov dword [esp + 0x1c], ebx
mov eax, dword [esi]
cmp dword [eax - 8], ebx
je 0x5906e900
push esi
call fcn.5906e970
add esp, 4
call fcn.590bc680
test eax, eax
je 0x5906e900
push ebx
call dword [0x591aa550]
cmp eax, ebx
jl 0x5906e900
mov esi, dword [esi]
lea ecx, [esp + 0x24]
push esi
push ecx
call fcn.5900b3f0
add esp, 8
mov ecx, dword [esp + 0x2c]
push eax
mov byte [esp + 0x18], 1
call fcn.590a77f0
lea ecx, [esp + 0x24]
mov byte [esp + 0x14], bl
call fcn.590a7660
call dword [0x591aa55c]
mov ebx, 1
jmp 0x5906e929
cmp dword [0x591ae1c8], ebx
je 0x5906e929
push eax
push str.AliMailGetHtmlBody_sqlite3_prepare16_v2__Failed__nSqlRet:__d_
push str.History
push 0xffffffffffffffff
push 0x591ae15c
call fcn.590851e0
add esp, 0x14
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.590a7660
mov eax, ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret