joyce8/EMBER2024-capa huggingface dataset:
Function at 0x479a93
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00479a0f
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x479c02
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x479c02
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x479bb7
jg 0x479aef
test eax, eax
je 0x479bad
push 1
push 0x1000
call fcn.00476b14
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x479b12
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x479ba4
push 0x8000
push ebx
call fcn.00472a13
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x479b3b
jg 0x479b36
cmp ecx, 0x1000
jb 0x479b3b
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00475d9f
add esp, 0x10
cmp eax, 0xffffffff
je 0x479b80
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x479b36
jl 0x479b67
test ecx, ecx
jne 0x479b28
push dword [ebp - 0xc]
push ebx
call fcn.00472a13
push esi
call fcn.00476b71
add esp, 0xc
xor ebx, ebx
jmp 0x479c10
cmp byte [edi + 0x24], 0
je 0x479b97
cmp dword [edi + 0x20], 5
jne 0x479b97
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x479ba2
mov ebx, dword [edi + 0x18]
jmp 0x479ba4
xor ebx, ebx
push esi
call fcn.00476b71
pop ecx
jmp 0x479c10
test ecx, ecx
jg 0x479b79
jl 0x479bb7
test eax, eax
jae 0x479b79
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046f036
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x479bd7
cmp byte [edi + 0x1c], 0
je 0x479b79
jmp 0x479c08
push ebx
call fcn.004799a5
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x479b79
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x479c10
cmp byte [edi + 0x1c], 0
je 0x479c0d
mov ebx, dword [edi + 0x18]
jmp 0x479c10
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0046f036
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47ce1d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x47ceba
push ebx
push esi
call fcn.0047cde6
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0047a3a2
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x47ce67
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x47ceb9
push edi
push eax
call fcn.00477d86
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x47ce87
call fcn.00476b71
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x47ceb8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0047a3a2
add esp, 0x20
test eax, eax
jne 0x47cea6
push edi
call fcn.00476b71
jmp 0x47ceae
push ebx
call fcn.00476b71
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x47cebd
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x47cece
pop esi
ret
push ebx
push edi
push esi
call fcn.0047cde6
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00477d86
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x47cef6
push ebx
push esi
push edi
call fcn.0045d6b0
add esp, 0xc
push 0
call fcn.00476b71
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x47d650
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047d16b

Function at 0x47f83b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00477a9b
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x47f8aa
cmp esi, dword [ebp - 4]
je 0x47f8a5
cmp dword [ebp + 0xc], 0
je 0x47f8a5
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x47f882
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0047f38d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x47f8ac
xor eax, eax
inc eax
jmp 0x47f8ac
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x47f911
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4a3480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00477a9b
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00477a9b
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x47f988
cmp word [ecx], dx
je 0x47f988
mov eax, dword [0x49c0cc]
push edi
dec eax
push eax
push 0x49bfb8
call fcn.0047f8b0
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x47f9fb
cmp word [eax], dx
je 0x47f9fb
mov eax, dword [edi]
test eax, eax
je 0x47f9ac
cmp word [eax], dx
je 0x47f9ac
lea eax, [ebp - 0x10]
push eax
call fcn.0047f293
jmp 0x47f9b5
lea eax, [ebp - 0x10]
push eax
call fcn.0047f32e
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x47fa25
mov eax, dword [0x49bfb4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x49bca8
call fcn.0047f8b0
add esp, 0xc
test al, al
je 0x47fa25
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x47f9f0
cmp word [eax], di
je 0x47f9f0
lea eax, [ebp - 0x10]
push eax
call fcn.0047f293
pop ecx
jmp 0x47fa27
lea eax, [ebp - 0x10]
push eax
call fcn.0047f32e
jmp 0x47f9ed
mov eax, dword [edi]
test eax, eax
je 0x47fa12
cmp word [eax], dx
je 0x47fa12
lea eax, [ebp - 0x10]
push eax
call fcn.0047f248
pop ecx
jmp 0x47fa25
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x47faf0
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0047f735
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x47faf0
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x47faf0
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x47faf0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x47fa7d
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004772be
test ebx, ebx
je 0x47faeb
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004772be
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x47faf0
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x47faf0
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00482e8b
add esp, 0x10
xor eax, eax
inc eax
jmp 0x47faf2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045b917
leave
ret
Function at 0x48254d
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4a3480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x482590
call fcn.004666c0
mov dword [eax], 0xf
call fcn.004666d3
mov dword [eax], 0xd
call fcn.00465a23
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b917
leave
ret
test eax, eax
jne 0x482597
inc eax
jmp 0x482584
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x482582
xor eax, eax
cmp ecx, 1
setne al
jmp 0x482584

Function at 0x484850
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x48487d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x48487d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10001330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10001349
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x1000135d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x1000137e
cmp esi, eax
jae 0x10001357
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10001370
cmp esi, eax
jae 0x10001357
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x10001500
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x10001520
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
mov edx, dword [esi]
inc eax
push eax
mov eax, dword [esp + 0x18]
push edi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 0xc

Function at 0x10001550
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x10001562
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x10001b30
Capabilities:
Create directory

Disassembly:
mov dword [esp + 4], 0x1001d384
jmp 0x100050a0
push 0xffffffffffffffff
push 0x10015cab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov eax, dword [0x1001c4e0]
push 0
push 0
mov dword [esp + 0x110], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push 0
push 0
push str.efbg
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
cmp dword [esp + 0x120], 1
jne 0x10005160
push 0x104
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 4]
call fcn.10004ff0
lea ecx, [esp]
mov dword [esp + 0x114], 0
call fcn.100042a0
mov edx, dword [0x1001df14]
mov eax, dword [esp]
add eax, 0xfffffff0
mov dword [0x1001d380], edx
mov dword [esp + 0x114], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10005153
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [0x1001d37c]
test al, al
je 0x10005160
xor eax, eax
jmp 0x10005165
mov eax, 1
mov ecx, dword [esp + 0x10c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x108]
call fcn.1000c9ce
add esp, 0x118
ret 0xc
Function at 0x10001c50
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x1001c4e0]
mov edx, dword [esp + 0x120]
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x12c], eax
mov eax, dword [edi]
push edx
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 8]
mov esi, eax
test esi, esi
jne 0x10001cba
test ecx, ecx
je 0x10001cac
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 8], ecx
je 0x10001cc8
test ecx, ecx
je 0x10001d6b
push ecx
jmp 0x10001d65
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push ecx
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
jne 0x10001d32
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xc]
call fcn.10001c50
mov edi, eax
test edi, edi
jne 0x10001d84
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0xc]
push eax
push eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
push edi
push edx
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
je 0x10001cf4
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 8]
test eax, eax
je 0x10001d49
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], 0
mov eax, dword [esp + 0x128]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x10001d6b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x118]
call fcn.1000c9ce
add esp, 0x11c
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x10001d93
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
mov eax, edi
pop edi
pop esi
call fcn.1000c9ce
add esp, 0x11c
ret 4
Function at 0x100023b0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10015b48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [0x1001c4e0]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x50]
xor ebp, ebp
cmp edi, ebp
mov dword [esp + 0x3c], eax
mov esi, ecx
je 0x1000254d
mov ebx, dword [esp + 0x54]
cmp ebx, ebp
je 0x1000254d
push edi
mov dword [ebx], ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
shl eax, 1
cmp eax, 0x64
jge 0x10002406
mov eax, 0x3e8
push eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x10002420
mov byte [eax], 0
cmp eax, ebp
mov dword [esp + 0x48], ebp
jne 0x10002439
push ebp
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, 0x8007000e
jmp 0x10002552
mov dword [esi], edi
cmp byte [edi], 0
mov dword [esp + 0x50], ebp
je 0x10002493
mov ebp, dword [sym.imp.USER32.dll_CharNextA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edi, dword [esi]
cmp byte [edi], 0x25
push edi
jne 0x10002464
call ebp
mov edi, eax
mov dword [esi], edi
cmp byte [edi], 0x25
jne 0x100024ab
push edi
call ebp
sub eax, edi
push eax
lea ecx, [esp + 0x14]
push edi
call fcn.100015a0
test eax, eax
je 0x10002534
mov eax, dword [esi]
push eax
call ebp
mov ecx, eax
mov dword [esi], eax
cmp byte [ecx], 0
jne 0x10002450
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x18]
xor ebp, ebp
mov edx, ebp
push edx
mov dword [esp + 0x1c], ebp
mov dword [ebx], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x50]
jmp 0x10002552
push 0x25
push edi
call fcn.10001740
mov edi, eax
add esp, 8
test edi, edi
je 0x1000251b
mov ecx, dword [esi]
sub eax, ecx
cmp eax, 0x1f
jg 0x10002502
inc eax
push eax
push ecx
lea eax, [esp + 0x24]
push eax
call ebx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 4]
call fcn.10002310
test eax, eax
je 0x1000251b
push eax
lea ecx, [esp + 0x14]
call fcn.10002130
test eax, eax
je 0x10002534
cmp dword [esi], edi
je 0x1000247b
mov edx, dword [esi]
push edx
call ebp
cmp eax, edi
mov dword [esi], eax
jne 0x100024f2
jmp 0x1000247b
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x54], 0x80004005
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x50]
jmp 0x10002552
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x54], 0x80020009
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x50]
jmp 0x10002552
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x54], 0x8007000e
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x50]
jmp 0x10002552
mov eax, 0x80004003
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x30]
pop ebx
call fcn.1000c9ce
add esp, 0x3c
ret 8
Function at 0x10004c00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10015c55
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x428
mov eax, dword [0x1001c4e0]
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x430], eax
mov dword [esp + 0x10], ebx
call fcn.1000a8f8
mov byte [esp + 0x30], bl
xor eax, eax
mov ecx, 0xff
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x12
mov esi, 0x100172d8
lea edi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
push 0x10017324
push 0x4a
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x448], 1
movsw word es:[edi], word [esi]
call fcn.1000a908
mov edi, 0xf
lea eax, [esp + 0x30]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10004c97
sub eax, edx
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x1c]
call fcn.100041b0
mov esi, dword [esp + 0x444]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x1c]
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esp + 0x448], 2
mov byte [esi + 4], bl
call fcn.10003f80
cmp dword [esp + 0x2c], 0x10
mov dword [esp + 0x10], 1
jb 0x10004cf2
mov eax, dword [esp + 0x18]
push eax
call fcn.1000ce42
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov byte [esp + 0x43c], bl
call fcn.1000a901
mov ecx, dword [esp + 0x434]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x428]
pop ebx
call fcn.1000c9ce
add esp, 0x434
ret 4
Function at 0x10004d40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10015c55
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x428
mov eax, dword [0x1001c4e0]
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x430], eax
mov dword [esp + 0x10], ebx
call fcn.1000a8f8
mov byte [esp + 0x30], bl
xor eax, eax
mov ecx, 0xff
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 9
mov esi, 0x100172b0
lea edi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
push 0x10017324
push 0x26
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x448], 1
movsw word es:[edi], word [esi]
call fcn.1000a908
mov edi, 0xf
lea eax, [esp + 0x30]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10004dd7
sub eax, edx
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x1c]
call fcn.100041b0
mov esi, dword [esp + 0x444]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x1c]
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esp + 0x448], 2
mov byte [esi + 4], bl
call fcn.10003f80
cmp dword [esp + 0x2c], 0x10
mov dword [esp + 0x10], 1
jb 0x10004e32
mov eax, dword [esp + 0x18]
push eax
call fcn.1000ce42
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov byte [esp + 0x43c], bl
call fcn.1000a901
mov ecx, dword [esp + 0x434]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x428]
pop ebx
call fcn.1000c9ce
add esp, 0x434
ret 4
Function at 0x10004e80
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x10015c68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov eax, dword [0x1001c4e0]
push ebx
push esi
mov dword [esp + 0x44], eax
push edi
lea eax, [esp + 0x2c]
push eax
mov esi, ecx
call fcn.10004c00
lea ecx, [esp + 0x10]
push ecx
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x58], ebx
call fcn.10004d40
mov eax, dword [esp + 0x44]
xor esi, esi
cmp eax, 0x10
mov eax, dword [esp + 0x30]
jae 0x10004ed5
lea eax, [esp + 0x30]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push ebp
lea edx, [esp + 0x10]
push edx
push 0x2001f
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], ebx
call edi
cmp eax, ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x10004f3a
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x10]
cmp eax, 0x10
mov eax, dword [esp + 0x18]
jae 0x10004f12
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x18]
jae 0x10004f29
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp esi, ebx
je 0x10004f3a
push esi
call ebp
xor esi, esi
lea eax, [esp + 0x10]
push eax
push 0x2001f
push ebx
push 0x10017664
push SysReAllocString
mov dword [esp + 0x24], ebx
call edi
cmp eax, ebx
jne 0x10004f89
xor eax, eax
cmp esi, ebx
je 0x10004f62
push esi
call ebp
cmp eax, ebx
mov esi, dword [esp + 0x10]
jne 0x10004f89
mov eax, dword [esp + 0x2c]
mov edi, 0x10
cmp eax, edi
mov eax, dword [esp + 0x18]
jae 0x10004f7f
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x10004f8e
mov edi, 0x10
cmp esi, ebx
je 0x10004f95
push esi
call ebp
cmp dword [esp + 0x2c], edi
pop ebp
jb 0x10004fa9
mov ecx, dword [esp + 0x14]
push ecx
call fcn.1000ce42
add esp, 4
cmp dword [esp + 0x44], edi
pop edi
pop esi
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xc], bl
mov dword [esp + 0x20], 0xf
pop ebx
jb 0x10004fcf
mov edx, dword [esp + 0x24]
push edx
call fcn.1000ce42
add esp, 4
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x3c]
call fcn.1000c9ce
add esp, 0x4c
ret