joyce8/EMBER2024-capa huggingface dataset:
Function at 0x20daafa
Capabilities:
Encode data using base64
Parse pe header

Disassembly:
dec eax
mov dword [ebp - 0x4c], eax
bts eax, esp
xor eax, esp
rcr al, cl
mov eax, 1
shl eax, cl
bswap cx
mov ecx, dword [edx + 0x14]
jmp 0x1247d44
push ebx
sete bh
mov ebx, dword [edx + 0x34]
jmp 0x1190cf8
mov dword [ebp - 0x2c], ecx
mov ecx, dword [edx + 0x24]
dec eax
stc
mov dword [ebp - 0x50], eax
shr al, cl
neg eax
mov eax, dword [edx]
cmc
clc
mov dword [ebp - 0x48], eax
rcl eax, cl
mov ah, 0xab
mov eax, dword [edx + 0x28]
clc
mov dword [ebp - 0x34], eax
sar ax, 0x41
mov eax, dword [edx + 0x2c]
cmp ax, dx
push esi
bts esi, ebp
mov esi, dword [edx + 0x20]
mov dword [ebp - 0x20], eax
mov ah, dl
mov eax, dword [edx + 0x18]
cmp eax, edx
push edi
sbb di, 0x488b
mov edi, dword [edx + 0x10]
cmp esp, ecx
clc
cmc
mov dword [ebp - 0xc], ecx
shrd cx, ax, 0x7d
rcr ecx, 0xad
rcl cx, cl
mov ecx, dword [edx + 0x30]
cmc
jmp 0x20da849
mov dword [ebp - 4], eax
rcr ax, 0xad
btr eax, ebx
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x30], edi
and dl, 0xc6
movsx edx, si
mov dword [ebp - 0x18], ebx
sub dh, 0x50
mov dword [ebp - 0x44], ecx
btc edx, eax
not ch
xor dx, di
mov dword [ebp - 0x28], 0
rcr cl, 0x82
clc
push ebp
mov cx, bp
and al, 0x99
cdq
mov ebp, esp
stc
sub esp, 0x50
sub dl, bl
rcl al, cl
mov edx, dword [ebp + 8]
shld ax, si, 0x5a
mov eax, dword [edx + 0x38]
mov ecx, dword [edx + 0x3c]
mov dword [ebp - 0x24], eax
bt ax, 0x13
sbb ax, 0x20ff
mov eax, dword [edx + 0x40]
cmp edi, edx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
bt eax, edi
inc ah
mov ch, 0x55
mov ecx, dword [edx + 0x44]
dec ah
and eax, ebp
ror eax, cl
mov dword [ebp - 0x40], ecx
bts cx, cx
sbb cl, 0x38
mov ecx, dword [edx + 8]
bswap ax
clc
mov eax, 1
test ebp, 0xbf3515c
stc
shl eax, cl
mov ecx, dword [edx + 4]
jmp 0x119c39a
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 0x100047f0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x1000480e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x10004803
pop esi
ret
Function at 0x438f70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x26000]
push edi
or ebp, 0xffffffff
jmp 0x438f92
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x438f99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x438f88
mov eax, 1
add ebx, ebx
jne 0x438fab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x438fa0
jne 0x438fbc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x438fa0
xor ecx, ecx
sub eax, 3
jb 0x438fd0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x439042
mov ebp, eax
add ebx, ebx
jne 0x438fdb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x438fe8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43900c
inc ecx
add ebx, ebx
jne 0x438ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x438fed
jne 0x439009
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x438fed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43902c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43901d
jmp 0x438f8e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43902c
add edi, ecx
jmp 0x438f8e
pop esi
mov edi, esi
mov ecx, 0x8c5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43904a
cmp byte [edi], 5
jne 0x43904a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x43904f
lea edi, [esi + 0x36000]
mov eax, dword [edi]
or eax, eax
je 0x4390be
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4206c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4210c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43907c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x42110]
or eax, eax
je 0x4390b8
mov dword [ebx], eax
add ebx, 4
jmp 0x439099
call dword [esi + 0x42120]
mov ebp, dword [esi + 0x42114]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4390f2
sub esp, 0xffffff80
jmp 0x409ca0
Function at 0x404908
Capabilities:
Encode data using xor

