joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5219c0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x9c
call fcn.005b1a50
mov eax, dword [0x638bb0]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xb0]
push ebx
mov ebx, dword [esp + 0xac]
push ebp
mov ebp, dword [esp + 0xac]
push esi
mov esi, dword [esp + 0xac]
push edi
mov edi, dword [esp + 0xbc]
mov dword [esp + 0x14], eax
mov eax, dword [esi]
mov dword [esp + 0x10], 0
test edi, edi
je 0x521a2d
cmp edi, eax
je 0x521a21
test ebp, ebp
je 0x521aa0
test ebx, ebx
js 0x521aa0
mov dword [esp + 0x10], 1
mov dword [esi], edi
jmp 0x521a33
test eax, eax
je 0x521aa0
mov edi, eax
push edi
call fcn.00496fa0
add esp, 4
test al, 2
jne 0x521aa0
test ebp, ebp
je 0x521bab
push edi
mov dword [esp + 0x14], 1
call fcn.004b6540
add esp, 4
cmp eax, 0x90
jg 0x521aa0
cmp eax, ebx
jge 0x521abb
push dword [esp + 0x14]
push edi
push dword [esi + 4]
call fcn.004bce50
add esp, 0xc
test eax, eax
je 0x521aa0
push ebx
push ebp
push dword [esi + 4]
call fcn.004bd000
add esp, 0xc
test eax, eax
je 0x521aa0
lea ebp, [esi + 0x10]
push ebp
lea eax, [esi + 0x14]
push eax
push dword [esi + 4]
call fcn.004bcdb0
add esp, 0xc
test eax, eax
jne 0x521ad7
xor eax, eax
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005b0882
add esp, 0x9c
ret
cmp ebx, 0x90
ja 0x521aa0
push ebx
lea eax, [esi + 0x14]
push ebp
push eax
call sub.VCRUNTIME140.dll_memcpy
lea ebp, [esi + 0x10]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x90
je 0x521afa
mov eax, 0x90
sub eax, ecx
push eax
lea eax, [esi + 0x14]
add eax, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ebx, dword [esp + 0x10]
xor ecx, ecx
mov al, byte [esi + ecx + 0x14]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x90
jl 0x521b00
mov ebp, dword [esp + 0x14]
push ebp
push edi
push dword [esi + 8]
call fcn.004bce50
add esp, 0xc
test eax, eax
je 0x521bb8
push edi
call fcn.004b6540
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 8]
call fcn.004bd000
add esp, 0x10
test eax, eax
je 0x521bb8
xor ecx, ecx
nop dword [eax]
mov al, byte [esi + ecx + 0x14]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x90
jl 0x521b50
push ebp
push edi
push dword [esi + 0xc]
call fcn.004bce50
add esp, 0xc
test eax, eax
je 0x521bb8
push edi
call fcn.004b6540
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 0xc]
call fcn.004bd000
add esp, 0x10
test eax, eax
je 0x521bb8
push dword [esi + 8]
push dword [esi + 4]
call fcn.004bd190
xor ebp, ebp
add esp, 8
test eax, eax
mov ecx, 1
cmovne ebp, ecx
jmp 0x521bba
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x521b8f
jmp 0x521afe
xor ebp, ebp
test ebx, ebx
je 0x521bd0
lea eax, [esp + 0x18]
push 0x90
push eax
call fcn.00401320
add esp, 8
mov eax, ebp
jmp 0x521aa2

Function at 0x55e1a0
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x55e1b4
mov dword [esp + 0x18], fcn.0055c980
jmp fcn.00555ee0
mov dword [esp + 0x18], fcn.0055bc20
jmp fcn.00555be0
Function at 0x5a2cd0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.005b1a50
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x18]
inc ebp
push edi
mov edi, dword [esp + 0x20]
mov eax, dword [esi + 4]
mov ecx, dword [edi + 8]
mov eax, dword [eax + 0x64]
test byte [eax + 0x30], 1
je 0x5a2d5a
mov edx, dword [esp + 0x24]
lea eax, [edx + ebp]
cmp eax, ecx
ja 0x5a2d5e
add dword [edi + 0x14], edx
sub ecx, edx
add dword [edi + 0x18], edx
sub dword [edi + 0xc], edx
mov dword [edi + 8], ecx
mov eax, dword [edi + 0x14]
push ebx
push dword [esi + 0x3cc]
mov al, byte [eax + ecx - 1]
movzx ebx, al
mov byte [esp + 0x30], al
mov dword [esp + 0x24], ebx
call fcn.004ba910
push eax
call fcn.004b6550
mov esi, dword [edi + 8]
add esp, 8
mov dword [esp + 0x18], esi
and eax, 0x200000
je 0x5a2d67
sub esi, ebx
mov eax, 1
dec esi
pop ebx
mov dword [edi + 8], esi
pop edi
pop esi
pop ebp
add esp, 0xc
ret
cmp ebp, ecx
jbe 0x5a2d12
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
lea ecx, [ebx + ebp]
mov eax, esi
mov ebx, esi
xor eax, ecx
sub ebx, ecx
xor ebx, ecx
or ebx, eax
mov eax, 0x100
xor ebx, esi
shr ebx, 0x1f
dec ebx
cmp esi, eax
cmovb eax, esi
xor ebp, ebp
mov dword [esp + 0x10], eax
test eax, eax
je 0x5a2de3
mov edx, dword [esp + 0x20]
dec esi
mov edi, dword [edi + 0x14]
shr edx, 0x1f
add edi, esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], edx
mov eax, esi
lea edi, [edi - 1]
sub eax, ebp
mov ecx, ebp
shr ecx, 0x1f
inc ebp
shr eax, 0x1f
xor al, cl
xor cl, dl
or al, cl
movzx ecx, byte [esp + 0x2c]
dec al
movzx edx, al
movzx eax, byte [edi + 1]
xor ecx, eax
and edx, ecx
not edx
and ebx, edx
mov edx, dword [esp + 0x14]
cmp ebp, dword [esp + 0x10]
jb 0x5a2da5
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
not ebx
movzx ecx, bl
inc eax
dec ecx
shr ecx, 0x1f
neg ecx
and eax, ecx
sub esi, eax
mov dword [edi + 8], esi
mov dword [esp + 0x2c], ecx
not ecx
pop ebx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
and ecx, 1
pop edi
pop esi
or eax, ecx
pop ebp
add esp, 0xc
ret
Function at 0x10186e3
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x102c3b0]
mov byte [0x102c3ac], 1
test eax, eax
je 0x1018706
push 0
push eax
push 0x1017f2f
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.01017fee
push 0xc000013a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop ebp
ret 4

Function at 0x1018c57
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 8], edi
je 0x1018cd0
push ebx
call fcn.01017f37
test al, al
je 0x1018d08
cmp byte [0x102c058], 0
je 0x1018c8b
push edi
lea eax, [ebp - 4]
push eax
push dword [esi + 8]
jmp 0x1018cbc
lea eax, [ebp - 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x18]
dec eax
cmp byte [ebp + 8], 0
movzx ecx, ax
mov eax, dword [esi + 8]
lea ebx, [eax - 2]
jne 0x1018caf
mov ebx, eax
movsx ecx, cx
cmp ecx, ebx
push edi
jl 0x1018cd6
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [esi + 0x800c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
and dword [esi + 8], 0
pop ebx
pop edi
pop esi
leave
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleW]
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [esi + 0x800c]
push eax
push dword [esi]
call edi
cmp byte [ebp + 8], 0
je 0x1018ccb
push 0
lea eax, [ebp - 4]
push eax
push 2
lea eax, [esi + ebx*2 + 0x800c]
push eax
push dword [esi]
call edi
jmp 0x1018ccb
push edi
push edi
push 0x8000
lea eax, [esi + 0xc]
push eax
push dword [esi + 8]
lea eax, [esi + 0x800c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
cmp ebx, edi
je 0x1018ccb
cmp byte [ebx + esi + 0xb], 0
jne 0x1018d39
dec ebx
cmp ebx, edi
je 0x1018ccb
mov edi, 0x80070000
push 0
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [esi + 0xc]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1018d82
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
je 0x1018d8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1018d77
and eax, 0xffff
or eax, edi
push eax
push 0x1008120
call fcn.01018811
sub ebx, dword [ebp + 8]
jne 0x1018d42
jmp 0x1018ccb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1018d9d
and eax, 0xffff
or eax, edi
mov dword [ebp - 4], eax
push 0x1029268
lea eax, [ebp - 4]
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x1020654
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 4
pop esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push 0x100cc98
push 0x80000002
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10206b9
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x100cce0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, edi
pop ebx
je 0x10206c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10206de
cmp dword [ebp - 8], esi
je 0x10206cb
push 0xd
pop eax
jmp 0x10206de
cmp dword [ebp - 0xc], edi
jne 0x10206dc
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
inc eax
jmp 0x10206e7
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x1020941
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
cmp dword [esi + 4], edi
je 0x102097c
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x18], eax
lea eax, [ebp - 8]
push eax
push esi
push edi
push 2
push edi
push 0x100cd49
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
jmp 0x102098c
push esi
push 1
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
je 0x1020995
mov dword [ebp - 4], eax
jmp 0x1020a07
push ebx
lea ebx, [esi + 0x10]
mov dword [ebx], 0x400
cmp dword [esi + 4], edi
jne 0x10209b9
push ebx
push edi
push edi
push edi
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10209b9
mov dword [ebx], edi
mov eax, dword [ebx]
cmp eax, edi
je 0x10209d8
push edi
push eax
call fcn.01019232
pop ecx
pop ecx
mov dword [esi + 0x14], eax
cmp eax, edi
jne 0x10209d8
mov dword [ebp - 4], 0xe
jmp 0x1020a06
cmp dword [esi + 4], edi
jne 0x1020a03
mov ebx, dword [ebx]
cmp ebx, edi
je 0x1020a03
lea eax, [ebp + 0xc]
push eax
push dword [esi + 0x14]
mov dword [ebp + 0xc], ebx
push edi
push edi
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
je 0x1020a03
mov dword [ebp - 4], eax
jmp 0x1020a06
mov dword [esi + 0xc], edi
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 0xc

Function at 0x1020a15
Capabilities:
Set registry value

Disassembly:
xor eax, eax
cmp dword [ecx + 8], eax
je 0x1020a41
cmp dword [ecx + 4], eax
je 0x1020a41
push esi
mov esi, dword [ecx + 0x18]
cmp esi, eax
je 0x1020a40
mov edx, dword [ecx + 0x14]
cmp edx, eax
je 0x1020a40
push dword [ecx + 0xc]
push edx
push 3
push eax
push esi
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret
Function at 0x1020f03
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x102c358]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x418], ecx
lea ecx, [ebp - 0x408]
push ecx
xor ebx, ebx
push 0x20019
push ebx
push 0x100cc20
push eax
mov dword [ebp - 0x40c], ebx
mov dword [ebp - 0x408], ebx
mov dword [ebp - 0x410], ebx
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x414], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x1020f8a
push ebx
push ebx
push ebx
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x410]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, ebx
je 0x1020f95
mov dword [ebp - 0x40c], eax
jmp 0x1021033
cmp dword [ebp - 0x410], ebx
je 0x1021033
push edi
xor edi, edi
cmp dword [ebp - 0x410], ebx
jbe 0x1021032
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x404]
push eax
push edi
push dword [ebp - 0x408]
mov dword [ebp - 0x414], 0x400
mov byte [ebp - 0x404], bl
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, ebx
jne 0x102102c
push 0x100cc68
lea eax, [ebp - 0x404]
push eax
call fcn.010244bd
cmp eax, 2
je 0x1021021
push 0x100cc84
lea eax, [ebp - 0x404]
push eax
call fcn.010244bd
cmp eax, 2
je 0x1021021
mov ecx, dword [ebp - 0x418]
lea eax, [ebp - 0x404]
push eax
call fcn.01020dc9
inc edi
cmp edi, dword [ebp - 0x410]
jb 0x1020fb0
jmp 0x1021032
mov dword [ebp - 0x40c], eax
pop edi
cmp dword [ebp - 0x408], ebx
je 0x102104d
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x408], ebx
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x40c], ebx
pop ebx
sete al
xor ecx, ebp
call fcn.01027ce5
leave
ret 4
Function at 0x102191f
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
xor edi, edi
call fcn.0102166e
test eax, eax
jne 0x1021959
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1021959
test eax, eax
jle 0x1021952
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x1021a60
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
or dword [esi + 0x20], eax
or dword [esi + 4], ecx
mov eax, dword [esi + 0x20]
push ebx
xor ebx, ebx
inc ebx
cmp ecx, ebx
jne 0x102197f
mov ecx, esi
call fcn.010206f0
or dword [esi + 0x20], ebx
mov dword [esi + 4], ebx
jmp 0x102198c
test cl, 8
je 0x102198c
and eax, 0xfffffffb
or eax, ebx
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
cmp eax, ebx
je 0x10219c8
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1021998
sub eax, ecx
lea edi, [eax + 1]
push ebx
push edi
call fcn.01019232
pop ecx
pop ecx
mov dword [esi + 0x10], eax
cmp eax, ebx
je 0x1021a24
push dword [ebp + 0x18]
push edi
push eax
call fcn.01020c28
mov edi, eax
cmp edi, ebx
jl 0x1021a5f
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x10219fe
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10219d2
sub eax, ecx
lea edi, [eax + 1]
push ebx
push edi
call fcn.01019232
pop ecx
pop ecx
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x1021a24
push dword [ebp + 0x1c]
push edi
push eax
call fcn.01020c28
mov edi, eax
cmp edi, ebx
jl 0x1021a5f
mov eax, dword [ebp + 0x20]
cmp eax, ebx
je 0x1021a3b
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1021a08
sub eax, ecx
lea edi, [eax + 1]
push ebx
push edi
call fcn.01019232
pop ecx
pop ecx
mov dword [esi + 0x18], eax
cmp eax, ebx
jne 0x1021a2b
mov edi, 0x8007000e
jmp 0x1021a5f
push dword [ebp + 0x20]
push edi
push eax
call fcn.01020c28
mov edi, eax
cmp edi, ebx
jl 0x1021a5f
push dword [ebp + 8]
mov ecx, esi
call fcn.010214db
test eax, eax
jne 0x1021a5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1021a5d
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x1c

Function at 0x1023e71
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x1023e9e
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
cmp dword [ebp + 8], ebx
je 0x1023f73
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x1023f73
push dword [ebp + 8]
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.01023e71
test eax, eax
jne 0x1023ee9
mov dword [ebp - 4], 2
jmp 0x1023f85
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x1023f06
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x1023f85
push edi
call fcn.01019242
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x1023f1c
mov dword [ebp - 4], 8
jmp 0x1023f7a
push ebx
push edi
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1023f44
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x1008408
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x1023f4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x1023f7a
mov eax, dword [ebp - 0xc]
mov cx, word [eax + 0xa]
mov word [esi], cx
mov cx, word [eax + 8]
mov word [esi + 2], cx
mov cx, word [eax + 0xe]
mov word [esi + 4], cx
mov ax, word [eax + 0xc]
mov word [esi + 6], ax
jmp 0x1023f7a
mov dword [ebp - 4], 0xd
test ebx, ebx
je 0x1023f85
push ebx
call fcn.01017ef4
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp dword [ebp - 4], eax
pop edi
pop esi
sete al
pop ebx
leave
ret 8
Function at 0x102400e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
xor eax, eax
lea ecx, [ebp - 8]
push ecx
inc eax
xor edi, edi
push eax
push edi
push 0x1011720
push 0x80000002
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102411c
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push edi
push edi
push edi
mov ebx, 0x10116e4
push ebx
push dword [ebp - 8]
call esi
test eax, eax
jne 0x102411a
push eax
push dword [ebp - 4]
call fcn.01019232
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x1024085
mov dword [ebp - 0xc], 0xe
jmp 0x102411a
push dword [ebp - 4]
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push edi
push 0
push 0
push ebx
push dword [ebp - 8]
call esi
test eax, eax
je 0x10240ab
mov dword [ebp - 0xc], eax
jmp 0x102411a
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x102411a
mov eax, edi
mov ecx, edi
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x10240b9
sub eax, esi
sar eax, 1
lea esi, [edi + eax*2 + 2]
add ebx, edi
cmp esi, ebx
jae 0x102411a
cmp dword [ebp + 8], 0
je 0x10240e3
push esi
push ecx
call dword [ebp + 8]
test eax, eax
jne 0x10240e3
and dword [ebp - 0x10], eax
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10240e8
sub eax, edx
sar eax, 1
lea ecx, [esi + eax*2 + 2]
mov eax, ecx
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x10240ff
sub eax, edx
sar eax, 1
lea esi, [ecx + eax*2 + 2]
mov eax, dword [ebp - 4]
add eax, edi
cmp esi, eax
jb 0x10240d1
pop esi
pop ebx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1024128
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
cmp dword [ebp - 8], 0
je 0x1024137
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x1024142
push edi
call fcn.01017ef4
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp dword [ebp - 0xc], eax
pop edi
sete al
leave
ret 8
Function at 0x102415d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
push 4
pop esi
xor edi, edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
cmp dword [ebp + 8], ebx
je 0x10241cf
cmp dword [ebp + 0xc], ebx
je 0x10241cf
cmp dword [ebp + 0x10], ebx
je 0x10241cf
cmp dword [ebp + 0x14], ebx
je 0x10241cf
lea eax, [ebp - 4]
push eax
push 1
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x10241bf
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x10241c3
mov edi, eax
jmp 0x10241d4
cmp dword [ebp - 8], esi
je 0x10241d4
mov edi, 0x70c
jmp 0x10241d4
mov edi, 0xa0
cmp dword [ebp - 4], ebx
je 0x10241e2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp edi, ebx
pop edi
pop esi
sete al
pop ebx
leave
ret 0x10

Function at 0x10241fc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
push edi
add eax, eax
push eax
xor esi, esi
push esi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], esi
mov dword [ebp + 0xc], eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 1
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x1024250
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push esi
push esi
push dword [ebp + 0x18]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
je 0x1024252
mov edi, eax
cmp dword [ebp - 4], esi
je 0x1024260
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp edi, esi
pop edi
sete al
pop esi
leave
ret 0x14
Function at 0x1024279
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
xor edi, edi
mov eax, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x1024293
sub eax, ecx
sar eax, 1
mov esi, eax
cmp ebx, edi
je 0x102434d
cmp dword [ebp + 8], edi
je 0x102434d
cmp dword [ebp + 0xc], edi
je 0x102434d
cmp dword [ebp + 0x10], edi
je 0x102434d
push edi
lea eax, [ebp - 8]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x10242fd
lea eax, [esi + esi + 2]
push eax
push ebx
push 2
push edi
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, edi
je 0x1024302
mov dword [ebp - 4], eax
jmp 0x1024354
push 0x100235c
push ebx
push 0x10117e0
push dword [ebp + 0x10]
push 0x1008408
push dword [ebp + 0xc]
push 0x1011788
push 0x102c3b8
call fcn.01018f8f
push eax
call fcn.01018f8f
push eax
call fcn.01018f8f
push eax
call fcn.01018f8f
push eax
call fcn.01018f8f
push eax
call fcn.01018f8f
push eax
call fcn.01018f8f
jmp 0x1024354
mov dword [ebp - 4], 0xa0
cmp dword [ebp - 8], edi
je 0x1024362
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp dword [ebp - 4], edi
pop edi
pop esi
sete al
pop ebx
leave
ret 0x10