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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
push eax
push 0x8000000
push 3
push eax
push 1
push 0x80000000
push esi
mov ebx, edx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4119fb
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx + 8], eax
cmp eax, 0xffffffff
jne 0x41199d
push esi
push 0x406920
jmp 0x411a01
test eax, eax
jne 0x4119ab
push esi
push 0x406958
push 0
jmp 0x411a03
cmp eax, 0x1fffe00
ja 0x4119f3
cmp dword [ebp - 4], 0
jne 0x4119f3
mov ecx, eax
call fcn.00412c5b
push 0
lea ecx, [ebp - 8]
mov dword [ebx + 0xc], eax
push ecx
push dword [ebx + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4119df
push esi
push 0x4069b8
jmp 0x411a01
mov eax, dword [ebp - 8]
cmp eax, dword [ebx + 8]
jne 0x411a08
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
push esi
push 0x406984
jmp 0x4119a7
push esi
push 0x4068f0
push 0xffffffffffffffff
call fcn.004129be
push dword [ebx + 8]
push eax
push esi
push 0x4069e8
push 0
call fcn.004129be
int3

Function at 0x412923
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x100
mov dword [0x419de4], 1
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, edx
cmp esi, 0xffffffff
jne 0x41294f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0x419e00
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x401424
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
push ebx
push edi
push 1
call fcn.004181a9
pop ecx
push eax
call dword [sym.imp.msvcrt.dll_vfprintf]
add esp, 0xc
test esi, esi
je 0x41299a
push ecx
lea edx, [ebp - 0x100]
mov ecx, esi
call fcn.00412ae6
push eax
push 0x402664
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
pop ecx
push 1
call fcn.004181a9
push eax
call dword [sym.imp.msvcrt.dll_fflush]
pop ecx
pop ecx
call fcn.00412ab9
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4132b0
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
xor eax, eax
cmp dword [0x419518], eax
push ebx
setne al
mov ebx, edx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], edi
lea eax, [eax*2 + 1]
test edi, edi
jne 0x413372
push ecx
push 0x48000000
push 3
push ecx
push eax
push 0x80000000
test esi, esi
je 0x41330c
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x413372
mov eax, 0x406ea4
jmp 0x413364
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x413372
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x41335d
mov eax, dword [0x41aed0]
mov ecx, 0x40616c
test eax, eax
jne 0x413356
mov ecx, 0x401130
mov eax, 0x40617c
push ecx
push eax
push ebx
push 0x406d48
push 0
call fcn.004129f0
add esp, 0x14
xor eax, eax
jmp 0x413491
mov eax, 0x406174
jmp 0x41333d
mov eax, 0x406ec0
mov esi, ebx
push esi
push eax
push 0xffffffffffffffff
call fcn.004129f0
add esp, 0xc
jmp 0x41334f
cmp dword [ebp + 0xc], 0
jne 0x413385
push ebx
mov edx, esi
mov ecx, edi
call fcn.00416fee
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x24]
mov ecx, eax
mov ebx, dword [ebp + 0x28]
or ecx, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ebx
jne 0x4133a6
mov ecx, edi
call fcn.00413657
mov dword [ebp - 8], eax
mov ebx, edx
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0x10], 0
jne 0x4133ea
mov ecx, edi
call fcn.00413657
mov ecx, eax
mov eax, dword [ebp - 8]
cmp eax, ecx
jne 0x4133c0
cmp ebx, edx
je 0x4133ea
cmp dword [0x41af24], 0
push ebx
push eax
push edx
push ecx
je 0x413406
test esi, esi
je 0x4133d9
push esi
push 0x406ee0
jmp 0x4133e1
push dword [ebp - 4]
push 0x406f28
call dword [sym.imp.msvcrt.dll_printf]
add esp, 0x18
mov ecx, 0x419d94
call fcn.00412e45
mov ebx, eax
push 0x50
test ebx, ebx
jne 0x41341b
pop ecx
call fcn.00412ce9
mov ebx, eax
jmp 0x413426
test esi, esi
jne 0x413498
push dword [ebp - 4]
push 0x406f28
jmp 0x41349e
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 4], esi
xor esi, esi
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x28]
mov dword [ebx], edi
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x24], esi
mov dword [ebx + 0x18], 0x100000
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], eax
call fcn.00413811
xor ecx, ecx
mov dword [ebx + 0x34], eax
call fcn.00413811
mov dword [ebx + 0x38], eax
call fcn.00412ed7
mov dword [ebx + 0x3c], eax
mov edx, ebx
mov eax, dword [ebp + 0x18]
mov ecx, 0x4130d0
push 2
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x48], esi
call fcn.0041377e
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x24
push esi
push 0x406ee0
push 0
call fcn.004129be
int3
Function at 0x4136d6
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov dword [0x419d90], ecx
imul ecx, ecx, 0x14
push edi
call fcn.00412ce9
mov ecx, dword [0x419d90]
shl ecx, 2
mov dword [0x419d88], eax
call fcn.00412ce9
xor edi, edi
mov dword [0x419d8c], eax
cmp dword [0x419d90], edi
jbe 0x413768
push esi
xor esi, esi
call fcn.00412ed7
mov ecx, dword [0x419d88]
mov dword [esi + ecx + 4], eax
call fcn.00412ed7
mov edx, dword [0x419d88]
mov ecx, dword [0x419d8c]
add edx, esi
mov dword [edx + 8], eax
mov dword [ecx + edi*4], eax
lea eax, [ebp - 4]
push eax
push 0
push edx
push 0x4136a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x419d88]
mov dword [esi + ecx], eax
test eax, eax
je 0x41376b
inc edi
add esi, 0x14
cmp edi, dword [0x419d90]
jb 0x413710
pop esi
pop edi
leave
ret
push 0x407018
push 0xffffffffffffffff
call fcn.004129be
int3
Function at 0x417077
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
mov edx, ecx
test esi, esi
je 0x4170a1
movzx ecx, byte [edi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x407840]
inc edi
sub esi, 1
jne 0x417089
pop edi
mov eax, edx
pop esi
pop ebp
ret 4

