joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aeb00
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4aeb20
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4aeb20
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4aeb20
push dword [esp + 8]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4c0db0
Capabilities:
Query environment variable

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov dword [edi + 4], 0
call fcn.004c2ed0
push 0x54
push edi
mov dword [esp + 0x14], eax
call fcn.004c2ea0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4c0df7
push edi
call fcn.004c2ee0
mov ecx, dword [edi]
push edi
mov dword [ecx + 0x14], 0x38
mov ecx, dword [edi]
mov dword [ecx + 0x18], esi
mov eax, dword [edi]
mov eax, dword [eax]
call eax
add esp, 8
mov dword [esi], fcn.004c0a40
mov dword [esi + 4], fcn.004c08d0
mov dword [esi + 8], fcn.004c09a0
mov dword [esi + 0xc], fcn.004c0820
mov dword [esi + 0x10], 0x4c1110
mov dword [esi + 0x14], 0x4c10a0
mov dword [esi + 0x18], 0x4c0f00
mov dword [esi + 0x1c], 0x4c06d0
mov dword [esi + 0x20], 0x4c0580
mov dword [esi + 0x24], 0x4c0cb0
mov dword [esi + 0x28], 0x4c1180
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [esp + 8]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x4c0eda
lea ecx, [esp + 0x10]
mov byte [esp + 0x10], 0x78
push ecx
lea ecx, [esp + 0xc]
push ecx
push str._ld_c
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x4c0eda
mov al, byte [esp + 0x10]
cmp al, 0x6d
je 0x4c0ec9
cmp al, 0x4d
mov eax, dword [esp + 8]
jne 0x4c0ed1
imul eax, dword [esp + 8], 0x3e8
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ecx
ret
Function at 0x4f3230
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
movzx edx, byte [esi + 9]
mov ebx, dword [esi + 0x38]
mov eax, dword [esi + 0x34]
movzx ecx, byte [edx + ebx + 5]
mov ebp, dword [eax + 0x28]
movzx eax, byte [edx + ebx + 6]
movzx edi, byte [edx + ebx + 7]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x10], ebp
movzx eax, byte [esi + 0xa]
dec ecx
and ecx, 0xffff
add eax, edx
inc ecx
add ebp, 0xfffffffc
mov dword [esp + 0x14], ecx
movzx ecx, word [esi + 0x18]
movzx esi, byte [edx + ebx + 1]
shl esi, 8
lea eax, [eax + ecx*2]
add eax, 8
mov dword [esp + 0x18], eax
movzx eax, byte [edx + ebx + 2]
or esi, eax
mov eax, dword [esp + 0x14]
add edi, eax
test esi, esi
jle 0x4f3329
cmp esi, eax
jge 0x4f32b3
push 0x5cd89c
push 0x10a25
jmp 0x4f3359
cmp esi, ebp
jg 0x4f32ee
jmp 0x4f32c0
movzx eax, byte [esi + ebx]
movzx ecx, byte [ebx + esi + 1]
movzx edx, byte [ebx + esi + 2]
shl eax, 8
or eax, ecx
shl edx, 8
movzx ecx, byte [ebx + esi + 3]
or edx, ecx
lea ecx, [esi + 3]
add ecx, edx
add edi, edx
cmp eax, ecx
jbe 0x4f32fa
mov esi, eax
cmp eax, ebp
jle 0x4f32c0
push 0x5cd89c
push 0x10a2a
jmp 0x4f3359
test eax, eax
je 0x4f330a
push 0x5cd89c
push 0x10a34
jmp 0x4f3359
mov ecx, dword [esp + 0x10]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x4f332d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
mov dword [esp + 4], 0x10a38
jmp fcn.00535f50
mov ecx, dword [esp + 0x10]
cmp edi, ecx
jg 0x4f334f
mov eax, dword [esp + 0x18]
cmp edi, eax
jl 0x4f334f
mov ecx, dword [esp + 0x20]
sub edi, eax
movzx eax, di
pop edi
pop esi
pop ebp
mov dword [ecx + 0x14], eax
xor eax, eax
pop ebx
add esp, 0xc
ret
push 0x5cd89c
push 0x10a44
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004e9df0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x5270c0
Capabilities:
Reference sql statements

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push edi
push dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
mov byte [edi + 0x10], 1
push ebx
push ebx
push str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
push edi
call fcn.0054ead0
add esp, 0x1c
cmp dword [esp + 0x14], 0
jne 0x527108
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push ebx
push str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
push edi
call fcn.0054ead0
add esp, 0x14
pop edi
pop ebx
ret
Function at 0x537470
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x3c
push ebx
mov ebx, dword [esp + 0x54]
push ebp
push esi
mov esi, dword [esp + 0x4c]
push edi
mov dword [esp + 0x10], 0
cmp word [esi + 0xcc], 0
mov ebp, dword [esi]
jle 0x5374aa
push str.parameters_are_not_allowed_in_views
push esi
call fcn.00539ba0
mov edi, dword [esp + 0x6c]
add esp, 8
jmp 0x5375de
push dword [esp + 0x6c]
mov edi, dword [esp + 0x60]
push 0
push 1
push dword [esp + 0x74]
push edi
push dword [esp + 0x6c]
push esi
call fcn.0055bba0
mov ebx, dword [esi + 0xec]
add esp, 0x1c
test ebx, ebx
je 0x5375d6
cmp dword [esi + 0x24], 0
jne 0x5375d6
or dword [ebx + 0x1c], 0x200
lea eax, [esp + 0x10]
push eax
push edi
push dword [esp + 0x60]
push esi
call fcn.0055d170
add esp, 0x10
push dword [esp + 0x10]
push str.view
push dword [ebx + 0x3c]
push ebp
call fcn.005580d0
add esp, 8
push eax
lea eax, [esp + 0x24]
push esi
push eax
call fcn.005405e0
mov edi, dword [esp + 0x78]
lea eax, [esp + 0x30]
push edi
push eax
call fcn.0056f310
add esp, 0x1c
test eax, eax
jne 0x5375da
or dword [edi + 4], 0x200000
cmp byte [esi + 0xd0], 2
jb 0x53754c
mov dword [ebx + 0x2c], edi
xor edi, edi
jmp 0x53755b
push 1
push edi
push ebp
call fcn.0055a950
add esp, 0xc
mov dword [ebx + 0x2c], eax
push 1
push dword [esp + 0x64]
push ebp
call fcn.0053e850
add esp, 0xc
mov dword [ebx + 0x10], eax
mov byte [ebx + 0x2b], 2
cmp byte [ebp + 0x57], 0
jne 0x5375da
mov ecx, dword [esi + 0xc4]
cmp byte [ecx], 0x3b
je 0x537588
add ecx, dword [esi + 0xc8]
mov eax, dword [esp + 0x54]
mov edx, dword [eax]
sub ecx, edx
movzx eax, byte [edx + ecx - 1]
test byte [eax + 0x5c01b0], 1
je 0x5375af
mov edi, edi
movzx eax, byte [edx + ecx - 2]
dec ecx
test byte [eax + 0x5c01b0], 1
jne 0x5375a0
lea eax, [edx - 1]
mov dword [esp + 0x14], 1
add eax, ecx
push 0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 0
push eax
push 0
push esi
call fcn.00539270
add esp, 0x14
jmp 0x5375da
mov edi, dword [esp + 0x64]
mov ebx, dword [esp + 0x60]
test edi, edi
je 0x5375ee
push 1
push edi
push ebp
call fcn.004f5e50
add esp, 0xc
cmp byte [esi + 0xd0], 2
jb 0x537601
push ebx
push esi
call fcn.005564d0
add esp, 8
test ebx, ebx
je 0x53760f
push ebx
push ebp
call fcn.004fef40
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
Function at 0x53a920
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
push ebx
mov bh, byte [esp + 0x40]
mov edx, dword [ecx + 8]
mov bl, bh
and bl, 1
mov dword [esp + 4], edx
neg bl
push ebp
sbb bl, bl
push esi
mov esi, dword [eax]
add bl, 0x50
cmp byte [ecx + 0x17], 0
mov dword [esp + 0x3c], esi
jne 0x53a954
and bh, 0xfd
add eax, 8
xor ebp, ebp
mov dword [esp + 0x10], eax
test esi, esi
jle 0x53aad9
mov esi, dword [esp + 0x40]
mov byte [esp + 0x48], bh
and byte [esp + 0x48], 4
push edi
cmp byte [esp + 0x4c], 0
mov edi, dword [eax]
je 0x53a9b4
movzx eax, word [eax + 0x10]
test eax, eax
jle 0x53a9b4
test bh, 8
je 0x53a999
mov eax, dword [esp + 0x40]
dec ebp
dec esi
dec eax
mov dword [esp + 0x40], eax
jmp 0x53aaba
mov ecx, dword [esp + 0x48]
dec ecx
push esi
add eax, ecx
push eax
movzx eax, bl
push eax
push edx
call fcn.00560d50
add esp, 0x10
jmp 0x53aaae
test bh, 2
je 0x53aa09
mov dword [esp + 0x20], fcn.004ff1f0
mov eax, 2
mov word [esp + 0x30], ax
mov dword [esp + 0x24], 0x55ae30
mov dword [esp + 0x34], 0
test edi, edi
je 0x53a9f9
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.00580c50
mov ecx, dword [esp + 0x44]
add esp, 8
cmp word [esp + 0x30], 0
je 0x53aa09
push esi
push edi
push ecx
call fcn.0053bde0
add esp, 0xc
jmp 0x53aaae
push esi
push edi
push ecx
call fcn.0053bf70
mov edi, eax
add esp, 0xc
cmp edi, esi
je 0x53aaae
cmp bl, 0x4f
jne 0x53aa5d
push 0xffffffffffffffff
push dword [esp + 0x14]
call fcn.005690b0
mov ecx, eax
add esp, 8
cmp byte [ecx], bl
jne 0x53aa5d
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0xc]
inc eax
add eax, edx
cmp eax, edi
jne 0x53aa5d
mov eax, dword [ecx + 8]
inc eax
add eax, edx
cmp eax, esi
jne 0x53aa5d
cmp word [ecx + 2], 0
jne 0x53aa5d
lea eax, [edx + 1]
mov dword [ecx + 0xc], eax
jmp 0x53aaae
mov edx, dword [esp + 0x10]
movzx eax, bl
mov dword [esp + 0x18], eax
mov ecx, dword [edx + 0x74]
cmp dword [edx + 0x78], ecx
jg 0x53aa80
push 0
push esi
push edi
push eax
push edx
call fcn.00515850
add esp, 0x14
jmp 0x53aaae
lea eax, [ecx + 1]
mov dword [edx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + 0x70]
mov edx, dword [esp + 0x18]
mov byte [eax + ecx*4], dl
xor edx, edx
mov word [eax + ecx*4 + 2], dx
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], edx
mov byte [eax + ecx*4 + 1], dl
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
add dword [esp + 0x14], 0x14
inc ebp
inc esi
cmp ebp, eax
mov eax, dword [esp + 0x14]
jl 0x53a973
mov eax, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x53fbf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebp
push esi
xor esi, esi
xor ebp, ebp
cmp dword [eax + 0x14], esi
jle 0x53fcad
mov edx, dword [esp + 0x1c]
push ebx
push edi
lea esp, [esp]
mov edi, esi
cmp esi, 2
jge 0x53fc1a
xor edi, 1
mov eax, dword [eax + 0x10]
mov ecx, edi
add ecx, ecx
mov ebx, dword [eax + ecx*8 + 0xc]
mov dword [esp + 0x10], ebx
test edx, edx
je 0x53fc74
mov eax, dword [eax + ecx*8]
mov ebx, edx
sub ebx, eax
movzx edx, byte [eax]
movzx ecx, byte [ebx + eax]
cmp edx, ecx
jne 0x53fc46
test edx, edx
je 0x53fc74
inc eax
jmp 0x53fc34
movzx ecx, byte [ecx + 0x5c0080]
movzx edx, byte [edx + 0x5c0080]
sub edx, ecx
jne 0x53fc5b
inc eax
jmp 0x53fc34
test edi, edi
jne 0x53fc91
push dword [esp + 0x24]
push str.main
call fcn.0055c450
add esp, 8
test eax, eax
jne 0x53fc91
mov eax, dword [esp + 0x10]
push 0
push dword [esp + 0x24]
add eax, 0x18
push eax
call fcn.00500250
add esp, 0xc
mov ebp, dword [eax + 8]
test ebp, ebp
jne 0x53fca3
mov eax, dword [esp + 0x1c]
inc esi
mov edx, dword [esp + 0x24]
cmp esi, dword [eax + 0x14]
jl 0x53fc10
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
Function at 0x5412c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
mov ebp, dword [esi]
mov eax, dword [ebp + 0x20]
and eax, 0x4000
or eax, 0
je 0x54147d
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x2b], 0
jne 0x54147d
push ebx
push edi
mov edi, dword [esi + 8]
xor ebx, ebx
test edi, edi
jne 0x541310
cmp dword [esi + 0x74], ebx
jne 0x541301
test byte [ebp + 0x50], 8
jne 0x541301
mov byte [esi + 0x17], 1
push esi
call fcn.005617d0
mov edi, eax
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x3c]
push 0
push dword [eax]
add ecx, 0x38
push ecx
call fcn.00500250
add esp, 0xc
cmp dword [eax + 8], ebx
jne 0x5413a4
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x30]
test ecx, ecx
je 0x54147b
cmp byte [ecx + 0x18], bl
jne 0x541355
mov eax, dword [ebp + 0x20]
and eax, 0x80000
or eax, 0
jne 0x541355
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x541337
pop edi
pop ebx
pop esi
pop ebp
ret
dec dword [esi + 0x38]
mov ecx, dword [edi + 0x74]
mov ebx, dword [esi + 0x38]
cmp dword [edi + 0x78], ecx
jg 0x541375
push 0
push ebx
push 1
push 0x30
push edi
call fcn.00515850
add esp, 0x14
jmp 0x5413a4
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0x30
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push 0
push 0
push 0
push 0
push dword [esp + 0x28]
mov byte [esi + 0x97], 1
push ebp
call fcn.0055b6c0
add esp, 0xc
push eax
push esi
call fcn.00537ed0
mov byte [esi + 0x97], 0
add esp, 0x14
mov eax, dword [ebp + 0x20]
and eax, 0x80000
or eax, 0
jne 0x541451
mov eax, dword [edi + 0x74]
add eax, 2
push eax
push 0
push 0x30
push edi
call fcn.00560d50
mov ebp, dword [esi + 8]
add esp, 0x10
test ebp, ebp
jne 0x541415
cmp dword [esi + 0x74], ebp
jne 0x54140a
mov eax, dword [esi]
test byte [eax + 0x50], 8
jne 0x54140a
mov byte [esi + 0x17], 1
push esi
call fcn.005617d0
add esp, 4
mov ebp, eax
mov eax, dword [esi + 0x74]
test eax, eax
jne 0x54141e
mov eax, esi
push 0xffffffffffffffff
push 0
push 0
push 2
push 0x313
push 0x46
push ebp
mov byte [eax + 0x15], 1
call fcn.00560e10
mov eax, dword [ebp + 0x74]
add esp, 0x1c
test eax, eax
jle 0x541451
lea ecx, [eax + eax*4]
mov edx, 4
mov eax, dword [ebp + 0x70]
mov word [eax + ecx*4 - 0x12], dx
test ebx, ebx
je 0x54147b
mov ecx, dword [edi + 0xc]
not ebx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x541472
push ebx
push edi
push ecx
call fcn.005278f0
add esp, 0xc
pop edi
pop ebx
pop esi
pop ebp
ret
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x74]
mov dword [ecx + ebx*4], eax
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x549320
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
or edx, 0xffffffff
xor ecx, ecx
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
push edi
mov ebx, dword [ebx + 8]
test byte [esi + 0x1c], 0x80
jne 0x549340
xor edi, edi
jmp 0x549357
mov edi, dword [esi + 8]
test edi, edi
je 0x549357
mov eax, dword [edi + 0x38]
and al, 3
cmp al, 2
je 0x549357
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x549347
mov esi, dword [esi + 8]
test esi, esi
je 0x54947f
mov eax, dword [esp + 0x28]
push ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x10], eax
nop
cmp dword [esp + 0x2c], 0
je 0x549380
cmp dword [eax], 0
je 0x549467
cmp esi, edi
je 0x549467
cmp ebp, dword [esp + 0x30]
je 0x549467
push edx
push ecx
lea eax, [esp + 0x1c]
push eax
push 1
push 0
push dword [esp + 0x38]
push esi
push dword [esp + 0x38]
call fcn.00548d30
add esp, 0x20
mov dword [esp + 0x20], eax
test byte [esi + 0x38], 8
je 0x5493be
movzx edx, word [esi + 0x32]
jmp 0x5493c2
movzx edx, word [esi + 0x34]
mov ecx, dword [ebx + 0x74]
cmp dword [ebx + 0x78], ecx
jg 0x5493dd
push edx
push eax
push ebp
push 0x8b
push ebx
call fcn.00515850
add esp, 0x14
jmp 0x549410
mov ebp, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x70]
mov dword [eax + ecx*4 + 4], ebp
mov ebp, dword [esp + 0x20]
mov dword [eax + ecx*4 + 8], ebp
mov ebp, dword [esp + 0x28]
mov dword [eax + ecx*4], 0x8b
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 0x74]
test eax, eax
jle 0x549427
lea ecx, [eax + eax*4]
mov edx, 1
mov eax, dword [ebx + 0x70]
mov word [eax + ecx*4 - 0x12], dx
mov edx, dword [esp + 0x14]
test edx, edx
je 0x54945d
mov eax, dword [esp + 0x1c]
not edx
mov ebp, dword [eax + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x549450
push edx
push ebp
push ecx
call fcn.005278f0
add esp, 0xc
jmp 0x549459
mov ecx, dword [ecx + 0x40]
mov eax, dword [ebp + 0x74]
mov dword [ecx + edx*4], eax
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov ecx, esi
mov edx, dword [esp + 0x20]
mov esi, dword [esi + 0x14]
add eax, 4
inc ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], ebp
test esi, esi
jne 0x549370
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x55c860
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov dword [edi], 0
cmp dword [0x8f4e18], 0
je 0x55c8b3
mov eax, dword [0x973ba0]
test eax, eax
je 0x55c888
push eax
call dword [0x8f4e68]
add esp, 4
lea eax, [esp + 0xc]
push eax
push 0x14
call fcn.0051b7d0
mov eax, dword [0x973ba0]
add esp, 8
test eax, eax
je 0x55c8ad
push eax
call dword [0x8f4e70]
mov esi, dword [esp + 0x10]
jmp 0x55c8bd
mov esi, dword [esp + 0xc]
jmp 0x55c8c0
push 0x14
call dword [0x8f4e38]
mov esi, eax
add esp, 4
test esi, esi
jne 0x55c8ca
pop edi
lea eax, [esi + 7]
pop esi
ret
cmp byte [0x8f4e1c], 0
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x18]
je 0x55c919
mov eax, dword [0x8f4f18]
test eax, eax
je 0x55c8f4
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x55c919
lea eax, [esi + 4]
mov dword [esi + 8], ebp
push eax
push 0
push esi
push 0x55c9b0
push 0
push 0
mov dword [esi + 0xc], ebx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x55c929
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp dword [esi + 8], 0
jne 0x55c941
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
mov dword [esi + 4], eax
call ebp
add esp, 4
mov dword [esi + 0x10], eax
pop ebp
pop ebx
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
ret
Function at 0x5695a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x68]
push edi
call fcn.00514660
mov ebx, dword [edi + 0x28]
xor eax, eax
movzx ecx, word [edi + 0x30]
xor ebp, ebp
mov esi, dword [edi + 0x2c]
add esp, 4
mov word [esp + 0x18], ax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x74]
mov dword [esp + 0x28], ebp
mov eax, dword [eax + 0x3c]
sub eax, ebx
cmp ecx, eax
jle 0x5695e9
xor ecx, ecx
test eax, eax
sets cl
dec ecx
and ecx, eax
mov dword [esp + 0x20], ebx
cmp esi, ecx
ja 0x569601
mov eax, 0x1010
mov dword [esp + 0x1c], esi
mov word [esp + 0x18], ax
jmp 0x569626
lea eax, [esp + 0x10]
push eax
push esi
push 0
push edi
call fcn.0056a280
add esp, 0x10
test eax, eax
jne 0x569707
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
movzx edi, byte [ebx]
mov dword [esp + 0x68], edi
cmp edi, 0x80
jb 0x569647
lea eax, [esp + 0x68]
push eax
push ebx
call fcn.0054a110
mov edi, dword [esp + 0x70]
add esp, 8
cmp edi, 3
jb 0x5696c9
cmp edi, esi
ja 0x5696c9
lea eax, [edi - 1]
add eax, ebx
movzx ecx, byte [eax]
mov dword [esp + 0x68], ecx
cmp ecx, 0x80
jb 0x569676
lea ecx, [esp + 0x68]
push ecx
push eax
call fcn.0054a110
mov ecx, dword [esp + 0x70]
add esp, 8
lea eax, [ecx - 1]
cmp eax, 8
ja 0x5696c9
cmp ecx, 7
je 0x5696c9
movzx edx, byte [ecx + 0x5c1c00]
lea eax, [edx + edi]
cmp esi, eax
jb 0x5696c9
lea eax, [esp + 0x38]
sub esi, edx
push eax
push ecx
add esi, ebx
push esi
call fcn.0056bf90
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x44]
mov dword [ecx], eax
mov eax, dword [esp + 0x48]
mov dword [ecx + 4], eax
lea eax, [esp + 0x1c]
push eax
call fcn.0056a800
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
test dword [esp + 0x18], 0x2400
jne 0x5696d7
test ebp, ebp
je 0x5696e4
lea eax, [esp + 0x10]
push eax
call fcn.0057b840
add esp, 4
push 0x5cd89c
push 0x14b3d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004e9df0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
Function at 0x57fc50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x60
mov ecx, 0xc
push ebx
mov ebx, dword [esp + 0x68]
push ebp
push esi
push edi
cmp byte [ebx + 0x2b], 2
lea edi, [esp + 0x10]
mov eax, dword [ebx + 0x20]
mov ebp, dword [eax]
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
je 0x57fc81
mov eax, dword [ebx + 4]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x3c]
call eax
add esp, 4
lea esi, [ebp + 0x30]
mov ecx, 0xc
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
mov esi, 0x2c
lea edx, [esp + 0x40]
lea esp, [esp]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x57fd51
add ecx, 4
add edx, 4
sub esi, 4
jae 0x57fca0
cmp byte [esp + 0x1c], 0
je 0x57fd51
xor edx, edx
lea ecx, [esp + 0x10]
xor esi, esi
mov eax, dword [ecx]
add eax, edx
add esi, eax
mov eax, dword [ecx + 4]
add eax, esi
add ecx, 8
add edx, eax
lea eax, [esp + 0x38]
cmp ecx, eax
jb 0x57fcc8
cmp esi, dword [esp + 0x38]
jne 0x57fd51
cmp edx, dword [esp + 0x3c]
jne 0x57fd51
lea edi, [ebx + 0x34]
mov esi, 0x2c
mov ecx, edi
lea edx, [esp + 0x10]
lea ebx, [ebx]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x57fd1b
add ecx, 4
add edx, 4
sub esi, 4
jae 0x57fd00
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret
mov eax, dword [esp + 0x78]
lea esi, [esp + 0x10]
mov ecx, 0xc
mov dword [eax], 1
rep movsd dword es:[edi], dword [esi]
movzx ecx, word [ebx + 0x42]
mov eax, ecx
and ecx, 0xfe00
and eax, 1
pop edi
shl eax, 0x10
pop esi
add eax, ecx
mov dword [ebx + 0x24], eax
xor eax, eax
pop ebp
pop ebx
add esp, 0x60
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x60
ret
Function at 0x58e081
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x973ee0], 0
push ebx
push esi
mov esi, 0x973ee8
jne 0x58e0ad
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x973f00], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x973ee0], 1
push dword [0x973f00]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x58e14a
push 0x14
push 8
push dword [0x8f9978]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x58e174
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x973ee4]
test eax, eax
je 0x58e0ef
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x973ee4], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x58e179
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x973f00]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x8f9978]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x58e174
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x58e659
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x184
push 8
push dword [0x8f9978]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x974814]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x974818], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.0059128c
mov dword [esi + 0x58], 0x58f26c
mov eax, esi
mov dword [esi + 0x5c], 0x58f2b8
mov dword [esi + 0x10], fcn.0058ee0d
mov dword [esi + 0x30], 0x58ecff
mov dword [esi + 0x64], 0x58f342
mov dword [esi + 0x60], 0x58f2fa
mov dword [esi + 0x34], 0x58e9af
mov dword [esi + 0x24], 0x58e986
mov dword [esi + 0x28], 0x58e95b
mov dword [esi + 0x2c], 0x58e8ad
mov dword [esi + 0x44], 0x58f072
pop esi
ret 4