joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408e60
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push ebp
push ebp
push 3
push ebp
push 3
push 0x80000000
push eax
xor esi, esi
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], 0x1388
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408ff1
push ebp
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
lea edi, [esp + 0x24]
mov esi, eax
call fcn.00465e10
mov edi, dword [esp + 0x24]
push ebp
lea ecx, [esp + 0x18]
push ecx
push esi
push edi
push ebx
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
cmp esi, 4
jb 0x408ed6
mov eax, 4
lea ecx, [eax + 0x10]
cmp ecx, esi
ja 0x408edf
mov eax, ecx
lea edx, [eax + 4]
cmp edx, esi
ja 0x408ef3
mov ecx, dword [eax + edi]
mov eax, edx
add ecx, eax
cmp ecx, esi
ja 0x408ef3
mov eax, ecx
lea ecx, [eax + 8]
cmp ecx, esi
ja 0x408efc
mov eax, ecx
lea ecx, [eax + 4]
cmp ecx, esi
ja 0x408f05
mov eax, ecx
lea ecx, [eax + 4]
cmp ecx, esi
ja 0x408f0e
mov eax, ecx
lea ecx, [eax + 0x10]
cmp ecx, esi
ja 0x408f17
mov eax, ecx
lea ecx, [eax + 0x10]
cmp ecx, esi
ja 0x408f20
mov eax, ecx
lea ecx, [eax + 4]
cmp ecx, esi
ja 0x408fe2
mov eax, dword [eax + edi]
lea edx, [ecx + edi]
add ecx, eax
cmp esi, ecx
sbb ebx, ebx
add ebx, 1
cmp ebx, ebp
je 0x408fe4
cmp eax, ebp
jbe 0x408fe4
cmp edx, ebp
je 0x408fe4
mov dword [esp + 0x20], edx
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x20], eax
push ebp
lea eax, [esp + 0x24]
push eax
mov eax, 0x48d1b8
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call fcn.00474e90
mov ebx, eax
cmp ebx, ebp
je 0x408fc9
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
push esi
mov ecx, edi
mov eax, ebp
call fcn.00408dd0
mov ebx, eax
test ebx, ebx
jne 0x408fbc
add esi, 0xbc
call fcn.00465e70
mov ecx, dword [esi]
push edi
push ebp
push ecx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x40]
add esp, 0xc
mov dword [edx + 0x50], 0xffffffeb
push ebp
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov edi, dword [esp + 0x24]
xor ebp, ebp
cmp edi, ebp
je 0x408fd6
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
xor ebx, ebx
mov eax, dword [esp + 0x34]
mov dword [eax + 0x50], 0xffffffec
jmp 0x408fc9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [esp + 0x34]
pop edi
mov dword [ecx + 0x50], eax
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x409010
Capabilities:
Acquire credentials from windows credential manager
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x2de8
call fcn.0047aea0
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2dfc]
xor ebp, ebp
cmp word [edi], bp
mov dword [esp + 0x14], ecx
je 0x409256
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409256
push edi
push 0x48594c
call fcn.00460220
add esp, 8
push edi
lea eax, [esp + 0x1150]
push str..vcrd
lea ebx, [esp + 0x1150]
mov dword [esp + 0x1150], 0xffffffff
mov word [esp + 0x1154], bp
mov word [esp + 0x1ba8], bp
mov word [esp + 0x17a8], bp
mov dword [esp + 0x1554], eax
call fcn.00466830
mov esi, ebx
call fcn.00466780
test eax, eax
je 0x40918f
push 0x208
lea ecx, [esp + 0xe6]
push ebp
push ecx
mov word [esp + 0xec], bp
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x104
push str.Policy.vpol
lea eax, [esp + 0xe8]
mov ecx, edi
call fcn.00468830
add esp, 8
lea edx, [esp + 0xe0]
push edx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40918f
lea eax, [esp + 0x18]
call fcn.004089f0
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0xe4]
call fcn.00408e60
test eax, eax
je 0x409186
lea eax, [esp + 0x1fa0]
call fcn.00466000
push edi
push str..vcrd
mov ebx, eax
call fcn.00466830
mov esi, ebx
call fcn.00466780
test eax, eax
je 0x40917a
jmp 0x409140
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x25f8]
push ecx
push esi
call fcn.00408a90
test eax, eax
je 0x40916a
mov edx, dword [esi]
mov edx, dword [edx]
lea eax, [esp + 0x25f8]
push eax
lea ecx, [esi + 0x54]
push ecx
mov ecx, esi
call edx
lea esi, [esp + 0x1fa0]
call fcn.00466780
test eax, eax
jne 0x409140
lea esi, [esp + 0x1fa0]
call fcn.00465fe0
lea esi, [esp + 0x18]
call fcn.004089b0
push edi
lea eax, [esp + 0x2f8]
push 0x47c970
lea ebx, [esp + 0x2f8]
mov dword [esp + 0x2f8], 0xffffffff
mov word [esp + 0x2fc], bp
mov word [esp + 0xd50], bp
mov word [esp + 0x950], bp
mov dword [esp + 0x6fc], eax
call fcn.00466830
mov esi, ebx
call fcn.00466780
test eax, eax
je 0x409227
mov bl, 0x10
mov edi, 0x400
test byte [esp + 0x6f8], bl
je 0x409217
test dword [esp + 0x6f8], edi
jne 0x409217
lea esi, [esp + 0x724]
call fcn.00467780
test eax, eax
jne 0x409217
lea ecx, [esp + 0x948]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.00409010
lea esi, [esp + 0x2f0]
call fcn.00466780
test eax, eax
jne 0x4091e4
mov eax, dword [esp + 0x2f0]
cmp eax, 0xffffffff
mov esi, dword [sym.imp.KERNEL32.DLL_FindClose]
je 0x409247
push eax
call esi
mov dword [esp + 0x2f0], 0xffffffff
mov eax, dword [esp + 0x1148]
cmp eax, 0xffffffff
je 0x409256
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2de8
ret 4