Function at 0x4170af
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
test edi, edi
je 0x4170de
movzx eax, byte [edx]
movzx ecx, si
shr ecx, 8
xor ecx, eax
shl esi, 8
xor si, word [ecx*2 + 0x407640]
inc edx
movzx esi, si
sub edi, 1
jne 0x4170bf
pop edi
mov ax, si
pop esi
pop ebp
ret 4

Function at 0x417e30
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x418330
call fcn.00418130
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x417e90
cmp eax, 0xffffffff
je 0x417e90
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x417e89
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x417e89
cmp edx, 0x10000000
jae 0x417e89
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x417e86
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x417f10
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x417f4e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x417f46
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x417f50
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x417f36
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x418030
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x418061
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x418061
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x418061
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
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
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x78bf73ec
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x123d6e01
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x41111b]
shl eax, 2
mov dword [0x41111f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00406990
pop edx
call fcn.00405d2c
call fcn.00406994
push 0
call fcn.00407640
pop ecx
push 0x4110c4
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x411123], eax
push 0
jmp fcn.0040e224

Function at 0x40583b
Capabilities:
Encode data using xor

Disassembly:
enter 0xffffffffffff8891, 0xffffffffffffff80
xor al, 0xbf
push 0x15
sbb ebp, ebx
xor al, 0x4d
cld
enter 0xffffffffffffc574, 0xffffffffffffffe7
enter 0x5ac2, 0x7c
std
sub al, 0x93
mov eax, 0xe3162b17
fisub dword [esi]
loop 0x4058d2
dec edx
cld
mov dword [edi], ecx
adc ah, byte [ebp - 0x5f]
imul edi, dword [esi - 0x1b01c813], 0x56
pop ebp
mov byte [0xe1ea82d7], al
sub eax, 0x79b31b20
mov eax, 0x3cc80f8d
or eax, 0xae789b19
inc eax
pop edi
inc edx
pop esi
stosd dword es:[edi], eax
insd dword es:[edi], dx
adc ah, al
xor esp, esi
in al, 0x55
xor al, 0xb1
scasd eax, dword es:[edi]
mov eax, dword [0x6bf13a13]
and byte [edx], dl
invalid
in al, dx

Function at 0x406684
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret
Function at 0x4025f0
Capabilities:
Enumerate gui resources

Disassembly:
test byte [0x4a6470], 1
jne 0x402621
or dword [0x4a6470], 1
push 0x47c880
mov dword [0x4a6468], 0x483c74
mov dword [0x4a646c], 0
call fcn.0045615a
add esp, 4
push str.RandomLogicInstaller
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x4a646c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40264e
push esi
push 0x402660
call dword [sym.imp.USER32.dll_EnumWindows]
xor al, al
ret
mov al, 1
ret

Function at 0x402ba0
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 0x402bb9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402bf4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402bf0
lea ebx, [ebx]
cmp esi, eax
jae 0x402bf4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402be0
cmp esi, eax
jb 0x402bfa
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 0x403040
Capabilities:
Set registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x4a0800]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [esp + 0x410]
test eax, eax
jne 0x403076
xor al, al
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.004552e7
add esp, 0x40c
ret
test edi, edi
je 0x40305f
push eax
lea eax, [esp + 0xc]
push 0x200
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.00456206
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 0x4030df
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 0x40305f
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4030e4
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 0x40305f
mov eax, dword [esp]
test eax, eax
je 0x40311c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x408]
xor ecx, esp
mov al, 1
call fcn.004552e7
add esp, 0x40c
ret
Function at 0x403140
Capabilities:
Set registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x4a0800]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [esp + 0x410]
test eax, eax
jne 0x403176
xor al, al
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.004552e7
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.00456206
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 0x4031db
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 0x40315f
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 0x40315f
mov eax, dword [esp]
test eax, eax
je 0x40320a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x408]
xor ecx, esp
mov al, 1
call fcn.004552e7
add esp, 0x40c
ret

Function at 0x403230
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x4a0800]
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 0x4032f8
push eax
lea eax, [esp + 0x18]
push 0x200
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 4
call fcn.00456206
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 0x4032f8
mov ecx, dword [esi]
test ecx, ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jne 0x403312
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 0x4032f8
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00438756
mov ecx, dword [esp + 0x10]
lea edx, [ecx + ecx]
push edx
push 0
push eax
mov dword [esi], eax
call fcn.004598f0
mov ecx, dword [esi]
add esp, 0x10
test ecx, ecx
jne 0x40332a
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.004552e7
add esp, 0x40c
ret
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x403317
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 0x4032f8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40334f
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.004552e7
add esp, 0x40c
ret
Function at 0x403370
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x410
mov eax, dword [0x4a0800]
xor eax, esp
mov dword [esp + 0x40c], eax
mov eax, dword [esp + 0x414]
test eax, eax
jne 0x4033a6
xor al, al
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.004552e7
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.00456206
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 0x40338f
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 0x40338f
mov eax, dword [esp]
test eax, eax
je 0x403413
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x40c]
xor ecx, esp
mov al, 1
call fcn.004552e7
add esp, 0x410
ret
Function at 0x406fa0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x475430
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4a0800]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
push edi
mov eax, dword [0x4a0800]
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.00402930
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.00408a80
mov byte [esp + 0x38], 1
mov ecx, dword [eax]
mov eax, ecx
lea esi, [eax + 2]
jmp 0x407040
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x407040
sub eax, esi
sar eax, 1
push eax
lea esi, [edi + 0x58]
push ecx
call fcn.00401750
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 0x40707d
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.00438756
add esp, 4
cmp dword [esi + 0x18], 8
mov edi, eax
jb 0x4070a9
mov esi, dword [esi + 4]
jmp 0x4070ac
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 0x4070b0
push str.SoftwareVHLDMACHINE_ID
mov ebx, str.Installation_GUID
mov esi, SysReAllocString
call fcn.00403040
push edi
call fcn.00438751
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 0x407106
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.004552e7
add esp, 0x2c
ret
Function at 0x407180
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x47618b
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x4a0800]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a0800]
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.0040d850
mov dword [esp + 0xc8], ebx
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x4071ef
lea eax, [esp + 0x24]
lea ecx, [esp + 0x18]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x40729b
push esi
call fcn.00438756
add esp, 4
cmp dword [esp + 0x38], 8
mov edi, eax
mov eax, dword [esp + 0x24]
jae 0x40721e
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 0x407292
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x4878c4
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x407292
cmp dword [esp + 0x1c], ebx
je 0x407292
mov eax, dword [esp + 0x14]
cmp dword [eax], 0xfeef04bd
jne 0x407292
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 0x4878c8
lea ecx, [esp + 0x50]
push 0x40
push ecx
call fcn.004567d7
add esp, 0x1c
add ebp, 0x94
push ebp
lea edx, [esp + 0x40]
call fcn.00408d90
push edi
call fcn.00438751
add esp, 4
cmp dword [esp + 0x38], 8
jb 0x4072af
mov edx, dword [esp + 0x24]
push edx
call fcn.00438751
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.004552e7
add esp, 0xb8
ret 4