joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49f450
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.004bd287
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x49f4b5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x49f4b5
lea edx, [esp]
push edx
call dword [0x5b465c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004b303a
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004b303a
add esp, 0x108
ret

Function at 0x49fb70
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.004bd56a
add esp, 0x18
test eax, eax
je 0x49fb93
cmp eax, 0xffffffff
jne 0x49fb95
xor eax, eax
ret

Function at 0x4a14a0
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 0x4a14b9
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.00482900
push edx
push eax
call fcn.00482930
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x19c], 0
je 0x4a1506
mov eax, dword [ebx + 0x124]
mov ecx, dword [ebx + 0x120]
push eax
push ecx
call fcn.00482900
push edx
push eax
call fcn.00482930
mov ecx, dword [edi + 0x19c]
sub ecx, eax
add esp, 0x10
mov eax, ecx
cmp esi, ecx
jge 0x4a1508
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x4a1bc0
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 0x4a1bf6
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 0x4a1c00
sub eax, edx
push eax
call fcn.00482470
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 0x4a1c55
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 0x4a1c65
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 4]
test eax, eax
je 0x4a1c76
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add esp, 0xc
ret
Function at 0x4a8980
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x55c680
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 0x4a89db
test edi, edi
je 0x4a89d4
mov dword [edi], 0
call fcn.004b1d20
mov dword [edi + 4], eax
xor al, al
jmp 0x4a8ada
cmp eax, 3
je 0x4a8a64
cmp eax, 0xb
je 0x4a8a64
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 0x4a8a20
mov eax, dword [esi]
jmp 0x4a8a22
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.004a8710
add esp, 0x10
cmp dword [esp + 0x24], 0x10
mov bl, al
jb 0x4a8a5c
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004b3245
add esp, 4
test bl, bl
je 0x4a8ad8
xor al, al
jmp 0x4a8ada
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 0x4a8a94
mov eax, dword [esi]
jmp 0x4a8a96
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.004a8710
add esp, 0x10
cmp dword [esp + 0x40], 0x10
mov bl, al
jb 0x4a8ad0
mov edx, dword [esp + 0x2c]
push edx
call fcn.004b3245
add esp, 4
test bl, bl
jne 0x4a89d4
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.004b303a
add esp, 0x48
ret

Function at 0x4a8fe0
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 0x4a8ff3
mov eax, dword [ebx]
jmp 0x4a8ff5
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4a901e
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0xc]
push ebx
push ecx
call fcn.004a8ec0
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 0x4a9035
mov dword [esi], 0
call fcn.004b1d20
mov dword [esi + 4], eax
pop esi
test edi, 0x400
je 0x4a906e
push ebx
call fcn.004a6c40
add esp, 4
test al, al
je 0x4a9063
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 0x4a91a0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x55c858
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 0x4a9218
mov ecx, dword [esi]
jmp 0x4a921a
mov ecx, esi
cmp dword [edi + 0x14], eax
jb 0x4a9223
mov eax, dword [edi]
jmp 0x4a9225
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 0x4a924f
cmp ebp, ebx
je 0x4a928f
mov dword [ebp], ebx
call fcn.004b1d20
mov dword [ebp + 4], eax
jmp 0x4a928f
call fcn.004b1d20
cmp ebp, ebx
jne 0x4a9281
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.004a8240
push 0x5a26c4
lea ecx, [esp + 0x34]
push ecx
call fcn.004b3921
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 0x4a92a3
mov edx, dword [esp + 0x14]
push edx
call fcn.004b3245
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.004b303a
add esp, 0x64
ret
Function at 0x4a96f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x55c958
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 0x4a974b
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.004a526c
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.004a84e0
add esp, 0xc
cmp dword [esp + 0x34], 0x10
jb 0x4a97cc
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004b3245
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.004add80
mov eax, edi
lea edx, [eax + 2]
jmp 0x4a97f0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a97f0
sub eax, edx
sar eax, 1
push eax
push edi
mov ecx, ebp
call fcn.0041cabe
push edi
call fcn.004b7f34
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.004b303a
add esp, 0x38
ret

Function at 0x4a9840
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x55c988
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 0x4a98af
mov eax, dword [esi]
jmp 0x4a98b1
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.004a8710
add esp, 0x10
cmp dword [esp + 0x20], 0x10
jb 0x4a98e4
mov ecx, dword [esp + 0xc]
push ecx
call fcn.004b3245
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.004b303a
add esp, 0x2c
ret
Function at 0x4aaff0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x55cd70
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 0x4ab03c
mov eax, dword [edi]
jmp 0x4ab03e
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4ab05c
push esi
push edi
push ebp
call fcn.004a8ec0
add esp, 0xc
jmp 0x4ab1af
test ebx, 0x400
je 0x4ab16b
cmp dword [edi + 0x14], 8
jb 0x4ab072
mov edx, dword [edi]
jmp 0x4ab074
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 0x4ab090
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.0042b228
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], 0
jae 0x4ab0c1
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 0x4ab0f6
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004b3245
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 0x4ab126
mov eax, dword [esp + 0x1c]
push eax
push edi
push ebp
call fcn.004a8ec0
add esp, 0xc
jmp 0x4ab1af
push edi
call fcn.004a6c40
add esp, 4
test al, al
jne 0x4ab158
push ebx
push edi
call fcn.004a8b00
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 0x4ab1af
push esi
mov dword [esp + 0x4c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4ab17d
mov dword [esi], 0
call fcn.004b1d20
mov dword [esi + 4], eax
push ebx
push edi
mov dword [esp + 0x1c], 3
test bl, 0x10
jne 0x4ab194
mov dword [esp + 0x1c], 2
call fcn.004a8b00
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.004b303a
add esp, 0x38
ret
Function at 0x4ab1d0
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 0x4ab1e3
mov eax, dword [esi]
jmp 0x4ab1e5
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4ab20e
mov eax, dword [esp + 0x1c]
push eax
push esi
mov esi, dword [esp + 0x1c]
push esi
call fcn.004a8ec0
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 0x4ab225
mov dword [edi], 0
call fcn.004b1d20
mov dword [edi + 4], eax
pop edi
test ebx, 0x400
je 0x4ab24f
push esi
call fcn.004a6c40
add esp, 4
push ebx
push esi
mov dword [esp + 0x10], 4
test al, al
jne 0x4ab266
mov dword [esp + 0x10], 9
jmp 0x4ab266
push ebx
push esi
mov dword [esp + 0x10], 3
test bl, 0x10
jne 0x4ab266
mov dword [esp + 0x10], 2
call fcn.004a8b00
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 0x4acdc0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x55d118
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 0x4ace0a
mov eax, dword [edi]
jmp 0x4ace0c
mov eax, edi
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4ace2f
cmp esi, ebx
je 0x4ace28
mov dword [esi], ebx
call fcn.004b1d20
mov dword [esi + 4], eax
mov al, 1
jmp 0x4aced6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov dword [esp + 0x14], ebx
call fcn.004b1d20
mov dword [esp + 0x18], eax
cmp ebp, 0xb7
jne 0x4ace7a
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.004aaff0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
add esp, 0xc
mov dword [esp + 0x20], edx
cmp ecx, 3
jne 0x4ace7a
cmp esi, ebx
je 0x4aced4
mov dword [esi], ebx
call fcn.004b1d20
jmp 0x4aced1
cmp esi, ebx
jne 0x4aceca
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.004b1d20
push eax
push ebp
push edi
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x50]
call fcn.004a8140
push 0x5a26c4
lea ecx, [esp + 0x44]
push ecx
call fcn.004b3921
call fcn.004b1d20
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.004b303a
add esp, 0x74
ret
Function at 0x4b0760
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x55d8aa
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.004b0210
mov esi, dword [esi + 0x10]
mov dword [esp + 0x80], ebp
cmp dword [esp + 0x54], esi
je 0x4b084a
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x34]
cmp esi, 1
jbe 0x4b0801
mov eax, edx
cmp ecx, 8
jae 0x4b07db
lea eax, [esp + 0x34]
movzx eax, word [eax]
cmp eax, 0x2f
je 0x4b07e8
cmp eax, 0x5c
jne 0x4b0801
mov eax, edx
cmp ecx, 8
jae 0x4b07f3
lea eax, [esp + 0x34]
movzx eax, word [eax + 2]
cmp eax, 0x2f
je 0x4b0814
cmp eax, 0x5c
je 0x4b0814
mov eax, edx
cmp ecx, 8
jae 0x4b080c
lea eax, [esp + 0x34]
cmp word [eax + esi*2 - 2], 0x3a
jne 0x4b084a
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 0x4b086e
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 0x4b08a7
and ebx, 0xfffffffd
cmp dword [esp + 0x6c], 8
jb 0x4b08a7
mov edx, dword [esp + 0x58]
push edx
call fcn.004b3245
add esp, 4
test bl, 1
je 0x4b08cf
cmp dword [esp + 0x2c], 8
jb 0x4b08c0
mov eax, dword [esp + 0x18]
push eax
call fcn.004b3245
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 0x4b08e3
mov edx, dword [esp + 0x34]
push edx
call fcn.004b3245
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.004b303a
add esp, 0x70
ret 4
Function at 0x4b2b26
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 0x4b2b4d
call fcn.004b4459
mov dword [eax], esi
call fcn.004b4446
push 0x16
pop esi
mov dword [eax], esi
call fcn.004c0900
mov eax, esi
jmp 0x4b2ba2
test dword [ebp + 0xc], 0xfffffff9
jne 0x4b2b33
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4b2b7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004b446c
pop ecx
call fcn.004b4446
mov eax, dword [eax]
jmp 0x4b2ba2
test al, 0x10
jne 0x4b2ba0
test al, 1
je 0x4b2ba0
test byte [ebp + 0xc], 2
je 0x4b2ba0
call fcn.004b4459
mov dword [eax], 5
call fcn.004b4446
mov dword [eax], 0xd
jmp 0x4b2b71
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4b303a
Capabilities:
Terminate process

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

Function at 0x4b8b77
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 0x4b8b9e
call fcn.004b4459
mov dword [eax], esi
call fcn.004b4446
push 0x16
pop esi
mov dword [eax], esi
call fcn.004c0900
mov eax, esi
jmp 0x4b8bf3
test dword [ebp + 0xc], 0xfffffff9
jne 0x4b8b84
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4b8bcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004b446c
pop ecx
call fcn.004b4446
mov eax, dword [eax]
jmp 0x4b8bf3
test al, 0x10
jne 0x4b8bf1
test al, 1
je 0x4b8bf1
test byte [ebp + 0xc], 2
je 0x4b8bf1
call fcn.004b4459
mov dword [eax], 5
call fcn.004b4446
mov dword [eax], 0xd
jmp 0x4b8bc2
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4d9304
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.004c0a12
and dword [ebp - 0x14], 0
cmp dword [0x5c4008], 0
mov dword [ebp - 0x18], eax
jne 0x4d93b7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4d945f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4d945f
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 0x4d93b7
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 0x4d9410
cmp dword [0x5c4018], ecx
je 0x4d9410
push eax
call esi
push dword [0x5c4018]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4d9410
test ebx, ebx
je 0x4d9410
call edi
test eax, eax
je 0x4d9407
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4d9407
test byte [ebp - 8], 1
jne 0x4d9410
or dword [ebp + 0x10], 0x200000
jmp 0x4d9443
mov eax, dword [0x5c400c]
cmp eax, dword [ebp - 0x18]
je 0x4d9443
push eax
call esi
test eax, eax
je 0x4d9443
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4d9443
mov eax, dword [0x5c4010]
cmp eax, dword [ebp - 0x18]
je 0x4d9443
push eax
call esi
test eax, eax
je 0x4d9443
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5c4008]
call esi
test eax, eax
je 0x4d945f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4d9461
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b303a
leave
ret