joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10058d10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10144297
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x101811b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea esi, [edi + 4]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esi
test esi, esi
je 0x10058d5a
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, ebx
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10058d66
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [edi + 0x2c]
call fcn.1001ea70
cmp dword [edi + 0x28], 0
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x24], eax
jne 0x10058dd3
push 0x48
call fcn.1010c1ed
mov ebx, eax
add esp, 4
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x10058dc7
push 0x48
push 0
push ebx
call fcn.10117810
add esp, 0xc
mov ecx, ebx
push dword [ebp + 0x14]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.10058040
jmp 0x10058dc9
xor eax, eax
mov ebx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
mov dword [edi + 0x28], eax
xor eax, eax
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0x10], eax
mov ecx, ebx
mov dword [ebp - 0x14], 7
sete al
lea edx, [ecx + 2]
lea eax, [eax*2 + 1]
mov dword [edi + 0x1c], eax
xor eax, eax
mov word [ebp - 0x28], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10058e00
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.1001ea70
push 3
push 0x10150544
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.10053d2c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10058e4f
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], eax
cmp dword [edi + 0x28], 0
je 0x10058e9e
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x10058e9e
push 0x10
xor eax, eax
mov dword [ebp - 0x40], 0
push str._______log_start
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
call fcn.1001ea70
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x50]
push edx
mov byte [ebp - 4], 3
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x50]
call fcn.10012d80
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10058ed4
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10058eca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10058f11
push edx
push ecx
call fcn.1010be48
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test esi, esi
je 0x10058ef3
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010c1dc
mov esp, ebp
pop ebp
ret 0x14
call fcn.1011ae29
int3
Function at 0x10059ad0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx]
test ecx, ecx
je 0x10059adf
pop ebp
jmp fcn.1005a7a0
xor eax, eax
pop ebp
ret 0xc
Function at 0x1005a7a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10144590
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x101811b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x34]
mov dword [ebp - 0x18], vtable._BaseModule::CAutoLocker.0
mov dword [ebp - 0x14], edi
test edi, edi
je 0x1005a7e0
mov eax, dword [edi]
push edi
call dword [eax]
cmp dword [esi + 0x24], 0
mov dword [ebp - 4], 0
jl 0x1005a7f7
mov esi, 1
jmp 0x1005a944
mov ebx, dword [ebp + 8]
mov dword [esi + 0x24], ebx
test ebx, ebx
jns 0x1005a808
xor esi, esi
jmp 0x1005a944
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1005a818
push eax
lea ecx, [esi + 0x30]
call fcn.10003b70
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1005a82a
push eax
lea ecx, [esi + 0x2c]
call fcn.10003b70
jmp 0x1005a863
lea eax, [ebp + 8]
push ebx
push eax
call fcn.1005cda0
add esp, 8
push eax
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 1
call fcn.10005be0
mov edx, dword [ebp + 8]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005a863
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, esi
call fcn.1005aad0
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.1005c740
add esp, 8
push dword [ebp - 0x10]
mov byte [ebp - 4], 2
push 0
push str.stat_rand
push str.statistic
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x1005a920
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.1011f862
add esp, 4
call fcn.1011f841
cdq
mov ecx, 0x64
idiv ecx
inc edx
mov dword [esi + 0x1c], edx
call fcn.100039d0
mov ecx, eax
test ecx, ecx
je 0x1005a96b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
push dword [esi + 0x1c]
lea eax, [ebp + 8]
mov byte [ebp - 4], 3
push 0x10147c2c
push eax
call fcn.10004580
mov esi, dword [ebp + 8]
add esp, 0xc
push dword [ebp - 0x10]
push esi
push str.stat_rand
push str.statistic
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1005a920
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov esi, 1
mov byte [ebp - 4], 0
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005a944
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 4
test edi, edi
je 0x1005a955
mov ecx, dword [edi]
push edi
call dword [ecx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.10003610
int3
Function at 0x1005a980
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101445c3
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x101811b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], 0
test esi, esi
je 0x1005aa25
cmp word [esi], di
je 0x1005aa25
test eax, eax
je 0x1005a9e1
cmp word [eax], di
je 0x1005a9e1
push edi
push edi
push eax
push esi
push edi
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
js 0x1005aa25
jmp 0x1005aa20
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10117810
add esp, 0xc
lea eax, [ebp - 0x420]
push 0
push 0
push 0x104
push eax
push esi
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
js 0x1005aa25
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 1
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x1005aa9c
mov eax, dword [ebx + 0x24]
test eax, eax
js 0x1005aa87
lea esi, [ebx + 0x34]
mov dword [ebp - method._BaseModule::CAutoLocker.virtual_0], vtable._BaseModule::CAutoLocker.0
mov dword [ebp - 0x428], esi
test esi, esi
je 0x1005aa55
mov eax, dword [esi]
push esi
call dword [eax]
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebp + 0x34]
mov byte [ebp - 4], 1
test eax, eax
js 0x1005aa76
mov dword [ebp - 0x424], edi
test ecx, ecx
je 0x1005aabc
mov eax, dword [ecx]
lea edx, [ebp - 0x424]
push edx
call dword [eax + 8]
mov ecx, dword [ebp + 0x34]
mov byte [ebp - 4], 2
test esi, esi
je 0x1005aa87
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x1005aa9c
mov edx, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010c1dc
mov esp, ebp
pop ebp
ret 0x30
call fcn.1005228c
int3
Function at 0x1005db70
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x101811b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
js 0x1005dcdc
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10117810
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call edi
test esi, esi
jle 0x1005dbdf
lea eax, [ebp - 0x20c]
push eax
call edi
sub esi, 1
jne 0x1005dbd1
mov eax, dword [0x10185408]
mov esi, dword [eax]
cmp esi, eax
je 0x1005dcdc
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
nop word [eax + eax]
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.10117810
add esp, 0xc
lea eax, [ebp - 0x20c]
push dword [esi + 0x14]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esi + 0x10]
test eax, eax
jne 0x1005dd03
cmp ecx, 8
jne 0x1005dc94
push 0x208
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.10117810
add esp, 0xc
lea eax, [ebp - 0x414]
push 0
push 0x1a
push eax
push 0
call edi
push str.MasterPDFData
lea eax, [ebp - 0x414]
push eax
call ebx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x1005dcef
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x1005dcba
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x1005dcb6
cmp esi, dword [eax + 8]
jne 0x1005dcb6
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x1005dca6
mov esi, eax
jmp 0x1005dcd0
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x1005dcd0
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x1005dcc4
cmp esi, dword [0x10185408]
jne 0x1005dc00
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1010c1dc
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1010c1dc
mov esp, ebp
pop ebp
ret
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1010c1dc
mov esp, ebp
pop ebp
ret
Function at 0x1005dd20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1005dd91
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x1005dd5f
cmp eax, 2
jne 0x1005dd7b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x1005dd8b
test ecx, ecx
je 0x1005dd86
test cl, 1
jne 0x1005dd7b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x1005dd8b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x100769e0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x101811b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, 0x4f7a09cd
inc ecx
imul ecx
imul ecx, ecx, 0x9ef4
push ebx
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x7fffff07
push esi
mov esi, dword [ebp + 0x10]
sub ecx, eax
lea ebx, [ecx + 0x7fffff07]
cmovns ebx, ecx
mov eax, ebx
imul ecx, ebx, 0x9ef4
sar eax, 8
mov byte [ebp - 0x13], al
mov eax, ebx
sar eax, 0x10
mov byte [ebp - 0x12], al
mov eax, ebx
sar eax, 0x18
mov byte [ebp - 0x11], al
mov eax, 0x4f7a09cd
imul ebx
mov byte [ebp - 0x14], bl
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x7fffff07
sub ecx, eax
lea ebx, [ecx + 0x7fffff07]
cmovns ebx, ecx
mov eax, ebx
imul ecx, ebx, 0x9ef4
sar eax, 8
mov byte [ebp - 0xf], al
mov eax, ebx
sar eax, 0x10
mov byte [ebp - 0xe], al
mov eax, ebx
sar eax, 0x18
mov byte [ebp - 0xd], al
mov eax, 0x4f7a09cd
imul ebx
mov byte [ebp - 0x10], bl
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x7fffff07
sub ecx, eax
mov eax, 0x4f7a09cd
lea ebx, [ecx + 0x7fffff07]
cmovns ebx, ecx
imul ebx
mov ecx, ebx
mov byte [ebp - 0xc], bl
sar ecx, 8
mov byte [ebp - 0xb], cl
mov ecx, ebx
sar ecx, 0x10
sar edx, 0xe
mov byte [ebp - 0xa], cl
mov eax, edx
shr eax, 0x1f
mov ecx, ebx
add eax, edx
sar ecx, 0x18
mov byte [ebp - 9], cl
imul eax, eax, 0x7fffff07
imul ecx, ebx, 0x9ef4
sub ecx, eax
lea edx, [ecx + 0x7fffff07]
cmovns edx, ecx
mov byte [ebp - 8], dl
mov eax, edx
sar eax, 8
lea ecx, [ebp - 0x54]
mov byte [ebp - 7], al
mov eax, edx
sar eax, 0x10
mov byte [ebp - 6], al
mov eax, 0x80
mov dword [ebp - 0x5c], eax
sar edx, 0x18
shr eax, 3
and eax, 0x3f
mov byte [ebp - 5], dl
movups xmm0, xmmword [ebp - 0x14]
add ecx, eax
mov dword [ebp - 0x6c], 0x67452301
mov edx, 0x3f
mov dword [ebp - 0x68], 0xefcdab89
mov dword [ebp - 0x64], 0x98badcfe
sub edx, eax
mov dword [ebp - 0x60], 0x10325476
mov dword [ebp - 0x58], 0
movups xmmword [ebp - 0x54], xmm0
mov byte [ecx], 0x80
inc ecx
cmp edx, 8
jae 0x10076b84
push edx
push 0
push ecx
call fcn.10117810
lea eax, [ebp - 0x54]
push 0x10
push eax
call fcn.1007fb30
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.10076c30
push 0x38
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.10117810
add esp, 0x28
jmp 0x10076b93
lea eax, [edx - 8]
push eax
push 0
push ecx
call fcn.10117810
add esp, 0xc
lea eax, [ebp - 0x54]
push 0xe
push eax
call fcn.1007fb30
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.10076c30
lea eax, [ebp - 0x6c]
push 4
push eax
call fcn.1007fb30
movups xmm0, xmmword [ebp - 0x6c]
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
movups xmmword [esi], xmm0
pop esi
pop ebx
call fcn.1010c1dc
mov esp, ebp
pop ebp
ret
Function at 0x10078a50
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x101811b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
xor eax, eax
push ebx
push esi
push edi
mov edi, dword [ecx + 0x1c]
xor ebx, ebx
sub edi, 6
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edi
test edi, edi
jle 0x10078a8a
mov esi, dword [ebp + 0xc]
mov ecx, edi
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
xor esi, esi
test edi, edi
jle 0x10078ad8
cmp ebx, dword [ecx + 0x1c]
ja 0x10078c14
cmp esi, edi
jge 0x10078abc
nop dword [eax]
cmp eax, 4
jge 0x10078abc
mov edi, dword [ebp - 0x28]
lea edx, [eax + ebx*4]
mov ecx, dword [ebp + esi*4 - 0x24]
inc eax
inc esi
mov dword [edi + edx*4 + 0x20], ecx
mov edi, dword [ebp - 0x2c]
cmp esi, edi
jl 0x10078aa0
cmp eax, 4
lea ecx, [ebx + 1]
cmovne ecx, ebx
mov ebx, ecx
xor ecx, ecx
cmp eax, 4
cmovne ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 0x28]
cmp esi, edi
jl 0x10078a90
cmp ebx, dword [ecx + 0x1c]
ja 0x10078c14
mov esi, 0x10181110
nop word [eax + eax]
movzx ecx, byte [ebp + edi*4 - 0x27]
mov dl, byte [ebp - 0x24]
xor dl, byte [ecx + str.cw]
mov byte [ebp - 0x24], dl
movzx ecx, byte [ebp + edi*4 - 0x26]
movzx ecx, byte [ecx + str.cw]
xor byte [ebp - 0x23], cl
movzx ecx, byte [ebp + edi*4 - 0x25]
movzx ecx, byte [ecx + str.cw]
xor byte [ebp - 0x22], cl
movzx ecx, byte [ebp + edi*4 - 0x28]
movzx ecx, byte [ecx + str.cw]
xor byte [ebp - 0x21], cl
movzx ecx, byte [esi]
add esi, 4
xor cl, dl
mov dword [ebp - 0x30], esi
mov byte [ebp - 0x24], cl
mov edx, 1
cmp edi, 8
je 0x10078b60
cmp edi, edx
jle 0x10078bbe
nop word [eax + eax]
mov ecx, dword [ebp + edx*4 - 0x28]
xor dword [ebp + edx*4 - 0x24], ecx
inc edx
cmp edx, edi
jl 0x10078b50
jmp 0x10078bbe
mov ecx, dword [ebp + edx*4 - 0x28]
xor dword [ebp + edx*4 - 0x24], ecx
inc edx
cmp edx, 4
jl 0x10078b60
movzx ecx, byte [ebp - 0x18]
mov edx, 5
movzx ecx, byte [ecx + str.cw]
xor byte [ebp - 0x14], cl
movzx ecx, byte [ebp - 0x17]
movzx ecx, byte [ecx + str.cw]
xor byte [ebp - 0x13], cl
movzx ecx, byte [ebp - 0x16]
movzx ecx, byte [ecx + str.cw]
xor byte [ebp - 0x12], cl
movzx ecx, byte [ebp - 0x15]
movzx ecx, byte [ecx + str.cw]
xor byte [ebp - 0x11], cl
nop dword [eax + eax]
mov ecx, dword [ebp + edx*4 - 0x28]
xor dword [ebp + edx*4 - 0x24], ecx
inc edx
cmp edx, 8
jl 0x10078bb0
xor esi, esi
test edi, edi
jle 0x10078c05
mov ecx, dword [ebp - 0x28]
cmp ebx, dword [ecx + 0x1c]
ja 0x10078c05
cmp esi, edi
jge 0x10078bec
cmp eax, 4
jge 0x10078bec
mov edi, dword [ebp - 0x28]
lea edx, [eax + ebx*4]
mov ecx, dword [ebp + esi*4 - 0x24]
inc eax
inc esi
mov dword [edi + edx*4 + 0x20], ecx
mov edi, dword [ebp - 0x2c]
cmp esi, edi
jl 0x10078bd0
cmp eax, 4
lea ecx, [ebx + 1]
cmovne ecx, ebx
mov ebx, ecx
xor ecx, ecx
cmp eax, 4
cmovne ecx, eax
mov eax, ecx
cmp esi, edi
jl 0x10078bc4
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x30]
cmp ebx, dword [ecx + 0x1c]
jbe 0x10078af0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1010c1dc
mov esp, ebp
pop ebp
ret
Function at 0x1007f9a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
mov al, byte [esi + 0x44]
test al, al
js 0x1007fa8f
push ebx
xor ebx, ebx
push edi
test al, al
jle 0x1007fa29
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ecx
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x1007fa0e
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.1010cc90
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [ebp + 8]
add esp, 0x10
jmp 0x1007fa17
push ecx
call fcn.100d4f60
add esp, 4
mov ecx, dword [ebp - 4]
inc ebx
movsx eax, byte [esi + 0x44]
add ecx, 4
mov dword [ebp - 4], ecx
cmp ebx, eax
jl 0x1007f9c1
mov eax, dword [esi + 0x74]
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x1007fa80
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.1010cc90
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [ebp + 8]
add esp, 0x10
pop edi
pop ebx
mov byte [esi + 0x44], 0xff
pop esi
mov esp, ebp
pop ebp
ret
push edx
call fcn.100d4f60
add esp, 4
mov byte [esi + 0x44], 0xff
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10080e70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
cmp eax, dword [ebx + 0x30]
jbe 0x10080eaa
push 0x10160abc
push 0x11a98
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10072040
add esp, 0x14
mov eax, 0xb
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
lea ecx, [ebp + 0xc]
push ecx
push eax
push ebx
call fcn.1009cb40
add esp, 0x14
test eax, eax
jne 0x1008104d
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp byte [esi + 1], al
je 0x10080ef6
push 0x10160abc
push 0x11a9d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10072040
add esp, 0x14
mov ebx, 0xb
jmp 0x10080fed
mov byte [esi + 1], 1
xor ecx, ecx
movzx eax, word [esi + 0x18]
movzx edi, byte [esi + 9]
mov edx, eax
mov dword [ebp - 8], edi
mov dword [ebp + 0xc], ecx
mov dword [ebp - 4], ecx
cmp cx, ax
jae 0x10080f7d
mov eax, dword [esi + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [esi + 0x1a]
movzx edi, cx
and edi, eax
add edi, dword [esi + 0x38]
cmp byte [esi + 8], 0
jne 0x10080f4e
push dword [ebp + 0x14]
mov eax, dword [edi]
push 1
bswap eax
push eax
push ebx
call fcn.10080e70
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10080fed
lea eax, [ebp - 0x20]
push eax
push edi
push esi
call fcn.10080ce0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x10080fed
mov ecx, dword [ebp + 0xc]
movzx eax, word [esi + 0x18]
inc ecx
mov ebx, dword [ebp + 8]
mov edx, eax
mov dword [ebp + 0xc], ecx
cmp ecx, eax
jl 0x10080f14
mov edi, dword [ebp - 8]
cmp byte [esi + 8], 0
movzx eax, dx
jne 0x10080fa6
mov eax, dword [esi + 0x38]
push dword [ebp + 0x14]
push 1
mov eax, dword [eax + edi + 8]
bswap eax
push eax
push ebx
call fcn.10080e70
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10080fed
jmp 0x10080faf
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x10080faf
add dword [ecx], eax
cmp dword [ebp + 0x10], 0
je 0x10080fc8
push dword [esi + 4]
push esi
push dword [esi + 0x34]
call fcn.1008c6b0
add esp, 0xc
mov ebx, eax
jmp 0x10080fed
push dword [esi + 0x48]
call fcn.100d4230
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10080fed
mov eax, dword [esi + 0x38]
movzx eax, byte [eax + edi]
or eax, 8
push eax
push esi
call fcn.1010bd70
add esp, 8
mov byte [esi + 1], 0
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x10081040
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.1010cc90
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edx
call fcn.100d4f60
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret