joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10047263
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 0x10047300
push ebx
push esi
call fcn.1004722c
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.10041c35
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100472ad
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100472ff
push edi
push eax
call fcn.1003b5da
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100472cd
call fcn.1003b5a0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100472fe
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10041c35
add esp, 0x20
test eax, eax
jne 0x100472ec
push edi
call fcn.1003b5a0
jmp 0x100472f4
push ebx
call fcn.1003b5a0
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 0x10047303
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10047314
pop esi
ret
push ebx
push edi
push esi
call fcn.1004722c
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1003b5da
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1004733c
push ebx
push esi
push edi
call fcn.10020840
add esp, 0xc
push 0
call fcn.1003b5a0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10047700
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10047351
Function at 0x1004e2a1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1004e21d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1004e419
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1004e419
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1004e3c8
jg 0x1004e2fa
test eax, eax
je 0x1004e3be
push 1
push 0x1000
call fcn.1003b543
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1004e320
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x1004e3b5
push 0x8000
push ebx
call fcn.1004e14e
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1004e34c
jg 0x1004e347
cmp ecx, 0x1000
jb 0x1004e34c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100414b5
add esp, 0x10
cmp eax, 0xffffffff
je 0x1004e391
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1004e347
jl 0x1004e378
test ecx, ecx
jne 0x1004e339
push dword [ebp - 0xc]
push ebx
call fcn.1004e14e
push esi
call fcn.1003b5a0
add esp, 0xc
xor edi, edi
jmp 0x1004e42a
cmp byte [edi + 0x24], 0
je 0x1004e3a8
cmp dword [edi + 0x20], 5
jne 0x1004e3a8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1004e3b3
mov edi, dword [edi + 0x18]
jmp 0x1004e3b5
xor edi, edi
push esi
call fcn.1003b5a0
pop ecx
jmp 0x1004e42a
test ecx, ecx
jg 0x1004e38a
jl 0x1004e3c8
test eax, eax
jae 0x1004e38a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10043d17
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1004e3eb
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1004e38a
jmp 0x1004e422
push ebx
call fcn.1004b821
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1004e38a
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x1004e42a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1004e427
mov edi, dword [edi + 0x18]
jmp 0x1004e42a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10043d17
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1004f060
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1004f08d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1004f08d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x69d4f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1be000]
push edi
or ebp, 0xffffffff
jmp 0x69d512
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x69d519
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x69d508
mov eax, 1
add ebx, ebx
jne 0x69d52b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x69d53c
jne 0x69d55b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x69d55b
dec eax
add ebx, ebx
jne 0x69d548
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x69d520
add ebx, ebx
jne 0x69d557
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x69d5ad
xor ecx, ecx
sub eax, 3
jb 0x69d573
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x69d5e2
sar eax, 1
mov ebp, eax
jmp 0x69d57e
add ebx, ebx
jne 0x69d57e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x69d54c
inc ecx
add ebx, ebx
jne 0x69d58c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x69d54c
add ebx, ebx
jne 0x69d599
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x69d58e
jne 0x69d5aa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x69d58e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x69d5cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x69d5be
jmp 0x69d50e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x69d5cc
add edi, ecx
jmp 0x69d50e
pop esi
mov edi, esi
mov ecx, 0x37d5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x69d5ea
cmp byte [edi], 0x12
jne 0x69d5ea
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 0x69d5ef
lea edi, [esi + 0x29a000]
mov eax, dword [edi]
or eax, eax
je 0x69d667
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2b6cc0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2b6d84]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x69d61c
mov ecx, edi
jns 0x69d64b
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 + 0x2b6d8c]
or eax, eax
je 0x69d661
mov dword [ebx], eax
add ebx, 4
jmp 0x69d639
call dword [esi + 0x2b6d88]
mov ebp, dword [esi + 0x2b6d90]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x69d69b
sub esp, 0xffffff80
jmp 0x46f24e
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x431072
nop
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0xedd4c02
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x431060
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4310d2
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x45a32be7
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4310c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x421850
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x50dc94]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x50f810]
push esi
mov esi, dword [ebp + 0x10]
test eax, 0x400000
jne 0x421959
cmp byte [ebp + 0xc], 0
jne 0x421959
mov eax, dword [ebp + 8]
push edi
movsx eax, byte [eax]
sub eax, 0x64
je 0x4218bb
sub eax, 1
je 0x4218b4
sub eax, 0x12
je 0x4218ad
push esi
call fcn.0041ec40
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret
mov edi, 0xe
jmp 0x4218c0
mov edi, 0xc
jmp 0x4218c0
mov edi, 0xa
push ebx
push 0x4cc3e8
push esi
call fcn.004b4932
add esp, 8
lea ebx, [eax + 2]
mov al, byte [ebx]
push 0xfffffffffffffff5
mov byte [ebp - 0x1d], al
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x24], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
push edi
mov edi, dword [ebp - 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ecx, dword [0x50f810]
test ecx, 0x800
je 0x42191d
push esi
push 0x4cc2e4
call fcn.0041f7e0
mov ecx, dword [0x50f810]
add esp, 8
test ecx, 0x400
je 0x42192c
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov al, byte [ebp - 0x1d]
mov byte [ebx], al
test al, al
je 0x421948
push ebx
call fcn.0041ec40
add esp, 4
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret
test eax, 0x800
je 0x421973
push esi
push 0x4cc2e4
call fcn.0041f7e0
mov eax, dword [0x50f810]
add esp, 8
test eax, 0x400
je 0x42194a
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret
Function at 0x429a20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x82a4
call fcn.004aeb70
mov eax, dword [0x50dc94]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi + 4], 0
jne 0x429beb
push 0x208
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.004b493e
push 0x5c
push esi
call fcn.004b496c
add esp, 0x14
test eax, eax
je 0x429beb
lea ecx, [eax + 2]
lea edx, [ebp - 0x22c]
sub edx, ecx
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x429a80
cmp dword [edi + 0x8c], 8
lea eax, [edi + 0x78]
jb 0x429a9e
mov eax, dword [eax]
lea ecx, [ebp - 0x22c]
push ecx
push eax
call dword [0x4c5ae4]
add esp, 8
test eax, eax
je 0x429ac7
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi + 0x50]
xor eax, eax
test ecx, ecx
sete al
mov dword [edi + 4], eax
test ecx, ecx
je 0x429beb
call fcn.004a7ec4
test eax, eax
je 0x429af4
lea eax, [ebp - 0x82a4]
push eax
call fcn.004a7f00
add esp, 4
push 0
push 0x80
push 3
push 0
push 1
push SHChangeNotifyRegister
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x429bd3
lea eax, [ebp - 0x829c]
push eax
call fcn.004a8f1c
add esp, 4
lea eax, [ebp - 0x82a0]
push 0
push eax
push 0x8000
lea eax, [ebp - 0x822c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x429b91
nop word [eax + eax]
mov eax, dword [ebp - 0x82a0]
test eax, eax
je 0x429b91
push eax
lea eax, [ebp - 0x822c]
push eax
lea eax, [ebp - 0x829c]
push eax
call fcn.004a8f22
add esp, 0xc
lea eax, [ebp - 0x82a0]
push 0
push eax
push 0x8000
lea eax, [ebp - 0x822c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x429b50
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x829c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004a8f28
add esp, 8
lea edx, [edi + 0x58]
lea ecx, [ebp - 0x24]
mov esi, 0x1c
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x429bce
add ecx, 4
add edx, 4
sub esi, 4
jae 0x429bb6
mov eax, 1
jmp 0x429bd0
xor eax, eax
mov dword [edi + 4], eax
call fcn.004a7ec4
test eax, eax
je 0x429beb
lea eax, [ebp - 0x82a4]
push eax
call fcn.004a7f06
add esp, 4
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret 4
Function at 0x42d920
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1250
call fcn.004aeb70
mov eax, dword [0x50dc94]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push edi
mov edi, dword [ebp + 0x10]
push 0
push 0
push 1
push 0
movups xmmword [ebp - 0x124c], xmm0
mov dword [ebp - 0x123c], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x123c], eax
test eax, eax
jne 0x42d97b
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret
push ebx
push 0x1008
lea eax, [ebp - 0x1234]
push 0
push eax
call fcn.004b493e
mov ax, word [ebp + 0xc]
add esp, 0xc
mov word [ebp - 0x1230], ax
lea eax, [ebp - 0x1250]
push 0
push eax
push 0x1008
lea eax, [ebp - 0x1234]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
test ebx, ebx
je 0x42da47
lea eax, [ebp - 0x124c]
push eax
lea eax, [ebp - 0x1238]
push eax
push 0x228
lea eax, [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x42d9f4
test eax, eax
je 0x42da32
cmp eax, 0x3e5
jne 0x42da32
push 0xbb8
push dword [ebp - 0x123c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x42da32
push 1
lea eax, [ebp - 0x1238]
push eax
lea eax, [ebp - 0x124c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x42da32
mov ebx, 1
jmp 0x42da36
test ebx, ebx
je 0x42da47
test edi, edi
je 0x42da47
mov ecx, 0x88
lea esi, [ebp - 0x224]
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x123c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret

Function at 0x42dfc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call fcn.004a7f84
neg eax
lea ecx, [ebp - 4]
push ecx
sbb eax, eax
and eax, 0x100
add eax, 2
push eax
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallE285B940_0C87_453F_A9F1_AF928F834CB8
push reloc.SHELL32.dll_SHChangeNotifyRegister
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42e034
call fcn.004a7ec4
test eax, eax
je 0x42e008
push 0
push dword [ebp - 4]
call fcn.004a7f8a
add esp, 8
xor eax, eax
cmp dword [ebp + 8], eax
push 4
sete al
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push 0
push 0x4d2f2c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x435110
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], 4
mov eax, dword [esi*8 + 0x4d90c4]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.SoftwareFortinetFortiClientFA_EMAIL
push reloc.SHELL32.dll_SHChangeNotifyRegister
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43516f
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [esi*8 + 0x4d90c0]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x435610
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x50dc94]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x43578d
lea eax, [ebp - 0x418]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
call fcn.004af950
mov edi, esp
test edi, edi
je 0x43578d
push edi
push ebx
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x43578d
mov ax, word [0x4d9464]
movups xmm0, xmmword [str.040904B0]
push 0x1f6
mov word [ebp - 0x1fc], ax
lea eax, [ebp - 0x1fa]
push 0
push eax
movups xmmword [ebp - 0x20c], xmm0
call fcn.004b493e
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x410]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x435706
mov edx, dword [ebp - 0x414]
xor eax, eax
mov esi, dword [ebp - 0x410]
mov ecx, esi
shr edx, 2
test edx, edx
je 0x4356dd
mov ebx, 0x409
nop dword [eax + eax]
cmp word [ecx], bx
je 0x4356dd
inc eax
add ecx, 4
cmp eax, edx
jb 0x4356d0
cmp eax, edx
cmovae ecx, esi
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str._04x_04x
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0042da70
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
push str.StringFileInfo_sCompanyName
push 0xffffffffffffffff
lea eax, [ebp - 0x40c]
push 0x100
push eax
call fcn.0042da70
add esp, 0x14
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x40c]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x43578d
mov eax, dword [ebp - 0x410]
mov ecx, 0x4d94f0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43577f
test dx, dx
je 0x435774
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43577f
add eax, 4
add ecx, 4
test dx, dx
jne 0x435752
xor ecx, ecx
xor eax, eax
test ecx, ecx
sete al
jmp 0x43578f
sbb ecx, ecx
xor eax, eax
or ecx, 1
test ecx, ecx
sete al
jmp 0x43578f
xor eax, eax
lea esp, [ebp - 0x424]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret
Function at 0x4357b0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [0x53ffdc], 0
push esi
mov dword [ebp - 0xc], 0x104
jne 0x4357eb
push 0x53ffdc
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.SHELL32.dll_SHChangeNotifyRegister
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4358ba
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
add eax, eax
push eax
push 0
push esi
call fcn.004b493e
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0x10]
push dword [0x53ffdc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4358a0
push ebx
push edi
mov dword [ebp - 4], eax
xor edi, edi
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push esi
push dword [0x53ffdc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ebx, [edi + 1]
test eax, eax
jne 0x435892
mov eax, dword [ebp - 4]
test eax, eax
je 0x435892
push edi
push edi
lea ecx, [ebp - 8]
mov dword [ebp - 8], edi
push ecx
push edi
push str.DisplayName
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0
push 0
test eax, eax
lea eax, [ebp - 8]
push eax
push 0
push str.UninstallString
push dword [ebp - 4]
cmove edi, ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
test eax, eax
cmove edi, ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x435897
xor ecx, ecx
mov word [esi], cx
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x53ffdc]
test eax, eax
je 0x4358ba
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x53ffdc], 0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x443920
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b80ae
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x50dc94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
lea ecx, [esi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x58], edi
mov dword [esi + 0x60], edx
mov byte [esi + 0x64], 0
mov dword [esi + 0x68], eax
test byte [edi + 8], 8
mov byte [ebp - 4], 2
je 0x443a05
test dl, 0x10
jne 0x443a05
mov al, 1
jmp 0x443a07
xor al, al
mov byte [esi + 0x6c], al
mov eax, dword [ebp + 0x10]
push ecx
mov dword [esi + 0x70], eax
push dword [edi + 0x18]
call fcn.00442db0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c