joyce8/EMBER2024-capa huggingface dataset:
Function at 0x479560
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x53c
mov eax, dword [0x759454]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push edi
push 0x208
xor edi, edi
push edi
push eax
call fcn.005ff380
add esp, 0xc
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4795c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_CreateToolhelp32Snapshot__Error:__d
push dword [0x73f2e0]
push 2
push str.WinSandboxingUtilities
push edi
call fcn.00511a90
add esp, 0x18
jmp 0x479725
lea eax, [ebp - 0x53c]
mov dword [ebp - 0x53c], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x4795f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_Process32First__Error:__d
jmp 0x47970a
push 3
lea eax, [ebp - 0x30c]
push str.explorer.exe
lea ecx, [ebp - 0x310]
mov dword [ebp - 0x310], eax
call fcn.0045b930
push dword [ebp - 0x310]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00613dd7
mov eax, dword [ebp - 0x310]
lea ecx, [ebp - 0x30c]
add esp, 0xc
cmp eax, ecx
je 0x479650
push eax
call fcn.00613e50
add esp, 4
nop dword [eax]
nop word [eax + eax]
lea ecx, [ebp - 0x20c]
lea eax, [ebp - 0x518]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x479686
test dx, dx
je 0x479682
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x479686
add eax, 4
add ecx, 4
test dx, dx
jne 0x479660
xor eax, eax
jmp 0x47968b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4796a2
lea eax, [ebp - 0x53c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x479650
jmp 0x4796ad
mov eax, dword [ebp - 0x534]
cmp eax, 0xffffffff
jne 0x4796cb
push str.Failed_to_find_explorer_process_id
push dword [0x73f2e0]
push 2
push str.WinSandboxingUtilities
push 0
call fcn.00511a90
add esp, 0x14
jmp 0x479721
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x4796ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_OpenProcess__Error:__d
jmp 0x47970a
push ebx
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x479721
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_OpenProcessToken_of_explorer__Error:__d
push dword [0x73f2e0]
push 2
push str.WinSandboxingUtilities
push 0
call fcn.00511a90
add esp, 0x18
test esi, esi
je 0x47972c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x479737
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005e980b
mov esp, ebp
pop ebp
ret
Function at 0x47bce0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x670003
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x759454]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.0047dbc0
add esp, 4
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp + 0x38]
push eax
mov byte [ebp - 4], 1
call fcn.00458850
sub esp, 0x48
lea eax, [ebp + 8]
mov esi, esp
mov ecx, esi
mov dword [ebp - 0x44], esi
push eax
call fcn.00446be0
lea eax, [ebp + 0x20]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x18]
call fcn.00446be0
lea eax, [ebp + 0x38]
mov byte [ebp - 4], 3
push eax
lea ecx, [esi + 0x30]
call fcn.00446be0
call fcn.0047be80
mov edi, eax
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
push eax
push edi
mov byte [ebp - 0x40], 0
call sym.AGSService.exe_AGDServiceConvertAGDStatusTypeEnumToString
add esp, 0x50
lea esi, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x40]
lea ecx, [ebp + 8]
cmovae esi, dword [ebp - 0x28]
lea eax, [ebp + 0x20]
cmp dword [ebp - 0x2c], 0x10
push 0
cmovae edx, dword [ebp - 0x40]
cmp dword [ebp + 0x1c], 0x10
push esi
cmovae ecx, dword [ebp + 8]
cmp dword [ebp + 0x34], 0x10
push edx
cmovae eax, dword [ebp + 0x20]
push ecx
push eax
call sym.AGSService.exe_RSDServiceRecordStatus
mov edx, dword [ebp - 0x2c]
add esp, 0x14
cmp edx, 0x10
jb 0x47bdff
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47bdf5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47be78
push edx
push ecx
call fcn.005e984c
add esp, 8
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp edx, 0x10
jb 0x47be41
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47be37
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47be78
push edx
push ecx
call fcn.005e984c
add esp, 8
lea ecx, [ebp + 8]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00465f50
mov eax, edi
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.005e980b
mov esp, ebp
pop ebp
ret
call fcn.00608584
int3
Function at 0x47d900
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x47d946
mov ax, word [ebp + 0xc]
test ax, ax
je 0x47d946
push edi
movzx edi, ax
push edi
push esi
push 0x59
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
cmp eax, 1
jbe 0x47d945
cmp eax, edi
jae 0x47d945
push edi
add eax, esi
push eax
push 0x5a
push 0x400
mov byte [eax - 1], 0x5f
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
pop edi
pop esi
pop ebp
ret

Function at 0x47d9f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa30
mov eax, dword [0x759454]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [ebp - 0xa2c], eax
mov dword [ebp - 0xa30], ecx
test eax, eax
je 0x47dba5
push 0x20a
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.005ff380
add esp, 0xc
xor eax, eax
mov word [ebp - 0xa28], ax
lea eax, [ebp - 0xa28]
push eax
push 0x1ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
dec eax
cmp eax, 0x1fe
ja 0x47dba5
mov eax, dword [0x6b2efc]
movzx ecx, word [ebp - 0xa28]
push esi
mov dword [ebp - 0xc], eax
mov ax, word [0x6b2f00]
push edi
mov word [ebp - 8], ax
lea edi, [ebp - 0xa28]
nop dword [eax]
push 0x104
lea eax, [ebp - 0x420]
mov word [ebp - 0xc], cx
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x47db86
lea esi, [ebp - 0x420]
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x47dab0
sub esi, ecx
sar esi, 1
cmp esi, 0x104
jae 0x47db86
push esi
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0xa2c]
call fcn.006160e3
add esp, 0xc
add esi, esi
test eax, eax
mov eax, dword [ebp - 0xa2c]
jne 0x47dafb
cmp word [esi + eax], 0x5c
jne 0x47dafb
mov ebx, 1
jmp 0x47dafd
xor ebx, ebx
test ebx, ebx
je 0x47db86
add eax, esi
push eax
lea eax, [ebp - 0xc]
push eax
push 0x6b2f04
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.00443380
lea ecx, [ebp - 0x628]
add esp, 0x14
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47db30
sub ecx, edx
lea eax, [ebp - 0x628]
sar ecx, 1
push ecx
push eax
lea eax, [ebp - 0x218]
push 0x105
push eax
call fcn.00616089
lea ecx, [ebp - 0x218]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47db64
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0xa30]
push eax
call fcn.00458940
movzx eax, word [edi]
add edi, 2
test ax, ax
jne 0x47db86
test ebx, ebx
jne 0x47dba3
movzx eax, word [edi]
mov ecx, eax
test ax, ax
jne 0x47da80
pop edi
pop esi
mov ecx, dword [ebp - 4]
test ebx, ebx
pop ebx
setne al
xor ecx, ebp
call fcn.005e980b
mov esp, ebp
pop ebp
ret
Function at 0x47dff0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6707d2
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x759454]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x31c], esi
mov dword [ebp - 0x314], 0
push 7
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
push str.unknown
mov dword [ebp - 4], 0
mov byte [esi], 0
call fcn.00458850
mov ax, word [0x6ade80]
push 0x1fe
mov word [ebp - 0x310], ax
lea eax, [ebp - 0x30e]
push 0
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x314], 1
call fcn.005ff380
add esp, 0xc
mov dword [ebp - 0x318], 0x100
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x310]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x47e10a
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.005ff380
add esp, 0xc
lea eax, [ebp - 0x110]
push 0
push 0
push 0x100
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x310]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47e0f2
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
mov ecx, esi
call fcn.00458850
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005e980b
mov esp, ebp
pop ebp
ret

Function at 0x47e260
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6707d2
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x759454]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x31c], esi
mov dword [ebp - 0x314], 0
push 7
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
push str.unknown
mov dword [ebp - 4], 0
mov byte [esi], 0
call fcn.00458850
mov ax, word [0x6ade80]
push 0x1fe
mov word [ebp - 0x310], ax
lea eax, [ebp - 0x30e]
push 0
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x314], 1
call fcn.005ff380
add esp, 0xc
mov dword [ebp - 0x318], 0x100
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x310]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x47e37a
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.005ff380
add esp, 0xc
lea eax, [ebp - 0x110]
push 0
push 0
push 0x100
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x310]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47e362
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
mov ecx, esi
call fcn.00458850
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005e980b
mov esp, ebp
pop ebp
ret
Function at 0x47e3a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x759454]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 0x104
push 0
push eax
call fcn.005ff380
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push 0
push 0
push 0x2e
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x47e401
push 0x104
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00616667
add esp, 0xc
lea edx, [ebp - 0x108]
lea ecx, [edx + 1]
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x47e410
sub edx, ecx
lea eax, [ebp - 0x108]
push edx
push eax
mov ecx, esi
call fcn.004586f0
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.005e980b
mov esp, ebp
pop ebp
ret
Function at 0x47f120
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x759454]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
dec eax
push esi
push edi
cmp eax, 0xfe
ja case.0x47f14b.2
movzx eax, byte [eax + 0x47f238]
jmp dword [eax*4 + 0x47f218]
mov esi, 0x2b
jmp 0x47f181
mov esi, 0x23
jmp 0x47f181
mov esi, 0x1a
jmp 0x47f181
mov esi, 0x1c
jmp 0x47f181
mov esi, 0x2a
jmp 0x47f181
mov esi, 0x26
jmp 0x47f181
mov esi, 0x2c
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
mov eax, esi
or eax, 0x8000
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x47f1c1
cmp esi, 0x2c
jne 0x47f205
push 1
push ebx
call fcn.0047f120
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005e980b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
push eax
call fcn.0047fbe0
mov edi, eax
add esp, 4
test edi, edi
je 0x47f205
push 0x104
push edi
push 0x104
push ebx
call fcn.0047fb30
push edi
mov esi, eax
call fcn.00613e50
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005e980b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005e980b
mov esp, ebp
pop ebp
ret

Function at 0x47f410
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.0047fb80
mov edi, eax
add esp, 4
test edi, edi
je 0x47f43d
push esi
push edi
call fcn.0061800b
push edi
mov esi, eax
call fcn.00613e50
add esp, 8
mov eax, esi
pop esi
pop edi
pop ebp
ret
push 0x16
call fcn.006139d4
add esp, 4
or eax, 0xffffffff
pop edi
pop ebp
ret

Function at 0x47f660
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x759454]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x47f6ef
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0047fbe0
mov esi, eax
add esp, 4
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47f6a4
sub ecx, edx
je 0x47f6ba
cmp byte [ecx + esi - 1], 0x5c
jne 0x47f6ba
mov byte [ecx + esi - 1], al
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47f6c0
sub ecx, edx
push ecx
push esi
push dword [ebp + 0xc]
push edi
call fcn.0047fb30
push esi
call fcn.00613e50
add esp, 0x14
mov eax, edi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005e980b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.005e980b
mov esp, ebp
pop ebp
ret
Function at 0x47fe70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x759454]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x47fef2
test edi, edi
je 0x47fef2
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47fe95
sub ecx, edx
je 0x47fef2
lea eax, [ebp - 0x34]
push eax
push edi
call fcn.0047f630
add esp, 8
test eax, eax
jne 0x47fef2
mov eax, dword [ebp - 0x20]
xor ecx, ecx
add eax, 1
push 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.00613e3b
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x47fef2
push 0x6ace30
push edi
call fcn.0047f370
mov edi, eax
add esp, 8
mov eax, dword [esi]
test edi, edi
jne 0x47ff05
push eax
call fcn.00613e50
add esp, 4
mov dword [esi], edi
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005e980b
mov esp, ebp
pop ebp
ret
push edi
push dword [ebp - 0x20]
push 1
push eax
call fcn.00608c39
push edi
mov esi, eax
call fcn.00608844
mov ecx, dword [ebp - 4]
add esp, 0x14
mov eax, esi
xor ecx, ebp
pop edi
pop esi
call fcn.005e980b
mov esp, ebp
pop ebp
ret
Function at 0x49c890
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
mov al, byte [esi + 0x44]
test al, al
js 0x49c97f
push ebx
xor ebx, ebx
push edi
test al, al
jle 0x49c919
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ecx
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x49c8fe
mov eax, dword [ecx + 0x14]
dec dword [eax + 0x78]
mov edx, dword [eax + 0x88]
mov dword [ecx + 0x10], edx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], ecx
push dword [ecx + 4]
mov eax, dword [eax + 0x98]
mov ecx, dword [ecx + 0x18]
mov edi, dword [esi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.005ea030
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [ebp + 8]
add esp, 0x10
jmp 0x49c907
push ecx
call fcn.004d95a0
add esp, 4
mov ecx, dword [ebp - 4]
inc ebx
movsx eax, byte [esi + 0x44]
add ecx, 4
mov dword [ebp - 4], ecx
cmp ebx, eax
jl 0x49c8b1
mov eax, dword [esi + 0x74]
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x49c970
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.005ea030
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [ebp + 8]
add esp, 0x10
pop edi
pop ebx
mov byte [esi + 0x44], 0xff
pop esi
mov esp, ebp
pop ebp
ret
push edx
call fcn.004d95a0
add esp, 4
mov byte [esi + 0x44], 0xff
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x49d9f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push esi
push ebx
push edi
mov eax, dword [edi + 0x50]
call eax
movzx eax, word [esi + 0x10]
add esp, 0xc
mov edx, dword [esi + 0xc]
cmp eax, edx
je 0x49dbb3
movzx esi, word [esi + 0x12]
add esi, ebx
cmp esi, dword [edi + 0x3c]
jbe 0x49da4f
push 0x6be78c
push 0x1134c
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00484f60
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [edi + 0x34]
sub edx, eax
mov esi, dword [esi - 4]
bswap esi
mov dword [ebp + 0x10], edi
mov ecx, dword [edi + 0x24]
lea eax, [edx - 1]
sub ecx, 4
xor edx, edx
add eax, ecx
div ecx
mov ebx, eax
test ebx, ebx
je 0x49dbb3
nop word [eax + eax]
dec ebx
mov dword [ebp - 4], 0
mov dword [ebp + 8], 0
cmp esi, 2
jb 0x49db89
cmp esi, dword [edi + 0x2c]
ja 0x49db89
test ebx, ebx
je 0x49dac9
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push esi
push edi
call fcn.004aad90
add esp, 0x10
test eax, eax
jne 0x49dbb5
mov edi, dword [ebp + 8]
test edi, edi
jne 0x49dad9
mov edi, dword [ebp + 0x10]
push esi
push edi
call fcn.0049c4f0
mov edi, eax
add esp, 8
test edi, edi
je 0x49db0a
mov ecx, dword [edi + 0x48]
cmp word [ecx + 0x1e], 1
je 0x49db0a
push 0x6be78c
push 0x11371
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00484f60
add esp, 0x14
mov dword [ebp + 8], 0xb
jmp 0x49db1a
push esi
push edi
push dword [ebp + 0x10]
call fcn.004a8db0
add esp, 0xc
mov dword [ebp + 8], eax
test edi, edi
je 0x49db73
mov edx, dword [edi + 0x48]
test edx, edx
je 0x49db73
test byte [edx + 0x1c], 0x20
je 0x49db6a
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.005ea030
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x49db73
push edx
call fcn.004d95a0
add esp, 4
mov eax, dword [ebp + 8]
test eax, eax
jne 0x49dbb5
mov esi, dword [ebp - 4]
test ebx, ebx
je 0x49dbb3
mov edi, dword [ebp + 0x10]
jmp 0x49da80
push 0x6be78c
push 0x1135d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00484f60
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4aebd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], 0
mov al, byte [esi + 0x44]
test al, al
js 0x4aec6e
je 0x4aece4
push dword [esi + 0x74]
call fcn.004b7050
add esp, 4
sub byte [esi + 0x44], 1
je 0x4aec63
push ebx
movsx eax, byte [esi + 0x44]
mov eax, dword [esi + eax*4 + 0x78]
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x4aec53
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov edi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov ebx, dword [edi]
cdq
push edx
push eax
push 0
push ecx
call fcn.005ea030
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
add esp, 0x10
jmp 0x4aec5c
push edx
call fcn.004d95a0
add esp, 4
sub byte [esi + 0x44], 1
jne 0x4aec03
pop ebx
mov eax, dword [esi + 0x78]
mov dword [esi + 0x74], eax
jmp 0x4aecfc
cmp dword [esi + 0x40], 0
jne 0x4aec82
pop edi
mov byte [esi], 1
mov eax, 0x10
pop esi
mov esp, ebp
pop ebp
ret
mov al, byte [esi]
cmp al, 3
jb 0x4aecaa
cmp al, 4
jne 0x4aec95
mov eax, dword [esi + 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [esi + 0x10]
call fcn.0048fd20
add esp, 4
mov dword [esi + 0x10], 0
mov byte [esi], 1
movzx eax, byte [esi + 2]
lea edi, [esi + 0x74]
push eax
mov eax, dword [esi + 8]
push 0
push edi
push dword [esi + 0x40]
push dword [eax + 4]
call fcn.004aa990
mov ecx, eax
add esp, 0x14
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x4aecd8
pop edi
mov byte [esi], 1
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
mov byte [esi + 0x44], 0
mov al, byte [eax + 2]
mov byte [esi + 0x45], al
mov eax, dword [esi + 0x74]
cmp byte [eax], 0
je 0x4aed63
movzx eax, byte [eax + 2]
xor ecx, ecx
cmp dword [esi + 0x70], ecx
sete cl
cmp ecx, eax
jne 0x4aed63
and byte [esi + 1], 0xf1
xor eax, eax
mov word [esi + 0x46], ax
mov word [esi + 0x32], ax
mov eax, dword [esi + 0x74]
cmp word [eax + 0x18], 0
jbe 0x4aed20
mov eax, dword [ebp - 4]
pop edi
mov byte [esi], 0
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [eax + 8], 0
jne 0x4aec74
cmp dword [eax + 4], 1
je 0x4aed43
push 0x10ed7
call fcn.004c4d60
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
movzx ecx, byte [eax + 9]
mov eax, dword [eax + 0x38]
mov eax, dword [ecx + eax + 8]
bswap eax
push eax
push esi
mov byte [esi], 0
call fcn.004ae940
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x6be78c
push 0x10eca
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00484f60
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b1780
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, dword [ebx + 0x88]
test esi, esi
je 0x4b17b4
mov eax, dword [ebp + 0x14]
xorps xmm0, xmm0
mov dword [eax], esi
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x88], eax
mov eax, dword [esi + 8]
mov dword [esi + 0x10], 0
movq qword [eax], xmm0
jmp 0x4b182b
movzx eax, word [ebx + 0x8c]
cdq
mov edi, eax
add edi, 0x28
adc edx, 0
push edx
push edi
call fcn.004d5f10
mov esi, eax
add esp, 8
test esi, esi
je 0x4b17e0
push edi
push 0
push esi
call fcn.005ff380
add esp, 0xc
mov ecx, dword [ebp + 0x14]
mov dword [ecx], esi
test esi, esi
jne 0x4b181b
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebx + 0x98]
dec ecx
mov esi, dword [ebx + 0x3c]
push 0
cdq
push ecx
mov edi, dword [esi]
push edx
push eax
call fcn.005ea030
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
mov eax, 7
pop edi
pop esi
pop ebx
pop ebp
ret
lea eax, [esi + 0x28]
mov dword [esi + 0x1c], 0x10020
mov dword [esi + 8], eax
mov dword [esi + 0x14], ebx
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 4], eax
inc dword [ebx + 0x78]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret