joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4af671
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.004af026
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edi, edi
cmp eax, 0xffffffff
je 0x4af697
mov esi, dword [ebp - 4]
jmp 0x4af6f1
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4af6ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4af6ec
lea eax, [ebp - 4]
push eax
call fcn.004b01ca
mov esi, dword [ebp - 4]
pop ecx
cmp dword [esi - 0xc], edi
je 0x4af6f2
push esi
call fcn.004af671
pop ecx
test eax, eax
je 0x4af6f2
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4af6ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4af6ef
jmp 0x4af6f2
mov esi, dword [ebp - 4]
xor edi, edi
inc edi
lea ecx, [esi - 0x10]
call fcn.004b04f5
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4b1f48
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4b1fd4
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp dword [ebp - 4], ebx
jne 0x4b1fcc
cmp edi, 0x200000
ja 0x4b1fcc
lea eax, [edi + 2]
push eax
call fcn.004d9125
pop ecx
push ebx
lea ecx, [ebp + 8]
mov dword [ebp - 8], eax
push ecx
push edi
push eax
push esi
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b1fcc
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x4b1fcc
mov ecx, dword [ebp - 8]
mov byte [eax + ecx], bl
mov eax, dword [ebp + 8]
mov byte [eax + ecx + 1], bl
inc ebx
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4b24fc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x55b0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push edi
mov dword [ebp - 0xc], ebx
call fcn.004afb89
push eax
lea ecx, [ebp - 8]
call fcn.004aef66
call fcn.004afb89
push eax
lea ecx, [ebp - 0x10]
call fcn.004b135c
push ebx
push ebx
push 2
push ebx
xor eax, eax
mov edi, ebx
inc eax
push eax
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x4b266e
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.004b28a4
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 8]
mov ecx, dword [sym.imp.KERNEL32.dll_WriteFile]
dec eax
je 0x4b2608
dec eax
je 0x4b25b6
dec eax
jne 0x4b25af
push ebx
lea eax, [ebp - 0xc]
mov word [ebp - 0x14], 0xfeff
push eax
push 2
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call ecx
test eax, eax
je 0x4b2663
cmp dword [ebp - 0xc], 2
jne 0x4b2663
mov edi, dword [esi - 0xc]
mov ecx, esi
add edi, edi
jmp 0x4b2646
mov ecx, ebx
jmp 0x4b2646
push ebx
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0xbbef
push eax
push 3
lea eax, [ebp - 8]
mov byte [ebp - 6], 0xbf
push eax
push dword [ebp - 0x18]
call ecx
test eax, eax
je 0x4b2663
cmp dword [ebp - 0xc], 3
jne 0x4b2663
test esi, esi
je 0x4b261b
push esi
call fcn.004d92ea
inc eax
pop ecx
cmp eax, 0x3fffffff
jg 0x4b261b
lea edi, [eax + eax]
mov eax, edi
call fcn.004daae0
mov eax, esp
push 0xfde9
jmp 0x4b262d
test esi, esi
je 0x4b261b
push esi
call fcn.004d92ea
inc eax
pop ecx
cmp eax, 0x3fffffff
jle 0x4b261f
mov eax, ebx
jmp 0x4b2635
lea edi, [eax + eax]
mov eax, edi
call fcn.004daae0
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.004b1c1d
push eax
lea ecx, [ebp - 0x10]
call fcn.004b26c5
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov edi, dword [eax - 0xc]
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
push ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4b2663
cmp dword [ebp - 0xc], edi
push 1
pop eax
cmove ebx, eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b2671
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004b04f5
lea ecx, [esi - 0x10]
call fcn.004b04f5
mov eax, ebx
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d9c43
mov esp, ebp
pop ebp
ret 8
Function at 0x4b4c52
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
je 0x4b4ce3
push esi
mov ecx, edi
call fcn.004b3f5d
push 0x25
pop ecx
cmp cx, ax
jne 0x4b4ce3
push esi
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test ebx, ebx
je 0x4b4ce3
cmp ebx, 0x8003
ja 0x4b4ce3
call fcn.004afb89
push eax
lea ecx, [ebp + 8]
call fcn.004aef66
push ebx
lea ecx, [ebp + 8]
call fcn.004b03cd
push ebx
push eax
push dword [edi]
call fcn.004b4cea
mov ebx, eax
lea ecx, [ebp + 8]
add esp, 0xc
test ebx, ebx
jne 0x4b4cc0
push esi
call fcn.004b0607
jmp 0x4b4cd4
push 0xffffffffffffffff
call fcn.004b5ee5
lea eax, [ebp + 8]
mov ecx, edi
push eax
call fcn.004af11f
mov esi, ebx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004b04f5
mov eax, esi
jmp 0x4b4ce5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4b5048
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x55b0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push esi
call fcn.004d92ea
pop ecx
mov ebx, eax
lea edx, [ebp - 0x214]
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x210]
cmp eax, ebx
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x214], ebx
cmovae ecx, edx
push dword [ecx]
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x4b50a2
xor eax, eax
jmp 0x4b5146
push 0
push dword [ebp + 0x14]
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4b509b
push 0x547988
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.004b6524
lea eax, [ebp - 0x20c]
push eax
call fcn.004d92ea
mov esi, eax
push edi
mov dword [ebp - 0x210], esi
call fcn.004d92ea
pop ecx
pop ecx
mov ecx, dword [ebp - 0x210]
mov edx, eax
sub edx, ebx
add ecx, eax
add esi, edx
mov dword [ebp - 0x214], esi
cmp ecx, ebx
jbe 0x4b509b
lea eax, [esi + 1]
cmp eax, dword [ebp + 0xc]
jae 0x4b509b
mov eax, dword [ebp - 0x210]
lea esi, [eax + eax]
lea eax, [edx + edx]
push eax
lea eax, [edi + ebx*2]
push eax
lea eax, [esi + edi]
push eax
call fcn.004db3b0
push esi
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.004dad60
mov eax, dword [ebp - 0x214]
xor ecx, ecx
add esp, 0x18
mov word [edi + eax*2], cx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d9c43
mov esp, ebp
pop ebp
ret
Function at 0x4b5922
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x55b0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x4b59e4
xor edi, edi
cmp word [esi], di
je 0x4b59e4
push esi
call fcn.004b5c7a
pop ecx
test eax, eax
jne 0x4b59e4
push esi
call fcn.004b5cbb
pop ecx
test eax, eax
je 0x4b59f6
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x408], 0x400
push eax
lea eax, [ebp - 0x408]
mov dword [ebp - 0x404], 2
push eax
lea eax, [ebp - 0x404]
mov dword [ebp - 0x400], edi
push eax
push eax
mov dword [ebp - 0x3fc], edi
mov dword [ebp - 0x3f4], edi
mov dword [ebp - 0x3f0], esi
mov dword [ebp - 0x3e8], edi
mov dword [ebp - 0x3ec], edi
call sub.MPR.dll_WNetGetResourceInformationW
test eax, eax
jne 0x4b59f6
cmp dword [ebp - 0x3fc], edi
je 0x4b59f6
cmp dword [ebp - 0x3fc], 3
jne 0x4b59e4
inc eax
cmp dword [ebp - 0x400], edi
je 0x4b59e6
cmp dword [ebp - 0x400], eax
je 0x4b59e6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004d9c43
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b59e4
and eax, 0x10
jmp 0x4b59e6

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4b5a6b
cmp word [eax], 0
je 0x4b5a6b
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4b6c84
Capabilities:
Create process on windows
Impersonate user

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x55b0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x80], ecx
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x74], ecx
mov ecx, dword [ebp + 0x2c]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], ecx
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x4b6e2e
test edi, edi
je 0x4b6e2e
push ebx
lea ecx, [ebp - 0x64]
call fcn.004b3caa
mov eax, dword [esi + 4]
mov ecx, esi
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x6c]
push 8
push eax
mov dword [ebp - 0x6c], 1
call fcn.004b68e5
xor ebx, ebx
test al, al
je 0x4b6e21
cmp dword [ebp - 0x6c], 1
je 0x4b6d2a
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], ebx
push eax
push 1
push 2
push ebx
push 0xb
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x4b6e21
cmp byte [ebp + 0x1c], bl
je 0x4b6db4
cmp dword [esi + 8], ebx
jne 0x4b6db4
push ebx
push 1
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.004b6913
test al, al
jne 0x4b6d62
cmp dword [ebp - 0x6c], 1
je 0x4b6e21
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b6e21
push 0x20
lea eax, [ebp - 0xa8]
push ebx
push eax
call fcn.004d9c60
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0xa8], 0x20
cmp dword [eax - 0xc], ebx
jne 0x4b6d91
lea ecx, [ebp - 0x64]
call fcn.004b7672
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
je 0x4b6db4
mov eax, dword [ebp - 0x8c]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x28]
movzx esi, al
lea eax, [ebp - 0x70]
push esi
push dword [ebp - 0x68]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x4b6e21
push dword [ebp - 0x88]
push edi
push dword [ebp - 0x84]
push dword [ebp - 0x70]
push dword [ebp + 0x18]
push esi
push dword [ebp - 0x74]
push dword [ebp - 0x80]
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x6c], 1
mov edi, eax
je 0x4b6e0d
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x70]
call sub.USERENV.dll_DestroyEnvironmentBlock
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
setne bl
lea ecx, [ebp - 0x64]
call fcn.004b3e69
mov al, bl
pop ebx
jmp 0x4b6e30
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004d9c43
mov esp, ebp
pop ebp
ret 0x28
Function at 0x4b6f60
Capabilities:
Acquire debug privileges
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
call fcn.004b81d4
lea ecx, [ebp - 0x1c]
call fcn.004b8479
lea ecx, [ebp - 0x1c]
call fcn.004b8e9c
push str.SeDebugPrivilege
lea ecx, [ebp - 0x1c]
call fcn.004b8858
mov eax, 0xc8
xor esi, esi
lea ebx, [eax + 0x14]
mov ecx, edi
push 0xffffffffffffffff
push ebx
call fcn.004b81e2
test al, al
je 0x4b7003
mov eax, dword [edi + 4]
lea ecx, [ebp - 4]
push ecx
shl eax, 2
push eax
push dword [edi]
mov dword [ebp - 4], esi
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4b6fd4
mov eax, dword [ebp - 4]
shr eax, 2
cmp ebx, eax
jb 0x4b6f94
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.004b81e2
jmp 0x4b7012
push 0xffffffffffffffff
push esi
mov ecx, edi
call fcn.004b81e2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x4b6ffc
call esi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x4b7012
mov esi, 0x80004005
jmp 0x4b7012
push 0xffffffffffffffff
push esi
mov ecx, edi
call fcn.004b81e2
mov esi, 0x8007000e
lea ecx, [ebp - 0x1c]
call fcn.004b84b9
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b7023
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x18]
call fcn.004b8479
lea ecx, [ebp - 0x18]
call fcn.004b8e9c
push str.SeDebugPrivilege
lea ecx, [ebp - 0x18]
call fcn.004b8858
xor esi, esi
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x4b7075
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4b706e
call fcn.004b439d
mov esi, eax
jmp 0x4b707f
mov esi, 0x80004005
jmp 0x4b707f
mov dword [edi + 0x230], 1
lea ecx, [ebp - 0x18]
call fcn.004b84b9
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4b789e
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov ebx, ecx
lea ecx, [ebp - 0x18]
push edi
call fcn.004b8479
lea ecx, [ebp - 0x18]
call fcn.004b8e9c
push str.SeDebugPrivilege
lea ecx, [ebp - 0x18]
call fcn.004b8858
mov ecx, ebx
call fcn.004b7841
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4b7923
cmp dword [ebx + 0x18], 0
jne 0x4b78fa
push 0x531a2c
lea ecx, [ebx + 0x14]
call fcn.004b7d9c
mov edi, eax
test edi, edi
js 0x4b793f
mov ecx, dword [ebp + 8]
mov edi, 0x7ff7
push edi
call fcn.004b03cd
push edi
push eax
push esi
lea eax, [ebx + 0x14]
push eax
call fcn.004b7865
mov ecx, dword [ebp + 8]
mov edi, eax
push edi
call fcn.004b5ee5
test edi, edi
jne 0x4b793d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4b7936
call fcn.004b439d
mov edi, eax
jmp 0x4b793f
mov edi, 0x80004005
jmp 0x4b793f
xor edi, edi
test esi, esi
je 0x4b794a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x18]
call fcn.004b84b9
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4b795d
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x55b0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea ecx, [ebp - 0x254]
push edi
mov edi, dword [ebp + 8]
call fcn.004b8479
lea ecx, [ebp - 0x254]
call fcn.004b8e9c
push str.SeDebugPrivilege
lea ecx, [ebp - 0x254]
call fcn.004b8858
call fcn.004afb89
push eax
lea ecx, [ebp - 0x23c]
call fcn.004aef66
lea eax, [ebp - 0x23c]
mov ecx, esi
push eax
call fcn.004b7b72
test eax, eax
jns 0x4b7a5a
lea eax, [ebp - 0x23c]
mov ecx, esi
push eax
call fcn.004b789e
test eax, eax
jns 0x4b7a5a
and dword [ebp - 0x238], 0
mov ecx, esi
and dword [ebp - 8], 0
call fcn.004b7841
push eax
lea ecx, [ebp - 0x238]
call fcn.004b760c
test eax, eax
jne 0x4b7a16
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4b7a0f
call fcn.004b439d
mov esi, eax
jmp 0x4b7a2e
mov esi, 0x80004005
jmp 0x4b7a2e
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x238]
call fcn.004b7aa2
mov esi, eax
test esi, esi
jns 0x4b7a45
cmp dword [ebp - 0x238], 0
je 0x4b7a75
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b7a75
cmp dword [ebp - 0x238], 0
je 0x4b7a5a
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x23c]
call fcn.004b668a
lea eax, [ebp - 0x23c]
mov ecx, edi
push eax
call fcn.004af11f
xor esi, esi
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff0
call fcn.004b04f5
lea ecx, [ebp - 0x254]
call fcn.004b84b9
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004d9c43
mov esp, ebp
pop ebp
ret 4

Function at 0x4b7b72
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x18]
call fcn.004b8479
lea ecx, [ebp - 0x18]
call fcn.004b8e9c
push str.SeDebugPrivilege
lea ecx, [ebp - 0x18]
call fcn.004b8858
mov ecx, edi
call fcn.004b7841
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x4b7bce
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4b7bc7
call fcn.004b439d
mov edi, eax
jmp 0x4b7c25
mov edi, 0x80004005
jmp 0x4b7c25
cmp dword [edi + 0x18], 0
jne 0x4b7c06
push 0x531a2c
lea ecx, [edi + 0x14]
call fcn.004b7d9c
test eax, eax
jns 0x4b7c06
mov ecx, dword [ebp + 8]
mov edi, 0x7ff7
push edi
call fcn.004b03cd
push edi
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
mov ecx, dword [ebp + 8]
push eax
call fcn.004b5ee5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4b7c19
call fcn.004b439d
mov edi, eax
jmp 0x4b7c1e
mov edi, 0x80004005
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x18]
call fcn.004b84b9
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4b93c7
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x55b0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x2f
pop edx
push 0x5c
pop esi
mov dword [ebp - 0x418], esi
test ebx, ebx
je 0x4b946c
push 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004dc76c
lea eax, [ebp - 0x20c]
push eax
call fcn.004d92ea
add esp, 0x10
test eax, eax
je 0x4b9449
movzx ecx, word [ebp + eax*2 - 0x20e]
push 0x2f
pop edx
cmp cx, dx
je 0x4b942d
cmp cx, si
jne 0x4b9449
lea eax, [eax*2 - 2]
cmp eax, 0x208
jae 0x4b955b
xor ecx, ecx
mov word [ebp + eax - 0x20c], cx
lea eax, [ebp - 0x20c]
push eax
call fcn.004b9561
pop ecx
test al, al
jne 0x4b9469
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x2f
pop edx
movzx eax, word [edi]
test ax, ax
je 0x4b954a
mov esi, edi
mov ecx, edi
cmp ax, dx
je 0x4b948a
cmp ax, word [ebp - 0x418]
jne 0x4b948c
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x4b947c
cmp esi, edi
je 0x4b94d6
sub esi, edi
lea eax, [ebp - 0x20c]
and esi, 0xfffffffe
push esi
push edi
push eax
call fcn.004dad60
add esp, 0xc
cmp esi, 0x208
jae 0x4b955b
xor eax, eax
mov word [ebp + esi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.004b93c7
pop ecx
pop ecx
xor eax, eax
mov esi, 0x104
mov word [ebp - 0x414], ax
test ebx, ebx
je 0x4b94f9
push esi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004dc76c
add esp, 0xc
xor eax, eax
mov word [ebp - 0x20e], ax
lea eax, [ebp - 0x414]
push eax
call fcn.004d92ea
sub esi, eax
push esi
push edi
lea eax, [ebp + eax*2 - 0x414]
push eax
call fcn.004dc76c
xor eax, eax
mov word [ebp - 0x20e], ax
lea eax, [ebp - 0x414]
push eax
call fcn.004b9561
add esp, 0x14
test al, al
jne 0x4b954a
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d9c43
mov esp, ebp
pop ebp
ret
call fcn.004dc3e5
int3

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

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret
Function at 0x4b9dd7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x4b9e85
cmp dword [edi + 4], 0xffffffff
jne 0x4b9e85
push esi
lea esi, [edi + 0x244]
push esi
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
call fcn.004d92ea
pop ecx
pop esi
lea eax, [edi + eax*2]
movzx ecx, word [eax + 0x242]
cmp ecx, 0x5c
je 0x4b9e33
push 0x2f
pop edx
cmp cx, dx
je 0x4b9e33
xor ecx, ecx
mov word [eax + 0x244], dx
mov word [eax + 0x246], cx
cmp dword [ebp + 0x10], 1
jne 0x4b9e4e
push dword [ebp + 8]
call fcn.004b9d69
pop ecx
cmp eax, 0xffffffff
jne 0x4b9e4e
mov eax, 0x2000000
jmp 0x4b9e8a
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004bc5b8
add esp, 0x10
test eax, eax
jne 0x4b9e6c
mov eax, dword [ebp - 4]
jmp 0x4b9e8a
push eax
call fcn.004bcd83
pop ecx
xor ecx, ecx
mov dword [edi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
jmp 0x4b9e8a
mov eax, 0x1000000
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4ba400
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movsx eax, al
push esi
mov ecx, dword [edx]
mov esi, 0xff
xor eax, ecx
shr ecx, 8
and eax, esi
mov eax, dword [eax*4 + 0x531c68]
xor eax, ecx
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edx + 8]
inc ecx
mov dword [edx + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, esi
pop esi
xor eax, dword [ecx*4 + 0x531c68]
mov dword [edx + 8], eax
pop ebp
ret

Function at 0x4bc6aa
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x4bc6de
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4bc6d9
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x4bc705
mov edx, dword [edi + 0x1c]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x18]
jbe 0x4bc6ee
mov esi, dword [edi + 0x18]
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.004dad60
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x4bc81c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4bc82a
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x4bc8e5
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x531c68]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x531c68]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x531c68]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x531c68]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x531c68]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x531c68]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x531c68]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x531c68]
dec edi
jne 0x4bc848
pop edi
test esi, esi
je 0x4bc8fe
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x531c68]
inc edx
dec esi
jne 0x4bc8e9
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret