joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48e600
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.004e3510
mov eax, dword [0x514bc0]
xor eax, esp
mov dword [esp + 0x2000], eax
push esi
push 1
push str.RestoreFolder
push str.General
mov esi, ecx
call fcn.00499a90
push 0x800
push 0x4fdab8
test eax, eax
je 0x48e67b
lea eax, [esp + 0xc]
push eax
push str.LastFolder
push str.General
call fcn.00499a60
cmp word [esp + 4], 0
je 0x48e709
lea ecx, [esp + 4]
push ecx
call fcn.00443cc0
test al, al
je 0x48e709
push 0x800
lea edx, [esp + 8]
push edx
jmp 0x48e6fd
lea eax, [esp + 0x100c]
push eax
push str.StartFolder
push 0x4ff860
call fcn.00499a60
push 0x800
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x100c]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor eax, eax
mov word [esp + 0x1002], ax
cmp word [esp + 4], ax
je 0x48e709
mov edx, 0x4fe4d8
lea ecx, [esp + 4]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x48e6ea
test ax, ax
je 0x48e6e6
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x48e6ea
add ecx, 4
add edx, 4
test ax, ax
jne 0x48e6c4
xor eax, eax
jmp 0x48e6ef
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x48e709
push 0x800
lea ecx, [esp + 8]
push ecx
add esi, 0x101c
push esi
call fcn.00467570
mov ecx, dword [esp + 0x2004]
pop esi
xor ecx, esp
call fcn.004e34f4
add esp, 0x2004
ret
Function at 0x48fde0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x70
mov eax, dword [0x514bc0]
xor eax, esp
mov dword [esp + 0x6c], eax
push esi
push edi
push 1
push str.ColorAttr
push str.FileList
mov esi, ecx
call fcn.00499a90
test eax, eax
setne al
lea ecx, [esp + 8]
mov byte [esi + 0x2120], al
mov edx, dword [0x53a464]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [0x52c130]
mov ecx, dword [0x53a464]
push 0
push eax
push 0xb
push ecx
push 0
push 0
push 0
push 0
push 0x44a00249
push 0x4fdab8
push str.SysListView32
push 0x300
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 1
push str.Detailed
push str.FileList
mov dword [esi], eax
call fcn.00499a90
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 3
push eax
mov ecx, esi
call fcn.0048efb0
push 1
push str.FullRow
push str.FileList
mov edi, 0x400
call fcn.00499a90
test eax, eax
je 0x48fe97
mov edi, 0x420
push 0
push str.ShowGrid
push str.FileList
call fcn.00499a90
test eax, eax
je 0x48feaf
or edi, 1
push 0
push str.SingleClick
push str.FileList
call fcn.00499a90
test eax, eax
je 0x48fef0
push 0
push str.Underline
push str.FileList
or edi, 0x48
call fcn.00499a90
cmp eax, 1
jne 0x48fee5
or edi, 0x800
jmp 0x48fef0
cmp eax, 2
jne 0x48fef0
or edi, 0x1000
mov edx, dword [esi]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x1036
push edx
call edi
push 0
push 2
push 0x21
push 0xd
push 0xd
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0048e790
push 0x5c
push 0
lea eax, [esp + 0x20]
push eax
push str.Font
push str.FileList
call fcn.00499ab0
cmp word [esp + 0x34], 0
je 0x48ffc5
movzx edx, byte [esp + 0x33]
movzx eax, byte [esp + 0x32]
lea ecx, [esp + 0x34]
push ecx
movzx ecx, byte [esp + 0x35]
push edx
movzx edx, byte [esp + 0x38]
push eax
movzx eax, byte [esp + 0x3b]
push ecx
movzx ecx, byte [esp + 0x3e]
push edx
movzx edx, byte [esp + 0x41]
push eax
movzx eax, byte [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateFontW]
test eax, eax
je 0x48ffa3
push 1
push eax
mov eax, dword [esi]
push 0x30
push eax
call edi
push 0
push str.FontColor
push str.FileList
call fcn.00499a90
test eax, eax
je 0x48ffc5
mov ecx, dword [esi]
push eax
push 0
push 0x1024
push ecx
call edi
mov ecx, esi
call fcn.0048e890
mov ecx, esi
call fcn.0048ee40
mov edx, dword [esi]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x539324], 1
je 0x48fff0
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, esi
call fcn.0048f040
mov ecx, dword [esp + 0x74]
pop edi
pop esi
xor ecx, esp
call fcn.004e34f4
add esp, 0x70
ret
Function at 0x494870
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword [esp + 4]
push ebx
test eax, eax
je 0x494988
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x494880
sub eax, edx
sar eax, 1
mov ebx, eax
je 0x494988
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x4948a7
pop ebx
ret 4
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ebp, [ebx + ebx + 2]
push ebp
push 0x2002
call edi
mov esi, eax
test esi, esi
je 0x4948f2
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4948f2
mov edx, dword [esp + 0x14]
lea ecx, [ebx + 1]
push ecx
push eax
push edx
call fcn.0046a500
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push ebp
push 0x2002
call edi
mov edi, eax
test edi, edi
je 0x494932
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x494932
mov eax, dword [esp + 0x14]
inc ebx
push ebx
push esi
push eax
call fcn.0046a500
push esi
push esi
call dword [sym.imp.USER32.dll_CharToOemA]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 7
call dword [sym.imp.USER32.dll_SetClipboardData]
push ebp
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x49497f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x49497f
mov ecx, dword [esp + 0x14]
mov edx, eax
sub edx, ecx
jmp 0x494960
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x494960
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4

Function at 0x495520
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
call fcn.00446760
cmp eax, 0x600
jb 0x495543
movzx ecx, byte [esp + 8]
mov esi, dword [esi]
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push ecx
push esi
call edx
pop esi
ret 4
mov eax, dword [esi + 8]
mov cl, byte [esp + 8]
mov byte [eax + 0x64], cl
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4955c3
push ebx
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
inc edi
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e330d
add esp, 4
mov ebx, eax
mov eax, dword [esi + 0xc]
push edi
push ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push 0
push 0xb1
push ecx
call edi
mov edx, dword [esi + 0xc]
push 1
push 8
push 0x102
push edx
call edi
mov eax, dword [esi + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push ebx
call fcn.004e44b4
add esp, 4
pop edi
pop ebx
pop esi
ret 4
Function at 0x4957f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x268
mov eax, dword [0x514bc0]
xor eax, esp
mov dword [esp + 0x264], eax
push ebx
push ebp
mov ebp, dword [esp + 0x274]
push esi
push 0x80
push 0x4fdab8
lea eax, [esp + 0x178]
push eax
mov esi, ecx
mov ecx, dword [str.Passwords]
push 0x501ed4
push ecx
call fcn.00499a60
cmp word [esp + 0x170], 0
push 0x100
lea edx, [esp + 0x174]
push edx
setne bl
call fcn.00464a50
push ebp
lea eax, [esp + 0x10]
mov edx, 0x32
test bl, bl
je 0x49589a
push 0x501ecc
push eax
call fcn.00458640
mov edx, dword [str.Passwords]
add esp, 0xc
push 0x80
push 0x4fdab8
push esi
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.00499a60
cmp word [esi], 0
jne 0x495919
xor al, al
jmp 0x4959e0
push str.PE_d
push eax
call fcn.00458640
push 0x100
lea ecx, [esp + 0x80]
push 0
push ecx
call fcn.004e4400
mov ecx, dword [str.Passwords]
add esp, 0x18
push 0x100
push 0
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.00499ab0
test eax, eax
je 0x495893
xor ecx, ecx
test eax, eax
jle 0x4958f1
mov dl, cl
add dl, 0x49
xor byte [esp + ecx + 0x70], dl
inc ecx
cmp ecx, eax
jl 0x4958e3
push 0x80
push esi
lea eax, [esp + 0x78]
push eax
call fcn.0046a5c0
push 0x100
lea edx, [esp + 0x74]
xor ecx, ecx
push edx
mov word [esi + 0xfe], cx
call fcn.00464a50
push edi
push ebp
lea eax, [esp + 0x14]
push 0x501eb8
push eax
mov edx, 0x32
call fcn.00458640
mov edx, dword [str.Passwords]
add esp, 0xc
push 0xc8
push 0x4fdab8
lea edi, [esi + 0x100]
push edi
lea ecx, [esp + 0x1c]
push ecx
push edx
call fcn.00499a60
push ebp
lea eax, [esp + 0x14]
push 0x501eb0
push eax
mov edx, 0x32
call fcn.00458640
mov eax, dword [str.Passwords]
add esp, 0xc
push 0x800
push 0x4fdab8
lea ecx, [esi + 0x290]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.00499a60
push ebp
lea ecx, [esp + 0x14]
push 0x501ea8
push ecx
mov edx, 0x32
call fcn.00458640
mov eax, dword [str.Passwords]
add esp, 0xc
push 0
lea edx, [esp + 0x14]
push edx
push eax
call fcn.00499a90
test eax, eax
setne cl
cmp word [edi], 0
mov byte [esi + 0x1420], cl
push 0xc8
je 0x4959d0
push edi
jmp 0x4959d1
push esi
add esi, 0x1290
push esi
call fcn.00467570
mov al, 1
pop edi
mov ecx, dword [esp + 0x270]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e34f4
add esp, 0x268
ret 4
Function at 0x498550
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x5a4
mov eax, dword [0x514bc0]
xor eax, esp
mov dword [esp + 0x5a0], eax
push ebp
mov ebp, dword [esp + 0x5ac]
push edi
mov edi, dword [esp + 0x5b4]
cmp word [edi], 0
je 0x49864b
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x49864b
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
xor esi, esi
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push esi
push esi
push esi
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
push esi
push ecx
mov dword [esp + 0x30], 0xc8
call ebx
test eax, eax
jne 0x498628
lea ebx, [ebx]
lea edx, [esp + 0x20]
push edx
push edi
lea eax, [esp + 0x1b8]
push 0x5020ec
push eax
mov edx, 0x200
call fcn.00458640
add esp, 0x10
lea ecx, [esp + 0x1b0]
push ecx
push ebp
call fcn.00498550
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
push ecx
inc esi
push esi
push edx
mov dword [esp + 0x30], 0xc8
call ebx
test eax, eax
je 0x4985d0
mov eax, dword [esp + 0x14]
pop esi
pop ebx
test eax, eax
je 0x498639
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x49864b
inc dword [0x565bb8]
mov ecx, dword [esp + 0x5a8]
pop edi
pop ebp
xor ecx, esp
call fcn.004e34f4
add esp, 0x5a4
ret 8
Function at 0x4986d0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x5b0
mov eax, dword [0x514bc0]
xor eax, esp
mov dword [esp + 0x5ac], eax
push ebx
mov ebx, dword [esp + 0x5bc]
push edi
mov edi, dword [esp + 0x5bc]
push 0xf
push str.SoftwareWinRAR
push ebx
mov dword [esp + 0x2c], ebx
call fcn.0046a970
test eax, eax
je 0x498710
xor al, al
jmp 0x4988c3
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x498709
push esi
push 0x100000
call fcn.004e3b96
mov esi, eax
add esp, 4
test esi, esi
jne 0x49874d
mov ecx, 0x52c138
call fcn.0043dc30
xor al, al
jmp 0x4988c2
push ebp
lea ecx, [esp + 0x1c]
push ecx
push esi
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
xor ebp, ebp
push ebp
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1d0]
push ecx
push ebp
push edx
mov dword [esp + 0x30], 0x200
mov dword [esp + 0x3c], 0x100000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x498828
add ebx, 0x1e
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x20]
cmp word [ebx], 0x5c
jne 0x4987a1
add ebx, 2
cmp dword [esp + 0x18], 3
jne 0x4987bd
mov eax, dword [esp + 0x1c]
push eax
push esi
push ebx
lea ecx, [esp + 0x1c8]
mov edx, edi
call fcn.00497ae0
cmp dword [esp + 0x18], 4
jne 0x4987d4
mov ecx, dword [esi]
push ecx
push ebx
lea ecx, [esp + 0x1c4]
call fcn.004979d0
cmp dword [esp + 0x18], 1
jne 0x4987e9
push esi
push ebx
lea ecx, [esp + 0x1c4]
call fcn.00497a70
lea edx, [esp + 0x1c]
push edx
push esi
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1d0]
push edx
inc ebp
push ebp
push eax
mov dword [esp + 0x30], 0x200
mov dword [esp + 0x3c], 0x100000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x498794
push esi
call fcn.004e3342
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add esp, 4
xor esi, esi
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push esi
push esi
push esi
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x40]
push eax
push esi
mov ebp, 0xc8
push ecx
mov dword [esp + 0x30], ebp
call ebx
test eax, eax
jne 0x4988b0
mov ecx, dword [esp + 0x28]
push 0x200
lea edx, [esp + 0x1c0]
push edx
lea eax, [esp + 0x34]
push eax
push ecx
call fcn.00451550
lea edx, [esp + 0x1bc]
push edx
push edi
call fcn.004986d0
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x40]
push edx
inc esi
push esi
push eax
mov dword [esp + 0x30], ebp
call ebx
test eax, eax
je 0x498860
mov eax, dword [esp + 0x14]
pop ebp
test eax, eax
je 0x4988c0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop esi
mov ecx, dword [esp + 0x5b4]
pop edi
pop ebx
xor ecx, esp
call fcn.004e34f4
add esp, 0x5b0
ret 8
Function at 0x498d70
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x404
mov eax, dword [0x514bc0]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
mov esi, dword [esp + 0x40c]
push edi
mov edi, dword [esp + 0x414]
push 0x4fdab8
push edi
mov ecx, esi
call fcn.00497e70
test al, al
jne 0x498dc6
push esi
mov edx, 0x200
lea ecx, [esp + 0xc]
mov eax, edi
call fcn.00498670
test al, al
je 0x498dc6
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [esp + 0x408]
pop edi
pop esi
xor ecx, esp
call fcn.004e34f4
add esp, 0x404
ret 8

Function at 0x498de0
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x408
mov eax, dword [0x514bc0]
xor eax, esp
mov dword [esp + 0x404], eax
push ebx
mov ebx, dword [esp + 0x418]
push esi
mov esi, dword [esp + 0x414]
push edi
mov edi, dword [esp + 0x41c]
push ebx
push edi
mov ecx, esi
call fcn.00497e70
test al, al
jne 0x498e65
push esi
mov edx, 0x200
lea ecx, [esp + 0x14]
mov eax, edi
call fcn.00498670
test al, al
je 0x498e65
lea eax, [esp + 0xc]
push eax
push 0x20006
push 0
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x498e65
mov edx, dword [esp + 0xc]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x498e65
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x410]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e34f4
add esp, 0x408
ret 0xc

Function at 0x4992b0
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
push ebx
push esi
mov edi, ebp
call fcn.00497a70
test al, al
je 0x4992da
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
push esi
lea edi, [esp + 0x24]
mov esi, ebp
call fcn.00498f60
mov esi, eax
test esi, esi
je 0x499328
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4992f1
mov ecx, dword [esp + 0x1c]
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov edi, dword [esp + 0x20]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x10

Function at 0x499340
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x10]
push edi
push eax
push ebx
mov ecx, ebp
mov edi, esi
call fcn.004979d0
test al, al
je 0x49936c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
push ebx
lea edi, [esp + 0x1c]
call fcn.00498f60
mov esi, eax
test esi, esi
je 0x4993a1
push 4
lea ecx, [esp + 0x24]
push ecx
push 4
push 0
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov edi, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x4993b0
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
push ebx
push ebp
push edi
mov edx, esi
call fcn.00497ae0
test al, al
je 0x4993df
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x14
push edi
lea edi, [esp + 0x28]
call fcn.00498f60
mov esi, eax
test esi, esi
je 0x499413
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push 3
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
mov edi, dword [esp + 0x24]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x14

Function at 0x499420
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x28]
push edi
push eax
push ebx
push esi
mov edx, ebp
call fcn.00497c00
test al, al
je 0x499454
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0x18
push ebx
call fcn.00499030
mov esi, eax
xor bl, bl
test esi, esi
je 0x4994c4
lea edx, [esp + 0x28]
push edx
push ebp
lea eax, [esp + 0x24]
push eax
lea ecx, [edi + edi]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x28]
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push esi
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x4994c4
mov eax, dword [esp + 0x28]
shr eax, 1
test edi, edi
jne 0x4994ab
pop edi
xor edx, edx
pop esi
mov word [ebp], dx
pop ebp
mov al, bl
pop ebx
ret 0x18
lea ecx, [edi - 1]
cmp eax, ecx
jb 0x4994b4
mov eax, ecx
pop edi
xor ecx, ecx
pop esi
mov word [ebp + eax*2], cx
pop ebp
mov al, bl
pop ebx
ret 0x18
mov edx, dword [esp + 0x24]
push edi
push edx
push ebp
call fcn.00467570
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 0x18
Function at 0x499560
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x24]
push esi
push ebp
mov edx, ebx
mov dword [esp + 0x38], edi
call fcn.00497d50
test al, al
je 0x49959e
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
push esi
mov esi, ebp
call fcn.00499030
mov esi, eax
mov dword [esp + 0x18], edi
test esi, esi
je 0x4995de
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
push ebx
lea eax, [esp + 0x1c]
push eax
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
mov ebp, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
jne 0x4995de
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x499607
mov eax, dword [esp + 0x24]
push edi
test eax, eax
je 0x4995fa
push eax
push ebx
call fcn.004e4090
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x18
push 0
push ebx
call fcn.004e4400
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 0x18

Function at 0x499650
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
lea eax, [esp + 0x10]
push eax
push esi
mov ecx, ebx
mov edi, SysReAllocString
call fcn.00497fc0
test al, al
je 0x49967b
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
ret 8
push esi
mov esi, edi
call fcn.00499030
mov edi, eax
test edi, edi
jne 0x499691
pop edi
pop esi
shr eax, 1
pop ebx
ret 8
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg esi
sbb esi, esi
not esi
and esi, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
shr eax, 1
pop ebx
ret 8
Function at 0x49a220
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
xor esi, esi
xor ebx, ebx
xor byte [esi + ecx], bl
mov eax, 0xaaaaaaab
mul ebx
shr edx, 1
lea ebx, [edx + ebx + 3]
inc esi
and ebx, 0xffffff
cmp esi, 0x480
jb 0x49a226
pop esi
pop ebx
ret

Function at 0x49a330
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, dword [esp + 0x18]
push ebp
lea eax, [esp + 0x14]
push eax
xor ebx, ebx
push edi
mov esi, ecx
mov dword [esp + 0x1c], ebx
call fcn.0049a250
test eax, eax
je 0x49a35f
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 8
push ebp
lea ecx, [esp + 0x14]
push ecx
push edi
mov ecx, esi
call fcn.0049a250
push ebp
lea edx, [esp + 0x14]
push edx
push edi
mov ecx, esi
mov dword [esi + 0x10], eax
call fcn.0049a250
mov dword [esi + 0x18], eax
push ebp
lea eax, [esp + 0x14]
push eax
push edi
mov ecx, esi
call fcn.0049a250
push ebp
lea ecx, [esp + 0x14]
push ecx
push edi
mov ecx, esi
mov dword [esi + 0x1c], eax
call fcn.0049a250
push ebp
lea edx, [esp + 0x14]
push edx
push edi
mov ecx, esi
mov dword [esi + 0x20], eax
call fcn.0049a250
mov dword [esi + 0x24], eax
push ebp
lea eax, [esp + 0x14]
push eax
push edi
mov ecx, esi
call fcn.0049a250
push ebp
lea ecx, [esp + 0x14]
push ecx
push edi
push 0x100
lea edx, [esi + 0x2c]
push edx
mov ecx, esi
mov dword [esi + 0x28], eax
call fcn.0049a2b0
push ebp
lea eax, [esp + 0x14]
push eax
push edi
mov ecx, esi
call fcn.0049a250
push ebp
lea ecx, [esp + 0x14]
push ecx
push edi
push 0x100
lea edx, [esi + 0x130]
push edx
mov ecx, esi
mov dword [esi + 0x12c], eax
call fcn.0049a2b0
push ebp
lea eax, [esp + 0x14]
push eax
push edi
mov ecx, esi
call fcn.0049a250
push ebp
lea ecx, [esp + 0x14]
push ecx
push edi
push 0x100
lea edx, [esi + 0x234]
mov dword [esi + 0x230], eax
push edx
mov ecx, esi
call fcn.0049a2b0
push ebp
lea eax, [esp + 0x14]
push eax
push edi
mov ecx, esi
call fcn.0049a250
push ebp
lea ecx, [esp + 0x14]
push ecx
push edi
mov ecx, esi
mov dword [esi + 0x334], eax
call fcn.0049a250
push ebp
lea edx, [esp + 0x14]
push edx
push edi
mov ecx, esi
mov dword [esi + 0x338], eax
call fcn.0049a250
push ebp
mov dword [esi + 0x33c], eax
lea eax, [esp + 0x14]
push eax
push edi
push 0x20
lea ecx, [esi + 0x340]
push ecx
mov ecx, esi
call fcn.0049a2b0
push ebp
lea edx, [esp + 0x14]
push edx
push edi
push 0x100
lea eax, [esi + 0x380]
push eax
mov ecx, esi
call fcn.0049a2b0
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, ebx
jbe 0x49a4b8
nop
xor bl, byte [eax + edi]
inc eax
cmp eax, ecx
jb 0x49a4b0
push ebp
lea ecx, [esp + 0x14]
push ecx
push edi
mov ecx, esi
call fcn.0049a250
movzx edx, bl
pop edi
xor ecx, ecx
cmp edx, eax
pop esi
sete cl
pop ebp
mov al, cl
pop ebx
pop ecx
ret 8