joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4357df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov dword [esp + 0x10], 0
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 1
call fcn.0042ab91
lea eax, [esp + 0xc]
push 1
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 2
call fcn.00425fcc
mov eax, dword [eax]
mov esi, 0x444174
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x402e97
test cl, cl
je 0x402e93
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x402e97
add eax, 2
add esi, 2
test cl, cl
jne 0x402e6f
xor eax, eax
jmp 0x402e9c
sbb eax, eax
sbb eax, 0xffffffff
xor ebx, ebx
lea ecx, [esp + 0xc]
test eax, eax
sete bl
call fcn.0042acdc
test bl, bl
je 0x402ee6
mov eax, dword [esp + 0x28]
lea edx, [esp + 0xc]
mov ecx, dword [eax - 8]
dec ecx
push ecx
push edx
lea ecx, [esp + 0x30]
call fcn.00425f4f
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 3
call fcn.0042add5
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 2
call fcn.0042acdc
jmp 0x402ef4
lea eax, [esp + 0x28]
lea ecx, [esp + 8]
push eax
call fcn.0042add5
push 0x444170
lea ecx, [esp + 0xc]
call fcn.00426043
test eax, eax
jle 0x402f32
lea ecx, [esp + 0xc]
push eax
push ecx
lea ecx, [esp + 0x10]
call fcn.00425fcc
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 4
call fcn.0042add5
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 2
call fcn.0042acdc
lea ecx, [esp + 8]
call fcn.0042631b
lea edx, [esp + 0xc]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00425f4f
mov eax, dword [eax]
mov esi, 0x444174
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x402f7a
test cl, cl
je 0x402f76
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x402f7a
add eax, 2
add esi, 2
test cl, cl
jne 0x402f52
xor eax, eax
jmp 0x402f7f
sbb eax, eax
sbb eax, 0xffffffff
xor ebx, ebx
lea ecx, [esp + 0xc]
test eax, eax
sete bl
call fcn.0042acdc
test bl, bl
je 0x402fc7
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
mov ecx, dword [eax - 8]
dec ecx
push ecx
push edx
lea ecx, [esp + 0x10]
call fcn.00425fcc
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 5
call fcn.0042add5
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 2
call fcn.0042acdc
mov esi, dword [esp + 0x24]
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.0042aba1
mov dword [esp + 0x10], 1
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 1
call fcn.0042acdc
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 0
call fcn.0042acdc
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 8
Function at 0x40991c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x409963
cmp edx, 0x10
jl 0x40994f
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x40993c
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x409963
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x40995b
and edx, 3
cmp edx, 3
jne 0x409977
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x40997c
cmp edx, 2
jne 0x409988
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x40998d
cmp edx, 1
jne 0x409993
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x431e97
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x435e22
call fcn.00415460
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x439904
xor eax, eax
push 0xa
lea ecx, [esi + 0x30]
mov dword [ebp - 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call fcn.00426775
push 0xa
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call fcn.00426775
push 0xa
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 2
call fcn.00426598
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x439914
mov dword [esi + 0xc], 0x54
mov dword [esi + 0x28], 0x42b128
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x640f499b
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
nop
mov eax, section..rsrc_1
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x4c5d4f38
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x402930
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402955
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402960
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402955
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x4029a8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40299e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4029aa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402990
xor eax, eax
pop ebx
pop esi
ret
Function at 0x4e0640
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0xaab000
lea edi, [esi - 0x8a000]
push edi
jmp 0x4e065a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4e0661
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e0650
mov eax, 1
add ebx, ebx
jne 0x4e0673
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4e0684
jne 0x4e06a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e06a3
dec eax
add ebx, ebx
jne 0x4e0690
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4e0668
add ebx, ebx
jne 0x4e069f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4e06f5
xor ecx, ecx
sub eax, 3
jb 0x4e06bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4e072a
sar eax, 1
mov ebp, eax
jmp 0x4e06c6
add ebx, ebx
jne 0x4e06c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e0694
inc ecx
add ebx, ebx
jne 0x4e06d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e0694
add ebx, ebx
jne 0x4e06e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4e06d6
jne 0x4e06f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4e06d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4e0714
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4e0706
jmp 0x4e0656
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4e0714
add edi, ecx
jmp 0x4e0656
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4e0732
cmp byte [edi], 0x11
jne 0x4e0732
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 0x4e0737
lea edi, [esi + 0xd9000]
mov eax, dword [edi]
or eax, eax
je 0x4e07af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xea724]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xea8c8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4e0764
mov ecx, edi
jns 0x4e0793
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xea8d0]
or eax, eax
je 0x4e07a9
mov dword [ebx], eax
add ebx, 4
jmp 0x4e0781
call dword [esi + 0xea8cc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4e07e0
cmp al, 0xef
ja 0x4e07d3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4e07b5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4e07c2
mov ebp, dword [esi + 0xea8d4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x4e0814
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0x4217a0
Capabilities:
Check os version
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x48c03b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x528
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov dword [esp + 0x94], ecx
test eax, eax
jne 0x4217d6
lea eax, [esp + 0x78]
mov ebx, dword [0x49d3c8]
mov edx, eax
mov esi, ecx
mov dword [esp + 0x54], eax
mov dword [edx], 0
mov dword [esp + 0x58], ebx
mov dword [esp + 0x30], esi
test ecx, ecx
je 0x421ad3
mov edi, dword [esp + 0x78]
mov edi, edi
Function at 0x42ad00
Capabilities:
Get geographical location

Disassembly:
test esi, esi
je 0x42ad6a
cmp byte [esi], 0
je 0x42ad6a
push 0x4945f8
push esi
call fcn.00476cb6
add esp, 8
test eax, eax
jne 0x42ad21
mov eax, 1
ret
push 0x494600
push esi
call fcn.00476cb6
add esp, 8
test eax, eax
jne 0x42ad39
mov eax, 2
ret
push 0x494608
push esi
call fcn.00476cb6
add esp, 8
test eax, eax
jne 0x42ad51
mov eax, 3
ret
push 0x494610
push esi
call fcn.00476cb6
add esp, 8
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
ret
xor eax, eax
ret
Function at 0x449650
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4a13a4]
sub esp, 0x8c
push ebx
push esi
push edi
push 1
push 0
push 0xffffffffffffffff
push 0x4916f4
mov edi, eax
call fcn.004668b0
mov ecx, dword [0x4a09d8]
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.004668b0
test edi, edi
je 0x449799
cmp byte [edi], 0
je 0x449799
lea eax, [esp + 0x10]
push eax
push edi
call dword [fcn.0048d630]
mov esi, eax
test esi, esi
jne 0x4496c6
call dword [fcn.0048d29c]
mov ecx, dword [0x49d3c8]
mov dword [ecx + 0x30], eax
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.00476de3
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push edi
call dword [fcn.0048d62c]
test eax, eax
je 0x449775
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
push 0x493854
push ebx
call dword [fcn.0048d628]
test eax, eax
je 0x449775
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
push edx
shr ecx, 0x10
push ecx
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push 0x4957b8
mov esi, 0x80
lea edi, [esp + 0x2c]
call fcn.00463ff0
add esp, 0x14
push ebx
call fcn.004785bf
mov edx, dword [0x49d3c8]
mov ecx, dword [0x4a13a4]
add esp, 4
push 1
push 0
push 0xffffffffffffffff
push 0x4900b0
mov dword [edx + 0x30], 0
call fcn.004668b0
mov ecx, dword [0x4a09d8]
push 1
push 0
push 0xffffffffffffffff
mov eax, edi
push eax
call fcn.004668b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [fcn.0048d29c]
mov ecx, dword [0x49d3c8]
push ebx
mov dword [ecx + 0x30], eax
call fcn.004785bf
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [0x49d3c8]
pop edi
pop esi
mov dword [edx + 0x30], 0x57
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401110
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, eax
lea eax, [ebp - 0x810]
sub esp, 0x82c
mov dword [ebp - 0x80c], 0x800
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x20019
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionAppletsRegedit
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
sub esp, 0x24
test eax, eax
je 0x401184
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
lea eax, [ebp - 0x80c]
lea esi, [ebp - 0x808]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x810]
mov dword [esp + 0x10], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.LastKey
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x401214
mov eax, dword [0x414e20]
mov dword [esp], esi
add eax, 0x40
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
je 0x401214
mov dword [esp + 4], esi
mov dword [esp], ebx
call dbg.FindPathInTree
test eax, eax
je 0x401214
mov dword [esp + 0xc], eax
mov dword [esp + 8], 9
mov dword [esp + 4], 0x110b
mov dword [esp], ebx
call dword [0x4156fc]
sub esp, 0x10
jmp 0x40125e
mov eax, dword [0x414e20]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov esi, dword [0x4156fc]
mov dword [esp + 4], 0x110a
mov eax, dword [eax + 4]
mov dword [esp], eax
call esi
sub esp, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
mov dword [esp + 4], 0x1102
mov dword [esp], ebx
call esi
sub esp, 0x10
mov eax, dword [ebp - 0x810]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x401530
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
push ebx
mov ebx, ecx
sub esp, 0x228
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x220], 0
test edx, edx
je 0x401650
lea eax, [ebp - 0x220]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp], esi
call dbg.GetItemPath
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x220]
test ebx, ebx
je 0x4015f0
test eax, eax
je 0x401610
cmp eax, 0x80000000
je 0x4015fb
cmp eax, 0x80000001
je 0x401680
mov edx, dword [str.HKEY_LOCAL_MACHINE]
cmp eax, 0x80000002
je 0x4015d3
cmp eax, 0x80000003
je 0x401690
cmp eax, 0x80000005
je 0x4016a0
mov edx, str.Unknown_HKEY._Please_report.
cmp eax, 0x80000006
je 0x401640
mov dword [ebp - 0x214], edx
test ebx, ebx
jne 0x401610
lea eax, [ebp - 0x218]
call sym._CombinePaths.constprop.6
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
test eax, eax
je 0x4015e8
cmp eax, 0x80000000
jne 0x401599
mov edx, dword [str.HKEY_CLASSES_ROOT]
mov dword [ebp - 0x214], edx
test ebx, ebx
je 0x4015dd
lea esi, [esi]
nop
lea eax, [ebp - 0x21c]
lea ebx, [ebp - 0x210]
mov dword [ebp - 0x21c], 0x104
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetComputerNameW]
mov dword [ebp - 0x218], ebx
sub esp, 8
jmp 0x4015dd
mov edx, dword [str.HKEY_DYN_DATA]
jmp 0x4015d3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 9
mov dword [esp + 4], 0x110a
mov dword [esp], eax
call dword [0x4156fc]
sub esp, 0x10
mov edx, eax
jmp 0x401565
mov edx, dword [str.HKEY_CURRENT_USER]
jmp 0x4015d3
mov edx, dword [str.HKEY_USERS]
jmp 0x4015d3
mov edx, dword [str.HKEY_CURRENT_CONFIG]
jmp 0x4015d3
Function at 0x4029d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [edx + 0x10]
push esi
mov esi, edx
push ebx
sub esp, 0x24
mov dword [ebp - 0x10], eax
lea eax, [edx + 8]
mov ebx, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [ebp - 0x14], eax
mov eax, dword [edx + 4]
mov dword [esp + 4], eax
mov eax, dword [edx]
mov dword [esp], eax
call ebx
sub esp, 0x18
test eax, eax
je 0x402a90
mov ebx, dword [esi + 4]
xor ecx, ecx
cmp eax, 2
je 0x402a60
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x8045
mov dword [esp], eax
mov dword [ebp - 0x14], ecx
call dbg.error_code_messagebox
mov ecx, dword [ebp - 0x14]
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_free]
mov dword [esi + 0xc], 0
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test ebx, ebx
jne 0x402a24
mov dword [esi + 8], 1
mov dword [esi + 0x10], 2
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll_malloc]
xor ecx, ecx
mov dword [esi + 0xc], eax
mov word [eax], cx
mov eax, 1
jmp 0x402a53
mov eax, dword [esi + 0x10]
add eax, 2
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [esi + 4]
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call ebx
mov ecx, dword [ebp - 0x18]
sub esp, 0x18
test eax, eax
jne 0x402af1
mov eax, dword [esi + 0x10]
test al, 1
jne 0x402ae1
and eax, 0xfffffffe
xor edx, edx
mov word [ecx + eax], dx
mov dword [esi + 0xc], ecx
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [esi + 4]
jmp 0x402a24

Function at 0x403630
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x10]
push ebx
sub esp, 0x18
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x2001b
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x4036d0
mov edi, eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0x8150
mov dword [esp + 8], 0x814f
mov dword [esp + 4], 0x34
mov dword [esp], eax
call dbg.messagebox
cmp eax, 6
je 0x4036b0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, edi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.shcore.dll_SHDeleteKeyW]
sub esp, 8
test eax, eax
jne 0x4036f0
mov edi, 1
jmp 0x403694
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x7df
xor edi, edi
mov dword [esp], eax
call dbg.error_code_messagebox
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x805e
mov dword [esp], eax
call dbg.error_code_messagebox
jmp 0x403694
Function at 0x403710
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
sub esp, 0x18
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], 0x2001b
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x403751
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
mov ebx, eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 8]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
sub esp, 8
test eax, eax
je 0x403774
mov edx, dword [ebp + 0x14]
test edx, edx
jne 0x403791
xor ebx, ebx
test eax, eax
sete bl
mov eax, dword [ebp - 8]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, ebx
mov ebx, dword [ebp - 4]
sub esp, 4
leave
ret
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], 0x8045
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.error_code_messagebox
jmp 0x40377b
Function at 0x4037b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x270
mov eax, dword [ecx]
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x258], 0
mov edx, dword [ecx + 8]
mov ebx, dword [ecx + 0x10]
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x264], eax
mov eax, dword [ecx + 4]
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x260], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0x2001b
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x4039d0
mov dword [esp], 0
lea esi, [ebp - 0x210]
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], esi
mov dword [esp + 4], 0x805d
mov dword [esp], eax
call dword [0x4156c0]
sub esp, 0x10
mov edi, eax
test eax, eax
je 0x403991
mov edi, 1
jmp 0x40387c
add edi, 1
cmp edi, 0x64
je 0x4039b1
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [0x415748]
mov eax, dword [ebp - 0x25c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
cmp eax, 2
jne 0x403870
mov eax, dword [ebp - 0x260]
mov edi, 2
sub eax, 3
cmp eax, 8
ja 0x4038e2
mov edi, dword [eax*4 + 0x4121c0]
mov eax, dword [ebp - 0x260]
lea esi, [ebp - 0x258]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x25c]
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
test eax, eax
jne 0x4039b1
mov eax, dword [ebp - 0x260]
mov dword [esp + 0x10], edi
mov edi, 1
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 8], eax
mov eax, dword [0x414e20]
mov dword [esp + 0xc], esi
mov dword [esp + 4], ebx
mov eax, dword [eax + 8]
mov dword [esp], eax
call dbg.AddEntryToList
lea edx, [ebp - 0x24c]
mov dword [ebp - 0x240], 3
mov dword [esp + 8], eax
mov eax, dword [0x414e20]
mov dword [ebp - 0x23c], 3
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0x102b
mov eax, dword [eax + 8]
mov dword [esp], eax
call dword [0x4156fc]
sub esp, 0x10
mov eax, dword [ebp - 0x25c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, edi
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [ebp - 0x264]
mov dword [esp + 4], 0x7dc
xor edi, edi
mov dword [esp], eax
call dbg.error_code_messagebox
jmp 0x403991
mov eax, dword [ebp - 0x264]
mov dword [esp + 4], 0x7dc
xor edi, edi
mov dword [esp], eax
call dbg.error_code_messagebox
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret