joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e07e0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [ebx + 0x48]
mov ecx, dword [edi + 0x18]
cmp ecx, 0xc
jle 0x4e07fd
pop edi
mov dword [ebx + 0x40], 0x70
xor eax, eax
pop ebx
ret
push ebp
push esi
cmp dword [edi + 0x2c], ecx
jge 0x4e08bd
lea esi, [edi + 0x44]
nop dword [eax + eax]
mov dl, byte [esi]
test dl, dl
jne 0x4e088f
mov ecx, dword [ebx + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4e082b
push 1
push esi
push ebx
call eax
add esp, 0xc
jmp 0x4e083b
push dword [ecx + 0x38]
push 1
push 1
push esi
call fcn.0050433d
add esp, 0x10
cmp eax, 1
jne 0x4e0916
mov al, byte [esi]
test al, al
je 0x4e0907
mov edx, dword [ebx + 0x48]
lea ebp, [esi + 1]
movzx eax, al
mov ecx, dword [edx + 0x3c]
test ecx, ecx
je 0x4e0868
push eax
push ebp
push ebx
call ecx
add esp, 0xc
jmp 0x4e0877
push dword [edx + 0x38]
push eax
push 1
push ebp
call fcn.0050433d
add esp, 0x10
mov dl, byte [esi]
mov ecx, eax
movzx eax, dl
cmp ecx, eax
jne 0x4e0916
mov al, byte [ebp]
mov byte [ebp], 2
jmp 0x4e089d
mov cl, byte [esi + 1]
movzx eax, cl
inc cl
mov al, byte [eax + esi]
mov byte [esi + 1], cl
dec dl
movzx eax, al
mov byte [esi], dl
mov ecx, dword [edi + 0x2c]
shl eax, cl
or dword [edi + 0x30], eax
lea eax, [ecx + 8]
mov dword [edi + 0x2c], eax
mov ecx, dword [edi + 0x18]
cmp eax, ecx
jl 0x4e0810
mov eax, dword [esp + 0x18]
movzx ecx, word [ecx*2 + 0x543f60]
and ecx, dword [edi + 0x30]
mov dword [eax], ecx
mov ecx, dword [edi + 0x18]
shr dword [edi + 0x30], cl
sub dword [edi + 0x2c], ecx
mov eax, dword [edi + 0x14]
cmp eax, 0x1001
jge 0x4e08fd
mov edx, dword [edi + 0x1c]
inc eax
mov dword [edi + 0x14], eax
cmp eax, edx
jle 0x4e08fd
cmp ecx, 0xc
jge 0x4e08fd
lea eax, [edx + edx]
mov dword [edi + 0x1c], eax
lea eax, [ecx + 1]
mov dword [edi + 0x18], eax
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
ret
pop esi
pop ebp
mov eax, 0x70
mov dword [ebx + 0x40], eax
xor eax, eax
pop edi
pop ebx
ret
pop esi
pop ebp
mov eax, 0x66
mov dword [ebx + 0x40], eax
xor eax, eax
pop edi
pop ebx
ret

Function at 0x4e0c80
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esi + 0x48]
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x4e0c9f
push 1
lea ecx, [esp + 0x10]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4e0cb3
push dword [edi + 0x38]
lea eax, [esp + 0x10]
push 1
push 1
push eax
call fcn.0050433d
add esp, 0x10
cmp eax, 1
jne 0x4e0d09
mov al, byte [esp + 0xc]
lea ecx, [edi + 0x44]
test al, al
je 0x4e0d15
mov edx, dword [esp + 0x10]
mov dword [edx], ecx
mov byte [ecx], al
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x4e0ce7
movzx eax, byte [esp + 0xc]
push eax
mov eax, dword [edx]
inc eax
push eax
push esi
call ecx
add esp, 0xc
jmp 0x4e0cfe
push dword [eax + 0x38]
movzx eax, byte [esp + 0x10]
push eax
mov eax, dword [edx]
inc eax
push 1
push eax
call fcn.0050433d
add esp, 0x10
mov ecx, eax
movzx eax, byte [esp + 0xc]
cmp ecx, eax
je 0x4e0d29
pop edi
mov dword [esi + 0x40], 0x66
xor eax, eax
pop esi
ret
mov eax, dword [esp + 0x10]
mov dword [eax], 0
mov byte [ecx], 0
mov dword [edi + 0x34], 0
pop edi
mov eax, 1
pop esi
ret
Function at 0x4e0d40
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esi + 0x48]
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x4e0d5f
push 1
lea ecx, [esp + 0x10]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4e0d73
push dword [edi + 0x38]
lea eax, [esp + 0x10]
push 1
push 1
push eax
call fcn.0050433d
add esp, 0x10
cmp eax, 1
jne 0x4e0dc9
mov cl, byte [esp + 0xc]
test cl, cl
je 0x4e0dd5
mov edx, dword [esp + 0x10]
lea eax, [edi + 0x44]
mov dword [edx], eax
mov byte [eax], cl
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x4e0da7
movzx eax, byte [esp + 0xc]
push eax
mov eax, dword [edx]
inc eax
push eax
push esi
call ecx
add esp, 0xc
jmp 0x4e0dbe
push dword [eax + 0x38]
movzx eax, byte [esp + 0x10]
push eax
mov eax, dword [edx]
inc eax
push 1
push eax
call fcn.0050433d
add esp, 0x10
mov ecx, eax
movzx eax, byte [esp + 0xc]
cmp ecx, eax
je 0x4e0ddf
pop edi
mov dword [esi + 0x40], 0x66
xor eax, eax
pop esi
ret
mov eax, dword [esp + 0x10]
mov dword [eax], 0
pop edi
mov eax, 1
pop esi
ret
Function at 0x4e11b0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x48]
test byte [eax], 8
jne 0x4e11c8
mov dword [esi + 0x40], 0x6f
xor eax, eax
pop esi
ret
push esi
push esi
call fcn.004e1350
add esp, 8
test eax, eax
je 0x4e11c4
lea eax, [esi + 4]
push eax
push esi
call fcn.004e1350
add esp, 8
test eax, eax
je 0x4e11c4
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4e1200
push 3
lea ecx, [esp + 0xc]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4e1214
push dword [ecx + 0x38]
lea eax, [esp + 0xc]
push 3
push 1
push eax
call fcn.0050433d
add esp, 0x10
cmp eax, 3
je 0x4e1236
push dword [esi + 0x14]
mov dword [esi + 0x40], 0x66
call fcn.004e1ab0
add esp, 4
mov dword [esi + 0x14], 0
xor eax, eax
pop esi
ret
mov dl, byte [esp + 8]
movzx ecx, dl
mov eax, ecx
shr eax, 4
and eax, 7
inc eax
push ebx
mov dword [esi + 8], eax
mov bl, dl
movzx eax, byte [esp + 0xd]
shr bl, 3
mov dword [esi + 0xc], eax
and bl, 1
mov al, byte [esp + 0xe]
mov byte [esi + 0x10], al
push edi
test dl, dl
jns 0x4e1333
and ecx, 7
mov eax, 1
inc ecx
shl eax, cl
push 0
push eax
call fcn.004e1b60
add esp, 8
mov dword [esi + 0x14], eax
test eax, eax
jne 0x4e1292
pop edi
pop ebx
mov dword [esi + 0x40], 0x6d
pop esi
ret
mov byte [eax + 8], bl
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp dword [eax], ebx
jle 0x4e133a
xor edi, edi
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4e12bd
push 3
lea ecx, [esp + 0x14]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4e12d1
push dword [ecx + 0x38]
lea eax, [esp + 0x14]
push 3
push 1
push eax
call fcn.0050433d
add esp, 0x10
mov ecx, dword [esi + 0x14]
cmp eax, 3
jne 0x4e1316
mov ecx, dword [ecx + 0xc]
inc ebx
movzx eax, byte [esp + 0x10]
mov byte [edi + ecx], al
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0xc]
movzx eax, byte [esp + 0x11]
mov byte [ecx + edi + 1], al
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0xc]
movzx eax, byte [esp + 0x12]
mov byte [ecx + edi + 2], al
add edi, 3
mov eax, dword [esi + 0x14]
cmp ebx, dword [eax]
jl 0x4e12a4
pop edi
pop ebx
mov eax, 1
pop esi
ret
push ecx
call fcn.004e1ab0
add esp, 4
mov dword [esi + 0x14], 0
mov dword [esi + 0x40], 0x66
xor eax, eax
pop edi
pop ebx
pop esi
ret
mov dword [esi + 0x14], 0
pop edi
pop ebx
mov eax, 1
pop esi
ret

Function at 0x4e1350
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4e136e
push 2
lea ecx, [esp + 0xc]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4e1382
push dword [ecx + 0x38]
lea eax, [esp + 0xc]
push 2
push 1
push eax
call fcn.0050433d
add esp, 0x10
cmp eax, 2
je 0x4e1392
mov dword [esi + 0x40], 0x66
xor eax, eax
pop esi
ret
mov ax, word [esp + 8]
movzx ecx, ah
movzx eax, al
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0xc]
pop esi
mov dword [eax], ecx
mov eax, 1
ret
Function at 0x4e13b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push edi
push 0x4c
call fcn.004e2dd6
mov esi, eax
add esp, 4
test esi, esi
jne 0x4e13df
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4e1500
pop edi
mov dword [eax], 0x6d
xor eax, eax
pop esi
add esp, 8
ret
push 0x4c
push 0
push esi
call fcn.00428100
push 0x614c
push 1
call fcn.004e2dfc
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4e141d
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4e140c
mov dword [eax], 0x6d
push esi
call fcn.004e2de1
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 8
ret
push 0x614c
push 0
push edi
call fcn.00428100
mov eax, dword [esp + 0x24]
add esp, 0xc
mov dword [esi + 0x48], edi
mov dword [edi + 0x3c], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 4], 0
mov dword [edi + 0x38], 0
mov dword [edi], 8
mov ecx, dword [esi + 0x48]
mov dword [esi + 0x44], eax
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4e146b
push 6
lea ecx, [esp + 0xc]
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4e147f
push dword [ecx + 0x38]
lea eax, [esp + 0xc]
push 6
push 1
push eax
call fcn.0050433d
add esp, 0x10
cmp eax, 6
je 0x4e1494
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4e14bf
mov dword [eax], 0x66
jmp 0x4e14bf
push 3
lea eax, [esp + 0xc]
mov byte [esp + 0x12], 0
push eax
push str.GIFVER
call fcn.004e2e10
add esp, 0xc
test eax, eax
je 0x4e14d6
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4e14bf
mov dword [eax], 0x67
push edi
call fcn.004e2de1
push esi
call fcn.004e2de1
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 8
ret
push esi
call fcn.004e11b0
add esp, 4
test eax, eax
jne 0x4e1508
push edi
call fcn.004e2de1
push esi
call fcn.004e2de1
mov eax, dword [esp + 0x24]
add esp, 8
test eax, eax
je 0x4e1500
mov dword [eax], 0x68
pop edi
xor eax, eax
pop esi
add esp, 8
ret
mov dword [esi + 0x40], 0
cmp byte [esp + 0xb], 0x39
sete al
mov byte [edi + 0x6148], al
mov eax, esi
pop edi
pop esi
add esp, 8
ret
Function at 0x4e21f7
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x171740c], 0
push ebx
push esi
mov esi, 0x1717414
jne 0x4e2223
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x171742c], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x171740c], 1
push dword [0x171742c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4e22c0
push 0x14
push 8
push dword [0x1714814]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x4e22ea
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1717410]
test eax, eax
je 0x4e2265
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x1717410], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x4e22ef
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x171742c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x1714814]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4e22ea
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x4e2960
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4e298d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4e298d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x504cbf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004e2820
mov eax, dword [0x17100b4]
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.00424cb8
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x504d01
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x504e5d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004e2a70
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 + 0x1715ed0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00427989
mov ecx, dword [esi*4 + 0x1715ed0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x504e56
cmp eax, dword [ecx + edi + 0x24]
jne 0x504e56
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x504e56
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00427989
add esp, 0x14
test edx, edx
jl 0x504e56
jg 0x504dcc
test eax, eax
jb 0x504e56
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x504e56
jl 0x504de6
cmp dword [ebp - 0x1008], eax
ja 0x504e56
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x504e04
test ebx, ebx
je 0x504e3d
cmp ecx, edi
jae 0x504e3d
mov al, byte [ecx]
cmp al, 0xd
jne 0x504e1e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x504e2a
cmp byte [ecx + 1], 0xa
jne 0x504e2a
inc ecx
jmp 0x504e2a
movzx eax, al
movsx eax, byte [eax + 0x1710808]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x504e04
cmp edx, ebx
jne 0x504e04
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x504e5b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041298f
leave
ret
Function at 0x51092b
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0051079a
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x510a9a
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x510a9a
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x510a4f
jg 0x510987
test eax, eax
je 0x510a45
push 1
push 0x1000
call fcn.00418031
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5109aa
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x510a3c
push 0x8000
push ebx
call fcn.004130d8
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5109d3
jg 0x5109ce
cmp ecx, 0x1000
jb 0x5109d3
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00425939
add esp, 0x10
cmp eax, 0xffffffff
je 0x510a18
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 0x5109ce
jl 0x5109ff
test ecx, ecx
jne 0x5109c0
push dword [ebp - 0xc]
push ebx
call fcn.004130d8
push esi
call fcn.00416ab0
add esp, 0xc
xor ebx, ebx
jmp 0x510aa8
cmp byte [edi + 0x24], 0
je 0x510a2f
cmp dword [edi + 0x20], 5
jne 0x510a2f
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x510a3a
mov ebx, dword [edi + 0x18]
jmp 0x510a3c
xor ebx, ebx
push esi
call fcn.00416ab0
pop ecx
jmp 0x510aa8
test ecx, ecx
jg 0x510a11
jl 0x510a4f
test eax, eax
jae 0x510a11
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004279a7
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x510a6f
cmp byte [edi + 0x1c], 0
je 0x510a11
jmp 0x510aa0
push ebx
call fcn.00419922
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x510a11
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x510aa8
cmp byte [edi + 0x1c], 0
je 0x510aa5
mov ebx, dword [edi + 0x18]
jmp 0x510aa8
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004279a7
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x518f40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x5190c5
cmp dword [esi + 0x20], 0
je 0x5190c5
cmp dword [esi + 0x24], 0
je 0x5190c5
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x5190c5
cmp dword [eax], esi
jne 0x5190c5
mov eax, dword [eax + 4]
cmp eax, 0x2a
je 0x518fa5
cmp eax, 0x39
je 0x518fa5
cmp eax, 0x45
je 0x518fa5
cmp eax, 0x49
je 0x518fa5
cmp eax, 0x5b
je 0x518fa5
cmp eax, 0x67
je 0x518fa5
cmp eax, 0x71
je 0x518fa5
cmp eax, 0x29a
jne 0x5190c5
push edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], eax
test ecx, ecx
jns 0x518fde
neg ecx
mov dword [edi + 0x18], ecx
cmp ecx, 2
mov eax, 0x2a
push 0
mov edx, 0x39
cmove eax, edx
push 0
mov dword [edi + 4], eax
push 0
jne 0x519000
call fcn.004a9f10
jmp 0x519005
call fcn.004aa4a0
add esp, 0xc
mov dword [esi + 0x30], eax
mov dword [edi + 0x28], 0xfffffffe
push edi
call fcn.0051a130
mov esi, dword [esi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.00428100
mov eax, dword [esi + 0x84]
add esp, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x54bf3a]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x54bf38]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x54bf3c]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x54bf3e]
pop edi
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret
Function at 0x403b70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b98b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x4be5b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 4], 0
mov dword [esi], vtable.ATL::CComPolyObject_class_ATL::CAxHostWindow_.0
mov dword [esi + 0x58], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x28], eax
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0xe0], 0
mov dword [esi + 0xe4], 0
mov dword [esi + 0xf0], 0
mov eax, dword [esi + 0xd0]
and dword [esi + 0xa0], 0xffffff40
and eax, 0xfffffffb
or eax, 3
mov dword [esi + 0xd4], 0
push 8
mov dword [esi + 0xd0], eax
call dword [sym.imp.USER32.dll_GetSysColor]
and dword [esi + 0xa0], 0xffffffbf
xorps xmm0, xmm0
mov dword [esi + 0xd8], eax
mov ecx, esi
mov eax, dword [esi + 0xd0]
and eax, 0xffffffaf
movlpd qword [ebp - 0x18], xmm0
or eax, 0x28
mov dword [esi + 0xdc], 0x400
mov dword [esi + 0xd0], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0xac], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xb0], eax
movlpd qword [ebp - 0x18], xmm0
mov eax, dword [ebp - 0x18]
mov dword [esi + 0xb4], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xb8], eax
mov eax, dword [ebp + 8]
test eax, eax
movups xmmword [esi + 0x88], xmm0
cmovne ecx, eax
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], 0xcdcdcdcd
mov dword [esi + 0xe8], 4
mov dword [esi + 0xec], 0
mov dword [esi + 0x60], 0
mov byte [esi + 0x64], 1
mov dword [esi + 0xcc], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa8], 0
movups xmmword [esi + 0xbc], xmm0
mov dword [esi + 8], vtable.ATL::CComContainedObject_class_ATL::CAxHostWindow_.0
mov dword [esi + 0x2c], vtable.ATL::CComContainedObject_class_ATL::CAxHostWindow_.1.0
mov dword [esi + 0x30], vtable.ATL::CComContainedObject_class_ATL::CAxHostWindow_.2.0
mov dword [esi + 0x34], vtable.ATL::CComContainedObject_class_ATL::CAxHostWindow_.3.0
mov dword [esi + 0x38], vtable.ATL::CComContainedObject_class_ATL::CAxHostWindow_.4.0
mov dword [esi + 0x3c], vtable.ATL::CComContainedObject_class_ATL::CAxHostWindow_.5.0
mov dword [esi + 0x40], vtable.ATL::CComContainedObject_class_ATL::CAxHostWindow_.6.0
mov dword [esi + 0x48], vtable.ATL::CComContainedObject_class_ATL::CAxHostWindow_.7.0
mov dword [esi + 0x4c], vtable.ATL::CComContainedObject_class_ATL::CAxHostWindow_.8.0
mov dword [esi + 0x50], vtable.ATL::CComContainedObject_class_ATL::CAxHostWindow_.9.0
mov dword [esi + 0x54], vtable.ATL::CComContainedObject_class_ATL::CAxHostWindow_.10.0
mov dword [esi + 0x58], ecx
mov ecx, dword [0x4c24c8]
mov dword [ebp - 4], 0
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x409b50
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4be5b4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
lea eax, [ebp - 0x218]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0x18]
mov esi, 0x201
push eax
mov eax, 0x101
mov dword [ebp - 0x218], 0
cmove eax, esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409c21
mov esi, dword [ebp - 0x218]
push 0x210
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00432c40
add esp, 0xc
mov dword [ebp - 0x21c], 0x210
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x220]
push eax
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409c16
mov eax, dword [ebp - 0x220]
cmp eax, 1
je 0x409bfb
cmp eax, 2
jne 0x409c16
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x409c36
test al, 1
jne 0x409c16
shr eax, 1
cmp word [ebp + eax*2 - 0x216], 0
je 0x409c3f
test esi, esi
je 0x409c21
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c75e
mov esp, ebp
pop ebp
ret 0x14
xor eax, eax
mov word [ebp - 0x214], ax
test edi, edi
je 0x409c58
xor eax, eax
cmp ax, word [edi]
je 0x409c58
push edi
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
test esi, esi
je 0x409c72
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042c75e
mov esp, ebp
pop ebp
ret 0x14