joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c6a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5c2b80]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
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 - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45c72b
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x45c6ed
cmp eax, 2
jne 0x45c709
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x45c725
test ecx, ecx
je 0x45c720
test cl, 1
jne 0x45c709
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x45c725
pop edi
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052ab62
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0052ab62
mov esp, ebp
pop ebp
ret 0xc

Function at 0x45c9f0
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b6b0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5c2b80]
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 ecx, 0x5923f0
mov dword [ebp - 0x14], 0
xor bl, bl
call fcn.004f06e0
push eax
lea ecx, [ebp - 0x14]
call fcn.00457210
mov dword [ebp - 4], 0
mov ecx, 0x592410
call fcn.004f06e0
push eax
lea ecx, [ebp - 0x1c]
call fcn.00457210
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
push ecx
push 0x2001f
push 0
push dword [eax]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
sete bh
mov byte [ebp - 4], bl
or edi, 0xffffffff
mov edx, dword [ebp - 0x1c]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x45ca94
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bh, bh
je 0x45cac5
mov eax, dword [ebp - 0x14]
push 5
push eax
push 1
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
test eax, eax
jne 0x45cabc
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov bl, 1
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x45cae6
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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.0052ab62
mov esp, ebp
pop ebp
ret
Function at 0x45f840
Capabilities:
Get file size

Disassembly:
push esi
push edi
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push ecx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45f866
pop edi
xor eax, eax
pop esi
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
ret
Function at 0x45fd50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x5c2b80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push dword [ecx]
mov edi, edx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x45fdca
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [edi]
lea ecx, [ebp - 8]
push 0
push ecx
mov dword [ebp - 8], 0
push dword [eax - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45fdc3
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052ab62
mov esp, ebp
pop ebp
ret

Function at 0x460000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54c120
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x5c2b80]
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 dword [ebp - 4], 0
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x460057
xor bl, bl
jmp 0x4600bc
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
mov edx, 1
mov dword [ebp - 0x14], 0
sub edx, dword [eax - 4]
mov ecx, dword [eax - 8]
or ecx, edx
mov esi, dword [eax - 0xc]
jge 0x46008d
push 0
lea ecx, [ebp + 8]
call fcn.00456e30
mov eax, dword [ebp + 8]
push 0
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [esi + esi]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 1
sete bl
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4600e0
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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.0052ab62
mov esp, ebp
pop ebp
ret
Function at 0x464040
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54cb12
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5c2b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.0052a3a7
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [ebp - 4], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [ebp - 4], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [ebp - 4], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x464102
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.0052c54c
mov byte [ebp - 4], 7
mov dword [ebp - 0x24], vtable.std::runtime_error.0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x24]
push 0x5bc8a0
push eax
call fcn.00531e77
push edi
push esi
call fcn.0052a63d
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, esi
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.0052ab62
mov esp, ebp
pop ebp
ret 4
Function at 0x470960
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e898
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5c2b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], edx
mov esi, ecx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0xb
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x5931b4
mov byte [ecx], 0
call fcn.004562f0
mov dword [ebp - 4], 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x18], esp
push 8
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.Kernel32
mov byte [ecx], 0
call fcn.004562f0
mov byte [ebp - 4], 1
lea edi, [esi + 0x30]
push 1
push edi
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00472f00
push 0xb
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0
push 0x5931b4
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
call fcn.004562f0
mov dword [ebp - 4], 2
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
call fcn.004727c0
mov bl, byte [eax]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0x10
jb 0x470a51
push dword [ebp - 0x30]
call fcn.0047c370
add esp, 4
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
test bl, bl
jne 0x470a7b
xor eax, 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
push dword [ebp - 0x10]
mov eax, dword [edi]
call 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 0x473ce0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5c2b80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
push 0x20
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x473d7b
lea eax, [ebp - 0xc]
push eax
push 0x59335c
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x473d7b
mov eax, dword [ebp - 0xc]
push 0
push 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x473d7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [edi], eax
test eax, eax
je 0x473dbe
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateToolhelp32Snapshot
push eax
call esi
push str.Process32FirstW
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.Process32NextW
push dword [edi]
mov dword [edi + 8], eax
call esi
mov dword [edi + 0xc], eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0052ab62
mov esp, ebp
pop ebp
ret

Function at 0x473de0
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], 0
push edi
cmp dword [esi], 0
je 0x473ec0
cmp dword [esi + 4], 0
je 0x473ec0
cmp dword [esi + 8], 0
je 0x473ec0
cmp dword [esi + 0xc], 0
je 0x473ec0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00473f00
mov edi, eax
test edi, edi
je 0x473ec0
xor ebx, ebx
push dword [ebp - 4]
inc ebx
push 0x4741a0
call dword [sym.imp.USER32.dll_EnumWindows]
push 0x1f4
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x473e61
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 8], eax
jmp 0x473e68
mov dword [ebp - 8], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 5
jge 0x473eae
call fcn.00456ec0
mov ecx, eax
call fcn.004706e0
cmp dword [esi], 0
je 0x473eae
cmp dword [esi + 4], 0
je 0x473eae
cmp dword [esi + 8], 0
je 0x473eae
cmp dword [esi + 0xc], 0
je 0x473eae
lea eax, [ebp - 4]
mov ecx, esi
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00473f00
mov edi, eax
test edi, edi
jne 0x473e34
xor eax, eax
cmp dword [ebp - 8], 1
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47f330
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [edi], 0
cmp dword [0x5c4b18], 0
je 0x47f387
mov eax, dword [0x5cfa28]
test eax, eax
je 0x47f360
push eax
call dword [0x5c4b6c]
add esp, 4
lea edx, [ebp - 4]
mov ecx, 0x14
call fcn.0047ca70
mov eax, dword [0x5cfa28]
test eax, eax
je 0x47f382
push eax
call dword [0x5c4b74]
mov esi, dword [ebp - 4]
jmp 0x47f391
mov esi, dword [ebp - 4]
jmp 0x47f394
push 0x14
call dword [0x5c4b3c]
mov esi, eax
add esp, 4
test esi, esi
jne 0x47f3a2
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x5c4b1c], 0
mov ebx, dword [ebp + 8]
je 0x47f3d5
mov eax, dword [ebp - 8]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x47f300
push 0
push 0
mov dword [esi + 0xc], ebx
call fcn.0052d319
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x47f3e3
xorps xmm0, xmm0
movdqu xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x47f3fc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
mov dword [esi + 4], eax
call dword [ebp - 8]
add esp, 4
mov dword [esi + 0x10], eax
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x481460
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
xor eax, eax
mov cl, byte [esi]
test cl, cl
je 0x48148e
jmp 0x481470
movzx ecx, cl
lea esi, [esi + 1]
movzx edx, byte [ecx + 0x58deb0]
lea ecx, [eax*8]
xor edx, ecx
mov cl, byte [esi]
xor eax, edx
test cl, cl
jne 0x481470
pop esi
ret
Function at 0x481500
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
mov ecx, 0x80
mov dword [ebp - 4], esi
lea eax, [edi*8]
cmp eax, 0x400
cmova edi, ecx
cmp edi, dword [esi]
jne 0x481531
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x5cfa50]
test eax, eax
je 0x48153c
call eax
lea eax, [edi*8]
push 0
push eax
call fcn.0047cb60
mov ecx, dword [0x5cfa54]
add esp, 8
mov ebx, eax
mov dword [ebp - 0xc], ebx
test ecx, ecx
je 0x48155f
call ecx
test ebx, ebx
je 0x481528
push dword [esi + 0xc]
call fcn.0047cef0
add esp, 4
mov dword [esi + 0xc], ebx
push ebx
call dword [0x5c4b48]
shr eax, 3
add esp, 4
mov dword [ebp - 8], eax
mov dword [esi], eax
lea ecx, [eax*8]
push ecx
push 0
push ebx
call fcn.0052ebd0
mov ecx, dword [esi + 8]
add esp, 0xc
mov dword [esi + 8], 0
test ecx, ecx
je 0x481642
mov edi, dword [ecx + 0xc]
xor ebx, ebx
mov al, byte [edi]
test al, al
je 0x4815d1
movzx eax, al
lea edx, [ebx*8]
lea edi, [edi + 1]
movzx esi, byte [eax + 0x58deb0]
mov al, byte [edi]
xor esi, edx
xor ebx, esi
test al, al
jne 0x4815b3
xor edx, edx
mov edi, dword [ecx]
mov eax, ebx
div dword [ebp - 8]
mov eax, dword [ebp - 0xc]
lea esi, [eax + edx*8]
test esi, esi
je 0x48161c
mov eax, dword [esi]
test eax, eax
je 0x4815ef
mov edx, dword [esi + 4]
jmp 0x4815f1
xor edx, edx
inc eax
mov dword [esi + 4], ecx
mov dword [esi], eax
test edx, edx
je 0x48161c
mov dword [ecx], edx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 4]
test eax, eax
je 0x481611
mov dword [eax], ecx
mov dword [edx + 4], ecx
jmp 0x481638
mov eax, dword [ebp - 4]
mov dword [eax + 8], ecx
mov dword [edx + 4], ecx
jmp 0x481638
mov esi, dword [ebp - 4]
mov eax, dword [esi + 8]
mov dword [ecx], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x48162e
mov dword [eax + 4], ecx
mov dword [ecx + 4], 0
mov dword [esi + 8], ecx
mov ecx, edi
test edi, edi
jne 0x4815a8
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x481650
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, ecx
push ebx
push esi
push edi
mov ecx, dword [eax + 0xc]
mov ebx, edx
mov dword [ebp - 4], eax
test ecx, ecx
je 0x4816a3
mov al, byte [ebx]
xor esi, esi
mov edi, ebx
test al, al
je 0x48168e
nop
movzx eax, al
lea ecx, [esi*8]
lea edi, [edi + 1]
movzx edx, byte [eax + 0x58deb0]
mov al, byte [edi]
xor edx, ecx
xor esi, edx
test al, al
jne 0x481670
mov ecx, dword [ebp - 4]
mov eax, esi
xor edx, edx
div dword [ecx]
mov edi, dword [ecx + 0xc]
mov esi, dword [edi + edx*8 + 4]
mov edi, dword [edi + edx*8]
jmp 0x4816ab
mov esi, dword [eax + 8]
xor edx, edx
mov edi, dword [eax + 4]
mov eax, dword [ebp + 8]
mov dword [eax], edx
test edi, edi
je 0x4816cb
push ebx
push dword [esi + 0xc]
dec edi
call fcn.0047ff20
add esp, 8
test eax, eax
je 0x4816d4
mov esi, dword [esi]
test edi, edi
jne 0x4816b4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48f110
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], ecx
xor eax, eax
mov dword [esp + 0xc], edi
cmp ax, word [ecx + 0x4c]
jg 0x48f1d6
lea ebx, [ecx + 0x78]
mov dword [esp + 0x10], ebx
lea esp, [esp]
mov ecx, dword [ebx]
test ecx, ecx
je 0x48f1b4
mov ecx, dword [ecx + 0x44]
test byte [ecx + 0x18], 0x40
mov esi, dword [ecx + 0x10]
je 0x48f196
dec dword [esi + 0x78]
mov eax, dword [esi + 0x88]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x98]
mov edi, dword [esi + 0x3c]
mov dword [esi + 0x88], ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x14]
mov ebx, dword [edi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.00530230
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
mov ebx, dword [esp + 0x20]
add esp, 0x10
mov edi, dword [esp + 0xc]
jmp 0x48f19b
call fcn.00485670
cmp dword [esi + 0x78], 0
jne 0x48f1b4
mov eax, dword [esi + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x48f1b4
mov ecx, esi
call fcn.00488090
mov ecx, dword [esp + 0x14]
inc edi
mov dword [ebx], 0
add ebx, 4
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ebx
movsx eax, word [ecx + 0x4c]
cmp edi, eax
jle 0x48f140
pop edi
or eax, 0xffffffff
pop esi
mov word [ecx + 0x4c], ax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x492620
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], edx
xor esi, esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], esi
test edi, edi
je 0x4927a1
cmp byte [edi + 9], 0
je 0x492658
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x492658
call fcn.0048ed30
mov eax, dword [edi + 4]
mov ebx, dword [eax + 8]
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x49278f
lea ebx, [ebx]
cmp dword [ebp + 8], 0
je 0x4926aa
test byte [ebx + 0x48], 1
jne 0x4926aa
cmp byte [ebx + 0x49], 1
jne 0x4926c7
mov ecx, ebx
call fcn.0048f1f0
mov esi, eax
mov dword [esp + 0x1c], esi
test esi, esi
je 0x4926c7
mov edi, dword [esp + 0x20]
mov edx, esi
push 0
mov ecx, edi
call fcn.00492620
add esp, 4
jmp 0x49278f
push dword [ebx + 0x38]
call fcn.0047cef0
mov eax, dword [esp + 0x28]
add esp, 4
mov dword [ebx + 0x38], 0
mov byte [ebx + 0x49], 4
mov dword [ebx + 0x44], eax
xor eax, eax
mov dword [esp + 0x10], 0
cmp ax, word [ebx + 0x4c]
jg 0x492778
lea edi, [ebx + 0x78]
mov dword [esp + 0x14], edi
mov ecx, dword [edi]
test ecx, ecx
je 0x492756
mov ecx, dword [ecx + 0x44]
test byte [ecx + 0x18], 0x40
mov esi, dword [ecx + 0x10]
je 0x492738
dec dword [esi + 0x78]
mov eax, dword [esi + 0x88]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x98]
mov edi, dword [esi + 0x3c]
mov dword [esi + 0x88], ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x14]
mov ebx, dword [edi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.00530230
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
mov ebx, dword [esp + 0x28]
add esp, 0x10
mov edi, dword [esp + 0x14]
jmp 0x49273d
call fcn.00485670
cmp dword [esi + 0x78], 0
jne 0x492756
mov eax, dword [esi + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x492756
mov ecx, esi
call fcn.00488090
mov ecx, dword [esp + 0x10]
mov dword [edi], 0
inc ecx
movsx eax, word [ebx + 0x4c]
add edi, 4
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
cmp ecx, eax
jle 0x4926e2
mov ebx, dword [ebx + 8]
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x492670
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
cmp byte [edi + 9], 0
je 0x4927a1
dec dword [edi + 0xc]
jne 0x4927a1
mov ecx, edi
call fcn.0048ecf0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4932f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov al, byte [esi + 0x49]
cmp al, 3
jb 0x493324
cmp al, 4
jne 0x493313
mov eax, dword [esi + 0x44]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x38]
call fcn.0047cef0
add esp, 4
mov dword [esi + 0x38], ebx
mov byte [esi + 0x49], bl
movzx eax, word [esi + 0x4c]
test ax, ax
js 0x4933d7
je 0x49341e
jmp 0x493340
movzx ecx, word [esi + 0x4c]
movsx eax, cx
mov edx, dword [esi + eax*4 + 0x78]
lea eax, [ecx - 1]
mov word [esi + 0x4c], ax
test edx, edx
je 0x4933c8
mov ecx, dword [edx + 0x44]
test byte [ecx + 0x18], 0x40
mov ebx, dword [ecx + 0x10]
mov dword [esp + 0xc], ebx
je 0x4933aa
dec dword [ebx + 0x78]
mov eax, dword [ebx + 0x88]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0xc]
mov edi, dword [ebx + 0x3c]
mov dword [ebx + 0x88], ecx
push dword [ecx + 4]
mov eax, dword [eax + 0x98]
mov ecx, dword [ecx + 0x14]
mov ebx, dword [edi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.00530230
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
mov ebx, dword [esp + 0x1c]
add esp, 0x10
jmp 0x4933af
call fcn.00485670
cmp dword [ebx + 0x78], 0
jne 0x4933c8
mov eax, dword [ebx + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x4933c8
mov ecx, ebx
call fcn.00488090
cmp word [esi + 0x4c], 0
jne 0x493340
xor ebx, ebx
jmp 0x49341e
mov edx, dword [esi + 0x3c]
test edx, edx
jne 0x4933ea
mov byte [esi + 0x49], bl
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [esi + 0x48]
mov ecx, dword [esi]
add eax, eax
not eax
and eax, 2
push eax
mov ecx, dword [ecx + 4]
lea eax, [esi + 0x78]
push eax
call fcn.00490560
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x493418
mov byte [esi + 0x49], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov word [esi + 0x4c], ax
mov edx, dword [esi + 0x78]
cmp byte [edx], 0
je 0x4934aa
movzx eax, byte [edx + 2]
xor ecx, ecx
cmp dword [esi + 0x10], ecx
sete cl
cmp ecx, eax
jne 0x4934aa
xor eax, eax
mov word [esi + 0x4e], ax
and byte [esi + 0x48], 0xf1
mov word [esi + 0x2c], ax
cmp word [edx + 0x12], ax
jbe 0x49345b
mov byte [esi + 0x49], 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [edx + 5], al
jne 0x49349e
cmp dword [edx + 0x48], 1
je 0x493477
mov ecx, 0xdfb2
call fcn.004efd10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x38]
movzx ecx, byte [edx + 6]
add eax, 8
add ecx, eax
call fcn.00480ed0
mov edx, eax
mov byte [esi + 0x49], 1
mov ecx, esi
call fcn.00493250
mov ebx, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x49], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x599054
push 0xdfa7
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.0047f120
add esp, 0x10
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret