joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4980a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov ebx, edx
mov edi, ecx
mov eax, dword [0x5a8564]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x24]
push edx
push ecx
push esi
call fcn.00442120
add esp, 0xc
cmp byte [ebp - 0x19], 0
jns 0x4980ce
mov esi, dword [ebp - 0x24]
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
cmp byte [ebp - 0x19], 0
jns 0x4980ec
push dword [ebp - 0x24]
call fcn.005327b0
add esp, 4
cmp dword [ebp + 8], 0
je 0x4981d8
test esi, esi
je 0x4981d8
lea eax, [esi + esi]
test esi, esi
mov ecx, 0xffffffff
cmovns ecx, eax
push ecx
call fcn.005327e3
add esp, 4
mov ecx, edi
mov edi, eax
mov eax, ebx
mov ebx, esi
lea esi, [ebp - 0x24]
push eax
push ecx
push esi
call fcn.00442120
add esp, 0xc
cmp byte [ebp - 0x19], 0
jns 0x498133
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x28], ebx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [ebp - 0x19], 0
jns 0x498150
push dword [ebp - 0x24]
call fcn.005327b0
add esp, 4
test edi, edi
mov ebx, dword [ebp + 8]
je 0x498162
push edi
call fcn.0054c5c4
add esp, 4
jmp 0x49819b
lea esi, [ebp - 0x24]
push 0x86
push str....._base_strings_string_piece.h
push str.BasicStringPiece
push esi
call fcn.00451690
add esp, 0x10
lea ebx, [ebp - 0x14]
push esi
push 0x561302
push ebx
call fcn.00458b50
add esp, 0xc
mov ecx, ebx
mov ebx, dword [ebp + 8]
call fcn.00458cb0
xor eax, eax
lea ecx, [ebp - 0x24]
push eax
push edi
push ecx
call fcn.00442160
add esp, 0xc
cmp byte [ebx + 0xb], 0
mov esi, dword [ebp - 0x28]
jns 0x4981bc
push dword [ebx]
call fcn.005327b0
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 8], eax
movsd xmm0, qword [ebp - 0x24]
movsd qword [ebx], xmm0
test edi, edi
je 0x4981d8
push edi
call fcn.005327ec
add esp, 4
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005327f1
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x49829e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, ecx
lea ecx, [ebp + 8]
mov eax, dword [0x5a8564]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 4]
mov edi, 8
inc eax
cmp eax, 1
ja 0x498413
cmp dword [esi + 0xc], 0
jne 0x498413
lea ebx, [esi + 4]
sub esp, 0x10
movaps xmm0, xmmword [0x560a50]
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov ecx, ebx
push eax
call fcn.00402dca
lea ecx, [ebp + 8]
mov eax, dword [ebx]
mov edi, 0x3b
inc eax
cmp eax, 2
jb 0x498413
lea eax, [esi + 0xc]
mov dword [ebp - 0x1c], eax
push 0x10
call fcn.00532780
add esp, 4
mov edi, eax
mov ecx, eax
call fcn.004d4268
mov eax, dword [ebx]
mov dword [ebp - 0x18], eax
push 0xc
call fcn.00532780
add esp, 4
mov ebx, eax
lea ecx, [ebp + 8]
mov eax, dword [ecx]
mov dword [ecx], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebx], ecx
mov dword [ebx + 4], eax
mov dword [ebx + 8], edi
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x5aca20]
bt edx, ecx
jae 0x49836c
push eax
call fcn.004050a4
add esp, 4
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x5aca20]
bt ecx, eax
jae 0x49838d
push edi
call fcn.00404fac
add esp, 4
jmp 0x498399
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x5b4a20], 1
mov eax, dword [ebp - 0x1c]
mov dword [eax], edi
lea eax, [esi + 8]
mov dword [ebp - 0x18], eax
xor edi, edi
push edi
push 0x10000
push ebx
push 0x498450
push 0x20000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x18]
push eax
call fcn.00402dca
mov eax, dword [esi + 8]
inc eax
cmp eax, 1
ja 0x498401
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x5aca20]
bt edx, ecx
jae 0x4983f4
push eax
call fcn.004050a4
add esp, 4
mov dword [esi], 0
mov edi, 0x3b
jmp 0x498408
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
call fcn.00498898
lea ecx, [ebp + 8]
mov esi, dword [ecx]
test esi, esi
je 0x49842c
mov eax, dword [esi]
mov ebx, dword [eax + 8]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
push 1
call ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005327f1
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x4b7ce0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov eax, dword [0x5a8564]
xor eax, ebp
mov dword [esp + 0x38], eax
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [ecx], 0xffffffff
mov dword [ecx + 4], 0xffffffff
mov dword [ecx + 8], 0xffffffff
call fcn.0043dff0
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [edi]
mov dword [esp], eax
lea ecx, [esp + 0x30]
call fcn.004b9ba0
sub esp, 4
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0
test byte [0x5aca20], 1
je 0x4b7d62
mov dword [esp], 0
call fcn.004050a4
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
cmp dword [esp + 0x30], 0
je 0x4b7dde
lea edi, [esp + 0x18]
nop dword [eax]
mov eax, dword [esp + 0x30]
imul ecx, dword [esp + 0x34], 0x70
add ecx, dword [eax + 0xc]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
movsd xmm0, qword [esp + 0x10]
movsd qword [esp + 8], xmm0
mov dword [esp + 4], ecx
mov dword [esp], edi
call fcn.004b8680
mov dword [esp], edi
mov ecx, dword [ebp + 8]
call fcn.0043e5b0
sub esp, 4
mov ecx, edi
call fcn.0043dd00
lea ecx, [esp + 0x30]
call fcn.004b6ff0
cmp dword [esp + 0x30], 0
setne al
cmp dword [esp + 0x28], 0
setne cl
xor cl, al
jne 0x4b7d80
mov eax, dword [esp + 0x28]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x5aca20]
bt edx, ecx
jae 0x4b7e00
mov dword [esp], eax
call fcn.004050a4
mov eax, dword [esp + 0x30]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x5aca20]
bt edx, ecx
mov esi, dword [ebp + 8]
jae 0x4b7e25
mov dword [esp], eax
call fcn.004050a4
mov ecx, dword [esp + 0x38]
xor ecx, ebp
call fcn.005327f1
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4bdb80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [0x5a8564]
xor eax, ebp
mov dword [esp + 0x38], eax
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ecx], 0xffffffff
mov dword [ecx + 4], 0xffffffff
mov dword [ecx + 8], 0xffffffff
call fcn.0043dff0
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [edi]
mov dword [esp], eax
lea ecx, [esp + 0x30]
call fcn.004b9ba0
sub esp, 4
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0
test byte [0x5aca20], 1
je 0x4bdc01
mov dword [esp], 0
call fcn.004050a4
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
cmp dword [esp + 0x30], 0
je 0x4bdc7e
lea edi, [esp + 0x18]
nop dword [eax]
mov eax, dword [esp + 0x30]
imul ecx, dword [esp + 0x34], 0x70
add ecx, dword [eax + 0xc]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
movsd xmm0, qword [esp + 0x10]
movsd qword [esp + 8], xmm0
mov dword [esp + 4], ecx
mov dword [esp], edi
call fcn.004b8680
mov dword [esp], edi
mov ecx, dword [ebp + 8]
call fcn.0043e5b0
sub esp, 4
mov ecx, edi
call fcn.0043dd00
lea ecx, [esp + 0x30]
call fcn.004b6ff0
cmp dword [esp + 0x30], 0
setne al
cmp dword [esp + 0x28], 0
setne cl
xor cl, al
jne 0x4bdc20
mov eax, dword [esp + 0x28]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x5aca20]
bt edx, ecx
jae 0x4bdca0
mov dword [esp], eax
call fcn.004050a4
mov eax, dword [esp + 0x30]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x5aca20]
bt edx, ecx
mov esi, dword [ebp + 8]
jae 0x4bdcc5
mov dword [esp], eax
call fcn.004050a4
mov ecx, dword [esp + 0x38]
xor ecx, ebp
call fcn.005327f1
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x4c4320
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebp + 0x10]
mov edx, dword [0x5a8564]
xor edx, ebp
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], 0
test cl, cl
je 0x4c4378
lea ecx, [ebp - 0x18]
push ecx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4c439b
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4c43a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp ebx, 0xffffffff
je 0x4c43a7
call fcn.004516c0
jmp 0x4c43a9
or esi, 8
lea ecx, [ebp - 0x18]
push ecx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4c439b
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x14], 0
test esi, esi
jne 0x4c43ed
jmp 0x4c4410
mov byte [edi], 0
jmp 0x4c444d
xor ebx, ebx
jmp 0x4c43b3
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], 0xffffffff
or esi, 8
lea eax, [ebp - 0x14]
push eax
push 2
push 1
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
mov esi, dword [ebp - 0x14]
cmovne eax, esi
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4c4434
lea eax, [ebx + 1]
cmp eax, 2
jae 0x4c4461
mov dword [ebp - 0x14], 0
mov ebx, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [esi + 1]
cmp eax, 2
jb 0x4c4407
mov dword [ebp - 0x14], esi
call fcn.004516c0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, ebx
mov byte [edi], 1
mov ecx, edi
add ecx, 4
lea eax, [ebp - 0x14]
push eax
call fcn.0040bb80
mov eax, dword [ebp - 0x14]
inc eax
cmp eax, 2
jb 0x4c444d
call fcn.004516c0
push dword [ebp - 0x14]
jmp 0x4c4445
mov byte [edi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x4c444d
call fcn.004516c0
push ebx
call fcn.00433080
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005327f1
mov eax, edi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004516c0
push ebx
call fcn.00433080
add esp, 4
jmp 0x4c438b
Function at 0x4c4f00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edx, dword [0x5a8564]
xor edx, ebp
mov dword [ebp - 0x10], edx
mov ecx, dword [ecx]
mov dword [ebp - 0x14], 0xffffffff
or eax, 8
lea edx, [ebp - 0x14]
push edx
push 1
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x4c4f95
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4c4f95
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebx + 1]
cmp eax, 2
jb 0x4c4f62
mov dword [ebp - 0x18], ebx
call fcn.004516c0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [esi], 1
mov ecx, esi
add ecx, 4
lea eax, [ebp - 0x18]
push eax
call fcn.0040bb80
mov eax, dword [ebp - 0x18]
inc eax
cmp eax, 2
jb 0x4c4f98
call fcn.004516c0
push dword [ebp - 0x18]
call fcn.00433080
add esp, 4
jmp 0x4c4f98
mov byte [esi], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005327f1
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x4c4fb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edi, dword [0x5a8564]
xor edi, ebp
mov dword [ebp - 0x10], edi
mov ecx, dword [ecx]
mov dword [ebp - 0x14], 0xffffffff
or eax, 8
lea edi, [ebp - 0x14]
push edi
push 2
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x4c5047
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4c5047
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebx + 1]
cmp eax, 2
jb 0x4c5014
mov dword [ebp - 0x18], ebx
call fcn.004516c0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [esi], 1
mov ecx, esi
add ecx, 4
lea eax, [ebp - 0x18]
push eax
call fcn.0040bb80
mov eax, dword [ebp - 0x18]
inc eax
cmp eax, 2
jb 0x4c504a
call fcn.004516c0
push dword [ebp - 0x18]
call fcn.00433080
add esp, 4
jmp 0x4c504a
mov byte [esi], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005327f1
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x4c621a
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
mov esi, ecx
mov eax, dword [0x5a8564]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x4c623c
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x4c631f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4c6277
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005327f1
mov ecx, esi
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.004c6336
push 2
call fcn.0044f030
add esp, 4
test al, al
je 0x4c631d
call fcn.0044ff30
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x266
push str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
call fcn.004500d0
lea eax, [ebp - 0xb0]
push 0x10
push str.CreateDirectory
push eax
call fcn.0040218b
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x4c62cb
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc4]
push eax
push esi
push ebx
call fcn.00442160
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4c62f0
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push edi
call fcn.0040218b
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x4c6312
push dword [ebp - 0xc4]
call fcn.005327b0
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.00450180
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005327f1
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4c6336
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
mov esi, ecx
mov eax, dword [0x5a8564]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x4c6358
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4c6427
mov bl, 1
test al, 0x10
jne 0x4c64cf
push 2
call fcn.0044f030
add esp, 4
test al, al
je 0x4c64cd
lea ecx, [ebp - 0xb8]
push 2
push 0x255
push str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
call fcn.0044f100
lea eax, [ebp - 0xb0]
push 0x12
push str.GetFileAttributes
push eax
call fcn.0040218b
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x4c63c0
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc4]
push eax
push esi
push ebx
call fcn.00442160
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4c63e5
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push edi
call fcn.0040218b
add esp, 0xc
push 0x11
push str.:_not_a_directory
push eax
call fcn.0040218b
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x4c6417
push dword [ebp - 0xc4]
call fcn.005327b0
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.0044f510
jmp 0x4c64cd
push 2
call fcn.0044f030
add esp, 4
test al, al
je 0x4c64cd
call fcn.0044ff30
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x251
push str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
call fcn.004500d0
lea eax, [ebp - 0xb0]
push 0x12
push str.GetFileAttributes
push eax
call fcn.0040218b
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x4c647b
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc4]
push eax
push esi
push ebx
call fcn.00442160
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4c64a0
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push edi
call fcn.0040218b
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x4c64c2
push dword [ebp - 0xc4]
call fcn.005327b0
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.00450180
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005327f1
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4c79b8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [0x5a8564]
xor eax, ebp
mov dword [ebp - 0x10], eax
movups xmm0, xmmword [edx]
movups xmmword [ebp - 0x20], xmm0
mov esi, dword [ecx + 0x28]
mov ebx, dword [ecx + 0x2c]
cmp esi, ebx
je 0x4c7a0a
mov dword [ebp - 0x24], ecx
lea edi, [ebp - 0x20]
mov ecx, esi
push edi
call fcn.004e4154
test al, al
jne 0x4c79f7
add esi, 0x58
cmp esi, ebx
jne 0x4c79e2
mov esi, ebx
mov eax, dword [ebp - 0x24]
cmp esi, dword [eax + 0x2c]
je 0x4c7a0a
cmp byte [esi + 0x1b], 0
jns 0x4c7a0f
mov eax, dword [esi + 0x10]
jmp 0x4c7a12
xor edi, edi
inc edi
jmp 0x4c7a35
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
shr ecx, 3
and ecx, 2
xor edi, edi
inc edi
cmp eax, 0xffffffff
cmovne edi, ecx
test edi, edi
jne 0x4c7a35
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005327f1
mov eax, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4c8cd4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [ecx + 0x50]
cmp eax, edx
jne 0x4c8ce6
cmp byte [ecx + 0x1b], 0
jns 0x4c8cf3
mov ecx, dword [ecx + 0x10]
jmp fcn.004c8cf6
xor ecx, ecx
cmp eax, 1
sete cl
lea eax, [ecx + ecx*2]
inc eax
ret
add ecx, 0x10
Function at 0x4d8770
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov edi, dword [ebp + 8]
cmp dword [ecx + 8], 0
mov eax, dword [ecx]
jne 0x4d879c
test eax, eax
jne 0x4d879c
xor eax, eax
cmp dword [esi + 0xc], 0
jne 0x4d879c
xor eax, eax
cmp dword [esi + 4], 0
mov edx, 0
je 0x4d87f3
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x4d87bb
call fcn.004516c0
push dword [esi]
call fcn.00433080
add esp, 4
mov dword [esi], 0
xor eax, eax
mov ecx, dword [esi + 4]
lea edx, [ecx + 1]
cmp edx, 2
jb 0x4d87e1
call fcn.004516c0
push dword [esi + 4]
call fcn.00433080
add esp, 4
mov dword [esi + 4], 0
mov eax, dword [esi]
xor ecx, ecx
mov edx, eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, ecx
mov ebx, dword [edi]
cmp edx, ebx
je 0x4d883a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jb 0x4d881e
call fcn.004516c0
push dword [esi]
call fcn.00433080
add esp, 4
mov dword [esi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x4d882d
mov dword [esi], ebx
call fcn.004516c0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 4]
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 4]
cmp eax, ebx
je 0x4d8883
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi + 4]
inc eax
cmp eax, 2
jb 0x4d8869
call fcn.004516c0
push dword [esi + 4]
call fcn.00433080
add esp, 4
mov dword [esi + 4], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x4d8879
mov dword [esi + 4], ebx
call fcn.004516c0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x4d89b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x5a8564]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x4d8a41
mov edi, ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call esi
mov ebx, eax
call esi
lea ecx, [ebp - 0x14]
push 2
push 0
push 0
push ecx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
setne bl
je 0x4d8a45
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
cmp dword [esi], edi
je 0x4d8a52
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jb 0x4d8a2c
mov dword [ebp - 0x18], eax
call fcn.004516c0
push dword [esi]
call fcn.00433080
mov eax, dword [ebp - 0x18]
add esp, 4
mov dword [esi], 0
lea ecx, [edi + 1]
cmp ecx, 2
jb 0x4d8a4b
mov dword [esi], edi
mov esi, eax
call fcn.004516c0
mov eax, esi
jmp 0x4d8a4b
mov bl, 1
jmp 0x4d8a52
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005327f1
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4d8b7c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
call fcn.004d8940
test al, al
je 0x4d8ba1
push 0x32
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea edi, [esi + 0x1c]
xor ebx, ebx
mov ecx, edi
push ebx
call fcn.004d8c16
mov eax, dword [esi + 0x28]
mov dword [esi + 0x28], ebx
test eax, eax
je 0x4d8bc1
push eax
call fcn.0043d890
add esp, 4
lea ebx, [esi + 0x20]
mov eax, dword [esi + 0x20]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x5aca20]
bt edx, ecx
jae 0x4d8be6
push eax
call fcn.004050a4
add esp, 4
xor eax, eax
mov dword [ebx], eax
mov ecx, edi
push eax
call fcn.004d8c16
lea ecx, [esi + 0x18]
call fcn.00402e10
lea ecx, [esi + 0x14]
call fcn.00402e10
lea ecx, [esi + 0x10]
call fcn.00402e10
mov ecx, esi
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.004d88a0