Disassembly:
push 0x40dca0
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
cmp byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
mov byte [0x36ac9041], al
das
dec ebp
mov byte [0xde3ccd9d], al
fidivr dword [edi]
inc ebx
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add byte [eax], al
inc ebp
add byte [esi], al
push eax
add dword [ecx], 0x45
imul eax, dword fs:[eax], 0x13298e0
add byte [eax], al
add byte [eax], al
dec esp
xor dword [eax], eax
aam 0x9f
imul ecx, dword [edx + edi*8 + 0x4851b178], 0xffffff9f
sbb eax, 0xe04108a2
cmp al, 0xba
mov word [eax - 0x60], cs
out 0xc1, eax
and ebp, dword [eax + 0x4e]
stosb byte es:[edi], al
jle 0x40494c
ret 0x88b9
Function at 0x1000db92
Capabilities:
Get session user name

Disassembly:
push 0x6c
mov eax, 0x100125b4
call fcn.10011eac
mov edi, edx
mov ebx, ecx
mov eax, dword [0x10014024]
cmp eax, 0x10014024
je 0x1000dbcd
test byte [eax + 0x1c], 1
je 0x1000dbcd
cmp byte [eax + 0x19], 5
jb 0x1000dbcd
push dword [eax + 0x14]
mov edx, 0x10002270
push dword [eax + 0x10]
push 0x12
pop ecx
call fcn.10002ea3
lea eax, [ebp - 0x78]
mov ecx, 0x7fff
push eax
mov dword [ebp - 0x78], ecx
push ecx
mov ecx, edi
call fcn.1000b21b
push eax
push 2
call dword [sym.imp.SspiCli.dll_GetUserNameExW]
movzx esi, al
mov eax, dword [0x10014024]
cmp eax, 0x10014024
je 0x1000dc19
test byte [eax + 0x1c], 2
je 0x1000dc19
cmp byte [eax + 0x19], 4
jb 0x1000dc19
push esi
push dword [eax + 0x14]
mov edx, 0x10002270
push dword [eax + 0x10]
push 0x13
pop ecx
call fcn.10002ec1
mov ecx, dword [edi]
call fcn.1000b2ee
push eax
mov ecx, edi
call fcn.1000b248
lea ecx, [ebp - 0x74]
call fcn.1000b7a1
and dword [ebp - 4], 0
cmp esi, 1
jne 0x1000dca4
mov eax, dword [0x10014024]
cmp eax, 0x10014024
je 0x1000dc66
test byte [eax + 0x1c], 2
je 0x1000dc66
cmp byte [eax + 0x19], 4
jb 0x1000dc66
push dword [edi]
mov edx, 0x10002270
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x14
pop ecx
call fcn.10003c21
push ecx
push dword [edi]
lea ecx, [ebp - 0x74]
call fcn.1000d666
movzx esi, al
mov eax, dword [0x10014024]
mov edi, 0x10014024
cmp eax, edi
je 0x1000dcae
test byte [eax + 0x1c], 2
je 0x1000dcae
cmp byte [eax + 0x19], 4
jb 0x1000dcae
push esi
push dword [eax + 0x14]
mov edx, 0x10002270
push dword [eax + 0x10]
push 0x15
pop ecx
call fcn.10003014
jmp 0x1000dca9
mov edi, 0x10014024
mov eax, dword [0x10014024]
cmp esi, 1
jne 0x1000dcf2
lea ecx, [ebp - 0x74]
call fcn.1000d7d3
push eax
mov ecx, ebx
call fcn.1000b302
mov eax, dword [0x10014024]
cmp eax, edi
je 0x1000dd16
test byte [eax + 0x1c], 2
je 0x1000dcf2
cmp byte [eax + 0x19], 4
jb 0x1000dcf2
push dword [ebx]
mov edx, 0x10002270
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x16
pop ecx
call fcn.10003c21
mov eax, dword [0x10014024]
cmp eax, edi
je 0x1000dd16
test byte [eax + 0x1c], 1
je 0x1000dd16
cmp byte [eax + 0x19], 5
jb 0x1000dd16
push esi
push dword [eax + 0x14]
mov edx, 0x10002270
push dword [eax + 0x10]
push 0x17
pop ecx
call fcn.10002ec1
lea ecx, [ebp - 0x74]
call fcn.1000b811
mov eax, esi
call fcn.10011e5b
ret
Function at 0x1000e86b
Capabilities:
Start service

Disassembly:
mov edi, edi
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [0x10014024]
mov ebx, 0x10014024
cmp eax, ebx
je 0x1000e899
test byte [eax + 0x1c], 1
je 0x1000e899
push dword [eax + 0x14]
mov edx, 0x10002280
push dword [eax + 0x10]
push 0x20
pop ecx
call fcn.10002ea3
push 0
mov ecx, edi
call fcn.1000ea51
mov esi, eax
mov eax, dword [0x10014024]
cmp eax, ebx
je 0x1000e8cd
test byte [eax + 0x1c], 2
je 0x1000e8cd
cmp byte [eax + 0x19], 4
jb 0x1000e8cd
push esi
push dword [eax + 0x14]
mov edx, 0x10002280
push dword [eax + 0x10]
push 0x21
pop ecx
call fcn.10002ec1
cmp esi, 1
jne 0x1000e916
push 0
push 0
push dword [edi + 8]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_StartServiceW]
mov esi, eax
cmp esi, 1
je 0x1000e916
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x10014024]
cmp ecx, ebx
je 0x1000e916
test byte [ecx + 0x1c], 2
je 0x1000e916
cmp byte [ecx + 0x19], 4
jb 0x1000e916
push eax
push dword [ecx + 0x14]
mov edx, 0x10002280
push dword [ecx + 0x10]
push 0x22
pop ecx
call fcn.10002ec1
mov ecx, edi
call fcn.1000ec9f
mov eax, dword [0x10014024]
cmp eax, ebx
je 0x1000e946
test byte [eax + 0x1c], 1
je 0x1000e946
cmp byte [eax + 0x19], 5
jb 0x1000e946
push esi
push dword [eax + 0x14]
mov edx, 0x10002280
push dword [eax + 0x10]
push 0x23
pop ecx
call fcn.10002ec1
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x1000e94c
Capabilities:
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100141a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [0x10014024]
mov ebx, 0x10014024
cmp eax, ebx
je 0x1000e98a
test byte [eax + 0x1c], 1
je 0x1000e98a
push dword [eax + 0x14]
mov edx, 0x10002280
push dword [eax + 0x10]
push 0x2a
pop ecx
call fcn.10002ea3
push 0
mov ecx, edi
call fcn.1000ea51
mov esi, eax
mov eax, dword [0x10014024]
cmp eax, ebx
je 0x1000e9be
test byte [eax + 0x1c], 2
je 0x1000e9be
cmp byte [eax + 0x19], 4
jb 0x1000e9be
push esi
push dword [eax + 0x14]
mov edx, 0x10002280
push dword [eax + 0x10]
push 0x2b
pop ecx
call fcn.10002ec1
cmp esi, 1
jne 0x1000ea0c
lea eax, [ebp - 0x20]
push eax
push 0x9d
push dword [edi + 8]
call dword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
mov esi, eax
cmp esi, 1
je 0x1000ea0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x10014024]
cmp edx, ebx
je 0x1000ea0c
test byte [edx + 0x1c], 2
je 0x1000ea0c
cmp byte [edx + 0x19], 4
jb 0x1000ea0c
push eax
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x10002280
push 0x2c
pop ecx
call fcn.10002ec1
mov ecx, edi
call fcn.1000ec9f
mov eax, dword [0x10014024]
cmp eax, ebx
je 0x1000ea3c
test byte [eax + 0x1c], 1
je 0x1000ea3c
cmp byte [eax + 0x19], 5
jb 0x1000ea3c
push esi
push dword [eax + 0x14]
mov edx, 0x10002280
push dword [eax + 0x10]
push 0x2d
pop ecx
call fcn.10002ec1
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10011470
mov esp, ebp
pop ebp
ret 4
Function at 0x40860d
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x428]
push 0x214
push edi
push eax
mov esi, edx
mov dword [ebp - 0x42c], edi
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
mov word [ebp - 0x214], ax
mov ebx, 0x104
lea eax, [ebp - 0x214]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x408712
lea ecx, [ebp - 0x214]
call fcn.0040e551
lea eax, [ebp - 0x214]
mov edx, ebx
push eax
lea ecx, [ebp - 0x420]
call fcn.00408495
push 0x401ce4
lea ecx, [ebp - 0x214]
call fcn.0040ed20
test eax, eax
js 0x4086ed
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4086ed
lea eax, [ebp - 0x214]
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 8]
neg eax
push edi
sbb eax, eax
and eax, 0xffffffe0
add eax, 0x40
or eax, 4
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x42c]
push eax
push edi
call dword [sym.imp.IEADVPACK.dll_ExecuteCabW]
jmp 0x408712
test byte [ebp + 0x10], 4
jne 0x408712
lea eax, [ebp - 0x214]
push eax
push 0x40
push 0xc
push 0xb
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.SHLWAPI.dll_ShellMessageBoxW]
add esp, 0x18
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423360
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40872a
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x424]
mov esi, 0x20019
push eax
push esi
xor edi, edi
push edi
push 0x4013d0
push reloc.SHLWAPI.dll_ParseURLW
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408898
lea eax, [ebp - 0x41c]
push eax
push esi
push edi
push 0x40141c
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40888c
push ebx
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x420]
mov esi, edi
push eax
lea eax, [ebp - 0x20c]
mov ebx, 0x104
push eax
push edi
jmp 0x408865
lea eax, [ebp - 0x418]
push eax
push 0x2001f
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4087f6
push 4
push 0x401434
push 1
push edi
push 0x401438
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
lea eax, [ebp - 0x20c]
mov edx, ebx
push eax
push 0x4013d0
lea ecx, [ebp - 0x414]
call fcn.0040ea93
test eax, eax
js 0x408851
lea eax, [ebp - 0x418]
push eax
push 0x2001f
push edi
lea eax, [ebp - 0x414]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408851
push dword [ebp - 0x418]
push edi
push edi
call dword [sym.imp.IEADVPACK.dll_RegRestoreAllW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x420]
inc esi
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x41c]
mov dword [ebp - 0x420], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x4087ab
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00423360
mov esp, ebp
pop ebp
ret
Function at 0x4088ad
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
lea edi, [ebp - 0x1c]
mov esi, 0x401458
push 5
pop ecx
rep movsd dword es:[edi], dword [esi]
push 0x18
pop ecx
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x7c]
mov esi, 0x401470
rep movsd dword es:[edi], dword [esi]
test eax, eax
je 0x408983
lea eax, [ebp - 0x288]
xor esi, esi
push eax
push 0xf003f
push esi
push 0x4014d0
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408983
push 0x204
lea eax, [ebp - 0x280]
mov dword [ebp - 0x284], esi
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x28c], 0x208
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x284]
push eax
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x288]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40895e
cmp dword [ebp - 0x28c], esi
jne 0x408977
push 0x60
lea eax, [ebp - 0x7c]
push eax
push 1
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x288]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x288]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00423360
mov esp, ebp
pop ebp
ret

Function at 0x4089de
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 0x10]
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
xor edi, edi
push eax
push edi
push 4
pop ebx
push ebx
push edi
push edi
push edi
push 0x401548
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x408a80
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push edi
push 3
push edi
push edi
push edi
push 0x401608
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x408a75
lea eax, [ebp - 0x14]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0x14], ebx
push eax
push edi
push edi
mov esi, 0x401620
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or dword [ebp - 4], 0x100000
lea eax, [ebp - 4]
push ebx
push eax
push ebx
push edi
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jle 0x408a8b
movzx esi, si
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408fb3
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
test ebx, ebx
je 0x40915a
call fcn.00408a99
call fcn.00408570
call fcn.0040cdb2
call fcn.00408af3
call dword [sym.imp.SHELL32.dll_SHFlushSFCache]
call fcn.00410ed7
cmp eax, 2
jne 0x40909c
and dword [ebp - 0x11c], 0
lea ecx, [ebp - 0x11c]
call fcn.00411609
mov esi, dword [ebp - 0x11c]
test eax, eax
js 0x40907b
and dword [ebp - 0x11c], 0
lea edx, [ebp - 0x11c]
push ecx
mov ecx, dword [esi + 0x18]
call fcn.00414c0c
test eax, eax
js 0x409070
push 0x401c40
lea eax, [ebp - 0x124]
mov dword [ebp - 0x124], esi
push eax
push dword [ebp - 0x11c]
mov ecx, esi
mov dword [ebp - 0x120], 0x80004005
mov dword [0x4247cc], 0x40faf0
mov dword [0x4247c8], 0x40fac0
call fcn.0040fc30
lea ecx, [ebp - 0x11c]
call fcn.004096bd
test esi, esi
je 0x40909c
mov eax, dword [esi]
mov edi, esp
push esi
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4255c0]
call esi
cmp edi, esp
je 0x40909c
mov ecx, 4
int 0x29
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.msvcrt.dll__time64]
pop ecx
push 2
push 8
lea eax, [ebp - 0x124]
push eax
push 0xb
push 0x401c48
push 0x401c60
call dword [sym.imp.SHLWAPI.dll_SHRegSetUSValueW]
mov esi, 0x114
lea eax, [ebp - 0x118]
push esi
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x118], esi
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x409167
push 6
pop esi
cmp dword [ebp - 0x114], esi
ja 0x40910b
jne 0x409167
cmp dword [ebp - 0x110], 1
jb 0x409167
push ecx
push 0x401cb4
mov ecx, ebx
call fcn.00408998
cmp dword [ebp - 0x114], esi
ja 0x40912b
jne 0x409167
cmp dword [ebp - 0x110], 2
jb 0x409167
lea eax, [ebp - 0x11c]
push eax
push 0x60000
push 8
push 0x4017b0
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409167
mov ecx, dword [ebp - 0x11c]
call fcn.0040d2d6
jmp 0x409167
push ecx
push 0x401cb4
xor ecx, ecx
call fcn.00408998
test ebx, ebx
je 0x409170
call fcn.004089de
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423360
mov esp, ebp
pop ebp
ret
Function at 0x40946a
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov esi, 0x80070057
call fcn.0040c6d7
xor edi, edi
test al, al
je 0x4094dc
lea eax, [ebp - 0x274]
mov dword [ebp - 0x274], edi
push eax
call dword [sym.imp.msvcrt.dll_rand_s]
pop ecx
test eax, eax
jne 0x4094dc
movzx eax, byte [ebp - 0x274]
inc eax
mov dword [ebp - 0x274], eax
je 0x4094da
push 1
push 0x2000
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
inc edi
cmp edi, dword [ebp - 0x274]
jb 0x4094bd
xor edi, edi
cmp word [ebx], di
je 0x4096a3
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push edi
call dword [sym.imp.ole32.dll_OleInitialize]
test eax, eax
js 0x40969e
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [ebp - 0x278]
mov dword [ebp - 0x278], edi
push eax
push ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
mov dword [ebp - 0x28c], ebx
test ebx, ebx
je 0x409681
push 6
pop ecx
mov esi, 0x401f54
lea edi, [ebp - 0x270]
rep movsd dword es:[edi], dword [esi]
push 0x1ee
lea eax, [ebp - 0x256]
movsw word es:[edi], word [esi]
xor edi, edi
push edi
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x278]
add esp, 0xc
test eax, eax
jle 0x409582
push dword [ebx]
lea eax, [ebp - 0x270]
push 0x401f70
push 0x104
push eax
call fcn.00408504
mov eax, dword [ebp - 0x278]
add esp, 0x10
mov dword [ebp - 0x280], edi
mov esi, edi
test eax, eax
jle 0x409678
mov edx, ebx
xor ebx, ebx
mov dword [ebp - 0x27c], edx
test esi, esi
js 0x409672
mov dword [ebp - 0x274], ebx
mov edi, ebx
mov eax, dword [edi + 0x424014]
mov ecx, dword [edx]
push eax
push dword [edi + 0x424010]
mov dword [ebp - 0x288], eax
push ecx
mov dword [ebp - 0x284], ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x4095f4
push dword [ebp - 0x284]
lea ecx, [ebp - 0x68]
push 0x32
pop edx
call fcn.00408495
test eax, eax
js 0x4095f4
mov eax, dword [ebp - 0x288]
cmp word [ebp + eax*2 - 0x68], bx
je 0x409614
mov eax, dword [ebp - 0x274]
add edi, 0xc
inc eax
mov dword [ebp - 0x274], eax
cmp edi, 0xb4
jae 0x409640
mov edx, dword [ebp - 0x27c]
jmp 0x4095ac
imul eax, dword [ebp - 0x274], 0xc
mov edi, dword [eax + 0x424018]
mov ecx, edi
call dword [0x4255c0]
mov esi, esp
call edi
cmp esi, esp
je 0x409638
mov ecx, 4
int 0x29
mov esi, eax
mov eax, dword [ebp - 0x274]
cmp eax, 0xf
jb 0x40964a
mov esi, 0x80070057
mov ecx, dword [ebp - 0x280]
mov edx, dword [ebp - 0x27c]
inc ecx
add edx, 4
mov dword [ebp - 0x280], ecx
mov dword [ebp - 0x27c], edx
cmp ecx, dword [ebp - 0x278]
jl 0x40959c
mov ebx, dword [ebp - 0x28c]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x409696
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x409696
movzx esi, si
or esi, 0x80070000
call dword [sym.imp.ole32.dll_OleUninitialize]
jmp 0x4096a3
mov esi, 0x80004005
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423360
mov esp, ebp
pop ebp
ret 0x10