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

Disassembly:
push 0x10
push 0x10075b0
call fcn.01002b34
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x10094c4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x100279f
cmp eax, esi
jne 0x1002792
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x10027a2
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1002779
xor esi, esi
inc esi
mov eax, dword [0x10094c0]
cmp eax, esi
jne 0x10027b5
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10027f0
mov eax, dword [0x10094c0]
test eax, eax
jne 0x10027ea
mov dword [0x10094c0], esi
push 0x10011f0
push 0x10011e4
call fcn.010026f6
pop ecx
pop ecx
test eax, eax
je 0x10027f0
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x10028ba
mov dword [0x100906c], esi
mov eax, dword [0x10094c0]
cmp eax, esi
jne 0x1002814
push 0x10011e0
push 0x10011d8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10094c0], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1002821
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10094c8], ebx
je 0x1002842
push 0x10094c8
call fcn.01002aa9
pop ecx
test eax, eax
je 0x1002842
push ebx
push 2
push ebx
call dword [0x10094c8]
push dword [0x1009054]
push dword [0x1009058]
push dword [0x1009050]
call fcn.01002540
add esp, 0xc
mov dword [0x1009068], eax
cmp dword [0x100905c], ebx
jne 0x10028a0
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x100906c], ebx
jne 0x10028ae
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1009068]
call fcn.01002b79
ret
call fcn.01002c81
jmp 0x1002757
Function at 0x10061a1
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa08
mov eax, dword [0x1009030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x9e4], eax
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0xa04]
mov dword [ebp - 0xa08], esi
mov dword [ebp - 0x9e8], edx
mov dword [ebp - 0x9e0], esi
mov dword [ebp - 0x9dc], esi
rep stosd dword es:[edi], eax
mov word [ebp - 0x46], ax
cmp dword [ebp - 0x9e4], esi
je 0x1006325
cmp ebx, esi
je 0x1006325
mov eax, dword [ebx]
cmp eax, esi
je 0x100621e
cmp eax, 2
jb 0x1006325
cmp edx, esi
je 0x1006325
cmp dword [0x10093a4], esi
jne 0x1006252
lea eax, [ebp - 0x9d8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1006248
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
jmp 0x1006331
mov dword [0x10093a4], 1
lea eax, [ebp - 0x9dc]
push eax
lea eax, [ebp - 0xa08]
push eax
push esi
push dword [ebp - 0x9e4]
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
test eax, eax
jne 0x1006337
mov esi, dword [ebp - 0x9dc]
xor edi, edi
jmp 0x10062bf
push 4
xor eax, eax
mov word [ebp - 0x848], ax
push 0x20
lea eax, [ebp - 0x44]
push eax
push 0x401
lea eax, [ebp - 0x848]
push eax
push dword [esi + 0x10]
push dword [esi + 0x18]
call dword [sym.imp.WS2_32.dll_GetNameInfoW]
cmp eax, edi
je 0x10062c5
cmp eax, 0x2afc
jne 0x10062bc
cmp word [ebp - 0x848], di
jne 0x10062c5
mov esi, dword [esi + 0x1c]
cmp esi, edi
jne 0x100627f
jmp 0x1006311
lea esi, [ebp - 0x848]
cmp dword [ebp + 0x14], edi
jne 0x10062e2
mov eax, esi
push 0x1001530
push eax
call dword [sym.imp.msvcrt.dll_wcstok]
pop ecx
pop ecx
mov esi, eax
push edi
push esi
call fcn.01003212
mov ecx, dword [ebx]
inc eax
cmp ecx, eax
jae 0x10062fe
mov dword [ebx], eax
mov dword [ebp - 0x9e0], 1
jmp 0x1006311
push ecx
push esi
push dword [ebp - 0x9e8]
call fcn.01003b8b
mov dword [ebp - 0x9e0], eax
push dword [ebp - 0x9dc]
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov eax, dword [ebp - 0x9e0]
jmp 0x1006339
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1006337
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01002999
leave
ret 0x10
Function at 0x1006753
Capabilities:
Connect network resource

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x10068ae
push esi
call fcn.0100651a
cmp eax, 1
je 0x10068ae
push esi
mov dword [ebp + 8], esi
call fcn.010060a8
cmp eax, 1
jne 0x100678d
add esi, 4
mov dword [ebp + 8], esi
push dword [ebp + 8]
call fcn.01006681
test eax, eax
jne 0x10067a9
call fcn.01002fe3
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10068e2
cmp dword [ebp + 0x14], ebx
je 0x10067d2
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x10067d2
push dword [ebp + 0x14]
push dword [ebp + 8]
push 0x1001544
push 2
call fcn.01004372
add esp, 0x10
jmp 0x10067e4
push dword [ebp + 8]
push 0x1001420
push 1
call fcn.01004372
add esp, 0xc
test eax, eax
jne 0x1006807
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10067fa
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01002fe3
push 8
pop eax
jmp 0x10068e2
call fcn.01002f50
cmp eax, ebx
jne 0x1006819
push 0x12
call fcn.01002edf
jmp 0x1006823
push ebx
push ebx
push eax
push 0x12
call fcn.010040e5
mov edx, eax
cmp edx, ebx
je 0x10067e8
push edi
push 8
pop ecx
push ebx
push dword [ebp + 0xc]
xor eax, eax
push dword [ebp + 0x10]
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], edx
call sub.MPR.dll_WNetAddConnection2W
mov esi, eax
pop edi
cmp esi, ebx
je 0x1006874
cmp esi, 0x4b8
je 0x100686d
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01002fe3
jmp 0x10068dc
call fcn.01004404
jmp 0x10068dc
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
call fcn.0100634f
push eax
call fcn.0100312b
test eax, eax
jne 0x10068dc
push dword [ebp + 8]
call fcn.01006736
push 0x1580
call fcn.01004db8
push eax
call fcn.01002f7c
mov esi, 0x4b8
jmp 0x10068dc
cmp dword [ebp + 0xc], ebx
je 0x10068e0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x10068e0
push 0x157e
call fcn.01004db8
push eax
call fcn.01002f7c
mov esi, 0xa0010001
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x10068e2
xor eax, eax
pop esi
pop ebx
leave
ret 0x10
Function at 0x100690e
Capabilities:
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push edi
push 0
call ebx
mov edi, dword [ebp + 8]
test edi, edi
je 0x1006a98
push 0
push edi
call fcn.01003212
test eax, eax
je 0x1006a98
xor esi, esi
inc esi
cmp dword [ebp + 0x1c], esi
jne 0x1006977
cmp dword [ebp + 0xc], 0
je 0x100695d
cmp dword [ebp + 0x10], 2
jb 0x100695d
cmp dword [ebp + 0x14], 0
je 0x100695d
cmp dword [ebp + 0x18], 2
jae 0x1006977
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100696b
push 0x57
call ebx
call fcn.01002fe3
xor eax, eax
jmp 0x1006a9b
push edi
mov dword [ebp - 4], edi
call fcn.010060a8
cmp eax, esi
jne 0x100698a
lea eax, [edi + 4]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], esi
jne 0x10069bb
cmp dword [ebp + 0x14], 0
je 0x10069bb
push 0
push esi
push 0x1001370
push dword [ebp + 0x14]
call fcn.01003233
test eax, eax
jne 0x10069bb
push dword [ebp - 4]
call fcn.01006681
test eax, eax
jne 0x1006aaf
jmp 0x100696b
push dword [ebp - 4]
and dword [ebp - 8], 0
call fcn.01006681
test eax, eax
je 0x100696b
cmp dword [ebp + 0xc], 0
je 0x1006a00
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1006a00
mov eax, dword [ebp + 0x1c]
neg eax
sbb eax, eax
not eax
and eax, dword [ebp + 0x14]
push eax
push dword [ebp + 0xc]
push edi
call fcn.010068ed
mov edi, eax
cmp dword [ebp + 0x1c], esi
jne 0x1006a0f
mov dword [ebp - 8], esi
jmp 0x1006a0f
push 0
push 0
push edi
mov dword [ebp - 8], esi
call fcn.010068ed
mov edi, eax
cmp edi, 0x55
jne 0x1006a1f
push 0x50010001
call ebx
mov eax, esi
jmp 0x1006a9b
test edi, edi
jne 0x1006a2b
cmp dword [ebp - 8], esi
je 0x1006a14
push edi
jmp 0x1006a19
mov eax, 0x4c3
cmp edi, eax
ja 0x1006a58
je 0x1006a55
cmp edi, 0x34
je 0x1006b47
cmp edi, 0x56
je 0x1006aa2
cmp edi, 0x4be
je 0x1006b47
jmp 0x100696b
push eax
jmp 0x1006a19
cmp edi, 0x4cf
jb 0x100696b
cmp edi, 0x4d1
jbe 0x1006b47
cmp edi, 0x52e
je 0x1006aa2
mov esi, 0xa0010001
cmp edi, esi
jne 0x100696b
push 0x157e
call fcn.01004db8
push eax
call fcn.01002f7c
push esi
call ebx
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x18
cmp dword [ebp + 0x1c], 0
je 0x1006970
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x1006ad2
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x100696b
push dword [ebp + 0xc]
push 0x157d
call fcn.01004db8
push eax
push esi
push esi
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x20
push eax
call fcn.01004c4a
add esp, 0x14
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.01003e76
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call fcn.010068ed
mov edi, eax
test edi, edi
je 0x1006a1b
cmp edi, 0x34
je 0x1006b47
cmp edi, 0x4be
je 0x1006b47
mov eax, 0x4c3
cmp edi, eax
je 0x1006a55
cmp edi, 0x4ce
jbe 0x100696b
cmp edi, 0x4d1
ja 0x1006a78
push 0x4c6
call ebx
call fcn.01002fe3
push edi
call ebx
jmp 0x1006970
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x405dd1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405dab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc

Function at 0x4022de
Capabilities:
Persist via run registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4040ac]
push ebx
xor ebx, ebx
cmp dword [0x4040fc], ebx
mov dword [ebp - 4], eax
jne 0x40235e
lea eax, [ebp - 0x114]
push eax
push 0x40119c
push 0x80000001
call dword [fcn.00401010]
test eax, eax
jne 0x40235e
push esi
push ebx
mov esi, 0x401190
push esi
lea ecx, [ebp - 0x110]
mov byte [ebp - 0x110], bl
mov dword [ebp - 8], ebx
call fcn.00402039
test eax, eax
je 0x40235d
push dword [ebp - 8]
lea eax, [ebp - 0x110]
push eax
push 1
push ebx
push esi
push dword [ebp - 0x114]
call dword [fcn.0040100c]
push dword [ebp - 0x114]
call dword [fcn.00401008]
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.00402d1d
leave
ret
Function at 0x1002baa
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x105a080]
push ebx
mov ebx, dword [0x105a084]
push edi
xor edi, edi
sub ebx, eax
je 0x1002c33
mov ecx, dword [0x105a044]
push esi
push dword [ebp + 8]
lea esi, [ecx + eax]
call dword [fcn.01001298]
test eax, eax
je 0x1002c32
lea eax, [ebx + 7]
push eax
push 0x2002
call dword [fcn.01001230]
test eax, eax
mov dword [ebp + 8], eax
je 0x1002c2c
push eax
call dword [fcn.01001234]
push dword [ebp + 8]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
lea edi, [eax + 4]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [eax], ebx
call dword [fcn.01001238]
call dword [fcn.01001294]
push dword [ebp + 8]
push dword [0x105a030]
call dword [fcn.01001290]
xor edi, edi
inc edi
call dword [fcn.0100128c]
pop esi
mov eax, edi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x1002c40
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
test byte [0x105a040], 8
mov dword [ebp - 4], edi
je 0x1002c63
and dword [0x105a040], 0xfffffff7
inc dword [0x105a07c]
push dword [ebp + 8]
call dword [fcn.01001298]
test eax, eax
je 0x1002d58
push dword [0x105a030]
call dword [0x100129c]
cmp eax, edi
mov dword [ebp - 8], eax
je 0x1002d52
push esi
push eax
call dword [fcn.01001234]
mov esi, eax
cmp esi, edi
je 0x1002d48
mov ecx, dword [esi]
mov eax, dword [0x105a048]
add ecx, eax
cmp ecx, dword [0x105a04c]
mov dword [ebp - 4], 1
jle 0x1002ce0
push 2
push ecx
push dword [0x105a044]
call dword [0x100122c]
cmp eax, edi
je 0x1002d60
mov dword [0x105a044], eax
mov ecx, dword [esi]
mov eax, dword [0x105a048]
add ecx, eax
mov dword [0x105a04c], ecx
mov ecx, dword [0x105a080]
cmp ecx, dword [0x105a084]
je 0x1002cfd
push 8
push dword [ebp + 8]
call fcn.01002ac1
mov eax, dword [0x105a048]
mov ecx, dword [0x105a07c]
mov edx, dword [0x105a044]
push ebx
mov ebx, dword [esi]
sub eax, ecx
push eax
lea edi, [edx + ecx]
lea eax, [ebx + edi]
push edi
push eax
call dword [sym.imp.msvcrt.dll_memmove]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
add esi, 4
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add esp, 0xc
push dword [ebp + 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add dword [0x105a048], ebx
add dword [0x105a07c], ebx
call fcn.01002838
pop ebx
push dword [ebp - 8]
call dword [fcn.01001238]
pop esi
call dword [fcn.0100128c]
mov eax, dword [ebp - 4]
pop edi
leave
ret 4
push edi
push 0x10
push 0x70
push 0x76
push dword [ebp + 8]
push dword [0x1019510]
call fcn.01009ee7
add esp, 0x18
mov dword [ebp - 4], edi
jmp 0x1002d48
Function at 0x1003857
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [0x10012ec]
push edi
push 0x11
call esi
xor ebx, ebx
test ax, ax
push 0x10
setl bl
call esi
mov edi, dword [ebp + 0xc]
xor ecx, ecx
test ax, ax
setl cl
cmp edi, 0x26
mov dword [ebp - 4], ecx
mov ecx, dword [0x105a07c]
ja 0x100396b
je 0x1003953
cmp edi, 0x21
jb 0x1003a0c
cmp edi, 0x22
jbe 0x1003920
cmp edi, 0x23
je 0x10038ec
cmp edi, 0x24
je 0x10038c7
cmp edi, 0x25
jne 0x1003a0c
and dword [0x105a040], 0xffffffef
dec ecx
jmp 0x100395e
test ebx, ebx
je 0x10038cf
xor ecx, ecx
jmp 0x10038e0
test byte [0x105a040], 0x10
je 0x10038dd
sub ecx, 8
jmp 0x10038e0
and ecx, 0xfffffff8
and dword [0x105a040], 0xffffffef
jmp 0x1003a00
test ebx, ebx
jne 0x10039de
test byte [0x105a040], 0x10
jne 0x1003a0c
mov eax, dword [0x105a048]
and ecx, 0xfffffff8
add ecx, 8
cmp ecx, eax
jg 0x10039fe
or dword [0x105a040], 0x10
jmp 0x1003a00
mov eax, dword [0x105a06c]
neg eax
lea esi, [ecx + eax*8]
xor eax, eax
cmp edi, 0x21
setne al
push 0
inc eax
inc eax
push eax
push 0
push dword [ebp + 8]
call fcn.01002e5a
cmp edi, 0x21
mov eax, dword [0x105a06c]
lea ecx, [esi + eax*8]
je 0x100395e
jmp 0x10039f5
test ebx, ebx
jne 0x1003a0c
sub ecx, 8
test ecx, ecx
jl 0x1003a0c
jmp 0x1003a00
sub edi, 0x27
je 0x10039ed
dec edi
je 0x10039be
sub edi, 5
je 0x100399d
dec edi
jne 0x1003a0c
test ebx, ebx
jne 0x1003a0c
cmp dword [ebp - 4], ebx
je 0x1003991
push ebx
push 0x18
jmp 0x10039ab
push 0x2e
push dword [ebp + 8]
call fcn.01002ac1
jmp 0x1003a0c
xor eax, eax
cmp dword [ebp - 4], eax
je 0x10039b5
cmp ebx, eax
jne 0x1003a0c
push eax
push 0x16
push dword [ebp + 8]
call fcn.01002f34
jmp 0x1003a0c
cmp ebx, eax
je 0x1003a0c
push eax
push 3
jmp 0x10039ab
test ebx, ebx
jne 0x1003a0c
add ecx, 8
mov eax, ecx
push 8
cdq
pop esi
idiv esi
cmp eax, dword [0x105a068]
jle 0x10039f5
test byte [0x105a040], 0x10
je 0x1003a0c
and dword [0x105a040], 0xffffffef
mov ecx, dword [0x105a048]
jmp 0x1003a00
and dword [0x105a040], 0xffffffef
inc ecx
mov eax, dword [0x105a048]
cmp ecx, eax
jle 0x1003a00
mov ecx, eax
push dword [ebp - 4]
push ecx
push dword [ebp + 8]
call fcn.0100359b
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x1003d5a
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x10191f4]
push esi
push edi
mov edi, dword [ebp + 8]
push 0x500
push edi
mov dword [ebp - 4], eax
call dword [0x1001310]
test eax, eax
mov dword [0x1059dd8], eax
jne 0x1003e37
push 0x128
mov esi, 0x1059de0
push esi
push 0x502
push edi
call dword [0x100130c]
cmp word [0x1059de0], 0
jne 0x1003db8
mov dword [0x1059dd8], 1
jmp 0x1003e37
push 0
push 9
push 0x110a
push dword [0x1019060]
call dword [fcn.01001300]
push 0
push esi
lea ecx, [ebp - 0x208]
push ecx
push eax
call fcn.010050e4
push eax
call fcn.0100a9b2
test eax, eax
je 0x1003e2b
cmp dword [ebp + 0xc], 0
je 0x1003df6
push edi
call dword [0x1001308]
mov edi, eax
push 0x100
lea eax, [ebp - 0x204]
push eax
push edi
call dword [0x1001304]
push 0x10
lea eax, [ebp - 0x204]
push eax
push 0x94
push edi
push dword [0x1019510]
call fcn.01009ee7
xor eax, eax
add esp, 0x14
inc eax
jmp 0x1003e39
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01016b82
leave
ret 8

Function at 0x10045db
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84c
mov eax, dword [0x10191f4]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x80c]
push eax
push 0x1001688
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov esi, dword [fcn.01001300]
xor ebx, ebx
test eax, eax
jne 0x100472a
lea eax, [ebp - 0x84c]
push eax
push edi
mov dword [ebp - 0x84c], 0x2c
call dword [0x1001328]
mov eax, dword [0x1019070]
push ebx
push ebx
mov dword [ebp - 0x820], eax
mov eax, dword [0x1019064]
mov edi, 0x101d
push edi
push eax
mov dword [ebp - 0x808], eax
call esi
push ebx
push 1
push edi
push dword [ebp - 0x808]
mov dword [ebp - 0x81c], eax
call esi
push ebx
push 2
push edi
push dword [ebp - 0x808]
mov dword [ebp - 0x818], eax
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x814], eax
xor eax, eax
cmp dword [0x1019080], ebx
push 0x40
setne al
mov dword [ebp - 0x810], eax
lea eax, [ebp - 0x84c]
push eax
push 3
push ebx
push 0x1001788
push dword [ebp - 0x80c]
call edi
push 4
push 0x10190c0
push 4
push ebx
push 0x1001794
push dword [ebp - 0x80c]
call edi
mov eax, dword [0x1019060]
push 3
push 0x400
lea ecx, [ebp - 0x804]
push ecx
push ebx
push 9
push 0x110a
push eax
mov dword [ebp - 0x808], eax
call esi
push eax
push dword [ebp - 0x808]
call fcn.01008402
lea eax, [ebp - 0x804]
push eax
call dword [fcn.01001228]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x804]
push eax
push 1
push ebx
push 0x10017a8
push dword [ebp - 0x80c]
call edi
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 9
push 0x110b
push dword [0x1019060]
call esi
mov eax, dword [0x1019078]
cmp eax, ebx
je 0x100474a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x1019074]
cmp eax, ebx
je 0x100475a
push eax
call dword [0x10010e8]
push ebx
call dword [0x1001324]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01016b82
leave
ret 4
Function at 0x1004a77
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1050
call fcn.01016e70
mov eax, dword [0x10191f4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
mov dword [ebp - 0x104c], eax
call dword [0x1001348]
test eax, eax
je 0x1004cc7
push dword [ebp + 0xc]
push eax
call dword [0x10012cc]
test eax, eax
mov dword [ebp - 0x100c], eax
je 0x1004cc7
push ebx
push esi
push edi
push 0xc
pop ecx
push 0x30
xor eax, eax
pop esi
lea edi, [ebp - 0x1048]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1048]
push eax
push 0
push 0x500
push dword [ebp - 0x100c]
mov dword [ebp - 0x1048], esi
mov dword [ebp - 0x1044], 1
mov dword [ebp - 0x103c], 3
call dword [0x1001344]
mov ebx, 0x400
push ebx
push 2
push dword [ebp - 0x100c]
call dword [0x1001340]
test eax, eax
jne 0x1004b0a
lea eax, [ebp - 0x1010]
push eax
push 0x1001700
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1004cb8
lea ecx, [ebp - 0x1014]
push ecx
lea ecx, [ebp - 0x1004]
push ecx
lea ecx, [ebp - 0x1050]
push ecx
push eax
lea ecx, [ebp - 0x1018]
push ecx
lea ecx, [ebp - 0x804]
push ecx
mov dword [ebp - 0x1008], eax
push eax
jmp 0x1004c8c
cmp dword [ebp - 0x1008], 0
jne 0x1004bf0
push 0xc
pop ecx
xor eax, eax
lea edi, [ebp - 0x1048]
rep stosd dword es:[edi], eax
and dword [ebp - 0x103c], eax
lea eax, [ebp - 0x1048]
push eax
push 0
push 0x500
push dword [ebp - 0x100c]
mov dword [ebp - 0x1048], esi
mov dword [ebp - 0x1044], 1
call dword [0x1001344]
push 0xc
pop ecx
xor eax, eax
lea edi, [ebp - 0x1048]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1048]
push eax
push 2
push 0xffffffffffffffff
push dword [ebp - 0x100c]
mov dword [ebp - 0x1048], esi
mov dword [ebp - 0x1044], 0x10
mov dword [ebp - 0x1040], 0x800
call dword [0x1001434]
push 0xc
xor eax, eax
pop ecx
lea edi, [ebp - 0x1048]
rep stosd dword es:[edi], eax
and dword [ebp - 0x1040], eax
mov edi, dword [ebp - 0x1008]
and dword [ebp - 0x103c], 0
lea eax, [ebp - 0x804]
add edi, 0x502
push eax
mov dword [ebp - 0x1048], esi
mov dword [ebp - 0x1044], 0x13
mov dword [ebp - 0x1038], edi
mov dword [ebp - 0x1024], eax
call dword [fcn.01001228]
mov dword [ebp - 0x1020], eax
lea eax, [ebp - 0x1048]
push eax
push 0
push edi
push dword [ebp - 0x100c]
call dword [0x1001434]
inc dword [ebp - 0x1008]
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x1050]
push eax
push 0
lea eax, [ebp - 0x1018]
push eax
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x1008]
push dword [ebp - 0x1010]
mov dword [ebp - 0x1018], ebx
mov dword [ebp - 0x1014], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x1004b6c
push dword [ebp - 0x1010]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x104c]
call dword [0x1001338]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.01016b82
leave
ret 8
Function at 0x1005054
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push esi
mov esi, dword [0x1001368]
push 0xe
call esi
push 0xd
mov dword [0x10599a4], eax
call esi
push 8
mov dword [0x10599a8], eax
call esi
push 5
mov dword [0x10599ac], eax
call esi
push eax
push dword [0x1019074]
mov dword [0x10599b0], eax
call dword [fcn.010010e4]
push dword [0x10599b0]
push 0
push 0x1001
push dword [0x1019064]
call dword [fcn.01001300]
pop esi
ret

Function at 0x100545c
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.01016e70
mov eax, dword [0x10191f4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x100c], eax
lea eax, [ebp - 0x1008]
push eax
push 0x1001700
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x10055a6
push ebx
push esi
push edi
push 3
mov esi, 0x400
push esi
lea eax, [ebp - 0x1004]
push eax
xor ebx, ebx
push ebx
push 9
push 0x110a
push dword [0x1019060]
call dword [fcn.01001300]
push eax
push dword [0x1019060]
call fcn.01008402
lea edi, [ebp - 0x1004]
push 0x5c
push edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
cmp eax, ebx
pop ecx
pop ecx
je 0x10054ea
inc eax
inc eax
mov edi, eax
jne 0x10054d5
push edi
push esi
lea eax, [ebp - 0x804]
push eax
call fcn.010051cb
lea eax, [ebp - 0x804]
push eax
push 0x1004775
push dword [ebp - 0x100c]
push 0x70
push dword [0x1019510]
call dword [fcn.01001334]
cmp eax, 1
jne 0x1005597
cmp word [ebp - 0x804], bx
je 0x10054ea
push ebx
push ebx
lea eax, [ebp - 0x1010]
push eax
push ebx
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x1008]
call fcn.0100a0c1
test eax, eax
jne 0x1005568
push 0x10
push 0xac
push 0xab
push dword [ebp - 0x100c]
push dword [0x1019510]
call fcn.01009ee7
add esp, 0x14
jmp 0x10054ea
lea eax, [ebp - 0x1004]
push eax
call dword [fcn.01001228]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x1004]
push eax
push 1
push ebx
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.01016b82
leave
ret 4