joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a2690
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x85fe6e
push eax
mov eax, dword [0x9dce80]
mov dword fs:[0], esp
sub esp, 0x9c
test eax, eax
push ebx
push esi
mov esi, ecx
je 0x4a26d1
push str.CLogonSettingMgr::CreateCheckSettingEventTask
push str.LogonSettingMgr
push 0xffffffffffffffff
push 0x9dc5ec
call fcn.006600d0
add esp, 0x10
push 0x18
call fcn.008325b4
add esp, 4
mov dword [esp + 0x48], eax
test eax, eax
mov dword [esp + 0xac], 0
je 0x4a2703
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, eax
call fcn.00579760
jmp 0x4a2705
xor eax, eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
mov ebx, 1
push eax
add esi, 0x38
push ebx
push ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc4], 0xffffffff
mov dword [eax], esi
mov dword [eax + 4], 0x4139c0
call fcn.005794a0
lea ecx, [esp + 0x4c]
mov dword [esp + 0xac], ebx
mov dword [esp + 0x44], ebx
call fcn.005801f0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x44]
mov byte [esp + 0xac], 2
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edx, [esp + 0x4c]
mov ecx, 0x9cf4c8
push edx
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], 0x1388
call fcn.0057f840
lea ecx, [esp + 0x4c]
mov byte [esp + 0xac], bl
call fcn.00579500
lea ecx, [esp + 8]
mov dword [esp + 0xac], 0xffffffff
call fcn.00579500
mov ecx, dword [esp + 0xa4]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa8
ret
Function at 0x4a4160
Capabilities:
Get session user name

Disassembly:
sub esp, 0xcc
xor eax, eax
push ebx
mov ebx, dword [esp + 0xd8]
push ebp
mov ebp, dword [esp + 0xd8]
lea ecx, [ebx + ebx]
push esi
mov edx, ecx
push edi
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.00662480
test eax, eax
je 0x4a4226
push 0x41
push 0
push 1
push 0x94590c
call dword [sym.imp.USER32.dll_OpenDesktopW]
mov esi, eax
test esi, esi
jne 0x4a41bc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push eax
push 0x4a42c0
push esi
call dword [sym.imp.USER32.dll_EnumDesktopWindows]
push esi
call dword [sym.imp.USER32.dll_CloseDesktop]
lea ecx, [esp + 0x14]
push ecx
call fcn.005fc40b
add esp, 4
cmp eax, ebx
jb 0x4a4208
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xcc
ret
lea edx, [esp + 0x14]
push edx
push ebp
call fcn.005fc492
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x18], 0x64
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov esi, eax
test esi, esi
je 0x4a4296
lea edx, [esp + 0x14]
push edx
call fcn.005fc40b
add esp, 4
cmp eax, ebx
jb 0x4a4278
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xcc
ret
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.005fc492
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4dd
jne 0x4a42a8
mov esi, 1
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret

Function at 0x4aa232
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x8608c9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
mov eax, dword [esp + 0x90]
push esi
mov esi, ecx
push 0xca
lea ecx, [esp + 0xc]
mov dword [esi + 0xc], eax
call fcn.004b5e30
lea ecx, [esp + 0x10]
mov dword [esp + 0x8c], 0
call fcn.004df100
mov ecx, dword [0x9d1254]
mov edx, dword [esi + 0xc]
mov eax, 1
mov dword [esp + 0x54], ecx
mov byte [esp + 0x8c], al
mov dword [esp + 0x50], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, 0x9cded8
mov dword [esp + 0x4c], edx
call fcn.004dd8c0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x8c], 5
call fcn.00831eeb
lea ecx, [esp + 0x4c]
mov byte [esp + 0x8c], 4
call fcn.00636c90
lea ecx, [esp + 0x40]
mov byte [esp + 0x8c], 3
call fcn.00617ec0
lea ecx, [esp + 0x30]
mov byte [esp + 0x8c], 2
call fcn.0061ebe0
lea edx, [esp + 0x18]
mov dword [esp + 4], edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x8c], 7
call fcn.00831eeb
lea ecx, [esp + 0x28]
mov byte [esp + 0x8c], 6
call fcn.00831eeb
lea ecx, [esp + 0x10]
mov byte [esp + 0x8c], 0
call fcn.004b5e20
lea ecx, [esp + 8]
mov dword [esp + 0x8c], 0xffffffff
call fcn.004b5e20
mov ecx, dword [esp + 0x84]
pop esi
mov dword fs:[0], ecx
add esp, 0x8c
ret 4
Function at 0x4ae340
Capabilities:
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x8619a8
push eax
mov dword fs:[0], esp
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov edi, dword [esp + 0x20]
push 0
push edi
push ebx
call fcn.0066d200
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4ae3cd
mov eax, dword [0x8ab26c]
mov dword [esp + 0x20], eax
push edi
lea ecx, [esp + 0x24]
push str._s.tmp
push ecx
mov dword [esp + 0x20], esi
call fcn.0061aed0
mov edx, dword [esp + 0x2c]
push esi
push edx
push ebx
call fcn.0066d200
add esp, 0x18
test eax, eax
je 0x4ae3bc
mov eax, dword [esp + 0x20]
push 5
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [esp + 0x24]
mov esi, eax
mov dword [ecx], 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.00617ec0
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0xc

Function at 0x4b2a20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x862178
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0x1388
lea eax, [esi + 0x10]
lea ecx, [esi + 4]
push 0
push eax
mov dword [eax], ecx
push 0
push 2
lea ecx, [esp + 0x1c]
mov dword [esi + 8], esi
mov dword [esi + 0x14], 0x4139e0
call fcn.005794a0
lea edx, [esp + 4]
mov ecx, 0x9cf1a8
push edx
mov dword [esp + 0x50], 0
call fcn.0057a890
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x14]
mov dword [esi + 0x30], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x38], edx
mov edx, dword [esp + 0x20]
mov dword [esi + 0x40], ecx
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x4c], ecx
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x44], edx
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x58], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x50], edx
mov edx, dword [esp + 0x38]
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x64], ecx
lea ecx, [esp + 4]
mov dword [esi + 0x5c], edx
mov dword [esi + 0x60], eax
mov dword [esp + 0x4c], 0xffffffff
call fcn.00579500
mov ecx, dword [esp + 0x44]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x4c
ret

Function at 0x4b3ae0
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 4], edi
jne 0x4b3b25
call fcn.006640f0
mov ecx, dword [esi + 8]
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, edi
mov dword [esi + 4], eax
je 0x4b3b25
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4b3b18
pop edi
mov eax, 1
pop esi
ret
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], edi
mov eax, edi
pop edi
pop esi
ret
Function at 0x4b3c20
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
call fcn.004b3d90
call fcn.00662480
test eax, eax
mov eax, str.netapi32.dll
jne 0x4b3c3b
mov eax, str.svrapi.dll
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi + 0x30], eax
je 0x4b3d82
push edi
call fcn.00662480
test eax, eax
je 0x4b3cf9
mov eax, dword [esi + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NetApiBufferFree
push eax
call edi
mov ecx, dword [esi + 0x30]
push str.NetShareAdd
push ecx
mov dword [esi + 4], eax
call edi
mov edx, dword [esi + 0x30]
push str.NetShareDel
push edx
mov dword [esi + 8], eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x30]
push str.NetShareGetInfo
push eax
call edi
mov ecx, dword [esi + 0x30]
push str.NetShareSetInfo
push ecx
mov dword [esi + 0x10], eax
call edi
mov edx, dword [esi + 0x30]
push str.NetShareEnum
push edx
mov dword [esi + 0x14], eax
call edi
mov ecx, dword [esi + 4]
mov dword [esi + 0x18], eax
test ecx, ecx
je 0x4b3d6c
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4b3d6c
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4b3d6c
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4b3d6c
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x4b3d6c
test eax, eax
je 0x4b3d6c
mov dword [esi + 0x38], 1
jmp 0x4b3d6c
mov eax, dword [esi + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NetShareAdd
push eax
call edi
mov ecx, dword [esi + 0x30]
push str.NetShareDel
push ecx
mov dword [esi + 0x1c], eax
call edi
mov edx, dword [esi + 0x30]
push str.NetShareGetInfo
push edx
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x30]
push str.NetShareSetInfo
push eax
call edi
mov ecx, dword [esi + 0x30]
push str.NetShareEnum
push ecx
mov dword [esi + 0x28], eax
call edi
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x2c], eax
test ecx, ecx
je 0x4b3d6c
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4b3d6c
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x4b3d6c
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x4b3d6c
test eax, eax
je 0x4b3d6c
mov dword [esi + 0x34], 1
mov eax, dword [esi + 0x34]
pop edi
test eax, eax
jne 0x4b3d82
mov eax, dword [esi + 0x38]
test eax, eax
jne 0x4b3d82
mov ecx, esi
call fcn.004b3d90
pop esi
ret
Function at 0x4b5980
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x208
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x4b599d
mov eax, 1
pop esi
add esp, 0x208
ret
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
push str.OAgentTray.dll
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.00404e20
push eax
lea eax, [esp + 0x10]
push 0x92ecec
push eax
call fcn.005fe023
add esp, 0x10
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi + 4], eax
je 0x4b5ad5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x94a9c8
push eax
call edi
mov edx, dword [esi + 4]
push 0x94a9c0
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
push str.UserAutoLogin
push eax
call edi
mov ecx, dword [esi + 4]
push str.UserLogin
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi + 4]
push str.UserLogout
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 4]
push str.GetUserInfo
push eax
call edi
mov ecx, dword [esi + 4]
push str.UserLogonEx
push ecx
mov dword [esi + 0x20], eax
call edi
mov edx, dword [esi + 4]
push str.UserLogoutEx
push edx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x28], eax
mov eax, dword [esi + 4]
push str.CancelCommitUser
push eax
call edi
mov ecx, dword [esi + 4]
push str.ChangePwd
push ecx
mov dword [esi + 0x2c], eax
call edi
mov edx, dword [esi + 4]
push str.UserRegister
push edx
mov dword [esi + 0x30], eax
call edi
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x34], eax
test ecx, ecx
je 0x4b5ad5
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4b5ad5
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x4b5ad5
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4b5ad5
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x4b5ad5
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4b5ad5
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x4b5ad5
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x4b5ad5
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x4b5ad5
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x4b5ad5
test eax, eax
je 0x4b5ad5
mov dword [esi + 8], 1
mov eax, dword [esi + 8]
pop edi
test eax, eax
jne 0x4b5ae4
mov ecx, esi
call fcn.004b5af0
mov eax, dword [esi + 8]
pop esi
add esp, 0x208
ret
Function at 0x4b5e90
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x862383
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x8ab26c]
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
lea edi, [esi + 4]
mov dword [edi], eax
mov dword [esi], 0x8984fc
mov eax, dword [0x8ab26c]
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov byte [esp + 0x24], 4
test eax, eax
je 0x4b5f02
call fcn.006edd70
push eax
lea ecx, [esp + 0x18]
push str.__lu
push ecx
call fcn.0061aed0
add esp, 0xc
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4b5f23
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea edx, [esp + 0x14]
push str.__lu
push edx
call fcn.0061aed0
add esp, 0xc
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4b5f44
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [esp + 0x10]
push str.__lu
push eax
call fcn.0061aed0
add esp, 0xc
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4b5f65
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [esp + 0xc]
push 0x94aa78
push ecx
call fcn.0061aed0
add esp, 0xc
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
push edx
call fcn.00617650
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x38]
push edx
push eax
push ecx
push str._s_s_s_s_s
push edi
mov byte [esp + 0x40], 5
call fcn.0061aed0
add esp, 0x1c
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 4
call fcn.00617ec0
lea ecx, [esp + 8]
mov byte [esp + 0x24], 3
call fcn.00617ec0
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 2
call fcn.00617ec0
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 1
call fcn.00617ec0
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call fcn.00617ec0
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0x14
Function at 0x4b6030
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x8623b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x8ab26c]
push esi
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov byte [esp + 0x1c], 3
cmp eax, 0xffffffff
je 0x4b6089
push eax
lea eax, [esp + 0x14]
push str.__lu
push eax
call fcn.0061aed0
add esp, 0xc
mov eax, dword [esp + 0x2c]
cmp eax, 0xffffffff
je 0x4b60a5
push eax
lea ecx, [esp + 0x10]
push str.__lu
push ecx
call fcn.0061aed0
add esp, 0xc
mov eax, dword [esp + 0x30]
cmp eax, 0xffffffff
je 0x4b60c1
push eax
lea edx, [esp + 0xc]
push str.__lu
push edx
call fcn.0061aed0
add esp, 0xc
mov eax, dword [esp + 0x34]
cmp eax, 0xffffffff
je 0x4b60dd
push eax
lea eax, [esp + 8]
push 0x94aa78
push eax
call fcn.0061aed0
add esp, 0xc
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00617650
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
add esi, 4
push str._s_s_s_s_s
push esi
mov byte [esp + 0x38], 4
call fcn.0061aed0
add esp, 0x1c
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 3
call fcn.00617ec0
lea ecx, [esp + 4]
mov byte [esp + 0x1c], 2
call fcn.00617ec0
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 1
call fcn.00617ec0
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call fcn.00617ec0
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00617ec0
mov ecx, dword [esp + 0x14]
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x14

Function at 0x4b6210
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x862417
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x8ab26c]
push esi
mov esi, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 0x18], 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov byte [esp + 0x18], 2
test eax, eax
je 0x4b625c
push 0x9457b4
jmp 0x4b6261
push 0x9457a4
lea ecx, [esp + 8]
call fcn.006181a0
mov eax, dword [esi + 4]
mov ecx, dword [esp + 4]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x93a244
push edx
call fcn.0061aed0
mov esi, dword [esp + 0x30]
add esp, 0x10
lea eax, [esp + 8]
mov ecx, esi
push eax
call fcn.00617440
mov dword [esp + 0xc], 1
lea ecx, [esp + 4]
mov byte [esp + 0x18], 1
call fcn.00617ec0
lea ecx, [esp + 8]
mov byte [esp + 0x18], 0
call fcn.00617ec0
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 8
Function at 0x4b67b0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x862498
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, dword [esp + 0x60]
or ebp, 0xffffffff
cmp esi, ebp
jne 0x4b67f9
push 0x84
push 1
call fcn.004b8230
add esp, 8
xor eax, eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret
lea ecx, [esp + 0x1c]
call fcn.004a4640
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0x80]
push ecx
mov ecx, dword [esp + 0x80]
push edx
mov edx, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0x80]
push ecx
mov ecx, dword [esp + 0x80]
push edx
mov edx, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0x80]
push ecx
push edx
lea ecx, [esp + 0x40]
xor ebx, ebx
push eax
push ecx
mov dword [esp + 0x84], ebx
call fcn.004b69f0
add esp, 0x2c
test eax, eax
jne 0x4b6880
push 0x8d
push 1
call fcn.004b8230
add esp, 8
jmp 0x4b6923
lea edx, [esp + 0xc]
lea ecx, [esp + 0x1c]
push edx
call fcn.004a4750
mov eax, dword [esp + 0xc]
mov byte [esp + 0x58], 1
cmp dword [eax - 8], ebx
jne 0x4b68cd
lea ecx, [esp + 0xc]
mov byte [esp + 0x58], bl
call fcn.00617ec0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x58], ebp
call fcn.004a46d0
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret
lea ecx, [esp + 0x60]
call fcn.00636b60
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x60]
push edx
mov byte [esp + 0x5c], 2
mov ecx, dword [eax - 8]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
call fcn.004b8050
add esp, 0xc
test eax, eax
jne 0x4b6944
push 0x9a
push 0x11
call fcn.004b8230
add esp, 8
lea ecx, [esp + 0x60]
mov byte [esp + 0x58], 1
call fcn.00636c90
lea ecx, [esp + 0xc]
mov byte [esp + 0x58], bl
call fcn.00617ec0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x58], ebp
call fcn.004a46d0
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push ebx
push ebx
push esi
call edi
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
push esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
call fcn.004b7e80
add esp, 0xc
test eax, eax
je 0x4b6989
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x4b697f
cmp dword [esp + 0x14], ebx
je 0x4b6989
lea ecx, [esp + 0x14]
push ebx
push ecx
push eax
push esi
call edi
lea edx, [esp + 0x1c]
push ebx
push edx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x24], ebx
call fcn.00636d30
push eax
lea ecx, [esp + 0x70]
call fcn.00637460
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0x64]
mov esi, eax
mov byte [esp + 0x5c], 1
call fcn.00636c90
lea ecx, [esp + 0x10]
mov byte [esp + 0x5c], bl
call fcn.00617ec0
lea ecx, [esp + 0x20]
mov dword [esp + 0x5c], ebp
call fcn.004a46d0
mov ecx, dword [esp + 0x54]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret
Function at 0x4b7e80
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x862591
push eax
mov dword fs:[0], esp
sub esp, 0x390
push esi
mov esi, dword [esp + 0x3a4]
cmp esi, 0xffffffff
jne 0x4b7ecf
push 0x37f
push 1
call fcn.004b8230
add esp, 8
xor eax, eax
pop esi
mov ecx, dword [esp + 0x390]
mov dword fs:[0], ecx
add esp, 0x39c
ret
push ebx
push ebp
push edi
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
call fcn.00469e90
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x1c]
xor edi, edi
push 1
push eax
push edi
push esi
mov dword [esp + 0x3b8], edi
mov dword [esp + 0x2c], edi
call ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], eax
push ecx
push esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push edi
push edi
push esi
mov dword [esp + 0x3c], eax
call ebx
lea edx, [esp + 0x10]
push 1
push edx
push edi
push esi
call ebx
mov ebp, eax
mov eax, dword [esp + 0x2c]
cmp ebp, eax
jne 0x4b7f42
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
je 0x4b7fec
mov ecx, 0xdb
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x18]
stosb byte es:[edi], al
call fcn.00636b60
lea ecx, [esp + 0x14]
mov byte [esp + 0x3a8], 1
call fcn.00636b60
lea ecx, [esp + 0x18]
push 0
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x38]
push edx
push eax
push esi
mov byte [esp + 0x3bc], 2
call fcn.00679580
add esp, 0x14
test eax, eax
je 0x4b7fca
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x58]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x3a8], 1
call fcn.00636c90
lea ecx, [esp + 0x18]
mov byte [esp + 0x3a8], 0
call fcn.00636c90
jmp 0x4b7f1d
lea ecx, [esp + 0x14]
mov byte [esp + 0x3a8], 1
call fcn.00636c90
lea ecx, [esp + 0x18]
mov byte [esp + 0x3a8], 0
call fcn.00636c90
mov edx, dword [esp + 0x3b4]
mov eax, dword [esp + 0x3b8]
mov ecx, dword [esp + 0x10]
push 0
mov dword [edx], ebp
mov dword [eax], ecx
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x20]
push edx
push eax
push esi
call ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x3a8], 0xffffffff
call fcn.00469ec0
mov ecx, dword [esp + 0x3a0]
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x39c
ret