joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e820
Capabilities:
Access peb ldr_data
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x539d60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x5ab980]
push ebx
xor ebx, ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], ebx
call fcn.005111e1
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
push ecx
mov ecx, dword [esp + 0x44]
call fcn.00424310
mov ecx, dword [esp + 0x38]
lea edx, [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push ecx
call fcn.0041f330
add esp, 0xc
cmp eax, ebx
jg 0x41e8b4
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], bl
call fcn.00511214
lea ecx, [esp + 4]
mov dword [esp + 0x30], 0xffffffff
call fcn.005128e4
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov ecx, dword [esp + 4]
lea edx, [esp + 0x10]
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x10]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
je 0x41e90e
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], bl
call fcn.00511214
lea ecx, [esp + 4]
mov dword [esp + 0x30], 0xffffffff
call fcn.005128e4
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
push esi
push eax
mov eax, dword [esp + 0x10]
push ecx
push 7
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
pop esi
mov byte [esp + 0x30], bl
lea ecx, [esp + 0x14]
je 0x41e971
call fcn.00511214
lea ecx, [esp + 4]
mov dword [esp + 0x30], 0xffffffff
call fcn.005128e4
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
call fcn.00511214
lea ecx, [esp + 4]
mov dword [esp + 0x30], 0xffffffff
call fcn.005128e4
mov ecx, dword [esp + 0x28]
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x41e9a0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x20c
push ebp
mov ebp, dword [esp + 0x218]
test ebp, ebp
je 0x41ea78
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x41ea78
mov ecx, dword [esp + 0x214]
lea eax, [esp + 4]
push eax
push 0x10008
push 0
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41ea7d
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, dword [esp + 0xc]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push 0
lea eax, [esp + 0x24]
push edx
push eax
push 0
push ecx
mov dword [esp + 0x30], 0x200
call edi
mov esi, eax
cmp esi, 0x103
je 0x41ea50
test esi, esi
jne 0x41ea61
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.0041e9a0
mov esi, eax
add esp, 8
test esi, esi
je 0x41e9f0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
mov ecx, dword [esp + 0x21c]
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
mov eax, 0x3f2
pop ebp
add esp, 0x20c
ret

Function at 0x41ea90
Capabilities:
Delete registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
test esi, esi
je 0x41eae2
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call ebx
test eax, eax
je 0x41eae2
mov edi, dword [esp + 0x14]
test edi, edi
je 0x41eae2
push edi
call ebx
test eax, eax
je 0x41eae2
push 0x20006
push esi
call fcn.0041e3a0
mov esi, eax
add esp, 8
test esi, esi
je 0x41eae2
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
mov eax, 0x3f2
pop ebx
ret
Function at 0x41eaf0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x40c
push ebx
mov ebx, dword [esp + 0x414]
test ebx, ebx
je 0x41ebfe
mov eax, dword [esp + 0x418]
test eax, eax
je 0x41ebfe
push ebp
mov eax, 0x200
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x21c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
rep stosd dword es:[edi], eax
mov ecx, 0x80
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x20]
push 0
lea ecx, [esp + 0x22c]
push eax
push ecx
push 0
push ebx
mov esi, 1
call ebp
test eax, eax
jne 0x41ebea
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push eax
mov eax, dword [esp + 0x42c]
push ecx
lea edx, [esp + 0x228]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, 0x200
mov ecx, 0x80
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
xor eax, eax
lea edi, [esp + 0x21c]
rep stosd dword es:[edi], eax
mov ecx, 0x80
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
push edx
push ecx
lea edx, [esp + 0x20]
push 0
lea ecx, [esp + 0x22c]
mov eax, esi
push edx
push ecx
push eax
push ebx
inc esi
call ebp
test eax, eax
je 0x41eb72
pop edi
pop esi
cmp eax, 0x103
pop ebp
jne 0x41ec01
xor eax, eax
pop ebx
add esp, 0x40c
ret
or eax, 0xffffffff
pop ebx
add esp, 0x40c
ret
Function at 0x41ef50
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push edi
xor esi, esi
push 0x20019
push eax
mov dword [esp + 0x10], esi
call fcn.0041e3a0
mov edi, eax
add esp, 8
cmp edi, esi
je 0x41ef9a
mov edx, dword [esp + 0x14]
lea ecx, [esp + 8]
push ecx
push esi
push esi
push esi
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 8]
mov esi, eax
neg esi
sbb esi, esi
push edi
not esi
and esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ecx
ret

