joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100013a0
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0xf0000000
push 0x18
xor esi, esi
push esi
push esi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1000141b
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x1c
push 0x100090e0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x1000141b
push esi
push dword [ebp + 8]
push 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x1000141b
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push 1
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov ecx, 1
test eax, eax
cmovne esi, ecx
mov eax, dword [ebp - 4]
test eax, eax
je 0x10001429
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [ebp - 8]
test eax, eax
je 0x10001439
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10001ac0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0xf0000000
push 0x18
xor esi, esi
push esi
push esi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0x20
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x10001b3d
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x800c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10001b3d
push esi
push 0x10
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x10001b3d
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov ecx, 1
test eax, eax
cmovne esi, ecx
mov eax, dword [ebp - 4]
test eax, eax
je 0x10001b4b
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
test eax, eax
je 0x10001b5b
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x418010
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xb0
mov al, byte [0x4c4049]
mov cl, byte [0x4c4048]
xor cl, al
push esi
mov byte [0x4c4048], cl
mov cl, byte [0x4c4043]
or cl, 8
mov esi, dword [esp + 0xb8]
shr cl, 3
and ecx, 0xff
push 5
mov dword [esp + 8], ecx
fild dword [esp + 8]
fdivr qword [0x4c79c0]
fadd qword [0x4c4050]
fstp qword [0x4c79b0]
mov dword [esi], 0
call dword [sym.imp.USER32.dll_GetSysColor]
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x41807e
or dword [esi], 0x4000000
mov al, byte [0x4c4046]
mov dl, byte [0x4c4045]
xor al, dl
mov byte [0x4c4046], al
or al, 0x30
shr al, 4
and eax, 0xff
mov dword [esp + 4], eax
fild dword [esp + 4]
fdivr qword [0x4c7a20]
fstp qword [0x4c79b0]
fld qword [0x4c4050]
fadd qword [0x4c79c0]
fstp qword [0x4c79c0]
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov eax, esi
pop esi
add esp, 0xb0
ret

Function at 0x4bc63d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c43c0
cmp edx, dword [eax]
je 0x4bc65f
add eax, 8
inc ecx
cmp eax, 0x4c4450
jl 0x4bc650
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c43c0]
jne 0x4bc78d
mov eax, dword [0x4c9d50]
cmp eax, 1
je 0x4bc767
test eax, eax
jne 0x4bc690
cmp dword [0x4c42e8], 1
je 0x4bc767
cmp edx, 0xfc
je 0x4bc78d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bc6c7
lea eax, [ebp - 0x1a4]
push 0x4c19a8
push eax
call fcn.004bd020
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bd4b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bc70a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bd4b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c19a4
push edi
call fcn.004bf380
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c1988
push eax
call fcn.004bd020
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bd030
lea eax, [ebp - 0xa0]
push 0x4c1984
push eax
call fcn.004bd030
push dword [esi + 0x4c43c4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bd030
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c195c
push eax
call fcn.004bf2f4
add esp, 0x2c
pop edi
jmp 0x4bc78d
lea eax, [ebp + 8]
lea esi, [esi + 0x4c43c4]
push 0
push eax
push dword [esi]
call fcn.004bd4b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40161a
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
cmp cx, 0xa
jne 0x401640
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push ecx
push edx
call fcn.00401736
mov al, byte [esp + 0x14]
add esp, 0xc
ret
mov eax, dword [esp + 8]
push esi
push ebx
xor ebx, ebx
mov edx, eax
dec eax
test edx, edx
mov esi, 1
je 0x40167a
push edi
mov edi, dword [esp + 0x10]
push ebp
lea ebp, [eax + 1]
mov al, byte [edi]
inc edi
push eax
call fcn.00401802
imul eax, esi
add esp, 4
add ebx, eax
xor esi, 3
dec ebp
jne 0x40165d
mov ecx, dword [esp + 0x1c]
pop ebp
pop edi
mov eax, dword [esp + 0x18]
and ebx, 0xffff
and eax, 0xffff
and ecx, 0xffff
add eax, ebx
inc ecx
cdq
idiv ecx
push edx
call fcn.00401601
add esp, 4
pop ebx
pop esi
ret
Function at 0x401a3d
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x5c]
push edi
movsx eax, word [esi]
mov ecx, eax
shl ecx, 3
sub ecx, eax
mov eax, dword [esi + 0x26]
mov edx, dword [ecx*4 + 0x407374]
lea edi, [ecx*4 + 0x407374]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00401f5d
lea ebx, [esi + 0x14]
xor edx, edx
mov eax, ebx
add esp, 0xc
mov dword [eax], edx
push 2
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dl, byte [esi]
mov ecx, dword [edi]
and edx, 3
add ecx, 7
lea eax, [esp + 0x14]
push edx
push eax
shr ecx, 3
push ebx
mov dword [esi + 0x20], ecx
call fcn.00401bed
mov ecx, dword [edi + 8]
mov dx, word [esi + 2]
add esp, 0x10
lea eax, [esp + 0x12]
push ecx
push edx
push eax
push ebx
call fcn.00401bed
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov ax, word [esi + 0x26]
add esp, 0x10
lea ebp, [esp + ecx + 0x12]
push edx
push eax
push ebp
push ebx
call fcn.00401bed
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 0x10]
add esp, 0x10
add ebp, edx
cmp eax, 0x40
mov dword [esp + 0x60], eax
jbe 0x401af0
mov dword [esp + 0x60], 0x40
mov eax, dword [esp + 0x60]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push eax
push ecx
push edx
push ebp
push ebx
call fcn.00401c52
mov edx, dword [esp + 0x74]
mov eax, dword [edi + 0x10]
add esp, 0x14
add ebp, edx
cmp eax, 0x40
jbe 0x401b31
mov ecx, dword [esi + 0xc]
add eax, 0xffffffc0
mov dword [esp + 0x60], eax
push eax
mov eax, dword [esi + 0x10]
push eax
push ecx
push ebp
push ebx
call fcn.00401c52
mov eax, dword [esp + 0x74]
add esp, 0x14
add ebp, eax
mov eax, dword [edi + 0x10]
cmp eax, 0x20
jae 0x401b65
cmp eax, 0x20
mov dword [esp + 0x60], eax
jge 0x401b65
jmp 0x401b48
mov eax, dword [esp + 0x60]
push 0
push eax
lea eax, [esi + 4]
push eax
call fcn.00401a13
mov eax, dword [esp + 0x6c]
add esp, 0xc
inc eax
cmp eax, 0x20
mov dword [esp + 0x60], eax
jl 0x401b44
mov ecx, dword [edi]
mov edx, dword [esi + 0x20]
and ecx, 7
neg ecx
lea eax, [edx + esi + 0x13]
and ecx, 7
mov edx, 0xff
sar edx, cl
mov cl, byte [eax]
and cl, dl
mov byte [eax], cl
mov eax, dword [edi + 4]
push eax
push esi
call fcn.00401cc1
mov ecx, dword [edi + 4]
add esp, 8
push ecx
push eax
push ebp
push ebx
call fcn.00401bed
mov eax, dword [esi + 0x20]
add esp, 0x10
xor ebp, ebp
test eax, eax
jle 0x401bc5
mov edx, dword [esi + 0x26]
mov ecx, ebp
mov al, byte [ebx + ebp]
and ecx, 3
shl ecx, 3
shr edx, cl
xor al, dl
mov byte [ebx + ebp], al
mov eax, dword [esi + 0x20]
inc ebp
cmp ebp, eax
jl 0x401ba8
mov ecx, dword [edi]
mov eax, dword [esi + 0x20]
and ecx, 7
mov edx, 0xff
neg ecx
and ecx, 7
lea esi, [eax + esi + 0x13]
sar edx, cl
mov al, byte [esi]
pop edi
and al, dl
mov byte [esi], al
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x4c
ret
Function at 0x401d8a
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401ddb
push ebp
call fcn.00401ddd
mov ebp, dword [esp + 0x14]
xor ecx, ecx
test esi, esi
mov dl, byte [ebp]
mov byte [esp + 0x10], dl
jbe 0x401dd7
push edi
mov edi, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x18]
xor eax, eax
mov al, byte [edi + ecx]
and ebx, 0xff
xor eax, ebx
shr dl, 8
mov al, byte [eax + 0x4046dc]
xor dl, al
inc ecx
cmp ecx, esi
mov byte [esp + 0x18], dl
jb 0x401db0
pop ebx
pop edi
mov byte [ebp], dl
pop ebp
pop esi
ret

Function at 0x401e46
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x401e92
push esi
call fcn.00401e94
mov edx, dword [esp + 0x14]
xor esi, esi
test edi, edi
mov cx, word [edx]
jbe 0x401e8e
push ebp
mov ebp, dword [esp + 0x10]
push ebx
xor eax, eax
mov ebx, ecx
mov al, byte [ebp + esi]
and ebx, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, ch
mov cx, word [eax*2 + 0x4040d4]
xor cx, bx
inc esi
cmp esi, edi
jb 0x401e68
pop ebx
pop ebp
mov word [edx], cx
pop esi
pop edi
ret

Function at 0x401f13
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401f5b
push ebp
call fcn.004020ef
mov ebp, dword [esp + 0x14]
xor edx, edx
test esi, esi
mov ecx, dword [ebp]
jbe 0x401f57
push edi
mov edi, dword [esp + 0x10]
push ebx
xor eax, eax
mov ebx, ecx
mov al, byte [edi + edx]
and ebx, 0xff
xor eax, ebx
shr ecx, 8
mov eax, dword [eax*4 + 0x4042d8]
xor ecx, eax
inc edx
cmp edx, esi
jb 0x401f35
pop ebx
pop edi
mov dword [ebp], ecx
pop ebp
pop esi
ret

Function at 0x4020ef
Capabilities:
Hash data with crc32

Disassembly:
cmp word [0x4046d8], 0
jne 0x402137
push edi
push esi
xor esi, esi
mov edx, 0x4042d8
mov eax, esi
mov edi, 8
mov cl, al
and ecx, 1
shr eax, 1
cmp cx, 1
jne 0x40211b
xor eax, 0xedb88320
dec edi
jne 0x402109
mov dword [edx], eax
add edx, 4
inc esi
cmp edx, 0x4046d8
jb 0x402102
pop esi
mov word [0x4046d8], 1
pop edi
ret
Function at 0x402138
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x8c
push ebx
mov ebx, dword [esp + 0x94]
push ebp
push esi
mov eax, dword [ebx + 0x20]
xor esi, esi
test eax, eax
push edi
jle 0x402171
mov eax, dword [ebx + 0x26]
mov ecx, esi
mov dl, byte [ebx + esi + 0x14]
and ecx, 3
shl ecx, 3
shr eax, cl
xor dl, al
mov byte [ebx + esi + 0x14], dl
mov eax, dword [ebx + 0x20]
inc esi
cmp esi, eax
jl 0x402152
movsx eax, word [ebx]
mov ecx, eax
shl ecx, 3
sub ecx, eax
mov eax, dword [ebx + 0x26]
mov edx, dword [ecx*4 + 0x407374]
lea ecx, [esp + 0x50]
push edx
push eax
push ecx
call fcn.00401f5d
add esp, 0xc
lea edx, [esp + 0x50]
lea edi, [ebx + 0x14]
push 2
push edx
push edi
mov dword [esp + 0x24], edi
call fcn.0040230a
add word [ebx], ax
add esp, 0xc
movsx eax, word [ebx]
mov ecx, eax
shl ecx, 3
sub ecx, eax
lea eax, [esp + 0x52]
mov edx, dword [ecx*4 + 0x40737c]
lea ebp, [ecx*4 + 0x407374]
push edx
push eax
push edi
call fcn.0040230a
mov word [ebx + 2], ax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add esp, 0xc
lea esi, [esp + ecx + 0x52]
push edx
push esi
push edi
call fcn.0040230a
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x10]
add esp, 0xc
add esi, edx
cmp eax, 0x40
mov dword [esp + 0x10], eax
jbe 0x40220f
mov dword [esp + 0x10], 0x40
mov eax, dword [esp + 0x10]
push eax
push esi
push edi
call fcn.0040237e
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov edx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x10]
add esp, 0xc
add esi, edx
cmp eax, 0x40
mov dword [esp + 0x10], esi
jbe 0x402254
add eax, 0xffffffc0
push eax
push esi
push edi
mov dword [esp + 0x1c], eax
call fcn.0040237e
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x1c]
add esp, 0xc
add esi, eax
mov dword [ebx + 0x10], edx
mov dword [esp + 0x10], esi
mov eax, dword [ebp + 4]
push eax
push esi
push edi
call fcn.0040230a
mov ecx, dword [ebx + 0x20]
mov edx, 0xff
mov dword [esp + 0x28], eax
lea edi, [esp + 0x2c]
lea esi, [ecx + ebx + 0x13]
mov ecx, dword [ebp]
and ecx, 7
add esp, 0xc
mov al, byte [esi]
neg ecx
and ecx, 7
sar edx, cl
mov ecx, 0xb
and al, dl
lea edx, [esp + 0x34]
mov byte [esi], al
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
movsw word es:[edi], word [esi]
mov eax, dword [ebp + 4]
push eax
push 0
push ecx
push edx
call fcn.00401bed
mov eax, dword [ebp + 4]
add esp, 0x10
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.00401cc1
sub ax, word [esp + 0x24]
add esp, 8
neg ax
sbb eax, eax
and eax, 5
test ax, ax
mov word [ebx + 0x24], ax
jne 0x4022fb
mov ebp, dword [ebp + 0xc]
test ebp, ebp
jbe 0x4022fb
mov ax, word [ebx + 0x26]
mov ecx, 0x10
sub ecx, ebp
mov edx, 0xffff
sar edx, cl
and edx, eax
cmp word [esp + 0x14], dx
je 0x4022fb
mov word [ebx + 0x24], 5
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret
Function at 0x4028f3
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push esi
cmp word [ecx + 6], 0
jne 0x402934
mov esi, 0x7f
mov al, byte [ecx + esi + 0x1a]
test al, al
jne 0x402913
dec esi
cmp esi, 2
jae 0x402905
mov eax, 2
cmp esi, eax
jbe 0x402934
mov bl, byte [ecx + eax + 0x1a]
mov edx, eax
and edx, 1
mov dl, byte [ecx + edx + 0x1a]
xor bl, dl
mov byte [ecx + eax + 0x1a], bl
inc eax
cmp eax, esi
jb 0x40291c
pop esi
pop ebx
ret
Function at 0x4017a5
Capabilities:
Extract resource via kernel32 functions
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0x4021bc
push 0x65
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x401862
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x401861
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401861
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0xf013f
push ebx
push 0x4021c0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401861
push edi
push esi
push 3
push ebx
push str._Nodestager
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x401861
call fcn.00401868
mov ebx, str._Nodesvc32
mov esi, eax
mov ecx, ebx
call fcn.00401674
mov edi, str._Nodesvc64
mov ecx, edi
call fcn.00401674
call fcn.0040112f
test eax, eax
push esi
cmove edi, ebx
push ecx
mov ecx, edi
call fcn.004011ad
pop ecx
pop ecx
test eax, eax
je 0x401861
mov ecx, edi
call fcn.0040151a
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x10001040
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10038d6b
mov eax, dword fs:[0]
push eax
sub esp, 0xa68
mov eax, dword [0x1004f450]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
xor ebx, ebx
mov word [ebp - 0xa70], ax
push ebx
mov eax, 0x1003e860
lea esi, [ebp - 0xa70]
mov edi, ecx
mov dword [ebp - 0xa74], ebx
mov dword [ebp - 0xa5c], 7
mov dword [ebp - 0xa60], ebx
call fcn.10001a60
mov dword [ebp - 4], ebx
xor ecx, ecx
push ebx
mov eax, 0x1003e860
lea esi, [ebp - 0xa54]
mov dword [ebp - 0xa40], 7
mov dword [ebp - 0xa44], ebx
mov word [ebp - 0xa54], cx
call fcn.10001a60
cmp edi, ebx
je 0x100011d8
push 0x410
lea edx, [ebp - 0x628]
push ebx
push edx
call fcn.1002f900
push edi
lea eax, [ebp - 0x628]
push 0x208
push eax
call fcn.100296af
add esp, 0x18
lea ecx, [ebp - 0x628]
push ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x100011d1
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
jmp 0x10001120
cmp word [ebp + esi*2 - 0x628], 0x5c
jne 0x100011b3
push 0x410
lea edx, [ebp - 0xa38]
push ebx
push edx
call fcn.1002f900
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.1002f900
lea ecx, [esi + 1]
push ecx
lea edx, [ebp - 0x628]
push edx
lea eax, [ebp - 0xa38]
push 0x208
push eax
call fcn.10028ec9
lea ecx, [ebp - 0xa38]
push ecx
lea edx, [ebp - 0x218]
push 0x104
push edx
call fcn.100296af
add esp, 0x34
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
jne 0x100011b3
push ebx
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100011b3
mov dword [ebp - 0xa74], 0x52
lea edx, [ebp - 0x628]
push edx
inc esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, eax
jne 0x10001120
cmp dword [ebp - 0xa74], ebx
jne 0x100011d8
mov esi, 1
jmp 0x100011da
xor esi, esi
mov edi, 8
cmp dword [ebp - 0xa40], edi
jb 0x100011f6
mov eax, dword [ebp - 0xa54]
push eax
call fcn.10029653
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xa40], 7
mov dword [ebp - 0xa44], ebx
mov word [ebp - 0xa54], cx
cmp dword [ebp - 0xa5c], edi
jb 0x10001226
mov edx, dword [ebp - 0xa70]
push edx
call fcn.10029653
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10028eba
mov esp, ebp
pop ebp
ret
Function at 0x10002c70
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
mov eax, dword [0x1004f450]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.DeleteRegICMProfile_____Start
mov esi, ecx
call fcn.100269c0
add esp, 4
test esi, esi
jne 0x10002cb6
push esi
push str.DeleteRegICMProfile_____End__d_
call fcn.100269c0
add esp, 8
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028eba
mov esp, ebp
pop ebp
ret
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x620], 0
mov dword [ebp - 0x628], str.SOFTWAREMicrosoftWindows_NTCurrentVersionICMmntr
mov dword [ebp - 0x624], str.SOFTWAREMicrosoftWindows_NTCurrentVersionICMprtr
mov word [ebp - 0x20c], ax
call fcn.1002f900
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x412]
push eax
mov word [ebp - 0x414], dx
call fcn.1002f900
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x61a]
push edx
mov word [ebp - 0x61c], cx
call fcn.1002f900
push 0x104
lea eax, [ebp - 0x61c]
push eax
push 0x104
lea ecx, [ebp - 0x414]
push ecx
push 0
push 0
push 0
push 0
push esi
call fcn.10029441
add esp, 0x48
lea edx, [ebp - 0x61c]
push edx
lea eax, [ebp - 0x414]
push eax
push 0
push 0
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.100297d1
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0x18
xor esi, esi
lea ecx, [ecx]
mov eax, dword [ebp + esi*4 - 0x628]
lea edx, [ebp - 0x620]
push edx
push 0xf003f
push 0
push eax
push SysStringLen
call ebx
test eax, eax
jne 0x10002de2
mov edx, dword [ebp - 0x620]
push eax
push eax
push eax
push eax
lea ecx, [ebp - 0x20c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10002dd1
mov ecx, dword [ebp - 0x620]
lea eax, [ebp - 0x20c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0x620]
test eax, eax
je 0x10002de2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
mov dword [ebp - 0x620], 0
cmp esi, 2
jb 0x10002d80
push 1
push str.DeleteRegICMProfile_____End__d_
call fcn.100269c0
mov ecx, dword [ebp - 4]
add esp, 8
pop ebx
xor ecx, ebp
mov eax, 1
pop esi
call fcn.10028eba
mov esp, ebp
pop ebp
ret
Function at 0x10003720
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10039276
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x1004f450]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov esi, edx
mov dword [ebp - 0x240], esi
cmp edi, ebx
jne 0x10003766
lea eax, [ebx + 0x57]
jmp 0x10003915
push str.GetMonitorFile___Start
call fcn.100269c0
add esp, 4
or eax, 0xffffffff
xor ecx, ecx
call fcn.10001b50
xor eax, eax
mov word [ebp - 0x234], ax
push 0x2f
mov eax, str.SystemCurrentControlSetControlPrintMonitors
lea esi, [ebp - 0x234]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
call fcn.10001a60
mov dword [ebp - 4], ebx
mov ebx, 0x5c
call fcn.10001780
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100037c0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [ebp - 0x234]
call fcn.10001930
xor ebx, ebx
mov dword [ebp - 0x248], ebx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x100037fe
lea eax, [ebp - 0x234]
lea ecx, [ebp - 0x23c]
push ecx
push 0x20019
push 0
push eax
push SysStringLen
mov dword [ebp - 0x23c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10003832
mov ebx, dword [ebp - 0x23c]
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x238], eax
test eax, eax
jne 0x100038dc
lea edx, [ebp - 0x244]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x250]
push ecx
push 0
push str.Driver
push ebx
mov dword [ebp - 0x244], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000387f
mov eax, dword [ebp - 0x250]
dec eax
neg eax
sbb eax, eax
and eax, 0xd
mov dword [ebp - 0x238], eax
test eax, eax
jne 0x100038dc
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10003892
mov esi, dword [ebp - 0x240]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
call fcn.10001a60
lea edx, [ebp - 0x24c]
push edx
push esi
mov edi, 1
mov dword [ebp - 0x24c], 0x5c
call fcn.100087c0
cmp eax, 0xffffffff
je 0x100038dc
inc eax
xor ecx, ecx
call fcn.10001b50
mov esi, dword [ebp - 0x238]
push esi
push str.GetMonitorFile___End__d_
call fcn.100269c0
add esp, 8
test ebx, ebx
je 0x100038fb
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x220], 8
jb 0x10003913
mov eax, dword [ebp - 0x234]
push eax
call fcn.10029653
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10028eba
mov esp, ebp
pop ebp
ret