joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d88d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [0x1012160]
push ebx
mov ecx, 0x10120e0
push esi
cmp dword [ecx], edx
je 0x100d847
lea esi, [eax + eax*2]
add ecx, 0xc
lea esi, [esi*4 + 0x10120e0]
cmp ecx, esi
jb 0x100d832
lea eax, [eax + eax*2]
lea eax, [eax*4 + 0x10120e0]
cmp ecx, eax
jae 0x100d859
cmp dword [ecx], edx
je 0x100d85b
xor ecx, ecx
test ecx, ecx
je 0x100d984
mov ebx, dword [ecx + 8]
test ebx, ebx
je 0x100d984
cmp ebx, 5
jne 0x100d87f
and dword [ecx + 8], 0
xor eax, eax
inc eax
jmp 0x100d98d
cmp ebx, 1
je 0x100d97f
mov eax, dword [0x1016e24]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [0x1016e24], eax
mov eax, dword [ecx + 4]
cmp eax, 8
jne 0x100d96f
mov eax, dword [0x1012158]
mov edx, dword [0x101215c]
add edx, eax
cmp eax, edx
jge 0x100d8ca
lea esi, [eax + eax*2]
lea esi, [esi*4 + 0x10120e8]
sub edx, eax
and dword [esi], 0
add esi, 0xc
dec edx
jne 0x100d8c1
mov ecx, dword [ecx]
cmp ecx, 0xc000008e
mov esi, dword [0x1012164]
jne 0x100d8e6
mov dword [0x1012164], 0x83
jmp 0x100d95c
cmp ecx, 0xc0000090
jne 0x100d8fa
mov dword [0x1012164], 0x81
jmp 0x100d95c
cmp ecx, 0xc0000091
jne 0x100d90e
mov dword [0x1012164], 0x84
jmp 0x100d95c
cmp ecx, 0xc0000093
jne 0x100d922
mov dword [0x1012164], 0x85
jmp 0x100d95c
cmp ecx, 0xc000008d
jne 0x100d936
mov dword [0x1012164], 0x82
jmp 0x100d95c
cmp ecx, 0xc000008f
jne 0x100d94a
mov dword [0x1012164], 0x86
jmp 0x100d95c
cmp ecx, 0xc0000092
jne 0x100d95c
mov dword [0x1012164], 0x8a
push dword [0x1012164]
push 8
call ebx
pop ecx
mov dword [0x1012164], esi
jmp 0x100d976
and dword [ecx + 8], 0
push eax
call ebx
mov eax, dword [ebp + 8]
pop ecx
mov dword [0x1016e24], eax
or eax, 0xffffffff
jmp 0x100d98d
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
pop esi
pop ebx
pop ebp
ret

Function at 0x100e972
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [0x10172c4], 3
push esi
mov esi, dword [ebp + 8]
jne 0x100e96e
cmp esi, dword [0x1017074]
ja 0x100e96e
push esi
call fcn.0100ef58
test eax, eax
pop ecx
jne 0x100e991
test esi, esi
jne 0x100e973
inc esi
cmp dword [0x10172c4], 1
je 0x100e982
add esi, 0xf
and esi, 0xfffffff0
push esi
push 0
push dword [0x10172c0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
pop esi
pop ebp
ret
Function at 0x100fa32
Capabilities:
Check os version
Query environment variable

Disassembly:
push 0x1c
push 0x1006648
call fcn.0100e060
xor esi, esi
cmp dword [0x1016fc0], esi
jne 0x100f9c3
lea eax, [ebp - 0x1c]
push eax
xor edi, edi
inc edi
push edi
push 0x100661c
push edi
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
test eax, eax
je 0x100f9ae
mov dword [0x1016fc0], edi
jmp 0x100f9c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x100f9c3
mov dword [0x1016fc0], 2
mov eax, dword [0x1016fc0]
cmp eax, 2
je 0x100fac3
cmp eax, esi
je 0x100fac3
cmp eax, 1
jne 0x100fae9
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x100f9f5
mov eax, dword [0x1016fb4]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
xor eax, eax
cmp dword [ebp + 0x20], esi
setne al
lea eax, [eax*8 + 1]
push eax
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
mov dword [ebp - 0x28], ebx
test ebx, ebx
je 0x100fae9
and dword [ebp - 4], 0
lea edi, [ebx + ebx]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.0100d410
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x2c], esi
mov ecx, edi
xor eax, eax
mov edi, esi
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
or dword [ebp - 4], 0xffffffff
jmp 0x100fa6e
test esi, esi
jne 0x100fa89
push ebx
push 2
call fcn.01010167
pop ecx
pop ecx
mov esi, eax
test esi, esi
je 0x100fae9
mov dword [ebp - 0x20], 1
push ebx
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 1
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x100fab1
push dword [ebp + 0x14]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x20], 0
je 0x100fabe
push esi
call fcn.0100e907
pop ecx
mov eax, dword [ebp - 0x24]
jmp 0x100fb31
mov edi, dword [ebp + 0x1c]
cmp edi, esi
jne 0x100fad0
mov edi, dword [0x1016fa4]
mov ebx, dword [ebp + 0x18]
test ebx, ebx
jne 0x100fadd
mov ebx, dword [0x1016fb4]
push edi
call fcn.0100feaa
pop ecx
cmp eax, 0xffffffff
jne 0x100faed
xor eax, eax
jmp 0x100fb31
cmp eax, ebx
je 0x100fb0f
push 0
push 0
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
push eax
push ebx
call fcn.0100fef4
add esp, 0x18
mov esi, eax
test esi, esi
je 0x100fae9
mov dword [ebp + 0xc], esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetStringTypeA]
mov ebx, eax
test esi, esi
je 0x100fb2f
push esi
call fcn.0100e907
pop ecx
mov eax, ebx
lea esp, [ebp - 0x38]
call fcn.0100e09b
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d7a
nop
sub eax, 0x403d20
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x10001fc0
Capabilities:
Check if file exists
Get file attributes
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [0x10027420]
push edi
push str.CPUIDInterface_GetSensorsValue__gCPUIDInterface__GetSensorsValue_GetTemperature_n
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
call dword [sym.imp.HardwareLib.dll_DebugStringA]
add esp, 4
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10002003
mov eax, dword [esi]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov ecx, esi
setne al
movzx eax, al
push eax
call fcn.10001dc0
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
push eax
push dword [ebp - 4]
push ebx
push edi
push str.CCPUIDInterface::GetSensorsValue__A__cpu_d__gpu_d__mbd_d__fan_d
call dword [sym.imp.HardwareLib.dll_DebugStringA]
add esp, 0x14
push str.CheckIfDemoModule
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [sym.CPUIDInterface.dll_g_test_switch_], 0
jne 0x1000209f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 0x60]
call fcn.10007890
push str.AdjustTemperature
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
push eax
push esi
push ebx
push edi
push str.CCPUIDInterface::GetSensorsValue__B__cpu_d__gpu_d__mbd_d__fan_d
call dword [sym.imp.HardwareLib.dll_DebugStringA]
add esp, 0x14
jmp 0x100020a2
mov esi, dword [ebp - 4]
xor eax, eax
test edi, edi
cmovs edi, eax
test ebx, ebx
cmovs ebx, eax
test esi, esi
cmovs esi, eax
mov eax, dword [ebp - 8]
xor ecx, ecx
test eax, eax
cmovs eax, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x100020c6
mov dword [ecx], edi
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x100020cf
mov dword [ecx], ebx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100020d8
mov dword [ecx], esi
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x100020e1
mov dword [ecx], eax
push eax
push esi
push ebx
push edi
push str.CCPUIDInterface::GetSensorsValue__C__cpu_d__gpu_d__mbd_d__fan_d
call dword [sym.imp.HardwareLib.dll_DebugStringA]
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100025c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001b440
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10026010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push str.CPUIDInterface_GetSensorsValue
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.pre_nResult
mov esi, dword [sym.imp.HardwareLib.dll_DebugStringA]
call esi
push str.after__nResult
call esi
push 0x10004970
call fcn.10008ec7
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x10027420], 0
jne 0x10002647
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push str.CPUIDInterface_GetSensorsValue__gCPUIDInterface__GetSensorsValue__n
call esi
add esp, 4
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10001fc0
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100072c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10026010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x16
push str.:Program_Files__x86__
lea ebx, [esi + 2]
push ebx
call fcn.1000e1a6
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0xc
test eax, eax
jne 0x1000731a
push esi
call edi
cmp eax, 0xffffffff
jne 0x10007392
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10009570
lea eax, [esi + 0x2e]
jmp 0x1000734c
push 0x13
push str.:WindowsSysWoW64_
push ebx
call fcn.1000e1a6
add esp, 0xc
test eax, eax
jne 0x10007392
push esi
call edi
cmp eax, 0xffffffff
jne 0x10007392
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10009570
lea eax, [esi + 0x28]
push eax
movzx eax, word [esi]
push str.:Program_Files_
push eax
lea eax, [ebp - 0x20c]
push str._c_s_s
push eax
call fcn.10004ea0
add esp, 0x20
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, 0xffffffff
je 0x1000738d
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
push esi
call fcn.1000dc64
add esp, 0xc
jmp 0x10007392
xor eax, eax
mov word [esi], ax
push esi
call edi
cmp eax, 0xffffffff
jne 0x1000739f
xor eax, eax
mov word [esi], ax
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10007a97
mov esp, ebp
pop ebp
ret 8

Function at 0x1000e3e1
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
push dword [ebx]
sal bh, cl
int1

Function at 0x1000e4e9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
xchg esi, eax
mov esi, 0xc6975d88
inc ebp
cwde
pop ss
mov byte [ebp - 0x67], 0x28
cdq
sub dh, al
inc ebp
lcall 0xc635, 0x9b45c633
inc ebp
pushfd
xor al, 0xc6
inc ebp
popfd
and dh, al
inc ebp
sahf
sub eax, 0x119f45c6
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.1000e133
push eax
push esi
push dword [ebp + 8]
call fcn.1000e0e8
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.1000e133
push eax
push esi
push dword [ebp + 8]
call fcn.1000e0e8
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.1000e123
aaa
sub bl, byte [edi]
in eax, 0x88
popfd
jl 0x1000e5a8
invalid
invalid
Function at 0x1000e4f4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
xchg esi, eax
mov esi, 0xc6975d88
inc ebp
cwde
pop ss
mov byte [ebp - 0x67], 0x28
cdq
sub dh, al
inc ebp
lcall 0xc635, 0x9b45c633
inc ebp
pushfd
xor al, 0xc6
inc ebp
popfd
and dh, al
inc ebp
sahf
sub eax, 0x119f45c6
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.1000e133
push eax
push esi
push dword [ebp + 8]
call fcn.1000e0e8
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.1000e133
push eax
push esi
push dword [ebp + 8]
call fcn.1000e0e8
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.1000e123
aaa
sub bl, byte [edi]
in eax, 0x88
popfd
jl 0x1000e5a8
invalid
invalid
Function at 0x1000fe2e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x7a9], 0
mov byte [ebp - 0x7a8], 0x4e
mov byte [ebp - 0x7a7], 0x55
mov byte [ebp - 0x7a6], 0x56
mov byte [ebp - 0x7a5], 0x7e
mov byte [ebp - 0x7a4], 0x21
mov byte [ebp - 0x7a3], 0x20
mov byte [ebp - 0x7a2], 0x3c
mov byte [ebp - 0x7a1], 0x76
mov byte [ebp - 0x7a0], 0x7e
mov byte [ebp - 0x79f], 0x7e
mov byte [ebp - 0x79e], 0x12
push 0xb
lea eax, [ebp - 0x7ac]
push eax

Function at 0x10010179
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x100101b9
lea eax, [ebp - 0x714]
push eax
call fcn.1000e133
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.1000e0e8
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
je 0x100101c4
jmp 0x100101c9
jmp 0x1000fac5
cmp dword [ebp - 0x37c], 0
jne 0x10010273
mov eax, dword [ebp - 0x748]
mov dword [ebp - 0x7ec], eax
mov eax, dword [ebp - 0x38c]
mov dword [ebp - 0x7e8], eax
and dword [ebp - 0x7e0], 0
push 0x1000
push 8
push dword [ebp - 0x674]
invalid
xchg ebp, eax
test cl, bh
Function at 0x401390
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 0x4013a9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4013e4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4013e0
lea ebx, [ebx]
cmp esi, eax
jae 0x4013e4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4013d0
cmp esi, eax
jb 0x4013ea
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401a70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x44f6c4]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x220]
push ebp
mov ebp, dword [esp + 0x228]
push esi
push edi
mov edi, dword [esp + 0x224]
push 0x104
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp dword [0x450b74], 0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x401ac8
push str.System32
lea ecx, [esp + 0x14]
push ecx
call esi
push str.DIFxAPI.dll
lea edx, [esp + 0x14]
push edx
call esi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x401afc
push str.DriverPackageUninstallW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x401b01
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or eax, 0xffffffff
jmp 0x401b19
mov ecx, dword [esp + 0x228]
push ebp
push ebx
push ecx
push edi
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004274dc
add esp, 0x210
ret

Function at 0x4028e0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x214
mov eax, dword [0x44f6c4]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x218]
push esi
push edi
mov edi, dword [esp + 0x224]
lea ecx, [esp + 8]
push ecx
push 0xf003f
xor esi, esi
push esi
push edi
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40295a
mov ecx, dword [esp + 8]
push esi
push esi
push esi
push esi
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
push esi
push ecx
mov dword [esp + 0x2c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x40294f
mov esi, 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402976
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x218]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.004274dc
add esp, 0x214
ret
Function at 0x404670
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x43a7a8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x44f6c4]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push 0x43ee68
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.00403350
push str.MicrosoftWindowsCurrentVersionUninstall_
lea ecx, [esp + 0x24]
mov dword [esp + 0x44], ebx
call fcn.00403350
lea eax, [esp + 0x20]
push eax
add esi, 0x148
lea ecx, [esp + 0x38]
push esi
push ecx
mov byte [esp + 0x4c], 1
call fcn.00402de0
lea edx, [esp + 0x30]
push edx
push eax
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x58], 2
call fcn.00402de0
mov eax, dword [eax]
add esp, 0x18
lea ecx, [esp + 0x1c]
push ecx
push 0xf003f
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov eax, dword [esp + 0x30]
sete byte [esp + 0x13]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404735
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x40], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40475a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x40], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40477e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x40], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4047a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x13], bl
je 0x40480e
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x20]
push eax
push ebx
push str.MajorVersion
mov edi, 4
push ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
call esi
test eax, eax
jne 0x404803
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebx
push str.MinorVersion
push edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
call esi
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x28]
shl eax, 0x10
or eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x34
ret
Function at 0x404830
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x43a7f0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x44f6c4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor esi, esi
push 0x43ea84
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], esi
mov dword [esp + 0x24], esi
call fcn.00403350
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
push ecx
push 9
push edx
push eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call fcn.004019e0
add esp, 0x14
test eax, eax
je 0x4049d1
push str.SYSTEMCurrentControlSetControlClass_
lea ecx, [esp + 0xc]
call fcn.00402cb0
push str.SettingsEx
lea ecx, [esp + 0x40]
call fcn.00403350
mov ecx, dword [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x3c], 1
call fcn.00402ea0
lea ecx, [esp + 0x48]
push ecx
push eax
lea edx, [esp + 0x4c]
push edx
mov byte [esp + 0x48], 2
call fcn.00402de0
add esp, 0x18
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 3
call fcn.004030b0
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x30], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404923
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x30], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404948
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40496d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 8]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4049d1
mov eax, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push esi
push str.GetGlobalPolicy
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4049c6
cmp dword [esp + 0x18], esi
je 0x4049c6
lea esi, [eax + 1]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4049f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret 8