Function at 0x40d9d0
Capabilities:
Encode data using xor

Disassembly:
mov cl, byte [edx]
xor eax, eax
test cl, cl
je 0x40d9ff
push esi
lea esp, [esp]
movzx ecx, cl
movzx ecx, byte [ecx + 0x480a60]
lea esi, [eax*8]
xor ecx, esi
add edx, 1
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x40d9e0
pop esi
ret
Function at 0x417030
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
lea ecx, [eax*8]
cmp ecx, 0x400
push ebp
push esi
jbe 0x41704d
mov eax, 0x80
cmp eax, dword [edi]
jne 0x417059
xor eax, eax
pop esi
pop ebp
add esp, 8
ret
lea edx, [eax*8]
push 0
push edx
call fcn.00415c30
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 8], esi
je 0x417051
mov eax, dword [edi + 0xc]
push eax
call fcn.00412080
add esp, 4
push esi
mov dword [edi + 0xc], esi
call dword [0x488038]
mov ebp, eax
shr ebp, 3
add esp, 4
lea ecx, [ebp*8]
push ecx
push 0
push esi
mov dword [esp + 0x20], ebp
mov dword [edi], ebp
call sub.msvcrt.dll_memset
mov ecx, dword [edi + 8]
add esp, 0xc
test ecx, ecx
mov dword [edi + 8], 0
je 0x41715e
mov edi, edi
mov esi, dword [ecx + 0xc]
mov dl, byte [esi]
xor eax, eax
test dl, dl
je 0x4170ed
movzx edx, dl
movzx edx, byte [edx + 0x480a60]
lea ebp, [eax*8]
xor edx, ebp
add esi, 1
xor eax, edx
mov dl, byte [esi]
test dl, dl
jne 0x4170cb
mov ebp, dword [esp + 0x14]
mov edx, dword [ecx]
mov dword [esp + 0xc], edx
xor edx, edx
div ebp
mov eax, dword [esp + 8]
lea eax, [eax + edx*8]
test eax, eax
je 0x417139
mov esi, dword [eax]
test esi, esi
je 0x41710d
mov edx, dword [eax + 4]
jmp 0x41710f
xor edx, edx
add esi, 1
test edx, edx
mov dword [eax], esi
mov dword [eax + 4], ecx
je 0x417139
mov dword [ecx], edx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 4]
test eax, eax
je 0x417131
mov dword [eax], ecx
mov dword [edx + 4], ecx
jmp 0x417152
mov dword [edi + 8], ecx
mov dword [edx + 4], ecx
jmp 0x417152
mov edx, dword [edi + 8]
mov dword [ecx], edx
mov eax, dword [edi + 8]
test eax, eax
je 0x417148
mov dword [eax + 4], ecx
mov dword [ecx + 4], 0
mov dword [edi + 8], ecx
mov ecx, dword [esp + 0xc]
test ecx, ecx
jne 0x4170c0
pop esi
mov eax, 1
pop ebp
add esp, 8
ret

Function at 0x417170
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
mov dword [eax], 0
cmp dword [0x488008], 0
push esi
je 0x4171d3
mov eax, dword [0x48d140]
test eax, eax
je 0x4171a0
push eax
call dword [0x48805c]
add esp, 4
lea ebx, [esp + 0x10]
mov eax, 0x14
call fcn.00414d00
mov eax, dword [0x48d140]
test eax, eax
je 0x4171c1
push eax
call dword [0x488064]
add esp, 4
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x4171e2
lea eax, [esi + 7]
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 0x14
call dword [0x48802c]
add esp, 4
mov esi, eax
jmp 0x4171c5
cmp dword [0x48800c], 0
je 0x41720f
lea ecx, [esi + 4]
push ecx
push 0
push esi
push 0x40e330
push 0
push 0
mov dword [esi + 8], ebp
mov dword [esi + 0xc], edi
call sub.msvcrt.dll__beginthreadex
add esp, 0x18
test eax, eax
mov dword [esi], eax
jne 0x41721f
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 0x417237
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push edi
mov dword [esi + 4], eax
call ebp
add esp, 4
mov dword [esi + 0x10], eax
mov edx, dword [esp + 0x18]
mov dword [edx], esi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x41a640
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x41a6ad
mov esi, dword [ebp + 8]
test esi, esi
je 0x41a660
cmp byte [esi + 0x41], 0
jne 0x41a6ad
cmp dword [0x488008], 0
je 0x41a6b6
mov eax, dword [0x48d140]
test eax, eax
je 0x41a67c
push eax
call dword [0x48805c]
add esp, 4
lea ebx, [esp + 0x10]
mov eax, 8
call fcn.00414d00
mov eax, dword [0x48d140]
test eax, eax
je 0x41a69d
push eax
call dword [0x488064]
add esp, 4
mov ebx, dword [esp + 0x10]
test ebx, ebx
jne 0x41a6c9
test esi, esi
je 0x41a6ad
mov byte [esi + 0x41], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 8
call dword [0x48802c]
mov ebx, eax
add esp, 4
mov dword [esp + 0x10], ebx
jmp 0x41a6a1
test byte [ebp + 0x10], 1
mov eax, dword [edi]
mov dword [ebx], eax
jne 0x41a6e6
mov ecx, dword [edi]
mov eax, 1
cmp ecx, eax
jle 0x41a6e6
mov edi, edi
add eax, eax
cmp eax, ecx
jl 0x41a6e0
test esi, esi
je 0x41a6f4
cmp byte [esi + 0x41], 0
je 0x41a6f4
xor edi, edi
jmp 0x41a716
lea eax, [eax + eax*2]
add eax, eax
add eax, eax
add eax, eax
push 0
push eax
call fcn.00415c30
add esp, 8
test eax, eax
jne 0x41a714
test esi, esi
je 0x41a714
mov byte [esi + 0x41], 1
mov edi, eax
test edi, edi
mov dword [ebx + 4], edi
jne 0x41a74b
test esi, esi
je 0x41a739
cmp dword [esi + 0x1d8], edi
je 0x41a739
mov eax, ebx
call fcn.00414ce0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00412080
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx + 4]
mov edx, ecx
cmp dword [edx], 0
mov dword [esp + 0x14], 0
jle 0x41a7cf
mov ecx, dword [ebp + 0x10]
mov eax, dword [esi]
mov edx, dword [ebp + 8]
push 0
push ecx
push eax
push edx
call fcn.0041a7e0
mov dword [edi], eax
mov ebx, dword [esi + 4]
mov eax, dword [ebp + 8]
add esp, 0x10
call fcn.00419f20
mov dword [edi + 4], eax
mov ebx, dword [esi + 8]
mov eax, dword [ebp + 8]
call fcn.00419f20
mov dword [edi + 8], eax
mov al, byte [esi + 0xc]
and dword [edi + 0x10], 0xfffffffe
mov byte [edi + 0xc], al
mov eax, dword [edi + 0x10]
mov ecx, dword [esi + 0x10]
xor ecx, eax
and ecx, 2
xor ecx, eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x10], ecx
mov edx, dword [esi + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0x14], edx
add eax, 1
add edi, 0x18
add esi, 0x18
cmp eax, dword [ecx]
mov dword [esp + 0x14], eax
jl 0x41a760
mov ebx, dword [esp + 0x10]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42cb80
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, eax
movzx ecx, word [edi + 0x12]
movzx edx, word [edi + 0xe]
movzx eax, byte [edi + 6]
mov esi, dword [edi + 0x38]
lea ebp, [edx + ecx*2]
xor ebx, ebx
mov bh, byte [esi + eax + 5]
lea ecx, [esi + eax + 5]
lea edx, [esi + eax + 6]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov bl, byte [edx]
cmp ebp, ebx
jle 0x42cbf9
test ebx, ebx
jne 0x42cbd0
mov ecx, dword [edi + 0x34]
mov ebx, 0x10000
cmp dword [ecx + 0x24], ebx
je 0x42cbf9
push 0x485634
push 0xd837
push str.database_corruption_at_line__d_of___.10s_
mov ecx, 0xb
call fcn.004275c0
add esp, 0xc
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
cmp byte [esi + eax + 2], 0
jne 0x42cc07
cmp byte [esi + eax + 1], 0
je 0x42cc3f
lea edx, [ebp + 2]
cmp edx, ebx
jg 0x42cc3f
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
push ecx
push edi
call fcn.0042a510
add esp, 0xc
test eax, eax
je 0x42cc37
mov edx, dword [esp + 0x24]
sub eax, esi
mov dword [edx], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x42cc89
mov esi, dword [esp + 0x20]
lea eax, [esi + ebp + 2]
cmp eax, ebx
jle 0x42cc6e
call fcn.0042a640
test eax, eax
jne 0x42cc89
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
xor ebx, ebx
mov bh, byte [ecx]
mov bl, byte [edx]
sub ebx, 1
and ebx, 0xffff
add ebx, 1
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub ebx, esi
mov eax, ebx
sar eax, 8
mov byte [ecx], al
mov eax, dword [esp + 0x24]
mov dword [eax], ebx
mov byte [edx], bl
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x440ad0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0x44], 0
push esi
push edi
mov dword [esp + 0x10], 0
jl 0x440b95
lea edi, [ebx + 0x78]
mov dword [esp + 0x14], edi
mov eax, dword [edi]
test eax, eax
je 0x440b71
mov eax, dword [eax + 0x48]
test byte [eax + 0x18], 0x40
mov esi, dword [eax + 0x10]
je 0x440b51
add dword [esi + 0x78], 0xffffffff
mov ecx, dword [esi + 0x88]
mov dword [eax + 0xc], ecx
mov edi, dword [esi + 0x3c]
mov dword [esi + 0x88], eax
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0x14]
mov eax, dword [esi + 0x98]
mov ebx, dword [edi]
push edx
cdq
push edx
push eax
sub ecx, 1
push 0
push ecx
call fcn.0047ad90
push edx
mov edx, dword [ebx + 0x48]
push eax
push edi
call edx
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 0x24]
add esp, 0x10
jmp 0x440b56
call fcn.004115d0
cmp dword [esi + 0x78], 0
jne 0x440b71
mov eax, dword [esi + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x440b71
push esi
call fcn.0043d440
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [edi], 0
movsx ecx, byte [ebx + 0x44]
add eax, 1
add edi, 4
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
jle 0x440af8
pop edi
pop esi
mov byte [ebx + 0x44], 0xff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x447da0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov al, byte [edi + 0x42]
push ebx
xor ebx, ebx
cmp al, 3
push esi
mov dword [esp + 0xc], ebx
jb 0x447dd7
cmp al, 4
jne 0x447dc5
mov eax, dword [edi + 0x3c]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x30]
push eax
call fcn.00412080
add esp, 4
mov dword [edi + 0x30], ebx
mov byte [edi + 0x42], bl
mov al, byte [edi + 0x44]
cmp al, bl
jl 0x447ea0
je 0x447ee6
jmp 0x447df0
mov al, byte [edi + 0x44]
movsx ecx, al
mov ecx, dword [edi + ecx*4 + 0x78]
sub al, 1
mov byte [edi + 0x44], al
mov eax, dword [ecx + 0x48]
test byte [eax + 0x18], 0x40
mov esi, dword [eax + 0x10]
je 0x447e50
add dword [esi + 0x78], 0xffffffff
mov edx, dword [esi + 0x88]
mov dword [eax + 0xc], edx
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x88], eax
mov ebx, dword [ecx]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [eax + 0x14]
mov eax, dword [esi + 0x98]
cdq
push edx
push eax
sub ecx, 1
push 0
push ecx
call fcn.0047ad90
push edx
mov edx, dword [ebx + 0x48]
push eax
mov eax, dword [esi + 0x3c]
push eax
call edx
add esp, 0x10
xor ebx, ebx
jmp 0x447e55
call fcn.004115d0
cmp dword [esi + 0x78], ebx
jne 0x447e95
mov eax, dword [esi + 0xcc]
cmp dword [eax + 0xc], ebx
jne 0x447e95
mov al, byte [esi + 0x10]
cmp al, 6
je 0x447e8e
cmp al, bl
je 0x447e8e
cmp al, 2
jb 0x447e7d
mov eax, esi
call fcn.0043cbe0
jmp 0x447e8e
cmp byte [esi + 4], bl
jne 0x447e8e
push ebx
push ebx
mov eax, esi
call fcn.00416a50
add esp, 8
mov eax, esi
call fcn.00419410
cmp byte [edi + 0x44], bl
jne 0x447df0
jmp 0x447ee6
mov eax, dword [edi + 0x34]
cmp eax, ebx
jne 0x447eb2
mov byte [edi + 0x42], bl
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, byte [edi + 0x41]
mov edx, dword [edi]
push ecx
mov ecx, dword [edx + 4]
push ebx
lea esi, [edi + 0x78]
push esi
push ecx
call fcn.004409d0
add esp, 0x10
cmp eax, ebx
mov dword [esp + 0xc], eax
je 0x447edb
mov byte [edi + 0x42], bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi]
mov byte [edi + 0x44], bl
mov al, byte [edx + 2]
mov byte [edi + 0x45], al
mov eax, dword [edi + 0x78]
cmp byte [eax], bl
je 0x447f6b
movzx edx, byte [eax + 2]
xor ecx, ecx
cmp dword [edi + 0x48], ebx
sete cl
cmp ecx, edx
jne 0x447f6b
and byte [edi + 0x40], 0xf1
mov word [edi + 0x50], bx
mov word [edi + 0x24], bx
cmp word [eax + 0x12], bx
jbe 0x447f1d
mov byte [edi + 0x42], 1
mov eax, dword [esp + 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [eax + 5], bl
jne 0x447f5e
cmp dword [eax + 0x54], 1
je 0x447f38
mov eax, 0xe55e
call fcn.004276b0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, byte [eax + 6]
mov edx, dword [eax + 0x38]
mov eax, dword [ecx + edx + 8]
bswap eax
push eax
mov eax, edi
mov byte [edi + 0x42], 1
call fcn.00443ef0
add esp, 4
mov dword [esp + 0xc], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [edi + 0x42], bl
mov eax, dword [esp + 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x485634
push 0xe553
push str.database_corruption_at_line__d_of___.10s_
mov ecx, 0xb
call fcn.004275c0
add esp, 0xc
pop esi
mov eax, 0xb
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x449090
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 0x34]
mov esi, dword [ebx + 0x48]
push edi
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
call fcn.004303c0
mov esi, eax
test esi, esi
jne 0x4490f3
mov ecx, dword [ebx + 0x54]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.00447890
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push edi
mov dword [esp + 0x28], eax
call fcn.0042ff40
mov esi, dword [esp + 0x28]
add esp, 0x18
test esi, esi
je 0x449140
test edi, edi
mov eax, dword [ebp + 8]
mov dword [eax], 0
je 0x449137
mov edi, dword [edi + 0x48]
test byte [edi + 0x18], 0x40
mov ebx, dword [edi + 0x10]
je 0x449115
mov ecx, edi
call fcn.00410c10
jmp 0x44911c
mov eax, edi
call fcn.004115d0
cmp dword [ebx + 0x78], 0
jne 0x449137
mov ecx, dword [ebx + 0xcc]
cmp dword [ecx + 0xc], 0
jne 0x449137
push ebx
call fcn.0043d440
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx edx, byte [ebx + 1]
add edx, edx
push edx
lea eax, [ebx + 0x16]
push eax
lea ecx, [edi + 0x16]
push ecx
call sub.msvcrt.dll_memcpy
movzx edx, byte [ebx + 1]
add edx, edx
add esp, 0xc
add edx, edx
push edx
lea eax, [ebx + 0x20]
push eax
lea ecx, [edi + 0x20]
push ecx
call sub.msvcrt.dll_memcpy
mov dl, byte [ebx + 1]
mov byte [edi + 1], dl
mov eax, dword [edi + 0x38]
movzx ecx, byte [eax]
and ecx, 0xfffffff7
add esp, 0xc
push ecx
mov esi, ebx
call fcn.0042c830
movzx eax, byte [ebx + 6]
mov edx, dword [esp + 0x18]
mov ecx, dword [ebx + 0x38]
bswap edx
mov dword [eax + ecx + 8], edx
mov edx, dword [ebp + 8]
add esp, 4
mov dword [edx], edi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44b0d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [ebx + 4]
mov edx, dword [eax + 0x24]
add edx, edx
mov eax, 0xaaaaaaab
mul edx
xor ecx, ecx
push esi
shr edx, 1
push edi
mov dword [esp + 8], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
jmp 0x44b104
mov edx, dword [esp + 0x10]
movsx esi, byte [ebx + 0x44]
test esi, esi
mov eax, dword [ebx + esi*4 + 0x78]
mov dword [esp + 0x1c], eax
jne 0x44b149
cmp byte [eax + 1], 0
je 0x44b293
lea ecx, [ebx + 0x7c]
push ecx
call fcn.00449090
xor ecx, ecx
add esp, 4
cmp eax, ecx
mov dword [esp + 8], eax
jne 0x44b293
mov byte [ebx + 0x44], 1
mov word [ebx + 0x50], cx
mov word [ebx + 0x52], cx
jmp 0x44b288
cmp byte [eax + 1], 0
jne 0x44b15b
movzx eax, word [eax + 0x10]
cmp eax, edx
jle 0x44b293
mov eax, dword [ebx + esi*4 + 0x74]
movzx ecx, word [ebx + esi*2 + 0x4e]
mov edi, dword [eax + 0x48]
test byte [edi + 0x18], 4
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x18], ecx
je 0x44b1a0
mov edx, dword [eax + 0x18]
cmp edx, dword [edi + 0x14]
jb 0x44b1a0
cmp dword [eax + 0x60], 0
je 0x44b1c8
mov ecx, edi
call fcn.00411220
test eax, eax
je 0x44b19c
push edi
call fcn.0041ea80
add esp, 4
jmp 0x44b1c0
xor eax, eax
jmp 0x44b1c0
mov ecx, dword [eax + 0x94]
cmp ecx, dword [eax + 0x98]
jbe 0x44b1b9
push edi
call fcn.0042cfd0
add esp, 4
jmp 0x44b1c0
mov eax, edi
call fcn.00421960
test eax, eax
mov dword [esp + 8], eax
jne 0x44b20d
mov edx, dword [ebx + 4]
mov edi, dword [edx + 0x20]
call fcn.00416e50
mov edx, dword [esp + 0x14]
mov edi, eax
movzx eax, byte [ebx + 0x43]
xor ecx, ecx
and eax, 1
cmp esi, 1
sete cl
push eax
push ecx
mov ecx, dword [esp + 0x20]
push edi
push edx
call fcn.004491b0
mov esi, dword [esp + 0x1c]
add esp, 0x10
test esi, esi
mov dword [esp + 8], eax
je 0x44b209
call fcn.004145c0
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x1c]
mov byte [eax + 1], 0
mov eax, dword [eax + 0x48]
test byte [eax + 0x18], 0x40
mov edi, dword [eax + 0x10]
je 0x44b264
add dword [edi + 0x78], 0xffffffff
mov ecx, dword [edi + 0x88]
mov dword [eax + 0xc], ecx
mov ecx, dword [edi + 0x3c]
mov dword [edi + 0x88], eax
mov esi, dword [ecx]
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0x14]
mov eax, dword [edi + 0x98]
push edx
cdq
push edx
push eax
sub ecx, 1
push 0
push ecx
call fcn.0047ad90
push edx
mov edx, dword [esi + 0x48]
push eax
mov eax, dword [edi + 0x3c]
push eax
call edx
add esp, 0x10
jmp 0x44b269
call fcn.004115d0
cmp dword [edi + 0x78], 0
jne 0x44b284
mov eax, dword [edi + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x44b284
push edi
call fcn.0043d440
add esp, 4
add byte [ebx + 0x44], 0xff
cmp dword [esp + 8], 0
je 0x44b100
mov esi, dword [esp + 0xc]
test esi, esi
je 0x44b2a0
call fcn.004145c0
mov eax, dword [esp + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret