joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47d890
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov dword [esp + 4], ecx
mov eax, dword [0x540010]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea ebx, [esp + 0x20]
movdqa xmmword [ebx + 0x20], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
lea edi, [esp + 0x10]
push 0xac
push str.file_win.cc
push str.GetLength
push edi
call fcn.00492120
add esp, 0x10
xor esi, esi
mov ecx, ebx
push esi
push edi
call fcn.00486fa0
mov dword [edi + 4], 0xffffffff
mov dword [edi], esi
mov edi, dword [esp + 4]
call fcn.004ddab0
test al, al
je 0x47d90f
lea ecx, [esp + 0x10]
push esi
push esi
push edi
push str.File::GetLength
call fcn.004ac8f0
xor eax, eax
dec eax
lea ebx, [esp + 8]
mov dword [ebx + 4], eax
mov dword [ebx], eax
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
sbb esi, esi
mov edi, dword [ebx + 4]
or edi, esi
or esi, dword [ebx]
lea ecx, [esp + 0x10]
call fcn.004ac880
lea ecx, [esp + 0x20]
call fcn.00487010
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.004e0685
mov eax, esi
mov edx, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
Function at 0x47dcc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [ebp + 8]
cmp dword [ecx], ebx
je 0x47dd0a
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jb 0x47dcf4
call fcn.00492150
push dword [esi]
call fcn.0047b600
add esp, 4
mov dword [esi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x47dd03
mov dword [esi], ebx
call fcn.00492150
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x47ddf0
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
pop ebp
jmp fcn.0047de00

Function at 0x47e040
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
inc edx
pop ebp
jmp fcn.0047de00

Function at 0x47e050
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov edi, dword [ebp + 8]
mov eax, dword [0x540010]
xor eax, ebp
mov dword [esp + 0x48], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x10]
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov ebx, esp
push 0x1e7
push str.file_util_win.cc
push str.DeleteFileAfterReboot
push ebx
call fcn.00492120
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.00486fa0
mov al, byte [edi + 0xb]
test al, al
jns 0x47e0b8
cmp dword [edi + 4], 0x103
jbe 0x47e0b8
xor ebx, ebx
jmp 0x47e0ce
test al, al
jns 0x47e0be
mov edi, dword [edi]
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne bl
lea ecx, [esp + 0x10]
call fcn.00487010
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.004e0685
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x47e0f0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x450
mov edi, dword [ebp + 0xc]
mov eax, dword [0x540010]
xor eax, ebp
mov dword [esp + 0x448], eax
pcmpeqd xmm0, xmm0
mov esi, esp
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea ebx, [esp + 0x240]
push 0x1f3
push str.file_util_win.cc
push 0x52f4cc
push ebx
call fcn.00492120
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.00486fa0
mov eax, 0x208
mov ecx, 0xff
push eax
push ecx
push ebx
call fcn.004e3a90
mov ecx, dword [ebp + 8]
add esp, 0xc
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x47e16f
mov eax, dword [ecx]
mov esi, 0x104
push esi
push eax
push ebx
call fcn.00489070
add esp, 0xc
push ebx
call fcn.00411780
add esp, 4
lea ebx, [esp + 0x38]
mov eax, 0x208
push eax
mov eax, 0xff
push eax
push ebx
call fcn.004e3a90
add esp, 0xc
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x47e1ab
mov eax, dword [edi]
push esi
push eax
push ebx
call fcn.00489070
add esp, 0xc
push ebx
call fcn.00411780
add esp, 4
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x47e1cc
mov eax, dword [ecx]
cmp byte [edi + 0xb], 0
mov ecx, edi
jns 0x47e1d6
mov ecx, dword [edi]
sub esp, 0x18
movaps xmm0, xmmword [0x52f470]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov bl, 1
test eax, eax
je 0x47e217
mov ecx, esp
call fcn.00487010
mov ecx, dword [esp + 0x448]
xor ecx, ebp
call fcn.004e0685
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0047d960
add esp, 4
mov esi, eax
cmp byte [edi + 0xb], 0
jns 0x47e230
mov edi, dword [edi]
mov eax, dword [ebp + 8]
cmp byte [eax + 0xb], 0
jns 0x47e23b
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x47e1f8
test eax, eax
jne 0x47e1f8
cmp esi, 0xfffffffc
jne 0x47e25f
call fcn.0050ec40
mov esi, eax
mov dword [edi], esi
xor ebx, ebx
jmp 0x47e1f8

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov edi, dword [ebp + 8]
mov eax, dword [0x540010]
xor eax, ebp
mov dword [esp + 0x48], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x10]
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov ebx, esp
push 0x226
push str.file_util_win.cc
push str.PathExists
push ebx
call fcn.00492120
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.00486fa0
cmp byte [edi + 0xb], 0
jns 0x47e2cc
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov ecx, esi
call fcn.00487010
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.004e0685
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x480130
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4f8
mov ebx, edx
mov edi, ecx
mov eax, dword [0x540010]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x2a4]
push 0x294
push 0xff
push esi
call fcn.004e3a90
add esp, 0xc
mov ecx, esi
mov dword [ebp - 0x504], ebx
push ebx
push 3
push 0
push edi
call fcn.004ad7d0
xor eax, eax
dec eax
lea edi, [ebp - 0x500]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, esi
push edi
call fcn.004ad950
movzx eax, byte [edi + 0xb]
test al, al
jns 0x48019d
mov eax, dword [ebp - 0x4fc]
test eax, eax
je 0x480307
xor edi, edi
lea ebx, [ebp - 0x4f4]
jmp 0x480253
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor esi, esi
cmp ecx, 2
je 0x48020d
mov esi, eax
jmp 0x48020d
mov ecx, ebx
call fcn.004ad7c0
test al, al
jne 0x4801de
mov eax, dword [ebp - 0x4f4]
jmp 0x480286
mov ecx, ebx
call fcn.004ad7c0
xor esi, esi
test al, al
jne 0x48020d
cmp byte [ebp - 0x4f5], 0
lea eax, [ebp - 0x500]
jns 0x480200
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
test eax, eax
je 0x4801b2
test edi, edi
cmovne esi, edi
mov ecx, ebx
call fcn.00411780
lea ecx, [ebp - 0x2a4]
push ebx
call fcn.004ad950
lea ecx, [ebp - 0x500]
push ebx
call fcn.00493f70
mov ecx, ebx
call fcn.00493ef0
movzx eax, byte [ebp - 0x4f5]
test al, al
jns 0x480249
mov eax, dword [ebp - 0x4fc]
mov edi, esi
test eax, eax
je 0x480309
push 0x250
push 0xff
push ebx
call fcn.004e3a90
add esp, 0xc
lea ecx, [ebp - 0x2a4]
push ebx
call fcn.004ad910
mov eax, dword [ebp - 0x4f4]
test al, 1
je 0x4802a6
cmp byte [ebp + 8], 0
je 0x4801c8
cmp byte [ebp - 0x4f5], 0
lea ecx, [ebp - 0x500]
jns 0x48029b
mov ecx, dword [ebp - 0x500]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, ebx
call fcn.004ad7c0
test al, al
je 0x4801eb
xor esi, esi
cmp byte [ebp + 8], 0
je 0x48020d
lea ecx, [ebp - 0x500]
mov edx, dword [ebp - 0x504]
push 1
call fcn.00480130
add esp, 4
mov esi, eax
test eax, eax
jne 0x48020d
cmp byte [ebp - 0x4f5], 0
lea eax, [ebp - 0x500]
jns 0x4802f6
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, 0
jmp 0x480209
xor esi, esi
lea ecx, [ebp - 0x500]
call fcn.00493ef0
lea ecx, [ebp - 0x2a4]
call fcn.004ad8a0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e0685
mov eax, esi
add esp, 0x4f8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x496280
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.0047d5b0
mov dword [esi], 0
test eax, eax
je 0x4962e2
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jb 0x4962c8
mov dword [ebp - 0x10], eax
call fcn.00492150
push dword [esi]
call fcn.0047b600
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
lea ecx, [ebx + 1]
cmp ecx, 2
jb 0x4962db
mov dword [esi], ebx
mov ebx, eax
call fcn.00492150
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esi + 4]
lea eax, [edi + 4]
push eax
call fcn.00439200
lea ecx, [esi + 0x10]
call fcn.004ac800
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov al, byte [edi + 0x18]
mov byte [esi + 0x18], al
mov al, byte [edi + 0x19]
mov byte [esi + 0x19], al
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x4f486e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x5445f8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4f48b4
cmp word [ebx], dx
jne 0x4f48b4
or byte [eax + edi + 0x28], 4
jmp 0x4f48b9
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4f4a1c
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4f49fc
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4f48fa
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4f4930
cmp eax, edx
jae 0x4f493e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4f48d5
jmp 0x4f4a1c
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f49f7
cmp dword [ebp - 0x18], 0
je 0x4f49f7
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5445f8]
test byte [eax + edi + 0x28], 0x48
je 0x4f49cd
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4f4991
mov word [esi], cx
jmp 0x4f49c8
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5445f8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x5445f8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5445f8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4f4a1c
pop eax
cmp word [ebp - 4], ax
jne 0x4f49dd
cmp esi, ebx
jne 0x4f49dd
mov word [esi], ax
jmp 0x4f4a19
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004f3ce2
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4f4a1c
push 0xd
pop eax
jmp 0x4f49d8
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5445f8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4f4a16
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4f4a1c
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1006036
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x10309f4]
and dword [ebp - 0x4c], 0
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 8]
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.msvcrt.dll_wcslen]
and dword [ebp - 0x48], 0
mov ebx, eax
test ebx, ebx
pop ecx
jbe 0x1006088
mov eax, dword [ebp - 0x48]
movzx eax, word [edi + eax*2]
push eax
call dword [sym.imp.msvcrt.dll_iswxdigit]
test eax, eax
pop ecx
je 0x100607f
inc dword [ebp - 0x48]
cmp dword [ebp - 0x48], ebx
jb 0x1006064
cmp dword [ebp - 0x48], ebx
jb 0x1006132
xor eax, eax
test ebx, ebx
jbe 0x1006132
cmp word [edi], 0x30
jne 0x100609f
inc eax
inc edi
inc edi
cmp eax, ebx
jb 0x1006092
cmp eax, ebx
jae 0x1006132
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
cmp eax, 3
pop ecx
ja 0x1006132
push 0x10
push 0
push edi
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov ecx, eax
and cx, 0x3ff
cmp cx, di
jne 0x10060dc
mov word [esi + 0x14], ax
jmp 0x10060e5
or di, 0x400
mov word [esi + 0x14], di
movzx eax, word [esi + 0x14]
push eax
push 0x1001458
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.01005fe2
add esp, 0x10
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0xc]
call fcn.010153e2
movzx eax, word [esi + 0x14]
push eax
push 0x1001448
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.01005fe2
add esp, 0x10
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x10]
call fcn.010153e2
jmp 0x1006139
mov dword [ebp - 0x4c], 0x80041001
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x4c]
pop edi
pop esi
pop ebx
call fcn.01014c6a
leave
ret
Function at 0x1006f48
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
push edi
xor edi, edi
inc edi
cmp eax, ecx
mov dword [ebp - 4], eax
je 0x1006f80
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 4]
lea edi, [edi + eax + 1]
call fcn.010066c4
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0xc]
jne 0x1006f63
add edi, edi
push edi
mov dword [ebp - 0x10], edi
call fcn.010056e5
mov edi, eax
test edi, edi
pop ecx
mov dword [ebp - 0xc], edi
jne 0x1006f9d
push 8
pop eax
jmp 0x1007025
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [ebp - 4], eax
je 0x1006fd4
mov eax, dword [eax + 0xc]
jmp 0x1006fb5
mov word [edi], cx
inc edi
inc edi
inc eax
inc eax
xor ecx, ecx
mov cx, word [eax]
test cx, cx
jne 0x1006fae
and word [edi], cx
inc edi
lea ecx, [ebp - 4]
inc edi
call fcn.010066c4
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0xc]
jne 0x1006fa9
and word [edi], 0
lea eax, [ebp - 8]
push eax
push 0x20006
push 0
push 0x1001554
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x100701a
push dword [ebp - 0x10]
mov esi, dword [esi + 4]
push dword [ebp - 0xc]
push 7
push eax
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
call fcn.010056f5
pop ecx
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x100956e
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1021a90
call fcn.01014f68
sub esp, 0x40
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, ecx
lea eax, [ebp - 0x28]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x1001554
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x10096c6
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 7
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x1c]
push ecx
push ebx
lea ecx, [ebp - 0x20]
push ecx
push ebx
push eax
push dword [ebp - 0x28]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call esi
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x10096bd
cmp dword [ebp - 0x1c], ebx
jbe 0x10096bd
push dword [ebp - 0x1c]
call fcn.010056e5
pop ecx
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x10096b6
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], ebx
mov ecx, dword [edi + 4]
lea edx, [ebp - 0x1c]
push edx
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push ecx
push dword [ebp - 0x28]
call esi
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x10096a8
cmp dword [ebp - 0x20], 7
jne 0x10096a8
mov esi, dword [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x10096a8
mov byte [ebp - 4], 1
push ebx
push esi
lea ecx, [ebp - 0x24]
call sub.wbemcomn.dll_public:_void___thiscall_WString::constructor_unsigned_short_int___int_
mov byte [ebp - 4], 2
mov byte [ebp - 0x12], 1
mov byte [ebp - 0x11], bl
lea eax, [ebp - 0x12]
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x44]
call fcn.01005db4
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [edi + 8]
call fcn.01009385
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.01005b89
mov byte [ebp - 4], 1
push dword [ebp - 0x24]
lea ecx, [ebp - 0x24]
call sub.wbemcomn.dll_private:_void___thiscall_WString::DeleteString_unsigned_short_int__
mov eax, dword [ebp - 0x30]
lea esi, [esi + eax*2 + 2]
mov dword [ebp - 0x34], esi
mov dword [ebp - 4], ebx
jmp 0x1009629
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0100a036
jmp 0x10096bd
mov dword [ebp - 0x18], 0xe
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100c5f8
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov eax, 0x10221bf
call fcn.01014f68
sub esp, 0x14
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
mov esi, ecx
jne 0x100c61a
mov eax, 0x80041008
jmp 0x100c70b
push edi
lea eax, [ebp - 0x18]
push eax
push 0x10036fc
push 1
push ebx
push 0x10037cc
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
cmp edi, ebx
jl 0x100c6ed
push dword [esi + 4]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x100c660
mov edi, 0x80041006
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
cmp edi, ebx
jl 0x100c6d3
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
lea edi, [ebp - 0x14]
push edi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ecx
call dword [edx + 0xc]
mov edi, eax
cmp edi, ebx
jl 0x100c6aa
push ebx
push ebx
push ebx
push 3
push 4
push ebx
push ebx
push 0xa
push dword [ebp - 0x14]
call fcn.0101527c
mov edi, eax
cmp edi, ebx
jge 0x100c6da
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x14], ebx
push 0x1001edc
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
push edi
je 0x100c6d4
push dword [ebp - 0x10]
push 0x1001eb0
push 0xc
call sub.wbemcomn.dll_int___cdecl_ErrorTrace_char__char_const__
add esp, 0x10
jmp 0x100c6da
push edi
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov byte [ebp - 4], bl
cmp dword [ebp - 0x10], ebx
je 0x100c6f4
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x100c6f4
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.01005807
mov eax, edi
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x100e30a
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [esi + 0xc], eax
sub eax, 0
pop esi
je 0x100e33e
dec eax
dec eax
je 0x100e339
sub eax, 3
je 0x100e335
xor eax, eax
inc eax
jmp 0x100e340
push 4
jmp 0x100e33b
push 5
pop eax
jmp 0x100e340
xor eax, eax
pop ebp
ret 4

Function at 0x100e349
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
mov esi, ecx
push dword [esi + 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esi + 0xc], eax
sub eax, 0
pop esi
je 0x100e397
dec eax
dec eax
je 0x100e393
sub eax, 3
je 0x100e38e
xor eax, eax
inc eax
jmp 0x100e3a0
push 4
pop eax
jmp 0x100e3a0
push 5
jmp 0x100e390
xor eax, eax
cmp dword [ebp - 4], 4
setne al
leave
ret 8
Function at 0x100e3a9
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
mov esi, ecx
push dword [esi + 4]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x100e3f0
push eax
push 0x10024e4
push 0xc
call sub.wbemcomn.dll_int___cdecl_DebugTrace_char__char_const__
add esp, 0xc
jmp 0x100e40a
cmp dword [ebp - 8], 1
je 0x100e412
cmp dword [ebp - 8], 2
je 0x100e412
push 0x10024a0
push 0xc
call sub.wbemcomn.dll_int___cdecl_DebugTrace_char__char_const__
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x100e4c9
mov eax, dword [ebp - 4]
add eax, 2
push edi
push eax
call fcn.010056e5
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x100e42e
push 2
pop eax
jmp 0x100e4c8
mov eax, dword [ebp - 4]
mov byte [edi + eax], bl
mov eax, dword [ebp - 4]
mov byte [edi + eax + 1], bl
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x100e475
push edi
call fcn.010056f5
push dword [esi + 0xc]
push 0x10024e4
push 0xc
call sub.wbemcomn.dll_int___cdecl_DebugTrace_char__char_const__
xor eax, eax
add esp, 0x10
inc eax
jmp 0x100e4c8
cmp dword [ebp - 8], 2
jne 0x100e4c1
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
inc esi
lea eax, [esi + esi + 4]
push eax
call fcn.010056e5
cmp eax, ebx
pop ecx
mov dword [ebp + 8], eax
jne 0x100e4a2
push edi
call fcn.010056f5
pop ecx
jmp 0x100e426
mov word [eax + esi*2], bx
dec esi
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
call fcn.010056f5
mov eax, dword [ebp + 8]
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x100e4c6
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8