joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e85c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x8c1e6d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00405060
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41e897
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41e8b0
lea eax, [ebp - 0xc]
mov edx, dword [0x8d719c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.004050c0
jmp 0x41e8c3
lea eax, [ebp - 0xc]
mov edx, dword [0x8d719c]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.004050c0
lea eax, [ebp - 0xc]
mov edx, ebx
sar edx, 1
jns 0x41e8cf
adc edx, 0
mov edx, dword [edx*4 + 0x8d5cbc]
call fcn.004052b0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0xc]
call fcn.00405294
push eax
call fcn.00406ecc
mov esi, eax
cmp esi, 0xffffffff
je 0x41ea3f
mov eax, 0x40
call fcn.004035bc
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00407104
test eax, eax
je 0x41ea32
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41ea32
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.0040714c
mov eax, edi
call fcn.004035ec
mov eax, 0x18
call fcn.004035bc
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00407104
test eax, eax
je 0x41ea32
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41ea32
add eax, 4
cmp byte [ebp - 1], 0
je 0x41e9d6
cmp word [eax], 0x8664
jne 0x41e9d6
mov eax, edi
call fcn.004035ec
mov eax, 0xf0
call fcn.004035bc
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00407104
test eax, eax
je 0x41ea32
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x41ea32
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.0040509c
jmp 0x41ea32
cmp byte [ebp - 1], 0
jne 0x41ea32
cmp word [eax], 0x14c
jb 0x41ea32
cmp word [eax], 0x150
ja 0x41ea32
mov eax, edi
call fcn.004035ec
mov eax, 0xe0
call fcn.004035bc
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00407104
test eax, eax
je 0x41ea32
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x41ea32
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.0040509c
mov eax, edi
call fcn.004035ec
push esi
call fcn.00406e84
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.004053c0
jne 0x41ea57
inc ebx
cmp ebx, 0x19
jne 0x41e889
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8c1e74
lea eax, [ebp - 0xc]
call fcn.00405060
ret
Function at 0x401007
Capabilities:
Delete file
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [eax]
mov eax, dword [0x42d718]
mov dword [ebp - 0x28], eax
mov eax, dword [0x42d71c]
xor ecx, ecx
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ecx
call fcn.00401000
mov eax, dword [0x42d720]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [0x42d724]
add ebx, 0x23f
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0x20
jmp 0x40105c
xor ecx, ecx
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, edi
shl eax, 4
cmp dword [0x43c974], 0xc
mov dword [ebp - 4], eax
jne 0x401086
push ecx
lea eax, [ebp - 0x30]
push eax
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [0x43c974]
cmp eax, 0xfa9
jne 0x4010a2
mov dword [0x43c970], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010c7
push str.xuzujamasahigomurefexob
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
and dword [0x43c8c8], 0
lea eax, [ebx + edi]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x14], 0
mov dword [0x43c96c], 0xf4ea3dee
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
sub esi, eax
mov dword [ebp - 8], eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
lea eax, [ebx + esi]
mov dword [ebp - 0x18], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
cmp dword [0x43c974], 0xb03
jne 0x401142
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 8]
add ebx, 0x61c88647
sub edi, eax
dec dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
jne 0x40105a
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [eax + 4], esi
pop esi
pop ebx
leave
ret 4
Function at 0x1006bb80
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [0x1007e4e8], 0
je 0x1006bbba
push 0x10074c1c
push str.MOZ_SKELETON_UI_RESTARTING
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov eax, dword [0x1007d204]
cmp eax, 0xffffffff
je 0x1006bbb1
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov byte [esi + 4], 0
mov eax, esi
pop esi
pop ebp
ret
mov byte [esi + 4], 1
mov dword [esi], 2
jmp 0x1006bbb5

Function at 0x41fb66
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x41fb75
pop dword [ebp - 0x28]
mov eax, 0xe12fef7e
sub eax, 0xe0edf409
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x51957
push 0
mov eax, 0x496f7a8e
sub eax, 0x492ac7de
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0xc56be632
add ecx, 0x3a9467bd
xor edx, edx
add edx, eax
mov edi, 0x4a17bb6b
sub edi, 0x49cf2d6b
add edi, dword [ebp - 0x28]
mov esi, 0x5ec08117
sub esi, 0x17803834
add dword [ebp - 0x1c], 0x778bb89
mov ebx, dword [edi]
xor dword [ebp - 4], ebx
add ebx, esi
xor dword [ebp - 0x18], 0x7e06ee7e
mov dword [edx], ebx
mov dword [ebp - 0x10], 0x8844f440
add edx, 4
add edi, 4
loop 0x41fbd6
add eax, 0x93c47b2f
sub eax, 0x93c350a0
mov ebx, eax
add eax, 0x720b1814
add eax, 0x8df4e7f1
mov ecx, 0x3ba582f1
add ecx, 0xc49a7d0f
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x10001de4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x10001df3
pop dword [ebp - 8]
mov eax, 0x10001df3
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xdb805c0b
add dword [ebp - 0x18], 0x72d1e940
mov dword [ebp - 0x14], 0x797fe840
add dword [ebp - 0x14], 0xb8b36405
mov dword [ebp - 0x10], 0x65b8fa3d
add dword [ebp - 0x10], 0xe69349f1
mov dword [ebp - 0xc], 0x2b381ee8
add dword [ebp - 0xc], 0xd4c7e118
lea eax, [ebp - 0x18]
push eax
mov eax, 0xa4bb50f1
sub eax, 0x94bb20ed
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x18d8e1ef
add dword [ebp - 0x18], 0x5b998767
mov dword [ebp - 0x14], 0x3e7498e7
add dword [ebp - 0x14], 0x2f7c88e
mov dword [ebp - 0x10], 0x173d3e36
add dword [ebp - 0x10], 0x4c322e36
mov dword [ebp - 0xc], 0x2fa3c3e3
sub dword [ebp - 0xc], 0x2fa3c3e3
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0x843fe39e
add eax, 0x8bc04c6e
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x358e0
push 0
call eax
mov ecx, 0x444a
mov ebx, eax
mov edx, 0xbb0bc4ba
sub edx, 0xab0b60ba
add edx, dword [ebp - 8]
mov edi, 0x157d2a16
sub dword [ebp - 4], ebx
mov esi, dword [edx]
add dword [ebp - 4], 0xce1b60b6
add esi, edi
sub dword [ebp - 4], 0xce67c57a
mov dword [ebx], esi
xor dword [ebp - 4], 0x4453a219
add ebx, 0x8783023e
add ebx, 0x787cfdc6
add edx, 0x15b46e9d
sub edx, 0x15b46e99
loop 0x10001f04
add eax, 0x103fb
mov ebx, eax
add eax, 0xa3146413
sub eax, 0xa314640e
mov ecx, 0xc242854a
sub ecx, 0xb242854a
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.100062eb
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100062eb
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.100062eb
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.100062eb
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.100062eb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.100062eb
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.100062eb
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.100062eb
push 0xd008
push edi
call fcn.100062eb
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.100062eb
int3

Function at 0x100062eb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x100062fa
pop dword [ebp - 0x4c]
mov eax, 0xae5a1394
add eax, 0x61a64f66
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x37fc0
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x8235f751
sub ecx, 0x8235b378
xor edx, edx
add edx, eax
mov ebx, 0x52e5b0d
sub ebx, 0xf52cd50d
add ebx, dword [ebp - 0x4c]
mov edi, 0x7bfcd2c2
add edi, 0x534e0ce
sub dword [ebp - 0x18], edi
mov esi, dword [ebx]
sub dword [ebp - 0x44], esi
xor esi, edi
mov dword [edx], esi
mov dword [ebp - 0x28], 0x42d6043b
add edx, 4
add ebx, 0x9ce0b4ea
add ebx, 0x631f4b1a
loop 0x10006356
add eax, 0x3edddee1
sub eax, 0x3edcdcaa
mov ebx, eax
add eax, 5
mov ecx, 0x4ae84b8a
sub ecx, 0x3ae84b8a
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x402ad0
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 0x402ae9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402b24
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402b20
lea ebx, [ebx]
cmp esi, eax
jae 0x402b24
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402b10
cmp esi, eax
jb 0x402b2a
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 0x402f80
Capabilities:
Set registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x4997f0]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [esp + 0x410]
test eax, eax
jne 0x402fb6
xor al, al
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.0044f9f6
add esp, 0x40c
ret
test edi, edi
je 0x402f9f
push eax
lea eax, [esp + 0xc]
push 0x200
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.00450915
add esp, 0xc
lea ecx, [esp]
push ecx
push 0x20006
push 0
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40301f
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x402f9f
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403024
mov ecx, dword [esp]
sub eax, edx
sar eax, 1
add eax, eax
push eax
push edi
push 1
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x402f9f
mov eax, dword [esp]
test eax, eax
je 0x40305c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x408]
xor ecx, esp
mov al, 1
call fcn.0044f9f6
add esp, 0x40c
ret
Function at 0x403080
Capabilities:
Set registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x4997f0]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [esp + 0x410]
test eax, eax
jne 0x4030b6
xor al, al
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.0044f9f6
add esp, 0x40c
ret
push eax
lea eax, [esp + 0xc]
push 0x200
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.00450915
add esp, 0xc
lea ecx, [esp]
push ecx
push 0x20006
push 0
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40311b
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40309f
mov ecx, dword [esp]
push 4
lea eax, [esp + 0x418]
push eax
push 4
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40309f
mov eax, dword [esp]
test eax, eax
je 0x40314a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x408]
xor ecx, esp
mov al, 1
call fcn.0044f9f6
add esp, 0x40c
ret

Function at 0x403170
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x4997f0]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [esp + 0x410]
test eax, eax
push ebp
mov ebp, dword [esp + 0x418]
push esi
push edi
mov edi, ecx
mov esi, edx
je 0x403238
push eax
lea eax, [esp + 0x18]
push 0x200
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 4
call fcn.00450915
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x20]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403238
mov ecx, dword [esi]
test ecx, ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jne 0x403252
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push ebp
push ecx
call edi
test eax, eax
jne 0x403238
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00432e86
mov ecx, dword [esp + 0x10]
lea edx, [ecx + ecx]
push edx
push 0
push eax
mov dword [esi], eax
call fcn.00454000
mov ecx, dword [esi]
add esp, 0x10
test ecx, ecx
jne 0x40326a
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.0044f9f6
add esp, 0x40c
ret
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x403257
sub eax, esi
sar eax, 1
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push ecx
mov ecx, dword [esp + 0x18]
push 0
push 0
push ebp
push ecx
call edi
test eax, eax
jne 0x403238
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40328f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebp
xor ecx, esp
mov al, 1
call fcn.0044f9f6
add esp, 0x40c
ret
Function at 0x4032b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x410
mov eax, dword [0x4997f0]
xor eax, esp
mov dword [esp + 0x40c], eax
mov eax, dword [esp + 0x414]
test eax, eax
jne 0x4032e6
xor al, al
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.0044f9f6
add esp, 0x410
ret
push eax
mov ecx, 4
lea eax, [esp + 0x10]
push 0x200
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
call fcn.00450915
add esp, 0xc
lea ecx, [esp]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4032cf
mov edx, dword [esp]
lea eax, [esp + 4]
push eax
push ebx
lea ecx, [esp + 0x10]
push ecx
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4032cf
mov eax, dword [esp]
test eax, eax
je 0x403353
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x40c]
xor ecx, esp
mov al, 1
call fcn.0044f9f6
add esp, 0x410
ret
Function at 0x406ea0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x46fb50
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4997f0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
push edi
mov eax, dword [0x4997f0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
push eax
mov edi, ecx
call dword [sym.imp.ole32.dll_CoCreateGuid]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
xor ebx, ebx
push edx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.00402860
mov dword [esp + 0x38], ebx
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 0xc]
add eax, 0xfffffffe
push eax
push 1
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
call fcn.00408970
mov byte [esp + 0x38], 1
mov ecx, dword [eax]
mov eax, ecx
lea esi, [eax + 2]
jmp 0x406f40
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x406f40
sub eax, esi
sar eax, 1
push eax
lea esi, [edi + 0x58]
push ecx
call fcn.00401690
mov byte [esp + 0x38], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406f7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [edi + 0x6c]
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00432e86
add esp, 4
cmp dword [esi + 0x18], 8
mov edi, eax
jb 0x406fa9
mov esi, dword [esi + 4]
jmp 0x406fac
add esi, 4
mov ecx, edi
mov edi, edi
movzx eax, word [esi]
mov word [ecx], ax
add esi, 2
add ecx, 2
cmp ax, bx
jne 0x406fb0
push str.SoftwareVHLDMACHINE_ID
mov ebx, str.Installation_GUID
mov esi, SysReAllocStringLen
call fcn.00402f80
push edi
call fcn.00432e81
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407006
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0044f9f6
add esp, 0x2c
ret
Function at 0x407080
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x47082b
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x4997f0]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4997f0]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xd0]
xor ebx, ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
call fcn.0040a880
mov dword [esp + 0xc8], ebx
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x4070ef
lea eax, [esp + 0x24]
lea ecx, [esp + 0x18]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x40719b
push esi
call fcn.00432e86
add esp, 4
cmp dword [esp + 0x38], 8
mov edi, eax
mov eax, dword [esp + 0x24]
jae 0x40711e
lea eax, [esp + 0x24]
mov edx, dword [esp + 0x18]
push edi
push esi
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x407192
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x4818c4
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x407192
cmp dword [esp + 0x1c], ebx
je 0x407192
mov eax, dword [esp + 0x14]
cmp dword [eax], 0xfeef04bd
jne 0x407192
movzx edx, word [eax + 0xc]
movzx ecx, word [eax + 0xe]
push edx
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push edx
push eax
push 0x4818c8
lea ecx, [esp + 0x50]
push 0x40
push ecx
call fcn.00450ee6
add esp, 0x1c
add ebp, 0x94
push ebp
lea edx, [esp + 0x40]
call fcn.00408c80
push edi
call fcn.00432e81
add esp, 4
cmp dword [esp + 0x38], 8
jb 0x4071af
mov edx, dword [esp + 0x24]
push edx
call fcn.00432e81
add esp, 4
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.0044f9f6
add esp, 0xb8
ret 4