Function at 0x41efa0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [esp + 0x20]
xor esi, esi
mov ecx, edi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
call fcn.0051286f
mov eax, dword [esp + 0x18]
push 0x20019
push eax
call fcn.0041e3a0
mov ebx, eax
add esp, 8
cmp ebx, esi
je 0x41f0b1
lea ecx, [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x18]
push esi
push edx
push esi
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41f07c
mov eax, dword [esp + 0x10]
test eax, eax
mov esi, eax
jle 0x41f0a0
mov ecx, dword [esp + 0x14]
cmp ecx, 1
je 0x41f01d
cmp ecx, 7
je 0x41f01d
cmp ecx, 2
jne 0x41f0a0
push eax
mov ecx, edi
xor esi, esi
call fcn.00512d14
test eax, eax
je 0x41f0a0
lea ecx, [esp + 0x10]
push ecx
push eax
push esi
push esi
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41f092
push 0xffffffffffffffff
mov ecx, edi
call fcn.00512d63
mov edx, dword [edi]
mov eax, dword [esp + 0x14]
cmp eax, 2
mov esi, dword [edx - 8]
jne 0x41f0a0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41f0a0
test esi, esi
jle 0x41f0a0
push edi
call fcn.00420f40
add esp, 4
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 8
ret
push ebx
mov esi, 0xffffffba
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 8
ret
push 0
mov ecx, edi
call fcn.00512d63
mov esi, 0xfffffffe
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 8
ret
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 8
ret

Function at 0x41f0c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
xor ebp, ebp
push 0x20019
mov dword [ebx], ebp
push eax
mov dword [esi], ebp
call fcn.0041e3a0
mov edi, eax
add esp, 8
test edi, edi
je 0x41f118
mov ecx, dword [esp + 0x18]
push esi
push ebp
push ebx
push ebp
push ecx
push edi
mov dword [esi], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
push edi
neg esi
sbb esi, esi
and esi, 0xfffffffe
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret
Function at 0x41f120
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
push esi
push edi
mov edi, dword [esp + 0x20]
xor ebx, ebx
push 0x20019
push eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [edi], ebx
call fcn.0041e3a0
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x41f1a5
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edi
push edx
push ebx
push eax
push esi
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41f19b
mov eax, dword [esp + 0x10]
mov ebx, 1
cmp eax, 4
je 0x41f19e
push esi
mov dword [edi], 0
mov ebx, 0x57
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 8
ret
or ebx, 0xffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 8
ret

Function at 0x41f1e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x18]
push esi
push edi
xor esi, esi
push 0xffffffffffffffff
push esi
mov ecx, ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
call fcn.00511241
mov eax, dword [esp + 0x18]
push 0x20019
push eax
call fcn.0041e3a0
mov edi, eax
add esp, 8
cmp edi, esi
je 0x41f2a3
lea ecx, [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x18]
push esi
push edx
push esi
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41f28d
mov esi, dword [esp + 0x10]
test esi, esi
jle 0x41f27c
push 0xffffffffffffffff
push esi
mov ecx, ebx
call fcn.00511241
mov eax, dword [ebx + 4]
xor esi, esi
test eax, eax
je 0x41f27c
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
push esi
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
je 0x41f27c
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.00511241
mov esi, 0xfffffffe
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 8
ret
push edi
mov esi, 0xffffffba
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 8
ret
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 8
ret

Function at 0x41f6b0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
cmp eax, 0xffffffff
mov dword [esi], 0
mov dword [esi + 4], 0
jne 0x41f6cf
or eax, eax
pop esi
ret
lea ecx, [esi + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x41f6f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41f6f0
or eax, 0xffffffff
pop esi
ret
mov eax, 1
pop esi
ret
Function at 0x41f7a0
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x539e50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ab980]
mov dword [esp + 0x20], 0
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x2c]
mov byte [esp + 0x20], 1
mov ecx, edi
call fcn.0051286f
push 1
push 0x5c
lea ecx, [esp + 0x34]
call fcn.0050dd17
lea ecx, [esp + 0x14]
push 1
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 2
call fcn.0050e22b
mov esi, dword [esp + 0x2c]
mov eax, dword [eax]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
or ebp, 0xffffffff
cmp dl, bl
jne 0x41f830
test cl, cl
je 0x41f82c
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x41f830
add eax, 2
add esi, 2
test cl, cl
jne 0x41f805
xor eax, eax
jmp 0x41f834
sbb eax, eax
sbb eax, ebp
test eax, eax
lea ecx, [esp + 0x14]
setne bl
call fcn.005128e4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 1
call fcn.005128e4
test bl, bl
je 0x41f8c7
push 0x5c
lea ecx, [esp + 0x2c]
call fcn.0050e31f
test eax, eax
jl 0x41f930
inc eax
lea ecx, [esp + 0x28]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0050e2a7
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 3
call fcn.00512a1d
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 1
call fcn.005128e4
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
call fcn.00512a1d
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, ebp
setne cl
mov eax, ecx
mov byte [esp + 0x20], 0
test eax, eax
lea ecx, [esp + 0x10]
jne 0x41f997
jmp 0x41f939
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, ebp
setne cl
mov eax, ecx
test eax, eax
jne 0x41f8ed
lea edx, [esp + 0x28]
mov ecx, edi
push edx
call fcn.00512a1d
jmp 0x41f930
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
mov eax, dword [eax - 8]
dec eax
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.0050e2a7
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 4
call fcn.00512a1d
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 1
call fcn.005128e4
push 0x5c
lea ecx, [esp + 0x14]
call fcn.0050e31f
test eax, eax
jge 0x41f963
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x10]
call fcn.005128e4
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], ebp
call fcn.005128e4
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
inc eax
lea edx, [esp + 0x2c]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.0050e2a7
push eax
mov ecx, edi
mov byte [esp + 0x24], 5
call fcn.00512a1d
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 1
call fcn.005128e4
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x10]
call fcn.005128e4
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], ebp
call fcn.005128e4
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x41ff60
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x539f5c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
mov eax, dword [0x5ab980]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], eax
xor ebx, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x168], ebx
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x170]
mov byte [esp + 0x168], 2
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or ebp, 0xffffffff
xor ecx, ecx
cmp eax, ebp
setne cl
mov eax, ecx
cmp eax, ebx
jne 0x41fffc
lea ecx, [esp + 0x10]
mov byte [esp + 0x168], 1
call fcn.005128e4
lea ecx, [esp + 0x18]
mov byte [esp + 0x168], bl
call fcn.005128e4
lea ecx, [esp + 0x14]
mov dword [esp + 0x168], ebp
call fcn.005128e4
mov eax, 2
jmp 0x420134
lea edx, [esp + 0x18]
lea eax, [esp + 0x14]
push edx
push eax
push esi
call fcn.004222e0
mov edi, eax
add esp, 0xc
cmp edi, ebx
jne 0x420039
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.00512659
call fcn.0041fa80
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x420071
lea ecx, [esp + 0x10]
mov byte [esp + 0x168], 1
call fcn.005128e4
lea ecx, [esp + 0x18]
mov byte [esp + 0x168], bl
call fcn.005128e4
lea ecx, [esp + 0x14]
mov dword [esp + 0x168], ebp
call fcn.005128e4
mov eax, edi
jmp 0x420134
mov esi, dword [esi]
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, ebp
jne 0x4200c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x168], 1
call fcn.005128e4
lea ecx, [esp + 0x18]
mov byte [esp + 0x168], bl
call fcn.005128e4
lea ecx, [esp + 0x14]
mov dword [esp + 0x168], ebp
call fcn.005128e4
mov eax, esi
jmp 0x420134
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
call fcn.00512b79
mov ecx, dword [esp + 0x174]
push eax
mov byte [esp + 0x16c], 3
call fcn.00512a1d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x168], 2
call fcn.005128e4
lea ecx, [esp + 0x10]
mov byte [esp + 0x168], 1
call fcn.005128e4
lea ecx, [esp + 0x18]
mov byte [esp + 0x168], bl
call fcn.005128e4
lea ecx, [esp + 0x14]
mov dword [esp + 0x168], ebp
call fcn.005128e4
xor eax, eax
mov ecx, dword [esp + 0x160]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x15c
ret
Function at 0x420150
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x539f78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
push 0xa
lea ecx, [esp + 0x10]
call fcn.00510deb
mov edx, dword [esp + 0x38]
lea eax, [esp + 0xc]
lea ecx, [esp + 4]
push eax
push ecx
push ecx
xor esi, esi
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
mov dword [esp + 0x40], esi
mov dword [esp + 0x14], esi
call fcn.00512659
call fcn.004201f0
add esp, 0xc
cmp eax, esi
jne 0x4201c1
lea eax, [esp + 0x38]
lea ecx, [esp + 4]
push eax
push ecx
mov dword [esp + 0x40], 0x52
call fcn.004226d0
add esp, 8
jmp 0x4201c5
mov dword [esp + 4], esi
mov esi, dword [esp + 4]
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00510e5f
mov ecx, dword [esp + 0x28]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x30
ret
Function at 0x4204a0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x124
mov eax, dword [esp + 0x128]
push ebx
push ebp
mov ebp, dword [esp + 0x138]
push esi
mov esi, dword [esp + 0x138]
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
mov cl, byte [eax + 1]
cmp cl, 0x3a
jne 0x4204e9
push 3
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004f9fa0
add esp, 0xc
mov byte [esp + 0x2b], bl
jmp 0x420557
cmp byte [eax], 0x5c
jne 0x42064e
cmp cl, 0x5c
jne 0x42064e
push 0x104
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.004f9fa0
lea edx, [esp + 0x36]
push 0x5c
push edx
mov byte [esp + 0x140], bl
call fcn.004f9be0
add esp, 0x14
cmp eax, ebx
je 0x42064e
inc eax
push 0x5c
push eax
call fcn.004f9be0
add esp, 8
cmp eax, ebx
je 0x42053e
mov byte [eax + 1], bl
jmp 0x420557
push edi
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
mov byte [esp + ecx + 0x28], 0x5c
mov byte [esp + ecx + 0x29], bl
cmp dword [0x5b0848], ebx
jne 0x420590
mov eax, dword [0x5b0844]
mov dword [0x5b0848], 1
cmp eax, ebx
jne 0x420599
push str.GetDiskFreeSpaceExA
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5b0844], eax
jmp 0x420595
mov eax, dword [0x5b0844]
cmp eax, ebx
je 0x4205e3
lea ecx, [esp + 0x20]
lea edx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x20]
lea edx, [esp + 0x30]
push ecx
push edx
call eax
test eax, eax
je 0x420642
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xc]
mov dword [ebp], eax
mov eax, dword [esp + 0x10]
mov dword [ebp + 4], ecx
mov dword [esi], edx
mov dword [esi + 4], eax
mov ebx, 1
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x124
ret
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x420642
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
imul edx, eax
mov ecx, dword [esp + 0xc]
imul edx, ecx
mov dword [ebp], edx
mov edx, dword [esp + 0x18]
imul edx, eax
imul edx, ecx
mov dword [ebp + 4], ebx
mov dword [esi], edx
mov dword [esi + 4], ebx
mov ebx, 1
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x124
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x124
ret
Function at 0x420980
Capabilities:
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x53a01b
push eax
mov eax, dword [esp + 0x1c]
mov dword fs:[0], esp
sub esp, 0x104
cmp eax, 2
push ebx
push ebp
push esi
push edi
jne 0x420a18
mov eax, dword [esp + 0x128]
mov esi, 0x596258
mov edi, dword [eax]
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4209e0
test cl, cl
je 0x4209dc
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4209e0
add eax, 2
add esi, 2
test cl, cl
jne 0x4209b8
xor eax, eax
jmp 0x4209e5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
push 4
je 0x420a01
mov eax, dword [esp + 0x128]
push edi
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x420b67
mov edx, dword [esp + 0x128]
push 0
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x420b67
mov ecx, dword [0x5ab980]
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x124]
lea edx, [esp + 0x94]
push 0x7e
push edx
push eax
mov dword [esp + 0x128], 0
call fcn.00421160
add esp, 0xc
test eax, eax
jge 0x420a67
lea ecx, [esp + 0x10]
mov dword [esp + 0x11c], 0xffffffff
call fcn.005128e4
or eax, 0xffffffff
jmp 0x420b69
mov ebp, dword [esp + 0x128]
mov esi, 0x596258
mov edi, dword [ebp]
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x420aa0
test cl, cl
je 0x420a9c
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x420aa0
add eax, 2
add esi, 2
test cl, cl
jne 0x420a78
xor eax, eax
jmp 0x420aa5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x420aaf
lea edx, [esp + 0x14]
jmp 0x420b19
lea ecx, [esp + 0x14]
push 0x7e
push ecx
push ebp
call fcn.00421160
add esp, 0xc
test eax, eax
jge 0x420b36
mov esi, dword [esp + 0x12c]
mov ecx, ebp
mov eax, dword [esi]
push eax
call fcn.0050e341
cmp eax, 3
je 0x420af2
lea ecx, [esp + 0x10]
mov dword [esp + 0x11c], 0xffffffff
call fcn.005128e4
or eax, 0xffffffff
jmp 0x420b69
lea edx, [esp + 0x94]
lea ecx, [esp + 0x10]
push edx
call fcn.00512a6d
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push eax
push 3
call fcn.0050df1d
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x94]
push str.WININIT.INI
lea edx, [esp + 0x18]
push ecx
push edx
push str.RENAME
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x11c], 0xffffffff
call fcn.005128e4
xor eax, eax
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x110
ret
Function at 0x420f40
Capabilities:
Access peb ldr_data
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x53a098
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.005111e1
push 0xffffffffffffffff
push 0x100
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0
call fcn.00511241
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x30]
push 0x100
push edi
mov byte [edi], 0
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov esi, eax
cmp esi, 0x100
jbe 0x420fee
push ebp
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x18]
mov ebp, esi
call fcn.00511241
mov edi, dword [esp + 0x14]
push esi
push edi
mov byte [edi], 0
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov esi, eax
cmp esi, ebp
pop ebp
jbe 0x420fee
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.00511214
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
test esi, esi
jbe 0x421022
push edi
mov ecx, ebx
call fcn.00512a6d
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.00511214
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.00511214
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret