joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001eb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov esi, dword [edi]
mov dword [ebp - 0xc], ecx
test esi, esi
je 0x10001f1f
mov dword [edi], 0
mov edx, 0x400000
lea esp, [esp]
push 0
lea eax, [ebp - 8]
push eax
mov eax, esi
cmp esi, 0x400000
cmova eax, edx
push eax
push ebx
push dword [ecx]
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x10001f32
test ecx, ecx
je 0x10001f1f
mov ecx, dword [ebp - 0xc]
mov edx, 0x400000
test esi, esi
jne 0x10001ee0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100947be
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100947be
mov esp, ebp
pop ebp
ret
Function at 0x10006320
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 0xc]
push edi
mov esi, dword [esi]
mov eax, ecx
xor edi, edi
and esi, 7
mov dword [ebp - 4], eax
cmp edx, 5
jae 0x10006344
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
lea ecx, [edx - 4]
or ebx, 0xffffffff
add ecx, eax
mov dword [ebp - 8], ecx
lea edx, [edi + eax]
cmp edx, ecx
jae 0x10006367
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x10006364
inc edx
cmp edx, ecx
jb 0x10006357
mov eax, dword [ebp - 4]
mov edi, edx
sub edi, eax
cmp edx, ecx
mov ecx, edi
jae 0x1000646f
sub ecx, ebx
cmp ecx, 3
jbe 0x1000639f
xor esi, esi
mov al, byte [edx + 4]
mov ebx, edi
mov dword [ebp - 0x10], ebx
test al, al
je 0x100063dc
cmp al, 0xff
je 0x100063dc
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
and esi, 3
add esi, esi
or esi, 1
inc edi
jmp 0x10006350
dec ecx
shl esi, cl
and esi, 7
je 0x1000637e
movzx eax, byte [esi + 0x100a22e0]
mov ecx, edx
sub ecx, eax
cmp byte [esi + 0x100a22d8], 0
mov al, byte [ecx + 4]
je 0x100063c6
test al, al
je 0x100063c6
cmp al, 0xff
jne 0x1000637e
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
and esi, 3
add esi, esi
mov ebx, edi
or esi, 1
inc edi
jmp 0x10006350
movzx ecx, byte [edx + 3]
movzx eax, al
shl eax, 8
or eax, ecx
movzx ecx, byte [edx + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [edx + 1]
shl eax, 8
or eax, ecx
lea ebx, [ebx]
sub eax, edi
lea ebx, [eax - 5]
test esi, esi
je 0x1000643d
movzx eax, byte [esi + 0x100a22e0]
shl eax, 3
mov ecx, 0x18
sub ecx, eax
mov dword [ebp - 0xc], eax
mov eax, ebx
shr eax, cl
test al, al
je 0x10006429
cmp al, 0xff
jne 0x1000643d
mov ecx, 0x20
sub ecx, dword [ebp - 0xc]
mov eax, 1
shl eax, cl
dec eax
xor eax, ebx
jmp 0x10006400
mov ecx, dword [ebp - 8]
mov eax, ebx
shr eax, 0x18
and al, 1
dec al
not al
mov byte [edx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edx + 3], al
mov eax, ebx
shr eax, 8
mov byte [edx + 2], al
mov eax, dword [ebp - 4]
mov byte [edx + 1], bl
mov ebx, dword [ebp - 0x10]
add edi, 5
jmp 0x10006350
sub ecx, ebx
pop ebx
cmp ecx, 3
jbe 0x10006486
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
dec ecx
shl esi, cl
and esi, 7
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000fed0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10097de8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push esi
mov eax, dword [0x100e6018]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
push 0xffffffffffffffff
push eax
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], 0
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.10008c80
xor eax, eax
push 0xffffffffffffffff
push eax
push dword [ebp + 8]
mov dword [esp + 0x54], 0
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
call fcn.10008c80
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.1000f9e0
lea eax, [esp + 0x24]
push eax
lea ecx, [esi + 0x18]
call fcn.1000f9e0
cmp dword [esp + 0x38], 8
jb 0x1000ff83
push dword [esp + 0x24]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
cmp dword [esp + 0x20], 8
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
jb 0x1000ffae
push dword [esp + 0xc]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10010940
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 8
mov edi, edx
jb 0x10010957
mov eax, dword [esi]
jmp 0x10010959
mov eax, esi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebx
cmp eax, 1
jne 0x10010984
test edi, edi
je 0x1001097b
cmp edi, esi
je 0x1001097b
push 0xffffffffffffffff
push 0
push esi
mov ecx, edi
call fcn.10008c80
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str..exe
mov edx, esi
lea ecx, [ebp - 0x1c]
call fcn.10011cb0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x1001099e
mov eax, dword [eax]
push eax
call ebx
mov ebx, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
cmp eax, 1
sete al
cmp dword [ebp - 8], 8
mov byte [ebp - 1], al
jb 0x100109c1
push dword [ebp - 0x1c]
call ebx
mov al, byte [ebp - 1]
add esp, 4
test al, al
je 0x100109fa
test edi, edi
je 0x100109f1
push str..exe
mov edx, esi
lea ecx, [ebp - 0x1c]
call fcn.10011cb0
add esp, 4
mov ecx, edi
push eax
call fcn.1000d090
cmp dword [ebp - 8], 8
jb 0x100109f1
push dword [ebp - 0x1c]
call ebx
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10011370
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
jne 0x1001139b
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100947be
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0x18], 0
je 0x100113f4
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], 0
call sym.iImportLib.dll_private:_void___thiscall_elex::CWow64Helper::Init_void_
cmp byte [ebp - 0xc], 0
je 0x100113be
lea ecx, [ebp - 8]
call fcn.10039760
cmp dword [esi + 0x14], 8
jb 0x100113c6
mov esi, dword [esi]
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete bl
cmp byte [ebp - 0xc], 0
je 0x100113e2
lea ecx, [ebp - 8]
call fcn.10039810
mov al, bl
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100947be
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x100113fc
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
dec eax
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.100947be
mov esp, ebp
pop ebp
ret

Function at 0x10011650
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
jb 0x10011675
mov esi, dword [edi]
jmp 0x10011677
mov esi, edi
xor ecx, ecx
mov edx, 0x811c9dc5
add eax, eax
je 0x10011698
mov edi, eax
movzx eax, byte [esi + ecx]
xor edx, eax
inc ecx
imul edx, edx, 0x1000193
cmp ecx, edi
jb 0x10011684
mov edi, dword [ebp + 0xc]
mov esi, dword [ebx + 0x14]
mov ecx, esi
and ecx, edx
cmp dword [ebx + 0x18], ecx
ja 0x100116ad
shr esi, 1
or eax, 0xffffffff
sub eax, esi
add ecx, eax
mov esi, dword [ebx + 8]
shl ecx, 3
mov dword [ebp - 8], ecx
mov esi, dword [ecx + esi]
lea esp, [esp]
add ecx, dword [ebx + 8]
mov eax, dword [ebx]
cmp dword [ecx], eax
je 0x100116ce
mov eax, dword [ecx + 4]
mov eax, dword [eax]
cmp esi, eax
je 0x1001172b
cmp dword [edi + 0x14], 8
lea ecx, [esi + 8]
jb 0x100116df
mov eax, dword [edi]
jmp 0x100116e1
mov eax, edi
push dword [edi + 0x10]
push eax
push dword [ecx + 0x10]
push ecx
call fcn.10010100
test eax, eax
je 0x100116f9
mov esi, dword [esi]
mov ecx, dword [ebp - 8]
jmp 0x100116c0
cmp dword [esi + 0x1c], 8
mov ecx, dword [esi + 0x18]
lea eax, [esi + 8]
jb 0x10011707
mov eax, dword [eax]
push ecx
push eax
push dword [edi + 0x10]
push ecx
mov ecx, edi
call fcn.10010100
lea ecx, [ebp - 8]
test eax, eax
je 0x10011724
mov eax, dword [ebx]
mov dword [ebp - 8], eax
mov ecx, dword [ecx]
jmp 0x1001172d
mov dword [ebp - 8], esi
mov ecx, dword [ecx]
jmp 0x1001172d
mov ecx, dword [ebx]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100947be
mov esp, ebp
pop ebp
ret 8
Function at 0x100142b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x100e8934], 0
jne 0x10014460
mov eax, dword [ebp + 8]
mov dword [0x100e8948], eax
test al, 2
je 0x100142e9
cmp dword [0x100e8940], 0
jne 0x100142e9
push sym.iImportLib.dll_public:_void___thiscall_CAESEncryption::destructor_void_
call dword [sym.imp.MSVCR110.dll__set_invalid_parameter_handler]
add esp, 4
mov dword [0x100e8940], eax
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push ebx
mov ebx, dword [sym.imp.MSVCR110.dll_wcscat_s]
push esi
mov dword [0x100e8938], eax
xor eax, eax
push edi
mov word [0x100e8520], ax
mov esi, 0x208
test edx, edx
je 0x1001433a
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10014313
sub ecx, edi
sar ecx, 1
je 0x1001433a
push edx
push 0x208
push 0x100e8520
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
jmp 0x100143d3
push 0x208
push 0x100e8520
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push 0x100e8520
call dword [sym.imp.MSVCR110.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x10014366
xor ecx, ecx
mov word [eax + 2], cx
mov ecx, 0x100e8520
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10014370
sub ecx, edx
sar ecx, 1
mov eax, esi
sub eax, ecx
push 0x100b2d50
push eax
lea eax, [ecx*2 + 0x100e8520]
push eax
call ebx
add esp, 0xc
push 0
push 0x100e8520
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, 0x100e8520
lea edx, [ecx + 2]
jmp 0x100143b0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100143b0
sub ecx, edx
sar ecx, 1
mov eax, esi
sub eax, ecx
push 0x100a21f4
push eax
lea eax, [ecx*2 + 0x100e8520]
push eax
call ebx
mov edx, dword [ebp + 0xc]
add esp, 0xc
test edx, edx
je 0x10014407
mov ecx, 0x100e8520
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100143e5
sub ecx, edi
sar ecx, 1
push edx
mov eax, esi
sub eax, ecx
push eax
lea eax, [ecx*2 + 0x100e8520]
push eax
call ebx
add esp, 0xc
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10014436
mov ecx, 0x100e8520
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10014416
sub ecx, edi
sar ecx, 1
push edx
sub esi, ecx
lea eax, [ecx*2 + 0x100e8520]
push esi
push eax
call ebx
add esp, 0xc
mov eax, dword [0x100e8944]
pop edi
pop esi
pop ebx
push 0x10014090
test eax, eax
je 0x1001444b
call eax
jmp 0x10014451
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov dword [0x100e8930], eax
mov dword [0x100e8934], 1
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x10014520
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x418]
push eax
push 0
push edx
push ecx
mov dword [ebp - 0x41c], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 8]
cmp ecx, 1
je 0x100145dd
cmp ecx, 2
je 0x100145dd
cmp ecx, 4
jne 0x1001464a
test esi, esi
jne 0x10014596
test eax, eax
jne 0x1001464a
lea eax, [esi + 2]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100947be
mov esp, ebp
pop ebp
ret 8
cmp eax, 2
je 0x100145ec
test eax, eax
jne 0x10014630
cmp dword [ebp - 0x418], 4
jne 0x10014630
cmp dword [ebp - 0x41c], 4
jne 0x10014630
mov eax, dword [ebp - 0x414]
cmp eax, dword [esi]
je 0x1001464a
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100947be
mov esp, ebp
pop ebp
ret 8
test esi, esi
je 0x10014646
cmp word [esi], 0
je 0x10014646
cmp eax, 2
jne 0x10014602
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100947be
mov esp, ebp
pop ebp
ret 8
test eax, eax
jne 0x10014630
mov eax, dword [ebp - 0x418]
cmp eax, 1
je 0x1001461b
cmp eax, 7
je 0x1001461b
cmp eax, 2
jne 0x10014630
lea eax, [ebp - 0x414]
push esi
push eax
call dword [sym.imp.MSVCR110.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x1001464a
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100947be
mov esp, ebp
pop ebp
ret 8
test eax, eax
je 0x10014630
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.100947be
mov esp, ebp
pop ebp
ret 8
Function at 0x10014e30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x62c], eax
lea eax, [ebp - 0x628]
push eax
or edx, 1
push edx
push 0
push str.SoftwareNAMSystemNAMClient
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov dword [ebp - 0x630], ebx
mov dword [ebp - 0x628], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10014edf
push str.SoftwareNAMSystemNAMClient
push str.HKEY_LOCAL_MACHINE
push 0x100b30a0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
add esp, 0x14
lea eax, [ebp - 0x20c]
push dword [ebp - 0x62c]
push ebx
push eax
push str.SoftwareNAMSystemNAMClient
push 0
push 0x3010200
call edi
test eax, eax
je 0x10014edf
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100947be
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x620]
push eax
push 0
push str.path
push dword [ebp - 0x628]
mov dword [ebp - 0x624], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x10014f68
cmp word [esi], 0
je 0x10014f68
cmp eax, 2
jne 0x10014f25
lea ebx, [eax - 1]
jmp 0x10014f7c
test eax, eax
je 0x10014f30
mov ebx, 2
jmp 0x10014f7c
mov eax, dword [ebp - 0x620]
cmp eax, 1
je 0x10014f4c
cmp eax, 7
je 0x10014f4c
cmp eax, 2
je 0x10014f4c
mov ebx, 2
jmp 0x10014f7c
lea eax, [ebp - 0x61c]
push esi
push eax
call dword [sym.imp.MSVCR110.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x10014f71
mov ebx, 2
jmp 0x10014f7c
test eax, eax
jne 0x10014f71
lea ebx, [eax + 2]
jmp 0x10014f7c
xor ebx, ebx
test esi, esi
je 0x10014f7c
cmp word [esi], bx
jne 0x10014fd1
push str.path
push str.SoftwareNAMSystemNAMClient
push str.HKEY_LOCAL_MACHINE
push 0x100b30b8
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
add esp, 0x18
lea eax, [ebp - 0x20c]
push dword [ebp - 0x62c]
push dword [ebp - 0x630]
push eax
movzx eax, bl
push esi
shl eax, 0x10
push 1
or eax, 0x3000201
push eax
call edi
test eax, eax
jne 0x10014ecc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.100947be
mov esp, ebp
pop ebp
ret
Function at 0x10014ff0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x834], eax
lea eax, [ebp - 0x830]
push eax
or edx, 1
push edx
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallNAMSystem
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x828], ecx
mov dword [ebp - 0x838], ebx
mov dword [ebp - 0x830], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.MSVCR110.dll_swprintf_s]
test eax, eax
je 0x100150a5
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallNAMSystem
push str.HKEY_LOCAL_MACHINE
push 0x100b30a0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x20c]
push dword [ebp - 0x834]
push ebx
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallNAMSystem
push 0
push 0x2010300
call edi
test eax, eax
je 0x100150a5
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100947be
mov esp, ebp
pop ebp
ret
push 0x100b314c
push dword [ebp - 0x828]
lea eax, [ebp - 0x414]
push 0x100b2f7c
push 0x104
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x82c]
push eax
push 0
push str.UninstallString
push dword [ebp - 0x830]
mov dword [ebp - 0x828], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp word [ebp - 0x414], 0
je 0x10015142
cmp eax, 2
jne 0x1001510c
lea ebx, [eax - 1]
jmp 0x1001514b
test eax, eax
jne 0x10015146
mov eax, dword [ebp - 0x82c]
cmp eax, 1
je 0x10015125
cmp eax, 7
je 0x10015125
cmp eax, 2
jne 0x10015146
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.MSVCR110.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x100151a2
jmp 0x10015146
test eax, eax
jne 0x100151a2
mov ebx, 2
push str.UninstallString
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallNAMSystem
push str.HKEY_LOCAL_MACHINE
push 0x100b30b8
lea eax, [ebp - 0x20c]
push 0x104
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x20c]
push dword [ebp - 0x834]
push dword [ebp - 0x838]
push eax
lea eax, [ebp - 0x414]
push eax
movzx eax, bl
shl eax, 0x10
push 1
or eax, 0x2000301
push eax
call edi
test eax, eax
jne 0x10015092
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.100947be
mov esp, ebp
pop ebp
ret
Function at 0x100160e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100e6018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, edx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x210], eax
test esi, esi
je 0x100162a7
test edi, edi
je 0x100162a7
push ebx
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
test eax, eax
jne 0x10016151
push edx
lea eax, [ebp - 0x214]
push eax
mov eax, dword [ebp + 8]
push edx
or eax, 0x20006
push eax
push edx
push edx
push edx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
jmp 0x10016276
push 0x5c
push esi
call dword [sym.imp.MSVCR110.dll_wcschr]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10016174
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100947be
mov esp, ebp
pop ebp
ret
push 0x5c
push esi
add ebx, 2
call dword [sym.imp.MSVCR110.dll_wcsrchr]
mov esi, eax
add esp, 8
xor eax, eax
test esi, esi
je 0x10016163
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
add esi, 2
call sub.MSVCR110.dll_memset
mov ecx, ebx
add esp, 0xc
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100161b0
sub ecx, edx
mov edx, esi
sar ecx, 1
lea eax, [edx + 2]
mov dword [ebp - 0x21c], eax
lea ebx, [ebx]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100161d0
sub edx, dword [ebp - 0x21c]
lea eax, [ebp - 0x20c]
sar edx, 1
sub ecx, edx
dec ecx
push ecx
push ebx
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcsncpy_s]
add esp, 0x10
lea eax, [ebp - 0x214]
push eax
mov eax, dword [ebp + 8]
or eax, 0x20006
push eax
push 0
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10016284
mov edx, dword [ebp - 0x210]
cmp edx, 4
jne 0x1001624d
push edi
call dword [sym.imp.MSVCR110.dll__wtol]
add esp, 4
mov dword [ebp - 0x210], eax
push 4
lea eax, [ebp - 0x210]
push eax
push 4
jmp 0x10016267
mov ecx, edi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016252
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edi
push edx
push 0
push esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10016284
mov dword [ebp - 0x218], 1
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x218]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100947be
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.100947be
mov esp, ebp
pop ebp
ret
Function at 0x10016420
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x100e6018]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x10016464
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10016497
cmp eax, 2
sete al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret
mov ecx, edi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100164a0
sub ecx, edx
sar ecx, 1
cmp word [edi + ecx*2 - 2], 0x5c
lea esi, [edi + ecx*2]
je 0x100164ca
mov eax, 0x5c
mov word [esi], ax
add esi, 2
xor eax, eax
mov word [esi], ax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x34]
push eax
push 0
push dword [esp + 0x2c]
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1001654e
jmp 0x10016500
lea eax, [esp + 0x20]
push eax
push 0x104
push esi
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
add esp, 0xc
mov edx, edi
mov ecx, ebx
call fcn.10016420
test al, al
je 0x1001654e
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x34]
push eax
push 0
push dword [esp + 0x2c]
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x10016500
xor eax, eax
mov word [esi - 2], ax
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [esp + 0x22c]
pop edi
test eax, eax
pop esi
sete al
pop ebx
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret