joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100403f
Capabilities:
Terminate process

Disassembly:
test byte [ebp - 0x3c], 1
jne 0x100e769
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call fcn.01002770
mov dword [0x101b028], eax
cmp dword [0x101b01c], 0
jne 0x100e7ba
push eax
call dword [sym.imp.msvcrt.dll_exit]
nop
nop
nop
nop
nop
mov edi, edi
push esi
xor esi, esi
call fcn.01003d94
mov dword [0x101b018], eax
test eax, eax
jl 0x1002c88
call fcn.01002bb3
inc esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0x1002ca4
call dword [sym.imp.USER32.dll_UnregisterClassW]
mov eax, esi
pop esi
ret 4
call fcn.01003eeb
push 0x58
push 0x1004178
call fcn.01002712
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, 0x101b090
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x100e71a
xor esi, esi
inc esi
mov eax, dword [0x101b060]
cmp eax, esi
je 0x100e738
mov eax, dword [0x101b060]
test eax, eax
jne 0x10041af
mov dword [0x101b060], esi
push 0x1004170
push 0x1004164
call fcn.01004016
pop ecx
pop ecx
test eax, eax
jne 0x100e7de
mov eax, dword [0x101b060]
cmp eax, esi
jne 0x10040f0
push 0x1004160
push 0x100413c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x101b060], 2
test ebx, ebx
jne 0x10040fc
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x101b7a8], 0
jne 0x100e745
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 0x10041a0
cmp al, 0x22
je 0x100e772
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
jne 0x100e782
inc esi
jmp 0x1004110
test al, al
je 0x10041ba
cmp dword [ebp - 0x1c], 0
je 0x10041ba
jmp 0x100411d
mov dword [0x101bb00], esi
jmp 0x10040cc
mov al, byte [esi]
test al, al
je 0x1002c36
cmp al, 0x20
ja 0x1002c36
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10041ba
cmp eax, esi
jne 0x100e728
xor esi, esi
inc esi
mov ebx, esi
jmp 0x1004093
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100407e
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10040cc
push 0x101b7a8
call fcn.01010dc6
pop ecx
test eax, eax
je 0x1004109
push 0
push 2
push 0
call dword [0x101b7a8]
jmp 0x1004109
movzx eax, word [ebp - 0x38]
jmp 0x1002c43
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
jmp 0x1004125
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1004138
cmp dword [0x101bb00], 0
jne 0x100e7c9
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x101b028]
jmp 0x100e7ea
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01002757
ret
Function at 0x1004267
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [0x101b00c], esi
jne 0x10042be
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x1002c6f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x101b00c], eax
cmp eax, esi
je 0x100e4ec
push 0xffffffffffffffff
push dword [0x101b014]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x101b014]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [0x101b018], esi
jl 0x100e50a
pop esi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x100e500
and eax, 0xffff
or eax, 0x80070000
mov dword [0x101b018], eax
jmp 0x10042b2
mov eax, dword [0x101b00c]
cmp eax, esi
je 0x10042be
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x101b00c], esi
jmp 0x10042be

Function at 0x100681f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x101b004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, ecx
inc eax
cmp dword [esi + 0x2c], 0
jne 0x1006933
push edi
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x105
push edi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x420], eax
cmp eax, edi
ja 0x100ed16
lea eax, [ebp - 0x41c]
push eax
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.010021cb
test eax, eax
jl 0x1006932
mov ecx, dword [ebp - 0x420]
cmp word [ebp + ecx*2 - 0x210], 0x5c
je 0x10068c3
push 0x1006994
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.01002436
test eax, eax
jl 0x1006932
push 0x1006980
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.01002436
test eax, eax
jl 0x1006932
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x2c], eax
test eax, eax
je 0x100ed20
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1006970
push eax
call edi
push 0x100695c
push dword [esi + 0x2c]
mov dword [esi + 0x30], eax
call edi
push 0x1006948
push dword [esi + 0x2c]
mov dword [esi + 0x34], eax
call edi
cmp dword [esi + 0x30], 0
mov dword [esi + 0x38], eax
je 0x1006940
cmp dword [esi + 0x34], 0
je 0x1006940
test eax, eax
je 0x1006940
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.010020d4
leave
ret
mov eax, 0x8007007f
jmp 0x1006932
mov eax, 0x8000ffff
jmp 0x1006932
mov eax, 0x80070485
jmp 0x1006932
Function at 0x10071f8
Capabilities:
Identify system language via api

Disassembly:
push 0x2c
mov eax, 0x101608c
call fcn.010039dd
lea ecx, [ebp - 0x34]
call sub.wbemcomn.dll_public:_void___thiscall_WString::constructor_void_
and dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
push 0
call fcn.0100758b
test eax, eax
jl 0x100722c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.010072a7
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx esi, ax
mov eax, 0x409
mov edi, 0x1007298
cmp ax, si
jne 0x100e4b4
and esi, 0x3ff
push esi
push edi
lea eax, [ebp - 0x30]
push 8
push eax
call fcn.01001451
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0100758b
mov esi, eax
test esi, esi
jl 0x1007280
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.010072a7
mov esi, eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
call sub.wbemcomn.dll_private:_void___thiscall_WString::DeleteString_unsigned_short_int__
mov eax, esi
call fcn.01002b9f
ret
push 9
push edi
lea eax, [ebp - 0x20]
push 8
push eax
call fcn.01001451
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0100758b
test eax, eax
jl 0x1007248
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.010072a7
jmp 0x1007248
Function at 0x100734c
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push 0x14
mov eax, 0x1015a95
call fcn.010026dd
mov esi, ecx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x100d864
lea eax, [ebp - 0x18]
push eax
push 0x1007430
push 1
push ebx
push 0x1007440
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
cmp edi, ebx
jl 0x1007427
push dword [esi + 4]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x100d86e
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
cmp edi, ebx
jl 0x100741e
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
lea edi, [ebp - 0x14]
push edi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ecx
call dword [edx + 0xc]
mov edi, eax
cmp edi, ebx
jl 0x100d8db
push ebx
push ebx
push ebx
push 3
push 4
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x14]
call fcn.010074cf
mov edi, eax
cmp edi, ebx
jl 0x100d878
mov byte [ebp - 4], bl
cmp dword [ebp - 0x10], ebx
je 0x1007400
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.01007455
mov eax, edi
call fcn.01001390
ret 4
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax]
jmp 0x10073ef
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax]
jmp 0x1007400
mov eax, 0x80041008
jmp 0x1007416
mov edi, 0x80041006
jmp 0x10073a9
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x100d940
push dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x100741e
push 0xffffffffffffffff
call sub.wbemcomn.dll_class_CMemoryLog____stdcall_GetMemLogObject_void_
mov ecx, eax
call sub.wbemcomn.dll_public:_void___thiscall_CMemoryLog::Write_long_int_
mov eax, dword [section..data]
cmp eax, section..data
je 0x10073ef
test byte [eax + 0x1c], 1
je 0x10073ef
cmp byte [eax + 0x19], 2
jb 0x10073ef
push edi
push dword [ebp - 0x10]
push 0x101023c
push 0xb
jmp 0x100d930
push 0x100d940
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x100741e
push 0xffffffffffffffff
call sub.wbemcomn.dll_class_CMemoryLog____stdcall_GetMemLogObject_void_
mov ecx, eax
call sub.wbemcomn.dll_public:_void___thiscall_CMemoryLog::Write_long_int_
mov eax, dword [section..data]
cmp eax, section..data
je 0x10073ef
test byte [eax + 0x1c], 1
je 0x10073ef
cmp byte [eax + 0x19], 2
jb 0x10073ef
push edi
push dword [ebp - 0x10]
push 0x101023c
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01010852
jmp 0x10073ef
Function at 0x100791d
Capabilities:
Identify system language via api

Disassembly:
lea eax, [ebp - 0x30]
push eax
call esi
push 8
pop eax
push dword [ebp + 0x10]
mov word [ebp - 0x30], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x100dc4f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 0x82
lea edx, [ebp - 0x30]
push edx
push 0x1007900
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call edi
cmp esi, ebx
jl 0x10079a8
push 1
lea ecx, [ebp - 0x20]
call fcn.010079e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0x10078ec
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.010071e0
cmp esi, ebx
jl 0x10079a8
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
push 3
movzx eax, ax
pop ecx
mov word [ebp - 0x20], cx
mov dword [ebp - 0x18], eax
jmp 0x1007992
push 0x24
mov eax, 0x1015c85
call fcn.010026dd
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x20]
push eax
call esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
mov dword [ebp - 0x10], ebx
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp + 0xc], ebx
je 0x1007854
push 1
lea ecx, [ebp - 0x20]
call fcn.010079e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0x1003984
push eax
call dword [ecx + 0x10]
cmp eax, ebx
jl 0x10079a6
push 3
pop eax
mov word [ebp - 0x20], ax
mov dword [ebp - 0x18], 0x409
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x20]
push edx
push 0x10079d0
push eax
call dword [ecx + 0x10]
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.01007455
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.010071e0
mov eax, esi
call fcn.01001390
ret 0xc
mov esi, 0x80041006
jmp 0x10079a8
Function at 0x1007b05
Capabilities:
Identify system language via api

Disassembly:
push 0x50
mov eax, 0x1015fc0
call fcn.010039dd
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x5c], ecx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x54], esi
call sub.wbemcomn.dll_public:_void___thiscall_WString::constructor_unsigned_short_int___int_
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x58]
mov ebx, eax
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x1007b34
sub eax, ecx
sar eax, 1
mov edi, eax
je 0x1007b63
movzx eax, word [ebx + esi*2]
push eax
call dword [sym.imp.msvcrt.dll_iswxdigit]
pop ecx
test eax, eax
je 0x1007b5b
inc esi
cmp esi, edi
jb 0x1007b46
cmp esi, edi
jb 0x1007c0e
xor eax, eax
mov edx, ebx
test edi, edi
jbe 0x1007c0e
cmp word [edx], 0x30
jne 0x1007b7c
inc eax
inc edx
inc edx
cmp eax, edi
jb 0x1007b6f
cmp eax, edi
jae 0x1007c0e
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1007b89
sub eax, esi
sar eax, 1
cmp eax, 3
ja 0x1007c0e
push 0x10
push 0
push edx
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
movzx esi, ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
cmp cx, si
jne 0x1007c03
movzx eax, ax
movzx eax, ax
push eax
push 0x1007c18
lea eax, [ebp - 0x50]
push 0x20
push eax
call fcn.01001451
mov ecx, dword [ebp - 0x5c]
add esp, 0x10
lea eax, [ebp - 0x50]
push eax
call fcn.01006c60
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
call sub.wbemcomn.dll_private:_void___thiscall_WString::DeleteString_unsigned_short_int__
mov eax, dword [ebp - 0x54]
call fcn.01002b9f
ret 8
or esi, 0x400
movzx eax, si
jmp 0x1007bc6
mov dword [ebp - 0x54], 0x80041001
jmp 0x1007be9
Function at 0x1007f3e
Capabilities:
Create directory

Disassembly:
push 0x10
mov eax, 0x1016a7d
call fcn.01001350
mov dword [ebp - 0x1c], ecx
xor esi, esi
mov ebx, 0x8007000e
mov dword [ebp - 0x14], esi
cmp dword [ebp + 8], esi
je 0x1008046
push 1
call fcn.0100227c
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0x100803c
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call esi
push dword [ebp + 8]
mov edi, eax
call esi
lea esi, [eax + edi + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.010013e0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1007fcd
push dword [ebp - 0x18]
inc edi
push edi
push eax
call fcn.010021cb
mov ebx, eax
test ebx, ebx
jl 0x1008024
push dword [ebp + 8]
push esi
push dword [ebp - 0x14]
call fcn.01002436
mov ebx, eax
test ebx, ebx
jl 0x1008024
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x1008024
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1007ff6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x100f33c
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x1008024
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x44], eax
cmp eax, 0xffffffff
je 0x100f353
cmp dword [ebp - 0x14], 0
je 0x1008033
push dword [ebp - 0x14]
call fcn.010013c0
pop ecx
push dword [ebp - 0x18]
call fcn.010013c0
pop ecx
mov eax, ebx
call fcn.01001390
ret 4
mov ebx, 0x80070057
jmp 0x100803c
call esi
test eax, eax
jle 0x100f34c
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x1007ff6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x100f367
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x1008024

Function at 0x10088ef
Capabilities:
Get geographical location

Disassembly:
push 0x210
mov eax, 0x1016be9
call fcn.010020e6
xor eax, eax
push 0x1fe
mov word [ebp - 0x214], ax
xor ebx, ebx
lea eax, [ebp - 0x212]
push ebx
push eax
call sub.msvcrt.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
push 0x100
lea eax, [ebp - 0x214]
push eax
push 0x1001
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x214]
and esi, 0x3ff
push eax
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, 7
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.010013e0
mov edi, eax
pop ecx
cmp edi, ebx
je 0x1008999
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x21c]
push 0x10089a4
push esi
push edi
call fcn.01001451
add esp, 0x14
mov eax, edi
call fcn.01002126
ret 4
Function at 0x10093ba
Capabilities:
Delete registry value

Disassembly:
push 0x2c
mov eax, 0x10164bd
call fcn.01001350
xor ebx, ebx
mov dword [ebp - 0x14], 0x8007000e
cmp dword [ebp + 8], ebx
je 0x100ecc6
mov eax, 0x10017f4
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], eax
push dword [0x101b514]
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventW]
push ebx
push 2
mov byte [ebp - 4], 1
call esi
push dword [0x101b518]
mov dword [ebp - 0x20], eax
push ebx
push 0x100000
call esi
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x20], ebx
je 0x1009432
cmp eax, ebx
je 0x1009432
push dword [ebp - 0x20]
xor esi, esi
inc esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp eax, esi
jne 0x100970b
cmp dword [ebp + 0xc], ebx
je 0x100969e
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
push ebx
push 0x10002
push dword [0x101b51c]
lea ecx, [ebp - 0x38]
push 0x80000002
mov byte [ebp - 4], 2
call fcn.01002097
test eax, eax
jne 0x100948e
mov edi, dword [ebp - 0x38]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x10095b4
push edi
call esi
push 0x100959c
push edi
call esi
push 0x1009580
push edi
call esi
push 0x100956c
push edi
call esi
lea ecx, [ebp - 0x38]
call fcn.01001f10
push 1
call fcn.0100227c
mov dword [ebp + 0xc], eax
cmp eax, ebx
je 0x1009516
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov byte [ebp - 4], 3
call esi
push dword [ebp + 8]
mov edi, eax
call esi
lea esi, [edi + eax + 8]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.010013e0
mov edi, eax
pop ecx
cmp edi, ebx
je 0x100950d
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0x1009554
push esi
push edi
call fcn.01001451
add esp, 0x14
push 1
push edi
call dword [sym.imp.loadperf.dll_LoadPerfCounterTextStringsW]
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x100ecd2
cmp edi, ebx
je 0x100950d
push edi
call fcn.010013c0
pop ecx
push dword [ebp + 0xc]
call fcn.010013c0
pop ecx
lea ecx, [ebp - 0x38]
call fcn.01001f10
cmp dword [ebp - 0x18], ebx
je 0x1009539
push 0xbb8
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100970b
lea ecx, [ebp - 0x2c]
call fcn.0100187a
lea ecx, [ebp - 0x24]
call fcn.0100187a
mov eax, dword [ebp - 0x14]
call fcn.01001390
ret 8
push dword [ebp + 8]
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, 4
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.010013e0
mov edi, eax
pop ecx
cmp edi, ebx
je 0x100951e
push dword [ebp + 8]
push 0x1009718
push esi
push edi
call fcn.01001451
add esp, 0x10
push 1
push edi
call dword [sym.imp.loadperf.dll_UnloadPerfCounterTextStringsW]
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x100ecf4
cmp edi, ebx
je 0x100951e
push edi
call fcn.010013c0
pop ecx
jmp 0x100951e
mov dword [ebp - 0x14], 0x80004005
jmp 0x1009539
mov dword [ebp - 0x14], 0x80070057
jmp 0x1009549
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1009502
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10096f7
Function at 0x100a247
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
push esi
mov esi, ecx
mov eax, dword [esi + 0x234]
mov ecx, dword [esi + 0x238]
inc eax
inc eax
inc ecx
inc ecx
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push 2
add eax, 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.010013e0
mov edi, dword [ebp + 0xc]
pop ecx
mov dword [edi], eax
test eax, eax
je 0x10100fd
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
add eax, 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.010013e0
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
test eax, eax
je 0x101010e
mov ecx, dword [edi]
mov esi, dword [esi + 4]
lea edx, [ebp - 4]
push edx
push eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 8]
push eax
push ecx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
test esi, esi
jne 0x1010125
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor edx, edx
cmp eax, ecx
ja 0x100a31c
mov ecx, dword [edi]
mov word [ecx + eax*2], dx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
ja 0x100a324
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov byte [ecx + eax], 0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
mov eax, dword [edi]
mov word [eax + ecx*2], dx
jmp 0x100a300
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov byte [ecx + eax], 0
jmp 0x100a313
and dword [ebp + 0x10], eax
push 0x1018e28
lea eax, [ebp + 0x10]
push eax
call sub.msvcrt.dll__CxxThrowException
push dword [edi]
call fcn.010013c0
and dword [edi], 0
and dword [ebp + 0x10], 0
mov dword [esp], 0x1018e28
jmp 0x1010105
push dword [edi]
call fcn.010013c0
and dword [edi], 0
mov edi, dword [ebp + 0x10]
push dword [edi]
call fcn.010013c0
and dword [edi], 0
pop ecx
pop ecx
jmp 0x100a313

Function at 0x100b280
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1010143
push 0
call sym.WMIADAP.exe_public:_unsigned_short_int____thiscall_CHString::GetBuffer_int_
mov esi, dword [esi + 4]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop esi
pop ebp
ret 4
lea ecx, [esi + 0xc]
jmp 0x100b293

Function at 0x1010d7d
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [ecx + eax + 0x18]
test esi, esi
jbe 0x1010dba
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x1010db2
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x1010dbc
inc edx
add eax, 0x28
cmp edx, esi
jb 0x1010da2
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1012194
Capabilities:
Delete file

Disassembly:
push 0xc
mov eax, 0x1016ac1
call fcn.01001350
xor esi, esi
add ecx, 0x40
mov ebx, 0x8007000e
mov dword [ebp - 0x14], esi
call fcn.01012176
cmp dword [ebp + 8], esi
je 0x101227f
push 1
call fcn.0100227c
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0x1012284
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call esi
push dword [ebp + 8]
mov edi, eax
call esi
lea esi, [eax + edi + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.010013e0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x101223a
push dword [ebp - 0x18]
inc edi
push edi
push eax
call fcn.010021cb
mov ebx, eax
test ebx, ebx
jl 0x1012265
push dword [ebp + 8]
push esi
push dword [ebp - 0x14]
call fcn.01002436
mov ebx, eax
test ebx, ebx
jl 0x1012265
xor ebx, ebx
inc ebx
jmp 0x101223a
test ebx, ebx
jl 0x1012265
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1012263
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x101225f
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x1012265
xor ebx, ebx
cmp dword [ebp - 0x14], 0
je 0x1012274
push dword [ebp - 0x14]
call fcn.010013c0
pop ecx
push dword [ebp - 0x18]
call fcn.010013c0
pop ecx
jmp 0x1012284
mov ebx, 0x80070057
mov eax, ebx
call fcn.01001390
ret 4