joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47d500
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d39c0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x520b38]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
xor edi, edi
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x4c], eax
xor eax, eax
mov dword [ebp - 0x48], 0x4eb0bc
mov dword [ebp - 0x50], 0x4eaf2c
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], edi
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
push ecx
lea ecx, [ebp - 0x48]
call fcn.00479570
lea eax, [ebp - 0x28]
push eax
push esi
lea ecx, [ebp - 0x50]
call fcn.00479570
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x47d5b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x47d5c9
push 2
inc ecx
push ecx
push dword [ebp - 0x28]
call fcn.00438760
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x47d5f4
push 2
inc eax
push eax
push dword [ebp - 0x40]
call fcn.00438760
add esp, 0xc
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.004c35dc
mov esp, ebp
pop ebp
ret

Function at 0x485a60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d48bc
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x520b38]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi], 0
jne 0x485b3a
lea eax, [ebp - 0x424]
push eax
push 0x410
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
dec eax
cmp eax, 0x40f
ja 0x485ac1
lea eax, [ebp - 0x424]
push eax
lea ecx, [edi + 0x2c]
call fcn.0043aab0
mov byte [edi], 1
mov eax, dword [edi + 0xc]
lea ecx, [edi + 0xc]
mov dword [ebp - 4], 0
push dword [eax + 4]
call fcn.00485fa0
mov eax, dword [edi + 0xc]
mov dword [eax + 4], eax
mov eax, dword [edi + 0xc]
mov dword [eax], eax
mov eax, dword [edi + 0xc]
mov dword [eax + 8], eax
mov dword [edi + 0x10], 0
mov eax, dword [edi + 0x1c]
lea ecx, [edi + 0x1c]
mov dword [ebp - 4], 1
push dword [eax + 4]
call fcn.0043fcf0
mov eax, dword [edi + 0x1c]
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
mov dword [eax + 4], eax
mov eax, dword [edi + 0x1c]
mov dword [eax], eax
mov eax, dword [edi + 0x1c]
mov dword [eax + 8], eax
mov dword [edi + 0x20], 0
call fcn.00485650
mov ecx, edi
call fcn.00484bd0
mov ecx, edi
call fcn.00485110
xor al, al
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.004c35dc
mov esp, ebp
pop ebp
ret
Function at 0x4a5f50
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
push ebx
push edi
mov edi, dword [ebp + 0x14]
mov ebx, ecx
mov dword [edi], 0
je 0x4a5fd2
cmp dword [ebx + 0xc], 0
je 0x4a5fd2
push esi
push 4
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004a62c0
add esp, 4
push eax
call fcn.004a5b60
mov esi, eax
add esp, 0x18
test esi, esi
je 0x4a5fb8
cmp dword [edi], 0
jne 0x4a5fb8
push esi
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 1
push esi
mov dword [edi], eax
call fcn.004c35ce
add esp, 8
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
push 1
push esi
mov dword [edi], 0xffffffff
call fcn.004c35ce
add esp, 8
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
mov dword [edi], 5
xor eax, eax
pop edi
pop ebx
pop ebp
ret 0x18

Function at 0x4a6300
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9c28
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x520b38]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push 0
push esi
mov dword [ebp - 0x10], 0
call fcn.00465820
mov ecx, eax
call fcn.004a5a20
mov edi, eax
test edi, edi
je 0x4a643c
cmp dword [ebp - 0x10], 0
jne 0x4a643c
push esi
call fcn.004a62c0
push 4
push dword [ebp + 0x14]
lea ecx, [ebp - 0x10]
push dword [ebp + 0x10]
push ecx
push 0
push eax
call fcn.004a5b60
mov esi, eax
add esp, 0x1c
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
jne 0x4a63bd
test esi, esi
je 0x4a63bd
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push esi
push edi
call fcn.004a6460
add esp, 0x14
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4a63dd
cmp dword [ebp - 0x14], 0
je 0x4a63bd
lea eax, [ebp - 0x14]
push eax
call fcn.004a5ec0
add esp, 4
xor edi, edi
push 1
push esi
call fcn.004c35ce
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x14], 0
je 0x4a63bd
push 0x400
mov dword [ebp - 0x18], 0x400
call fcn.004c3760
add esp, 4
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push edi
push 0
push 0
push dword [ebp + 0xc]
mov byte [edi], 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
call fcn.004a5ec0
add esp, 4
cmp dword [ebp - 0x10], 0
je 0x4a642e
push edi
call fcn.004c3976
jmp 0x4a63ba
lea eax, [ebp - 0x14]
push eax
call fcn.004a5ec0
add esp, 4
jmp 0x4a63bf
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4afc60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db212
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x520b38]
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 esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x118], 0
mov eax, dword [0x530c30]
mov dword [ebp - 4], 0
mov dword [ebp - 0x120], esi
test eax, eax
jne 0x4afcbe
mov ecx, esi
call fcn.0043b920
mov dword [esi], eax
push 0x100
lea eax, [ebp - 0x110]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x118], 1
call fcn.004c5552
add esp, 0xc
mov dword [ebp - 0x11c], 0x3000
lea eax, [ebp - 0x114]
push eax
push 0x20219
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4afd48
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push 0
push str.Path
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x110]
mov ecx, esi
push eax
call fcn.0043aab0
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 - 0x10]
xor ecx, ebp
call fcn.004c35dc
mov esp, ebp
pop ebp
ret

Function at 0x4b5330
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
mov dword [edi], 0
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4b5391
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4b536d
cmp eax, 2
jne 0x4b537f
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x4b538d
test eax, eax
je 0x4b538a
cmp byte [eax + esi - 1], 0
je 0x4b538d
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
mov byte [esi], 0
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4b56b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc5c8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x520b38]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.FeaturesBridge.dll
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4b57a1
push str.FeaturesBridge_dll_is_loaded
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.Content_Type:_application_xml
lea ecx, [ebp - 0x10]
call fcn.0043a600
push str.SendRequest
push esi
mov byte [ebp - 4], 3
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4b578e
push dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
mov edx, esp
test ecx, ecx
je 0x4b573d
test byte [ecx - 0xe], 8
jne 0x4b573d
inc word [ecx - 0x10]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x10]
mov dword [edx], ecx
push ecx
mov ecx, esp
test eax, eax
je 0x4b5753
test byte [eax - 0xe], 8
jne 0x4b5753
inc word [eax - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, esp
test eax, eax
je 0x4b576c
test byte [eax - 0xe], 8
jne 0x4b576c
inc word [eax - 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, esp
test eax, eax
je 0x4b5785
test byte [eax - 0xe], 8
jne 0x4b5785
inc word [eax - 0x10]
mov eax, dword [ebp + 8]
mov dword [ecx], eax
call esi
add esp, 0x14
mov edi, eax
test edi, edi
sete bl
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.0043b730
jmp 0x4b57a3
xor bl, bl
lea ecx, [ebp + 8]
mov byte [ebp - 4], 8
call fcn.0043b730
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 9
call fcn.0043b730
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 0xa
call fcn.0043b730
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4b63c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d48fe
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x520b38]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
test edx, edx
jne 0x4b63f5
mov edx, dword [ecx + 4]
cmp byte [ebp + 0x14], 0
je 0x4b6427
push ecx
mov ecx, esp
push edx
call fcn.0043a600
mov eax, dword [ebp + 8]
push ecx
mov ecx, esp
test eax, eax
je 0x4b641b
test byte [eax - 0xe], 8
jne 0x4b641b
inc word [eax - 0x10]
mov eax, dword [ebp + 8]
mov dword [ecx], eax
call fcn.004ae840
add esp, 8
jmp 0x4b64a0
mov bl, byte [ebp + 0x10]
xor eax, eax
test bl, bl
push 0
setne al
push 0x80
lea eax, [eax*2 + 2]
push eax
push 0
push 1
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x4b64a0
cmp esi, 0xffffffff
je 0x4b64a0
mov dword [ebp + 0x14], 0
test bl, bl
je 0x4b6476
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 8]
xor edx, edx
test eax, eax
je 0x4b6482
mov edx, dword [eax - 0xc]
push 0
lea ecx, [ebp + 0x14]
test edx, edx
push ecx
lea ecx, [edx - 1]
cmove ecx, edx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 8]
mov dword [ebp - 4], 1
call fcn.0043b730
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4b9b20
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi + 0x40], 0
je 0x4b9bbe
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4b9b44
mov eax, dword [edi + 0x30]
push ebx
push esi
push eax
push 0
mov ecx, edi
call fcn.004b91e0
mov esi, dword [edi + 0xc]
sub esi, 1
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
js 0x4b9b9a
nop
test esi, esi
js 0x4b9bc3
cmp esi, dword [edi + 0xc]
jge 0x4b9bc3
mov eax, dword [edi + 8]
mov ebx, dword [eax + esi*4]
lea eax, [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp + 8], 0x103
jne 0x4b9b8c
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
sub esi, 1
jns 0x4b9b60
push dword [edi + 0x40]
call ebx
lea esi, [edi + 0x14]
mov dword [edi + 0x40], 0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [edi + 0x3c]
call ebx
pop esi
pop ebx
pop edi
pop ebp
ret 4
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]

Function at 0x4bf250
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x520b38]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
jne 0x4bf289
mov dword [esi + 0xc], 0x80004005
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c35dc
mov esp, ebp
pop ebp
ret 8
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4bf324
cmp dword [ebp + 0xc], eax
je 0x4bf275
push 0x100
lea eax, [ebp - 0x308]
push eax
push 0x100
lea eax, [ebp - 0x408]
push eax
push 0x100
lea eax, [ebp - 0x104]
push eax
push 3
lea eax, [ebp - 0x40c]
push eax
push edi
call dword [0x4e14c8]
add esp, 0x24
test eax, eax
jne 0x4bf26e
push eax
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x208]
push 0x104
push eax
call dword [0x4e149c]
add esp, 0x18
test eax, eax
jne 0x4bf26e
push eax
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
test eax, eax
je 0x4bf324
cmp eax, 0xb7
jne 0x4bf275
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004c35dc
mov esp, ebp
pop ebp
ret 8
Function at 0x4bf5f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004bfd20
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
test esi, esi
jne 0x4bf613
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
cmp edi, 6
je 0x4bf6aa
cmp edi, 5
je 0x4bf6aa
cmp edi, 1
je 0x4bf6aa
cmp edi, 8
je 0x4bf635
cmp edi, 7
jne 0x4bf683
push 0
push 0
push str.CommonFilesUserDataPath
push 2
call fcn.004a6300
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4bf719
push 0x105
call fcn.004c3760
add esp, 4
mov ebx, eax
push ebx
push 0
push 0
push 0x801a
push 0
mov byte [ebx], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x4bf68c
push ebx
call fcn.004c3976
add esp, 4
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [str.COMMON_FILESINTUITQUICKBOOKS_]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4bf694
sub edx, esi
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4bf6a0
jmp 0x4bf708
push 0
push 0
push str.CommonFilesDataPath
push 2
call fcn.004a6300
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4bf719
push 0x105
call fcn.004c3760
add esp, 4
mov ebx, eax
push ebx
push 0
push 0
push 0x8023
push 0
mov byte [ebx], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x4bf67a
mov edx, dword [str.COMMON_FILESINTUITQUICKBOOKS_]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4bf6f3
sub edx, esi
lea edi, [ebx - 1]
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4bf700
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
cmp byte [ebx], 0
je 0x4bf683
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bf727
sub ecx, edx
mov edx, esi
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4bf735
sub edx, edi
lea eax, [ecx + 2]
add eax, edx
push eax
call fcn.004c3760
mov edi, eax
mov dword [ebp - 8], eax
add esp, 4
mov edx, ebx
sub edi, ebx
mov byte [eax], 0
nop dword [eax + eax]
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [edi + edx - 1], cl
test cl, cl
jne 0x4bf760
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bf772
sub ecx, edx
cmp byte [ecx + ebx - 1], 0x5c
je 0x4bf7b5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bf787
sub ecx, edx
cmp byte [ecx + ebx - 1], 0x2f
mov ecx, dword [ebp - 8]
je 0x4bf7b8
lea edi, [ecx - 1]
nop dword [eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4bf7a0
mov ax, word [0x4e20c0]
mov word [edi], ax
jmp 0x4bf7b8
mov ecx, dword [ebp - 8]
mov edx, esi
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4bf7c0
sub esi, edx
lea edi, [ecx - 1]
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4bf7d0
mov ecx, esi
mov dword [ebp - 4], esi
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call fcn.004c3976
mov eax, dword [ebp - 8]
add esp, 4
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4bfe60
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x520b38]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x4bfe8d
call fcn.004bf930
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c35dc
mov esp, ebp
pop ebp
ret
push ebx
xor ebx, ebx
mov dword [ebp - 0x24], ebx
call fcn.004bfbf0
test eax, eax
jne 0x4bfeac
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c35dc
mov esp, ebp
pop ebp
ret
push edi
push 0
push 0
push 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x20], eax
inc eax
push eax
call fcn.004c3760
mov edi, eax
add esp, 4
test edi, edi
je 0x4bff76
push 0
lea eax, [ebp - 0x28]
mov byte [edi], bl
push eax
push dword [ebp - 0x20]
mov dword [ebp - 0x28], ebx
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4bff76
mov eax, dword [ebp - 0x20]
mov byte [edi + eax], bl
lea eax, [ebp - 0x24]
push eax
push edi
lea eax, [esi + 4]
push 0
push eax
call fcn.004c33d0
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x4bff33
cmp dword [ebp - 0x24], 0
jl 0x4bff33
cmp dword [esi + 4], 0
je 0x4bff33
mov ecx, esi
mov ebx, 1
call fcn.004c01a0
jmp 0x4bff76
cmp dword [0x520b2c], 0
mov dword [esi + 0x114], 0xfffffffe
je 0x4bff76
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00449610
push 0x532260
push 0x532278
call fcn.004c01f0
add esp, 8
mov dword [0x520b2c], 0
lea ecx, [ebp - 0x1c]
call fcn.00439040
push edi
call fcn.004c3976
add esp, 4
mov ecx, esi
call fcn.004c02f0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.004c35dc
mov esp, ebp
pop ebp
ret
Function at 0x4c0040
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ddb28
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x520b38]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 4]
test eax, eax
je 0x4c017f
push 0
call fcn.004bfd80
test eax, eax
je 0x4c017f
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x14]
push eax
call fcn.004bf800
mov esi, dword [ebp - 0x14]
mov dword [ebp - 4], 0
test esi, esi
je 0x4c00b3
cmp dword [esi + 4], 0
jne 0x4c00ae
push dword [esi]
call fcn.004c5120
mov dword [esi + 4], eax
mov edi, dword [esi + 4]
jmp 0x4c00b5
xor edi, edi
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4c00b8
sub edi, ecx
lea eax, [edi + 1]
push eax
call fcn.004c3760
add esp, 4
mov dword [ebp - 0x10], eax
test esi, esi
je 0x4c00ec
cmp dword [esi + 4], 0
jne 0x4c00e7
push dword [esi]
call fcn.004c5120
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
jmp 0x4c00ee
xor ecx, ecx
mov edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x4c00f0
push 0
push 0
push 0
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push 0
push eax
push edi
push esi
push dword [ebx + 8]
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4c0143
mov ecx, ebx
mov edi, 1
call fcn.004c01a0
jmp 0x4c0145
xor edi, edi
push esi
call fcn.004c3976
add esp, 4
test edi, edi
jne 0x4c015c
mov dword [ebx + 0x114], 0xfffffffe
mov ecx, ebx
call fcn.004bf340
lea ecx, [ebp - 0x14]
call fcn.00436ea0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebx + 0x114], 0xffffffff
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 0x4c01f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x4c01fe
mov eax, dword [eax]
push 0x14
push str.QuickBooks_Error_Message
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x4c0232
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 0x10
jb 0x4c021e
mov eax, dword [eax]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop ebp
ret