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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
push esi
push 0x8000000
push 3
xor eax, eax
push esi
inc eax
push eax
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp + 0x10], ebx
cmp ebx, 0xffffffff
jne 0x1065cf6
call fcn.01091f43
mov ebx, eax
push ebx
push 0x23d20139
jmp 0x1065d8f
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x1065d15
call fcn.01091f43
mov ebx, eax
push ebx
push 0x23d90139
jmp 0x1065d8f
lea ecx, [ebp - 0x10]
push ecx
push eax
push ebx
call fcn.0106035c
mov ebx, eax
cmp ebx, esi
je 0x1065d2e
push ebx
push 0x23df0139
jmp 0x1065d8f
push esi
push esi
push esi
push dword [ebp + 0x10]
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1065d50
call fcn.01091f43
mov ebx, eax
push ebx
push 0x23e50139
jmp 0x1065d8f
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
call fcn.0105ed72
mov ebx, eax
cmp ebx, esi
je 0x1065d72
push ebx
push 0x23eb0139
jmp 0x1065d8f
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
push dword [ebp + 0x10]
call fcn.010654ed
mov ebx, eax
cmp ebx, esi
je 0x1065d94
push ebx
push 0x23f00139
call fcn.0108c55a
mov edi, dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
cmp dword [ebp - 0xc], esi
je 0x1065da4
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 0x10], esi
je 0x1065dae
push dword [ebp - 0x10]
call edi
cmp dword [ebp - 4], esi
je 0x1065dbc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 8], esi
je 0x1065dcb
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [ebp + 0x10], 0xffffffff
je 0x1065dda
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
Function at 0x1067010
Capabilities:
Get hostname
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x10d0620]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push 4
mov dword [ebp - 0x208], 0x100
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov esi, 0x1004310
test eax, eax
jne 0x106706f
call fcn.01091f43
mov edi, eax
push edi
push 0x6a2013a
call fcn.0108c55a
push edi
push 0x10130cc
call fcn.0108bdc7
jmp 0x1067091
lea eax, [ebp - 0x204]
push eax
push 0x893
call fcn.0108bc14
push eax
call fcn.0109c1a8
push esi
call fcn.0109c1a8
add esp, 0xc
xor edi, edi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push 2
mov dword [ebp - 0x208], 0x100
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x10670d9
call fcn.01091f43
push edi
push 0x6b1013a
mov esi, eax
call fcn.0108c55a
push esi
push 0x10130b0
call fcn.0108bdc7
test edi, edi
jne 0x10670ff
mov edi, esi
jmp 0x10670ff
lea eax, [ebp - 0x204]
push eax
push 0x894
call fcn.0108bc14
push eax
call fcn.0109c1a8
push esi
call fcn.0109c1a8
push esi
call fcn.0109c1a8
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.01077dc7
leave
ret
Function at 0x106bf9e
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x10c0ec4
call fcn.01077e35
mov ebx, 0x10d3514
push ebx
push 0xc
call fcn.01077ff0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x106bfd3
push 0x8007000e
push 0xfc5013f
call fcn.0108c55a
jmp 0x106c05f
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
push ebx
push 8
mov dword [esi + 4], eax
call fcn.01077ff0
pop ecx
pop ecx
mov dword [ebp + 8], eax
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x106c007
push dword [ebp + 0x10]
mov ecx, eax
call fcn.01069ab5
jmp 0x106c009
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], eax
cmp eax, edi
jne 0x106c025
push 0x8007000e
push 0xfce013f
call fcn.0108c55a
jmp 0x106c052
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push fcn.0106b8b3
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
jne 0x106c049
call fcn.01091f43
push eax
push 0xfdb013f
jmp 0x106c01e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
cmp esi, edi
je 0x106c05f
push 1
mov ecx, esi
call fcn.010698d4
call fcn.01077f21
ret 0xc

Function at 0x106c06c
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x10c0ec4
call fcn.01077e35
mov ebx, 0x10d3514
push ebx
push 0xc
call fcn.01077ff0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x106c0a1
push 0x8007000e
push 0xff3013f
call fcn.0108c55a
jmp 0x106c127
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push ebx
push 8
mov dword [esi], eax
call fcn.01077ff0
pop ecx
pop ecx
mov dword [ebp + 8], eax
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x106c0cf
push dword [ebp + 0xc]
mov ecx, eax
call fcn.01069ab5
jmp 0x106c0d1
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], eax
cmp eax, edi
jne 0x106c0ed
push 0x8007000e
push 0xffb013f
call fcn.0108c55a
jmp 0x106c11a
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push fcn.0106bb94
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
jne 0x106c111
call fcn.01091f43
push eax
push 0x1008013f
jmp 0x106c0e6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
cmp esi, edi
je 0x106c127
push 1
mov ecx, esi
call fcn.010698d4
call fcn.01077f21
ret 8
Function at 0x106c134
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x10c0ec4
call fcn.01077e35
mov ebx, 0x10d3514
push ebx
push 0xc
call fcn.01077ff0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x106c169
push 0x8007000e
push 0x1020013f
call fcn.0108c55a
jmp 0x106c1ef
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push ebx
push 8
mov dword [esi], eax
call fcn.01077ff0
pop ecx
pop ecx
mov dword [ebp + 8], eax
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x106c197
push dword [ebp + 0xc]
mov ecx, eax
call fcn.01069ab5
jmp 0x106c199
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], eax
cmp eax, edi
jne 0x106c1b5
push 0x8007000e
push 0x1028013f
call fcn.0108c55a
jmp 0x106c1e2
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push fcn.0106bdf0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
jne 0x106c1d9
call fcn.01091f43
push eax
push 0x1035013f
jmp 0x106c1ae
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
cmp esi, edi
je 0x106c1ef
push 1
mov ecx, esi
call fcn.010698d4
call fcn.01077f21
ret 8
Function at 0x106d00a
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x28]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
cmp eax, ebx
je 0x106d02c
mov dword [eax], ebx
mov esi, dword [ebp + 0x24]
mov edi, dword [ebp + 8]
mov dword [esi], ebx
mov eax, dword [edi + 0xc]
lea ecx, [eax + 0x30]
push ecx
add eax, 0x18
push eax
push 1
call dword [sym.imp.CRYPT32.dll_CertCompareCertificateName]
mov edx, 0x40000000
test eax, eax
je 0x106d052
or dword [esi], edx
mov ecx, 0x20000000
cmp dword [ebp + 0x20], ebx
jne 0x106d064
cmp dword [0x10d2254], ebx
je 0x106d069
mov ecx, 0x20000010
mov eax, dword [0x10d2280]
cmp eax, ebx
je 0x106d07d
or ecx, 0xb
cmp eax, 1
jle 0x106d07d
or ecx, 4
cmp dword [0x10d2294], ebx
jne 0x106d087
or ecx, edx
cmp dword [0x10d22a0], ebx
je 0x106d095
or ecx, 0x80000000
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [0x10d22b0]
neg eax
sbb eax, eax
and eax, 0x106cf34
push eax
push dword [ebp + 0xc]
xor eax, eax
cmp dword [0x10d2258], ebx
push ebx
sete al
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [0x10d22c0]
push ecx
push edi
call fcn.010963d0
mov edi, eax
cmp edi, ebx
jne 0x106d111
cmp dword [ebp - 8], ebx
jne 0x106d0f7
cmp dword [ebp - 0xc], ebx
jne 0x106d0f7
call fcn.0108f26b
test eax, eax
je 0x106d111
push dword [ebp - 8]
push 0x7fd
call fcn.0106ce99
push dword [ebp - 0xc]
push 0x7fe
call fcn.0106ce99
cmp dword [ebp - 0x10], ebx
je 0x106d125
push dword [ebp - 0x10]
push 0x1001d38
call fcn.0109c1a8
pop ecx
pop ecx
cmp edi, 0x80092010
je 0x106d18f
cmp edi, 0x800b010c
je 0x106d18f
cmp edi, 0x800b0109
jne 0x106d147
or dword [esi], 8
mov eax, 0x275
jmp 0x106d197
cmp edi, 0x800b010a
jne 0x106d159
or dword [esi], 0x10
mov eax, 0x276
jmp 0x106d197
cmp edi, 0x800b0101
jne 0x106d16b
or dword [esi], 2
mov eax, 0x355
jmp 0x106d197
cmp edi, 0x80092013
jne 0x106d17d
or dword [esi], 0x40
mov eax, 0x290
jmp 0x106d197
cmp edi, 0x80092012
jne 0x106d1e2
or dword [esi], 0x20
mov eax, 0x291
jmp 0x106d197
or dword [esi], 4
mov eax, 0x2fe
mov ecx, dword [ebp + 0x28]
cmp ecx, ebx
jne 0x106d1de
push eax
call fcn.0108bc14
push eax
call fcn.0109c1a8
mov dword [esp], 0x1004310
call fcn.0109c1a8
pop ecx
cmp dword [ebp - 4], ebx
je 0x106d1e0
push 0x31b
call fcn.0108bc14
push eax
call fcn.0109c1a8
push dword [ebp - 4]
push 0x10135d4
call fcn.0109c1a8
add esp, 0xc
jmp 0x106d1e0
mov dword [ecx], eax
xor edi, edi
cmp edi, ebx
je 0x106d1f4
or dword [esi], 1
push edi
push 0x51b013b
call fcn.0108c55a
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 4], ebx
je 0x106d204
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], ebx
je 0x106d20e
push dword [ebp - 8]
call esi
cmp dword [ebp - 0xc], ebx
je 0x106d218
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 0x10], ebx
je 0x106d222
push dword [ebp - 0x10]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x24
Function at 0x106e49c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
and dword [eax], 0
mov eax, dword [ebp + 0x14]
and dword [eax], 0
push esi
push 0x10138f0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x106e4d6
call fcn.01091f43
mov esi, eax
push esi
push 0xe1c013b
call fcn.0108c55a
jmp 0x106e586
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x106e501
call fcn.01091f43
mov esi, eax
push esi
push 0xe25013b
call fcn.0108c55a
jmp 0x106e585
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x106e51f
call fcn.01091f43
mov esi, eax
push esi
push 0xe2e013b
jmp 0x106e570
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x106e54e
call fcn.01091f43
mov esi, eax
test esi, esi
jne 0x106e546
mov esi, 0x8007000d
push esi
push 0xe3d013b
jmp 0x106e570
mov eax, dword [ebp + 0x14]
push esi
push 0
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
test eax, eax
jne 0x106e577
mov esi, 0x8007000e
push esi
push 0xe45013b
call fcn.0108c55a
jmp 0x106e584
push esi
push edi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor esi, esi
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x10
Function at 0x106e7f0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov byte [eax], bl
mov eax, dword [ebp + 0xc]
push edi
mov byte [eax], bl
lea eax, [ebp - 4]
push eax
push 0x2000000
push ebx
mov edi, 0x1013a18
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, 2
je 0x106e8aa
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], 4
cmp esi, ebx
je 0x106e848
push esi
push 0xfb3013b
jmp 0x106e959
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
mov edi, 0x10139e8
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x106e8a2
cmp dword [ebp - 0xc], 4
jne 0x106e8b7
cmp dword [ebp - 8], ebx
je 0x106e8b7
push 4
lea eax, [ebp - 8]
push eax
push 4
push ebx
push edi
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, ebx
je 0x106e89a
push esi
push 0xfc7013b
jmp 0x106e959
mov eax, dword [ebp + 8]
mov byte [eax], 1
jmp 0x106e8b7
push eax
push 0xfcf013b
jmp 0x106e8b1
push 2
push 0xfd5013b
push edi
call fcn.0108c595
cmp dword [ebp - 4], ebx
je 0x106e8c8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], ebx
lea eax, [ebp - 4]
push eax
push 0x2000000
push ebx
mov edi, 0x1013960
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, 2
je 0x106e971
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], 4
cmp esi, ebx
je 0x106e907
push esi
push 0xfec013b
jmp 0x106e959
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
mov edi, 0x10073d0
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x106e969
cmp dword [ebp - 0xc], 4
jne 0x106e97e
test dword [ebp - 8], 8
je 0x106e97e
and dword [ebp - 8], 0xfffffff7
push 4
lea eax, [ebp - 8]
push eax
push 4
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, ebx
je 0x106e961
push esi
push 0x1001013b
push edi
call fcn.0108c595
jmp 0x106e980
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
jmp 0x106e97e
push eax
push 0x1009013b
jmp 0x106e978
push 2
push 0x100f013b
push edi
call fcn.0108c595
xor esi, esi
cmp esi, 5
jne 0x106e98c
push 0xb0c
jmp 0x106e99f
mov eax, dword [ebp + 8]
cmp byte [eax], bl
jne 0x106e99a
mov eax, dword [ebp + 0xc]
cmp byte [eax], bl
je 0x106e9b1
push 0xb0a
call fcn.0108bc14
push eax
push 0x1001d38
call fcn.0109c1a8
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
je 0x106e9bf
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.01091f0e
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x106e9d1
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
cmp byte [ebp + 8], 0
jne 0x106e9ec
cmp byte [ebp + 0xc], 0
je 0x106eb15
push ebx
push esi
push edi
push 0xb0b
call fcn.0108bc14
push eax
push 0x1001d38
call fcn.0109c1a8
cmp byte [ebp + 8], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop ecx
pop ecx
mov esi, 0x2000000
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
je 0x106ea82
lea eax, [ebp - 4]
push eax
push esi
push 0
push 0x1013a18
push ebx
call edi
test eax, eax
je 0x106ea3c
push eax
push 0x104b013b
push 0x1013a18
jmp 0x106ea6a
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push 0x10139e8
push dword [ebp - 4]
mov dword [ebp + 8], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x106ea6f
push eax
push 0x1057013b
push 0x10139e8
call fcn.0108c595
cmp dword [ebp - 4], 0
je 0x106ea82
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 4], 0
cmp byte [ebp + 0xc], 0
je 0x106eb03
lea ecx, [ebp - 4]
push ecx
push esi
xor eax, eax
push eax
mov esi, 0x1013960
push esi
push ebx
mov dword [ebp - 8], eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], 4
call edi
test eax, eax
je 0x106eab2
push eax
push 0x1070013b
jmp 0x106eafd
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
push 0
mov esi, 0x10073d0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x106eadb
push eax
push 0x1079013b
jmp 0x106eafd
or dword [ebp + 8], 8
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x106eb03
push eax
push 0x1083013b
push esi
call fcn.0108c595
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
je 0x106eb15
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8
Function at 0x1077da1
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x10c3838
call fcn.010783f4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x10d40c0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1077b5c
cmp eax, esi
jne 0x1077b4f
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1077b5f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1077b36
xor esi, esi
inc esi
mov eax, dword [0x10d40bc]
cmp eax, esi
jne 0x1077b72
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1077ba1
mov eax, dword [0x10d40bc]
test eax, eax
jne 0x1077b9b
mov dword [0x10d40bc], esi
push 0x1001a54
push 0x1001a48
call fcn.01077a98
pop ecx
pop ecx
test eax, eax
je 0x1077ba1
jmp 0x1077cc5
mov dword [0x10d3534], esi
mov eax, dword [0x10d40bc]
cmp eax, esi
jne 0x1077bc5
push 0x1001a44
push 0x1001a38
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10d40bc], 2
cmp dword [ebp - 0x20], ebx
jne 0x1077bd2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10d40cc], ebx
je 0x1077bf3
push 0x10d40cc
call fcn.01078369
pop ecx
test eax, eax
je 0x1077bf3
push ebx
push 2
push ebx
call dword [0x10d40cc]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1077cc5
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1077c5d
cmp cx, bx
je 0x1077c18
cmp dword [ebp - 0x1c], ebx
jne 0x1077c5d
movzx ecx, word [eax]
cmp cx, bx
je 0x1077c2d
cmp cx, 0x20
ja 0x1077c2d
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1077c18
test byte [ebp - 0x40], 1
je 0x1077c39
movzx ecx, word [ebp - 0x3c]
jmp 0x1077c3c
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x10d3530], eax
cmp dword [0x10d3524], ebx
jne 0x1077ca2
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1077c6e
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1077c02
cmp dword [0x10d3534], ebx
jne 0x1077cb0
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10d3530]
jmp 0x1077cd1
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01078439
ret
call fcn.01078539
jmp 0x1077af9
Function at 0x107925e
Capabilities:
Initialize hashing via wincrypt

Disassembly:
push 0xa0
mov eax, 0x10c10f1
call fcn.01077e6d
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 0x14]
cmp ecx, ebx
je 0x1079281
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 8], ebx
je 0x10792c8
push ebx
push SysReAllocString
push dword [ebp + 8]
call fcn.0102ec4a
test eax, eax
jge 0x10792c8
push 0x80070057
push 0x1014850
push 0x89
push 0x10147c0
lea ecx, [ebp - 0x90]
call fcn.0102f220
push 0x10c2b74
lea eax, [ebp - 0x90]
push eax
call sub.msvcrt.dll__CxxThrowException
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
push 0xf0000040
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1079317
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010786e5
push eax
push 0x1014950
push 0x92
push 0x10147c0
lea ecx, [ebp - 0x58]
call fcn.0102f220
push 0x10c2b74
lea eax, [ebp - 0x58]
jmp 0x10792c2
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1079361
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010786e5
push eax
push 0x10148e8
push 0x95
push 0x10147c0
lea ecx, [ebp - 0x74]
call fcn.0102f220
push 0x10c2b74
lea eax, [ebp - 0x74]
jmp 0x10792c2
push 0x10
call fcn.01077a29
pop ecx
mov ecx, eax
mov dword [ebp + 8], ecx
mov byte [ebp - 4], 2
cmp ecx, ebx
je 0x1079387
push 1
push 1
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call fcn.0107d9be
jmp 0x1079389
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x10793c3
push 0x8007000e
push 0x10142b4
push 0x98
push 0x10147c0
lea ecx, [ebp - 0xac]
call fcn.0102f220
push 0x10c2b74
lea eax, [ebp - 0xac]
jmp 0x10792c2
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.01078df6
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
call fcn.01077f21
ret 0x10
Function at 0x108612b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
mov dword [ebp - 4], esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1086182
call fcn.01091f43
push dword [ebp + 8]
mov edi, eax
push edi
push 0x103
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0108b51e
push edi
push 0xd200ca
call fcn.0108c55a
jmp 0x10861d6
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10861c3
call fcn.01091f43
push dword [ebp + 8]
mov edi, eax
push edi
push 0x11e
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0108b51e
push edi
push 0xdf00ca
call fcn.0108c55a
jmp 0x10861ca
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], esi
jne 0x10861dd
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x18

Function at 0x1086ef4
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push 2
push 0xc
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x1086f28
call fcn.01091f43
mov edi, eax
push edi
push 0xabf00ca
call fcn.0108c55a
jmp 0x1086f93
push esi
xor esi, esi
cmp dword [ebp - 0x10], esi
jbe 0x1086f92
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x1086f63
mov eax, dword [ebp - 4]
cmp byte [eax], 0
jne 0x1086f5b
add eax, 8
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1086f72
inc esi
cmp esi, dword [ebp - 0x10]
jb 0x1086f30
jmp 0x1086f92
call fcn.01091f43
mov edi, eax
push edi
push 0xac700ca
jmp 0x1086f8d
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
test eax, eax
jne 0x1086f92
call fcn.01091f43
mov edi, eax
push edi
push 0xad500ca
call fcn.0108c55a
pop esi
mov eax, edi
pop edi
leave
ret 8