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

Disassembly:
cmp eax, edx
je case.default.0x402b0a
add byte [eax], al
and byte [edi + 0x7c], dh
sub ecx, 0xffffffb2
add byte [edi], al
jmp dword [ecx*4 + 0x40455c]
add byte [eax + 0x40453990], dl
wait
add byte [ebp + 0x40], al
add al, al
inc ebp
inc eax
add byte [eax], al
add byte [eax], al
aam 0x45
inc eax
sldt word [ebp + 0x40]
add ah, ah
inc ebp
inc eax
add byte [eax], al
add byte [eax], al
cld
inc ebp
inc eax
sti
add bh, bl
sub byte [ebp - 0x7207febc], cl
add byte [eax], al
clc
fild qword [eax]
push ecx
imul dword [ebx]
add dl, ah
clc
lea ecx, [edx + ecx + 8]
pop edx
add byte [eax], al
add edi, ebx
cmp al, 0x11
xor dword [eax], 0
jl 0x402b70
fistp qword [edx]
pop edx
fistp qword [edx]
add byte [eax], al
cmp eax, edx
ja 0x402b58
dec edx
add byte [ecx], bh
ror byte [ebp - 0x3789eeec], 1
add byte [eax], al
or byte [ecx - 0x21], dl
sub al, 1
outsd dx, dword [esi]
add byte [ecx], al
rol dword [ebx - 0x2ed6071f], 1
add byte [eax], al
add edi, ebx
cmp al, 0x11
xor ecx, 0
jg 0x402ba0
pop ecx
fistp qword [edx]
fistp qword [eax + eax]
add byte [edi], cl
mov dh, 8
mov byte [edx], cl
int 0
mov bh, 8
mov word [edx], cx
ret

Function at 0x419410
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0xc0
lea eax, [esp]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0x1c]
mov edi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x12]
mov esi, dword [esp + 0xcc]
lea ecx, [esp + 0x18]
and edx, 0xffff
and eax, 0xffff
push ecx
push edi
mov dword [esi], edx
mov dword [esi + 4], eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
je 0x419477
mov edx, dword [0x4d089c]
push 0x4d05a0
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xe]
mov edx, dword [esp + 0xa]
and eax, 0xffff
and ecx, 0xffff
and edx, 0xffff
mov dword [esi + 8], eax
mov eax, dword [esp + 8]
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x10], edx
mov edx, dword [esp + 0xc4]
and eax, 0xffff
lea edi, [ecx + edx]
mov dword [esi + 0x14], eax
mov eax, edi
cdq
mov ecx, eax
mov eax, 0x88888889
xor ecx, edx
sub ecx, edx
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esi + 0x18], edx
lea eax, [edx + edx*2]
lea edx, [eax + eax*4]
xor eax, eax
shl edx, 2
sub ecx, edx
test edi, edi
mov dword [esi + 0x1c], ecx
mov ecx, dword [esi + 0x20]
setl al
shl eax, 1
and ecx, 0xfffffffd
pop edi
or eax, ecx
or al, 1
mov dword [esi + 0x20], eax
mov eax, esi
pop esi
add esp, 0xc0
ret
Function at 0x41b4dc
Capabilities:
Encode data using xor

Disassembly:
cmp eax, edx
je case.default.0x41b4ea
add byte [eax], al
and byte [edi + 0x7c], dh
sub ecx, 0xffffffb2
add byte [edi], al
jmp dword [ecx*4 + 0x40455c]
add byte [eax + 0x40453990], dl
wait
add byte [ebp + 0x40], al
add al, al
inc ebp
inc eax
add byte [eax], al
add byte [eax], al
aam 0x45
inc eax
sldt word [ebp + 0x40]
add ah, ah
inc ebp
inc eax
add byte [eax], al
add byte [eax], al
cld
inc ebp
inc eax
sti
add bh, bl
sub byte [ebp - 0x7207febc], cl
add byte [eax], al
clc
fild qword [eax]
push ecx
imul dword [ebx]
add dl, ah
clc
lea ecx, [edx + ecx + 8]
pop edx
add byte [eax], al
add edi, ebx
cmp al, 0x11
xor dword [eax], 0
jl 0x41b550
fistp qword [edx]
pop edx
fistp qword [edx]
add byte [eax], al
cmp eax, edx
ja 0x41b538
dec edx
add byte [ecx], bh
ror byte [ebp - 0x3789eeec], 1
add byte [eax], al
or byte [ecx - 0x21], dl
sub al, 1
outsd dx, dword [esi]
add byte [ecx], al
rol dword [ebx - 0x2ed6071f], 1
add byte [eax], al
add edi, ebx
cmp al, 0x11
xor ecx, 0
jg 0x41b580
pop ecx
fistp qword [edx]
fistp qword [eax + eax]
add byte [edi], cl
mov dh, 8
mov byte [edx], cl
int 0
mov bh, 8
mov word [edx], cx
ret

Function at 0x433d7c
Capabilities:
Encode data using xor

Disassembly:
cmp eax, edx
je case.default.0x433d8a
add byte [eax], al
and byte [edi + 0x7c], dh
sub ecx, 0xffffffb2
add byte [edi], al
jmp dword [ecx*4 + 0x40455c]
add byte [eax + 0x40453990], dl
wait
add byte [ebp + 0x40], al
add al, al
inc ebp
inc eax
add byte [eax], al
add byte [eax], al
aam 0x45
inc eax
sldt word [ebp + 0x40]
add ah, ah
inc ebp
inc eax
add byte [eax], al
add byte [eax], al
cld
inc ebp
inc eax
sti
add bh, bl
sub byte [ebp - 0x7207febc], cl
add byte [eax], al
clc
fild qword [eax]
push ecx
imul dword [ebx]
add dl, ah
clc
lea ecx, [edx + ecx + 8]
pop edx
add byte [eax], al
add edi, ebx
cmp al, 0x11
xor dword [eax], 0
jl 0x433df0
fistp qword [edx]
pop edx
fistp qword [edx]
add byte [eax], al
cmp eax, edx
ja 0x433dd8
dec edx
add byte [ecx], bh
ror byte [ebp - 0x3789eeec], 1
add byte [eax], al
or byte [ecx - 0x21], dl
sub al, 1
outsd dx, dword [esi]
add byte [ecx], al
rol dword [ebx - 0x2ed6071f], 1
add byte [eax], al
add edi, ebx
cmp al, 0x11
xor ecx, 0
jg 0x433e20
pop ecx
fistp qword [edx]
fistp qword [eax + eax]
add byte [edi], cl
mov dh, 8
mov byte [edx], cl
int 0
mov bh, 8
mov word [edx], cx
ret
Function at 0x44c28c
Capabilities:
Encode data using xor

Disassembly:
cmp eax, edx
je case.default.0x44c29a
add byte [eax], al
and byte [edi + 0x7c], dh
sub ecx, 0xffffffb2
add byte [edi], al
jmp dword [ecx*4 + 0x40455c]
add byte [eax + 0x40453990], dl
wait
add byte [ebp + 0x40], al
add al, al
inc ebp
inc eax
add byte [eax], al
add byte [eax], al
aam 0x45
inc eax
sldt word [ebp + 0x40]
add ah, ah
inc ebp
inc eax
add byte [eax], al
add byte [eax], al
cld
inc ebp
inc eax
sti
add bh, bl
sub byte [ebp - 0x7207febc], cl
add byte [eax], al
clc
fild qword [eax]
push ecx
imul dword [ebx]
add dl, ah
clc
lea ecx, [edx + ecx + 8]
pop edx
add byte [eax], al
add edi, ebx
cmp al, 0x11
xor dword [eax], 0
jl 0x44c300
fistp qword [edx]
pop edx
fistp qword [edx]
add byte [eax], al
cmp eax, edx
ja 0x44c2e8
dec edx
add byte [ecx], bh
ror byte [ebp - 0x3789eeec], 1
add byte [eax], al
or byte [ecx - 0x21], dl
sub al, 1
outsd dx, dword [esi]
add byte [ecx], al
rol dword [ebx - 0x2ed6071f], 1
add byte [eax], al
add edi, ebx
cmp al, 0x11
xor ecx, 0
jg 0x44c330
pop ecx
fistp qword [edx]
fistp qword [eax + eax]
add byte [edi], cl
mov dh, 8
mov byte [edx], cl
int 0
mov bh, 8
mov word [edx], cx
ret

Function at 0x470ee4
Capabilities:
Encode data using xor

Disassembly:
mov dword [esi + 0xf713e35], edx
fdiv st(4), st(0)
cmp eax, 0xab771882
mov bh, 0xd8
jo 0x470f3b
pop es
adc eax, 0x4efc27b0
ror dword [ebp - 0x23], cl
mov esi, 0x54368eb0
dec ebp
fnstsw word [esi + 0x54368eb0]
jno 0x470e9f
std
in al, dx
salc
dec ebp
sbb bh, ah
int 0x7f
arpl word [ebx + 0x48], ax
sbb ebp, dword [edx + 0x119c82d6]
mov dword [esp + ecx*2 + 0x7f], ebp
test dl, dh
retf 0xece0
sbb al, 0x7b
xlatb
mov eax, 0xbc766ddc
push ds
in al, dx
mov bl, 0xf0
or esi, eax
fiadd dword es:[ebx]
sbb al, 9
add dh, byte [edx - 0x142c82cd]
cwde
fstp xword [ebx]
mov dl, 0xfb
pop ebx
and edi, ecx
inc esi
rcl dword [edi + 0x33], cl
inc edi
out 0x86, al
jge 0x470fb5
jmp 0x470f6a
xor ebp, dword [edi - 0x69]
mov esp, 0xdc80fb91
je 0x470efc
test byte [ebp - 0x2b], 0x22
lcall 0x5d7d, 0xa41be7e9
les edi, [eax]
mov ch, 0xb2
lcall 0x9cb8, 0x531a3c63
dec esp
hlt
ficomp dword [ecx]
invalid
Function at 0x47cf0c
Capabilities:
Encode data using xor

Disassembly:
cmp eax, edx
je case.default.0x47cf1a
add byte [eax], al
and byte [edi + 0x7c], dh
sub ecx, 0xffffffb2
add byte [edi], al
jmp dword [ecx*4 + 0x40455c]
add byte [eax + 0x40453990], dl
wait
add byte [ebp + 0x40], al
add al, al
inc ebp
inc eax
add byte [eax], al
add byte [eax], al
aam 0x45
inc eax
sldt word [ebp + 0x40]
add ah, ah
inc ebp
inc eax
add byte [eax], al
add byte [eax], al
cld
inc ebp
inc eax
sti
add bh, bl
sub byte [ebp - 0x7207febc], cl
add byte [eax], al
clc
fild qword [eax]
push ecx
imul dword [ebx]
add dl, ah
clc
lea ecx, [edx + ecx + 8]
pop edx
add byte [eax], al
add edi, ebx
cmp al, 0x11
xor dword [eax], 0
jl 0x47cf80
fistp qword [edx]
pop edx
fistp qword [edx]
add byte [eax], al
cmp eax, edx
ja 0x47cf68
dec edx
add byte [ecx], bh
ror byte [ebp - 0x3789eeec], 1
add byte [eax], al
or byte [ecx - 0x21], dl
sub al, 1
outsd dx, dword [esi]
add byte [ecx], al
rol dword [ebx - 0x2ed6071f], 1
add byte [eax], al
add edi, ebx
cmp al, 0x11
xor ecx, 0
jg 0x47cfb0
pop ecx
fistp qword [edx]
fistp qword [eax + eax]
add byte [edi], cl
mov dh, 8
mov byte [edx], cl
int 0
mov bh, 8
mov word [edx], cx
ret

Function at 0x495f9c
Capabilities:
Encode data using xor

Disassembly:
cmp eax, edx
je case.default.0x495faa
add byte [eax], al
and byte [edi + 0x7c], dh
sub ecx, 0xffffffb2
add byte [edi], al
jmp dword [ecx*4 + 0x40455c]
add byte [eax + 0x40453990], dl
wait
add byte [ebp + 0x40], al
add al, al
inc ebp
inc eax
add byte [eax], al
add byte [eax], al
aam 0x45
inc eax
sldt word [ebp + 0x40]
add ah, ah
inc ebp
inc eax
add byte [eax], al
add byte [eax], al
cld
inc ebp
inc eax
sti
add bh, bl
sub byte [ebp - 0x7207febc], cl
add byte [eax], al
clc
fild qword [eax]
push ecx
imul dword [ebx]
add dl, ah
clc
lea ecx, [edx + ecx + 8]
pop edx
add byte [eax], al
add edi, ebx
cmp al, 0x11
xor dword [eax], 0
jl 0x496010
fistp qword [edx]
pop edx
fistp qword [edx]
add byte [eax], al
cmp eax, edx
ja 0x495ff8
dec edx
add byte [ecx], bh
ror byte [ebp - 0x3789eeec], 1
add byte [eax], al
or byte [ecx - 0x21], dl
sub al, 1
outsd dx, dword [esi]
add byte [ecx], al
rol dword [ebx - 0x2ed6071f], 1
add byte [eax], al
add edi, ebx
cmp al, 0x11
xor ecx, 0
jg 0x496040
pop ecx
fistp qword [edx]
fistp qword [eax + eax]
add byte [edi], cl
mov dh, 8
mov byte [edx], cl
int 0
mov bh, 8
mov word [edx], cx
ret
Function at 0x4ae85c
Capabilities:
Encode data using xor

Disassembly:
cmp eax, edx
je case.default.0x4ae86a
add byte [eax], al
and byte [edi + 0x7c], dh
sub ecx, 0xffffffb2
add byte [edi], al
jmp dword [ecx*4 + 0x40455c]
add byte [eax + 0x40453990], dl
wait
add byte [ebp + 0x40], al
add al, al
inc ebp
inc eax
add byte [eax], al
add byte [eax], al
aam 0x45
inc eax
sldt word [ebp + 0x40]
add ah, ah
inc ebp
inc eax
add byte [eax], al
add byte [eax], al
cld
inc ebp
inc eax
sti
add bh, bl
sub byte [ebp - 0x7207febc], cl
add byte [eax], al
clc
fild qword [eax]
push ecx
imul dword [ebx]
add dl, ah
clc
lea ecx, [edx + ecx + 8]
pop edx
add byte [eax], al
add edi, ebx
cmp al, 0x11
xor dword [eax], 0
jl 0x4ae8d0
fistp qword [edx]
pop edx
fistp qword [edx]
add byte [eax], al
cmp eax, edx
ja 0x4ae8b8
dec edx
add byte [ecx], bh
ror byte [ebp - 0x3789eeec], 1
add byte [eax], al
or byte [ecx - 0x21], dl
sub al, 1
outsd dx, dword [esi]
add byte [ecx], al
rol dword [ebx - 0x2ed6071f], 1
add byte [eax], al
add edi, ebx
cmp al, 0x11
xor ecx, 0
jg 0x4ae900
pop ecx
fistp qword [edx]
fistp qword [eax + eax]
add byte [edi], cl
mov dh, 8
mov byte [edx], cl
int 0
mov bh, 8
mov word [edx], cx
ret

Function at 0x4c6232
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4cd440
cmp edx, dword [eax]
je 0x4c6254
add eax, 8
inc ecx
cmp eax, 0x4cd4d0
jl 0x4c6245
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4cd440]
jne 0x4c6382
mov eax, dword [0x4d1b2c]
cmp eax, 1
je 0x4c635c
test eax, eax
jne 0x4c6285
cmp dword [0x4cd384], 1
je 0x4c635c
cmp edx, 0xfc
je 0x4c6382
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c62bc
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004c6950
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c6b80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c62ff
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c6b80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4ca940
push edi
call fcn.004c8350
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004c6950
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c6960
lea eax, [ebp - 0xa0]
push 0x4ca920
push eax
call fcn.004c6960
push dword [esi + 0x4cd444]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c6960
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004c82c4
add esp, 0x2c
pop edi
jmp 0x4c6382
lea eax, [ebp + 8]
lea esi, [esi + 0x4cd444]
push 0
push eax
push dword [esi]
call fcn.004c6b80
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4010a0
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
push ebx
mov ebx, eax
sub esp, 0x844
lea eax, [esp + 0x38]
mov dword [esp + 0x3c], 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 0x401110
add esp, 0x844
pop ebx
pop esi
ret
lea eax, [esp + 0x3c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
lea esi, [esp + 0x40]
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 0x4011a0
mov eax, dword [section..bss]
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 0x4011a0
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.0040db60
test eax, eax
je 0x4011a0
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 0x4011ea
mov eax, dword [section..bss]
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 [esp + 0x38]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
add esp, 0x844
pop ebx
pop esi
ret
Function at 0x401410
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, eax
push ebx
mov ebx, ecx
sub esp, 0x234
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], 0
test edx, edx
je 0x401538
lea eax, [esp + 0x18]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp], esi
call fcn.0040cd00
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [esp + 0x18]
test ebx, ebx
je 0x401500
test eax, eax
je 0x4014d1
cmp eax, 0x80000000
je 0x4014c8
cmp eax, 0x80000001
je 0x4015a0
mov edx, dword [str.HKEY_LOCAL_MACHINE]
cmp eax, 0x80000002
je 0x4014aa
cmp eax, 0x80000003
je 0x401568
cmp eax, 0x80000005
je 0x401590
mov edx, str.Unknown_HKEY._Please_report.
cmp eax, 0x80000006
je 0x401528
mov dword [esp + 0x24], edx
test ebx, ebx
jne 0x4014d1
lea eax, [esp + 0x20]
call fcn.004012d0
add esp, 0x234
pop ebx
pop esi
ret
mov eax, dword [str.HKEY_CLASSES_ROOT]
mov dword [esp + 0x24], eax
lea ebx, [esp + 0x28]
mov dword [esp + 0x1c], 0x104
lea eax, [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_GetComputerNameW]
sub esp, 8
mov dword [esp + 0x20], ebx
jmp 0x4014b2
test eax, eax
je 0x4014bb
cmp eax, 0x80000000
je 0x401578
cmp eax, 0x80000001
jne 0x40147b
mov eax, dword [str.HKEY_CURRENT_USER]
mov dword [esp + 0x24], eax
jmp 0x4014b2
mov edx, dword [str.HKEY_DYN_DATA]
jmp 0x4014aa
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 0x40143c
mov edx, dword [str.HKEY_USERS]
jmp 0x4014aa
mov eax, dword [str.HKEY_CLASSES_ROOT]
mov dword [esp + 0x24], eax
jmp 0x4014b2
mov edx, dword [str.HKEY_CURRENT_CONFIG]
jmp 0x4014aa
mov eax, dword [str.HKEY_CURRENT_USER]
mov dword [esp + 0x24], eax
jmp 0x4014d1
Function at 0x402ac0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [edx + 0x10]
push edi
lea edi, [edx + 8]
push esi
push ebx
mov ebx, edx
sub esp, 0x3c
mov esi, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 4]
mov dword [esp + 4], eax
mov eax, dword [edx]
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
je 0x402b80
mov ecx, dword [ebx + 4]
mov dword [esp + 0x28], 0
cmp eax, 2
je 0x402b50
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x8045
mov dword [esp], eax
call fcn.004026d0
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov dword [ebx + 0xc], 0
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
test ecx, ecx
jne 0x402b16
mov dword [ebx + 8], 1
mov dword [ebx + 0x10], 2
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll_malloc]
xor ecx, ecx
mov dword [ebx + 0xc], eax
mov word [eax], cx
jmp 0x402bca
mov eax, dword [ebx + 0x10]
add eax, 2
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
jne 0x402bf0
mov eax, dword [ebx + 0x10]
test al, 1
je 0x402be0
mov eax, dword [esp + 0x28]
mov dword [ebx + 0xc], eax
add esp, 0x3c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x28]
and eax, 0xfffffffe
xor edx, edx
mov word [ecx + eax], dx
jmp 0x402bc3
mov ecx, dword [ebx + 4]
jmp 0x402b16

Function at 0x403780
Capabilities:
Delete registry key

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov edi, dword [esp + 0x54]
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], 0x2001b
mov esi, dword [esp + 0x58]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x50]
mov dword [esp + 8], 0
mov dword [esp], edi
mov dword [esp + 4], esi
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x403820
mov dword [esp + 0xc], 0x8150
mov ebx, eax
mov dword [esp + 8], 0x814f
mov dword [esp + 4], 0x34
mov dword [esp], ebp
call fcn.004033d0
cmp eax, 6
je 0x403800
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, ebx
sub esp, 4
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [sym.imp.shcore.dll_SHDeleteKeyW]
sub esp, 8
test eax, eax
jne 0x403840
mov ebx, 1
jmp 0x4037e6
mov dword [esp], ebp
xor ebx, ebx
mov dword [esp + 4], 0x7df
call fcn.004026d0
add esp, 0x3c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], esi
mov dword [esp + 4], 0x805e
mov dword [esp], ebp
call fcn.004026d0
jmp 0x4037e6
Function at 0x403860
Capabilities:
Delete registry value

Disassembly:
push ebx
xor ebx, ebx
sub esp, 0x38
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], 0x2001b
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x4038a8
add esp, 0x38
mov eax, ebx
pop ebx
ret
mov ebx, eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
sub esp, 8
test eax, eax
je 0x4038ce
mov edx, dword [esp + 0x4c]
test edx, edx
jne 0x4038f0
xor ebx, ebx
test eax, eax
sete bl
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, ebx
sub esp, 4
add esp, 0x38
pop ebx
ret
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], 0x8045
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.004026d0
jmp 0x4038d5
Function at 0x403910
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x28c
lea eax, [esp + 0x34]
mov ebx, dword [esp + 0x2b0]
mov dword [esp + 0x38], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2a8]
mov dword [esp + 0x3c], 0
mov dword [esp + 0xc], 0x2001b
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2a4]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x403b18
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
lea esi, [esp + 0x80]
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
test eax, eax
je 0x403ad6
mov ebp, dword [0x415748]
mov edi, 1
jmp 0x4039cc
add edi, 1
cmp edi, 0x64
je 0x403af8
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call ebp
mov eax, dword [esp + 0x34]
mov dword [esp + 4], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
cmp eax, 2
jne 0x4039c0
mov eax, dword [esp + 0x2ac]
mov esi, 2
sub eax, 3
cmp eax, 8
jbe 0x403b50
mov eax, dword [esp + 0x2ac]
lea edi, [esp + 0x38]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
test eax, eax
jne 0x403af8
mov eax, dword [esp + 0x2ac]
mov dword [esp + 4], ebx
mov ebx, 3
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov eax, dword [section..bss]
mov eax, dword [eax + 8]
mov dword [esp], eax
call fcn.004080b0
lea edx, [esp + 0x40]
mov ecx, 3
mov dword [esp + 4], 0x102b
mov dword [esp + 8], eax
mov eax, dword [section..bss]
mov dword [esp + 0xc], edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ebx
mov eax, dword [eax + 8]
mov dword [esp], eax
call dword [0x4156fc]
sub esp, 0x10
mov dword [esp + 0x2c], 1
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [esp + 0x2c]
add esp, 0x28c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x2a0]
mov dword [esp + 4], 0x7dc
mov dword [esp], eax
call fcn.004026d0
jmp 0x403ad6
mov eax, dword [esp + 0x2a0]
mov dword [esp + 4], 0x7dc
mov dword [esp], eax
call fcn.004026d0
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x2c]
add esp, 0x28c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [eax*4 + 0x411240]
jmp 0x403a2a