joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003958
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x18]
xor ecx, ecx
lea edx, [ebp - 0xc]
push edx
push ecx
push ecx
push 8
push eax
mov ebx, 0x10013f8
push ebx
mov edi, 0x80000001
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
xor ecx, ecx
cmp eax, ecx
jle 0x10039a1
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ecx
jne 0x1003a81
mov dword [ebp - 4], 0x800700ea
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 4], 0x800700ea
jne 0x1003a1f
push dword [ebp - 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 8], eax
test eax, eax
je 0x1003a18
mov eax, dword [esi + 0x18]
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 8]
push 0
push 8
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jle 0x10039f6
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, 0x800700ea
jne 0x1003a0d
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebp - 8], 0
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 5
jb 0x10039b6
jmp 0x1003a1f
mov dword [ebp - 4], 0x8007000e
xor ecx, ecx
cmp dword [ebp - 4], ecx
jne 0x1003a81
lea eax, [ebp - 0x14]
push eax
push ecx
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov dword [ebp - 4], eax
test eax, eax
jne 0x1003aad
lea edi, [esi + 0x3c]
push edi
push 0x10015ec
push 1
push eax
push 0x1002868
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 4], eax
test eax, eax
jne 0x1003aad
mov eax, dword [edi]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push 0x10015fc
push eax
call dword [ecx]
mov dword [ebp - 4], eax
test eax, eax
jne 0x1003aad
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov dword [ebp - 4], eax
jmp 0x1003aa7
cmp dword [ebp - 4], 0x80070002
jne 0x1003a8f
mov dword [ebp - 4], ecx
jmp 0x1003abe
cmp dword [ebp - 4], 0x8007065e
jne 0x1003aa7
push dword [esi + 0x18]
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyValueW]
and dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x1003abe
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x1003abe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [esi + 0x3c], 0
cmp dword [ebp - 8], 0
pop edi
pop esi
pop ebx
je 0x1003ad0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1003add
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1003aea
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
leave
ret
Function at 0x1003dae
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
push esi
xor eax, eax
push edi
lea edi, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov byte [eax], bl
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
cmp eax, ebx
je 0x1003f0d
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
call dword [ecx + 0xc]
mov edi, eax
cmp edi, ebx
jne 0x1003f10
cmp dword [ebp - 0x10], ebx
jbe 0x1003ec4
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x10015fc
push eax
call dword [ecx]
mov edi, eax
cmp edi, ebx
jne 0x1003f10
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
xor edi, edi
inc edi
cmp eax, edi
je 0x1003f10
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push eax
call dword [ecx + 0x1c]
mov edi, eax
cmp dword [ebp - 0x14], ebx
ja 0x1003e48
cmp dword [ebp - 0x18], 0xffffffff
jbe 0x1003e4d
mov edi, 0x80004005
cmp edi, ebx
jne 0x1003f01
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x1003e70
mov edi, 0x8007000e
jmp 0x1003f01
lea ecx, [ebp - 0xc]
push ecx
push ebx
push eax
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov edi, eax
cmp edi, ebx
jne 0x1003f01
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 1
push dword [ebp - 0xc]
push eax
call dword [ecx + 0x18]
mov edi, eax
cmp edi, ebx
jne 0x1003f01
push dword [ebp - 0x18]
mov eax, dword [esi + 0x18]
push dword [ebp - 8]
push 3
push eax
push 0x10013f8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
cmp eax, ebx
jle 0x1003ec0
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x1003f01
push dword [esi + 0x18]
push 0x10013f8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyValueW]
cmp eax, ebx
jle 0x1003ee5
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, 0x80070002
jne 0x1003ef1
xor edi, edi
cmp edi, ebx
jne 0x1003f01
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 0x3c], ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.01003751
jmp 0x1003f10
xor edi, edi
inc edi
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x1003f1d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x1003f2a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 8], ebx
je 0x1003f38
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1008e71
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
push edi
xor edi, edi
mov dword [eax], edi
lea eax, [ebp - 0xc]
push eax
push edi
push edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], edi
call esi
mov ebx, 0x80070000
test eax, eax
jne 0x1008efb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1008efb
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push 2
pop ecx
mul ecx
push edx
push eax
call fcn.01008e3f
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x1008ef1
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x1008f13
mov dword [ebp - 4], 0x8007000e
cmp dword [ebp - 8], edi
je 0x1008ef1
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1008f0c
and eax, 0xffff
or eax, ebx
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x1008ef1
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push edi
call esi
test eax, eax
jne 0x1008f39
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1008f32
and eax, 0xffff
or eax, ebx
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x1008ee2
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x1008ef1
Function at 0x100b9f3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegGetValueW]
push edi
push 4
pop ebx
mov edi, ecx
lea ecx, [ebp - 4]
push ecx
xor eax, eax
lea ecx, [edi + 4]
push ecx
push eax
push 0x18
push 0x1001dbc
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
push dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
call esi
test eax, eax
jle 0x100ba3a
and eax, 0xffff
or eax, 0x80070000
cmp eax, 0x8007065e
jne 0x100ba69
mov eax, dword [0x1014004]
cmp eax, 0x1014004
je 0x100ba67
test byte [eax + 0x1c], bl
je 0x100ba67
push dword [ebp + 0xc]
push 0x1001d24
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01006bb4
xor eax, eax
cmp eax, 0x80070002
jne 0x100ba72
xor eax, eax
test eax, eax
jne 0x100bc13
lea eax, [ebp - 4]
push eax
lea eax, [edi + 8]
push eax
push 0
push 0x18
push 0x1001dac
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call esi
test eax, eax
jle 0x100baa4
and eax, 0xffff
or eax, 0x80070000
cmp eax, 0x8007065e
jne 0x100bad3
mov eax, dword [0x1014004]
cmp eax, 0x1014004
je 0x100bad1
test byte [eax + 0x1c], bl
je 0x100bad1
push dword [ebp + 0xc]
push 0x1001d24
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01006bb4
xor eax, eax
cmp eax, 0x80070002
jne 0x100badc
xor eax, eax
test eax, eax
jne 0x100bc13
push edi
push 0x1001d98
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.010121f1
cmp eax, 0x8007065e
jne 0x100bb24
mov eax, dword [0x1014004]
cmp eax, 0x1014004
je 0x100bb22
test byte [eax + 0x1c], bl
je 0x100bb22
push dword [ebp + 0xc]
push 0x1001d24
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01006bb4
xor eax, eax
cmp eax, 0x80070002
jne 0x100bb2d
xor eax, eax
test eax, eax
jne 0x100bc13
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x18
push 0x1001d68
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call esi
test eax, eax
jle 0x100bb5f
and eax, 0xffff
or eax, 0x80070000
cmp eax, 0x8007065e
jne 0x100bb8e
mov eax, dword [0x1014004]
cmp eax, 0x1014004
je 0x100bb8c
test byte [eax + 0x1c], bl
je 0x100bb8c
push dword [ebp + 0xc]
push 0x1001d24
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01006bb4
xor eax, eax
cmp eax, 0x80070002
jne 0x100bb97
xor eax, eax
test eax, eax
jne 0x100bc13
cmp dword [ebp - 8], eax
mov dword [ebp - 4], ebx
seta al
mov byte [edi + 0xc], al
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x18
push 0x1001d34
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jle 0x100bbce
and eax, 0xffff
or eax, 0x80070000
cmp eax, 0x8007065e
jne 0x100bbfd
mov eax, dword [0x1014004]
cmp eax, 0x1014004
je 0x100bbfb
test byte [eax + 0x1c], bl
je 0x100bbfb
push dword [ebp + 0xc]
push 0x1001d24
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01006bb4
xor eax, eax
cmp eax, 0x80070002
jne 0x100bc06
xor eax, eax
test eax, eax
jne 0x100bc13
cmp dword [ebp - 0xc], eax
seta cl
mov byte [edi + 0xd], cl
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100e517
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x10143f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x68], eax
xor eax, eax
xor esi, esi
push 0x4c
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x52]
push esi
push eax
mov dword [ebp - 0x58], esi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
push 9
push esi
push edi
push 0x80000002
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x60], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
mov ebx, 0x80070000
jle 0x100e57b
and eax, 0xffff
or eax, ebx
mov edi, eax
cmp edi, esi
jne 0x100e612
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x5c]
mov dword [ebp - 0x64], 0x27
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, esi
jle 0x100e5af
and eax, 0xffff
or eax, ebx
mov edi, eax
cmp edi, esi
jne 0x100e5ec
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x58]
call fcn.0100bc68
mov edi, eax
cmp edi, esi
jne 0x100e5dd
mov ecx, dword [ebp - 0x68]
push esi
push esi
lea eax, [ebp - 0x60]
push eax
call fcn.0100e152
mov edi, eax
jmp 0x100e5e7
cmp edi, 0x80070057
jne 0x100e5e7
xor edi, edi
mov dword [ebp - 0x60], esi
jmp 0x100e5f6
cmp edi, 0x800700ea
jne 0x100e5f6
xor edi, edi
inc dword [ebp - 0x5c]
cmp edi, esi
je 0x100e585
cmp edi, 0x80070103
jne 0x100e607
xor edi, edi
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100e61c
cmp edi, 0x80070002
jne 0x100e61c
xor edi, edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01011cef
leave
ret 8
Function at 0x100e634
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x10143f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x218], eax
xor eax, eax
xor esi, esi
push 0x1fe
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push esi
push eax
mov dword [ebp - 0x208], esi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push 9
push esi
push edi
push 0x80000002
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
mov ebx, 0x80070000
jle 0x100e6b6
and eax, 0xffff
or eax, ebx
mov edi, eax
cmp edi, esi
jne 0x100e778
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x20c]
mov dword [ebp - 0x214], 0x100
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, esi
jle 0x100e6f9
and eax, 0xffff
or eax, ebx
mov edi, eax
cmp edi, esi
jne 0x100e748
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x208]
call fcn.0100bda0
mov edi, eax
cmp edi, esi
jne 0x100e736
mov ecx, dword [ebp - 0x218]
push esi
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.0100e1b7
mov edi, eax
jmp 0x100e740
cmp edi, 0x80070057
jne 0x100e740
xor edi, edi
mov dword [ebp - 0x210], esi
jmp 0x100e752
cmp edi, 0x800700ea
jne 0x100e752
xor edi, edi
inc dword [ebp - 0x20c]
cmp edi, esi
je 0x100e6c0
cmp edi, 0x80070103
jne 0x100e76a
xor edi, edi
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100e782
cmp edi, 0x80070002
jne 0x100e782
xor edi, edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01011cef
leave
ret 8
Function at 0x100fa0c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xf8
mov eax, dword [0x10143f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
push 0x64
mov word [ebp - 0xbc], ax
lea eax, [ebp - 0xba]
push ebx
push eax
mov dword [ebp - 0xf8], ecx
mov dword [ebp - 0xe8], ebx
call sub.msvcrt.dll_memset
xor eax, eax
push 0x4c
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x52]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
push 8
pop ecx
xor eax, eax
mov dword [ebp - 0xe0], ebx
lea edi, [ebp - 0xdc]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xe8]
push eax
push 1
push ebx
mov edi, 0x10020b0
push edi
push 0x80000002
mov dword [ebp - 0xf4], ebx
mov dword [ebp - 0xf0], ebx
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0xec], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jle 0x100fab3
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jne 0x100fc34
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0xec]
push eax
push ebx
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0xbc]
push eax
push dword [ebp - 0xe4]
mov dword [ebp - 0xf4], 0x33
push dword [ebp - 0xe8]
mov dword [ebp - 0xf0], 0x4e
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, ebx
jle 0x100fb12
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jne 0x100fbd9
cmp dword [ebp - 0xec], 1
jne 0x100fbb7
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0xbc]
push eax
call dword [sym.imp.PROPSYS.dll_PSPropertyKeyFromString]
mov esi, eax
cmp esi, ebx
jne 0x100fb5a
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov esi, eax
cmp esi, ebx
je 0x100fb92
cmp esi, 0x8007000e
je 0x100fb8e
mov eax, dword [0x1014004]
cmp eax, 0x1014004
je 0x100fb8e
test byte [eax + 0x1c], 2
je 0x100fb8e
push dword [ebp - 0xe4]
push esi
push edi
push 0x10020a0
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a669
cmp esi, ebx
jne 0x100fbab
mov ecx, dword [ebp - 0xf8]
push ebx
push ebx
lea eax, [ebp - 0xe0]
push eax
add ecx, 4
call fcn.0100f992
mov esi, eax
cmp esi, 0x8007000e
je 0x100fc0e
xor esi, esi
jmp 0x100fc0e
mov eax, dword [0x1014004]
cmp eax, 0x1014004
je 0x100fc0e
test byte [eax + 0x1c], 2
je 0x100fc0e
push dword [ebp - 0xe4]
push edi
push 0x10020a0
push 0xc
jmp 0x100fc03
cmp esi, 0x800700ea
jne 0x100fc0e
xor esi, esi
mov eax, dword [0x1014004]
cmp eax, 0x1014004
je 0x100fc0e
test byte [eax + 0x1c], 2
je 0x100fc0e
push dword [ebp - 0xe4]
push edi
push 0x10020a0
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100bef8
inc dword [ebp - 0xe4]
cmp esi, ebx
je 0x100fabd
cmp esi, 0x80070103
jne 0x100fc26
xor esi, esi
push dword [ebp - 0xe8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100fc61
cmp esi, 0x80070002
jne 0x100fc61
mov eax, dword [0x1014004]
cmp eax, 0x1014004
je 0x100fc61
test byte [eax + 0x1c], 4
je 0x100fc61
push edi
push 0x10020a0
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01006bb4
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01011cef
leave
ret
Function at 0x1011c89
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x1013058
call fcn.01011ea4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x10147e8
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x1011a40
cmp eax, esi
jne 0x1011a33
xor esi, esi
inc esi
mov ebx, esi
jmp 0x1011a43
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1011a1a
xor esi, esi
inc esi
mov eax, dword [0x10147e4]
cmp eax, esi
jne 0x1011a56
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1011a85
mov eax, dword [0x10147e4]
test eax, eax
jne 0x1011a7f
mov dword [0x10147e4], esi
push 0x1001248
push 0x100123c
call fcn.0101197f
pop ecx
pop ecx
test eax, eax
je 0x1011a85
jmp 0x1011bad
mov dword [0x10144a8], esi
mov eax, dword [0x10147e4]
cmp eax, esi
jne 0x1011aa9
push 0x1001238
push 0x100122c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10147e4], 2
test ebx, ebx
jne 0x1011ab5
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10147ec], 0
je 0x1011ad9
push 0x10147ec
call fcn.01011e19
pop ecx
test eax, eax
je 0x1011ad9
push 0
push 2
push 0
call dword [0x10147ec]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x1011b35
test al, al
je 0x1011af3
cmp dword [ebp - 0x1c], 0
jne 0x1011b35
mov al, byte [esi]
test al, al
je 0x1011b03
cmp al, 0x20
ja 0x1011b03
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1011af3
test byte [ebp - 0x3c], 1
je 0x1011b0f
movzx eax, word [ebp - 0x38]
jmp 0x1011b12
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x10144a4], eax
cmp dword [0x1014498], 0
jne 0x1011b89
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x1011b44
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x1011b57
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x1011ae0
cmp dword [0x10144a8], 0
jne 0x1011b98
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10144a4]
jmp 0x1011bb9
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01011ee9
ret
call fcn.01011ff1
jmp 0x10119e0
Function at 0x10121f1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegGetValueW]
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
push eax
push 2
push dword [ebp + 0x10]
mov dword [ebp - 4], eax
push dword [ebp + 0xc]
mov dword [ebx], eax
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
jne 0x1012279
and dword [ebp + 0x14], eax
mov esi, 0xea
cmp esi, 0xea
jne 0x1012277
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebx], eax
test eax, eax
je 0x1012274
lea ecx, [ebp - 4]
push ecx
push eax
push 0
push 2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
je 0x1012269
push dword [ebx]
call dword [sym.imp.msvcrt.dll_free]
and dword [ebx], 0
pop ecx
inc dword [ebp + 0x14]
cmp dword [ebp + 0x14], 5
jb 0x101222b
jmp 0x1012277
push 0xe
pop esi
test esi, esi
jle 0x1012287
and esi, 0xffff
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1012769
Capabilities:
Get system firmware table

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
mov edi, 0x52534d42
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [eax], ebx
call esi
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x10127b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10127ad
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x10127d1
push dword [ebp - 0xc]
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x10127d1
push dword [ebp - 0xc]
push eax
push ebx
push edi
call esi
cmp eax, ebx
jne 0x10127ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10127e5
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x1012808
cmp eax, dword [ebp - 0xc]
ja 0x1012801
cmp eax, 9
jb 0x1012801
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 4]
add ecx, 8
cmp ecx, eax
jbe 0x101280d
mov dword [ebp - 4], 0x8000ffff
cmp dword [ebp - 4], ebx
jne 0x1012817
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
jmp 0x1012826
cmp dword [ebp - 8], ebx
je 0x1012826
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0xcf9370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xcf938e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xd22074
push ecx
mov edi, eax
call fcn.00d0d198
mov esi, eax
add esp, 8
test esi, esi
jne 0xcf93cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00d0d02e
push esi
call fcn.00d0cfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret