joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b360
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
push edi
mov eax, dword [esi + 0x34]
mov ecx, dword [eax]
push ecx
call fcn.0045b520
mov ebp, dword [esi + 0x38]
xor ecx, ecx
mov cx, word [esi + 0x10]
mov ebx, eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x34]
xor edx, edx
xor eax, eax
mov dl, byte [esi + 5]
mov ax, word [esi + 0xc]
mov esi, dword [ecx + 0x24]
xor ecx, ecx
mov ch, byte [edx + ebp + 5]
mov dword [esp + 0x14], esi
mov cl, byte [edx + ebp + 6]
mov dword [esp + 0x28], ebx
mov edi, ecx
mov ecx, esi
sub ecx, edi
add esp, 4
lea esi, [edi + ebp]
add edi, ebx
mov ebx, ecx
mov dword [esp + 0x2c], edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [esp + 0x10]
and ecx, 3
mov dword [esp + 0x18], 0
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
lea edi, [eax + ecx*2]
mov dword [esp + 0x20], edi
jle 0x45b495
add eax, ebp
mov dword [esp + 0x14], eax
jmp 0x45b3f7
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
xor edx, edx
mov dh, byte [eax]
mov dl, byte [eax + 1]
mov esi, edx
cmp esi, edi
mov dword [esp + 0x28], esi
jl 0x45b4ff
mov eax, dword [esp + 0x10]
add eax, 0xfffffffc
cmp esi, eax
jg 0x45b4ff
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
add esi, ecx
push esi
push edx
call fcn.0045a420
and eax, 0xffff
add esp, 8
sub ebx, eax
cmp ebx, edi
jl 0x45b4ea
mov ecx, dword [esp + 0x28]
lea edx, [eax + ecx]
mov ecx, dword [esp + 0x10]
cmp edx, ecx
jg 0x45b4ea
mov ecx, eax
lea edi, [ebx + ebp]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x14]
and ecx, 3
add eax, 2
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
mov byte [eax - 1], bl
sar ecx, 8
mov byte [eax - 2], cl
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
inc ecx
cmp ecx, eax
mov dword [esp + 0x18], ecx
jl 0x45b3ef
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
mov eax, ebx
sar eax, 8
mov byte [edx + ebp + 5], al
mov byte [edx + ebp + 6], bl
sub ebx, edi
mov byte [edx + ebp + 1], 0
mov byte [edx + ebp + 2], 0
mov ecx, ebx
mov byte [edx + ebp + 7], 0
mov edx, ecx
xor eax, eax
add edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x34]
xor eax, eax
mov ax, word [ecx + 0xe]
cmp ebx, eax
je 0x45b514
push 0xc12d
call fcn.0048cc70
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push 0xc11c
call fcn.0048cc70
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push 0xc110
call fcn.0048cc70
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
Function at 0x460c30
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov esi, dword [eax + 8]
mov eax, dword [eax + 0x48]
mov edi, dword [eax + 0x34]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x460c57
mov ecx, dword [esp + 0x20]
push edi
push eax
push ecx
push esi
call fcn.0045eba0
add esp, 0x10
mov eax, dword [esp + 0x10]
test eax, eax
je 0x460c88
mov cx, word [esi + 6]
xor eax, eax
mov word [edi + 4], cx
and ecx, 0xffff
jle 0x460c84
mov edx, dword [edi + 0x10]
add edx, 0x1c
test byte [edx], 1
jne 0x460ca4
inc eax
add edx, 0x28
cmp eax, ecx
jl 0x460c77
or byte [edi + 6], 2
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push edi
push eax
push ecx
call fcn.0045ecc0
mov edx, dword [esp + 0x30]
add esp, 0xc
pop edi
pop esi
mov dword [edx], eax
ret
mov edx, dword [esp + 0x24]
pop edi
pop esi
mov dword [edx], 0xffffffff
ret

Function at 0x4626b0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
test esi, esi
jle 0x4626dc
mov ecx, dword [esp + 8]
push ebx
xor edx, edx
xor ebx, ebx
mov dl, byte [ecx]
mov bl, byte [edx + 0x4edc10]
lea edx, [eax*8]
xor ebx, edx
xor eax, ebx
inc ecx
dec esi
jne 0x4626c0
pop ebx
pop esi
ret
Function at 0x48d3d0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4e3f7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x34]
mov eax, dword [esi + 4]
push 0x4000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
xor edx, edx
cmp eax, 0xffffffff
mov eax, dword [esi + 4]
setne dl
xor ebp, ebp
push eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ebp
call fcn.0048f7b0
mov ebx, eax
push ebx
call fcn.0048f820
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.0048c360
add esp, 0x10
cmp eax, ebp
je 0x48d472
cmp edi, ebp
je 0x48d449
push edi
call fcn.004ae9be
add esp, 4
cmp ebx, ebp
je 0x48d456
push ebx
call fcn.004ae9be
add esp, 4
mov ecx, dword [esi + 4]
push ebp
push ebp
push ecx
call fcn.004db330
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x48d588
cmp edi, ebp
je 0x48d47f
push edi
call fcn.004ae9be
add esp, 4
cmp ebx, ebp
je 0x48d48c
push ebx
call fcn.004ae9be
add esp, 4
push str.select_count___from__sqlite_master_where_typetable_and_nameActiveTimeLog
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x1c], ebp
xor edi, edi
call fcn.004d38eb
lea eax, [esp + 0x18]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
mov dword [esp + 0xdc], ebp
call fcn.00466a00
mov eax, dword [esp + 0x28]
mov esi, 1
add esp, 0x18
cmp eax, esi
jl 0x48d526
cmp esi, 1
jne 0x48d51d
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax*4]
lea ecx, [esp + 0x20]
push edx
call fcn.004d38eb
mov eax, dword [esp + 0x20]
push 0x50a228
push eax
call fcn.004adbb0
add esp, 8
test eax, eax
jne 0x48d514
mov edi, esi
lea ecx, [esp + 0x20]
call fcn.004d387d
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jle 0x48d4e2
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043f790
mov edx, dword [esp + 0x28]
push edx
call fcn.00466d00
mov eax, dword [esp + 0x34]
add esp, 8
cmp eax, ebp
je 0x48d549
cmp edi, ebp
jne 0x48d562
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
push ebp
push ebp
push str.create_table_ActiveTimeLog_Date_varchar_256__ActiveTime_INTEGER__
push ecx
call fcn.004651a0
add esp, 0x14
mov edx, dword [esp + 0x14]
push edx
call fcn.0048ad60
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc4], 0xffffffff
call fcn.004d387d
mov eax, 1
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb8
ret
Function at 0x48d3ed
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4e3f7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x34]
mov eax, dword [esi + 4]
push 0x4000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
xor edx, edx
cmp eax, 0xffffffff
mov eax, dword [esi + 4]
setne dl
xor ebp, ebp
push eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ebp
call fcn.0048f7b0
mov ebx, eax
push ebx
call fcn.0048f820
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.0048c360
add esp, 0x10
cmp eax, ebp
je 0x48d472
cmp edi, ebp
je 0x48d449
push edi
call fcn.004ae9be
add esp, 4
cmp ebx, ebp
je 0x48d456
push ebx
call fcn.004ae9be
add esp, 4
mov ecx, dword [esi + 4]
push ebp
push ebp
push ecx
call fcn.004db330
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x48d588
cmp edi, ebp
je 0x48d47f
push edi
call fcn.004ae9be
add esp, 4
cmp ebx, ebp
je 0x48d48c
push ebx
call fcn.004ae9be
add esp, 4
push str.select_count___from__sqlite_master_where_typetable_and_nameActiveTimeLog
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x1c], ebp
xor edi, edi
call fcn.004d38eb
lea eax, [esp + 0x18]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
mov dword [esp + 0xdc], ebp
call fcn.00466a00
mov eax, dword [esp + 0x28]
mov esi, 1
add esp, 0x18
cmp eax, esi
jl 0x48d526
cmp esi, 1
jne 0x48d51d
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax*4]
lea ecx, [esp + 0x20]
push edx
call fcn.004d38eb
mov eax, dword [esp + 0x20]
push 0x50a228
push eax
call fcn.004adbb0
add esp, 8
test eax, eax
jne 0x48d514
mov edi, esi
lea ecx, [esp + 0x20]
call fcn.004d387d
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jle 0x48d4e2
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043f790
mov edx, dword [esp + 0x28]
push edx
call fcn.00466d00
mov eax, dword [esp + 0x34]
add esp, 8
cmp eax, ebp
je 0x48d549
cmp edi, ebp
jne 0x48d562
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
push ebp
push ebp
push str.create_table_ActiveTimeLog_Date_varchar_256__ActiveTime_INTEGER__
push ecx
call fcn.004651a0
add esp, 0x14
mov edx, dword [esp + 0x14]
push edx
call fcn.0048ad60
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc4], 0xffffffff
call fcn.004d387d
mov eax, 1
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb8
ret
Function at 0x48d6d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e3fb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x511ed0]
push esi
mov esi, ecx
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
mov edx, dword [ecx]
mov dword [esp + 0xc], eax
mov dword [esp + 4], eax
push edx
lea eax, [esp + 0xc]
push str.select__from_ActiveTimeLog_where_Date___s_
push eax
call fcn.004d2912
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x38]
push eax
mov eax, dword [esi + 8]
push ecx
push edx
push eax
call fcn.00466a00
mov eax, dword [esp + 0x30]
add esp, 0x24
cmp eax, 1
jl 0x48d779
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 4]
mov esi, dword [esp + 0x28]
mov eax, dword [ecx + edx*4]
mov ecx, esi
push eax
call fcn.004d3a06
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x24]
mov eax, dword [edx + ecx*4 + 4]
push eax
call fcn.004af1e9
add esp, 4
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0043f790
mov edx, dword [esp + 0x28]
push edx
call fcn.00466d00
add esp, 8
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004d387d
mov ecx, dword [esp + 0x14]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x48d870
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4e3ffb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x34]
mov eax, dword [esi + 4]
push 0x4000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
xor edx, edx
cmp eax, 0xffffffff
mov eax, dword [esi + 4]
setne dl
xor ebp, ebp
push eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ebp
call fcn.0048f7b0
mov ebx, eax
push ebx
call fcn.0048f820
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.0048c360
add esp, 0x10
cmp eax, ebp
je 0x48d912
cmp edi, ebp
je 0x48d8e9
push edi
call fcn.004ae9be
add esp, 4
cmp ebx, ebp
je 0x48d8f6
push ebx
call fcn.004ae9be
add esp, 4
mov ecx, dword [esi + 4]
push ebp
push ebp
push ecx
call fcn.004db330
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x48da28
cmp edi, ebp
je 0x48d91f
push edi
call fcn.004ae9be
add esp, 4
cmp ebx, ebp
je 0x48d92c
push ebx
call fcn.004ae9be
add esp, 4
push str.select_count___from__sqlite_master_where_typetable_and_nameIRSLOG
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x1c], ebp
xor edi, edi
call fcn.004d38eb
lea eax, [esp + 0x18]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
mov dword [esp + 0xdc], ebp
call fcn.00466a00
mov eax, dword [esp + 0x28]
mov esi, 1
add esp, 0x18
cmp eax, esi
jl 0x48d9c6
cmp esi, 1
jne 0x48d9bd
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax*4]
lea ecx, [esp + 0x20]
push edx
call fcn.004d38eb
mov eax, dword [esp + 0x20]
push 0x50a228
push eax
call fcn.004adbb0
add esp, 8
test eax, eax
jne 0x48d9b4
mov edi, esi
lea ecx, [esp + 0x20]
call fcn.004d387d
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jle 0x48d982
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043f790
mov edx, dword [esp + 0x28]
push edx
call fcn.00466d00
mov eax, dword [esp + 0x34]
add esp, 8
cmp eax, ebp
je 0x48d9e9
cmp edi, ebp
jne 0x48da02
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
push ebp
push ebp
push str.create_table_IRSLOG_LOGID_integer_PRIMARY_KEY_autoincrement_DM_varchar_256__UT_varchar_256__PS_varchar_256___KY_varchar_256___VE_varchar_2048___FG_varchar_10___
push ecx
call fcn.004651a0
add esp, 0x14
mov edx, dword [esp + 0x14]
push edx
call fcn.0048ad60
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc4], 0xffffffff
call fcn.004d387d
mov eax, 1
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb8
ret
Function at 0x48d88d
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4e3ffb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x34]
mov eax, dword [esi + 4]
push 0x4000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
xor edx, edx
cmp eax, 0xffffffff
mov eax, dword [esi + 4]
setne dl
xor ebp, ebp
push eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ebp
call fcn.0048f7b0
mov ebx, eax
push ebx
call fcn.0048f820
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.0048c360
add esp, 0x10
cmp eax, ebp
je 0x48d912
cmp edi, ebp
je 0x48d8e9
push edi
call fcn.004ae9be
add esp, 4
cmp ebx, ebp
je 0x48d8f6
push ebx
call fcn.004ae9be
add esp, 4
mov ecx, dword [esi + 4]
push ebp
push ebp
push ecx
call fcn.004db330
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x48da28
cmp edi, ebp
je 0x48d91f
push edi
call fcn.004ae9be
add esp, 4
cmp ebx, ebp
je 0x48d92c
push ebx
call fcn.004ae9be
add esp, 4
push str.select_count___from__sqlite_master_where_typetable_and_nameIRSLOG
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x1c], ebp
xor edi, edi
call fcn.004d38eb
lea eax, [esp + 0x18]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
mov dword [esp + 0xdc], ebp
call fcn.00466a00
mov eax, dword [esp + 0x28]
mov esi, 1
add esp, 0x18
cmp eax, esi
jl 0x48d9c6
cmp esi, 1
jne 0x48d9bd
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax*4]
lea ecx, [esp + 0x20]
push edx
call fcn.004d38eb
mov eax, dword [esp + 0x20]
push 0x50a228
push eax
call fcn.004adbb0
add esp, 8
test eax, eax
jne 0x48d9b4
mov edi, esi
lea ecx, [esp + 0x20]
call fcn.004d387d
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jle 0x48d982
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043f790
mov edx, dword [esp + 0x28]
push edx
call fcn.00466d00
mov eax, dword [esp + 0x34]
add esp, 8
cmp eax, ebp
je 0x48d9e9
cmp edi, ebp
jne 0x48da02
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
push ebp
push ebp
push str.create_table_IRSLOG_LOGID_integer_PRIMARY_KEY_autoincrement_DM_varchar_256__UT_varchar_256__PS_varchar_256___KY_varchar_256___VE_varchar_2048___FG_varchar_10___
push ecx
call fcn.004651a0
add esp, 0x14
mov edx, dword [esp + 0x14]
push edx
call fcn.0048ad60
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc4], 0xffffffff
call fcn.004d387d
mov eax, 1
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb8
ret
Function at 0x48db70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e4038
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [0x511ed0]
xor eax, eax
xor ebx, ebx
mov dword [esp + 0xc], ecx
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
mov edx, dword [esi + 0xc]
mov ecx, dword [esi]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 8]
push edx
push eax
push ecx
lea edx, [esp + 0x18]
push str.select__from_IRSLOG_where_DM___s_and_PS___s_and_KY___s_
push edx
call fcn.004d2912
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x48]
push edx
mov edx, dword [edi + 8]
push eax
push ecx
push edx
call fcn.00466a00
mov eax, dword [esp + 0x3c]
add esp, 0x2c
cmp eax, 1
jl 0x48dc11
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + eax*4 + 0x14]
lea ecx, [esi + 0x10]
push edx
call fcn.004d3a06
mov ebx, 1
mov eax, dword [esp + 0x18]
push eax
call fcn.0043f790
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00466d00
add esp, 8
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.004d387d
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x48e7b0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4e41db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x34]
mov eax, dword [esi + 4]
push 0x4000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
xor edx, edx
cmp eax, 0xffffffff
mov eax, dword [esi + 4]
setne dl
xor ebp, ebp
push eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ebp
call fcn.0048f7b0
mov ebx, eax
push ebx
call fcn.0048f820
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.0048c360
add esp, 0x10
cmp eax, ebp
je 0x48e852
cmp edi, ebp
je 0x48e829
push edi
call fcn.004ae9be
add esp, 4
cmp ebx, ebp
je 0x48e836
push ebx
call fcn.004ae9be
add esp, 4
mov ecx, dword [esi + 4]
push ebp
push ebp
push ecx
call fcn.004db330
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x48e968
cmp edi, ebp
je 0x48e85f
push edi
call fcn.004ae9be
add esp, 4
cmp ebx, ebp
je 0x48e86c
push ebx
call fcn.004ae9be
add esp, 4
push str.select_count___from__sqlite_master_where_typetable_and_nameIRSLOG
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x1c], ebp
xor edi, edi
call fcn.004d38eb
lea eax, [esp + 0x18]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
mov dword [esp + 0xdc], ebp
call fcn.00466a00
mov eax, dword [esp + 0x28]
mov esi, 1
add esp, 0x18
cmp eax, esi
jl 0x48e906
cmp esi, 1
jne 0x48e8fd
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax*4]
lea ecx, [esp + 0x20]
push edx
call fcn.004d38eb
mov eax, dword [esp + 0x20]
push 0x50a228
push eax
call fcn.004adbb0
add esp, 8
test eax, eax
jne 0x48e8f4
mov edi, esi
lea ecx, [esp + 0x20]
call fcn.004d387d
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jle 0x48e8c2
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043f790
mov edx, dword [esp + 0x28]
push edx
call fcn.00466d00
mov eax, dword [esp + 0x34]
add esp, 8
cmp eax, ebp
je 0x48e929
cmp edi, ebp
jne 0x48e942
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
push ebp
push ebp
push str.create_table_IRSLOG_LOGID_integer_PRIMARY_KEY_autoincrement_DM_varchar_256__UT_varchar_256__PS_varchar_256___KY_varchar_256___VE_varchar_2048___FG_varchar_10___SDM_varchar_256___RDM_varchar_256___RSDM_varchar_256___
push ecx
call fcn.004651a0
add esp, 0x14
mov edx, dword [esp + 0x14]
push edx
call fcn.0048ad60
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc4], 0xffffffff
call fcn.004d387d
mov eax, 1
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb8
ret
Function at 0x48e7cd
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4e41db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x34]
mov eax, dword [esi + 4]
push 0x4000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
xor edx, edx
cmp eax, 0xffffffff
mov eax, dword [esi + 4]
setne dl
xor ebp, ebp
push eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ebp
call fcn.0048f7b0
mov ebx, eax
push ebx
call fcn.0048f820
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.0048c360
add esp, 0x10
cmp eax, ebp
je 0x48e852
cmp edi, ebp
je 0x48e829
push edi
call fcn.004ae9be
add esp, 4
cmp ebx, ebp
je 0x48e836
push ebx
call fcn.004ae9be
add esp, 4
mov ecx, dword [esi + 4]
push ebp
push ebp
push ecx
call fcn.004db330
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x48e968
cmp edi, ebp
je 0x48e85f
push edi
call fcn.004ae9be
add esp, 4
cmp ebx, ebp
je 0x48e86c
push ebx
call fcn.004ae9be
add esp, 4
push str.select_count___from__sqlite_master_where_typetable_and_nameIRSLOG
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x1c], ebp
xor edi, edi
call fcn.004d38eb
lea eax, [esp + 0x18]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
mov dword [esp + 0xdc], ebp
call fcn.00466a00
mov eax, dword [esp + 0x28]
mov esi, 1
add esp, 0x18
cmp eax, esi
jl 0x48e906
cmp esi, 1
jne 0x48e8fd
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax*4]
lea ecx, [esp + 0x20]
push edx
call fcn.004d38eb
mov eax, dword [esp + 0x20]
push 0x50a228
push eax
call fcn.004adbb0
add esp, 8
test eax, eax
jne 0x48e8f4
mov edi, esi
lea ecx, [esp + 0x20]
call fcn.004d387d
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jle 0x48e8c2
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043f790
mov edx, dword [esp + 0x28]
push edx
call fcn.00466d00
mov eax, dword [esp + 0x34]
add esp, 8
cmp eax, ebp
je 0x48e929
cmp edi, ebp
jne 0x48e942
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
push ebp
push ebp
push str.create_table_IRSLOG_LOGID_integer_PRIMARY_KEY_autoincrement_DM_varchar_256__UT_varchar_256__PS_varchar_256___KY_varchar_256___VE_varchar_2048___FG_varchar_10___SDM_varchar_256___RDM_varchar_256___RSDM_varchar_256___
push ecx
call fcn.004651a0
add esp, 0x14
mov edx, dword [esp + 0x14]
push edx
call fcn.0048ad60
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc4], 0xffffffff
call fcn.004d387d
mov eax, 1
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb8
ret