joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fc10
Capabilities:
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x9c
xor eax, eax
push ebx
mov dword [esp + 8], eax
push esi
mov dword [esp + 0x10], eax
push edi
mov dword [esp + 0x18], eax
mov ecx, 6
mov dword [esp + 0x1c], eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov ecx, 9
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov ecx, 0x12
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
xor esi, esi
xor ebx, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0xc], eax
call fcn.00420930
lea ecx, [esp + 0x24]
mov edi, eax
push ecx
call fcn.00420950
lea edx, [esp + 0xc]
push edx
push 0x18
push eax
push ebx
push edi
call fcn.00420940
cmp eax, 0xc0000004
jne 0x41fcd5
mov eax, dword [esp + 0xc]
imul eax, eax, 2
jo 0x41fd85
test esi, esi
mov dword [esp + 0xc], eax
je 0x41fca2
call fcn.00420920
push esi
push 1
push eax
call fcn.00420910
call fcn.00420920
mov ecx, dword [esp + 0xc]
push ecx
push 1
push eax
call fcn.00420900
mov esi, eax
call fcn.00420930
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0xc]
push edx
push ecx
push esi
push 0
push eax
call fcn.00420940
cmp eax, 0xc0000004
je 0x41fc7f
test eax, eax
je 0x41fcde
mov ebx, 6
test esi, esi
je 0x41fcf5
lea edx, [esp + 0x24]
push edx
call fcn.00420950
push 0x18
push esi
push eax
call fcn.004208b0
lea eax, [esp + 0x10]
push eax
call fcn.00420950
push 0x14
mov ecx, dword [esp + 0x2c]
push ecx
push eax
call fcn.004208b0
lea edx, [esp + 0x10]
mov esi, dword [esp + 0xac]
push edx
mov dword [esp + 0x1c], esi
call fcn.00420950
push 0x14
push eax
mov eax, dword [esp + 0x30]
push eax
call fcn.004208b0
lea ecx, [esp + 0x3c]
push ecx
call fcn.00420950
push 0x24
mov edx, dword [esp + 0x20]
push edx
push eax
call fcn.004208b0
lea eax, [esp + 0x60]
push eax
call fcn.00420950
push 0x48
mov ecx, dword [esp + 0x4c]
push ecx
push eax
call fcn.004208b0
lea edx, [esp + 0x60]
mov dword [esp + 0x78], esi
push edx
call fcn.00420950
push 0x48
push eax
mov eax, dword [esp + 0x50]
push eax
call fcn.004208b0
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x9c
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
Function at 0x41fd90
Capabilities:
Inspect section memory permissions

Disassembly:
sub esp, 0x124
push ebx
push ebp
push esi
push edi
mov ecx, 0x3e
xor eax, eax
lea edi, [esp + 0x3c]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov ecx, 0xa
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x138]
lea eax, [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x18], ebx
xor esi, esi
call fcn.004206e0
cmp eax, ebx
jne 0x41fde2
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x124
ret 4
movsx edx, word [esp + 0x50]
add eax, 4
jo 0x41fef7
add eax, 0x14
jo 0x41fef7
add eax, edx
jo 0x41fef7
mov edi, eax
mov ax, word [esp + 0x42]
sub ax, 1
jo 0x41fef7
movsx ebp, ax
cmp ebp, ebx
jl 0x41fee8
lea ecx, [esp + 0x14]
push ecx
call fcn.00420950
push 0x28
push edi
push eax
call fcn.004208b0
mov eax, dword [esp + 0x38]
test eax, 0x20000000
je 0x41fe64
test eax, 0x40000000
je 0x41fe53
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 0x20
add eax, 0x20
jmp 0x41fe89
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 0x70
add eax, 0x10
jmp 0x41fe89
test eax, 0x40000000
je 0x41fe7c
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 2
add eax, 2
jmp 0x41fe89
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 7
inc eax
lea edx, [esp + 0x10]
mov esi, eax
push edx
call fcn.00420950
push eax
push esi
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x140]
mov eax, dword [esp + 0x24]
add ecx, esi
push eax
jo 0x41fef7
push ecx
call fcn.00420890
test eax, eax
je 0x41fed6
add edi, 0x28
jo 0x41fef7
add ebx, 1
jo 0x41fef7
cmp ebx, ebp
jle 0x41fe1d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x124
ret 4
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x124
ret 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop

Function at 0x4206e0
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x138
mov ecx, 0x3e
xor eax, eax
push ebx
push esi
push edi
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
call fcn.00420950
push 0x40
mov esi, dword [esp + 0x14c]
push esi
push eax
call fcn.004208b0
mov ecx, dword [esp + 0xc]
and ecx, 0xffff
cmp ecx, 0x5a4d
jne 0x4207a2
mov eax, dword [esp + 0x48]
test al, 3
jne 0x4207a2
add eax, esi
lea edx, [esp + 0x4c]
jo 0x4207b0
push edx
mov esi, eax
call fcn.00420950
push 0xf8
push esi
push eax
call fcn.004208b0
cmp word [esp + 0x64], 0x10b
jne 0x4207a2
cmp dword [esp + 0x4c], 0x4550
jne 0x4207a2
cmp word [esp + 0x60], 0xe0
jne 0x4207a2
mov eax, dword [esp + 0x14c]
push eax
call fcn.00420950
lea ecx, [esp + 0x4c]
mov edi, eax
push ecx
call fcn.00420950
push 0xf8
push eax
push edi
call fcn.004208b0
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x138
ret 8
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x138
ret 8
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1001d6d4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x10079ef8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], esi
call fcn.10035951
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push 4
push esi
push esi
push esi
push 0x10001650
push 0x80000000
call ebx
mov edi, dword [ebp - 0x214]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push 0x100014f0
push edi
call ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
mov eax, dword [ebp - 0x214]
push 0x4a
push 0x10001598
push 1
push esi
push esi
push eax
mov dword [ebp - 0x210], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push 0x10001630
push dword [ebp - 0x210]
call ebx
push dword [ebp - 0x210]
call edi
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x210], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [0x10049404]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push esi
push esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x14
push 0x10001604
push 1
push esi
push 0x100015e4
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
call edi
mov dword [ebp - 0x210], 0x80000002
mov dword [ebp - 0x21c], esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
mov eax, dword [ebp - 0x21c]
push esi
push 4
push esi
push esi
push esi
push dword [eax + 0x10001618]
push dword [ebp - 0x210]
call ebx
cmp dword [ebp - 0x210], 0x80000002
je 0x1001d863
push dword [ebp - 0x210]
call edi
add dword [ebp - 0x21c], 4
cmp dword [ebp - 0x21c], 0x18
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x210], eax
jb 0x1001d827
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x214]
push ecx
push esi
push 0x20006
push esi
push esi
push esi
push 0x10001598
push eax
call ebx
push dword [ebp - 0x210]
call edi
mov ebx, dword [ebp - 0x214]
push 0x4e
push 0x100014f0
push 1
push esi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.10035943
leave
ret
Function at 0x1001d8d2
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 0xc]
push eax
mov edi, 0x20006
push edi
push 0
push 0x10001650
push 0x80000000
call esi
push 0x100014f0
push dword [ebp - 0xc]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
and dword [ebp - 8], 0
mov dword [ebp - 4], 0x80000002
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push edi
push 0
push dword [eax + 0x10001618]
push dword [ebp - 4]
call esi
cmp dword [ebp - 4], 0x80000002
mov dword [ebp - 0x10], eax
je 0x1001d93b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
jne 0x1001d966
add dword [ebp - 8], 4
cmp dword [ebp - 8], 0x18
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
jb 0x1001d911
push 0x10001598
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
leave
ret
Function at 0x1001e75b
Capabilities:
Enumerate files on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10079ef8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x210], eax
mov esi, ecx
xor eax, eax
cmp ax, word [esi + 0x25c]
jne 0x1001e797
push eax
push 0x30303030
call fcn.1001f84f
xor eax, eax
jmp 0x1001e8f6
mov eax, dword [esi + 0x254]
cmp eax, 0xffffffff
je 0x1001e7cf
lea ecx, [esi + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1001e7cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x1001e790
push dword [esi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [esi + 0x254], 0xffffffff
cmp dword [esi + 0x254], 0xffffffff
push edi
jne 0x1001e8e2
push ebx
mov ecx, dword [esi + 0x258]
cmp ecx, 7
jae 0x1001e8d4
mov eax, ecx
imul eax, eax, 0x208
lea eax, [eax + 0x1007b020]
cmp word [eax], 0
jne 0x1001e80d
inc ecx
mov dword [esi + 0x258], ecx
jmp 0x1001e8c7
mov ebx, 0x104
push ebx
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, dword [ebp - 0x210]
push ebx
add edi, 0x250
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.1001da94
jmp 0x1001e84a
cmp word [eax], 0x5c
je 0x1001e84e
xor ecx, ecx
mov word [eax], cx
dec eax
dec eax
cmp eax, edi
ja 0x1001e83d
inc dword [esi + 0x258]
cmp word [ebp - 0x20c], 0x5c
lea ebx, [ebp - 0x20c]
je 0x1001e8b0
lea eax, [esi + 0x25c]
mov ecx, ebx
sub eax, ecx
mov dword [ebp - 0x214], eax
movzx eax, word [eax + ebx]
cmp ax, 0x5c
je 0x1001e8b0
push eax
call fcn.1001f8d4
mov di, ax
movzx eax, word [ebx]
push eax
call fcn.1001f8d4
cmp ax, di
jne 0x1001e8c7
cmp word [ebx], 0x30
je 0x1001e8c7
mov eax, dword [ebp - 0x214]
cmp word [eax + ebx], 0x30
je 0x1001e8c7
inc ebx
inc ebx
cmp word [ebx], 0x5c
jne 0x1001e874
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi + 0x254], eax
cmp dword [esi + 0x254], 0xffffffff
je 0x1001e7de
cmp dword [esi + 0x254], 0xffffffff
pop ebx
jne 0x1001e8e2
xor eax, eax
jmp 0x1001e8f5
mov edi, dword [ebp - 0x210]
add esi, 4
mov ecx, 0x94
xor eax, eax
rep movsd dword es:[edi], dword [esi]
inc eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10035943
leave
ret 4

Function at 0x1001ed46
Capabilities:
Set thread local storage value

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
cmp ecx, edx
jb 0x1001ed67
mov eax, dword [eax + 8]
cmp ecx, eax
jb 0x1001ed67
cmp edx, eax
jb 0x1001ed67
add eax, 0x10000
cmp eax, ecx
jae 0x1001ed92
mov eax, dword [0x10049580]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0
push 0x35636561
call fcn.1001f84f
push 0
push 0
push 1
push 0xe0000001
call dword [sym.imp.KERNEL32.dll_RaiseException]
ret
Function at 0x1001f449
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push esi
lea eax, [esp + 4]
push eax
push 1
push ecx
xor esi, esi
push edx
mov dword [esp + 0x14], esi
call fcn.1002e149
test eax, eax
jne 0x1001f4b3
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x18]
push edx
push esi
push eax
push ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001f4b3
cmp dword [esp + 0x10], 4
jne 0x1001f4b3
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 8]
mov dword [edx], eax
mov esi, 1
mov eax, dword [esp + 4]
test eax, eax
je 0x1001f4ca
push eax
mov dword [esp + 8], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x10020a34
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
jne 0x10020a4c
xor eax, eax
jmp 0x10020b42
push esi
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x10020a5c
cmp dword [0x1007f220], ebx
je 0x10020a6e
mov dword [ebp - 4], ebx
call fcn.1001fef3
test eax, eax
je 0x10020a75
test byte [edi + 0xc], 0x10
jne 0x10020a75
xor eax, eax
jmp 0x10020b41
lea ecx, [ebp - 0x10]
mov dword [ebp + 8], ebx
mov dword [ebp - 8], ebx
call fcn.1002012f
movzx eax, word [edi + 0xc]
neg esi
sbb esi, esi
shr eax, 1
and esi, 2
and eax, 0x10
mov dword [ebp - 0xc], esi
or eax, esi
jmp 0x10020b04
mov eax, dword [edi]
cmp eax, ebx
je 0x10020aa9
push eax
call fcn.1002acfd
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cmp eax, ebx
jne 0x10020ab5
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp dword [ebp - 4], ebx
je 0x10020ad2
push dword [ebp - 4]
call fcn.1001f298
push esi
call fcn.1001ff8c
pop ecx
test eax, eax
je 0x10020b25
push 0x796d7468
push ebx
call fcn.1001f88e
push dword [ebp + 8]
mov ecx, 0x1007f238
call fcn.10020344
movzx eax, word [edi + 0xc]
shr eax, 1
and eax, 0x10
or eax, dword [ebp - 0xc]
mov dword [ebp + 8], ebx
push ebx
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push dword [edi + 8]
call fcn.100203a2
mov esi, eax
add esp, 0x14
cmp esi, ebx
je 0x10020a9a
jmp 0x10020b32
push dword [ebp + 8]
mov ecx, 0x1007f238
call fcn.10020294
lea ecx, [ebp - 0x10]
call fcn.10020153
xor eax, eax
cmp esi, ebx
sete al
pop esi
pop edi
pop ebx
leave
ret
Function at 0x10020f0f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x10020f25
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push ecx
push edi
lea ecx, [ebp + 0xc]
push ecx
push 0
push dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 2
pop ebx
mov esi, eax
cmp dword [ebp - 4], ebx
jae 0x10020f57
cmp dword [ebp + 0xc], 1
je 0x10020f55
cmp dword [ebp + 0xc], ebx
jne 0x10020f57
mov esi, ebx
push esi
call fcn.1001ff8c
pop ecx
test eax, eax
je 0x10020f7d
push 0x796d746b
push 0
call fcn.1001f88e
push dword [ebp + 8]
mov ecx, 0x1007f238
call fcn.10020344
jmp 0x10020fdd
test esi, esi
jne 0x10020fd0
cmp dword [ebp + 0xc], ebx
je 0x10020f8c
cmp dword [ebp + 0xc], 1
jne 0x10020f98
mov eax, dword [ebp - 4]
shr eax, 1
xor ecx, ecx
mov word [edi + eax*2 - 2], cx
cmp dword [ebp + 0xc], ebx
je 0x10020fa2
cmp byte [ebp + 0x1c], bl
jne 0x10020fbb
mov eax, dword [ebp + 0x18]
shr eax, 1
push eax
push edi
call fcn.1001f8fb
pop ecx
pop ecx
test eax, eax
jne 0x10020fbb
mov esi, 0xea
jmp 0x10020fd0
movzx eax, byte [ebp + 0x1c]
push eax
push dword [ebp + 0xc]
call fcn.1001fecb
pop ecx
pop ecx
test eax, eax
jne 0x10020fd0
mov esi, ebx
push dword [ebp + 8]
mov ecx, 0x1007f238
call fcn.10020294
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10020fe6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
or edi, 0xffffffff
cmp dword [ebp - 4], ebx
jne 0x10021010
cmp dword [0x1007f220], ebx
je 0x1002101f
mov dword [ebp - 0xc], 2
jmp 0x1002102c
cmp dword [ebp - 4], 1
jne 0x1002101f
call fcn.1001fef3
test eax, eax
je 0x10021029
test byte [esi + 0xc], 0x10
je 0x1002111c
mov dword [ebp - 0xc], ebx
lea ecx, [ebp - 0x18]
call fcn.1002012f
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
or eax, dword [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push dword [esi + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
call fcn.100203a2
mov edi, eax
add esp, 0x14
cmp edi, ebx
jne 0x10021112
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x10021079
mov eax, dword [ebx]
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
push ecx
push 0
push dword [ebp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
push edi
call fcn.1001ff8c
pop ecx
test eax, eax
je 0x100210de
push 0x796d746c
xor edi, edi
push edi
call fcn.1001f88e
push ebx
mov ecx, 0x1007f238
call fcn.10020344
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
or eax, dword [ebp - 0xc]
push edi
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push dword [esi + 8]
mov dword [ebp - 8], edi
call fcn.100203a2
mov edi, eax
add esp, 0x14
test edi, edi
je 0x10021065
jmp 0x10021112
push ebx
mov ecx, 0x1007f238
call fcn.10020294
test edi, edi
jne 0x10021112
movzx eax, word [esi + 0xc]
mov ecx, eax
and ecx, 0xf
cmp dword [ebp - 0x14], ecx
je 0x10021130
cmp dword [ebp - 0x14], 3
jne 0x1002110f
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], 4
jne 0x1002110f
and al, 0xf
cmp al, 4
je 0x10021130
push 2
pop edi
lea ecx, [ebp - 0x18]
call fcn.10020153
xor ebx, ebx
inc dword [ebp - 4]
cmp dword [ebp - 4], 2
jl 0x10020ff7
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp - 0x18]
mov dword [eax], 1
call fcn.10020153
xor eax, eax
jmp 0x1002112b
Function at 0x10021365
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
jne 0x1002137d
xor eax, eax
jmp 0x100214da
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
call fcn.1001fef3
mov eax, dword [esi]
mov dword [ebp - 0x14], edi
cmp eax, edi
je 0x1002139a
push eax
call fcn.1002acfd
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], edi
push ebx
or ebx, 0xffffffff
cmp dword [ebp - 8], edi
jne 0x100213b7
cmp dword [0x1007f220], edi
je 0x100213c6
mov dword [ebp - 0x18], 2
jmp 0x100213d3
cmp dword [ebp - 8], 1
jne 0x100213c6
call fcn.1001fef3
test eax, eax
je 0x100213d0
test byte [esi + 0xc], 0x10
je 0x10021486
mov dword [ebp - 0x18], edi
lea ecx, [ebp - 0x1c]
mov dword [ebp + 8], edi
call fcn.1002012f
jmp 0x1002143d
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x100213ec
mov eax, dword [ebp + 8]
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push edi
lea ecx, [ebp - 0x10]
push ecx
push edi
push dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], 2
mov ebx, eax
jae 0x10021417
cmp dword [ebp - 0x10], 1
je 0x10021414
cmp dword [ebp - 0x10], 2
jne 0x10021417
push 2
pop ebx
push ebx
call fcn.1001ff8c
pop ecx
test eax, eax
je 0x1002146d
push 0x796d746f
push edi
call fcn.1001f88e
push dword [ebp + 8]
mov ecx, 0x1007f238
call fcn.10020344
mov dword [ebp + 8], edi
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
or eax, dword [ebp - 0x18]
push edi
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
push dword [esi + 8]
mov dword [ebp - 0xc], edi
call fcn.100203a2
mov ebx, eax
add esp, 0x14
cmp ebx, edi
je 0x100213e0
jmp 0x1002147e
push dword [ebp + 8]
mov ecx, 0x1007f238
call fcn.10020294
cmp ebx, edi
je 0x10021495
lea ecx, [ebp - 0x1c]
call fcn.10020153
inc dword [ebp - 8]
cmp dword [ebp - 8], 2
jl 0x1002139e
jmp 0x1002149d
lea ecx, [ebp - 0x1c]
call fcn.10020153
cmp ebx, edi
jne 0x100214bc
cmp dword [ebp - 0x10], 2
je 0x100214b0
mov al, byte [esi + 0xc]
and al, 0xf
cmp al, 2
jne 0x100214bc
push dword [ebp - 4]
call fcn.1001f997
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 0x14], edi
je 0x100214c9
push dword [ebp - 0x14]
call fcn.1001f298
cmp ebx, edi
pop ebx
je 0x100214d7
push esi
call fcn.1001fd74
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 4
Function at 0x1002174c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x1007fd98], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x10021790
call ebx
test eax, eax
jns 0x10021786
push 0x1000211c
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x10002110
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x1007fd94], eax
mov dword [0x1007fd98], 1
mov eax, dword [0x1007fd94]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100217ac
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
test eax, eax
jne 0x100217dc
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x100217d2
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x100217c7
push dword [eax + 0xc]
call dword [eax + 8]
jmp 0x100217cc
push dword [eax + 4]
call dword [eax]
test eax, eax
je 0x100217db
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc

Function at 0x10022233
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x10045df8
call fcn.10035fb1
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
movzx edx, word [eax]
mov ecx, 0x5a4d
cmp dx, cx
jne 0x10022271
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov esi, 0xe0
cmp word [ecx + 0x14], si
jne 0x10022271
add esi, 0x2b
cmp word [ecx + 0x18], si
jne 0x10022271
mov eax, dword [ecx + 0x50]
jmp 0x10022292
mov ecx, 0x4550
cmp dx, cx
jne 0x1002229e
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x1002229e
add ecx, 0x2b
cmp word [eax + 0x18], cx
jne 0x1002229e
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x1c], eax
jmp 0x100222a2
and dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
call fcn.10035ff6
ret

Function at 0x10022a69
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x10022aaf
push edi
push esi
push esi
push 0x80
push 2
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call fcn.1002deef
mov edi, eax
cmp edi, 0xffffffff
je 0x10022aae
push esi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
ret