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

Disassembly:
sub esp, 0x108
mov eax, dword [0x5b4a28]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004bd1a7
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x49f3d5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x49f3d5
lea edx, [esp]
push edx
call dword [0x5b465c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004b2f5a
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004b2f5a
add esp, 0x108
ret

Function at 0x49fa90
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.004bd48a
add esp, 0x18
test eax, eax
je 0x49fab3
cmp eax, 0xffffffff
jne 0x49fab5
xor eax, eax
ret

Function at 0x4a13c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1a8]
test esi, esi
jne 0x4a13d9
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.00482820
push edx
push eax
call fcn.00482850
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x19c], 0
je 0x4a1426
mov eax, dword [ebx + 0x124]
mov ecx, dword [ebx + 0x120]
push eax
push ecx
call fcn.00482820
push edx
push eax
call fcn.00482850
mov ecx, dword [edi + 0x19c]
sub ecx, eax
add esp, 0x10
mov eax, ecx
cmp esi, ecx
jge 0x4a1428
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x4a1ae0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4a1b16
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push esi
mov esi, dword [esp + 0x18]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a1b20
sub eax, edx
push eax
call fcn.00482390
add esp, 4
push 0
push eax
mov eax, dword [esp + 0x14]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 2
push edx
call esi
cmp dword [esp + 4], 0x10
jne 0x4a1b75
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 8]
push eax
push ecx
push 2
push edx
call esi
mov eax, dword [esp + 0xc]
pop esi
test eax, eax
je 0x4a1b85
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 4]
test eax, eax
je 0x4a1b96
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add esp, 0xc
ret
Function at 0x4a88a0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x55c580
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5b4a28]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x5b4a28]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x60]
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x64]
cmp eax, 1
jne 0x4a88fb
test edi, edi
je 0x4a88f4
mov dword [edi], 0
call fcn.004b1c40
mov dword [edi + 4], eax
xor al, al
jmp 0x4a89fa
cmp eax, 3
je 0x4a8984
cmp eax, 0xb
je 0x4a8984
push 0x19
push str.boost::filesystem::remove
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
call fcn.004052f0
cmp dword [esi + 0x14], 8
mov dword [esp + 0x54], 1
jb 0x4a8940
mov eax, dword [esi]
jmp 0x4a8942
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
test al, al
lea ecx, [esp + 0x10]
push ecx
sete dl
push edi
movzx eax, dl
push esi
push eax
call fcn.004a8630
add esp, 0x10
cmp dword [esp + 0x24], 0x10
mov bl, al
jb 0x4a897c
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004b3165
add esp, 4
test bl, bl
je 0x4a89f8
xor al, al
jmp 0x4a89fa
push 0x19
xor ebx, ebx
push str.boost::filesystem::remove
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
call fcn.004052f0
cmp dword [esi + 0x14], 8
mov dword [esp + 0x54], ebx
jb 0x4a89b4
mov eax, dword [esi]
jmp 0x4a89b6
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
lea edx, [esp + 0x2c]
push edx
test al, al
sete al
push edi
movzx ecx, al
push esi
push ecx
call fcn.004a8630
add esp, 0x10
cmp dword [esp + 0x40], 0x10
mov bl, al
jb 0x4a89f0
mov edx, dword [esp + 0x2c]
push edx
call fcn.004b3165
add esp, 4
test bl, bl
jne 0x4a88f4
mov al, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004b2f5a
add esp, 0x48
ret

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

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
cmp dword [ebx + 0x14], 8
push edi
jb 0x4a8f13
mov eax, dword [ebx]
jmp 0x4a8f15
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4a8f3e
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0xc]
push ebx
push ecx
call fcn.004a8de0
mov eax, dword [eax]
add esp, 0xc
pop edi
pop ebx
add esp, 8
ret
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4a8f55
mov dword [esi], 0
call fcn.004b1c40
mov dword [esi + 4], eax
pop esi
test edi, 0x400
je 0x4a8f8e
push ebx
call fcn.004a6b60
add esp, 4
test al, al
je 0x4a8f83
mov edx, edi
and dl, 0x10
movzx eax, dl
neg eax
sbb eax, eax
and eax, 7
pop edi
add eax, 4
pop ebx
add esp, 8
ret
pop edi
mov eax, 9
pop ebx
add esp, 8
ret
mov eax, edi
and eax, 0x10
or eax, 0x20
pop edi
shr eax, 4
pop ebx
add esp, 8
ret
Function at 0x4a90c0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x55c758
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5b4a28]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b4a28]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x7c]
mov esi, dword [esp + 0x80]
mov ebp, dword [esp + 0x88]
push 0x1c
xor ebx, ebx
push str.boost::filesystem::copy_file
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.004052f0
mov eax, 8
mov dword [esp + 0x74], ebx
cmp dword [esi + 0x14], eax
jb 0x4a9138
mov ecx, dword [esi]
jmp 0x4a913a
mov ecx, esi
cmp dword [edi + 0x14], eax
jb 0x4a9143
mov eax, dword [edi]
jmp 0x4a9145
mov eax, edi
xor edx, edx
cmp dword [esp + 0x84], ebx
sete dl
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4a916f
cmp ebp, ebx
je 0x4a91af
mov dword [ebp], ebx
call fcn.004b1c40
mov dword [ebp + 4], eax
jmp 0x4a91af
call fcn.004b1c40
cmp ebp, ebx
jne 0x4a91a1
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
push esi
push edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x44]
call fcn.004a8160
push 0x5a268c
lea ecx, [esp + 0x34]
push ecx
call fcn.004b3841
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp], eax
mov dword [ebp + 4], esi
cmp dword [esp + 0x28], 0x10
jb 0x4a91c3
mov edx, dword [esp + 0x14]
push edx
call fcn.004b3165
add esp, 4
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.004b2f5a
add esp, 0x64
ret
Function at 0x4a9610
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x55c858
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5b4a28]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b4a28]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [esp + 0x54]
mov ebp, dword [esp + 0x50]
xor ebx, ebx
push ebx
push ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
cmp esi, ebx
jne 0x4a966b
mov esi, 1
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a518c
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
push 0x1f
push str.boost::filesystem::current_path
lea ecx, [esp + 0x28]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.004052f0
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push ecx
push edi
push esi
mov byte [esp + 0x58], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
sete dl
movzx eax, dl
push eax
call fcn.004a8400
add esp, 0xc
cmp dword [esp + 0x34], 0x10
jb 0x4a96ec
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004b3165
add esp, 4
xor edx, edx
mov dword [ebp + 0x14], 7
mov dword [ebp + 0x10], ebx
mov word [ebp], dx
mov byte [esp + 0x48], 2
call fcn.004adca0
mov eax, edi
lea edx, [eax + 2]
jmp 0x4a9710
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a9710
sub eax, edx
sar eax, 1
push eax
push edi
mov ecx, ebp
call fcn.0041cabe
push edi
call fcn.004b7e54
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004b2f5a
add esp, 0x38
ret

Function at 0x4a9760
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x55c888
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5b4a28]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x5b4a28]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
push 0x1f
push str.boost::filesystem::current_path
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.004052f0
cmp dword [esi + 0x14], 8
mov dword [esp + 0x34], 0
jb 0x4a97cf
mov eax, dword [esi]
jmp 0x4a97d1
mov eax, esi
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
sete dl
movzx eax, dl
push eax
call fcn.004a8630
add esp, 0x10
cmp dword [esp + 0x20], 0x10
jb 0x4a9804
mov ecx, dword [esp + 0xc]
push ecx
call fcn.004b3165
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004b2f5a
add esp, 0x2c
ret
Function at 0x4aaf10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x55cc70
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5b4a28]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b4a28]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, dword [esp + 0x54]
cmp dword [edi + 0x14], 8
mov esi, dword [esp + 0x58]
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x1c], esi
jb 0x4aaf5c
mov eax, dword [edi]
jmp 0x4aaf5e
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4aaf7c
push esi
push edi
push ebp
call fcn.004a8de0
add esp, 0xc
jmp 0x4ab0cf
test ebx, 0x400
je 0x4ab08b
cmp dword [edi + 0x14], 8
jb 0x4aaf92
mov edx, dword [edi]
jmp 0x4aaf94
mov edx, edi
xor eax, eax
mov word [esp + 0x20], ax
mov eax, edx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4aafb0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.0042b21d
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], 0
jae 0x4aafe1
lea eax, [esp + 0x20]
push 0
push 0x2000000
push 3
push 0
push 7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x14], esi
cmp dword [esp + 0x34], 8
mov byte [esp + 0x48], 2
jb 0x4ab016
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004b3165
add esp, 4
xor edx, edx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], dx
cmp esi, 0xffffffff
jne 0x4ab046
mov eax, dword [esp + 0x1c]
push eax
push edi
push ebp
call fcn.004a8de0
add esp, 0xc
jmp 0x4ab0cf
push edi
call fcn.004a6b60
add esp, 4
test al, al
jne 0x4ab078
push ebx
push edi
call fcn.004a8a20
add esp, 8
push esi
mov dword [ebp], 9
mov dword [ebp + 4], eax
mov dword [esp + 0x4c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4ab0cf
push esi
mov dword [esp + 0x4c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4ab09d
mov dword [esi], 0
call fcn.004b1c40
mov dword [esi + 4], eax
push ebx
push edi
mov dword [esp + 0x1c], 3
test bl, 0x10
jne 0x4ab0b4
mov dword [esp + 0x1c], 2
call fcn.004a8a20
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
add esp, 8
mov dword [ebp], ecx
mov dword [ebp + 4], edx
mov eax, ebp
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004b2f5a
add esp, 0x38
ret
Function at 0x4ab0f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x18]
cmp dword [esi + 0x14], 8
jb 0x4ab103
mov eax, dword [esi]
jmp 0x4ab105
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4ab12e
mov eax, dword [esp + 0x1c]
push eax
push esi
mov esi, dword [esp + 0x1c]
push esi
call fcn.004a8de0
add esp, 0xc
mov eax, esi
pop esi
pop ebx
add esp, 8
ret
push edi
mov edi, dword [esp + 0x20]
test edi, edi
je 0x4ab145
mov dword [edi], 0
call fcn.004b1c40
mov dword [edi + 4], eax
pop edi
test ebx, 0x400
je 0x4ab16f
push esi
call fcn.004a6b60
add esp, 4
push ebx
push esi
mov dword [esp + 0x10], 4
test al, al
jne 0x4ab186
mov dword [esp + 0x10], 9
jmp 0x4ab186
push ebx
push esi
mov dword [esp + 0x10], 3
test bl, 0x10
jne 0x4ab186
mov dword [esp + 0x10], 2
call fcn.004a8a20
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
add esp, 8
pop esi
mov dword [eax + 4], ecx
mov dword [eax], edx
pop ebx
add esp, 8
ret
Function at 0x4acce0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x55d018
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x5b4a28]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b4a28]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x8c]
cmp dword [edi + 0x14], 8
mov esi, dword [esp + 0x90]
jb 0x4acd2a
mov eax, dword [edi]
jmp 0x4acd2c
mov eax, edi
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4acd4f
cmp esi, ebx
je 0x4acd48
mov dword [esi], ebx
call fcn.004b1c40
mov dword [esi + 4], eax
mov al, 1
jmp 0x4acdf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov dword [esp + 0x14], ebx
call fcn.004b1c40
mov dword [esp + 0x18], eax
cmp ebp, 0xb7
jne 0x4acd9a
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.004aaf10
mov ecx, dword [eax]
mov edx, dword [eax + 4]
add esp, 0xc
mov dword [esp + 0x20], edx
cmp ecx, 3
jne 0x4acd9a
cmp esi, ebx
je 0x4acdf4
mov dword [esi], ebx
call fcn.004b1c40
jmp 0x4acdf1
cmp esi, ebx
jne 0x4acdea
push 0x23
push str.boost::filesystem::create_directory
lea ecx, [esp + 0x2c]
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.004052f0
mov dword [esp + 0x84], ebx
call fcn.004b1c40
push eax
push ebp
push edi
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x50]
call fcn.004a8060
push 0x5a268c
lea ecx, [esp + 0x44]
push ecx
call fcn.004b3841
call fcn.004b1c40
mov dword [esi], ebp
mov dword [esi + 4], eax
xor al, al
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004b2f5a
add esp, 0x74
ret
Function at 0x4b0680
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x55d7aa
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x5b4a28]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b4a28]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, dword [esp + 0x88]
lea eax, [esp + 0x34]
xor ebp, ebp
push eax
mov esi, ecx
mov dword [esp + 0x18], ebp
call fcn.004b0130
mov esi, dword [esi + 0x10]
mov dword [esp + 0x80], ebp
cmp dword [esp + 0x54], esi
je 0x4b076a
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x34]
cmp esi, 1
jbe 0x4b0721
mov eax, edx
cmp ecx, 8
jae 0x4b06fb
lea eax, [esp + 0x34]
movzx eax, word [eax]
cmp eax, 0x2f
je 0x4b0708
cmp eax, 0x5c
jne 0x4b0721
mov eax, edx
cmp ecx, 8
jae 0x4b0713
lea eax, [esp + 0x34]
movzx eax, word [eax + 2]
cmp eax, 0x2f
je 0x4b0734
cmp eax, 0x5c
je 0x4b0734
mov eax, edx
cmp ecx, 8
jae 0x4b072c
lea eax, [esp + 0x34]
cmp word [eax + esi*2 - 2], 0x3a
jne 0x4b076a
push 0xffffffffffffffff
xor ecx, ecx
push ebp
lea edx, [esp + 0x3c]
mov word [esp + 0x20], cx
mov esi, 7
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ebp
call fcn.0041bb97
lea eax, [esp + 0x18]
mov byte [esp + 0x80], 1
lea ebx, [esi - 6]
jmp 0x4b078e
mov esi, 7
xor eax, eax
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebp
mov word [esp + 0x58], ax
mov ebx, 2
lea eax, [esp + 0x58]
mov dword [esp + 0x80], ebx
push 0xffffffffffffffff
xor ecx, ecx
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebp
push ebp
mov word [edi], cx
push eax
mov ecx, edi
mov dword [esp + 0x20], ebx
call fcn.0041bb97
or ebx, 4
test bl, 2
je 0x4b07c7
and ebx, 0xfffffffd
cmp dword [esp + 0x6c], 8
jb 0x4b07c7
mov edx, dword [esp + 0x58]
push edx
call fcn.004b3165
add esp, 4
test bl, 1
je 0x4b07ef
cmp dword [esp + 0x2c], 8
jb 0x4b07e0
mov eax, dword [esp + 0x18]
push eax
call fcn.004b3165
add esp, 4
xor ecx, ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], cx
cmp dword [esp + 0x48], 8
jb 0x4b0803
mov edx, dword [esp + 0x34]
push edx
call fcn.004b3165
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004b2f5a
add esp, 0x70
ret 4
Function at 0x4b2a46
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4b2a6d
call fcn.004b4379
mov dword [eax], esi
call fcn.004b4366
push 0x16
pop esi
mov dword [eax], esi
call fcn.004c0820
mov eax, esi
jmp 0x4b2ac2
test dword [ebp + 0xc], 0xfffffff9
jne 0x4b2a53
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4b2a9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004b438c
pop ecx
call fcn.004b4366
mov eax, dword [eax]
jmp 0x4b2ac2
test al, 0x10
jne 0x4b2ac0
test al, 1
je 0x4b2ac0
test byte [ebp + 0xc], 2
je 0x4b2ac0
call fcn.004b4379
mov dword [eax], 5
call fcn.004b4366
mov dword [eax], 0xd
jmp 0x4b2a91
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4b2f5a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5b4a28]
jne 0x4b2f64
repz ret
jmp fcn.004c0f4c

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4b8abe
call fcn.004b4379
mov dword [eax], esi
call fcn.004b4366
push 0x16
pop esi
mov dword [eax], esi
call fcn.004c0820
mov eax, esi
jmp 0x4b8b13
test dword [ebp + 0xc], 0xfffffff9
jne 0x4b8aa4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4b8aeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004b438c
pop ecx
call fcn.004b4366
mov eax, dword [eax]
jmp 0x4b8b13
test al, 0x10
jne 0x4b8b11
test al, 1
je 0x4b8b11
test byte [ebp + 0xc], 2
je 0x4b8b11
call fcn.004b4379
mov dword [eax], 5
call fcn.004b4366
mov dword [eax], 0xd
jmp 0x4b8ae2
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4d9224
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5b4a28]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004c0932
and dword [ebp - 0x14], 0
cmp dword [0x5c4008], 0
mov dword [ebp - 0x18], eax
jne 0x4d92d7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4d937f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4d937f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x5c4008], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x5c400c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5c4010], eax
call edi
push eax
call esi
mov dword [0x5c4018], eax
test eax, eax
je 0x4d92d7
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5c4014], eax
mov eax, dword [0x5c4014]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4d9330
cmp dword [0x5c4018], ecx
je 0x4d9330
push eax
call esi
push dword [0x5c4018]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4d9330
test ebx, ebx
je 0x4d9330
call edi
test eax, eax
je 0x4d9327
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4d9327
test byte [ebp - 8], 1
jne 0x4d9330
or dword [ebp + 0x10], 0x200000
jmp 0x4d9363
mov eax, dword [0x5c400c]
cmp eax, dword [ebp - 0x18]
je 0x4d9363
push eax
call esi
test eax, eax
je 0x4d9363
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4d9363
mov eax, dword [0x5c4010]
cmp eax, dword [ebp - 0x18]
je 0x4d9363
push eax
call esi
test eax, eax
je 0x4d9363
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5c4008]
call esi
test eax, eax
je 0x4d937f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4d9381
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b2f5a
leave
ret