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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push edi
push 1
xor eax, eax
pop ebx
lea edi, [ebp - 0x48]
push 0xc
and dword [ebp - 8], 0
pop ecx
rep stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x48]
push 0x30
push eax
push 3
call dword [pe_dos_header]
test eax, eax
jl 0x1000380d
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x1000239c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100037fb
and dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push fcn.10002a54
mov dword [ebp - 0xc], 8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100037f2
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x18]
jne 0x100037f2
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x14]
jne 0x100037f2
xor ebx, ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1000380d
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x44]
mov dword [eax + 4], ecx
mov eax, ebx
pop edi
pop ebx
leave
ret 8

Function at 0x10003818
Capabilities:
Query or enumerate registry value

Disassembly:
pop edi
pop ebp
ret 4
mov ecx, edi
call fcn.1000c4a4
test byte [ebp + 8], 1
je 0x1000290c
push edi
call fcn.10008c60
pop ecx
mov eax, edi
jmp 0x10001fc0
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x1001b048]
cmp eax, 0xffffffff
jne 0x10003850
push fcn.10002a80
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
mov dword [str._b_U_], eax
je 0x10013826
push fcn.10001efc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1001b048], eax
test eax, eax
je 0x100028f8
pop ebp
jmp eax

Function at 0x10003a4c
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, 0x10005fb7
call fcn.100110e4
sub esp, 0x88
mov eax, dword [ebp + 0x20]
and byte [eax], 0
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [ebp + 0x18]
push fcn.100089e8
mov dword [ebp - 0x10], esi
call fcn.1000a534
mov ecx, dword [ebp + 0x1c]
call fcn.10002794
mov ecx, dword [esi + 0xe0]
mov eax, dword [ecx]
cmp eax, ecx
je 0x10003aaa
lea ecx, [esi + 0xbc]
cmp dword [ebp + 0x1c], ecx
jne 0x10003a9c
and dword [eax + 8], 0
jmp 0x10003aa0
and dword [eax + 0xc], 0
mov eax, dword [eax]
cmp eax, dword [esi + 0xe0]
jne 0x10003a91
mov eax, dword [ebp + 0x24]
xor edi, edi
cmp eax, edi
je 0x10003aba
or dword [eax], 0xffffffff
or dword [eax + 4], 0xffffffff
push dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0xffffffffffffffff
push 0x100052f0
mov esi, fcn.10004c58
push esi
call ebx
cmp eax, 0x800
jne fcn.1001257c
lea eax, [ebp + 0xb]
push eax
lea ecx, [ebp - 0x54]
call fcn.1000a1b0
push edi
lea eax, [ebp - 0x54]
push eax
push fcn.1000b554
push esi
push dword [ebp + 8]
mov dword [ebp - 4], edi
call fcn.100076cc
mov eax, dword [ebp - 0x50]
mov esi, dword [eax]
cmp esi, eax
je 0x10003da7
Function at 0x100040c4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x534
push ebx
push esi
push edi
push 0xffffffffffffffff
xor esi, esi
push 0x80
push 3
push esi
push 3
push esi
push fcn.10002518
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
xor ebx, ebx
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 0x64
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x24], eax
jne 0x10004113
call dword [pe_dos_header]
jmp 0x100041d2
cmp dword [ebp - 4], esi
je 0x100041ad
add ebx, 0x2000
cmp dword [ebp - 8], esi
je 0x10004138
push dword [ebp - 8]
push 0xc
push dword [0x10032058]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push 0xc
push dword [0x10032058]
call dword [fcn.10013be7]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x10012c44
push 6
xor eax, eax
pop ecx
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x30]
push esi
push eax
push ebx
push dword [ebp - 8]
lea eax, [ebp - 0x48]
mov dword [ebp - 0x30], esi
push 0x18
push eax
push 0x6d0008
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, esi
jne 0x1000419c
call dword [pe_dos_header]
cmp eax, 0xea
mov dword [ebp - 0x10], eax
jne 0x10004497
dec dword [ebp - 4]
mov dword [ebp - 0x10], esi
jmp 0x1000419f
mov dword [ebp - 0x14], esi
cmp dword [ebp - 0x14], esi
jne 0x10004113
cmp dword [ebp - 4], esi
jne 0x100041b9
mov dword [ebp - 0x10], 0xea
jmp 0x10004497
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 0xc]
mov eax, dword [eax + 4]
cmp eax, dword [edi]
jbe 0x100041da
mov dword [edi], eax
mov eax, dword [ebp + 8]
neg eax
sbb eax, eax
and eax, 0x7a
mov dword [ebp - 0x10], eax
jmp 0x10004497
push 0x8007
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
cmp dword [eax + 4], esi
jbe 0x10004489
lea ecx, [eax + 0x1c]
mov dword [ebp - 0x1c], ecx
push dword [esi + 8]
call ebx
test eax, eax
mov dword [edi], eax
je 0x10012c6c
push eax
call dword [fcn.10013be7]
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
push dword [ebp + 0xc]
mov dword [ecx], eax
mov esi, dword [esi + 4]
mov eax, dword [esi]
push esi
call dword [eax]
mov dword [ebp - 4], eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x10004200
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
imul eax, eax, 0x328
mov dword [eax + edx + 0x1c], esi
mov dword [eax + edx + 0x18], esi
lea ebx, [eax + edx]
xor eax, eax
or dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 4], 2
lea edi, [ebx + 0x300]
mov dword [ebp - 0x18], 1
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebx + 0x308], esi
mov dword [ebx + 0x30c], esi
mov dword [ebx + 0x310], esi
mov dword [ebx + 0x314], esi
cmp word [ecx], si
je 0x10004352
mov dword [ebx + 0x18], esi
mov esi, dword [ecx - 4]
mov ax, word [ecx]
add esi, dword [ebp - 8]
cmp ax, 0x2e0
movzx eax, ax
jb 0x10004279
lea esi, [esi + eax*2 - 0x2de]
mov dword [ebp - 4], 0x2de
jmp fcn.1000427c
mov dword [ebp - 4], eax
Function at 0x10004ccc
Capabilities:
Access the windows event log

Disassembly:
push esi
push edi
push dword [ebp + 0x18]
lea esi, [ecx + 4]
mov eax, dword [esi]
add ecx, 8
push ecx
push dword [ebp + 0x1c]
xor edi, edi
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x10004d14
call dword [fcn.1001396c]
cmp eax, 0x3e5
je 0x10004d14
test eax, eax
jle 0x10004d12
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov ecx, esi
call fcn.1000a888
mov eax, edi
pop edi
pop esi
jmp 0x1000a1ac
pop ebp
ret 0x18

Function at 0x10004dc6
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 2
push dword [ebp + 8]
add ecx, 0x14
call fcn.1000475c
mov esi, eax
test esi, esi
je 0x10004e14
and dword [ebp - 8], 0
push edi
xor eax, eax
lea edi, [ebp - 4]
stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 8
lea eax, [ebp - 8]
push eax
push 3
push 0
push 0x10002d2b
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret 4

Function at 0x100053d0
Capabilities:
Accept command line arguments
Create new key via cryptacquirecontext

Disassembly:
push 0x3c
mov eax, fcn.1000be8c
call fcn.1000df94
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor ebx, ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], ecx
cmp eax, ebx
jne 0x1000565e
mov dword [ebp - 0x40], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ebx
push 0xf0000000
push 0x18
push ebx
push ebx
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1000558b
push fcn.10001318
push dword [ebp - 0x40]
call dword [fcn.10013be7]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], ebx
cmp dword [ebp + 0xc], ebx
jbe 0x100056f8
jmp 0x1000566f

Function at 0x1000542e
Capabilities:
Accept command line arguments

Disassembly:
cmp eax, ebx
je 0x1000558b
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x20], ebx
call fcn.1000d930
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.100016f4
jmp 0x10005564
Function at 0x10006510
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
lea eax, [esi + 0xc]
push edi
push eax
mov dword [ebp - 4], eax
call dword [fcn.1001396c]
mov eax, dword [esi]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineA]
je 0x10006539
push eax
call edi
and dword [esi], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x10006547
push eax
call edi
and dword [esi + 8], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10006558
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [esi + 4], 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
pop edi
pop esi
leave
ret
Function at 0x10007190
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea edi, [ebx*8 + fcn.1000b08a]
mov eax, dword [edi + 4]
mov dword [ebp - 8], eax
mov byte [ebp + 0xb], 0
mov esi, fcn.1000a896
mov eax, dword [esi]
test dword [edi], eax
je 0x100071f3
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebx*4 + 0x10031f44]
mov eax, dword [esi + 8]
push dword [eax*4 + 0x1001e87c]
mov dword [ebp - 0xc], 4
push dword [esi + 4]
call dword [fcn.10013be7]
test eax, eax
je 0x10013826
add dword [ebp - 4], 0xc
add esi, 0xc
cmp dword [ebp - 4], 0x30
jb 0x100071b8
mov eax, dword [ebp + 0xc]
test eax, eax
pop edi
pop esi
pop ebx
je 0x1000720f
mov cl, byte [ebp + 0xb]
mov byte [eax], cl
mov eax, dword [ebp - 8]
leave
ret 8

Function at 0x10007218
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
test ecx, ecx
push ebx
push esi
push edi
je 0x1000a114
mov ebx, dword [ecx]
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x1000a11b
mov edi, dword [eax]
shr edi, 1
mov esi, dword [ebp + 0x1c]
test esi, esi
jne fcn.10007246
lea esi, [ebp + 0x14]
xor ebx, ebx
jmp 0x1000722d
xor edi, edi
jmp 0x1000723c

Function at 0x10007246
Capabilities:
Query or enumerate registry value

Disassembly:
push eax
push dword [ebp + 0x20]
push esi
push dword [ebp + 0x18]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1000728b
push ebx
push dword [ebp + 0x10]
call fcn.10008ecd
cmp dword [ebp + 0x20], 0
je 0x10007286
mov esi, dword [esi]
cmp esi, 1
je 0x1000727d
cmp esi, 2
jne 0x10007286
push edi
push dword [ebp + 0x20]
call fcn.10008ecd
and eax, 0xffff
pop edi
pop esi
pop ebx
pop ebp
ret 0x20
Function at 0x1000744c
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x10004524
call fcn.100110e4
sub esp, 0x820
push esi
mov esi, dword [ebp + 0x18]
and dword [esi], 0
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x82c]
push 0x400
push eax
mov edi, fcn.10001caf
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, 0x3ff
jne 0x100074a7
push 0x80040602
lea ecx, [ebp - 0x2c]
call fcn.10007044
push 0x1000e889
lea eax, [ebp - 0x2c]
push eax
call fcn.10001fc8
and word [ebp - 0x2e], 0
lea eax, [ebp + 0x1b]
push eax
lea eax, [ebp - 0x82c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100028d0
and dword [ebp - 4], 0
push edi
lea ecx, [ebp - 0x1c]
call fcn.1000b05c
test eax, eax
je 0x10007596
push fcn.100089e8
lea ecx, [ebp - 0x1c]
call fcn.1000b05c
test eax, eax
je 0x10007596
lea eax, [ebp - 0x1c]
push eax
call fcn.100019b4
lea ecx, [ebp - 0x1c]
call fcn.10006fb0
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp + 0x14]
mov dword [ebp + 0x18], eax
mov eax, dword [esi]
cmp eax, dword [ebp + 0x1c]
je 0x10007588
lea eax, [ebp + 0x18]
push eax
call fcn.10001efc
push 0x28
lea eax, [ebp + 0x18]
push eax
call fcn.1000f014
lea eax, [ebp + 0x18]
push eax
call fcn.1000cb69
mov ecx, dword [esi]
mov dword [edi + ecx*8], eax
lea eax, [ebp + 0x18]
push eax
call fcn.10001efc
push 0x2c
lea eax, [ebp + 0x18]
push eax
call fcn.1000f014
lea eax, [ebp + 0x18]
push eax
call fcn.10001efc
lea eax, [ebp + 0x18]
push eax
call fcn.1000cb69
mov ecx, dword [esi]
mov dword [edi + ecx*8 + 4], eax
lea eax, [ebp + 0x18]
push eax
call fcn.10001efc
push 0x29
lea eax, [ebp + 0x18]
push eax
call fcn.1000f014
lea eax, [ebp + 0x18]
push eax
call fcn.10001efc
inc dword [esi]
lea eax, [ebp + 0x18]
push eax
call fcn.1000ae94
test eax, eax
jne 0x10007503
push 1
lea ecx, [ebp - 0x1c]
call fcn.10004d84
mov al, 1
jmp 0x100075a2
push 1
lea ecx, [ebp - 0x1c]
call fcn.10004d84
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x100076cc
Capabilities:
Read .ini file

Disassembly:
mov eax, fcn.1000d3fc
call fcn.100110e4
sub esp, 0x840
push ebx
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x84c]
push 0x400
push eax
mov esi, fcn.10001caf
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, 0x3ff
jne 0x10007720
push 0x80040602
lea ecx, [ebp - 0x1c]
call fcn.10007044
push 0x1000e889
lea eax, [ebp - 0x1c]
jmp 0x10007877
lea eax, [ebp + 0x1b]
push eax
lea eax, [ebp - 0x84c]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x3c]
mov word [ebp - 0x4e], bx
call fcn.100028d0
push esi
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], ebx
call fcn.1000b05c
test eax, eax
je 0x1000785d
mov esi, fcn.100089e8
push esi
lea ecx, [ebp - 0x3c]
call fcn.1000b05c
test eax, eax
je 0x1000785d
lea ecx, [ebp - 0x3c]
call fcn.10006fb0
mov eax, dword [ebp - 0x38]
mov dword [ebp + 0x18], eax
mov al, byte [ebp + 0x1b]
mov byte [ebp - 0x2c], al
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.10012790
lea eax, [ebp - 0x2c]
push eax
call fcn.100019b4
push esi
lea ecx, [ebp - 0x2c]
call fcn.1000b05c
test eax, eax
jne 0x100077b2
push 0x80040600
jmp 0x1000770b
push edi
mov edi, dword [ebp + 0x14]
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x2c]
push ecx
push eax
lea eax, [ebp + 8]
push eax
mov ecx, edi
call fcn.10003818
jmp 0x10007828
mov al, byte [ebp + 0x1b]
mov byte [ebp - 0x1c], al
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x18]
push eax
mov byte [ebp - 4], 2
call fcn.10012790
test al, al
je 0x1000781a
lea eax, [ebp - 0x1c]
push eax
call fcn.100019b4
push esi
lea ecx, [ebp - 0x1c]
call fcn.1000b05c
test eax, eax
je 0x1000781a
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea eax, [ebp + 8]
push eax
mov ecx, edi
call fcn.10003818
lea ecx, [ebp - 0x1c]
push 1
mov byte [ebp - 4], 1
call fcn.10004d84
lea eax, [ebp + 0x18]
push eax
call fcn.1000ae94
test eax, eax
jne 0x100077cb
mov eax, dword [ebp + 0x18]
cmp word [eax], bx
pop edi
je 0x10007845
push 0x80040600
jmp 0x10007867
push 1
lea ecx, [ebp - 0x2c]
call fcn.10004d84
push 1
lea ecx, [ebp - 0x3c]
call fcn.10004d84
mov al, 1
jmp 0x10007889
cmp byte [ebp + 0x18], bl
jne 0x1000787d
push 0x80040601
lea ecx, [ebp - 0x4c]
call fcn.10007044
push 0x1000e889
lea eax, [ebp - 0x4c]
push eax
call fcn.10001fc8
push 1
lea ecx, [ebp - 0x3c]
call fcn.10004d84
xor al, al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14
Function at 0x10008580
Capabilities:
Accept command line arguments

Disassembly:
lea eax, [esi + 8]
movzx ecx, word [eax]
cmp cx, 2
jne fcn.10008580
push dword [0x1001e7a8]
push dword [0x1001b3d8]
push dword [esi]
push dword [ebp + 8]
push 0x40
push ebx
push dword [eax + 4]
push esi
push edi
push 0
push dword [0x1001b214]
call fcn.10013268
jmp 0x100085af
cmp cx, 0x17
jne 0x100085ce
push dword [0x1001e7a8]
push dword [0x1001b3d8]
push dword [esi]
push dword [ebp + 8]
push 0x40
push ebx
push eax
push 0x1001b0c0
push esi
push edi
push 0
push dword [0x1001b214]
call sub.KERNEL32.dll_GetCommandLineA
test eax, eax
jne 0x100085c3
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp eax, 0x3e5
jne 0x100085c3
inc dword [ebp - 8]
push dword [0x1003210c]
call fcn.1000eeff
add esi, 0x98
dec dword [ebp - 0xc]
jne 0x10008524
mov esi, dword [ebp - 0x10]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [0x1001b0ec]
jb fcn.10007d64
mov edi, dword [ebp - 8]
jmp 0x10008601
push 1
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SleepEx]
cmp dword [0x10032088], edi
jb 0x100085f7
mov eax, esi
imul eax, eax, 0x98
test esi, esi
mov ecx, dword [eax + 0x1003211c]
mov dword [eax + 0x1001b0f0], ecx
jbe 0x1000864f
dec esi
je 0x1000864f
mov eax, esi
imul eax, eax, 0x98
add eax, 0x1001b298
mov ecx, dword [eax - 0x9c]
mov edx, dword [eax]
cmp ecx, edx
ja 0x1000863f
mov ecx, edx
mov dword [eax - 0x98], ecx
dec esi
sub eax, 0x98
test esi, esi
ja 0x10008631
mov eax, dword [0x1001b0ec]
mov dword [0x1001b0f0], eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10009af0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 4]
lea ecx, [ebp - 0xc]
push eax
call fcn.1000b554
test al, al
jne 0x1000ae4f
mov eax, esi
pop esi
leave
ret
Function at 0x1000a198
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ecx]
test edx, edx
jne fcn.10004ccc
mov eax, 0x80004005

Function at 0x1000ae94
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ebx]
cmp eax, 0x80000001
jne fcn.1000ae94
lea eax, [ebp - 0x248]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
jne 0x1000aeef
lea eax, [ebp - 0x23c]
push eax
mov eax, dword [ebx + 4]
push esi
push 0
push dword [eax*4 + 0x1001e87c]
push dword [ebp - 0x248]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push dword [ebp - 0x248]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x1000aeef
lea eax, [ebp - 0x24c]
push eax
push esi
push edi
push 0x1000130f
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000aee3
and dword [ebp - 0x240], eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x258]
push eax
push 0
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x240]
mov dword [ebp - 0x26c], 0x28
push dword [ebp - 0x24c]
mov dword [ebp - 0x264], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1000aed7
inc dword [ebp - 0x240]
cmp dword [ebp - 0x258], 1
jne 0x1000ad6d
movzx eax, word [ebp - 0x2c]
sub eax, 0x30
push eax
mov dword [ebp - 0x260], eax
call fcn.1000ee36
test al, al
je 0x1000ad6d
mov eax, dword [ebp - 0x234]
lea edi, [ebp - 0x234]
test ax, ax
jne 0x1000aeb6
test dword [ebx - 4], 0xc
setne byte [ebp - 0x254]
cmp byte [ebp - 0x235], 0
jne 0x1000ae1f
cmp byte [ebp - 0x254], 0
mov byte [ebp - 0x235], 0
je 0x1000ae26
mov byte [ebp - 0x235], 1
push 0x210
call fcn.10004c88
test eax, eax
pop ecx
je 0x1000aed0
push dword [ebp - 0x254]
mov ecx, eax
push dword [ebp - 0x260]
push edi
call fcn.10005138
mov edi, eax
test edi, edi
je 0x1000ad6d
mov ecx, dword [ebp - 0x268]
push edi
push dword [ebp - 0x250]
call fcn.10004605
test al, al
jne 0x1000ae88
push edi
push 0x7fffffff
push dword [ebp - 0x250]
call dword [fcn.1000f888]
cmp eax, 0xffffffff
jne 0x1000ad6d
push edi
call fcn.10008c60
pop ecx
jmp 0x1000ad6d
lea ecx, [ebp - 0x23c]
push ecx
mov ecx, dword [ebx + 4]
push esi
push 0
push dword [ecx*4 + 0x1001e87c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
jmp 0x1000ad3d
cmp ax, 0x5c
je 0x1000aec6
cmp ax, 0x20
jne 0x1000adf8
inc edi
inc edi
mov ax, word [edi]
jmp 0x1000adef
xor edi, edi
jmp 0x1000ae4f
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 0xc
dec dword [ebp - 0x244]
jne 0x1000acec
mov eax, dword [ebp - 0x25c]
test eax, eax
pop edi
pop esi
pop ebx
je 0x1000af13
mov cl, byte [ebp - 0x235]
mov byte [eax], cl
mov ecx, dword [ebp - 4]
call fcn.10013344
leave
ret 8
Function at 0x1000af9c
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi], 0
je fcn.1000f014
push dword [ebp + 8]
call fcn.1000ed9c
test al, al
jne fcn.1000f014
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
inc esi
lea eax, [esi + esi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je fcn.1000f014
push esi
push ebx
push dword [ebp + 8]
mov ecx, edi
call 0x100102d8
push ebx
push 0x7fffffff
push dword [edi]
call dword [fcn.1000f888]
cmp eax, 0xffffffff
je 0x1001020b
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov dword [ebx + 0x18], esi
xor eax, eax
mov dword [ebp - 0x508], esi
mov ecx, 0xac
lea edi, [ebp - 0x504]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x520]
push eax
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x50c]
mov dword [ebp - 0x520], esi
call fcn.10004f60
test eax, eax
jl 0x10010270
push 0x208
push 0x2b4
lea eax, [ebp - 0x508]
push eax
push esi
push dword [ebp - 0x520]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push dword [ebp - 0x520]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
cmp word [ebp - 0x4fc], si
je 0x10010285
lea eax, [ebp - 0x4fc]
mov dword [ebp - 0x50c], eax
push 0x80
lea eax, [ebx + 0x20]
push eax
push dword [ebp - 0x50c]
call dword [pe_dos_header]
cmp dword [ebx + 0x18], 1
jne 0x100102a9
mov eax, dword [ebp - 0x51c]
inc dword [eax + 0x14]
mov esi, dword [ebp - 0x51c]
add ebx, 0x128
xor edi, edi
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x518], eax
jb fcn.100013b0
mov eax, dword [ebp - 0x554]
cmp eax, edi
je 0x100102d8
mov ecx, dword [ebp - 0x518]
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x518], eax
je 0x1001035d
xor eax, eax
inc eax
cmp dword [esi + 0x14], edi
mov dword [ebp - 0x528], eax
jne 0x1001035d
test byte [ebp - 0x50f], 0x40
je 0x1001035d
test byte [ebp - 0x510], 1
mov dword [ebx], 0x128
mov ecx, dword [0x10032020]
mov dword [ebx + 4], edi
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], ecx
lea edi, [ebx + 8]
mov esi, fcn.1000866c
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, 0x105e
je 0x10010333
test byte [ebp - 0x510], 6
jne 0x10010333
dec eax
push 0x80
add ebx, 0x20
push ebx
push eax
push dword [0x10031f64]
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [ebp - 0x51c]
and dword [ebp - 0x528], 0
mov dword [eax + 0x14], 1
mov eax, dword [ebp - 0x528]
jmp fcn.1000aa9a