joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100fe3c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x100fe68
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10196dc
leave
ret
lea eax, [ebp - 8]
push eax
push 0x1048500
push 0
push 0
push 0x101970c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100fe63

Function at 0x101016a
Capabilities:
Query or enumerate registry value

Disassembly:
cmp dword [ebp - 8], 4
jne 0x10101db
cmp dword [ebp - 0xc], 4
jne 0x10101db
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x10], eax
je 0x10101db
mov eax, dword [esi + 4]
or dword [ebp - 0x1c], eax
jmp 0x10101db
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
xor eax, eax
push edi
mov edi, ecx
mov ebx, dword [edi + 0x90]
cmp ebx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
jle 0x1010203
push esi
push dword [ebp - 4]
lea ecx, [edi + 0x8c]
call fcn.0100fb6f
mov esi, dword [eax]
test esi, esi
je 0x10101db
mov ecx, dword [esi]
test ecx, ecx
je 0x10101db
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
and dword [ebp - 0x10], 0
and dword [ebp - 8], 0
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 8]
push edx
push 0
push ecx
push eax
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x101013d
inc dword [ebp - 4]
cmp dword [ebp - 4], ebx
jl 0x101018f
cmp dword [ebp - 0x14], 0
pop esi
je 0x1010203
push dword [ebp - 0x1c]
xor eax, eax
push eax
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01010211
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop ebx
leave
ret 0x10
Function at 0x10109c5
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x450
mov eax, 0x104255e
call fcn.01007986
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x45c], esi
mov dword [ebp - 0x458], esi
mov dword [ebp - 0x454], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x444], esi
mov dword [ebp - 0x440], esi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x450], esi
mov dword [ebp - 0x44c], esi
mov dword [ebp - 0x448], esi
push esi
mov edi, 0x20019
push edi
push 0x1010b50
push 0x80000002
lea ecx, [ebp - 0x45c]
mov byte [ebp - 4], 2
call fcn.0100fc07
test eax, eax
jne 0x1010bce
push esi
push edi
push dword [ebx + 0x3c]
lea ecx, [ebp - 0x444]
push dword [ebp - 0x45c]
call fcn.0100fc07
test eax, eax
jne 0x1010bce
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x428], esi
mov ebx, 0x104
cmp dword [ebp - 0x424], esi
jl 0x1010bd8
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x430]
push eax
push esi
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x428]
mov dword [ebp - 0x434], ebx
push dword [ebp - 0x444]
mov dword [ebp - 0x438], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, esi
jne 0x1010bc8
mov eax, dword [ebp - 0x438]
lea edx, [eax - 1]
mov ecx, 0x102
cmp edx, ecx
ja 0x1010b45
cmp word [ebp + eax*2 - 0x420], si
jne 0x1010b45
mov eax, dword [ebp - 0x434]
shr eax, 1
cmp dword [ebp - 0x430], 1
jne 0x1010b45
lea edx, [eax - 1]
cmp edx, ecx
ja 0x1010b45
cmp word [ebp + eax*2 - 0x21a], si
jne 0x1010b45
push esi
push edi
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x444]
lea ecx, [ebp - 0x450]
call fcn.0100fc07
cmp eax, esi
jne 0x1010b45
mov ecx, dword [ebp - 0x42c]
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.0100fd9e
mov dword [ebp - 0x424], eax
inc dword [ebp - 0x428]
jmp 0x1010a74
mov ebx, dword [ebp - 0x42c]
mov dword [ebx + 0x9c], 1
lea ecx, [ebp - 0x450]
call fcn.01010c0a
lea ecx, [ebp - 0x444]
call fcn.01010c0a
lea ecx, [ebp - 0x45c]
call fcn.01010c0a
mov eax, dword [ebp - 0x424]
call fcn.010079c3
ret
Function at 0x1010ec9
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10489a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov esi, ecx
call sub.msvcrt.dll_memset
jmp 0x1019df4
add esp, 0x20
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
pop edi
mov dword [esi + 0x510], eax
pop esi
test eax, eax
je 0x1019e60
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1019e15
push 0x1010f58
call fcn.0100164a
xor eax, eax
inc eax
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001b23
leave
ret 4
push edi
push 0x101a048
push 0x101a038
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0100790b
jmp 0x1010f05
cmp eax, 0x80
jne 0x1019e26
push 0x1019fd0
jmp 0x1010f3f
cmp eax, 0x102
jne 0x1019e3e
push 0x1019f88
call fcn.0100164a
xor eax, eax
jmp 0x1010f47
cmp eax, 0xffffffff
jne 0x1019e4a
push 0x1019f48
jmp 0x1019e65
push eax
push 0x1019ed0
call fcn.0100164a
pop ecx
mov eax, 0x8000ffff
jmp 0x1010f47
push 0x1019e78
call fcn.0100164a
mov eax, 0x80004005
jmp 0x1010f47
Function at 0x101ace4
Capabilities:
Set registry value

Disassembly:
push 0xa
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebp - 0x118]
push dword [eax + 0x3c]
call dword [sym.imp.msvcrt.dll__itow]
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
push esi
push ebx
push esi
push esi
push esi
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x10c]
mov dword [ebp - 0x108], esi
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x100a619
cmp dword [ebp - 0x108], esi
je 0x100a619
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x1009ea8
push dword [ebp - 0x108]
call edi
mov eax, dword [ebp - 0x114]
cmp eax, esi
je 0x100a611
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x100a5e8
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x114]
push 1
push esi
push 0x100cac0
push dword [ebp - 0x108]
call edi
push dword [ebp - 0x108]
call ebx
push dword [ebp - 0x10c]
call ebx
jmp 0x100a65d
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
mov ebx, 0x20006
push ebx
push esi
push esi
push esi
push 0x100a670
push 0x80000001
call edi
test eax, eax
jne 0x100a65d
cmp dword [ebp - 0x10c], esi
jne 0x101ad2b
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001b23
leave
ret 0xc
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10489a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x114], eax
mov eax, dword [ebp + 0x10]
xor esi, esi
push edi
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x10c], esi
cmp eax, esi
je 0x100a623
mov dword [eax], esi
jmp 0x100a623
mov eax, dword [ebp - 0x108]
cmp eax, esi
je 0x100a56a
mov ecx, dword [ebp - 0x110]
mov dword [eax], ecx
jmp 0x100a56a
Function at 0x101d219
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x22c
mov eax, 0x1042488
call fcn.01007986
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x1c]
xor esi, esi
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x224], 0x104
mov dword [ebp - 0x21c], esi
cmp dword [ebp - 0x220], esi
jl 0x101d311
mov eax, dword [edi]
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 0x21c]
mov dword [ebp - 0x224], 0x104
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, esi
jne 0x101d311
mov eax, dword [ebp - 0x224]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x101d305
cmp word [ebp + eax*2 - 0x218], si
jne 0x101d305
mov eax, dword [edi]
push esi
push 0x20019
lea ecx, [ebp - 0x218]
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.0100fc07
cmp eax, esi
jne 0x101d305
mov ecx, dword [ebp - 0x238]
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x228]
call fcn.0101016a
mov dword [ebp - 0x220], eax
add dword [ebp - 0x21c], 2
jmp 0x101d267
lea ecx, [ebp - 0x234]
call fcn.01010c0a
mov eax, dword [ebp - 0x220]
call fcn.010079c3
ret 0x18
Function at 0x1021153
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x840
mov eax, dword [0x10489a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
or dword [ebp - 0x834], 0xffffffff
push esi
push dword [ebp + 8]
mov dword [ebp - 0x83c], eax
push 0x100a670
push 0x100c894
lea eax, [ebp - 0x81c]
xor esi, esi
push 0x104
push eax
mov dword [ebp - 0x820], esi
mov dword [ebp - 0x824], esi
call fcn.0100790b
add esp, 0x14
cmp eax, esi
mov dword [ebp - 0x830], eax
jl 0x1021346
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x824]
push eax
mov ebx, 0x20019
push ebx
push esi
lea eax, [ebp - 0x81c]
push eax
push 0x80000001
call edi
test eax, eax
je 0x10211ed
mov dword [ebp - 0x830], 1
jmp 0x1021344
mov dword [ebp - 0x828], esi
cmp dword [ebp + 0x14], esi
jbe 0x1021338
push 0x105
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x828]
push dword [ebp - 0x824]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x1021338
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x210]
push 0x100af48
push eax
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
cmp eax, 1
jne 0x1021323
lea eax, [ebp - 0x82c]
push eax
push ebx
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x824]
mov dword [ebp - 0x82c], esi
call edi
test eax, eax
jne 0x1021323
push 0x3fe
mov word [ebp - 0x610], ax
lea eax, [ebp - 0x60e]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x610]
push eax
lea eax, [ebp - 0x840]
push eax
push esi
push 0x100acb4
push dword [ebp - 0x82c]
mov dword [ebp - 0x838], 0x400
mov dword [ebp - 0x840], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1021317
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x610]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x10212f3
cmp dx, si
je 0x10212ef
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x10212f3
add ecx, 4
add eax, 4
cmp dx, si
jne 0x10212cd
xor eax, eax
jmp 0x10212f8
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x1021317
mov edx, dword [ebp - 0x820]
mov eax, dword [ebp - 0x834]
mov ecx, dword [ebp - 0x83c]
inc dword [ebp - 0x820]
mov dword [ecx + edx*4], eax
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
inc dword [ebp - 0x828]
cmp dword [ebp - 0x820], eax
jb 0x10211fc
push dword [ebp - 0x824]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x830]
xor ecx, ebp
pop esi
call fcn.01001b23
leave
ret 0x10
Function at 0x10214bc
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x47c
mov eax, 0x1042d8c
call fcn.01007986
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x43c], eax
mov dword [eax], ebx
lea eax, [ebp - 0x428]
push eax
push 0x20019
push ebx
push 0x100a670
push 0x80000001
mov dword [ebp - 0x428], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x102166d
cmp dword [ebp - 0x428], ebx
je 0x102166d
lea eax, [ebp - 0x488]
mov dword [ebp - 0x440], ebx
mov dword [ebp - 0x444], 0x10
mov dword [ebp - 0x448], eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x104
push edi
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x434], ebx
push ebx
jmp 0x102160f
lea eax, [ebp - 0x42c]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x428]
mov dword [ebp - 0x42c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10215fb
cmp dword [ebp - 0x42c], ebx
je 0x10215fb
push 0x105
lea eax, [ebp - 0x424]
push eax
mov dword [ebp - 0x430], ebx
push ebx
jmp 0x10215e3
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x424]
push 0x100af48
push eax
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
cmp eax, 1
jne 0x10215cb
push eax
push dword [ebp - 0x438]
lea ecx, [ebp - 0x488]
call fcn.01012c9c
inc dword [ebp - 0x430]
push 0x105
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x430]
push dword [ebp - 0x42c]
call esi
test eax, eax
je 0x1021598
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x434]
push edi
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x434]
push dword [ebp - 0x428]
call esi
cmp eax, ebx
je 0x102154d
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x448]
push 2
pop eax
xor ecx, ecx
cmp dword [ebp - 0x440], ebx
jbe 0x102164c
cmp dword [edx + ecx*4], eax
je 0x1021675
inc ecx
cmp ecx, dword [ebp - 0x440]
jb 0x102163e
mov ecx, dword [ebp - 0x43c]
or dword [ebp - 4], 0xffffffff
mov dword [ecx], eax
cmp edx, ebx
je 0x102166d
lea eax, [ebp - 0x488]
cmp edx, eax
je 0x102166d
push edx
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
call fcn.010079c3
ret 4
inc eax
jmp 0x1021634
Function at 0x1028b51
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
lea esi, [ecx + 0x2b4]
cmp dword [esi], eax
je 0x1028bba
push edi
xor edi, edi
push edi
mov dword [esi], eax
lea eax, [ebp + 8]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push 0x1004d24
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jl 0x1028bb9
cmp dword [ebp + 8], edi
je 0x1028bb9
push 4
push esi
push 4
push edi
push 0x10067bc
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.010015fd
mov ecx, eax
call fcn.0102c7f9
pop edi
pop esi
pop ebp
ret 4

Function at 0x1028bc4
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
xor eax, eax
push edi
xor edi, edi
cmp dword [ecx + 0x2ac], edi
mov dword [ebp - 8], ecx
sete al
mov dword [ebp - 4], edi
mov dword [ecx + 0x2bc], eax
cmp eax, edi
jne 0x1028cb2
push ebx
push esi
xor ebx, ebx
inc ebx
push ebx
push ebx
push edi
lea eax, [ebp - 4]
push eax
mov esi, 0x1028cec
push esi
push dword [ebp + 8]
call fcn.010054a8
test eax, eax
jge 0x1028c6a
cmp dword [ebp + 0xc], 0x80000001
jne 0x1028c6a
lea eax, [ebp + 0xc]
push eax
push ebx
push edi
push esi
push 0x80000002
mov dword [ebp + 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jge 0x1028c32
mov dword [ebp + 0xc], edi
jmp 0x1028c46
push ebx
push ebx
push edi
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
call fcn.010054a8
test eax, eax
jge 0x1028c49
mov dword [ebp - 4], ebx
push 4
lea eax, [ebp - 4]
push eax
push 4
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp + 0xc], edi
je 0x1028c6a
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 8]
xor eax, eax
cmp dword [ebp - 4], edi
sete al
mov dword [ebx + 0x2bc], eax
cmp eax, edi
je 0x1028ca9
mov eax, dword [0x10489ac]
cmp eax, 0x10489ac
je 0x1028ca9
test byte [eax + 0x1c], 0x10
je 0x1028ca9
push esi
push 0x1028cbc
push 0x101cb20
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102829f
mov ecx, ebx
call fcn.01017129
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 8
Function at 0x102ce8f
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
lea eax, [edi + 0x104]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor esi, esi
cmp dword [edi + 0x100], esi
jne 0x102cf3b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push esi
push esi
push esi
call ebx
push esi
push esi
push esi
push esi
mov dword [edi + 0x11c], eax
call ebx
push esi
push esi
push esi
push esi
mov dword [edi + 0x120], eax
call ebx
lea ebx, [edi + 0x11c]
mov dword [edi + 0x124], eax
cmp dword [ebx], esi
je 0x102cf3a
cmp dword [edi + 0x120], esi
je 0x102cf3a
cmp eax, esi
je 0x102cf3a
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x102c6c1
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [edi + 0x100], eax
cmp eax, esi
jne 0x102cf3a
push ebx
call fcn.01001b72
lea eax, [edi + 0x120]
push eax
call fcn.01001b72
lea eax, [edi + 0x124]
push eax
call fcn.01001b72
pop ebx
push dword [ebp - 8]
xor eax, eax
cmp dword [edi + 0x100], esi
setne al
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x102d591
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x16c], eax
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x170], eax
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x174], eax
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x178], eax
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x17c], eax
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x180], eax
call ebx
mov dword [esi + 0x184], eax
cmp dword [esi + 0x16c], edi
je 0x102d668
cmp dword [esi + 0x170], edi
je 0x102d668
cmp dword [esi + 0x174], edi
je 0x102d668
cmp dword [esi + 0x178], edi
je 0x102d668
cmp dword [esi + 0x17c], edi
je 0x102d668
cmp dword [esi + 0x180], edi
je 0x102d668
cmp eax, edi
je 0x102d668
lea eax, [esi + 0x168]
push eax
push edi
push esi
push 0x1001cdb
push edi
push edi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x164], eax
cmp eax, edi
je 0x102d661
push 0xffffffffffffffff
push dword [esi + 0x16c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 0x1d0], edi
jne 0x102d668
mov ecx, esi
call fcn.010147ac
xor eax, eax
cmp dword [esi + 0x164], edi
pop edi
pop esi
setne al
pop ebx
ret
Function at 0x102d747
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x10489a8]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x410]
push eax
push 0xf003f
xor edi, edi
push edi
push 0x102d948
push 0x80000002
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x410], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jle 0x102d798
and eax, 0xffff
or eax, 0x80070000
cmp eax, edi
jl 0x102d936
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_wcschr]
push esi
mov dword [ebp - 0x414], edi
xor eax, eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x420]
push eax
push edi
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 0x414]
mov dword [ebp - 0x424], 0x101
push dword [ebp - 0x410]
mov dword [ebp - 0x41c], 0x201
mov dword [ebp - 0x420], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, edi
jle 0x102d813
and eax, 0xffff
or eax, 0x80070000
cmp eax, edi
mov dword [ebp - 0x418], eax
jl 0x102d916
cmp dword [ebp - 0x420], 1
jne 0x102d916
mov eax, dword [ebp - 0x41c]
cmp eax, edi
jbe 0x102d916
mov ecx, dword [ebp - 0x424]
cmp ecx, edi
jbe 0x102d916
test al, 1
jne 0x102d916
xor edx, edx
cmp dx, word [ebp + ecx*2 - 0x40c]
jne 0x102d916
shr eax, 1
dec eax
mov esi, eax
xor eax, eax
cmp ax, word [ebp + esi*2 - 0x208]
jne 0x102d916
lea eax, [ebp - 0x208]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x102d880
sub eax, edx
sar eax, 1
cmp eax, esi
jne 0x102d916
push 0x1c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
cmp eax, edi
je 0x102d8ab
mov ecx, eax
call fcn.0102b718
mov edi, eax
test edi, edi
je 0x102d914
lea eax, [ebp - 0x208]
push 0x7c
push eax
call ebx
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x102d8db
xor eax, eax
mov word [esi], ax
inc esi
inc esi
push 0x7c
push esi
call ebx
pop ecx
pop ecx
test eax, eax
je 0x102d8e0
xor ecx, ecx
mov word [eax], cx
jmp 0x102d8e0
mov esi, 0x102d944
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x40c]
push eax
mov ecx, edi
call fcn.0102cadd
mov ecx, dword [ebp - 0x428]
push 1
push edi
add ecx, 0x20
call fcn.0102d4b6
test eax, eax
jge 0x102d914
push 1
mov ecx, edi
call fcn.0102d263
xor edi, edi
inc dword [ebp - 0x414]
cmp dword [ebp - 0x418], edi
jge 0x102d7ac
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.01001b23
leave
ret
Function at 0x10311ee
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10489a8]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [0x10492b0], 1
push ebx
push esi
push edi
jne 0x103121d
or dword [0x10492b0], 1
call fcn.0103118d
mov dword [0x10492ac], eax
push 4
pop eax
call fcn.010154f7
mov esi, esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x103123f
xor eax, eax
jmp 0x10312fc
mov ebx, dword [ebp - 0x28]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x4c]
lea edi, [eax - 1]
not edi
and edi, esi
sub edi, eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x1049260]
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xffff1000
add esi, 0x11000
add esi, ebx
cmp edi, esi
jb 0x1031238
cmp eax, 1
je 0x10312dd
mov dword [ebp - 8], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1031238
mov eax, dword [ebp - 0x20]
add dword [ebp - 8], eax
test dword [ebp - 0x1c], ebx
je 0x1031286
test dword [ebp - 0x18], 0x100
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
je 0x10312b8
xor eax, eax
inc eax
jmp 0x10312fc
cmp edi, eax
jb 0x1031238
cmp eax, esi
jae 0x10312c7
mov dword [ebp - 8], esi
push 4
push ebx
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1049260]
jmp 0x10312e0
mov dword [ebp - 8], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0x10]
push ecx
inc eax
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001b23
leave
ret

Function at 0x1031467
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
xor eax, eax
lea esi, [ecx + 0x2c0]
cmp dword [esi], edi
push edi
sete al
mov dword [ebp - 4], edi
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push 0x1004d24
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jl 0x10314c7
cmp dword [ebp - 4], edi
je 0x10314c7
push 4
push esi
push 4
push edi
push 0x1004d94
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret