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

Disassembly:
push 0x278
mov eax, 0x1041649
call fcn.010030e2
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
mov edi, ecx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x224], eax
call ebx
mov eax, dword [edi + 0x9c]
test eax, eax
je 0x1011877
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x228]
push ecx
push 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
mov dword [ebp - 0x220], 0x208
call esi
mov dword [ebp - 0x22c], eax
mov ecx, 0xea
test eax, eax
je 0x1011885
cmp eax, ecx
je 0x1011885
push eax
call ebx
xor eax, eax
call fcn.01003122
ret 8
push 6
jmp 0x100a4c9
push 0
jmp 0x1011926
cmp dword [ebp - 0x228], 1
je 0x10118a4
cmp dword [ebp - 0x228], 7
je 0x10118a4
cmp dword [ebp - 0x228], 2
jne 0x100a4c8
and dword [ebp - 4], 0
cmp dword [ebp - 0x228], 2
jne 0x101cbbf
cmp eax, ecx
je 0x101cb38
mov ecx, dword [ebp - 0x224]
mov esi, 0x104
push esi
call fcn.0100fa34
push esi
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [eax - 1]
mov dword [ebp - 0x220], eax
cmp ecx, 0x102
ja 0x101cb96
add eax, eax
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x22c]
test eax, eax
jne 0x101cb65
or dword [ebp - 4], 0xffffffff
shr dword [ebp - 0x220], 1
mov ecx, dword [ebp - 0x224]
je 0x101187e
mov eax, dword [ebp - 0x220]
dec eax
push eax
call fcn.0100a325
xor eax, eax
inc eax
jmp 0x100a4cd
push 0x80010135
lea ecx, [ebp - 0x244]
call fcn.010255a9
mov esi, eax
lea edi, [ebp - 0x284]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x1045724
lea eax, [ebp - 0x284]
push eax
call sub.msvcrt.dll__CxxThrowException
jle 0x101cb71
and eax, 0xffff
or eax, 0x80070000
push eax
lea ecx, [ebp - 0x244]
call fcn.010255a9
mov esi, eax
lea edi, [ebp - 0x254]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x1045724
lea eax, [ebp - 0x254]
jmp 0x101cb5f
push 0x80010135
lea ecx, [ebp - 0x244]
call fcn.010255a9
mov esi, eax
lea edi, [ebp - 0x274]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x1045724
lea eax, [ebp - 0x274]
jmp 0x101cb5f
cmp eax, ecx
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x224]
jne 0x101cbfb
shr eax, 1
push eax
call fcn.0100fa34
lea ecx, [ebp - 0x220]
push ecx
push eax
lea eax, [ebp - 0x228]
push eax
push 0
push dword [ebp - 0x230]
push dword [edi + 0x9c]
call esi
jmp 0x1011900
shr eax, 1
push eax
call fcn.0100fa34
lea ecx, [ebp - 0x21c]
push ecx
push dword [ebp - 0x220]
push eax
call fcn.01032f1e
test eax, eax
jge 0x10118fa
push eax
lea ecx, [ebp - 0x244]
call fcn.010255a9
mov esi, eax
lea edi, [ebp - 0x264]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x1045724
lea eax, [ebp - 0x264]
jmp 0x101cb5f
Function at 0x100ab21
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x104a044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push dword [esi + 0x14]
lea eax, [ebp - 0x24]
push 0x100a220
push 0x10
xor ebx, ebx
push eax
mov byte [ebp - 0x25], bl
call fcn.0100a5fc
add esp, 0x10
test eax, eax
jl 0x100ab93
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x40]
push eax
push ebx
push 8
lea eax, [ebp - 0x24]
push eax
push edi
push 0x80000002
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 0x14
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
je 0x101d114
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x25]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01002376
leave
ret 4
cmp dword [ebp - 0x2c], 0x14
jne 0x100ab93
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
call fcn.010119dd
mov byte [ebp - 0x25], al
jmp 0x100ab93
Function at 0x100ac43
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x104a044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 0x10], eax
cmp byte [eax + 0x213], bl
je 0x100acd8
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push 0x100acf0
push 0x80000002
mov dword [ebp - 0x24], 0x100a7b8
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100acc8
push esi
push edi
mov esi, 0x100ace8
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + 4]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x100acc6
test byte [ebp - 0x10], 1
jne 0x100ad54
shr dword [ebp - 0x10], 1
inc dword [ebp - 0x14]
cmp dword [ebp - 0x10], ebx
jne 0x100acb1
pop edi
pop esi
push ebx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x100a7b8
call fcn.0100ae45
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01002376
leave
ret
mov eax, dword [ebp - 0x14]
add eax, 0x41
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], 0x100a7b8
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100ae11
push 4
pop edi
push edi
lea eax, [esi + 0x62c]
push eax
push edi
push ebx
push 0x100add8
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, 0x100b33c
lea eax, [esi + 0x214]
mov dx, word [eax]
cmp dx, word [ecx]
je 0x101a14a
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x100ae11
lea ecx, [esi + 0x41e]
mov eax, ecx
lea edx, [eax + 2]
jmp 0x100adec
mov di, word [eax]
inc eax
inc eax
cmp di, bx
jne 0x100adec
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
push 1
push ebx
push 0x100ae28
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x100a7b8
call fcn.0100ae45
jmp 0x100acbb
cmp dx, bx
je 0x101a16a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100adc0
add eax, edi
add ecx, edi
cmp dx, bx
jne 0x100adb4
xor eax, eax
jmp 0x100adc5
Function at 0x100ae71
Capabilities:
Get disk information

Disassembly:
push 0x18
mov eax, 0x103e6fd
call fcn.01001630
mov ebx, ecx
xor esi, esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], esi
call fcn.0100a7e0
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x100af4b
lea edi, [ebx + 0xc]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call fcn.0100af71
mov esi, eax
test esi, esi
je 0x100aedf
push dword [ebp + 8]
mov ecx, esi
call fcn.0100aff0
test al, al
jne 0x100aed7
lea ecx, [ebp - 0x24]
call fcn.0100af71
mov esi, eax
test esi, esi
jne 0x100aebb
test esi, esi
jne 0x101a20e
push 0x638
call dword [0x104b7ec]
test eax, eax
je 0x100af5f
mov ecx, eax
call fcn.0100a90b
mov esi, eax
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x100af63
push 3
push dword [ebp + 8]
mov ecx, esi
push dword [ebx]
call fcn.0100b1ce
mov dword [ebp - 0x10], eax
test eax, eax
jl 0x100af3c
push esi
mov ecx, ebx
mov byte [esi + 0x212], 1
call fcn.0100b2ce
mov ecx, dword [edi]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x10], eax
lea eax, [esi + 0x630]
mov dword [eax], ecx
mov dword [eax + 4], esi
mov dword [edi], eax
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
test ecx, ecx
jne 0x101a21a
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [ebp - 0x10]
call fcn.01001600
ret 4
xor esi, esi
jmp 0x100aef7
mov dword [ebp - 0x10], 0x8007000e
jmp 0x100af3c
mov byte [esi + 0x212], 1
jmp 0x100af4b
push 1
call fcn.010245e9
jmp 0x100af4b

Function at 0x100b0c5
Capabilities:
Enumerate disk volumes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x104a044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x214], ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x101a226
test edi, edi
jne 0x100b13b
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x210]
push eax
call fcn.0100ae71
push esi
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x100b103
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x12
jne 0x100b103
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
test eax, eax
je 0x101a226
mov ecx, dword [ebp - 0x214]
call fcn.0100b16f
push edi
call fcn.0100a2af
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01002376
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x100b14a
Function at 0x100b349
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
push edi
lea edi, [ecx + 8]
mov dword [ebp - 0x10], ecx
xor eax, eax
lea ecx, [ebp - 8]
push ecx
push eax
push eax
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
call esi
test eax, eax
jne 0x100b426
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x100b426
mov eax, dword [ebp - 8]
push 2
xor ecx, ecx
pop edx
mul edx
seto cl
neg ecx
or eax, ecx
push eax
call dword [0x104b7ec]
mov ebx, eax
test ebx, ebx
je 0x100b41d
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push edi
call esi
test eax, eax
je 0x101a126
cmp word [ebx], 0
mov esi, ebx
je 0x100b401
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x100b3e5
movzx eax, word [esi]
push eax
call fcn.0100b434
movzx ecx, ax
xor eax, eax
sub ecx, 0x41
inc eax
shl eax, cl
or dword [ebp - 0xc], eax
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x100b3ea
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2 + 2]
cmp word [esi], cx
jne 0x100b3c3
push ebx
call dword [0x104b7e8]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
test eax, eax
jl 0x100b41b
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], ecx
leave
ret
mov dword [ebp - 4], 0x8007000e
jmp 0x100b408
mov dword [ebp - 4], 0x8000ffff
jmp 0x100b408
call fcn.010244f3
mov dword [ebp - 4], eax
jmp 0x100b401

Function at 0x100b9ed
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x100a1b0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
call fcn.0100a2af
mov esi, eax
test esi, esi
jl 0x100ba66
lea eax, [ebp - 8]
push eax
push 0x100a178
push dword [ebp - 4]
call fcn.0100ba93
mov esi, eax
test esi, esi
jl 0x100ba5d
cmp dword [ebp - 8], 1
jne 0x100ba5d
push 0x100ba6c
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push eax
call fcn.0100a2af
mov esi, eax
test esi, esi
jge 0x100ba5d
cmp esi, 0x80070002
jne 0x100ba5d
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x100bbd2
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x104a044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push dword [esi + 0x14]
lea eax, [ebp - 0x24]
push 0x100a220
push 0x10
push eax
xor bl, bl
call fcn.0100a5fc
add esp, 0x10
test eax, eax
jl 0x100bc42
lea eax, [ebp - 0x28]
push eax
push 2
push 0
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100bc42
push 0x14
push esi
push 3
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x100bc39
inc bl
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.01002376
leave
ret 4

Function at 0x100c76c
Capabilities:
Get user security identifier

Disassembly:
push 0x14
mov eax, 0x1040d55
call fcn.01001890
mov edi, dword [ebp + 0xc]
xor esi, esi
cmp edi, esi
je 0x101be3c
cmp dword [ebp + 8], esi
je 0x101be46
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp + 8]
mov dword [edi], esi
push esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x101be7b
mov eax, dword [ebp - 0x18]
push 2
xor ecx, ecx
pop edx
mul edx
seto cl
mov dword [ebp - 4], esi
neg ecx
or eax, ecx
push eax
call dword [0x104b7ec]
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], esi
je 0x100c835
push dword [ebp - 0x1c]
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [edi], eax
cmp eax, esi
je 0x100c82e
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push ecx
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x101be64
xor ebx, ebx
push dword [ebp - 0x14]
call dword [0x104b7e8]
mov eax, ebx
call fcn.01001600
ret 8
mov ebx, 0x8007000e
jmp 0x100c81b
mov ebx, 0x8007000e
jmp 0x100c824
mov eax, 0x80004003
jmp 0x100c826
mov eax, 0x80070057
jmp 0x100c826
call fcn.0100f26b
push dword [edi]
mov ebx, eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov dword [edi], esi
jmp 0x100c81b
push eax
call fcn.0100a2af
mov ebx, eax
jmp 0x100c824
Function at 0x100d87b
Capabilities:
Query environment variable

Disassembly:
push 0x4c0
mov eax, 0x104088f
call fcn.01002325
mov esi, dword [ebp + 8]
and dword [ebp - 0x428], 0
mov dword [ebp - 0x42c], esi
xor ebx, ebx
lea eax, [ebp + 0xc]
inc ebx
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0100ecc1
push dword [ebp + 0x10]
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x428], ebx
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
test eax, eax
je 0x100d8f3
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4cc]
call fcn.01011f55
push dword [eax + 4]
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0100a739
lea ecx, [ebp - 0x4cc]
mov byte [ebp - 4], bl
call fcn.01007e75
mov eax, dword [esi + 4]
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x100d91f
mov eax, dword [esi]
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x420]
push ecx
mov ecx, esi
call dword [eax + 0x10]
sub esp, 0x94
mov ecx, esp
mov dword [ebp - 0x424], esp
push esi
call fcn.0100ecc1
lea eax, [ebp - 0x4cc]
push eax
call fcn.0100c4dd
push dword [eax + 4]
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0100a739
lea ecx, [ebp - 0x4cc]
mov byte [ebp - 4], bl
call fcn.01007e75
mov eax, dword [esi + 0xc]
cmp eax, 0xb
jb 0x100d9f8
push 0xb
lea eax, [ebp - 0x438]
push eax
mov ecx, esi
call fcn.0100da3b
push 0x100d9e0
mov ecx, eax
call fcn.01003824
test eax, eax
jne 0x100d9f8
mov eax, dword [esi + 0xc]
add eax, 0xfffffff5
push eax
mov ecx, esi
call fcn.0100a325
sub esp, 0x94
mov ecx, esp
mov dword [ebp - 0x424], esp
push esi
call fcn.0100ecc1
lea eax, [ebp - 0x4cc]
push eax
call fcn.0100c4dd
mov byte [ebp - 4], 4
push dword [eax + 4]
mov ecx, esi
call fcn.0100a739
lea ecx, [ebp - 0x4cc]
call fcn.01007e75
lea ecx, [ebp + 0xc]
call fcn.01007e75
mov eax, esi
call fcn.01002362
ret 0x98
mov eax, dword [esi + 0xc]
cmp eax, 6
jb 0x100d9ce
push 6
lea eax, [ebp - 0x438]
push eax
mov ecx, esi
call fcn.0100da3b
push 0x100da28
mov ecx, eax
call fcn.01003824
test eax, eax
jne 0x100d9ce
jmp 0x101b977
mov eax, dword [esi + 0xc]
add eax, 0xfffffffa
push eax
mov ecx, esi
call fcn.0100a325
sub esp, 0x94
mov ecx, esp
mov dword [ebp - 0x424], esp
push esi
call fcn.0100ecc1
lea eax, [ebp - 0x4cc]
push eax
call fcn.0100c4dd
mov byte [ebp - 4], 5
jmp 0x100d9b9
Function at 0x100da6a
Capabilities:
Terminate process

