joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100dd91
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 4], 0x57
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xc], edi
cmp esi, edi
je 0x100de00
mov edx, dword [esi + 4]
cmp edx, edi
jne 0x100ddcf
xor eax, eax
cmp ax, word [esi]
jne 0x100de03
cmp ax, word [esi + 2]
jmp 0x100ddfe
movzx ecx, word [esi]
test cl, 1
jne 0x100de03
mov eax, ecx
and eax, 0xfffe
mov ebx, 0x400
cmp ax, bx
jae 0x100de03
movzx eax, word [esi + 2]
movzx ecx, cx
inc ecx
inc ecx
cmp ecx, eax
jne 0x100de03
shr eax, 1
xor ecx, ecx
cmp cx, word [edx + eax*2 - 2]
jne 0x100de03
mov dword [ebp - 4], edi
cmp dword [ebp + 0x10], 0x12cc0300
jb 0x100de13
mov dword [ebp - 4], 0x57
cmp dword [ebp - 4], edi
jne 0x100defd
push edi
call dword [sym.imp.RPCRT4.dll_RpcImpersonateClient]
mov ebx, dword [sym.imp.RPCRT4.dll_RpcRevertToSelf]
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x100dee8
xor eax, eax
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push 0xc
push 0xfffffffffffffffe
mov dword [ebp - 0x14], eax
call dword [sym.imp.ntdll.dll_NtOpenThreadToken]
cmp eax, edi
jge 0x100de5c
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [ebp - 4], eax
jmp 0x100dee8
lea eax, [ebp - 0x10]
push eax
push dword [0x10151c8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x100de7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100de54
cmp dword [ebp - 0x10], edi
jne 0x100de99
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push 0xc
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x100de73
call ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x14], edi
call fcn.0100c0db
mov eax, dword [ebp + 0x1c]
cmp eax, edi
je 0x100deb9
mov eax, dword [eax + 4]
jmp 0x100debb
xor eax, eax
push eax
push dword [ebp - 0xc]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp - 0x18]
call fcn.0100d113
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], edi
je 0x100dee8
lea eax, [ebp - 0xc]
push eax
call fcn.0100575d
cmp dword [ebp - 8], edi
je 0x100def6
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtClose]
cmp dword [ebp - 0x14], edi
je 0x100defd
call ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x100df0c
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
xor edi, edi
mov dword [ebp - 8], ebx
call dword [sym.imp.RPCRT4.dll_RpcImpersonateClient]
mov esi, eax
cmp esi, ebx
jne 0x100df98
lea eax, [ebp - 8]
push eax
inc edi
push edi
push 8
push 0xfffffffffffffffe
call dword [sym.imp.ntdll.dll_NtOpenThreadToken]
cmp eax, ebx
jge 0x100df4e
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
jmp 0x100df6b
lea eax, [ebp - 0xc]
push eax
push dword [0x10151c8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x100df6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100df98
cmp dword [ebp - 0xc], ebx
je 0x100df7d
mov dword [ebp - 4], 1
jmp 0x100df89
cmp byte [ebp + 0x14], bl
je 0x100df89
mov dword [ebp - 4], 3
cmp byte [ebp + 0x18], bl
je 0x100df94
or dword [ebp - 4], 4
jmp 0x100df98
or dword [ebp - 4], 8
cmp dword [ebp - 8], ebx
je 0x100dfa6
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtClose]
cmp edi, ebx
je 0x100dfb0
call dword [sym.imp.RPCRT4.dll_RpcRevertToSelf]
cmp esi, ebx
jne 0x100dfc9
push ebx
push dword [ebp + 0x1c]
push dword [ebp - 4]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0100dd91
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x18

Function at 0x100dffe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
movzx eax, di
xor ebx, ebx
push ebx
shr eax, 4
inc eax
push eax
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
cmp eax, ebx
je 0x100e06b
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100e06a
and edi, 0xf
jmp 0x100e042
movzx eax, ax
dec edi
lea esi, [esi + eax*2]
movzx eax, word [esi]
inc esi
inc esi
test edi, edi
jne 0x100e03b
movzx edi, ax
add edi, edi
lea eax, [edi + 2]
push eax
call fcn.01006a60
mov ebx, eax
test ebx, ebx
je 0x100e06a
push edi
push esi
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
pop esi
pop edi
mov eax, ebx
pop ebx
pop ebp
ret 4
Function at 0x100e078
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 8]
push eax
xor edi, edi
push 0x20019
push edi
push 0x100a700
push 0x80000002
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x100e106
mov esi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [ebp - 8]
call esi
cmp eax, edi
jne 0x100e106
push dword [ebp - 0xc]
call fcn.01006a60
mov dword [ebp - 4], eax
cmp eax, edi
je 0x100e106
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [ebp - 8]
call esi
cmp eax, edi
jne 0x100e106
cmp dword [ebp - 0x10], 1
jne 0x100e106
mov eax, dword [ebp - 0xc]
cmp eax, 2
jb 0x100e106
mov ecx, dword [ebp - 4]
shr eax, 1
cmp word [ecx + eax*2 - 2], di
je 0x100e11f
cmp dword [ebp - 4], edi
je 0x100e114
lea eax, [ebp - 4]
push eax
call fcn.0100575d
push dword [ebp + 0xc]
call fcn.01006b9b
mov dword [ebp - 4], eax
cmp dword [ebp - 8], edi
pop edi
pop esi
je 0x100e12f
push dword [ebp - 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, dword [ebp - 4]
leave
ret 8

Function at 0x100e5a1
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push 0x57
pop esi
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push 0x1003670
push 0x80000002
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x100e5ed
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push 0x1006968
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret 4

Function at 0x100e5fe
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 4]
push eax
push 0x2001b
xor esi, esi
push esi
push 0x1003670
push 0x80000002
mov dword [ebp - 8], esi
xor ebx, ebx
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x100e67b
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
mov esi, 0x100a6ac
push esi
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x100e672
cmp dword [ebp - 0x10], 4
jne 0x100e672
mov eax, dword [ebp - 8]
cmp eax, 2
ja 0x100e672
mov ecx, dword [ebp + 8]
push esi
push dword [ebp - 4]
mov dword [ecx], eax
inc ebx
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x100e688
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1003670
push 0x80000002
mov dword [ebp - 8], esi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x100e6df
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x100e6ec
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp dword [ebp - 8], esi
je 0x100e6e7
xor esi, esi
inc esi
mov eax, esi
pop esi
leave
ret
Function at 0x101050f
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
push 0x10105b0
call fcn.0100afd3
xor esi, esi
cmp dword [0x10158bc], esi
je 0x101053f
push 0x10158bc
call dword [sym.imp.RPCRT4.dll_RpcBindingFree]
mov edi, eax
mov dword [0x10158bc], esi
jmp 0x1010541
xor edi, edi
mov dword [0x10158d0], esi
cmp dword [ebp + 8], esi
je 0x1010594
mov eax, dword [0x10158c4]
cmp eax, esi
je 0x101055c
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x10158c8]
cmp eax, esi
je 0x1010594
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1010582
push esi
push dword [0x10158c8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [0x10158c8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x10158c8], esi
call fcn.010110ed
push 0x10105c0
call fcn.0100afd3
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x101099d
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea ecx, [ebp - 4]
push ecx
push 0x1000b
push dword [eax + 0x1d4]
call fcn.0101125d
test eax, eax
jl 0x10109d8
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegDeleteTreeW]
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp dword [ebp + 0xc], 0
je 0x10109f9
call fcn.01010489
push 0x10158cc
push 1
push 0
push 0
push 0xb
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.010105d5
leave
ret 0xc

Function at 0x1010ab9
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x144
push 0x1010cb8
call fcn.010027d1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x154], eax
cmp dword [0x1015750], 0xffffffff
jne 0x1010c09
push 0x118
push 0
lea eax, [ebp - 0x134]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [0x1015750], 0x40
mov dword [ebp - 0x138], 0x11c
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1010b29
cmp byte [ebp - 0x1e], 1
jne 0x1010b29
mov dword [0x1015750], 0x10
lea eax, [ebp - 0x13c]
push eax
mov ebx, 0x20019
push ebx
push 0
push 0x1006898
mov edi, 0x80000002
push edi
mov esi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
call esi
test eax, eax
jne 0x1010b9c
mov dword [ebp - 0x140], 4
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x148]
push eax
push 0
push 0x1010c90
push dword [ebp - 0x13c]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1010b90
mov eax, dword [ebp - 0x144]
mov dword [0x1015750], eax
push dword [ebp - 0x13c]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
lea eax, [ebp - 0x13c]
push eax
push ebx
push 0
push 0x1002618
push edi
call esi
test eax, eax
jne 0x1010c09
mov dword [ebp - 0x140], 4
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x148]
push eax
push 0
push 0x1010c74
push dword [ebp - 0x13c]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1010bfd
mov eax, dword [ebp - 0x144]
neg eax
sbb eax, eax
and eax, 0x30
add eax, 0x10
mov dword [0x1015750], eax
push dword [ebp - 0x13c]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, dword [0x1015750]
cmp dword [ebp + 0x10], eax
jbe 0x1010c17
xor eax, eax
jmp 0x1010c6b
push 0x15
pop esi
call fcn.01010a10
test eax, eax
je 0x1010c69
and dword [ebp - 4], 0
push dword [ebp + 0xc]
push dword [ebp - 0x154]
push dword [0x10158bc]
call fcn.01010cd9
mov esi, eax
jmp 0x1010c5c
mov dword [ebp - 0x14c], esi
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.0100228c
ret 0xc
Function at 0x10119ff
Capabilities:
Get token membership

Disassembly:
push 0x14
push 0x1011bd0
call fcn.010017fb
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.RPCRT4.dll_I_RpcBindingIsClientLocal]
cmp eax, esi
je 0x1011a66
mov ecx, dword [0x10150c0]
cmp ecx, 0x10150c0
je 0x1011b65
test byte [ecx + 0x1c], 1
je 0x1011b65
cmp byte [ecx + 0x19], 2
jb 0x1011b65
push eax
push 0x100ab60
push 0xc
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01002f89
jmp 0x1011b65
cmp dword [ebp - 0x20], esi
jne 0x1011aa6
mov eax, dword [0x10150c0]
cmp eax, 0x10150c0
je 0x1011b65
test byte [eax + 0x1c], 1
je 0x1011b65
cmp byte [eax + 0x19], 2
jb 0x1011b65
push 0x100ab60
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010015b6
jmp 0x1011b65
push esi
call dword [sym.imp.RPCRT4.dll_RpcImpersonateClient]
cmp eax, esi
je 0x1011ae4
mov ecx, dword [0x10150c0]
cmp ecx, 0x10150c0
je 0x1011b65
test byte [ecx + 0x1c], 1
je 0x1011b65
cmp byte [ecx + 0x19], 2
jb 0x1011b65
push eax
push 0x100ab60
push 0xe
jmp 0x1011a56
xor ebx, ebx
inc ebx
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x1c]
push eax
push 0x1011bc0
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1011b2c
mov eax, dword [0x10150c0]
cmp eax, 0x10150c0
je 0x1011b27
test byte [eax + 0x1c], bl
je 0x1011b27
cmp byte [eax + 0x19], 2
jb 0x1011b27
push 0x100ab60
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010015b6
mov dword [ebp - 0x1c], esi
jmp 0x1011b65
mov eax, dword [0x10150c0]
cmp eax, 0x10150c0
je 0x1011b65
test byte [eax + 0x1c], bl
je 0x1011b65
cmp byte [eax + 0x19], 2
jb 0x1011b65
cmp dword [ebp - 0x1c], esi
mov ecx, 0x1003694
jne 0x1011b52
mov ecx, 0x100368c
push ecx
push 0x100ab60
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101190d
mov dword [ebp - 4], 0xfffffffe
call fcn.01011b81
mov eax, dword [ebp - 0x1c]
call fcn.010015e2
ret
Function at 0x1011fab
Capabilities:
Create thread
Query or enumerate registry value
Resume thread

Disassembly:
push 0x1c
push 0x1012110
call fcn.010017fb
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], 0x80
mov dword [ebp - 4], edi
xor ebx, ebx
inc ebx
cmp dword [0x1015790], 0xffffffff
jne 0x101208a
lea eax, [ebp - 0x20]
push eax
push ebx
push edi
push 0x100a700
push 0x80000002
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, edi
je 0x1012036
mov ecx, dword [0x10150c0]
cmp ecx, 0x10150c0
je 0x10120cc
test byte [ecx + 0x1c], bl
je 0x10120cc
cmp byte [ecx + 0x19], 2
jb 0x10120cc
push eax
push 0x10017bc
push 0xe
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01002f89
jmp 0x10120cc
mov eax, dword [ebp - 0x24]
add eax, eax
push eax
call fcn.01005dec
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x10120cc
push 0x30
pop ecx
mov word [eax], cx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x28]
push eax
push edi
push 0x10120f0
push dword [ebp - 0x20]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov dword [0x1015790], edi
mov eax, dword [ebp - 0x1c]
cmp word [eax], 0x30
je 0x1012081
mov dword [0x1015790], ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.01005bcf
cmp dword [0x1015790], ebx
jne 0x10120cc
lea eax, [ebp - 0x2c]
push eax
push 4
push edi
push 0x1011f99
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, edi
je 0x10120c5
push 0xfffffffffffffffe
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10120cc
push ebx
call dword [sym.imp.ADVAPI32.dll_NotifyBootConfigStatus]
mov dword [ebp - 4], 0xfffffffe
call fcn.010120e0
call fcn.010015e2
ret

Function at 0x101223a
Capabilities:
Create thread
Resume thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
push 0
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp + 8], eax
test eax, eax
je 0x10122b7
push ebx
push 0x10122cc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10122b1
push 0x10122bc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10122b1
push esi
lea ecx, [ebp - 4]
push ecx
push 4
push 0
push eax
push 0x8000
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
je 0x10122b0
push 2
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call ebx
pop esi
push dword [ebp + 8]
call ebx
pop ebx
leave
ret 4
Function at 0x402170
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a530
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x425080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, cl
lea eax, [ebp + 8]
mov dword [ebp - 4], 1
push eax
mov edx, 0x421f9c
lea ecx, [ebp - 0x24c]
call fcn.00404ad0
push 0x421f98
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x234]
call fcn.00404c10
add esp, 8
lea ecx, [ebp + 8]
push eax
call fcn.00404450
mov ecx, dword [ebp - 0x220]
cmp ecx, 7
jbe 0x40221b
mov edx, dword [ebp - 0x234]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402211
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023be
push ecx
push edx
call fcn.00407066
add esp, 8
mov ecx, dword [ebp - 0x238]
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
cmp ecx, 7
jbe 0x402278
mov edx, dword [ebp - 0x24c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40226e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023be
push ecx
push edx
call fcn.00407066
add esp, 8
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00408a40
cmp dword [ebp + 0x1c], 7
lea eax, [ebp + 8]
cmova eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040bcf1
add esp, 0x18
lea eax, [ebp - 0x21c]
push eax
push 0x20006
push 0
push 0x421fa0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4022d1
xor bl, bl
jmp 0x402322
lea eax, [ebp + 0x20]
test bl, bl
je 0x4022ff
cmp dword [ebp + 0x34], 7
lea ecx, [ebp - 0x218]
push 0x104
cmova eax, dword [ebp + 0x20]
push ecx
push 1
push 0
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x402314
cmp dword [ebp + 0x34], 7
cmova eax, dword [ebp + 0x20]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
mov ecx, dword [ebp + 0x1c]
cmp ecx, 7
jbe 0x402358
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40234e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023c3
push ecx
push edx
call fcn.00407066
add esp, 8
mov ecx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp ecx, 7
jbe 0x4023a2
mov edx, dword [ebp + 0x20]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402398
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023c3
push ecx
push edx
call fcn.00407066
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406dd7
mov esp, ebp
pop ebp
ret
call fcn.0040c0ca
call fcn.0040c0ca
int3
Function at 0x407b8f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407bce
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407bce
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407bce
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407bce
cmp dword [ecx + 0x74], 0xe
jbe 0x407bce
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x410717
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41dea4
push 0x41de9c
push str.FlsAlloc
push 0x1f
call fcn.004105be
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41074b
push dword [ebp + 8]
mov ecx, esi
call dword [0x41b16c]
call esi
jmp 0x410751
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x410795
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41deb4
push 0x41deac
push str.FlsGetValue
push 0x21
call fcn.004105be
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4107cc
push dword [ebp + 8]
mov ecx, esi
call dword [0x41b16c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4107d4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41debc
push 0x41deb4
push str.FlsSetValue
push 0x22
call fcn.004105be
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41080e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41b16c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]