joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478840
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push edi
push eax
push esi
movups xmm0, xmmword [eax + edi - 0x10]
movaps xmmword [esp + 0x2c], xmm0
call sub.VCRUNTIME140.dll_memcpy
movaps xmm1, xmmword [esp + 0x2c]
mov eax, edi
shr eax, 2
add esp, 0xc
mov edx, eax
mov dword [esp + 0x14], eax
aeskeygenassist xmm0, xmm1, 0
shl edx, 2
lea ecx, [eax + 7]
mov dword [esp + 0x18], 0x486714
shl ecx, 4
add ecx, esi
mov dword [esp + 0x1c], ecx
pextrd ecx, xmm0, 3
xor ecx, dword [esi]
xor ecx, 1
mov dword [edx + esi], ecx
mov eax, dword [esi + 4]
xor eax, ecx
mov dword [edx + esi + 4], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esi + eax*4 + 8], ecx
mov eax, dword [esi + 0xc]
xor eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + ecx*4 + 0xc], eax
lea eax, [esi + 0x10]
add eax, edx
jmp 0x47897c
cmp edi, 0x18
jne 0x4788ef
mov eax, dword [esi + 0x24]
xor eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
xor ecx, eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
pinsrd xmm1, ecx, 3
jmp 0x478934
cmp edi, 0x20
jne 0x47892d
pinsrd xmm1, dword [esi + 0x2c], 3
mov eax, dword [esi + 0x14]
aeskeygenassist xmm0, xmm1, 0
pextrd ecx, xmm0, 2
xor ecx, dword [esi + 0x10]
xor eax, ecx
mov dword [esi + 0x30], ecx
mov ecx, dword [esi + 0x18]
xor ecx, eax
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x1c]
xor eax, ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
pinsrd xmm1, eax, 3
jmp 0x478934
pinsrd xmm1, dword [esi + 0x1c], 3
mov eax, dword [esp + 0x18]
add esi, edx
aeskeygenassist xmm0, xmm1, 0
pextrd ecx, xmm0, 3
xor ecx, dword [eax]
add eax, 4
xor ecx, dword [esi]
mov dword [edx + esi], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esi + 4]
xor eax, ecx
mov dword [edx + esi + 4], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esi + eax*4 + 8], ecx
mov eax, dword [esi + 0xc]
xor eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + ecx*4 + 0xc], eax
lea eax, [edx + 0x10]
add eax, esi
cmp eax, dword [esp + 0x1c]
jne 0x4788d1
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x479e6a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x479ea9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x479ea9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x479ea9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x479ea9
cmp dword [ecx + 0x74], 0xe
jbe 0x479ea9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
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 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
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 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x4e9740
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x95000]
push edi
jmp 0x4e975a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4e9761
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e9750
mov eax, 1
add ebx, ebx
jne 0x4e9773
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4e9784
jne 0x4e97a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e97a3
dec eax
add ebx, ebx
jne 0x4e9790
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4e9768
add ebx, ebx
jne 0x4e979f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4e97f5
xor ecx, ecx
sub eax, 3
jb 0x4e97bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4e982a
sar eax, 1
mov ebp, eax
jmp 0x4e97c6
add ebx, ebx
jne 0x4e97c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e9794
inc ecx
add ebx, ebx
jne 0x4e97d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e9794
add ebx, ebx
jne 0x4e97e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4e97d6
jne 0x4e97f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4e97d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4e9814
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4e9806
jmp 0x4e9756
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4e9814
add edi, ecx
jmp 0x4e9756
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4e9832
cmp byte [edi], 0x11
jne 0x4e9832
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 0x4e9837
lea edi, [esi + 0xe2000]
mov eax, dword [edi]
or eax, eax
je 0x4e98af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xfc374]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xfc4f0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4e9864
mov ecx, edi
jns 0x4e9893
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 + 0xfc4f4]
or eax, eax
je 0x4e98a9
mov dword [ebx], eax
add ebx, 4
jmp 0x4e9881
call dword [esi + 0xfc504]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4e98e0
cmp al, 0xef
ja 0x4e98d3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4e98b5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4e98c2
mov ebp, dword [esi + 0xfc4f8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x4e9914
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x401110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401129
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401164
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401160
lea ebx, [ebx]
cmp esi, eax
jae 0x401164
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401150
cmp esi, eax
jb 0x40116a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x407720
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x635140
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x3c08
call fcn.00614970
mov eax, dword [0x7496c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x3c18], esi
mov dword [ebp - 4], 0
push 0x1400
push 0
lea eax, [ebp - 0x1414]
push eax
call fcn.00613900
add esp, 0xc
push 0x13ff
cmp dword [esi + 0x177c], 0
je 0x4077be
lea ecx, [ebp - 0x3c14]
push ecx
mov edx, dword [esi + 0x1778]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x4077d2
push 0x1400
lea eax, [ebp - 0x1414]
push eax
lea ecx, [ebp - 0x3c14]
push ecx
call fcn.004072b0
add esp, 0xc
jmp 0x4077d2
lea edx, [ebp - 0x1414]
push edx
mov eax, dword [esi + 0x1778]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x1400
lea ecx, [ebp - 0x1414]
push ecx
mov ecx, esi
call fcn.00407430
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00613241
mov esp, ebp
pop ebp
ret

Function at 0x408c10
Capabilities:
Get graphical window text

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push ebx
xor ebp, ebp
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x408c77
add esi, 3
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
push edi
neg ecx
or ecx, eax
push ecx
call fcn.005e76b2
mov edi, eax
add esp, 4
test edi, edi
je 0x408c70
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x408c67
mov ecx, dword [esp + 0x18]
push edi
call fcn.004017f0
mov ebp, 1
push edi
call fcn.005e76a7
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x408d30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x640718
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x7496c8]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push esi
mov eax, dword [0x7496c8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
xor eax, eax
mov ebx, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov word [esp + 0x10], ax
mov dword [esp + 0x24], eax
push esi
call fcn.005ac0d0
movzx ecx, al
add esp, 4
neg ecx
sbb ecx, ecx
and ecx, 0xfde9
push ecx
push esi
lea ecx, [esp + 0x14]
call fcn.00401980
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x408dae
lea eax, [esp + 0x10]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [ebx + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.004011f0
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00613241
add esp, 0x1c
ret 8

Function at 0x40c230
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x635c20
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x3c04
call fcn.00614970
mov eax, dword [0x7496c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
push 0x1400
push 0
lea eax, [ebp - 0x1414]
push eax
call fcn.00613900
add esp, 0xc
push 0x13ff
cmp dword [esi + 0x588], 0
je 0x40c2c8
lea ecx, [ebp - 0x3c14]
push ecx
mov edx, dword [esi + 0x584]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x40c2dc
push 0x1400
lea eax, [ebp - 0x1414]
push eax
lea ecx, [ebp - 0x3c14]
push ecx
call fcn.004072b0
add esp, 0xc
jmp 0x40c2dc
lea edx, [ebp - 0x1414]
push edx
mov eax, dword [esi + 0x584]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [ebp - 0x1414]
push ecx
push 0x66ae98
lea edx, [esi + 0x50c]
push edx
call fcn.00402f80
add esp, 0xc
mov ecx, esi
call fcn.0040bd00
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00613241
mov esp, ebp
pop ebp
ret
Function at 0x40d2d0
Capabilities:
Get file system object information

Disassembly:
push ebp
lea ebp, [esp - 0x2b8]
sub esp, 0x2b8
push 0xffffffffffffffff
push 0x635d48
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x7496c8]
xor eax, ebp
mov dword [ebp + 0x2b4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [esi + 0x74]
call fcn.0040cfb0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov eax, dword [esi + 0xc8]
cmp edi, dword [eax + 0x1c]
jge 0x40d465
lea ecx, [ebp - 0x14]
call fcn.00402500
mov byte [ebp - 4], 1
push edi
mov ecx, dword [esi + 0xc8]
add ecx, 0x14
call fcn.0040d190
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [esi + 0xc8]
mov eax, dword [edx + 4]
push eax
push 0x66ccb8
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f80
add esp, 0x10
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [esi + 0x74]
call fcn.0040cf90
mov ebx, eax
inc dword [ebp - 0x18]
push 0x2b4
push 0
lea ecx, [ebp]
push ecx
call fcn.00613900
add esp, 0xc
push edi
mov ecx, dword [esi + 0xc8]
add ecx, 0x14
call fcn.0040d190
mov eax, dword [eax]
push 0x4411
push 0x160
lea edx, [ebp]
push edx
push 0x80
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [ebp - 0x50], 2
mov dword [ebp - 0x48], 0
mov eax, dword [ebp + 4]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x4c], ebx
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [esi + 0x74]
call fcn.0040cf50
push edi
mov ecx, dword [esi + 0xc8]
add ecx, 0x14
call fcn.0040d190
cmp dword [eax + 8], 0
mov eax, 0x750114
jne 0x40d3ff
mov eax, 0x750118
mov eax, dword [eax]
push eax
push ebx
push 1
mov edx, dword [esi + 0x94]
push edx
call fcn.0040cff0
add esp, 0x10
mov dword [ebp - 0x7c], 2
push edi
mov ecx, dword [esi + 0xc8]
add ecx, 0x14
call fcn.0040d190
mov eax, dword [eax]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x84]
push eax
push ebx
push 0x1074
mov ecx, dword [esi + 0x94]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
push ebx
lea ecx, [esi + 0x74]
call fcn.0040cf70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402570
inc edi
jmp 0x40d31e
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2b4]
xor ecx, ebp
call fcn.00613241
add ebp, 0x2b8
mov esp, ebp
pop ebp
ret
Function at 0x40d5c0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x635dc8
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x7496c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
call fcn.005e93b2
xor ebx, ebx
mov dword [ebp - 4], ebx
push esi
call fcn.00457720
add esp, 4
cmp dword [0x74eb48], ebx
je 0x40d61e
push 0x129
push esi
mov ecx, 0x74eb08
call fcn.004ddac0
push 0x160
push ebx
lea eax, [ebp - 0x198]
push eax
call fcn.00613900
add esp, 0xc
push 0x4011
push 0x160
lea ecx, [ebp - 0x198]
push ecx
push 0x80
push 0x66cd10
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea edi, [esi + 0x74]
push eax
push 1
push 0x1003
mov ecx, edi
call fcn.004015b0
push 0x21
mov ecx, edi
call fcn.0040cfd0
mov byte [ebp - 0x1a4], bl
mov eax, 0x60
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
xor edx, edx
mov word [ebp - 0x1c], dx
mov byte [ebp - 4], 1
mov eax, dword [0x74eb40]
push eax
mov ecx, dword [0x750108]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00401980
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x40d6b5
lea eax, [ebp - 0x1c]
push eax
push 0xbe
lea ecx, [ebp - 0x1a4]
call fcn.0040d0a0
push eax
push ebx
mov edx, dword [esi + 0x94]
push edx
call fcn.0040ce60
add esp, 0x10
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
xor eax, eax
mov word [ebp - 0x34], ax
mov byte [ebp - 4], 2
mov ecx, dword [0x74eb40]
push ecx
mov edx, dword [0x75010c]
push edx
lea ecx, [ebp - 0x38]
call fcn.00401980
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jne 0x40d707
lea eax, [ebp - 0x34]
push eax
push 0x6e
lea ecx, [ebp - 0x1a4]
call fcn.0040d0a0
push eax
push 1
mov eax, dword [esi + 0x94]
push eax
call fcn.0040ce60
add esp, 0x10
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
xor ecx, ecx
mov word [ebp - 0x28], cx
mov byte [ebp - 4], 3
mov edx, dword [0x74eb40]
push edx
mov eax, dword [0x750110]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401980
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x40d756
lea eax, [ebp - 0x28]
push eax
push 0x12c
lea ecx, [ebp - 0x1a4]
call fcn.0040d0a0
push eax
push 2
mov ecx, dword [esi + 0x94]
push ecx
call fcn.0040ce60
add esp, 0x10
mov ecx, esi
call fcn.0040d2d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.004011f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.004011f0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20]
call fcn.004011f0
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00613241
mov esp, ebp
pop ebp
ret
Function at 0x40d950
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
push esi
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 0x14]
push 1
xor esi, esi
push esi
push edx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d9a5
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0xc]
push edx
push eax
push eax
mov eax, dword [esp + 0x14]
push str.found
push eax
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d9a5
mov esi, dword [esp + 8]
mov eax, dword [esp + 4]
test eax, eax
je 0x40d9b4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret 4

Function at 0x40daa0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x6443ab
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x7496c8]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x7496c8]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x14], edi
je 0x40dbef
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x14], edi
jle 0x40dbef
test edi, edi
jl 0x40dc17
cmp ebx, eax
jge 0x40dc17
mov eax, dword [esi + 4]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0xf003f
push 0
push 0x66b96c
add eax, edi
mov eax, dword [eax + 4]
push 0
push eax
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40db74
lea ecx, [esp + 0x20]
call fcn.004b8a90
mov dword [esp + 0x23c], 0
push 1
push str.Cannot_open__create__registry_subkey_during_CBrowsersIntegration::Save__._r_n
lea ecx, [esp + 0x28]
call fcn.004b8c00
mov dword [esp + 0x23c], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.004b8bf0
jmp 0x40dbd1
cmp ebx, dword [esi + 8]
jge 0x40dc17
mov ecx, dword [esi + 4]
mov ecx, dword [edi + ecx]
mov eax, ecx
lea ebp, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40db88
mov edx, dword [esp + 0x14]
sub eax, ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
push eax
push ecx
push 1
push 0
push 0x66d070
push edx
call ebp
cmp ebx, dword [esi + 8]
jge 0x40dc17
mov eax, dword [esi + 4]
mov ecx, dword [eax + edi + 8]
mov eax, dword [esp + 0x14]
push 4
lea edx, [esp + 0x1c]
push edx
push 4
push 0
push 0x66d06c
push eax
mov dword [esp + 0x30], ecx
call ebp
mov eax, dword [esi + 8]
inc ebx
add edi, 0xc
cmp ebx, eax
jl 0x40daf9
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40dbef
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00613241
add esp, 0x22c
ret
call fcn.005e77c5
int3
Function at 0x40fcc0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x7c
mov eax, dword [0x7496c8]
xor eax, esp
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x80]
push ebx
push ebp
mov ebp, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0xa8]
push edi
mov edi, dword [esp + 0xa8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x18], edx
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x98]
push ecx
xor ebx, ebx
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40fdd5
push 0x64
push eax
lea edx, [esp + 0x2c]
push edx
call fcn.00613900
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebx
push ebx
push str.CurrentVersion
push edx
mov dword [esp + 0x38], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40fdca
lea ebx, [eax + 1]
lea eax, [esp + 0x24]
push 0x2e
push eax
call fcn.00614820
add esp, 8
test eax, eax
je 0x40fd84
mov byte [eax], 0
lea ecx, [esp + 0x24]
push ecx
call fcn.00614a71
add esp, 4
test eax, eax
je 0x40fdca
cmp eax, 0x49
mov dword [esi], eax
jle 0x40fda0
mov dword [edi], ebx
jmp 0x40fdca
cmp eax, 0x34
jle 0x40fdaa
mov dword [ebp], ebx
jmp 0x40fdca
cmp eax, 0x1a
jle 0x40fdb7
mov edx, dword [esp + 0x14]
mov dword [edx], ebx
jmp 0x40fdca
cmp eax, 7
jle 0x40fdc4
mov eax, dword [esp + 0x18]
mov dword [eax], ebx
jmp 0x40fdca
mov ecx, dword [esp + 0x1c]
mov dword [ecx], ebx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00613241
add esp, 0x7c
ret