Disassembly:
call fcn.0100c44e
push 0x58
push 0x100dc28
call fcn.01007fcc
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x104a100
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x101b724
xor esi, esi
inc esi
mov eax, dword [0x104a0a0]
cmp eax, esi
je 0x101b742
mov eax, dword [0x104a0a0]
test eax, eax
jne 0x100dc5f
mov dword [0x104a0a0], esi
push 0x100dc24
push 0x100dc18
call fcn.0100e30e
pop ecx
pop ecx
test eax, eax
jne 0x101b7fd
mov eax, dword [0x104a0a0]
cmp eax, esi
jne 0x100db1b
push 0x100dc14
push 0x100db68
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x104a0a0], 2
test ebx, ebx
jne 0x100db27
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x104baa0], 0
jne 0x101b74f
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
jbe 0x100dc50
cmp al, 0x22
je 0x101b791
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
jne 0x101b7a1
inc esi
jmp 0x100db3b
test al, al
je 0x100dc6a
cmp dword [ebp - 0x1c], 0
je 0x100dc6a
jmp 0x100db48
mov dword [0x104bbb4], esi
jmp 0x100daf7
mov al, byte [esi]
test al, al
je 0x100dc7a
cmp al, 0x20
ja 0x100dc7a
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100dc6a
test byte [ebp - 0x3c], 1
jne 0x101b773
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call fcn.0100dc9f
jmp 0x101b77c
cmp eax, esi
jne 0x101b732
xor esi, esi
inc esi
mov ebx, esi
jmp 0x100dabe
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100daa9
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100daf7
push 0x104baa0
call fcn.0102fb81
pop ecx
test eax, eax
je 0x100db34
push 0
push 2
push 0
call dword [0x104baa0]
jmp 0x100db34
movzx eax, word [ebp - 0x38]
jmp 0x100dc87
mov dword [0x104bbb0], eax
cmp dword [0x104a078], 0
jne 0x101b7d9
push eax
call dword [sym.imp.msvcrt.dll_exit]
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
jmp 0x100db50
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100db63
cmp dword [0x104bbb4], 0
jne 0x101b7e8
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x104bbb0]
jmp 0x101b809
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01008011
ret
Function at 0x100edf7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x146c
call fcn.0100a514
mov eax, dword [0x104a044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.0100a500
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x28]
push eax
push 3
xor ebx, ebx
push ebx
push 0x100a230
mov edi, 0x80000002
push edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x34], ebx
call esi
cmp eax, ebx
jne 0x100ef75
lea eax, [ebp - 0x34]
push eax
push 3
push ebx
push 0x100c148
push edi
call esi
cmp eax, ebx
jne 0x100ef75
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x100ef75
cmp dword [ebp - 0x2c], 0x400
ja 0x100ef75
mov dword [ebp - 0x30], ebx
cmp dword [ebp - 0x2c], ebx
jbe 0x100ef36
lea esi, [ebp - 0x1468]
push 0x14
pop edi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x40]
push eax
push ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x30]
mov byte [esi], bl
push dword [ebp - 0x28]
mov dword [ebp - 0x38], 0x10
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], edi
call dword [sym.imp.KERNEL32.dll_RegEnumValueW]
test eax, eax
jne 0x100ef24
cmp dword [ebp - 0x40], 3
jne 0x100ef24
cmp dword [ebp - 0x3c], edi
jne 0x100ef24
mov ecx, dword [ebp - 0x38]
mov word [ebp + ecx*2 - 0x24], ax
lea edi, [esi - 4]
push edi
lea eax, [ebp - 0x24]
push eax
call fcn.0100cb8e
test al, al
je 0x100ef24
push dword [edi]
lea ecx, [ebp - 0x6c]
call fcn.0100a4da
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x6c]
call fcn.010119dd
lea ecx, [ebp - 0x6c]
call fcn.0100a544
cmp dword [ebp - 0x6c], ebx
jne 0x100ef24
mov byte [esi], 1
inc dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
add esi, 5
cmp eax, dword [ebp - 0x2c]
jb 0x100ee97
xor edi, edi
cmp dword [ebp - 0x2c], ebx
jbe 0x100ef75
lea esi, [ebp - 0x146c]
cmp byte [esi + 4], bl
je 0x100ef6c
push dword [esi]
lea ecx, [ebp - 0x6c]
call fcn.0100a4da
push 0x100a230
lea ecx, [ebp - 0x6c]
call fcn.0100efa3
push 0x100c148
lea ecx, [ebp - 0x6c]
call fcn.0100efa3
inc edi
add esi, 5
cmp edi, dword [ebp - 0x2c]
jb 0x100ef43
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x28], ebx
je 0x100ef85
push dword [ebp - 0x28]
call esi
cmp dword [ebp - 0x34], ebx
je 0x100ef8f
push dword [ebp - 0x34]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01002376
leave
ret