joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f610
Capabilities:
Parse pe header

Disassembly:
push 0xffffffffffffffff
push 0x4f1198
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x502c60]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x502c60]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ecx, dword [ecx + 4]
mov edx, dword [esp + 0x50]
mov edi, dword [esp + 0x4c]
mov ebp, dword [esp + 0x54]
mov eax, dword [ecx + 0x24]
mov dword [esp + 0x18], edx
test eax, eax
jne 0x47f66d
cmp dword [ecx + 0x2c], eax
je 0x47f748
test eax, eax
je 0x47f740
cmp dword [edx + 0x14], 0
je 0x47f740
cmp edi, 0x80000000
jae 0x47f740
test edi, edi
je 0x47f740
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 0x40
push edi
call ebx
test eax, eax
jne 0x47f740
mov eax, 0x5a4d
cmp ax, word [edi]
jne 0x47f740
mov esi, dword [edi + 0x3c]
push 0xf8
add esi, edi
push esi
call ebx
test eax, eax
jne 0x47f740
cmp dword [esi], 0x4550
jne 0x47f740
mov eax, dword [esi + 0x80]
test eax, eax
je 0x47f748
lea esi, [eax + edi]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x14], esi
test eax, eax
je 0x47f737
add eax, edi
lea ecx, [esp + 0x1c]
push eax
call fcn.0045f750
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x48], 0
call fcn.0047f3d0
test eax, eax
mov dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x1c]
sete bl
call fcn.0049f590
test bl, bl
je 0x47f729
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
call fcn.00480120
mov eax, dword [esi + 0x20]
add esi, 0x14
mov dword [esp + 0x14], esi
test eax, eax
jne 0x47f6e1
cmp dword [ebp + 4], 0
setne al
jmp 0x47f74a
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004d17f4
add esp, 0x34
ret 0xc

Function at 0x47fe20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4eca28
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x502c60]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0x44f670
mov eax, dword [esp + 0x2c]
lea esi, [ecx + 0x28]
mov edi, dword [esi]
mov ecx, esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
push eax
push dword [edi + 4]
mov dword [esp + 0x2c], 0
push edi
call fcn.0047f030
mov edx, eax
mov ecx, 0xaaaaaa9
mov eax, dword [esi + 4]
sub ecx, eax
cmp ecx, 1
jae 0x47fe9d
push 0x44f368
call fcn.004d06db
inc eax
mov dword [esi + 4], eax
mov dword [edi + 4], edx
mov eax, dword [edx + 4]
mov dword [eax], edx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 0xc
Function at 0x4861d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4ed40d
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x502c60]
xor eax, esp
mov dword [esp + 0x12c], eax
push esi
push edi
mov eax, dword [0x502c60]
xor eax, esp
push eax
lea eax, [esp + 0x13c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x14c]
mov ecx, esi
mov dword [esp + 0x144], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
call fcn.0049f570
cmp dword [esi + 0x18], 0x10
mov dword [esp + 0x144], 0
mov dword [esp + 0xc], 1
mov dword [esi + 0x14], 0
jb 0x486253
mov eax, dword [esi + 4]
jmp 0x486256
lea eax, [esi + 4]
mov byte [eax], 0
lea eax, [esp + 0x30]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp byte [esp + 0x30], 0
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
jne 0x486289
xor ecx, ecx
jmp 0x486299
lea ecx, [esp + 0x30]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x486290
sub ecx, edx
push ecx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x20]
call fcn.0045c120
mov dword [esp + 0x14], 0x44fa2c
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x14c], 1
push eax
lea ecx, [esi + 4]
call fcn.00465a90
cmp dword [esp + 0x2c], 0x10
mov dword [esp + 0x14], 0x44fa2c
jb 0x4862e7
push dword [esp + 0x18]
call fcn.004d105d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.004d17f4
add esp, 0x13c
ret

Function at 0x488970
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4ed7a8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
mov eax, dword [0x502c60]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebx, ecx
push dword [esp + 0x30]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x44f664
push dword [esp + 0x30]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov byte [esp + 0x20], 0
call fcn.0048cda0
mov byte [esp + 0x18], al
push dword [esp + 0x30]
mov dword [esp + 0x28], 0
push dword [esp + 0x30]
push dword [ebx]
call fcn.004cb010
add esp, 0xc
mov dword [esp + 0x24], 0xffffffff
cmp byte [esp + 0x18], 0
mov dword [esp + 8], 0x44f664
je 0x488a0a
lea ecx, [esp + 8]
call fcn.0048ce80
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x20
ret 8
Function at 0x48c6b0
Capabilities:
Identify system language via api

Disassembly:
mov eax, dword [0x504c98]
push edi
mov edi, ecx
test al, 1
jne 0x48c6d2
or eax, 1
cmp dword [edi + 4], 0
mov dword [0x504c98], eax
sete al
mov byte [0x504c94], al
jmp 0x48c6d7
mov al, byte [0x504c94]
test al, al
jne 0x48c6df
mov al, 1
pop edi
ret
push esi
mov byte [0x504c94], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edx, ax
mov ecx, 8
and edx, 0x3ff
mov eax, edx
or eax, 0x800
xor esi, esi
cmp eax, dword [ecx + 0x44f6e8]
je 0x48c73c
cmp eax, dword [ecx + 0x44f6ec]
je 0x48c73b
cmp eax, dword [ecx + 0x44f6f0]
je 0x48c736
cmp eax, dword [ecx + 0x44f6f4]
je 0x48c731
add ecx, 0x10
add esi, 4
cmp ecx, 0x48
jb 0x48c704
jmp 0x48c741
add esi, 3
jmp 0x48c73c
add esi, 2
jmp 0x48c73c
inc esi
cmp esi, 0x10
jb 0x48c785
xor esi, esi
mov eax, 8
cmp edx, dword [eax + 0x44f6e8]
je 0x48c780
cmp edx, dword [eax + 0x44f6ec]
je 0x48c77f
cmp edx, dword [eax + 0x44f6f0]
je 0x48c77a
cmp edx, dword [eax + 0x44f6f4]
je 0x48c775
add eax, 0x10
add esi, 4
cmp eax, 0x48
jb 0x48c748
jmp 0x48c793
add esi, 3
jmp 0x48c780
add esi, 2
jmp 0x48c780
inc esi
cmp esi, 0x10
jae 0x48c793
push dword [esi*4 + 0x4fe048]
mov ecx, edi
call fcn.0048c810
cmp dword [edi + 4], 0
jne 0x48c7b0
cmp esi, 0x10
jae 0x48c7ac
push dword [esi*4 + 0x4fe048]
mov ecx, edi
call fcn.0048c950
cmp dword [edi + 4], 0
pop esi
jne 0x48c7c0
push dword [0x4fe048]
mov ecx, edi
call fcn.0048c810
cmp dword [edi + 4], 0
jne 0x48c7f7
push dword [0x4fe048]
mov ecx, edi
call fcn.0048c950
cmp dword [edi + 4], 0
jne 0x48c7f7
push 0x44f171
mov ecx, edi
call fcn.0048c810
cmp dword [edi + 4], 0
jne 0x48c7f7
push 0x44f171
mov ecx, edi
call fcn.0048c950
xor eax, eax
cmp dword [edi + 4], eax
pop edi
setne al
ret

Function at 0x48d450
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4edd83
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x502c60]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ecx, dword [0x504ca0]
test ecx, ecx
jne 0x48d4ad
push 0x554
call fcn.004d100c
add esp, 4
mov dword [esp + 4], eax
mov dword [esp + 0x24], 0
test eax, eax
je 0x48d4a5
mov ecx, eax
call fcn.00460530
mov ecx, eax
jmp 0x48d4a7
xor ecx, ecx
mov dword [0x504ca0], ecx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], ecx
mov word [esp + 0xc], 0x100
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 8], 0x44f798
mov byte [esp + 0x18], al
movzx eax, word [0x4fc864]
mov ecx, dword [ecx + 0x54c]
push eax
mov dword [esp + 0x28], 1
call fcn.004cffe0
push eax
push dword [esp + 0x30]
lea ecx, [esp + 0x10]
call fcn.0048d270
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
add esp, 0x24
ret
Function at 0x491160
Capabilities:
Get common file path
Get disk size

Disassembly:
sub esp, 0x138
mov eax, dword [0x502c60]
xor eax, esp
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x140]
push ebx
mov ebx, dword [esp + 0x148]
push ebp
mov ebp, dword [esp + 0x144]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], eax
push eax
push ebp
lea ecx, [edi + 0x3f4]
call fcn.00469560
test eax, eax
jne 0x4911ab
xor al, al
jmp 0x491295
cmp dword [edi + 0x3fc], 0
je 0x4911bc
mov eax, dword [edi + 0x3f8]
jmp 0x4911be
xor eax, eax
push dword [ebx]
mov ecx, edi
push dword [edi + 0x3fc]
push eax
call fcn.004c3ad0
test al, al
je 0x4911a4
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push 0
push 0x5f5e100
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.004d3240
mov esi, eax
mov dword [esp + 0x18], edx
lea eax, [esp + 0x40]
mov dword [esp + 0x14], esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x2c]
mov byte [esp + 0x43], 0
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov edx, dword [esp + 0x28]
xor edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
mov ecx, edx
xor edx, dword [esp + 0x1c]
xor ecx, eax
push 0xffffffffffffffff
xor edx, eax
push edx
push ecx
push esi
mov ecx, edi
call fcn.004c5f30
cmp byte [esp + 0x158], 0
mov byte [esp + 0x13], al
je 0x491295
push dword [esp + 0x20]
push ebp
push dword [edi + 0x2f8]
call fcn.004cb010
push 0xffffffffffffffff
push dword [edi + 0x2f8]
call fcn.004cb070
mov dword [ebx], eax
add esp, 0x14
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004d17f4
add esp, 0x138
ret 0x10
Function at 0x494f30
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4ee6e3
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x502c60]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x10], ebx
mov edi, dword [esp + 0x28]
mov dword [ebx], 0x44f1c4
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
mov dword [ebx + 8], eax
movzx eax, byte [edi + 0xc]
mov byte [ebx + 0xc], al
mov dword [ebx], 0x44f238
lea esi, [ebx + 0x10]
mov dword [esp + 0x20], 0
mov dword [esi], 0x44f1d0
lea ecx, [esi + 8]
movzx eax, byte [edi + 0x14]
mov byte [esi + 4], al
lea eax, [edi + 0x18]
push eax
mov dword [esp + 0x18], esi
call fcn.004950a0
lea eax, [esp + 0x28]
mov byte [esp + 0x20], 1
push eax
lea eax, [edi + 0x24]
push eax
lea ecx, [esi + 0x14]
call fcn.00495000
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x30]
mov dword [esi + 0x20], eax
movzx eax, byte [edi + 0x34]
mov byte [esi + 0x24], al
movzx eax, byte [edi + 0x35]
mov byte [esi + 0x25], al
mov eax, ebx
mov dword [ebx], 0x44f24c
mov dword [esi], 0x44f260
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 4

Function at 0x495150
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ee7b3
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x502c60]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov byte [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
lea ecx, [edi + 0x10]
mov dword [esp + 0x1c], 0
mov byte [ecx], 0
mov dword [esp + 0x10], ecx
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov byte [esp + 0x1c], 1
call fcn.004af4f0
lea ecx, [edi + 0x20]
mov byte [ecx], 0
mov dword [esp + 0x10], ecx
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov byte [esp + 0x1c], 3
call fcn.004afb90
lea esi, [edi + 0x30]
mov byte [esi], 0
mov dword [esp + 0x10], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
push fcn.00498930
push fcn.004a2dd0
push 7
push 0xc
lea eax, [esi + 0x10]
mov byte [esp + 0x2c], 5
push eax
call fcn.004d231b
mov ecx, esi
mov byte [esp + 0x1c], 6
call fcn.004b0500
mov ecx, edi
mov byte [esp + 0x1c], 7
call fcn.004b0af0
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x495260
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ee8c3
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x502c60]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov byte [edi], 0
mov byte [edi + 4], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov byte [edi + 0x34], 0
mov dword [esp + 0x1c], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov byte [edi + 0x64], 0
mov dword [edi + 0x88], 0
mov dword [edi + 0x8c], 0
mov dword [edi + 0x90], 0
lea eax, [edi + 0x94]
lea ecx, [eax + 0x408]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [esp + 0x10], eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
mov byte [esp + 0x1c], 3
cmp eax, 0x1000
jae 0x495336
push 0x1000
call fcn.00477160
mov dword [edi + 0x4a8], 0
mov dword [edi + 0x4ac], 0
mov dword [edi + 0x4b0], 0
mov dword [edi + 0x4b4], 0
mov dword [edi + 0x4b8], 0
mov dword [edi + 0x4bc], 0
mov dword [edi + 0x4c0], 0
mov dword [edi + 0x4c4], 0
mov dword [edi + 0x4c8], 0
mov dword [edi + 0x4cc], 0
mov dword [edi + 0x4d0], 0
mov dword [edi + 0x4d4], 0
mov dword [edi + 0x4d8], 0
mov dword [edi + 0x4dc], 0
mov dword [edi + 0x4e0], 0
mov dword [edi + 0x4e4], 0
mov dword [edi + 0x4e8], 0
mov dword [edi + 0x4ec], 0
mov dword [edi + 0x4f0], 0
mov dword [edi + 0x4f4], 0
mov dword [edi + 0x4f8], 0
mov dword [edi + 0x4fc], 0
mov dword [edi + 0x500], 0
mov dword [edi + 0x504], 0
lea ecx, [edi + 0x508]
mov byte [esp + 0x1c], 0xc
mov dword [edi + 0x508], 0
mov dword [edi + 0x50c], 0
call fcn.00464190
mov dword [edi + 0x508], eax
mov dword [edi + 0x528], 7
xor eax, eax
mov dword [edi + 0x524], 0
mov word [edi + 0x514], ax
mov dword [edi + 0x510], 0x44fa34
mov dword [edi + 0x544], 7
mov dword [edi + 0x540], eax
mov word [edi + 0x530], ax
mov dword [edi + 0x52c], 0x44fa34
lea ecx, [edi + 0x548]
mov byte [esp + 0x1c], 0xf
mov dword [edi + 0x548], eax
mov dword [edi + 0x54c], eax
call fcn.00464130
mov dword [edi + 0x548], eax
lea ecx, [edi + 0x550]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
mov byte [esp + 0x1c], 0x11
cmp eax, 0x400
jae 0x4954ef
push 0x400
call fcn.00477160
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x495650
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ee951
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x502c60]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov byte [esi], 0
lea ecx, [esi + 0x30]
mov eax, dword [esi + 4]
mov dword [esp + 0x14], 2
mov dword [esi + 8], eax
call fcn.004956f0
lea ecx, [esi + 0x20]
mov byte [esp + 0x14], 1
call fcn.00495cb0
lea ecx, [esi + 0x10]
mov byte [esp + 0x14], 0
call fcn.00495cb0
mov eax, dword [esi + 4]
test eax, eax
je 0x4956d0
push eax
call fcn.004d105d
add esp, 4
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x4964c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4eeb56
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x502c60]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [ebx + 0x110]
cmp eax, 0x3d0
jbe 0x496715
call esi
mov esi, dword [ebx + 0x9c]
add esi, 0x3d8
mov dword [ebx + 0x110], eax
mov ecx, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call fcn.0046d120
mov ebp, dword [0x504c8c]
mov dword [esp + 0x58], 0
test ebp, ebp
jne 0x49656c
push 0x24
call fcn.004d100c
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x58], 1
test eax, eax
je 0x49655f
mov ecx, eax
call fcn.0048f350
mov ebp, eax
jmp 0x496561
xor ebp, ebp
mov byte [esp + 0x58], 0
mov dword [0x504c8c], ebp
add ebx, 0x114
mov esi, 2
mov ecx, ebx
call fcn.0045d0f0
test al, al
je 0x4966fa
push dword [ebx + 4]
call fcn.0045cfd0
add esp, 4
test al, al
je 0x49668a
lea esp, [esp]
mov ecx, ebx
call fcn.0045d1e0
test eax, eax
je 0x4966fa
cmp eax, 0xffffffff
jne 0x496607
mov edi, dword [0x504dd8]
test edi, edi
jne 0x4965f7
push 0x4d8
call fcn.004d100c
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
test edi, edi
je 0x4965ea
mov ecx, edi
call fcn.0045c510
mov ecx, edi
mov byte [esp + 0x58], 3
call fcn.0045d650
jmp 0x4965ec
xor edi, edi
mov byte [esp + 0x58], 0
mov dword [0x504dd8], edi
mov eax, dword [edi + 0x3dc]
call eax
test eax, eax
je 0x4966fa
mov eax, dword [ebx + 4]
lea ecx, [ebp + 8]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00498750
push dword [esp + 0x30]
lea eax, [esp + 0x28]
push dword [esp + 0x30]
lea ecx, [ebp + 8]
push eax
call fcn.00491320
mov ecx, ebx
call fcn.0045d4f0
mov ecx, ebx
call fcn.0045cda0
push ebx
push 0x498f50
mov ecx, ebx
call fcn.0045ce50
test al, al
je 0x496677
mov eax, dword [ebx + 4]
lea ecx, [ebp + 8]
mov dword [esp + 0x18], eax
movzx eax, byte [0x504cac]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x48]
push eax
call fcn.00492160
push dword [ebx + 4]
call fcn.0045cfd0
add esp, 4
test al, al
jne 0x4965a0
mov eax, dword [ebx + 4]
lea ecx, [ebp + 8]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00498750
push dword [esp + 0x38]
lea eax, [esp + 0x2c]
push dword [esp + 0x38]
lea ecx, [ebp + 8]
push eax
call fcn.00491320
mov ecx, ebx
call fcn.0045d4f0
mov ecx, ebx
call fcn.0045cda0
push ebx
push 0x498f50
mov ecx, ebx
call fcn.0045ce50
test al, al
je 0x4966fa
mov eax, dword [ebx + 4]
lea ecx, [ebp + 8]
mov dword [esp + 0x18], eax
movzx eax, byte [0x504cac]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x50]
push eax
call fcn.00492160
add ebx, 0x10
dec esi
jne 0x496577
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x58], 0xffffffff
call fcn.0046d300
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49fc00
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4efb26
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x502c60]
xor eax, esp
mov dword [esp + 0x248], eax
push esi
mov eax, dword [0x502c60]
xor eax, esp
push eax
lea eax, [esp + 0x254]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x49fcda
lea eax, [esp + 0x148]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp byte [esp + 0x148], 0
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
jne 0x49fc7a
xor ecx, ecx
jmp 0x49fc8d
lea ecx, [esp + 0x148]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49fc84
sub ecx, edx
push ecx
lea eax, [esp + 0x14c]
push eax
lea ecx, [esp + 0x30]
call fcn.0045c120
mov dword [esp + 0x24], 0x44fa48
lea eax, [esp + 0x24]
mov dword [esp + 0x25c], 0
push eax
mov ecx, esi
call fcn.0049e770
cmp dword [esp + 0x3c], 0x10
mov dword [esp + 0x24], 0x44fa2c
jb 0x49fd82
push dword [esp + 0x28]
jmp 0x49fd7a
cmp dword [esi + 0x18], 0x10
lea eax, [esi + 4]
mov dword [esp + 0x40], 0
jb 0x49fced
mov eax, dword [eax]
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x48]
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
cmp byte [esp + 0x44], 0
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
jne 0x49fd23
xor ecx, ecx
jmp 0x49fd39
lea ecx, [esp + 0x44]
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49fd30
sub ecx, edx
push ecx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x14]
call fcn.0045c120
mov dword [esp + 8], 0x44fa48
lea eax, [esp + 8]
mov dword [esp + 0x25c], 1
push eax
mov ecx, esi
call fcn.0049e770
cmp dword [esp + 0x20], 0x10
mov dword [esp + 8], 0x44fa2c
jb 0x49fd82
push dword [esp + 0xc]
call fcn.004d105d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.004d17f4
add esp, 0x258
ret

Function at 0x49feb0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4efb6b
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x502c60]
xor eax, esp
mov dword [esp + 0x124], eax
push esi
mov eax, dword [0x502c60]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x24]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp byte [esp + 0x24], 0
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
jne 0x49ff1a
xor ecx, ecx
jmp 0x49ff2a
lea ecx, [esp + 0x24]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49ff21
sub ecx, edx
push ecx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.0045c120
mov dword [esp + 8], 0x44fa48
lea eax, [esp + 8]
mov dword [esp + 0x138], 0
push eax
mov ecx, esi
call fcn.0049e770
cmp dword [esp + 0x20], 0x10
mov dword [esp + 8], 0x44fa2c
jb 0x49ff73
push dword [esp + 0xc]
call fcn.004d105d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.004d17f4
add esp, 0x134
ret