joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404440
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x45f678]
test eax, eax
je 0x404455
push eax
call fcn.00429fef
add esp, 4
mov eax, dword [0x45f67c]
test eax, eax
je 0x404467
push eax
call fcn.00429fef
add esp, 4
mov eax, dword [0x45f674]
test eax, eax
je 0x404479
push eax
call fcn.00429fef
add esp, 4
mov eax, dword [0x45f670]
test eax, eax
je 0x40448b
push eax
call fcn.00429fef
add esp, 4
mov eax, dword [0x460e88]
test eax, eax
je 0x4044ba
cmp dword [eax + 4], 2
jne 0x4044af
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x4044af
push ecx
call fcn.00429fef
mov eax, dword [0x460e88]
add esp, 4
mov eax, dword [eax]
mov dword [0x460e88], eax
test eax, eax
jne 0x404494
mov eax, dword [0x460e80]
mov dword [0x460e88], eax
test eax, eax
je 0x4044ee
cmp dword [eax + 4], 1
jne 0x4044e3
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x4044e3
push ecx
call fcn.00429fef
mov eax, dword [0x460e88]
add esp, 4
mov eax, dword [eax]
mov dword [0x460e88], eax
test eax, eax
jne 0x4044c8
call fcn.0040b770
cmp dword [0x460890], 0
je 0x40463c
cmp dword [0x45f65c], 0
jne 0x404512
cmp dword [0x45f660], 0
je 0x404552
push dword [0x45f658]
push str._ASxxxx_Info_pass_count______________________3d_n
push 2
call fcn.00429ea3
add esp, 4
push eax
call fcn.004011b0
mov eax, dword [0x45f650]
add esp, 0xc
test eax, eax
je 0x404552
push eax
push str._ASxxxx_Info_residual_fuzz___________________3d_n
push 2
call fcn.00429ea3
add esp, 4
push eax
call fcn.004011b0
add esp, 0xc
push dword [0x460ba4]
push str._ASxxxx_Info_maxinc_include_file_level_______3d_n
push 2
call fcn.00429ea3
add esp, 4
push eax
call fcn.004011b0
add esp, 0xc
push dword [0x460b9c]
push str._ASxxxx_Info_maxmcr_macro_expansion_level____3d_n
push 2
call fcn.00429ea3
add esp, 4
push eax
call fcn.004011b0
add esp, 0xc
push dword [0x460e60]
push str._ASxxxx_Info_mcrcnt_macro_definitions________3d_n
push 2
call fcn.00429ea3
add esp, 4
push eax
call fcn.004011b0
add esp, 0xc
push dword [0x460e5c]
push str._ASxxxx_Info_mcrexe_macros_executed__________3d_n
push 2
call fcn.00429ea3
add esp, 4
push eax
call fcn.004011b0
add esp, 0xc
push dword [0x460e54]
push str._ASxxxx_Info_inlexe_inlines_executed_________3d_n
push 2
call fcn.00429ea3
add esp, 4
push eax
call fcn.004011b0
add esp, 0xc
push dword [0x460bb0]
push str._ASxxxx_Info_asmblk_1K_Byte_Allocations______3d_n
push 2
call fcn.00429ea3
add esp, 4
push eax
call fcn.004011b0
add esp, 0xc
push dword [0x460bac]
push str._ASxxxx_Info_mcrblk_1K_Byte_Allocations______3d_n
push 2
call fcn.00429ea3
add esp, 4
push eax
call fcn.004011b0
add esp, 0xc
push 0x4504d0
push 2
call fcn.00429ea3
add esp, 4
push eax
call fcn.004011b0
add esp, 8
push dword [ebp + 8]
call fcn.0042af88
int3
Function at 0x439168
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00438d6d

Function at 0x439173
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00438eee

Function at 0x43a172
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00439ef9

Function at 0x43c35e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043bb38

Function at 0x43c369
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043bd73
Function at 0x4090c2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x4090e3
jl 0x4090da
test edi, edi
jne 0x4090e3
xor eax, eax
xor edx, edx
jmp 0x4091a4
cmp dword [ebx + 0x38], 0
je 0x4090f8
push eax
push edi
push dword [ebp + 8]
call fcn.004091aa
jmp 0x4091a4
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40913f
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40913f
cmp eax, edi
jb 0x409119
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040a6a0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x409145
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x409199
mov ecx, ebx
call fcn.0040891b
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x409184
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00411828
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x409199
jmp 0x409157
test edx, edx
je 0x409199
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00411828
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40a4e0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a51f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40a51f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a51f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40a51f
cmp dword [ecx + 0x74], 0xe
jbe 0x40a51f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41878e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b1a0
push 0x42b198
push str.FlsAlloc
push 0x1e
call fcn.004185fb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4187c2
push dword [ebp + 8]
mov ecx, esi
call dword [0x427130]
call esi
jmp 0x4187c8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41880c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b1b0
push 0x42b1a8
push str.FlsGetValue
push 0x20
call fcn.004185fb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418843
push dword [ebp + 8]
mov ecx, esi
call dword [0x427130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41a8f3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a764

Function at 0x41aced
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a650
mov eax, dword [0x435018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00418007
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41ad2f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41ae8b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00425b30
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4368f0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041bce4
mov ecx, dword [esi*4 + 0x4368f0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41ae84
cmp eax, dword [edi + ecx + 0x24]
jne 0x41ae84
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ae84
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041bce4
add esp, 0x14
test edx, edx
jl 0x41ae84
jg 0x41adfa
test eax, eax
jb 0x41ae84
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41ae84
jl 0x41ae14
cmp dword [ebp - 0x1008], eax
ja 0x41ae84
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41ae32
test ebx, ebx
je 0x41ae6b
cmp ecx, edi
jae 0x41ae6b
mov al, byte [ecx]
cmp al, 0xd
jne 0x41ae4c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41ae58
cmp byte [ecx + 1], 0xa
jne 0x41ae58
inc ecx
jmp 0x41ae58
movzx eax, al
movsx eax, byte [eax + 0x4352b8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41ae32
cmp edx, ebx
jne 0x41ae32
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41ae89
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004098ca
leave
ret
Function at 0x41b182
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4368f0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41b1c2
cmp byte [ebx], 0xa
jne 0x41b1c2
or byte [eax + edi + 0x28], 4
jmp 0x41b1c7
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41b2c5
mov al, byte [edx]
cmp al, 0x1a
je 0x41b2a7
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41b1f6
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41b21b
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41b225
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41b1d8
jmp 0x41b2c5
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b2a2
cmp dword [ebp - 0xc], 0
je 0x41b2a2
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4368f0]
test byte [eax + edi + 0x28], 0x48
je 0x41b27c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41b267
mov byte [esi], dl
jmp 0x41b278
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4368f0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41b2c5
cmp byte [ebp - 1], 0xa
jne 0x41b28b
cmp esi, ebx
jne 0x41b28b
mov byte [esi], 0xa
jmp 0x41b2c4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041bd02
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41b2c5
mov byte [esi], 0xd
jmp 0x41b2c4
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4368f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b2c1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b2c5
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41b2ce
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4368f0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41b311
cmp word [esi], dx
jne 0x41b311
or byte [edi + eax + 0x28], 4
jmp 0x41b316
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41b469
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41b449
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41b358
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41b38e
cmp eax, edx
jae 0x41b39a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41b330
jmp 0x41b469
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b445
cmp dword [ebp - 0x14], 0
je 0x41b445
mov eax, dword [ebx*4 + 0x4368f0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41b41d
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41b3e6
mov word [esi], cx
jmp 0x41b419
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4368f0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4368f0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4368f0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41b469
pop ebx
cmp word [ebp - 4], bx
jne 0x41b42e
cmp esi, dword [ebp + 0xc]
jne 0x41b42e
mov word [esi], bx
jmp 0x41b466
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041bd02
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41b469
push 0xd
jmp 0x41b462
mov ecx, dword [ebx*4 + 0x4368f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b460
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b469
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41e993
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41ea30
push ebx
push esi
call fcn.0041e95c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041d5e1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41e9dd
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ea2f
push edi
push eax
call fcn.00417116
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41e9fd
call fcn.004170dc
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ea2e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041d5e1
add esp, 0x20
test eax, eax
jne 0x41ea1c
push edi
call fcn.004170dc
jmp 0x41ea24
push ebx
call fcn.004170dc
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x425930
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42595d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42595d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x408379
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x408388
pop dword [ebp - 0x30]
mov eax, 0x142463a0
add eax, 0xec1c1fe8
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x39322
push 0
mov eax, 0x6591101b
add eax, 0x9aafd0bd
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0xa6a1273e
sub ecx, 0xa6a0df67
xor ebx, ebx
add ebx, eax
mov esi, 0x2aff3fe
sub esi, 0x26eb83a
add esi, dword [ebp - 0x30]
mov edi, 0xbec108e1
add edi, 0xfbc2e94
sub dword [ebp - 0x20], edx
mov edx, dword [esi]
xor dword [ebp - 0xc], edi
xor edx, edi
mov dword [ebp - 0x28], 0xa9867ae6
mov dword [ebx], edx
sub dword [ebp - 8], eax
add ebx, 0x15a36277
sub ebx, 0x15a36273
add esi, 4
loop 0x4083e9
add eax, 0x1122f
mov ebx, eax
add eax, 5
mov ecx, 0x8a091fa
sub ecx, 0x86091fa
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x4082a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov eax, dword [0x4979d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea edx, [ebp - 0x3f4]
push edx
push 0x20019
push 0
push str.TypeLib
push SysReAllocStringLen
mov dword [ebp - 0x3fc], eax
mov dword [ebp - 0x400], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push SysReAllocStringLen
mov esi, eax
call edi
test esi, esi
je 0x408307
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004596e3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x3f4]
lea eax, [ebp - 0x3f0]
push eax
push 0x20019
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [ebp - 0x3f4]
push edx
mov esi, eax
call edi
test esi, esi
jne 0x4082f5
mov edx, dword [ebp - 0x3f0]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x3ec]
push ecx
push esi
push edx
mov dword [ebp - 0x3f8], 0x3e8
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
mov eax, dword [ebp - 0x3f0]
push eax
call edi
test esi, esi
jne 0x4082f5
mov ecx, dword [ebp - 0x400]
mov edx, dword [ebp - 0x3fc]
push ecx
push edx
lea eax, [ebp - 0x3ec]
push str._d._d
push eax
call fcn.0045bee7
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.004596e3
mov esp, ebp
pop ebp
ret
Function at 0x4083a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2720
call fcn.004715f0
mov eax, dword [0x4979d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x2720], eax
mov eax, dword [0x480ecc]
mov esi, ecx
mov ecx, dword [str.SoftwareClasses_]
mov ebx, edx
mov edx, dword [0x480ec8]
push 0x26fe
mov dword [ebp - 0x270c], eax
mov dword [ebp - 0x2714], ecx
mov ecx, dword [0x480ed0]
mov dword [ebp - 0x2710], edx
mov dx, word [0x480ed4]
lea eax, [ebp - 0x2702]
push 0
push eax
mov byte [ebp - 0x2715], 0
mov dword [ebp - 0x2708], ecx
mov word [ebp - 0x2704], dx
call fcn.00464aa0
mov eax, esi
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408424
push edi
lea edi, [ebp - 0x2714]
sub eax, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408435
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebx, ebx
je 0x408498
lea edi, [ebp - 0x2714]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408456
mov cx, word [0x480ed8]
mov eax, ebx
mov word [edi], cx
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408470
lea edi, [ebp - 0x2714]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408482
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea edx, [ebp - 0x271c]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x2714]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop edi
test eax, eax
jne 0x40853d
mov esi, dword [ebp - 0x2720]
test esi, esi
je 0x4084f7
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4084d4
mov ecx, dword [ebp - 0x271c]
sub eax, edx
inc eax
push eax
push esi
push 1
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x408518
mov edx, dword [ebp - 0x271c]
push edx
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004596e3
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x271c]
mov bl, byte [ebp - 0x2715]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004596e3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x2715]
pop esi
xor ecx, ebp
pop ebx
call fcn.004596e3
mov esp, ebp
pop ebp
ret
Function at 0x408560
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2714
call fcn.004715f0
mov eax, dword [0x4979d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [0x480ecc]
mov eax, dword [str.SoftwareClasses_]
push esi
push edi
mov esi, ecx
mov ecx, dword [0x480ec8]
push 0x26fe
mov dword [ebp - 0x270c], edx
mov dword [ebp - 0x2714], eax
mov eax, dword [0x480ed0]
mov dword [ebp - 0x2710], ecx
mov cx, word [0x480ed4]
lea edx, [ebp - 0x2702]
push 0
push edx
mov dword [ebp - 0x2708], eax
mov word [ebp - 0x2704], cx
call fcn.00464aa0
mov eax, esi
add esp, 0xc
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4085d1
lea edi, [ebp - 0x2714]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4085e1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x2714]
push eax
and ecx, 3
push SysReAllocStringLen
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ecx, dword [ebp - 4]
test eax, eax
sete al
pop edi
xor ecx, ebp
pop esi
call fcn.004596e3
mov esp, ebp
pop ebp
ret
Function at 0x40d6d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47bc2b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
mov eax, dword [0x4979d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi], ebx
mov ecx, dword [0x4802a8]
mov dword [esi + 0xc], ecx
mov edx, dword [0x4802ac]
mov dword [esi + 0x10], edx
mov ecx, dword [0x4802b0]
mov dword [esi + 0x14], ecx
mov edx, dword [0x4802b4]
mov dword [esi + 0x18], edx
mov dword [esi + 8], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], eax
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov dword [esi + 0x30], edi
cmp edi, ebx
je 0x40d7a4
mov eax, dword [edi]
mov ecx, dword [eax + 0x10]
push esi
push edi
call ecx
cmp eax, ebx
mov eax, dword [esi + 0x30]
jl 0x40d795
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x30]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp + 8]
mov dword [ebp + 8], ebx
mov dword [ebp - 0x10], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x48]
call eax
cmp eax, ebx
jl 0x40d7a4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
lea eax, [esi + 4]
push eax
mov eax, dword [edx + 0x20]
push ecx
call eax
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x40d7a4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp + 8], ebx
jmp 0x40d7a4
cmp eax, ebx
je 0x40d7a4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x30], ebx
push 8
call fcn.0045b086
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x40d7d5
mov dword [ebx], vtable.tcomxTypeHandler.0
mov dword [ebx + 4], edi
test edi, edi
je 0x40d7d7
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
jmp 0x40d7d7
xor ebx, ebx
mov dword [esi + 0x28], ebx
lea eax, [esi + 0x34]
mov ecx, 0x96
mov dword [eax], 0
add eax, 0x10
dec ecx
jne 0x40d7e2
mov eax, dword [0x49a1f0]
mov dword [esi + 0x994], eax
inc eax
mov dword [0x49a1f0], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14