joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006f30
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x101767c]
and word [ebp - 0xe], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 4], eax
mov ax, word [0x1017030]
push edi
push 5
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
push eax
push 0xe
mov edi, 0x400
push edi
call esi
mov ax, word [ebp - 0x10]
and word [ebp - 0xe], 0
push 5
mov word [0x1017030], ax
lea eax, [ebp - 0x10]
push eax
push 0x12
push edi
mov word [ebp - 0x10], 0x31
call esi
lea eax, [ebp - 0x10]
push eax
call fcn.0100e946
pop ecx
push 5
mov dword [0x1017034], eax
lea eax, [ebp - 0x10]
push eax
push 0xbd
push dword [0x1018534]
mov word [ebp - 0x10], 0x30
call dword [sym.imp.USER32.dll_LoadStringW]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp word [ebp - 0x10], 0x30
pop edi
setne al
pop esi
mov dword [0x1017948], eax
xor eax, eax
inc eax
call fcn.0100e270
leave
ret

Function at 0x1007253
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x101767c]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
push 0x80
lea eax, [ebp - 0x104]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push dword [0x10182a8]
mov ebx, eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [0x1017974]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 2
je 0x10072ed
lea eax, [ebp - 0x10c]
push eax
push ebx
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPointW]
mov eax, dword [ebp - 0x114]
sub eax, dword [ebp - 0x10c]
jmp 0x100731c
test al, 1
je 0x100731a
lea eax, [ebp - 0x10c]
push eax
push ebx
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPointW]
mov eax, dword [ebp - 0x114]
sub eax, dword [ebp - 0x10c]
cdq
sub eax, edx
sar eax, 1
jmp 0x100731c
xor eax, eax
push 0
push ebx
lea ecx, [ebp - 0x104]
push ecx
lea ecx, [ebp - 0x11c]
push ecx
push 2
push 0
push eax
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100e270
leave
ret 8
Function at 0x10075f4
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, 0xf4240
cmp ebx, ecx
push esi
push edi
mov eax, ebx
jle 0x100760c
mov eax, ecx
mov esi, dword [ebp + 8]
xor edi, edi
cmp eax, edi
lea ecx, [eax + esi]
jle 0x100762b
dec eax
shr eax, 0xc
inc eax
mov dl, byte [ecx]
sub ecx, 0x1000
dec eax
mov byte [ebp + 0xf], dl
jne 0x100761d
mov eax, dword [0x10179a4]
cmp eax, edi
je 0x1007659
push 0xffffffffffffffff
push eax
mov dword [0x101799c], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x10179a4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x10179a4], edi
push 8
push 0x42
mov dword [0x101799c], edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, edi
je 0x1007691
lea ecx, [ebp + 0xc]
push ecx
push edi
push eax
push 0x100758d
push edi
push edi
mov dword [eax], esi
mov dword [eax + 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10179a4], eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x100776f
Capabilities:
Get memory capacity

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
push dword [0x101825c]
call fcn.010076bd
mov esi, eax
mov eax, dword [0x101797c]
add esi, 4
test eax, eax
je 0x1007896
cmp dword [0x1017984], 0
je 0x1007877
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edi, dword [ebp - 0x14]
mov eax, 0x100000
cmp edi, eax
jge 0x10077c0
mov edi, eax
push dword [0x1017984]
push dword [0x101825c]
call fcn.010076bd
add eax, edi
cmp esi, eax
jle 0x1007805
cmp dword [ebp + 0x10], 0
jne 0x10078fd
push dword [0x1017984]
push dword [0x101825c]
call fcn.010076bd
add edi, eax
push edi
push dword [0x101825c]
call fcn.0100769d
mov ebx, eax
lea esi, [edi + 4]
push dword [0x101797c]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0x2042
push esi
push dword [0x101797c]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x10078fd
mov dword [0x101797c], eax
mov eax, dword [0x1017984]
cmp eax, ebx
mov dword [0x1017980], ebx
jle 0x1007859
mov eax, ebx
mov dword [0x1017984], eax
cmp dword [0x1017988], eax
jle 0x1007866
mov dword [0x1017988], eax
xor esi, esi
inc esi
call fcn.01007574
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x101797c]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edi, dword [ebp - 0x14]
mov eax, 0x100000
cmp edi, eax
jge 0x10078ae
mov edi, eax
cmp esi, edi
jle 0x10078c9
cmp dword [ebp + 0x10], 0
jne 0x10078fd
push edi
push dword [0x101825c]
call fcn.0100769d
mov ebx, eax
lea esi, [edi + 4]
push esi
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
xor ecx, ecx
cmp eax, ecx
mov dword [0x101797c], eax
jne 0x1007843
mov dword [0x1017984], ecx
mov dword [0x1017980], ecx
mov dword [0x1017988], ecx
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x1007869
push 0x6e
push 0x65
push 0x30
push dword [0x1018534]
push dword [0x101852c]
call fcn.010054be
add esp, 0x14
jmp 0x1007869
Function at 0x100796a
Capabilities:
Capture microphone audio

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test ax, ax
jne 0x1007984
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0100792c
jmp 0x10079f1
push ebx
push esi
mov esi, eax
mov ecx, dword [ebp + 8]
push edi
push 0
pop edx
and esi, 7
imul esi, esi, 0x2b11
test al, 0x10
setne dl
and al, 8
push 8
pop ebx
push 3
mov word [ecx], 1
mov dword [ecx + 4], esi
inc edx
neg al
mov edi, edx
mov word [ecx + 2], di
sbb eax, eax
and eax, 8
add eax, 8
mov word [ecx + 0xe], ax
movzx eax, ax
add eax, 7
cdq
idiv ebx
imul eax, edi
mov word [ecx + 0xc], ax
movzx eax, ax
imul eax, esi
mov dword [ecx + 8], eax
xor eax, eax
push eax
push eax
push ecx
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WINMM.dll_waveInOpen]
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
pop ebp
ret 0xc

Function at 0x1007a9c
Capabilities:
Capture microphone audio

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1017994]
push ebx
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
push esi
mov esi, dword [ebp + 8]
test byte [esi + 0x10], 2
mov dword [ebp - 4], ecx
je 0x1007ae2
cmp ecx, ebx
push 0x20
push esi
je 0x1007ace
push eax
call dword [sym.imp.WINMM.dll_waveInUnprepareHeader]
jmp 0x1007ada
push dword [0x1017990]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
cmp eax, ebx
jne 0x1007bcf
cmp dword [ebp + 0xc], ebx
je 0x1007aee
xor eax, eax
jmp 0x1007bcf
mov eax, dword [0x1018250]
push edi
mov edi, dword [0x10182ac]
sub edi, dword [0x1018254]
cmp eax, edi
jae 0x1007b06
mov edi, eax
cmp edi, ebx
jne 0x1007b12
or eax, 0xffffffff
jmp 0x1007bce
xor eax, eax
cmp edi, 1
sete al
push 0x20
push esi
mov dword [ebp + 8], eax
xor eax, eax
cmp dword [ebp + 8], ebx
setne al
add eax, edi
mov dword [esi + 4], eax
mov eax, dword [0x1018254]
mov ecx, dword [0x101797c]
add ecx, eax
cmp dword [ebp - 4], ebx
mov dword [esi], ecx
mov dword [esi + 8], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
je 0x1007b5e
push dword [0x1017994]
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
jmp 0x1007b6a
push dword [0x1017990]
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
cmp eax, ebx
jne 0x1007bce
cmp dword [ebp + 8], ebx
je 0x1007b76
dec dword [esi + 4]
cmp dword [ebp - 4], ebx
push 0x20
push esi
je 0x1007b8c
push dword [0x1017994]
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
jmp 0x1007b98
push dword [0x1017990]
call dword [sym.imp.WINMM.dll_waveOutWrite]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x1007bc6
cmp dword [ebp - 4], ebx
push 0x20
push esi
je 0x1007bb5
push dword [0x1017994]
call dword [sym.imp.WINMM.dll_waveInUnprepareHeader]
jmp 0x1007bc1
push dword [0x1017990]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
mov eax, dword [ebp + 8]
jmp 0x1007bce
add dword [0x1018254], edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1008636
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push esi
xor eax, eax
inc eax
xor esi, esi
cmp dword [0x1017990], esi
push edi
mov edi, eax
jne 0x10087b9
push ebx
push dword [0x1017988]
push dword [0x101825c]
call fcn.010076bd
push eax
push dword [0x101825c]
call fcn.0100769d
mov dword [0x1017988], eax
mov eax, dword [0x101825c]
movzx ecx, word [eax + 0xc]
push ecx
push eax
call fcn.0100769d
mov edx, dword [0x1017984]
mov ecx, dword [0x1017988]
mov ebx, edx
sub ebx, ecx
cmp ebx, eax
pop ebx
jge 0x100869d
sub ecx, eax
mov dword [0x1017988], ecx
cmp ecx, esi
jge 0x10086a9
xor ecx, ecx
mov dword [0x1017988], ecx
cmp edx, ecx
je 0x100878e
call fcn.01007def
push dword [0x1017980]
push dword [0x101825c]
call fcn.010076bd
push esi
push dword [0x101825c]
mov dword [0x10182ac], eax
push 0x1017990
call fcn.01007bda
cmp eax, esi
je 0x10086f0
cmp eax, 0x20
mov dword [0x1017990], esi
jne 0x10086f8
push 0x7c
jmp 0x1008715
cmp dword [0x1017990], esi
jne 0x100872f
call dword [sym.imp.WINMM.dll_waveInGetNumDevs]
test eax, eax
jne 0x1008713
call dword [sym.imp.WINMM.dll_waveOutGetNumDevs]
test eax, eax
jne 0x1008713
push 0x95
jmp 0x1008715
push 0x71
push 0x65
push 0x30
push dword [0x1018534]
push dword [0x101852c]
call fcn.010054be
add esp, 0x14
jmp 0x100878e
cmp dword [0x10179a0], esi
jne 0x1008757
mov eax, dword [0x1017988]
push 0x10
mov dword [0x101798c], eax
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
setl cl
mov dword [0x10179a0], ecx
mov eax, dword [0x1017988]
push dword [0x101826c]
mov dword [0x1018258], eax
call fcn.010084c9
test eax, eax
jne 0x10087b7
push dword [0x1017990]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov dword [0x1017990], esi
mov dword [0x1018748], esi
mov dword [0x1018768], esi
push 1
call fcn.01007e97
push dword [0x101852c]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x10087b5
push esi
push esi
push 0x10
push dword [0x101852c]
call dword [sym.imp.USER32.dll_PostMessageW]
xor edi, edi
mov eax, edi
pop edi
pop esi
ret
Function at 0x10087c1
Capabilities:
Capture microphone audio

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [0x101824c]
push dword [0x101825c]
call fcn.0100770b
push 0x3e8
push dword [0x101825c]
mov esi, eax
add esi, dword [0x1017988]
call fcn.0100770b
push 0x7f02
xor ebx, ebx
push ebx
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov edi, dword [sym.imp.USER32.dll_SetCursor]
push eax
call edi
push dword [0x1017988]
mov dword [ebp - 4], eax
push dword [0x101825c]
call fcn.010076bd
cmp dword [ebp + 8], ebx
mov dword [0x1018254], eax
jne 0x1008853
push dword [0x1018264]
push dword [0x101825c]
call fcn.0100770b
push eax
push dword [0x101825c]
mov dword [0x1018250], eax
call fcn.010076bd
mov dword [0x1018250], eax
mov eax, dword [0x1017984]
cmp esi, eax
jge 0x100885e
mov esi, eax
push ebx
push ebx
push esi
call fcn.0100776f
test eax, eax
je 0x10088a9
mov eax, dword [0x1017980]
sub eax, dword [0x1017988]
push eax
push dword [0x101825c]
call fcn.010076bd
mov ecx, dword [0x1018254]
add ecx, eax
cmp dword [ebp + 8], ebx
mov dword [0x10182ac], ecx
je 0x10088de
push ebx
push dword [0x1018280]
mov dword [0x1018250], eax
call fcn.01007a9c
test eax, eax
je 0x1008907
cmp esi, dword [0x1017984]
jle 0x1008999
mov ecx, dword [0x1017988]
mov eax, dword [ebp - 8]
add eax, ecx
cmp esi, eax
jl 0x1008999
mov eax, esi
sub eax, ecx
imul eax, eax, 0x4b
cdq
push 0x64
pop esi
idiv esi
add eax, ecx
mov esi, eax
jmp 0x1008853
xor esi, esi
cmp dword [0x1018248], ebx
jbe 0x1008907
xor eax, eax
push ebx
push dword [eax*4 + 0x1018280]
call fcn.01007a9c
cmp eax, ebx
jne 0x100893f
inc esi
movzx eax, si
cmp eax, dword [0x1018248]
jb 0x10088ea
push dword [ebp - 4]
call edi
mov eax, dword [0x1017988]
mov dword [0x1018258], eax
call fcn.01005658
push dword [0x1017994]
call dword [sym.imp.WINMM.dll_waveInStart]
test eax, eax
je 0x1008962
push dword [0x1017994]
call dword [sym.imp.WINMM.dll_waveInReset]
push ebx
call fcn.0100562b
jmp 0x10089b8
cmp eax, 0xffffffff
jne 0x1008950
cmp si, bx
jne 0x1008907
call fcn.01007def
jmp 0x1008994
cmp eax, 7
jne 0x100892b
cmp si, 1
ja 0x1008907
call fcn.01007def
jmp 0x100899e
push 1
call fcn.01007e97
cmp dword [ebp + 8], ebx
je 0x1008984
push ebx
push 0x32
push 1
push dword [0x101852c]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x1018268], eax
mov dword [0x1018754], 0xd1
mov dword [0x101799c], ebx
xor eax, eax
inc eax
jmp 0x10089ba
push dword [ebp - 4]
call edi
push 0x6e
push 0x65
push 0x30
push dword [0x1018534]
push dword [0x101852c]
call fcn.010054be
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100a109
Capabilities:
Delete file
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
cmp word [0x1018040], 0
mov eax, dword [0x101767c]
mov dword [ebp - 4], eax
jne 0x100a162
push esi
mov esi, 0x1018040
push esi
push 0
push 0x1001754
push 0x1001750
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
mov ecx, dword [ebp - 4]
call fcn.0100e270
leave
ret

Function at 0x100a274
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x101767c]
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
lea edx, [ebp - 0xd0]
push edx
push 1
push 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
mov dword [ebp - 0xdc], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100a2ff
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0xd8]
push eax
push 0
push 0
push dword [ebp - 0xd0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xd0]
mov dword [ebp - 0xd4], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xd4], 0
jne 0x100a2ff
cmp dword [ebp - 0xd8], 1
je 0x100a303
xor eax, eax
jmp 0x100a336
push esi
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x100a32d
test edi, edi
je 0x100a32d
lea eax, [ebp - 0xcc]
push edi
push eax
call fcn.0100e956
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0100e270
leave
ret 0x10

Function at 0x100a3d2
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 8]
push 0x100a3a9
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x100a3fa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
ret 4
Function at 0x100a403
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
push 2
xor edi, edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
je 0x100a45c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 2
push edi
push 0x1001798
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100a480
lea eax, [ebp - 4]
push eax
push 2
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x100a480
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x14]
push 1
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x100a484
xor eax, eax
jmp 0x100a490
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 0x10

Function at 0x100bb3c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 8]
push eax
mov edi, 0x20019
push edi
push 0
push 0x1001848
push 0x80000001
call esi
mov ebx, eax
test ebx, ebx
jne 0x100bbc2
cmp dword [ebp + 8], eax
je 0x100bb82
lea eax, [ebp - 4]
push eax
push edi
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call esi
mov ebx, eax
jmp 0x100bb88
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
test ebx, ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x100bbbd
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp + 8], 0
mov ebx, eax
je 0x100bbbd
push dword [ebp - 4]
call esi
push dword [ebp - 8]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14
Function at 0x100bbd0
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor esi, esi
push esi
lea eax, [ebp - 0xc]
push eax
push esi
mov ebx, 0x20006
push ebx
push esi
push esi
push esi
push 0x1001848
push 0x80000001
call edi
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x100bc6d
cmp dword [ebp + 8], esi
je 0x100bc21
push esi
lea eax, [ebp - 8]
push eax
push esi
push ebx
push esi
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 0xc]
call edi
mov dword [ebp - 4], eax
jmp 0x100bc27
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x100bc68
cmp dword [ebp + 0x14], esi
je 0x100bc4f
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x100bc5b
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp dword [ebp + 8], esi
mov dword [ebp - 4], eax
je 0x100bc68
push dword [ebp - 8]
call edi
push dword [ebp - 0xc]
call edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x100bd9d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
xor edi, edi
mov dword [eax], edi
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
lea eax, [ebp - 0x18]
push eax
push 0x20019
push edi
push 0x10018d0
push 0x80000001
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call ebx
test eax, eax
je 0x100bde0
xor eax, eax
jmp 0x100bf16
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x1c]
push eax
push edi
push edi
push edi
push 0x1001978
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x100bf13
push dword [ebp - 0x1c]
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, edi
mov dword [ebp - 8], eax
je 0x100bf13
lea ecx, [ebp - 0x1c]
push ecx
push eax
push edi
push edi
push 0x1001978
push dword [ebp - 0x18]
call esi
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x100bea4
lea eax, [ebp - 0x14]
push eax
push 0x20019
push edi
push 0x1001918
push 0x80000001
call ebx
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x100bea4
lea eax, [ebp - 4]
push eax
push edi
push edi
push edi
push dword [ebp - 8]
push dword [ebp - 0x14]
call esi
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x100be9b
cmp dword [ebp - 4], 0xe
jb 0x100be9b
push dword [ebp - 4]
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x100be9b
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x10]
push edi
push edi
push dword [ebp - 8]
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0xc], eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push eax
call ebx
push dword [ebp - 8]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [ebp - 0x10]
cmp edx, edi
je 0x100bf13
cmp dword [ebp - 0xc], edi
jne 0x100bf01
push dword [ebp - 4]
push edx
call fcn.0100bd52
test eax, eax
je 0x100bf01
xor eax, eax
inc eax
cmp word [edx], ax
je 0x100bef2
movzx edi, word [edx + 0x10]
mov ecx, dword [ebp + 0xc]
add edi, 0x12
mov dword [ecx], edi
mov ecx, dword [ebp + 8]
mov dword [ecx], edx
jmp 0x100bf15
push edx
call esi
push eax
call ebx
push dword [ebp - 0x10]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x100e3b7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x1001ce0
call fcn.0100f5f4
mov edi, 0x94
mov eax, edi
call fcn.0100f750
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x1017dcc], ecx
mov eax, dword [esi + 4]
mov dword [0x1017dd8], eax
mov edx, dword [esi + 8]
mov dword [0x1017ddc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x1017dd0], esi
cmp ecx, 2
je 0x100e417
or esi, 0x8000
mov dword [0x1017dd0], esi
shl eax, 8
add eax, edx
mov dword [0x1017dd4], eax
cmp word [0x1000000], 0x5a4d
jne 0x100e453
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x100e453
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x100e46c
cmp ecx, 0x20b
je 0x100e459
and dword [ebp - 0x1c], 0
jmp 0x100e480
cmp dword [eax + 0x84], 0xe
jbe 0x100e453
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x100e47a
cmp dword [eax + 0x74], 0xe
jbe 0x100e453
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 0
call fcn.0100f596
pop ecx
test eax, eax
jne 0x100e4ad
cmp dword [0x1017dbc], 1
jne 0x100e49a
call fcn.0100ed72
push 0x1c
call fcn.0100eb85
push 0xff
call fcn.0100e9e4
pop ecx
pop ecx
and dword [ebp - 4], 0
call fcn.0100f3c6
test eax, eax
jge 0x100e4c2
push 0x1b
call fcn.0100e388
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1018af4], eax
call fcn.0100f299
mov dword [0x1017db4], eax
call fcn.0100f1f0
test eax, eax
jge 0x100e4e8
push 8
call fcn.0100e388
pop ecx
call fcn.0100ef96
test eax, eax
jge 0x100e4f9
push 9
call fcn.0100e388
pop ecx
call fcn.0100ea3e
mov dword [ebp - 0x28], eax
test eax, eax
je 0x100e50c
push eax
call fcn.0100e388
pop ecx
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0100ef28
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x100e52e
movzx eax, word [ebp - 0x40]
jmp 0x100e531
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x1000000
call fcn.01003e12
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x100e552
push esi
call fcn.0100eb1e
call fcn.0100eb56
jmp 0x100e584
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x7c]
call fcn.0100f62f
ret