joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49fd60
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x570611
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5a800c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov dword [edi], vtable.DL::RCSimpleDownloadHandler.0
mov dword [edi + 4], vtable.DL::RCSimpleDownloadHandler.1.0
mov dword [ebp - 4], 7
mov dword [edi + 0x98], 0
mov byte [ebp - 4], 6
or ebx, 0xffffffff
mov esi, dword [edi + 0xf8]
test esi, esi
je 0x49fdde
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x49fdde
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x49fdde
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 5
mov ecx, dword [edi + 0xec]
test ecx, ecx
je 0x49fdf9
lock xadd dword [ecx + 8], ebx
dec ebx
jne 0x49fdf9
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, dword [edi + 0xe4]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
test eax, eax
je 0x49fe2a
push eax
call ebx
push 0x18
push dword [edi + 0xe4]
call fcn.005597ea
add esp, 8
mov dword [edi + 0xe4], 0
mov byte [ebp - 4], 3
lea esi, [edi + 0xc0]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 8
mov eax, dword [esi]
test eax, eax
je 0x49fe4e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov byte [ebp - 4], 3
lea ecx, [esi + 8]
call fcn.00402400
mov byte [ebp - 4], 2
mov eax, dword [edi + 0xac]
test eax, eax
je 0x49fe85
push eax
call ebx
push 0x18
push dword [edi + 0xac]
call fcn.005597ea
add esp, 8
mov dword [edi + 0xac], 0
mov byte [ebp - 4], 1
mov ecx, dword [edi + 0xa0]
test ecx, ecx
je 0x49ff00
mov edx, dword [edi + 0xa4]
push ecx
call fcn.00416fc0
mov eax, dword [edi + 0xa8]
add esp, 4
mov ecx, dword [edi + 0xa0]
sub eax, ecx
sar eax, 3
lea edx, [eax*8]
cmp edx, 0x1000
jb 0x49fed8
mov esi, dword [ecx - 4]
add edx, 0x23
sub ecx, esi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x49ff7f
mov ecx, esi
push edx
push ecx
call fcn.005597ea
add esp, 8
mov dword [edi + 0xa0], 0
mov dword [edi + 0xa4], 0
mov dword [edi + 0xa8], 0
mov byte [ebp - 4], 0
lea esi, [edi + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 0xc
lea ecx, [esi + 0x70]
call fcn.00402400
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x48]
call fcn.00402400
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x30]
call fcn.00402400
mov byte [ebp - 4], 9
lea ecx, [esi + 0x18]
call fcn.00402400
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.00402400
mov dword [ebp - 4], 0xe
mov dword [edi + 4], vtable.RC::RCRefCounted.0
mov dword [ebp - 4], 0xffffffff
mov dword [edi], vtable.DL::ISimpleDownloadHandler.0
mov dword [ebp - 4], 0xffffffff
mov dword [edi], vtable.RC::IRefCount.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x4a2380
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x570bb8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5a800c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
push 2
push 0xffffffffffffffff
push 0xffff8000
movlpd qword [ebp - 0x3c], xmm0
call fcn.0042c350
test al, al
jne 0x4a23e0
mov eax, 1
jmp 0x4a255d
push 0x10000
call fcn.00559a74
mov ebx, eax
mov dword [ebp - 0x18], 0
add esp, 4
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
push 0x10000
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esi]
add esp, 0xc
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x4a2536
test ebx, ebx
je 0x4a2536
cmp dword [eax], 0xffffffff
je 0x4a2536
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x8000
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a2536
mov esi, dword [ebp - 0x20]
mov ecx, 0x8000
xor ebx, ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], ecx
add esi, ecx
nop word [eax + eax]
cmp byte [edi + 0x9c], 0
jne 0x4a252c
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push edx
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push edx
push ecx
mov ecx, dword [ebp - 0x34]
lea eax, [esi + ebx]
push eax
call fcn.00558cb0
test al, al
je 0x4a251f
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x4a24d2
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x4a24c1
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [edi + 0x9c], 0
jne 0x4a252c
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
jmp 0x4a24dc
add ebx, eax
cmp ebx, 0x8000
je 0x4a24ec
cmp dword [ebp - 0x28], 0xf
ja 0x4a2515
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
mov dword [ebp - 0x2c], ecx
jne 0x4a2470
mov ebx, dword [ebp - 0x20]
mov edx, 0x7ffc
mov ecx, ebx
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x4a250e
add ecx, 4
add esi, 4
sub edx, 4
jae 0x4a24f6
mov esi, 4
jmp 0x4a2547
mov esi, 5
jmp 0x4a2547
mov ebx, dword [ebp - 0x20]
mov esi, 3
jmp 0x4a2547
mov eax, dword [ebp - 0x30]
mov esi, 3
mov ebx, dword [ebp - 0x20]
jmp 0x4a2541
mov ebx, dword [ebp - 0x20]
mov esi, 2
jmp 0x4a2547
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 1
mov dword [edi + 0xb0], eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x4a255b
push ebx
call fcn.00559c78
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0055929f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4a6360
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571538
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x5a800c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov edi, dword [ebp + 0x10]
mov ecx, edi
mov esi, dword [ebp + 0xc]
call fcn.00402520
mov eax, dword [eax + 0x10]
test eax, eax
je 0x4a63bd
cmp byte [ebp + 8], 0
jne 0x4a63c4
mov eax, dword [edx]
test eax, eax
je 0x4a6522
cmp byte [eax + 0xa5], 0
je 0x4a6522
xor al, al
jmp 0x4a6536
mov ecx, esi
call fcn.00402520
mov eax, dword [eax + 0x10]
test eax, eax
je 0x4a6522
call fcn.0041aa00
test al, al
je 0x4a63eb
push esi
push edi
call fcn.004a5f90
jmp 0x4a651e
push 0xb
mov ecx, esi
call fcn.004023c0
push eax
mov ecx, edi
call fcn.004023c0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4a640e
mov al, 1
jmp 0x4a651e
lea ecx, [ebp - 0x58]
mov byte [ebp - 0x59], 0
call fcn.00402410
mov dword [ebp - 4], 0
mov edx, ecx
mov ecx, edi
call fcn.0042cbb0
movzx ecx, byte [ebp - 0x59]
test al, al
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x40]
call fcn.00402410
mov byte [ebp - 4], dl
mov edx, ecx
mov ecx, esi
call fcn.0042cbb0
test al, al
jne 0x4a6458
cmp byte [ebp - 0x60], al
je 0x4a6498
push 0xb
lea ecx, [ebp - 0x40]
call fcn.004023c0
push eax
lea ecx, [ebp - 0x58]
call fcn.004023c0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4a6498
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00402400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00402400
mov al, 1
jmp 0x4a651e
mov ecx, esi
call fcn.0042c590
cmp eax, 0xffffffff
je 0x4a6501
push esi
lea ecx, [ebp - 0x28]
call fcn.00402430
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.0042c970
test al, al
je 0x4a64f5
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.0042c630
test al, al
je 0x4a64f5
mov edx, esi
mov ecx, edi
call fcn.0042c630
lea ecx, [ebp - 0x28]
test al, al
je 0x4a64ee
call fcn.0042c740
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00402400
jmp 0x4a6476
mov edx, esi
call fcn.0042c630
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00402400
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00402400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00402400
xor al, al
test al, al
jne 0x4a6534
mov ecx, edi
call fcn.0041aa00
test al, al
je 0x4a6534
mov ecx, edi
call fcn.0042c740
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055929f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4aa100
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x5a800c]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
mov dword [esp + 4], 0x114
push 0x110
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov byte [esi], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x4aa197
cmp dword [esp + 8], 6
jb 0x4aa197
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.0055929f
add esp, 0x118
ret

Function at 0x4aa1b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571b00
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x5a800c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.wintrust.dll
lea ecx, [ebp - 0x28]
call fcn.00404ba0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.00424480
mov ecx, eax
call fcn.00424540
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402400
push str.crypt32.dll
lea ecx, [ebp - 0x40]
call fcn.00404ba0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.00424480
mov ecx, eax
call fcn.00424540
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00402400
test ebx, ebx
je 0x4aa2c5
test esi, esi
je 0x4aa2c5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push ebx
call esi
push str.CryptCATAdminAcquireContext
push ebx
mov dword [edi + 4], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push ebx
mov dword [edi + 8], eax
call esi
push str.CryptCATCatalogInfoFromContext
push ebx
mov dword [edi + 0xc], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push ebx
mov dword [edi + 0x10], eax
call esi
push str.CryptCATAdminReleaseContext
push ebx
mov dword [edi + 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push ebx
mov dword [edi + 0x18], eax
call esi
push str.WTHelperGetProvSignerFromChain
push ebx
mov dword [edi + 0x1c], eax
call esi
push str.WinVerifyTrust
push ebx
mov dword [edi + 0x20], eax
call esi
push str.CertNameToStrW
push dword [ebp - 0x10]
mov dword [edi + 0x24], eax
call esi
mov dword [edi + 0x28], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b08b0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4b08bb
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.004b08d0
Function at 0x4e3e50
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov ebp, edx
push 0
push 0x14
mov dword [ebx], 0
call fcn.004b4fe0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4e3e78
lea eax, [esi + 7]
pop edi
pop esi
pop ebp
pop ebx
ret
cmp byte [0x5a806c], 0
mov edi, dword [esp + 0x14]
je 0x4e3ec1
mov eax, dword [0x5a815c]
test eax, eax
je 0x4e3e9c
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x4e3ec1
lea eax, [esi + 4]
mov dword [esi + 8], ebp
push eax
push 0
push esi
push 0x4b7ed0
push 0
push 0
mov dword [esi + 0xc], edi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x4e3ece
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x4e3ee6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi + 4], eax
call ebp
add esp, 4
mov dword [esi + 0x10], eax
pop edi
mov dword [ebx], esi
xor eax, eax
pop esi
pop ebp
pop ebx
ret
Function at 0x4f0cf0
Capabilities:
Reference sql statements

Disassembly:
push ebx
push edi
push dword [esp + 0xc]
mov edi, edx
mov ebx, ecx
push edi
push str.sqlite_master
push edi
push str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
push ebx
call fcn.004f5bc0
add esp, 0x18
cmp dword [esp + 0xc], 0
jne 0x4f0d2a
push edi
push str.sqlite_master
push str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
push ebx
call fcn.004f5bc0
add esp, 0x10
pop edi
pop ebx
ret

Function at 0x4f5cd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebx, ecx
mov ebp, edx
mov ecx, dword [esp + 0x14]
push esi
push edi
mov dword [esp + 0x10], ebx
xor esi, esi
cmp dword [ebx + 0x14], esi
jle 0x4f5d6b
nop
mov edi, esi
xor edi, 1
cmp esi, 2
cmovge edi, esi
test ecx, ecx
je 0x4f5d23
mov edx, edi
mov eax, ecx
mov ecx, dword [ebx + 0x10]
add edx, edx
mov ebx, dword [ecx + edx*8]
sub ebx, dword [esp + 0x1c]
nop
movzx edx, byte [eax]
movzx ecx, byte [ebx + eax]
cmp edx, ecx
jne 0x4f5d48
test edx, edx
jne 0x4f5d5a
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0x10]
add edi, edi
push 0
mov edx, ebp
mov ecx, dword [eax + edi*8 + 0xc]
add ecx, 8
call fcn.004b9ca0
add esp, 4
mov eax, dword [eax + 8]
test eax, eax
jne 0x4f5dca
jmp 0x4f5d61
movzx ecx, byte [ecx + 0x579d40]
movzx edx, byte [edx + 0x579d40]
sub edx, ecx
jne 0x4f5d5d
inc eax
jmp 0x4f5d10
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
inc esi
cmp esi, dword [ebx + 0x14]
jl 0x4f5cf0
mov edx, str.sqlite_master
sub edx, ebp
movzx ecx, byte [ebp]
movzx eax, byte [edx + ebp]
cmp ecx, eax
jne 0x4f5d96
test ecx, ecx
jne 0x4f5da8
mov eax, dword [ebx + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
test ecx, ecx
jne 0x4f5dab
neg eax
sbb eax, eax
jmp 0x4f5dba
movzx eax, byte [eax + 0x579d40]
movzx ecx, byte [ecx + 0x579d40]
sub ecx, eax
jne 0x4f5dc8
inc ebp
jmp 0x4f5d72
test eax, eax
je 0x4f5dc8
mov edx, eax
call fcn.004b8800
mov ecx, dword [esp + 0x1c]
test eax, eax
jne 0x4f5dc8
mov ebp, str.sqlite_temp_master
jmp 0x4f5ce3
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x4f6110
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x10
mov eax, ecx
mov dword [esp + 4], edx
push ebx
push edi
xor ebx, ebx
mov dword [esp + 0x10], eax
xor edi, edi
cmp dword [eax + 0x14], ebx
jle 0x4f61aa
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov eax, dword [eax + 0x10]
mov esi, edi
xor esi, 1
cmp edi, 2
cmovge esi, edi
shl esi, 4
add esi, eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x4f6169
mov esi, dword [esi]
mov eax, ebp
sub esi, ebp
movzx edx, byte [eax]
movzx ecx, byte [esi + eax]
cmp edx, ecx
jne 0x4f6195
test edx, edx
jne 0x4f61a7
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea ecx, [eax + 0x18]
push 0
call fcn.004b9ca0
add esp, 4
mov ebx, dword [eax + 8]
test ebx, ebx
jne 0x4f618b
mov eax, dword [esp + 0x18]
inc edi
cmp edi, dword [eax + 0x14]
jl 0x4f6132
pop esi
pop ebp
pop edi
mov eax, ebx
pop ebx
add esp, 0x10
ret
movzx ecx, byte [ecx + 0x579d40]
movzx edx, byte [edx + 0x579d40]
sub edx, ecx
jne 0x4f6181
inc eax
jmp 0x4f6156
pop edi
mov eax, ebx
pop ebx
add esp, 0x10
ret
Function at 0x54c800
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x74
push ebx
push ebp
push esi
push edi
push 0x38
xorps xmm0, xmm0
lea eax, [esp + 0x4c]
mov ebp, edx
movlpd qword [esp + 0x2c], xmm0
mov ebx, ecx
mov dword [esp + 0x20], ebp
push 0
movups xmmword [esp + 0x40], xmm0
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x50], 0x13
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x48]
mov edx, ebp
mov ecx, ebx
push eax
push 1
push 0
push 0
push 0
push 0xfffffffffffffffe
push dword [esp + 0xa0]
call fcn.0053cc60
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x54c9de
push dword [esp + 0x3c]
lea eax, [esp + 0x3c]
mov ecx, ebx
push dword [esp + 0x3c]
lea edx, [esp + 0x50]
mov dword [esp + 0x5c], eax
call fcn.005482f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x54c9de
lea edx, [esp + 0x48]
mov ecx, ebx
call fcn.00548410
mov esi, eax
cmp esi, 0x64
jne 0x54c9de
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebp
mov edi, dword [esp + 0x78]
lea edx, [esp + 0x20]
mov ebp, dword [esp + 0x7c]
xorps xmm0, xmm0
mov ecx, edi
movlpd qword [esp + 0x20], xmm0
add ebp, edi
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x28], xmm0
call fcn.00538eb0
lea esi, [edi + eax]
cmp esi, ebp
jae 0x54c9be
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
xorps xmm0, xmm0
lea edx, [esp + 0x20]
mov ecx, esi
movlpd qword [esp + 0x20], xmm0
call fcn.00538eb0
add esi, eax
cmp esi, ebp
jae 0x54c9ba
mov ecx, dword [esp + 0x20]
mov eax, ecx
mov edx, dword [esp + 0x24]
or eax, edx
je 0x54c966
cmp ecx, 1
jne 0x54c926
test edx, edx
je 0x54c966
mov eax, dword [esp + 0x28]
add ecx, 0xfffffffe
adc edx, 0xffffffff
add eax, ecx
mov ecx, dword [esp + 0x70]
adc dword [esp + 0x2c], edx
mov edx, dword [esp + 0x74]
push eax
push dword [esp + 0x34]
mov dword [esp + 0x30], eax
push edi
push ebx
push dword [esp + 0x98]
push dword [esp + 0x30]
call fcn.0054c750
xor dword [esp + 0x2c], eax
add esp, 0x18
xor dword [esp + 0x10], edx
jmp 0x54c9b2
xorps xmm0, xmm0
or ecx, edx
movlpd qword [esp + 0x30], xmm0
mov ecx, esi
movlpd qword [esp + 0x28], xmm0
je 0x54c988
lea edx, [esp + 0x30]
call fcn.00538eb0
add esi, eax
jmp 0x54c9b2
lea edx, [esp + 0x20]
call fcn.00538eb0
add esi, eax
mov eax, dword [esp + 0x18]
cmp byte [eax + 0xef], 0
je 0x54c9aa
sub ebx, dword [esp + 0x20]
sbb edi, dword [esp + 0x24]
jmp 0x54c9b2
add ebx, dword [esp + 0x20]
adc edi, dword [esp + 0x24]
cmp esi, ebp
jb 0x54c8f1
mov ebx, dword [esp + 0x18]
lea edx, [esp + 0x48]
mov ecx, ebx
call fcn.00548410
mov esi, eax
cmp esi, 0x64
je 0x54c8b4
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
jmp 0x54c9e6
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
lea ecx, [esp + 0x48]
call fcn.00548b70
mov ecx, dword [esp + 0x8c]
mov edx, edi
pop edi
mov eax, ebp
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
Function at 0x556f80
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov ebx, edx
mov dword [esp + 0x10], str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
mov esi, ecx
mov dword [esp + 0x14], str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
push edi
mov edi, dword [esi + ebx*4 + 0x18]
test edi, edi
jne 0x556fbc
push dword [esi + 8]
push dword [esi + 4]
push dword [esp + ebx*4 + 0x1c]
push esi
call fcn.00556ea0
mov edi, eax
add esp, 0x10
mov dword [esi + ebx*4 + 0x18], edi
cmp dword [esi + 0x28], 0
jne 0x55707c
mov ebp, dword [esp + 0x24]
push ebp
push dword [esp + 0x24]
push 1
push edi
call fcn.004db380
push edi
call fcn.004da090
add esp, 0x14
cmp eax, 0x65
jne 0x557013
mov ecx, str.__parent
test ebx, ebx
mov eax, str.__rowid
cmove eax, ecx
mov ecx, dword [esp + 0x20]
push eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push ebp
push ecx
push str.Mapping___lld_____lld__missing_from__s_table
push esi
call fcn.00556f20
add esp, 0x1c
jmp 0x55706a
cmp eax, 0x64
jne 0x55706a
push 0
push edi
call fcn.004da9f0
mov ecx, dword [esp + 0x34]
add esp, 8
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x28]
jne 0x557035
cmp edx, ecx
je 0x55706a
push ecx
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
test ebx, ebx
push ebp
push ecx
mov eax, str.__rowid
mov dword [esp + 0x20], str.__parent
cmove eax, dword [esp + 0x20]
push eax
push edx
push dword [esp + 0x2c]
push ebp
push ecx
push str.Found___lld_____lld__in__s_table__expected___lld_____lld_
push esi
call fcn.00556f20
add esp, 0x2c
push edi
call fcn.004d9090
add esp, 4
cmp dword [esi + 0x28], 0
jne 0x55707c
mov dword [esi + 0x28], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x401000
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x403004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push 0x402038
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40106b
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
je 0x401064
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0040107e
mov esp, ebp
pop ebp
ret 0x10

Function at 0xe65adc
Capabilities:
Encode data using xor

Disassembly:
jmp 0xe65ae6
pushal
call 0xe65aec
pop ebp
sub ebp, 0x10
sub ebp, 0xa65adc
jmp 0xe65b02
mov eax, 0xa65adc
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c8
mov edx, 0xfe5a2f21
xor byte [eax], dl
inc eax
dec ecx
jne 0xe65b19
jmp 0xe65b2c
stosb byte es:[edi], al
in al, dx
stosb byte es:[edi], al
test al, 0x1d
and dword [ecx], esp
and dword [eax + 0x2121d9e0], esp
and dword [edx], esp
in al, dx
cdq
daa
and dword [ecx], esp
and dword [ebx + 0x21212109], ebx
salc
ret
Function at 0x404900
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push ebx
push 0x40
push 0
push esi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
jne 0x40491f
mov eax, 1
pop ebx
pop ebp
ret
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x4049cb
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4049cb
push edi
push ebx
push 0xf8
push eax
lea edi, [esi + 0x40]
push edi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
jne 0x404957
pop edi
mov eax, 1
pop ebx
pop ebp
ret
cmp dword [edi], 0x4550
jne 0x4049c2
mov ecx, 0x10b
cmp word [esi + 0x58], cx
jne 0x4049c2
movzx eax, word [esi + 0x46]
test ax, ax
je 0x4049c2
lea edi, [eax + eax*4]
add edi, edi
add edi, edi
add edi, edi
push edi
mov dword [esi + 0x140], edi
call fcn.0042c44b
add esp, 4
mov dword [esi + 0x138], eax
test eax, eax
jne 0x40499e
pop edi
mov eax, 3
pop ebx
pop ebp
ret
movzx edx, word [esi + 0x54]
mov ecx, dword [esi + 0x3c]
push ebx
lea ecx, [edx + ecx + 0x18]
push edi
push ecx
push eax
mov dword [esi + 0x13c], ecx
call dword [ebp + 8]
add esp, 0x10
neg eax
sbb eax, eax
pop edi
inc eax
pop ebx
pop ebp
ret
pop edi
mov eax, 2
pop ebx
pop ebp
ret
mov eax, 2
pop ebx
pop ebp
ret