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

Disassembly:
push 0xffffffffffffffff
push 0x545ee6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x5ab980]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi + 0x18], eax
xor edi, edi
lea ecx, [esi + 0x1c]
mov dword [esp + 0x14], edi
call fcn.00443890
mov ecx, dword [0x5ab980]
mov dword [esi + 0x2c], ecx
lea ecx, [esi + 0x34]
mov byte [esp + 0x14], 1
call fcn.0042b6f0
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x30], edi
mov dword [esi], 0x55e9c8
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4863a0
Capabilities:
Delete file
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x545f48
push eax
mov dword fs:[0], esp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
mov eax, dword [esi]
push eax
call edi
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
lea ecx, [esp + 0x20]
call fcn.00512659
lea eax, [esp + 0x1c]
mov dword [esp + 0x10], 0
push eax
call fcn.004211c0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
add esp, 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyA]
mov ecx, dword [esp + 0x20]
test eax, eax
mov dword [ecx], eax
je 0x486438
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], 0xffffffff
call fcn.005128e4
mov eax, 0xfffffffe
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 0xc
mov esi, dword [esi]
push 0x80
push esi
call edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], 0xffffffff
call fcn.005128e4
mov ecx, dword [esp + 8]
pop edi
mov eax, 1
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0xc
Function at 0x486470
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x545f68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push esi
mov eax, dword [esp + 0x98]
mov esi, dword [esp + 0x94]
push eax
push esi
mov dword [esp + 0x94], 0
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyA]
mov edx, dword [esp + 0x9c]
lea ecx, [esp + 4]
push 0x7e
push ecx
push edx
call fcn.00421160
add esp, 0xc
test eax, eax
jge 0x4864f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x8c], 0xffffffff
mov dword [ecx], eax
lea ecx, [esp + 0x98]
call fcn.005128e4
or eax, 0xffffffff
jmp 0x48657a
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x486531
mov eax, dword [esp + 0xa0]
lea ecx, [esp + 0x98]
mov dword [esp + 0x8c], 0xffffffff
mov dword [eax], 2
call fcn.005128e4
mov eax, 0xfffffffe
jmp 0x48657a
mov edx, dword [esp + 0x98]
lea ecx, [esp + 4]
push ecx
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyA]
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x8c], 0xffffffff
test eax, eax
mov dword [ecx], eax
lea ecx, [esp + 0x98]
je 0x486570
call fcn.005128e4
mov eax, 0xfffffff6
jmp 0x48657a
call fcn.005128e4
mov eax, 1
mov ecx, dword [esp + 0x84]
pop esi
mov dword fs:[0], ecx
add esp, 0x8c
ret 0x10
Function at 0x48a170
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5469c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x5ab980]
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
mov byte [esp + 0x38], 1
test eax, eax
jl 0x48a1ba
cmp eax, 2
jg 0x48a1ba
mov dword [esi + 0x1c0], eax
lea edi, [esi + 0x894]
push 0x5b0738
mov ecx, edi
call fcn.00516260
lea ebp, [esi + 0x8d0]
push 0x5b0738
mov ecx, ebp
call fcn.00516260
push 0x5b0738
lea ecx, [esi + 0x858]
call fcn.00516260
push 0x5b0738
lea ecx, [esi + 0x81c]
call fcn.00516260
mov eax, dword [esi + 0x1c0]
sub eax, 0
je 0x48a2ee
dec eax
je 0x48a2db
dec eax
jne 0x48a3b8
push 0x14b
lea ecx, [esp + 0x10]
call fcn.00517fef
mov edi, dword [esp + 0x44]
test edi, edi
je 0x48a3b8
mov eax, dword [edi + 0x10]
test eax, eax
je 0x48a26a
lea eax, [esp + 0xc]
push 0x2b
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.0050dd7d
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 6
call fcn.00512a1d
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 1
call fcn.005128e4
mov edx, dword [edi]
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call dword [edx + 4]
mov edi, eax
lea ecx, [esp + 0xc]
push 0x597ee0
lea edx, [esp + 0x1c]
push ecx
push edx
mov byte [esp + 0x44], 7
call fcn.00512b79
push edi
push eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x40], 8
push eax
call fcn.00512b13
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 9
call fcn.00512a1d
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 8
call fcn.005128e4
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 7
call fcn.005128e4
mov byte [esp + 0x38], 1
lea ecx, [esp + 0x1c]
jmp 0x48a3b3
push 0x14a
lea ecx, [esp + 0x10]
call fcn.00517fef
jmp 0x48a3b8
lea ecx, [esp + 0x28]
push 0x149
push ecx
call fcn.00422640
add esp, 8
push 0x59960c
lea edx, [esp + 0x28]
push eax
push edx
mov byte [esp + 0x44], 2
call fcn.00512b79
lea ecx, [esi + 0x6bc]
lea edx, [esp + 0x20]
push ecx
push eax
push edx
mov byte [esp + 0x44], 3
call fcn.00512b13
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 4
call fcn.00512a1d
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 3
call fcn.005128e4
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 2
call fcn.005128e4
lea ecx, [esp + 0x28]
mov byte [esp + 0x38], 1
call fcn.005128e4
mov eax, dword [0x5b89d0]
lea ecx, [esp + 0x10]
push eax
push 0x189
push ecx
call fcn.0050e6da
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, edi
push edx
call fcn.00516260
lea eax, [esp + 0x2c]
push 0x14c
push eax
call fcn.00422640
add esp, 8
mov eax, dword [eax]
mov ecx, ebp
push eax
mov byte [esp + 0x3c], 5
call fcn.00516260
mov byte [esp + 0x38], 1
lea ecx, [esp + 0x2c]
call fcn.005128e4
mov ecx, dword [esp + 0xc]
push ecx
lea ecx, [esi + 0x90c]
call fcn.00516260
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 0
call fcn.005128e4
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.005128e4
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x30
ret 8
Function at 0x48aed0
Capabilities:
Get hostname

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push ecx
mov dword [esp + 0xc], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 8]
push edx
push str.ServicesActive
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
mov dword [esi + 4], eax
pop esi
setne al
add esp, 0x14
ret 4

Function at 0x48afd0
Capabilities:
Enumerate services
Stop service

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x546c48
push eax
mov eax, 0x4678
mov dword fs:[0], esp
call fcn.004faf00
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push ecx
lea eax, [esp + 0x469c]
xor edi, edi
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
mov dword [esp + 0x4698], edi
call fcn.00512659
mov ecx, ebx
call fcn.0048af40
mov ebp, eax
cmp ebp, edi
jne 0x48b04c
push ecx
lea edx, [esp + 0x469c]
mov ecx, esp
mov dword [esp + 0x18], esp
push str._:_Error_Opening_Service__
push edx
push ecx
call fcn.00512b79
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, ebx
call fcn.0048b1e0
jmp 0x48b0f9
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x40]
push 0x4650
push edx
push 1
push ebp
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
je 0x48b0ab
mov eax, dword [esp + 0x10]
cmp eax, edi
jbe 0x48b0ab
xor esi, esi
cmp eax, edi
jle 0x48b0ab
lea edi, [esp + 0x38]
mov eax, dword [edi]
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00512952
mov ecx, ebx
call fcn.0048afd0
mov eax, dword [esp + 0x10]
inc esi
add edi, 0x24
cmp esi, eax
jl 0x48b087
xor edi, edi
lea ecx, [esp + 0x1c]
push ecx
push 1
push ebp
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edx, dword [esp + 0x34]
mov esi, eax
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, edi
jne 0x48b0f2
push ecx
lea ecx, [esp + 0x469c]
mov eax, esp
mov dword [esp + 0x18], esp
push str._:_Error_Closing_Service__
push ecx
push eax
call fcn.00512b79
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, ebx
call fcn.0048b1e0
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [esp + 0x4698]
mov dword [esp + 0x4690], 0xffffffff
call fcn.005128e4
mov ecx, dword [esp + 0x4688]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x4684
ret 4
Function at 0x48b400
Capabilities:
Enumerate services

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x546cab
push eax
mov eax, 0x4664
mov dword fs:[0], esp
call fcn.004faf00
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov edi, ecx
push 0xf003f
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], ebp
call fcn.0048aed0
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [edi + 4]
push edx
lea eax, [esp + 0x30]
push 0x4650
push eax
push 1
push 0x30
push ecx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
lea ebx, [edi + 0x24]
mov esi, eax
mov ecx, ebx
call fcn.00510e2a
lea ecx, [edi + 0x40]
call fcn.00510e2a
cmp esi, ebp
je 0x48b50f
mov eax, dword [esp + 0x10]
cmp eax, ebp
jbe 0x48b50f
mov edx, dword [0x5ab980]
mov dword [esp + 0x14], edx
test eax, eax
mov dword [esp + 0x467c], ebp
jle 0x48b4fb
lea esi, [esp + 0x28]
mov eax, dword [esi]
mov ecx, dword [esi - 4]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x599430
push edx
call fcn.0050e6c7
add esp, 0xc
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00512659
mov ecx, edi
call fcn.0048b330
test al, al
je 0x48b4ef
mov ecx, dword [esi - 4]
push ecx
mov ecx, ebx
call fcn.00510f94
mov edx, dword [esi]
lea ecx, [edi + 0x40]
push edx
call fcn.00510f94
mov eax, dword [esp + 0x10]
inc ebp
add esi, 0x24
cmp ebp, eax
jl 0x48b4a5
lea ecx, [esp + 0x14]
mov dword [esp + 0x467c], 0xffffffff
call fcn.005128e4
mov eax, dword [edi + 0x30]
mov ecx, dword [esp + 0x4674]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x4670
ret
Function at 0x4930a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x548210
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x5ab980]
push esi
mov esi, ecx
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], 0
push ecx
lea ecx, [esp + 0x24]
call fcn.00512659
lea edx, [esp + 0x20]
mov byte [esp + 0x18], 1
push edx
call fcn.0041f9c0
add esp, 4
lea eax, [esp + 0x20]
lea ecx, [esp + 0xc]
push str.System32Config_software
push eax
push ecx
call fcn.00512b79
lea edx, [esp + 8]
push eax
push edx
lea ecx, [esi + 0x8e4]
mov byte [esp + 0x20], 2
call fcn.0042ba10
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 3
call fcn.00512a1d
lea ecx, [esp + 8]
mov byte [esp + 0x18], 2
call fcn.005128e4
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 1
call fcn.005128e4
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x493184
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call fcn.005128e4
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.005128e4
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esi + 0xdc]
call fcn.00512a1d
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call fcn.005128e4
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.005128e4
mov ecx, dword [esp + 0x10]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x4931d0
Capabilities:
Manipulate boot configuration
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x54826d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov eax, dword [0x5ab980]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
xor ebx, ebx
push 0xffffffffffffff9b
push str.Determine_Windows_System_Location
mov dword [esp + 0x134], ebx
call fcn.004227e0
add esp, 8
lea ecx, [esp + 0xc]
push str.C:_boot.ini
call fcn.00512952
lea ecx, [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [esi + 0x8e4]
mov byte [esp + 0x134], 1
call fcn.0042ba10
mov eax, dword [eax]
push eax
lea eax, [esp + 0x20]
push 0x104
push eax
push 0x5b0738
push str.default
push str.boot_loader
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
lea ecx, [esp + 0x18]
seta byte [esp + 0x17]
call fcn.005128e4
lea ecx, [esp + 0xc]
mov byte [esp + 0x12c], bl
call fcn.005128e4
cmp byte [esp + 0x17], bl
je 0x493333
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call fcn.00512a6d
push 0x5c
lea ecx, [esp + 0x14]
call fcn.0050e776
push 0x5a2638
lea ecx, [esp + 0x14]
call fcn.0050e341
cmp eax, ebx
jle 0x4932b6
inc eax
jmp 0x4932c1
push 0x5c
lea ecx, [esp + 0x14]
call fcn.00512dab
cmp eax, ebx
jle 0x493333
lea edx, [esp + 0xc]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.0050e172
push eax
lea eax, [esp + 0x1c]
push 0x59c3ac
push eax
mov byte [esp + 0x138], 2
call fcn.00512bed
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], 3
call fcn.00512a1d
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], 2
call fcn.005128e4
lea ecx, [esp + 0xc]
mov byte [esp + 0x12c], bl
call fcn.005128e4
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004930a0
cmp eax, ebx
jne 0x4933bc
push str.C:WINNT_
lea ecx, [esp + 0x10]
call fcn.00512952
lea edx, [esp + 0xc]
mov ecx, esi
push edx
mov byte [esp + 0x130], 4
call fcn.004930a0
lea ecx, [esp + 0xc]
mov edi, eax
mov byte [esp + 0x12c], bl
call fcn.005128e4
cmp edi, ebx
jne 0x4933bc
push str.C:WINDOWS_
lea ecx, [esp + 0x10]
call fcn.00512952
lea eax, [esp + 0xc]
mov ecx, esi
push eax
mov byte [esp + 0x130], 5
call fcn.004930a0
lea ecx, [esp + 0xc]
mov edi, eax
mov byte [esp + 0x12c], bl
call fcn.005128e4
cmp edi, ebx
jne 0x4933bc
lea ecx, [esp + 0x10]
mov dword [esp + 0x12c], 0xffffffff
call fcn.005128e4
or eax, 0xffffffff
jmp 0x49340f
lea ecx, [esi + 0xdc]
push str.TEMP_
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.00512b79
push eax
lea ecx, [esi + 0xe0]
mov byte [esp + 0x130], 6
call fcn.00512a1d
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], bl
call fcn.005128e4
lea ecx, [esp + 0x10]
mov dword [esp + 0x12c], 0xffffffff
call fcn.005128e4
mov eax, 1
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret
Function at 0x495e50
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x54872c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
mov eax, dword [0x5ab980]
push ebx
push ebp
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xc], eax
xor ebx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x42c], ebx
mov dword [esp + 0x14], eax
mov byte [esp + 0x42c], 2
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov edi, eax
cmp edi, ebx
jne 0x495edf
lea ecx, [esp + 0x14]
mov byte [esp + 0x42c], 1
call fcn.005128e4
lea ecx, [esp + 0x10]
mov byte [esp + 0x42c], bl
call fcn.005128e4
lea ecx, [esp + 0xc]
mov dword [esp + 0x42c], 0xffffffff
call fcn.005128e4
or eax, 0xffffffff
jmp 0x495fe8
mov al, byte [edi]
push esi
cmp al, bl
mov esi, edi
je 0x495fa9
mov al, byte [esi]
xor ecx, ecx
cmp al, bl
mov edx, 1
je 0x495f1a
cmp ecx, 0x400
jge 0x495f08
mov byte [esp + ecx + 0x24], al
inc ecx
jmp 0x495f0a
xor edx, edx
mov al, byte [esi + 1]
inc esi
cmp al, bl
jne 0x495ef9
cmp edx, ebx
je 0x495f9d
cmp byte [esp + 0x24], 0x3d
je 0x495f9d
lea eax, [esp + 0x24]
mov byte [esp + ecx + 0x24], bl
push eax
lea ecx, [esp + 0x14]
call fcn.00512a6d
lea ecx, [esp + 0x10]
push 0x5990a8
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.00422d20
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x434], 3
call fcn.00512a1d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x430], 2
call fcn.005128e4
mov eax, dword [esp + 0x14]
cmp dword [eax - 8], ebx
je 0x495f9d
push eax
lea eax, [esp + 0x1c]
push str.___s__
push eax
call fcn.0050e6c7
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
push edx
call fcn.00495bd0
inc ebp
mov al, byte [esi + 1]
inc esi
cmp al, bl
jne 0x495eec
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea ecx, [esp + 0x18]
mov byte [esp + 0x430], 1
call fcn.005128e4
lea ecx, [esp + 0x14]
mov byte [esp + 0x430], bl
call fcn.005128e4
lea ecx, [esp + 0x10]
mov dword [esp + 0x430], 0xffffffff
call fcn.005128e4
mov eax, ebp
pop esi
mov ecx, dword [esp + 0x424]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x424
ret

Function at 0x496d50
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x548965
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov eax, dword [0x5ab980]
mov dword [esp + 0x14], 0
mov dword [esi + 8], eax
mov ecx, dword [0x5ab980]
mov dword [esi + 0xc], ecx
mov edx, dword [0x5ab980]
mov dword [esi + 0x10], edx
mov eax, dword [0x5ab980]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x1c]
mov byte [esp + 0x14], 4
call fcn.005111e1
lea edi, [esi + 0x30]
push 0xa
mov ecx, edi
mov byte [esp + 0x18], 5
call fcn.00510deb
mov dword [edi], method.CStringList.virtual_0
mov ecx, dword [0x5ab980]
mov dword [esi + 0x50], ecx
mov ecx, esi
mov byte [esp + 0x14], 7
mov dword [esi], method.CCommandLineInfo.virtual_0
call fcn.00496e10
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x49e260
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x54990c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
mov eax, dword [0x5ab980]
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], eax
push 0xa
lea ecx, [esp + 0x1c]
mov dword [esp + 0x120], 0
call fcn.00510deb
mov esi, dword [esp + 0x124]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x120], 1
call fcn.00512a1d
mov eax, dword [edi + 0x39ac]
lea ecx, [esp + 0xc]
push eax
push 3
call fcn.0050df1d
mov ebp, dword [esp + 0x128]
lea ecx, [esp + 0x18]
push ecx
push ebp
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00512659
call fcn.004201f0
add esp, 0xc
test eax, eax
jne 0x49e320
lea ecx, [esp + 0x18]
mov byte [esp + 0x11c], al
call fcn.00510e5f
lea ecx, [esp + 0xc]
mov dword [esp + 0x11c], 0xffffffff
call fcn.005128e4
or eax, 0xffffffff
jmp 0x49e414
mov ecx, dword [esp + 0xc]
mov eax, dword [esi]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x49e371
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
mov dword [ebp], eax
je 0x49e371
lea ecx, [esp + 0x18]
mov byte [esp + 0x11c], 0
call fcn.00510e5f
lea ecx, [esp + 0xc]
mov dword [esp + 0x11c], 0xffffffff
call fcn.005128e4
mov eax, 0xfffffffe
jmp 0x49e414
mov edx, dword [0x5ab980]
mov dword [esp + 0x10], edx
lea ecx, [esp + 0x34]
mov byte [esp + 0x11c], 2
call fcn.00441270
push esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x120], 3
call fcn.00512a1d
mov eax, dword [esp + 0xec]
push 0
and eax, 0xfffc97ff
lea ecx, [esp + 0x38]
push esi
or ah, 0x94
push ecx
push 3
lea ecx, [edi + 0x3ba4]
mov dword [esp + 0xfc], eax
call fcn.004bf7c0
lea ecx, [esp + 0x34]
mov esi, eax
mov byte [esp + 0x11c], 2
call fcn.00441300
lea ecx, [esp + 0x10]
mov byte [esp + 0x11c], 1
call fcn.005128e4
lea ecx, [esp + 0x18]
mov byte [esp + 0x11c], 0
call fcn.00510e5f
lea ecx, [esp + 0xc]
mov dword [esp + 0x11c], 0xffffffff
call fcn.005128e4
mov eax, esi
mov ecx, dword [esp + 0x114]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x114
ret 8
Function at 0x4a48a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54a819
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [esp + 8], edi
mov dword [esp + 0x18], 0
lea esi, [edi + 0x660]
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x620]
mov byte [esp + 0x18], 0xb
call fcn.00467880
lea ecx, [esi + 0x6c]
mov byte [esp + 0x18], 0xa
call fcn.00510e5f
lea ecx, [esi + 0x50]
mov byte [esp + 0x18], 9
call fcn.0048ba80
lea ecx, [esi + 0x34]
mov byte [esp + 0x18], 8
call fcn.00511c40
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 7
call fcn.005128e4
lea ecx, [esi + 0x2c]
mov byte [esp + 0x18], 6
call fcn.005128e4
lea ecx, [esi + 0x10]
mov byte [esp + 0x18], 5
call fcn.005128e4
lea ecx, [esi + 0xc]
mov byte [esp + 0x18], 4
call fcn.005128e4
lea ecx, [esi + 8]
mov byte [esp + 0x18], 3
call fcn.005128e4
lea ecx, [esi + 4]
mov byte [esp + 0x18], 2
call fcn.005128e4
lea esi, [edi + 4]
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x620]
mov byte [esp + 0x18], 0x15
call fcn.00467880
lea ecx, [esi + 0x6c]
mov byte [esp + 0x18], 0x14
call fcn.00510e5f
lea ecx, [esi + 0x50]
mov byte [esp + 0x18], 0x13
call fcn.0048ba80
lea ecx, [esi + 0x34]
mov byte [esp + 0x18], 0x12
call fcn.00511c40
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 0x11
call fcn.005128e4
lea ecx, [esi + 0x2c]
mov byte [esp + 0x18], 0x10
call fcn.005128e4
mov byte [esp + 0x18], 0xf
lea ecx, [esi + 0x10]
call fcn.005128e4
lea ecx, [esi + 0xc]
mov byte [esp + 0x18], 0xe
call fcn.005128e4
lea ecx, [esi + 8]
mov byte [esp + 0x18], 0xd
call fcn.005128e4
lea ecx, [esi + 4]
mov byte [esp + 0x18], 0xc
call fcn.005128e4
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4a6190
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x54aa08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push 0xa
lea ecx, [esp + 0x24]
call fcn.00510deb
mov dword [esp + 0x20], 0x559f90
mov ecx, dword [0x5ab980]
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x10], ecx
push str..BAT.CMD.INI.STF.
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 1
mov dword [esp + 0x18], eax
call fcn.00512952
mov esi, dword [esp + 0x4c]
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
mov byte [esp + 0x48], 2
call fcn.00442390
test eax, eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 1
sete bl
call fcn.005128e4
test bl, bl
je 0x4a623a
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 0
call fcn.005128e4
lea ecx, [esp + 0x20]
mov dword [esp + 0x44], 0xffffffff
call fcn.00510e5f
xor eax, eax
jmp 0x4a637f
mov edi, dword [esp + 0x50]
lea eax, [esp + 0x18]
push eax
push edi
lea ecx, [esp + 0x28]
call fcn.00423940
test eax, eax
jge 0x4a6291
mov ecx, dword [esp + 0x18]
push 0x5688
push ecx
push 2
push esi
push edi
lea ecx, [ebp + 0x3ba4]
call fcn.004c0010
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 0
call fcn.005128e4
lea ecx, [esp + 0x20]
mov dword [esp + 0x44], 0xffffffff
call fcn.00510e5f
or eax, 0xffffffff
jmp 0x4a637f
mov esi, dword [esp + 0x24]
test esi, esi
je 0x4a635c
mov eax, esi
mov ebx, esi
mov esi, dword [esi]
add eax, 8
push eax
lea ecx, [esp + 0x14]
call fcn.00512a1d
lea edx, [esp + 0x10]
push 0
push edx
mov ecx, ebp
call fcn.0049c5b0
mov edi, eax
test edi, edi
jle 0x4a62d5
lea eax, [esp + 0x10]
lea ecx, [ebx + 8]
push eax
call fcn.00512a1d
add dword [esp + 0x14], edi
test esi, esi
jne 0x4a629d
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x4a635c
mov esi, dword [esp + 0x50]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, eax
mov eax, dword [esi]
push 0x80
push eax
call ebx
lea ecx, [esp + 0x18]
push ecx
push esi
lea ecx, [esp + 0x28]
call fcn.00423c70
test eax, eax
jge 0x4a6356
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x4c]
push 0x5689
push edx
push 2
push eax
push esi
lea ecx, [ebp + 0x3ba4]
call fcn.004c0010
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 0
call fcn.005128e4
lea ecx, [esp + 0x20]
mov dword [esp + 0x44], 0xffffffff
call fcn.00510e5f
mov eax, 0xfffffffe
jmp 0x4a637f
mov esi, dword [esi]
push edi
push esi
call ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 0
call fcn.005128e4
lea ecx, [esp + 0x20]
mov dword [esp + 0x44], 0xffffffff
call fcn.00510e5f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 8