joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001b76
Capabilities:
Query environment variable

Disassembly:
cmp eax, edi
ja 0x10051f1
push edi
lea eax, [ebp - 8]
push eax
call fcn.01004cfb
mov esi, eax
test esi, esi
jl 0x100525b
mov ebx, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call ebx
jmp 0x1005265
cmp eax, edi
ja 0x1005272
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
and dword [ebp - 8], 0
mov dword [ecx], eax
cmp dword [ebp - 8], 0
jne 0x1005303
cmp dword [ebp - 4], 0
je 0x100156a
push dword [ebp - 4]
call fcn.01001c35
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, 0x104
xor ebx, ebx
push edi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
call fcn.01004cfb
mov esi, eax
cmp esi, ebx
jl 0x10051da
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
push dword [ebp - 4]
push dword [ebp + 8]
call ebx
jmp 0x10051e4
push 0x1005458
jmp 0x10052ee
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x100150a
jmp 0x100521d
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
call fcn.01004cfb
mov esi, eax
test esi, esi
jge 0x100520e
push 0x1005424
jmp 0x10052ee
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x1005248
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1005237
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jl 0x100523e
mov esi, 0x80004005
push dword [ebp + 8]
push 0x10053ec
jmp 0x10052c7
cmp dword [ebp - 0x14], eax
jae 0x1001512
push 0x10053bc
jmp 0x10052e9
push 0x1005394
jmp 0x10052ee
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x100153e
jmp 0x100529e
push eax
mov edi, eax
lea eax, [ebp - 8]
push eax
call fcn.01004cfb
mov esi, eax
test esi, esi
jge 0x100528b
push 0x1005364
jmp 0x10052ee
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x10052dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10052b8
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jl 0x10052bf
mov esi, 0x80004005
push dword [ebp - 4]
push 0x100533c
push 1
push esi
push 0x4000000
call fcn.01007e2b
add esp, 0x14
jmp 0x1001552
cmp edi, eax
jae 0x1001546
push 0x1005310
mov esi, 0x8007007a
push 1
push esi
push 0x4000000
call fcn.01007e2b
add esp, 0x10
jmp 0x1001552
push dword [ebp - 8]
call fcn.01001c35
jmp 0x100155c
Function at 0x100210d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor eax, eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov word [ebx], ax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
xor esi, esi
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
call edi
cmp eax, esi
mov esi, eax
jle 0x1002160
and esi, 0xffff
or esi, 0x80070000
cmp eax, 0x103
je 0x10021d3
test esi, esi
jl 0x1005484
cmp dword [ebp - 8], 1
je 0x100217f
cmp dword [ebp - 8], 2
jne 0x100548b
mov ebx, dword [ebp - 0xc]
shr ebx, 1
inc ebx
push ebx
lea eax, [ebp - 4]
push eax
call fcn.01004cfb
mov esi, eax
test esi, esi
jl 0x1005498
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x10054b5
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [ecx + ebx*2 - 2], ax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
and dword [ebp - 4], 0
mov dword [ecx], eax
cmp dword [ebp - 4], 0
jne 0x10054dd
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x14
push 0x1005584
jmp 0x10054c8
push ebx
mov esi, 0x8007000d
push 0x1005558
jmp 0x10054a0
push dword [ebp + 0x10]
push 0x1005520
push 1
push esi
push 0x4000000
call fcn.01007e2b
add esp, 0x14
jmp 0x10021d3
jle 0x10054c1
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push 0x10054ec
push 1
push esi
push 0x4000000
call fcn.01007e2b
add esp, 0x10
jmp 0x10021d3
push dword [ebp - 4]
call fcn.01001c35
jmp 0x10021dd
Function at 0x100502a
Capabilities:
Check os version

Disassembly:
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edi, 0x102e058
push edi
mov dword [0x102e058], 0x11c
call esi
test eax, eax
je 0x1005042
jmp 0x100508d
jne 0x1001990
mov eax, dword [ebp + 8]
mov dword [eax], 9
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x1005175
jmp 0x100518a
mov ebx, eax
test ebx, ebx
jg 0x100505e
jmp 0x100506c
mov eax, dword [ebp + 8]
and dword [eax], ebx
jmp 0x1001971
mov edi, edi
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [0x102e058], ebx
je 0x10014e5
jmp 0x100508d
push edi
mov dword [0x102e058], 0x114
call esi
test eax, eax
jne 0x100508d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1001981
and ebx, 0xffff
or ebx, 0x80070000
test ebx, ebx
jl 0x1005073
mov ebx, 0x80004005
push 0x1005194
push 1
push ebx
push 0x4000000
call fcn.01007e2b
add esp, 0x10
jmp 0x100518a
mov eax, dword [0x102e05c]
push 7
pop esi
cmp eax, esi
ja 0x1005167
push 6
pop ecx
cmp eax, ecx
jne 0x10050b6
mov eax, dword [0x102e060]
test eax, eax
jbe 0x1001966
jmp 0x1005167
push 5
pop edx
cmp eax, edx
jne 0x10050ee
mov eax, dword [0x102e060]
cmp eax, 2
jne 0x10050d5
mov eax, dword [ebp + 8]
mov dword [eax], 8
jmp 0x1001971
cmp eax, 1
jne 0x10050e4
mov eax, dword [ebp + 8]
mov dword [eax], esi
jmp 0x1001971
test eax, eax
jne 0x1001990
jmp 0x1005118
push 4
pop ecx
cmp eax, ecx
jne 0x1005143
mov eax, dword [0x102e060]
test eax, eax
jne 0x1005113
push 2
pop eax
cmp dword [0x102e068], eax
jne 0x1005139
mov eax, dword [ebp + 8]
mov dword [eax], edx
jmp 0x1001971
cmp eax, 0x5a
jne 0x1005122
mov eax, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x1001971
cmp eax, 0xa
jne 0x1001990
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x1001971
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x1001971
cmp eax, 3
jne 0x1001990
cmp dword [0x102e060], 0x33
jne 0x1001990
mov eax, dword [ebp + 8]
mov dword [eax], 1
jmp 0x1001971
mov eax, dword [ebp + 8]
mov dword [eax], 0xa
jmp 0x1001971
movzx ecx, word [0x102e16c]
movzx edx, word [0x102e16e]
shl ecx, 0x10
or ecx, edx
mov dword [eax], ecx
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x10065c9
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
push edi
push edi
mov dword [eax], edi
mov eax, dword [ebp + 0xc]
push eax
push 0x1005d92
push edi
push edi
mov dword [ebp - 4], edi
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
mov dword [ebp - 8], ebx
cmp ebx, edi
jne 0x1006636
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, edi
jle 0x1006615
and ebx, 0xffff
or ebx, 0x80070000
cmp ebx, edi
jl 0x100661c
mov ebx, 0x80004005
push 0x10068f4
push 1
push ebx
push 0x4000000
call fcn.01007e2b
add esp, 0x10
jmp 0x10067c2
mov eax, dword [0x102e00c]
push esi
push 0xffffffffffffffff
mov dword [ebp - 0x10], eax
push edi
lea eax, [ebp - 0x10]
push eax
push 2
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov esi, eax
sub eax, edi
je 0x10066a8
dec eax
je 0x100668e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, edi
jle 0x1006674
and ebx, 0xffff
or ebx, 0x80070000
cmp ebx, edi
jl 0x100667b
mov ebx, 0x80004005
push esi
push 0x10068b4
push 1
push ebx
push 0x4000000
jmp 0x10067b0
push 0x1006888
push edi
push edi
mov esi, 0x4000000
push esi
call fcn.01007e2b
add esp, 0x10
jmp 0x100673b
push 0x1006838
push edi
push edi
mov esi, 0x4000000
push esi
call fcn.01007e2b
mov eax, dword [0x102e008]
add esp, 0x10
cmp eax, edi
je 0x10066f2
push 0x102e038
push eax
mov dword [0x102e03c], 3
mov dword [0x102e040], edi
mov dword [0x102e044], edi
mov dword [0x102e050], 0x7530
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
push edi
call fcn.01006aea
cmp eax, edi
jge 0x100670d
push 0x1005770
push 1
push eax
push esi
call fcn.01007e2b
add esp, 0x10
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp + 0xc], eax
cmp eax, edi
jne 0x1006783
push 0x10067fc
push edi
push edi
push esi
call fcn.01007e2b
add esp, 0x10
call fcn.01006b6a
mov eax, dword [ebp + 8]
mov dword [eax], 1
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x100674f
mov ebx, dword [ebp - 4]
jmp 0x10067b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, edi
jle 0x1006769
and ebx, 0xffff
or ebx, 0x80070000
cmp ebx, edi
jl 0x1006770
mov ebx, 0x80004005
push 0x10067cc
push 1
push ebx
push esi
call fcn.01007e2b
add esp, 0x10
jmp 0x10067b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, edi
jle 0x100679d
and ebx, 0xffff
or ebx, 0x80070000
cmp ebx, edi
jl 0x10067a4
mov ebx, 0x80004005
push dword [ebp + 0xc]
push 0x10068b4
push 1
push ebx
push esi
call fcn.01007e2b
add esp, 0x14
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x1007025
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
push edi
mov edi, 0x4000000
test eax, eax
je 0x1007071
dec eax
mov dword [esi], eax
jne 0x1007071
push 0x10057a0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x1007071
jle 0x100705e
and eax, 0xffff
or eax, 0x80070000
push 0x10070a4
mov ebx, eax
push 1
push ebx
push edi
call fcn.01007e2b
add esp, 0x10
push dword [esi]
push 0x100708c
push 0
push 0
push edi
call fcn.01007e2b
add esp, 0x14
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x1007028
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
push edi
mov edi, 0x4000000
test eax, eax
je 0x1007071
dec eax
mov dword [esi], eax
jne 0x1007071
push 0x10057a0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x1007071
jle 0x100705e
and eax, 0xffff
or eax, 0x80070000
push 0x10070a4
mov ebx, eax
push 1
push ebx
push edi
call fcn.01007e2b
add esp, 0x10
push dword [esi]
push 0x100708c
push 0
push 0
push edi
call fcn.01007e2b
add esp, 0x14
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x10075dd
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
inc ebx
push ebx
push ebx
xor esi, esi
push 0x102e260
push esi
mov dword [ebp - 4], esi
call fcn.0100a91e
mov edi, eax
cmp edi, esi
jge 0x1007613
push 0x100771c
push ebx
push edi
mov esi, 0x4000000
jmp 0x1007663
push 0x80020003
push 7
push esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_InitiateShutdownW]
cmp eax, esi
jle 0x1007631
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov esi, 0x4000000
test edi, edi
jge 0x100764c
push 0x1007700
push ebx
push edi
push esi
call fcn.01007e2b
add esp, 0x10
push 0
push dword [ebp - 4]
push 0
call fcn.0100a63a
test eax, eax
jge 0x100766c
push 0x10076d8
push ebx
push eax
push esi
call fcn.01007e2b
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x100767b
push dword [ebp - 4]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
test edi, edi
jl 0x10076a0
call fcn.010011df
push ebx
push 2
call fcn.01006dda
test eax, eax
jge 0x10076a0
push 0x10076a8
push ebx
push eax
push esi
call fcn.01007e2b
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1007bc2
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push esi
push ecx
push eax
mov esi, 0x400
push esi
lea eax, [ebp - 0x404]
push eax
call fcn.01007b4b
test eax, eax
jl 0x1007c3d
cmp byte [ebp + 0xc], 0
je 0x1007c30
push dword [ebp + 8]
call fcn.010079e8
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push eax
push 0x1005928
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.01007b87
add esp, 0x18
test eax, eax
jl 0x1007c3d
lea eax, [ebp - 0x804]
jmp 0x1007c36
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01004c85
leave
ret 0x10

Function at 0x1007c51
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
mov esi, 0x400
push esi
lea eax, [ebp - 0x404]
push eax
call fcn.01007b4b
test eax, eax
jl 0x1007ccb
cmp byte [ebp + 0xc], 0
je 0x1007cbe
push dword [ebp + 8]
call fcn.010079e8
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push eax
push 0x1005928
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.01007b87
add esp, 0x18
test eax, eax
jl 0x1007ccb
lea eax, [ebp - 0x804]
jmp 0x1007cc4
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01004c85
leave
ret
Function at 0x1007f63
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4b8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov esi, 0x24c
push esi
lea eax, [ebp - 0x250]
push edi
push eax
mov dword [ebp - 0x4b8], ebx
mov dword [ebp - 0x4b0], edi
mov dword [ebp - 0x4ac], edi
mov dword [ebp - 0x254], edi
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x4a0]
push edi
push eax
mov dword [ebp - 0x4a4], edi
call sub.msvcrt.dll_memset
add esp, 0x18
push ebx
lea eax, [ebp - 0x4b0]
push eax
call fcn.010023b5
cmp eax, edi
mov dword [ebp - 0x4a8], eax
jge 0x1007ff4
push ebx
push 0x1008270
push 1
push eax
push 0x4000000
call fcn.01007e2b
add esp, 0x14
jmp 0x1008175
push 0x1008250
lea eax, [ebp - 0x4b0]
push eax
call fcn.01001e3a
cmp eax, edi
mov dword [ebp - 0x4a8], eax
jge 0x1008029
push 0x1008210
push 1
push eax
push 0x4000000
call fcn.01007e2b
add esp, 0x10
jmp 0x1008175
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x4b0]
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x4b4], eax
cmp eax, 0xffffffff
je 0x1008175
test byte [ebp - 0x254], 0x10
jne 0x1008088
cmp ebx, edi
je 0x1008072
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x490]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x1008087
mov ecx, 0x94
lea esi, [ebp - 0x254]
lea edi, [ebp - 0x4a4]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
inc ebx
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x4b4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100804d
cmp ebx, 5
jbe 0x1008169
lea eax, [ebp - 0x478]
push eax
push dword [ebp - 0x4b8]
lea eax, [ebp - 0x4ac]
push 0x1005944
push eax
call fcn.01002525
add esp, 0x10
cmp eax, edi
mov dword [ebp - 0x4a8], eax
jl 0x1008113
push dword [ebp - 0x4ac]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x100811d
push dword [ebp - 0x4b4]
dec ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x4ac], edi
je 0x1008109
push dword [ebp - 0x4ac]
call fcn.01001c35
mov dword [ebp - 0x4ac], edi
cmp ebx, 5
jbe 0x1008175
jmp 0x1008029
push 0x10081dc
push 1
push eax
jmp 0x100815c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [ebp - 0x4a8], eax
jle 0x100813d
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x4a8], eax
cmp dword [ebp - 0x4a8], edi
jl 0x100814f
mov dword [ebp - 0x4a8], 0x80004005
push 0x10081b4
push 1
push dword [ebp - 0x4a8]
push 0x4000000
call fcn.01007e2b
add esp, 0x10
push dword [ebp - 0x4b4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x4b0], edi
je 0x1008188
push dword [ebp - 0x4b0]
call fcn.01001c35
cmp dword [ebp - 0x4ac], edi
pop edi
pop esi
pop ebx
je 0x100819e
push dword [ebp - 0x4ac]
call fcn.01001c35
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x4a8]
xor ecx, ebp
call fcn.01004c85
leave
ret 4
Function at 0x1009d03
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1009d1f
test al, 0x10
jne 0x1009d1f
xor eax, eax
inc eax
jmp 0x1009d21
xor eax, eax
pop ebp
ret 4

Function at 0x1009f94
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov dword [ebp - 0x210], eax
xor esi, esi
call ebx
test eax, eax
jne 0x100a082
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100a080
push 0x5c
push edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
jne 0x1009ff9
push edi
mov esi, 0x80070003
push 0x100a0d8
jmp 0x100a042
sub eax, edi
sar eax, 1
push eax
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.01009ddb
mov esi, eax
test esi, esi
jge 0x100a01e
push edi
push 0x100a0b4
jmp 0x100a042
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
call fcn.01009f94
mov esi, eax
test esi, esi
jge 0x100a054
lea eax, [ebp - 0x20c]
push eax
push 0x100a098
push 1
push esi
push 0x4000000
call fcn.01007e2b
add esp, 0x14
jmp 0x100a082
push dword [ebp - 0x210]
push edi
call ebx
test eax, eax
jne 0x100a080
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100a080
test eax, eax
jle 0x100a07c
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x100a082
xor esi, esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01004c85
leave
ret 8
Function at 0x100a45d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
cmp dword [ebp + 0xc], edi
je 0x100a4d1
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test byte [ebp + 0x10], 1
je 0x100a4b7
cmp eax, 2
je 0x100a4a2
cmp eax, 3
jne 0x100a4b7
cmp eax, edi
jle 0x100a4b0
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x100a561
cmp eax, edi
je 0x100a4d7
jle 0x100a4c7
and eax, 0xffff
or eax, 0x80070000
push dword [ebp + 0xc]
push 0x10059c8
jmp 0x100a521
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x14]
mov dword [ebp - 8], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test byte [ebp + 0x10], 1
je 0x100a509
cmp eax, 2
jne 0x100a509
mov ebx, 0x80070002
jmp 0x100a561
cmp eax, edi
je 0x100a535
jle 0x100a519
and eax, 0xffff
or eax, 0x80070000
push dword [ebp + 0x14]
push 0x10059f8
mov ebx, eax
push 1
push ebx
push 0x4000000
call fcn.01007e2b
add esp, 0x14
jmp 0x100a561
cmp dword [ebp - 0xc], 4
je 0x100a559
push 0x100a57c
mov eax, 0x8007000d
push 1
push eax
push 0x4000000
mov ebx, eax
call fcn.01007e2b
add esp, 0x10
jmp 0x100a561
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
cmp dword [ebp + 0xc], edi
je 0x100a574
cmp dword [ebp - 4], edi
je 0x100a574
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
leave
ret 0x14

Function at 0x100a5a5
Capabilities:
Modify service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x30]
xor esi, esi
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x100a609
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x100a5f2
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jge 0x100a609
push 0x100a610
push 1
push esi
push 0x4000000
call fcn.01007e2b
add esp, 0x10
mov eax, esi
pop esi
pop ebp
ret 0x2c
Function at 0x10002e80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10002ed9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10002ed9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x10002ec8
cmp esi, edx
jae 0x10002ed9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x10002eb6
cmp esi, edx
jae 0x10002ed9
cmp word [esi], 0
je 0x10002ed9
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x10003300
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100917e8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100bc06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
mov edi, esp
mov dword [ebp - 0x2c], edi
call fcn.10002ff0
mov ebx, eax
test ebx, ebx
je 0x10003419
mov eax, dword [ebx]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x100993c0]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [edi], eax
push str.kernel32.dll
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.10004620
test al, al
jne 0x1000337b
push 0xc
push str.kernel32.dll
mov ecx, edi
call fcn.10005050
mov dword [ebp - 4], 0xffffffff
call fcn.10028990
add esp, 4
test eax, eax
jne 0x10003392
xor eax, eax
jmp 0x100033fd
push 0x100aa520
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x1000338e
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
push 0x40
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, eax
mov byte [ebp - 0x24], 0xe9
lea eax, [ebp - 0x30]
mov ecx, method.std::_Ref_count_obj_alloc_class___ExceptionPtr__struct__StaticAllocator_int__.virtual_12
push eax
push 5
lea eax, [ebp - 0x24]
sub ecx, edi
push eax
sub ecx, 5
push edi
mov dword [ebp - 0x23], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebx, eax
test esi, esi
je 0x100033fb
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x28]
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005540b
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10002d90
int3