joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a5ba0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ecx + 4]
xor edx, edx
push edi
mov dword [ebp - 4], esi
mov ebx, dword [esi + 0x3c]
add ebx, esi
xor edi, edi
movzx ecx, word [ebx + 6]
cmp edx, ecx
jae 0x4a5bfb
movzx eax, word [ebx + 0x14]
lea ecx, [ebx + 0x18]
add eax, edi
add ecx, eax
je 0x4a5bfb
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x4a5bd6
xor esi, esi
jmp 0x4a5bdd
add esi, eax
cmp esi, dword [ebp + 8]
ja 0x4a5be7
mov eax, dword [ecx + 8]
add eax, esi
cmp eax, dword [ebp + 8]
ja 0x4a5bf0
mov esi, dword [ebp - 4]
inc edx
add edi, 0x28
jmp 0x4a5bb6
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4a5e50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 4], ebx
test edi, edi
jne 0x4a5e6e
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 4]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov eax, dword [ebx]
push dword [ecx + 0x78]
mov ecx, ebx
call dword [eax + 4]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x4a5f0b
mov eax, dword [ebp + 8]
cmp eax, 0xffff
ja 0x4a5ea6
pop esi
mov word [edi], ax
mov al, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx]
mov ecx, ebx
push dword [esi + 0x20]
call dword [eax + 4]
mov ecx, dword [esi + 0x18]
mov ebx, eax
mov dword [ebp - 0xc], eax
lea edi, [eax + ecx*4]
cmp eax, edi
je 0x4a5f0b
nop
mov ecx, dword [ebp - 4]
mov eax, edi
sub eax, ebx
sar eax, 2
cdq
sub eax, edx
sar eax, 1
push dword [ebx + eax*4]
lea esi, [ebx + eax*4]
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov ecx, edx
mov dl, byte [edx]
test dl, dl
je 0x4a5ef2
cmp dl, byte [eax]
jne 0x4a5ef2
mov dl, byte [ecx + 1]
inc ecx
inc eax
test dl, dl
jne 0x4a5ee5
movzx eax, byte [eax]
movzx ecx, byte [ecx]
sub ecx, eax
je 0x4a5f16
test ecx, ecx
jle 0x4a5f05
lea ebx, [esi + 4]
jmp 0x4a5f07
mov edi, esi
cmp ebx, edi
jne 0x4a5ec0
pop esi
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov eax, dword [ecx]
push dword [edi + 0x24]
call dword [eax + 4]
sub esi, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
sar esi, 2
mov ax, word [eax + esi*2]
add ax, word [edi + 0x10]
pop esi
pop edi
mov word [ecx], ax
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4a6e71
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.004a6826
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edi, edi
cmp eax, 0xffffffff
je 0x4a6e97
mov esi, dword [ebp - 4]
jmp 0x4a6ef1
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4a6eec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4a6eec
lea eax, [ebp - 4]
push eax
call fcn.004a79ca
mov esi, dword [ebp - 4]
pop ecx
cmp dword [esi - 0xc], edi
je 0x4a6ef2
push esi
call fcn.004a6e71
pop ecx
test eax, eax
je 0x4a6ef2
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4a6eef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4a6eef
jmp 0x4a6ef2
mov esi, dword [ebp - 4]
xor edi, edi
inc edi
lea ecx, [esi - 0x10]
call fcn.004a7cf5
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4a9748
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 0x4a97d4
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 0x4a97cc
cmp edi, 0x200000
ja 0x4a97cc
lea eax, [edi + 2]
push eax
call fcn.004d0695
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 0x4a97cc
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x4a97cc
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 0x4a9cfc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5520a0]
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.004a7389
push eax
lea ecx, [ebp - 8]
call fcn.004a6766
call fcn.004a7389
push eax
lea ecx, [ebp - 0x10]
call fcn.004a8b5c
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 0x4a9e6e
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.004aa0a4
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 8]
mov ecx, dword [sym.imp.KERNEL32.dll_WriteFile]
dec eax
je 0x4a9e08
dec eax
je 0x4a9db6
dec eax
jne 0x4a9daf
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 0x4a9e63
cmp dword [ebp - 0xc], 2
jne 0x4a9e63
mov edi, dword [esi - 0xc]
mov ecx, esi
add edi, edi
jmp 0x4a9e46
mov ecx, ebx
jmp 0x4a9e46
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 0x4a9e63
cmp dword [ebp - 0xc], 3
jne 0x4a9e63
test esi, esi
je 0x4a9e1b
push esi
call fcn.004d085a
inc eax
pop ecx
cmp eax, 0x3fffffff
jg 0x4a9e1b
lea edi, [eax + eax]
mov eax, edi
call fcn.004d2050
mov eax, esp
push 0xfde9
jmp 0x4a9e2d
test esi, esi
je 0x4a9e1b
push esi
call fcn.004d085a
inc eax
pop ecx
cmp eax, 0x3fffffff
jle 0x4a9e1f
mov eax, ebx
jmp 0x4a9e35
lea edi, [eax + eax]
mov eax, edi
call fcn.004d2050
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.004a941d
push eax
lea ecx, [ebp - 0x10]
call fcn.004a9ec5
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 0x4a9e63
cmp dword [ebp - 0xc], edi
push 1
pop eax
cmove ebx, eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4a9e71
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004a7cf5
lea ecx, [esi - 0x10]
call fcn.004a7cf5
mov eax, ebx
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d11b3
mov esp, ebp
pop ebp
ret 8
Function at 0x4ac452
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 0x4ac4e3
push esi
mov ecx, edi
call fcn.004ab75d
push 0x25
pop ecx
cmp cx, ax
jne 0x4ac4e3
push esi
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test ebx, ebx
je 0x4ac4e3
cmp ebx, 0x8003
ja 0x4ac4e3
call fcn.004a7389
push eax
lea ecx, [ebp + 8]
call fcn.004a6766
push ebx
lea ecx, [ebp + 8]
call fcn.004a7bcd
push ebx
push eax
push dword [edi]
call fcn.004ac4ea
mov ebx, eax
lea ecx, [ebp + 8]
add esp, 0xc
test ebx, ebx
jne 0x4ac4c0
push esi
call fcn.004a7e07
jmp 0x4ac4d4
push 0xffffffffffffffff
call fcn.004ad6e5
lea eax, [ebp + 8]
mov ecx, edi
push eax
call fcn.004a691f
mov esi, ebx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004a7cf5
mov eax, esi
jmp 0x4ac4e5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4ac848
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5520a0]
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.004d085a
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 0x4ac8a2
xor eax, eax
jmp 0x4ac946
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 0x4ac89b
push 0x53e748
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.004add24
lea eax, [ebp - 0x20c]
push eax
call fcn.004d085a
mov esi, eax
push edi
mov dword [ebp - 0x210], esi
call fcn.004d085a
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 0x4ac89b
lea eax, [esi + 1]
cmp eax, dword [ebp + 0xc]
jae 0x4ac89b
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.004d2920
push esi
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.004d22d0
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.004d11b3
mov esp, ebp
pop ebp
ret
Function at 0x4ad122
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x5520a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x4ad1e4
xor edi, edi
cmp word [esi], di
je 0x4ad1e4
push esi
call fcn.004ad47a
pop ecx
test eax, eax
jne 0x4ad1e4
push esi
call fcn.004ad4bb
pop ecx
test eax, eax
je 0x4ad1f6
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 0x4ad1f6
cmp dword [ebp - 0x3fc], edi
je 0x4ad1f6
cmp dword [ebp - 0x3fc], 3
jne 0x4ad1e4
inc eax
cmp dword [ebp - 0x400], edi
je 0x4ad1e6
cmp dword [ebp - 0x400], eax
je 0x4ad1e6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004d11b3
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ad1e4
and eax, 0x10
jmp 0x4ad1e6

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4ad26b
cmp word [eax], 0
je 0x4ad26b
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 0x4ae484
Capabilities:
Create process on windows
Impersonate user

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x5520a0]
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 0x4ae62e
test edi, edi
je 0x4ae62e
push ebx
lea ecx, [ebp - 0x64]
call fcn.004ab4aa
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.004ae0e5
xor ebx, ebx
test al, al
je 0x4ae621
cmp dword [ebp - 0x6c], 1
je 0x4ae52a
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 0x4ae621
cmp byte [ebp + 0x1c], bl
je 0x4ae5b4
cmp dword [esi + 8], ebx
jne 0x4ae5b4
push ebx
push 1
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.004ae113
test al, al
jne 0x4ae562
cmp dword [ebp - 0x6c], 1
je 0x4ae621
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4ae621
push 0x20
lea eax, [ebp - 0xa8]
push ebx
push eax
call fcn.004d11d0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0xa8], 0x20
cmp dword [eax - 0xc], ebx
jne 0x4ae591
lea ecx, [ebp - 0x64]
call fcn.004aee72
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 0x4ae5b4
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 0x4ae621
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 0x4ae60d
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.004ab669
mov al, bl
pop ebx
jmp 0x4ae630
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004d11b3
mov esp, ebp
pop ebp
ret 0x28
Function at 0x4ae760
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.004af9d4
lea ecx, [ebp - 0x1c]
call fcn.004afc79
lea ecx, [ebp - 0x1c]
call fcn.004b069c
push str.SeDebugPrivilege
lea ecx, [ebp - 0x1c]
call fcn.004b0058
mov eax, 0xc8
xor esi, esi
lea ebx, [eax + 0x14]
mov ecx, edi
push 0xffffffffffffffff
push ebx
call fcn.004af9e2
test al, al
je 0x4ae803
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 0x4ae7d4
mov eax, dword [ebp - 4]
shr eax, 2
cmp ebx, eax
jb 0x4ae794
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.004af9e2
jmp 0x4ae812
push 0xffffffffffffffff
push esi
mov ecx, edi
call fcn.004af9e2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x4ae7fc
call esi
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x4ae812
mov esi, 0x80004005
jmp 0x4ae812
push 0xffffffffffffffff
push esi
mov ecx, edi
call fcn.004af9e2
mov esi, 0x8007000e
lea ecx, [ebp - 0x1c]
call fcn.004afcb9
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ae823
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.004afc79
lea ecx, [ebp - 0x18]
call fcn.004b069c
push str.SeDebugPrivilege
lea ecx, [ebp - 0x18]
call fcn.004b0058
xor esi, esi
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x4ae875
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4ae86e
call fcn.004abb9d
mov esi, eax
jmp 0x4ae87f
mov esi, 0x80004005
jmp 0x4ae87f
mov dword [edi + 0x230], 1
lea ecx, [ebp - 0x18]
call fcn.004afcb9
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4af09e
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.004afc79
lea ecx, [ebp - 0x18]
call fcn.004b069c
push str.SeDebugPrivilege
lea ecx, [ebp - 0x18]
call fcn.004b0058
mov ecx, ebx
call fcn.004af041
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4af123
cmp dword [ebx + 0x18], 0
jne 0x4af0fa
push 0x5289fc
lea ecx, [ebx + 0x14]
call fcn.004af59c
mov edi, eax
test edi, edi
js 0x4af13f
mov ecx, dword [ebp + 8]
mov edi, 0x7ff7
push edi
call fcn.004a7bcd
push edi
push eax
push esi
lea eax, [ebx + 0x14]
push eax
call fcn.004af065
mov ecx, dword [ebp + 8]
mov edi, eax
push edi
call fcn.004ad6e5
test edi, edi
jne 0x4af13d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4af136
call fcn.004abb9d
mov edi, eax
jmp 0x4af13f
mov edi, 0x80004005
jmp 0x4af13f
xor edi, edi
test esi, esi
je 0x4af14a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x18]
call fcn.004afcb9
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4af15d
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x5520a0]
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.004afc79
lea ecx, [ebp - 0x254]
call fcn.004b069c
push str.SeDebugPrivilege
lea ecx, [ebp - 0x254]
call fcn.004b0058
call fcn.004a7389
push eax
lea ecx, [ebp - 0x23c]
call fcn.004a6766
lea eax, [ebp - 0x23c]
mov ecx, esi
push eax
call fcn.004af372
test eax, eax
jns 0x4af25a
lea eax, [ebp - 0x23c]
mov ecx, esi
push eax
call fcn.004af09e
test eax, eax
jns 0x4af25a
and dword [ebp - 0x238], 0
mov ecx, esi
and dword [ebp - 8], 0
call fcn.004af041
push eax
lea ecx, [ebp - 0x238]
call fcn.004aee0c
test eax, eax
jne 0x4af216
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4af20f
call fcn.004abb9d
mov esi, eax
jmp 0x4af22e
mov esi, 0x80004005
jmp 0x4af22e
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x238]
call fcn.004af2a2
mov esi, eax
test esi, esi
jns 0x4af245
cmp dword [ebp - 0x238], 0
je 0x4af275
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4af275
cmp dword [ebp - 0x238], 0
je 0x4af25a
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x23c]
call fcn.004ade8a
lea eax, [ebp - 0x23c]
mov ecx, edi
push eax
call fcn.004a691f
xor esi, esi
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff0
call fcn.004a7cf5
lea ecx, [ebp - 0x254]
call fcn.004afcb9
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004d11b3
mov esp, ebp
pop ebp
ret 4

Function at 0x4af372
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.004afc79
lea ecx, [ebp - 0x18]
call fcn.004b069c
push str.SeDebugPrivilege
lea ecx, [ebp - 0x18]
call fcn.004b0058
mov ecx, edi
call fcn.004af041
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x4af3ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4af3c7
call fcn.004abb9d
mov edi, eax
jmp 0x4af425
mov edi, 0x80004005
jmp 0x4af425
cmp dword [edi + 0x18], 0
jne 0x4af406
push 0x5289fc
lea ecx, [edi + 0x14]
call fcn.004af59c
test eax, eax
jns 0x4af406
mov ecx, dword [ebp + 8]
mov edi, 0x7ff7
push edi
call fcn.004a7bcd
push edi
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
mov ecx, dword [ebp + 8]
push eax
call fcn.004ad6e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4af419
call fcn.004abb9d
mov edi, eax
jmp 0x4af41e
mov edi, 0x80004005
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x18]
call fcn.004afcb9
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4b0bc7
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x5520a0]
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 0x4b0c6c
push 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004d3cdc
lea eax, [ebp - 0x20c]
push eax
call fcn.004d085a
add esp, 0x10
test eax, eax
je 0x4b0c49
movzx ecx, word [ebp + eax*2 - 0x20e]
push 0x2f
pop edx
cmp cx, dx
je 0x4b0c2d
cmp cx, si
jne 0x4b0c49
lea eax, [eax*2 - 2]
cmp eax, 0x208
jae 0x4b0d5b
xor ecx, ecx
mov word [ebp + eax - 0x20c], cx
lea eax, [ebp - 0x20c]
push eax
call fcn.004b0d61
pop ecx
test al, al
jne 0x4b0c69
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 0x4b0d4a
mov esi, edi
mov ecx, edi
cmp ax, dx
je 0x4b0c8a
cmp ax, word [ebp - 0x418]
jne 0x4b0c8c
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x4b0c7c
cmp esi, edi
je 0x4b0cd6
sub esi, edi
lea eax, [ebp - 0x20c]
and esi, 0xfffffffe
push esi
push edi
push eax
call fcn.004d22d0
add esp, 0xc
cmp esi, 0x208
jae 0x4b0d5b
xor eax, eax
mov word [ebp + esi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.004b0bc7
pop ecx
pop ecx
xor eax, eax
mov esi, 0x104
mov word [ebp - 0x414], ax
test ebx, ebx
je 0x4b0cf9
push esi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004d3cdc
add esp, 0xc
xor eax, eax
mov word [ebp - 0x20e], ax
lea eax, [ebp - 0x414]
push eax
call fcn.004d085a
sub esi, eax
push esi
push edi
lea eax, [ebp + eax*2 - 0x414]
push eax
call fcn.004d3cdc
xor eax, eax
mov word [ebp - 0x20e], ax
lea eax, [ebp - 0x414]
push eax
call fcn.004b0d61
add esp, 0x14
test al, al
jne 0x4b0d4a
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.004d11b3
mov esp, ebp
pop ebp
ret
call fcn.004d3955
int3

Function at 0x4b0d61
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 0x4b15d7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x4b1685
cmp dword [edi + 4], 0xffffffff
jne 0x4b1685
push esi
lea esi, [edi + 0x244]
push esi
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
call fcn.004d085a
pop ecx
pop esi
lea eax, [edi + eax*2]
movzx ecx, word [eax + 0x242]
cmp ecx, 0x5c
je 0x4b1633
push 0x2f
pop edx
cmp cx, dx
je 0x4b1633
xor ecx, ecx
mov word [eax + 0x244], dx
mov word [eax + 0x246], cx
cmp dword [ebp + 0x10], 1
jne 0x4b164e
push dword [ebp + 8]
call fcn.004b1569
pop ecx
cmp eax, 0xffffffff
jne 0x4b164e
mov eax, 0x2000000
jmp 0x4b168a
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004b3dbb
add esp, 0x10
test eax, eax
jne 0x4b166c
mov eax, dword [ebp - 4]
jmp 0x4b168a
push eax
call fcn.004b4586
pop ecx
xor ecx, ecx
mov dword [edi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
jmp 0x4b168a
mov eax, 0x1000000
pop edi
mov esp, ebp
pop ebp
ret 0xc