joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10011e46
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x10011e50
add dword [esp], 5
retf

Function at 0x1001200c
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x10012016
add dword [esp], 5
retf

Function at 0x1001209f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor eax, eax
cmp word [ecx], 0x5a4d
jne 0x1001211f
dec esp
arpl word [ecx + 0x3c], ax
dec ecx
add eax, ecx
inc ecx
cmp dword [eax], 0x4550
jne 0x1001211f
inc ebp
mov eax, dword [eax + 0x88]
inc ebp
test eax, eax
je 0x1001211f
dec edx
lea edi, [ecx + eax]
inc esp
mov eax, dword [edi + 0x20]
mov esi, dword [edi + 0x14]
test esi, esi
dec esi
lea edx, [ecx + eax]
je 0x1001211f
movzx ebx, byte [edx]
inc ebp
xor ebx, ebx
inc ebp
mov ecx, dword [edx]
dec ecx
add ecx, ecx
inc ecx
cmp byte [ecx], bl
jne 0x10012110
test bl, bl
je 0x10012123
dec eax
mov eax, edx
jmp 0x100120fc
inc ebp
test al, al
je 0x10012123
dec eax
add eax, 1
dec ecx
mov eax, eax
dec ecx
sub eax, edx
inc edi
movzx eax, byte [eax + ecx]
inc esp
cmp al, byte [eax]
je 0x100120f7
inc ecx
add ebx, 1
dec ecx
add edx, 4
inc ecx
cmp ebx, esi
jne 0x100120e3
xor eax, eax
pop ebx
pop esi
pop edi
ret
inc esp
cmp esi, ebx
je 0x1001211d
mov edx, dword [edi + 0x24]
dec esi
lea eax, [ecx + ebx*2]
mov eax, dword [edi + 0x1c]
inc ecx
movzx edx, word [eax + edx]
dec eax
lea edx, [ecx + edx*4]
mov eax, dword [edx + eax]
dec eax
add eax, ecx
pop ebx
pop esi
pop edi
ret

Function at 0x1001216f
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x10012179
add dword [esp], 5
retf

Function at 0x1001231c
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x10012326
add dword [esp], 5
retf

Function at 0x1001bea0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x1001bebe
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x1001beb3
pop esi
ret
Function at 0x1001d130
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x1001d151
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x1001d1ab
inc edi
cmp edi, esi
jl 0x1001d145
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x1001d1e0
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x1001d19a
cmp byte [eax], bl
je 0x1001d1b5
cmp byte [eax + 1], bl
je 0x1001d1be
cmp byte [eax + 2], bl
je 0x1001d1c8
cmp byte [eax + 3], bl
je 0x1001d1d4
add eax, 4
cmp eax, edi
jb 0x1001d171
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4

Function at 0x1001ef90
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 8
xor ecx, ecx
xor eax, eax
push ebp
mov ebp, dword [esp + 0x18]
mov byte [eax + ebp], al
inc eax
cmp eax, 0x100
jl 0x1001ef9c
mov eax, dword [esp + 0x14]
mov byte [ebp + 0x100], cl
cmp eax, ecx
mov byte [ebp + 0x101], cl
jle 0x1001f02f
push ebx
push esi
push edi
mov byte [esp + 0x24], cl
xor esi, esi
mov ebx, ebp
mov dword [esp + 0x10], pe_nt_image_headers32
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
and edi, 0xff
xor eax, eax
xor edx, edx
mov al, byte [edi + ecx]
mov dl, byte [ebx]
add esi, eax
add edx, esi
and edx, 0x800000ff
jns 0x1001eff9
dec edx
or edx, 0xffffff00
inc edx
mov byte [esp + 0x14], dl
mov esi, dword [esp + 0x14]
and esi, 0xff
lea eax, [esi + ebp]
push eax
push ebx
call fcn.1001f040
lea eax, [edi + 1]
add esp, 8
cdq
idiv dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc ebx
dec eax
mov dword [esp + 0x10], eax
mov byte [esp + 0x24], dl
jne 0x1001efce
pop edi
pop esi
pop ebx
pop ebp
add esp, 8
ret
Function at 0x1001f060
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x14]
push ebx
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
mov al, byte [esi + 0x100]
mov cl, byte [esi + 0x101]
test edx, edx
mov byte [esp + 0x20], al
mov byte [esp + 8], cl
jle 0x1001f15d
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x28]
and edi, 0xff
and ebp, 0xff
lea eax, [edi + 1]
and eax, 0x800000ff
jns 0x1001f0b2
dec eax
or eax, 0xffffff00
inc eax
mov byte [esp + 0x28], al
xor ecx, ecx
mov edi, dword [esp + 0x28]
and edi, 0xff
mov cl, byte [edi + esi]
lea eax, [edi + esi]
add ecx, ebp
mov dword [esp + 0x18], eax
and ecx, 0x800000ff
jns 0x1001f0de
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ebp, dword [esp + 0x10]
and ebp, 0xff
lea ecx, [esi + ebp]
push ecx
push eax
mov dword [esp + 0x1c], ecx
call fcn.1001f040
mov eax, dword [esp + 0x1c]
xor edx, edx
xor ecx, ecx
add esp, 8
mov dl, byte [eax]
mov eax, dword [esp + 0x18]
mov cl, byte [eax]
add edx, ecx
and edx, 0x800000ff
jns 0x1001f11f
dec edx
or edx, 0xffffff00
inc edx
mov eax, dword [esp + 0x20]
and edx, 0xff
mov cl, byte [edx + esi]
mov dl, byte [ebx + eax]
xor dl, cl
mov byte [ebx + eax], dl
mov eax, dword [esp + 0x24]
inc ebx
cmp ebx, eax
jl 0x1001f0a1
mov dl, byte [esp + 0x28]
mov al, byte [esp + 0x10]
pop edi
mov byte [esi + 0x100], dl
mov byte [esi + 0x101], al
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
mov byte [esi + 0x100], al
mov byte [esi + 0x101], cl
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x10020140
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x1021bbdc]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x10020153
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x10020194
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x1021bc84]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x100201c6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x100201ca
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x100201bb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x100201e8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x100201ec
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x100201dd
xor ecx, ecx
mov eax, 0x1021bbec
xor ebx, ebx
mov bl, byte [ecx + 0x1021bc94]
cmp byte [esp + ebx + 0x14], 0
je 0x10020217
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x1021bcac]
cmp byte [esp + ebx + 0x14], 0
je 0x1002022e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x100201fe
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x10020187
lea edx, [esp + 0x84]
push edx
call fcn.10020270
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x100344f
Capabilities:
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x1007030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call sub.msvcrt.dll_memset
and dword [ebp - 0x830], 0
add esp, 0xc
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x828]
push eax
mov edi, 0x10021a8
push edi
push 0x1001ed4
mov ebx, 0x80000002
push ebx
mov dword [ebp - 0x828], 1
mov dword [ebp - 0x82c], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1003655
push 0x1001e3c
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x1003655
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x414]
push 0x1002040
push 0x104
push eax
call fcn.010033af
test eax, eax
jl 0x1003655
cmp dword [ebp + 8], 0
je 0x1003643
xor eax, eax
push esi
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x414]
push eax
push 0x1001ed4
push 0x1001f2c
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.0100335c
add esp, 0x20
test eax, eax
jl 0x1003655
xor eax, eax
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 2
lea eax, [esi + 2]
pop esi
mov dword [ebp - 0x82c], eax
mov dword [ebp - 0x830], eax
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x828]
push eax
push 0x10000004
push edi
lea eax, [ebp - 0x61c]
push eax
push ebx
mov dword [ebp - 0x828], esi
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
je 0x1003607
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x828]
push eax
push edi
lea eax, [ebp - 0x61c]
push eax
push ebx
mov dword [ebp - 0x828], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1003655
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, esi
test cx, cx
jne 0x1003610
sub eax, edx
sar eax, 1
add eax, eax
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x828]
lea eax, [ebp - 0x414]
push edi
push eax
push 0x80000000
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
jmp 0x1003655
lea eax, [ebp - 0x414]
push eax
push 0x80000000
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010055d3
leave
ret 4
Function at 0x1003c79
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
xor eax, eax
xor esi, esi
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
push esi
push eax
call sub.msvcrt.dll_memset
mov edi, dword [ebp + 0xc]
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push esi
mov dword [edi], esi
mov dword [ebp - 0x58], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1003d12
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x1003cf2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1003cf2
mov eax, dword [ebp - 4]
mov dword [edi], eax
jmp 0x1003d00
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01003390
mov esi, eax
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x14]
call edi
jmp 0x1003d20
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01003390
mov esi, eax
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x1003e77
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
or dword [ebp - 4], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
xor eax, eax
mov esi, 0x100212c
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
call edi
push eax
push esi
push dword [ebp + 0x10]
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
call esi
xor ebx, ebx
inc ebx
test eax, eax
jne 0x1003eb6
mov dword [ebp - 8], ebx
push ebx
push 0
push 0x10021ac
push 0x1002068
call dword [sym.imp.SHLWAPI.dll_SHRegGetBoolUSValueA]
test eax, eax
jne 0x1003f05
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 8], eax
jne 0x1004047
push 0xb
push 0x1002050
push dword [ebp + 0x10]
call esi
test eax, eax
je 0x1004047
push 0xe0
push 0xdf
push dword [ebp + 8]
call fcn.01002f7f
jmp 0x1004047
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1004010
cmp word [eax], 0
je 0x1004010
push eax
push 0x1001e0c
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x1003f3e
push ebx
call fcn.0100344f
push ebx
call fcn.0100366b
mov dword [ebp - 4], ebx
jmp 0x1004047
push dword [ebp + 0x10]
push 0x1001e18
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x1003f5a
push eax
call fcn.0100344f
push 0
jmp 0x1003f31
cmp dword [ebp - 8], ebx
jne 0x1003ffc
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov ebx, 0x10020c0
push ebx
call edi
push eax
push ebx
push dword [ebp + 0x10]
call esi
test eax, eax
je 0x1003fa6
mov ebx, 0x10020ec
push ebx
call edi
push eax
push ebx
push dword [ebp + 0x10]
call esi
test eax, eax
je 0x1003fa6
mov ebx, 0x100210c
push ebx
call edi
push eax
push ebx
push dword [ebp + 0x10]
call esi
test eax, eax
jne 0x1003fb8
xor esi, esi
inc esi
push esi
push 0
push 0
call fcn.01005138
mov dword [ebp - 4], esi
jmp 0x1003ff1
push ebx
call edi
push eax
push 0x1002094
push dword [ebp + 0x10]
call esi
test eax, eax
jne 0x1003ff1
xor esi, esi
inc esi
mov dword [ebp - 0x10], esi
call fcn.01005f3e
test eax, eax
je 0x1003fe8
call fcn.010050d5
push esi
push 0
push 0
call fcn.01005138
call fcn.01004886
and dword [ebp - 4], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
xor ebx, ebx
inc ebx
jmp 0x100400b
push dword [ebp + 0x10]
call fcn.01002ee7
test eax, eax
je 0x1004010
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
je 0x1004047
lea eax, [ebp - 0xc]
push eax
call fcn.010032f2
test eax, eax
je 0x1004047
cmp dword [ebp - 0xc], 0
je 0x1004030
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.01003df7
jmp 0x1004044
push dword [ebp - 0x10]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.010030d2
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10042e6
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1007030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x1c], esi
je 0x1004334
lea edx, [ebp - 0x214]
push edx
lea edx, [ebp - 0x210]
push edx
mov edx, dword [ebp + 0x18]
push esi
or edx, 3
push edx
push esi
push esi
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
jmp 0x100434b
lea edx, [ebp - 0x210]
push edx
mov edx, dword [ebp + 0x18]
or edx, 3
push edx
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x10043ec
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 0x208
call fcn.0100417e
cmp dword [ebp + 0x1c], esi
je 0x10043b0
cmp dword [ebp + 0x20], esi
jne 0x1004397
cmp eax, esi
jne 0x1004397
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.0100428c
test eax, eax
je 0x10043e0
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x100439c
sub eax, edx
sar eax, 1
add eax, eax
push eax
push edi
jmp 0x10043d1
cmp dword [ebp + 0x20], esi
jne 0x10043cb
cmp eax, esi
jne 0x10043e0
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x10043e0
push esi
push 0x10021a8
push 1
push esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010055d3
leave
ret 0x1c

Function at 0x1004402
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
xor esi, esi
push esi
push 2
push esi
push esi
push esi
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1004452
cmp dword [ebp + 0x10], esi
push 4
setne al
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push 4
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 0xc
Function at 0x100445c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x1007030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
lea ecx, [ebp - 0x90]
push ecx
push 1
xor esi, esi
push esi
push eax
push 0x80000002
mov dword [ebp - 0x88], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, esi
jne 0x100452b
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
push esi
push ebx
push dword [ebp - 0x90]
mov dword [ebp - 0x8c], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x90]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x100452b
push esi
lea eax, [ebp - 0x88]
push eax
push esi
push 2
push esi
push esi
push esi
push dword [ebp - 0x88]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, esi
jne 0x100451f
push dword [ebp - 0x8c]
lea eax, [ebp - 0x84]
push eax
push 1
push esi
push ebx
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010055d3
leave
ret 8

Function at 0x1004581
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x1002410
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
neg eax
sbb eax, eax
and eax, 0xffffffa9
add eax, 0x57
pop ebp
ret 0xc

Function at 0x10045aa
Capabilities:
Delete registry value
Get file attributes
Set file attributes
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [ebp + 0x10], 0
mov edi, eax
je 0x10045db
push dword [ebp + 8]
and edi, 0xfffffff9
push 0x10026e8
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
jmp 0x100460a
mov eax, esi
or edi, 6
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x10045e3
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push esi
push 1
push dword [ebp + 8]
push 0x10026e8
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x10046cc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1007030]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
call fcn.01004213
test eax, eax
jne 0x10047d7
push edi
mov edi, 0x80000000
cmp dword [ebp + 8], eax
jne 0x100476e
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0x10027e0
push edi
mov dword [ebp - 0x210], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [ebp - 0x214], 1
jne 0x100476e
cmp eax, 0xea
je 0x1004747
test eax, eax
jne 0x100476e
cmp dword [ebp - 0x210], 4
jb 0x100476e
test esi, esi
je 0x10047d6
jmp 0x1004766
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x100476e
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x1004751
jmp 0x10047d6
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x214]
push eax
push 0xf003f
push 0
push 0x10027d0
push edi
call esi
test eax, eax
jne 0x10047d6
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
push 0x1002768
push 0x80000002
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x10047ce
push 1
push dword [ebp - 0x214]
push dword [ebp - 0x210]
call dword [sym.imp.MSOERT2.dll_CopyRegistry]
push dword [ebp - 0x210]
call esi
push dword [ebp - 0x214]
call esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.010055d3
leave
ret 8

Function at 0x10047eb
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1007030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x418]
push ecx
lea ecx, [ebp - 0x414]
push ecx
lea ecx, [ebp - 0x41c]
push ecx
push 0
push eax
mov esi, 0x80000000
push esi
mov dword [ebp - 0x418], 0x410
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [ebp - 0x41c], 1
jne 0x1004871
cmp eax, 0xea
je 0x1004853
test eax, eax
jne 0x1004871
cmp dword [ebp - 0x418], 4
jb 0x1004871
push 0x1002814
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x1004871
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.010055d3
leave
ret 8