joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001444
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0xc], 0
imul eax, dword [ebx + 4], 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebx], 0xb
je 0x10001478
xor esi, esi
push ebx
mov ecx, edi
call fcn.10001b20
test eax, eax
jne 0x100013ce
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jl 0x100013b1
cmp dword [edi + 0xc], 0
jne 0x100013e5
xor eax, eax
cmp dword [ebx + 8], eax
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
lea eax, [esp + 0x14]
push eax
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 1
push eax
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebx]
cmp eax, 0xc
ja case.0x10001429.6
movzx eax, byte [eax + 0x1000149c]
jmp dword [eax*4 + 0x10001488]
push ebx
mov ecx, edi
call fcn.10002990
jmp case.0x10001429.6
push ebx
mov ecx, edi
call fcn.10002a60
jmp case.0x10001429.6
push ebx
mov ecx, edi
call fcn.10002c00
jmp case.0x10001429.6
push 0
push 0
push 0x10
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push dword [esp + 0x14]
push esi
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp dword [edi + 0x3c], 0
je 0x10001478
push dword [edi + 0xc]
call fcn.10001d90
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1000144e
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0xc], 0
imul eax, dword [ebx + 4], 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebx], 0xb
je 0x10001478
xor esi, esi
push ebx
mov ecx, edi
call fcn.10001b20
test eax, eax
jne 0x100013ce
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jl 0x100013b1
cmp dword [edi + 0xc], 0
jne 0x100013e5
xor eax, eax
cmp dword [ebx + 8], eax
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
lea eax, [esp + 0x14]
push eax
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 1
push eax
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebx]
cmp eax, 0xc
ja case.0x10001429.6
movzx eax, byte [eax + 0x1000149c]
jmp dword [eax*4 + 0x10001488]
push ebx
mov ecx, edi
call fcn.10002990
jmp case.0x10001429.6
push ebx
mov ecx, edi
call fcn.10002a60
jmp case.0x10001429.6
push ebx
mov ecx, edi
call fcn.10002c00
jmp case.0x10001429.6
push 0
push 0
push 0x10
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push dword [esp + 0x14]
push esi
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp dword [edi + 0x3c], 0
je 0x10001478
push dword [edi + 0xc]
call fcn.10001d90
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10002a60
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027168
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10033010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
push ecx
add eax, 0xa4
mov byte [ebp - 0x10], 0
mov ecx, esp
push eax
call fcn.10003b60
lea eax, [ebp + 8]
push eax
call fcn.10002e10
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push 0
mov esi, dword [eax - 0xc]
mov dword [ebp - 0x14], esi
call dword [sym.imp.USER32.dll_OpenClipboard]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x10002ba1
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [esi*2 + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x10002b59
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
cmp dword [ecx - 4], 1
jle 0x10002b0e
push dword [ecx - 0xc]
lea ecx, [ebp + 8]
call fcn.10003da0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
lea eax, [edx + edx]
push eax
push ecx
push dword [ebp - 0x18]
call fcn.100263b0
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov ecx, dword [ebp - 0x18]
xor ebx, ebx
lea eax, [edx + edx]
push esi
mov word [eax + ecx], bx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ecx, dword [ebp - 0x10]
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov edx, 1
movzx ecx, cl
cmovne ecx, edx
mov dword [ebp - 0x10], ecx
mov esi, dword [sym.imp.USER32.dll_CloseClipboard]
call esi
push 0xffffffffffffffff
push 0
push 0xb1
push dword [edi + 0xc]
call ebx
push 0
push 0
push 0x303
push dword [edi + 0xc]
call ebx
push 0
push 0
push 0x302
push dword [edi + 0xc]
call ebx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
call esi
cmp byte [ebp - 0x10], 0
jne 0x10002bc5
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x10002bb8
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.10003da0
mov eax, dword [ebp + 8]
push eax
push 0x103
push 0xc
push dword [edi + 0xc]
call ebx
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10002be7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10003150
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10033010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov edx, ecx
mov dword [ebp - 0xc], 0
push esi
xor eax, eax
mov dword [ebp - 8], 7
push edi
mov word [ebp - 0x1c], ax
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10003180
sub edx, esi
sar edx, 1
push edx
push ecx
lea ecx, [ebp - 0x1c]
call fcn.10003c20
mov eax, dword [ebp - 0xc]
lea edi, [ebp - 0x1c]
cmp dword [ebp - 8], 8
mov esi, 0x811c9dc5
mov edx, dword [ebp - 0x1c]
cmovae edi, edx
xor ecx, ecx
lea ebx, [eax + eax]
test ebx, ebx
je 0x100031c8
movzx eax, byte [edi + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x100031b7
mov eax, dword [ebp - 8]
cmp eax, 8
jb 0x10003205
inc eax
cmp eax, 0x7fffffff
ja 0x10003218
add eax, eax
cmp eax, 0x1000
jb 0x100031fc
test byte [ebp - 0x1c], 0x1f
jne 0x1000321d
mov eax, dword [edx - 4]
cmp eax, edx
jae 0x10003222
sub edx, eax
cmp edx, 4
jb 0x10003227
cmp edx, 0x23
ja 0x1000322c
mov edx, eax
push edx
call fcn.1000b822
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000b827
mov esp, ebp
pop ebp
ret
call fcn.1000f1c1
call fcn.1000f1c1
call fcn.1000f1c1
call fcn.1000f1c1
call fcn.1000f1c1
int3

Function at 0x100035d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
push 0
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
xor ebx, ebx
test edi, edi
jne 0x100035fd
mov ecx, esi
call fcn.10003eb0
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
js 0x10003662
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x1000361a
push edi
mov ecx, esi
call fcn.10004490
push edi
push dword [esi]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [esi]
test eax, eax
jne 0x10003630
xor ecx, ecx
jmp 0x10003642
push dword [eax - 8]
push eax
call fcn.1000f927
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x10003662
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x10003662
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov ebx, 1
pop edi
pop esi
mov word [eax + ecx*2], dx
mov eax, ebx
pop ebx
pop ebp
ret 4
push 0x80070057
call fcn.10005470
int3
Function at 0x10004fb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10004fc9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10005006
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x10005002
nop word [eax + eax]
cmp esi, edx
jae 0x10005006
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x10004ff0
cmp esi, edx
jb 0x1000500d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10007b30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100275d8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10033010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x1c]
xor esi, esi
mov dword [edi + 0x24], ecx
lea edx, [ecx + 0x32c]
cmp dword [ecx + 0x324], esi
jle 0x10007ba9
mov ebx, dword [edi + 0x18]
cmp dword [edx + 0x758], 0
je 0x10007b85
lea eax, [edx + 0x75c]
mov dword [edi + 0x28], eax
cmp esi, ebx
je 0x10007ba6
imul eax, dword [edx + 0x758], 0x2bc
inc esi
add edx, 0x75c
add edx, eax
cmp esi, dword [ecx + 0x324]
jl 0x10007b73
jmp 0x10007ba9
mov dword [edi + 0x14], edx
mov edx, dword [edi + 0x14]
lea ecx, [ebp - 0x14]
mov edx, dword [edx]
call fcn.10005550
mov dword [ebp - 4], 0
or ebx, 0xffffffff
mov edx, dword [eax]
mov esi, dword [0x100355d4]
add esi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x10007c17
cmp dword [esi + 0xc], 0
jl 0x10007c09
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x10007c09
call fcn.10004100
mov dword [ebp - 0x10], eax
lea edx, [esi + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10007bff
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x10]
add eax, 0x10
mov dword [0x100355d4], eax
jmp 0x10007c17
push dword [edx - 0xc]
mov ecx, 0x100355d4
push edx
call fcn.10004170
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10007c36
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0
push 0
push str.TEMP
call ebx
mov esi, eax
test esi, esi
jne 0x10007c67
lea ecx, [edi + 0x10]
call fcn.10003eb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jns 0x10007c73
push 0x80070057
call fcn.10005470
mov eax, dword [edi + 0x10]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or ecx, eax
jge 0x10007c90
push esi
lea ecx, [edi + 0x10]
call fcn.10004490
push esi
push dword [edi + 0x10]
push str.TEMP
call ebx
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x10007ca6
xor ecx, ecx
jmp 0x10007cb8
push dword [eax - 8]
push eax
call fcn.1000f927
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x10007c69
mov eax, dword [edi + 0x10]
cmp ecx, dword [eax - 8]
jg 0x10007c69
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi + 0x10]
mov word [eax + ecx*2], dx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007d70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.10009170
test eax, eax
jne 0x10007d8c
mov byte [0x100355d0], 1
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.100081f0
test eax, eax
jne 0x10007dd5
push esi
push eax
push 0x10009260
call fcn.10018ca1
add esp, 0xc
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x3e8
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x10007dd2
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10007de0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.10008800
test eax, eax
jne 0x10007e2e
push esi
push eax
push 0x10009260
call fcn.10018ca1
add esp, 0xc
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x3e8
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x10007e2b
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10007e40
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027608
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x10033010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx + 0x14]
add eax, 0x208
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x10]
call fcn.10003b60
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], ecx
push eax
call fcn.10003f10
call fcn.10007f80
mov esi, eax
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x10007eba
push dword [ebp - 0x10]
push str.Process__s_not_found.
jmp 0x10007f3c
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0x10008150
mov dword [ebp - 0x1c], 0
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
jne 0x10007ef5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10007ef5
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10007ef5
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xdac
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x14]
push eax
push ecx
mov ecx, esp
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x18], ecx
call fcn.10003f10
call fcn.10007f80
mov esi, eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10007f44
cmp dword [ebp + 8], 0
je 0x10007f44
push ecx
push eax
call fcn.100081a0
mov esi, eax
test esi, esi
jne 0x10007f44
push dword [ebp - 0x10]
push str.Process__s_terminated.
call fcn.1000a750
add esp, 8
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10007f66
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10007f80
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002764e
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x10033010]
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
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x248], eax
push 0
mov dword [ebp - 4], 0
push 2
mov dword [ebp - 0x23c], 0x22c
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [ebp - 0x23c]
push eax
push edi
mov dword [ebp - 0x244], edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
or ebx, 0xffffffff
test eax, eax
jne 0x10008002
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10008105
call fcn.10005250
test eax, eax
je 0x10008144
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x240], esi
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x100080a7
movzx edi, ax
mov ecx, edi
call fcn.10004f30
test eax, eax
je 0x10008051
push edi
push eax
lea ecx, [ebp - 0x240]
call fcn.100043f0
mov esi, dword [ebp - 0x240]
mov edi, dword [ebp - 0x244]
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
test eax, eax
je 0x10008144
push eax
push esi
call fcn.1000f68b
add esp, 8
add esi, 0xfffffff0
test eax, eax
je 0x100080dd
mov byte [ebp - 4], 0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000808f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x23c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10008002
jmp 0x10008103
lea edx, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100080b0
sub eax, edx
lea ecx, [ebp - 0x240]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10004170
mov esi, dword [ebp - 0x240]
jmp 0x10008057
mov ecx, dword [ebp - 0x248]
mov eax, dword [ebp - 0x234]
mov byte [ebp - 4], 0
mov dword [ecx], eax
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10008103
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10008124
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
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.1000b827
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.10005470
int3
Function at 0x100081a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
xor edi, edi
push edi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x100081c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
ret 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x100081da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
Function at 0x10009b90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027850
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x10033010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x18], ebx
mov edi, ecx
mov dword [ebp - 0x14], 0
call fcn.10005250
mov ecx, eax
test ecx, ecx
jne 0x10009bdb
push 0x80004005
call fcn.10005470
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push str.SIB.CA_d
push eax
call fcn.1000a2a0
mov esi, dword [ebp - 0x10]
add esp, 0xc
push esi
push edi
call fcn.1000ad0b
push 0x1002e0e4
push 0x7c
push 0x10000000
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
or ebx, 0xffffffff
test edi, edi
je 0x10009c42
push edi
push 0x10000000
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10009c42
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x10009c61
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x10009c6f
push str.Failed_on_LoadBinResource
push edi
call fcn.1000b323
add esp, 8
jmp 0x10009d16
push edi
push 0x10000000
call dword [sym.imp.KERNEL32.dll_SizeofResource]
jmp 0x10009c71
xor eax, eax
push dword [ebp - 0x18]
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x14]
call fcn.100079c0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.10007ce0
mov edi, eax
call fcn.100096d0
cmp byte [0x100355d0], 0
je 0x10009ca0
xor edi, edi
jmp 0x10009cb2
test edi, edi
jns 0x10009cb2
push str.Action_failed
push edi
call fcn.1000b323
add esp, 8
neg edi
sbb edi, edi
and edi, 0x643
push edi
call fcn.1000aca1
mov byte [ebp - 4], 0
mov edi, eax
mov edx, dword [ebp - 0x34]
mov ecx, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10009ce2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x3c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10009cfc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x40]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10009d16
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10009d32
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000aea8
Capabilities:
Query or enumerate registry value

Disassembly:
push str.WcaVerboseLogging
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
xor ecx, ecx
cmp cx, ax
je 0x1000aebe
xor eax, eax
inc eax
ret
push str.WcaNotVerboseLogging
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
xor ecx, ecx
cmp cx, ax
je 0x1000aed3
xor eax, eax
ret
jmp fcn.1000aed8
Function at 0x1000aed8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10033010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x2c], 0x20
mov word [ebp - 0x24], ax
lea edi, [ebp - 0x22]
rep stosd dword es:[edi], eax
xor esi, esi
mov dword [ebp - 0x28], esi
stosw word es:[edi], ax
lea eax, [ebp - 0x28]
push eax
push 1
push esi
push str.SoftwarePoliciesMicrosoftWindowsInstaller
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000af7f
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push esi
push str.Logging
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000af76
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x24]
shr ecx, 1
je 0x1000af76
mov edi, esi
push ebx
movzx eax, word [edx]
test ax, ax
je 0x1000af75
push 0x76
pop ebx
cmp bx, ax
je 0x1000af72
push 0x56
pop ebx
cmp bx, ax
je 0x1000af72
add edi, 2
add edx, 2
mov eax, edi
sar eax, 1
cmp ecx, eax
ja 0x1000af4a
jmp 0x1000af75
xor esi, esi
inc esi
pop ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.1000b827
mov esp, ebp
pop ebp
ret

Function at 0x1000e5e0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x100289a8
push str.FlsAlloc
push 0
call fcn.1000e560
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000e612
push dword [ebp + 8]
mov ecx, esi
call fcn.1000c176
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x1000e654
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x100289cc
push str.FlsGetValue
push 2
call fcn.1000e560
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x1000e685
mov ecx, esi
call fcn.1000c176
call esi
jmp 0x1000e68b
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x1000e68e
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x100289e0
push str.FlsSetValue
push 3
call fcn.1000e560
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x1000e6c2
mov ecx, esi
call fcn.1000c176
call esi
jmp 0x1000e6c8
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret