joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10023c20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0xffffffff
jne 0x10023c30
xor eax, eax
leave
ret
push esi
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
xor esi, esi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
inc edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call fcn.10022ab2
add esp, 0x10
test eax, eax
je 0x10023d7d
cmp dword [ebp - 4], esi
je 0x10023d7d
push ebx
mov ebx, 0x1007f1e8
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
call fcn.10024b9a
pop ecx
test eax, eax
jne 0x10023c8b
xor edi, edi
jmp 0x10023d75
cmp dword [0x1008003c], esi
je 0x10023c9e
push esi
push 0x72766c72
call fcn.1001f84f
lea eax, [ebp - 0x14]
push eax
mov dword [0x1008003c], 1
mov dword [ebp - 0x14], esi
call fcn.100229d5
pop ecx
cmp eax, dword [ebp - 8]
jne 0x10023cc2
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
je 0x10023cfb
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.10022aff
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.10022ab2
add esp, 0x18
test eax, eax
je 0x10023cee
cmp dword [ebp - 4], esi
jne 0x10023cfb
push esi
push 0x72766c73
call fcn.1001f84f
xor edi, edi
cmp dword [ebp + 0x14], esi
jne 0x10023d0d
cmp dword [ebp - 8], 0xea60
ja 0x10023c84
cmp edi, esi
je 0x10023d27
push dword [ebp + 0xc]
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.100239da
add esp, 0x10
mov edi, eax
mov dword [0x1008003c], esi
push esi
cmp edi, esi
je 0x10023d6b
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10023d56
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 8]
jne 0x10023d56
xor edi, edi
inc edi
jmp 0x10023d58
xor edi, edi
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 0x10]
call fcn.10022a69
add esp, 0xc
jmp 0x10023d75
push 0x74697970
call fcn.1001f84f
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], esi
je 0x10023d98
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.10022aff
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x1002404e
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp ebx, edi
jne 0x10024070
push edi
push 0x36717370
call fcn.1001f84f
jmp 0x100241ae
push esi
mov esi, dword [ebp + 0x10]
cmp esi, edi
jne 0x10024083
push edi
push 0x36717371
jmp 0x10024183
cmp dword [ebp + 8], 2
je 0x100240a0
cmp dword [ebp + 8], 8
je 0x100240a0
cmp dword [ebp + 8], 3
je 0x100240a0
push edi
push 0x36717372
jmp 0x10024183
cmp dword [ebx], edi
je 0x100240af
push edi
push 0x36717373
call fcn.1001f84f
cmp dword [esi], edi
je 0x100240be
push edi
push 0x37667270
call fcn.1001f84f
push esi
push edi
push dword [ebp + 8]
mov dword [esi], edi
call sub.Secur32.dll_GetUserNameExW
movzx edi, al
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x1002418a
cmp eax, 0xea
jne 0x1002418a
mov eax, dword [esi]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1003623f
pop ecx
mov dword [ebx], eax
test eax, eax
jne 0x1002410e
push eax
push 0x36717375
jmp 0x10024191
mov ecx, dword [esi]
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
push ecx
push eax
push edi
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x1002412e
push 0
push 0x36717376
jmp 0x10024191
mov eax, dword [esi]
dec eax
cmp dword [ebp - 4], eax
je 0x10024142
push 0
push 0x36717377
call fcn.1001f84f
cmp edi, 2
jne 0x1002415e
push dword [esi]
push dword [ebx]
call fcn.10023fdb
pop ecx
pop ecx
test eax, eax
jne 0x100241ad
push eax
push 0x36717378
jmp 0x10024191
cmp edi, 8
jne 0x10024177
push dword [ebx]
call fcn.10022de7
pop ecx
test eax, eax
jne 0x100241ad
push eax
push 0x36717379
jmp 0x10024191
cmp edi, 3
je 0x100241ad
push 0
push 0x3671737a
call fcn.1001f84f
jmp 0x100241ad
push 0
push 0x36717374
call fcn.1001f84f
mov eax, dword [ebx]
xor edi, edi
cmp eax, edi
je 0x100241a7
push eax
call fcn.1003624a
pop ecx
mov dword [ebx], edi
cmp dword [esi], edi
je 0x100241ad
mov dword [esi], edi
pop esi
pop edi
pop ebx
leave
ret
Function at 0x100246e1
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x10079ef8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x240], eax
mov ebx, 0x104
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.1002391d
pop ecx
pop ecx
test eax, eax
jne 0x1002471e
or eax, 0xffffffff
jmp 0x100248f9
cmp word [ebp - 0x22c], 0
push esi
lea esi, [ebp - 0x22c]
push edi
mov dword [ebp - 0x238], esi
je 0x10024744
inc esi
inc esi
cmp word [esi], 0
jne 0x10024736
mov dword [ebp - 0x238], esi
xor edi, edi
inc edi
push edi
call fcn.100224e7
mov dword [esp], 0x10001e4c
call fcn.1001fe04
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x248], eax
cmp eax, 0x64
jbe 0x10024770
mov dword [ebp - 0x230], edi
mov eax, esi
lea ecx, [ebp - 0x22c]
sub eax, ecx
sar eax, 1
mov dword [ebp - 0x234], eax
mov esi, 0x80
mov edi, 0xc0000000
push dword [ebp - 0x230]
lea eax, [ebp - 0x24]
push 0x10001c70
push 0xffffffffffffffff
push eax
call fcn.10022da1
add esp, 0x10
cmp dword [ebp - 0x234], 0
jl 0x100248a4
push dword [ebp - 0x234]
lea eax, [ebp - 0x244]
push ebx
push eax
call fcn.10024297
add esp, 0xc
mov ecx, eax
call fcn.1001f368
push eax
push dword [ebp - 0x238]
lea eax, [ebp - 0x24]
push eax
call fcn.100296b5
xor eax, eax
push eax
push eax
push esi
push 1
push eax
push 1
push edi
lea eax, [ebp - 0x22c]
push eax
call fcn.1002deef
mov dword [ebp - 0x23c], eax
cmp eax, 0xffffffff
jne 0x100248a9
cmp dword [ebp - 0x230], 0x64
jb 0x10024815
and dword [ebp - 0x230], 0
inc dword [ebp - 0x230]
mov eax, dword [ebp - 0x230]
cmp eax, dword [ebp - 0x248]
jne 0x1002478c
push eax
push 0x10001c70
lea eax, [ebp - 0x24]
push 0xffffffffffffffff
push eax
call fcn.10022da1
add esp, 0x10
cmp dword [ebp - 0x234], 0
jl 0x100248a4
push dword [ebp - 0x234]
lea eax, [ebp - 0x244]
push ebx
push eax
call fcn.10024297
add esp, 0xc
mov ecx, eax
call fcn.1001f368
push eax
push dword [ebp - 0x238]
lea eax, [ebp - 0x24]
push eax
call fcn.100296b5
push esi
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor ebx, ebx
push ebx
push ebx
push esi
push 2
push ebx
push 1
push edi
lea eax, [ebp - 0x22c]
push eax
call fcn.1002deef
mov dword [ebp - 0x23c], eax
jmp 0x100248ab
call fcn.1001e966
xor ebx, ebx
cmp dword [ebp - 0x230], 0x64
pop edi
pop esi
jb 0x100248bc
mov dword [ebp - 0x230], ebx
mov eax, dword [ebp - 0x230]
inc eax
push eax
push 0x10001e4c
call fcn.1001f9b2
call fcn.1002253f
cmp dword [ebp - 0x240], ebx
je 0x100248f3
push dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
push dword [ebp - 0x240]
push eax
call fcn.100200f3
add esp, 0xc
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10035943
leave
ret
Function at 0x10024906
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x10079ef8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
xor edi, edi
push eax
inc edi
call fcn.1002391d
pop ecx
pop ecx
test eax, eax
je 0x100249cb
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x10001c80
call fcn.1002a9e8
call fcn.10022940
test eax, eax
je 0x100249c9
call fcn.1002284b
test eax, eax
jne 0x100249c9
call fcn.10023f62
test eax, eax
jne 0x10024980
call fcn.100238da
test eax, eax
je 0x100249c9
push dword [0x1007fdf0]
call fcn.10025528
pop ecx
test eax, eax
jne 0x100249c9
call fcn.10023899
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.100246e1
push 0
lea ecx, [ebp - 0x20c]
push ecx
push edi
push eax
call fcn.10023c20
mov edi, eax
add esp, 0x18
lea eax, [ebp - 0x414]
test edi, edi
jne 0x100249ba
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x100249c9
push esi
push 0x1007fe1c
push eax
call fcn.100200f3
add esp, 0xc
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10035943
leave
ret
Function at 0x10026f4e
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x10079ef8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x41c], ecx
mov ecx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x424], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x414], ecx
test esi, esi
jne 0x10026f8e
xor eax, eax
jmp 0x100270fe
and dword [esi], 0
push ebx
push edi
mov edi, dword [ebp + 0x20]
xor ebx, ebx
inc ebx
push ebx
push edi
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
mov dword [ebp - 0x420], ebx
call fcn.1002920c
and dword [ebp - 0x410], 0
and dword [ebp - 0x418], 0
shr edi, 0x1a
not edi
mov dword [ebp - 0x408], eax
and edi, ebx
cmp dword [ebp - 0x408], 0
je 0x10026ff3
mov eax, dword [ebp + 0x20]
push dword [ebp - 0x408]
shr eax, 0x17
and eax, ebx
push eax
push 0x120001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [esi], eax
cmp dword [esi], 0
jne 0x1002708f
test edi, edi
je 0x1002708f
and dword [ebp - 0x40c], 0
push ebx
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0x20]
call fcn.100290ce
test eax, eax
je 0x10027075
mov eax, dword [ebp + 0x20]
push dword [ebp - 0x408]
shr eax, 0x19
and eax, ebx
push eax
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
push ebx
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0x20]
call fcn.10028e55
cmp dword [ebp - 0x40c], 5
jne 0x10027075
cmp dword [ebp - 0x418], 0
jne 0x10027075
mov dword [ebp - 0x418], ebx
jmp 0x10026fce
cmp dword [esi], 0
je 0x1002708f
xor eax, eax
cmp dword [ebp - 0x40c], 0xb7
setne al
mov dword [ebp - 0x410], eax
mov eax, dword [esi]
xor ecx, ecx
cmp eax, ecx
je 0x1002709c
cmp eax, 0xffffffff
jne 0x100270bb
cmp edi, ecx
je 0x100270ab
push ecx
push 0x787a6c65
call fcn.1001f84f
xor ecx, ecx
mov dword [esi], ecx
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x420], ecx
pop edi
pop ebx
cmp dword [ebp - 0x41c], ecx
je 0x100270e6
mov eax, dword [ebp - 0x408]
cmp eax, ecx
jne 0x100270d4
mov eax, 0x10001ef4
push dword [ebp + 0x14]
push dword [ebp - 0x41c]
push eax
call fcn.1001fa51
add esp, 0xc
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x100270f8
mov ecx, dword [ebp - 0x410]
mov dword [eax], ecx
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10035943
leave
ret 0x1c
Function at 0x100276e8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp edi, ebx
jne 0x1002770a
xor esi, esi
jmp 0x10027790
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x10027703
push esi
call fcn.1003623f
pop ecx
mov dword [ebp + 0xc], eax
cmp eax, ebx
jne 0x10027732
push ebx
push 0x33753468
jmp 0x1002777b
push eax
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x10027749
push ebx
push 0x33753469
jmp 0x1002777b
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x100017fc
push dword [ebp + 0xc]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10027775
cmp dword [ebp - 4], 0x34
jne 0x10027775
mov esi, dword [ebp - 8]
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
xor esi, esi
inc esi
jmp 0x10027782
push ebx
push 0x3375346a
call fcn.1001f84f
xor esi, esi
cmp dword [ebp + 0xc], ebx
je 0x10027790
push dword [ebp + 0xc]
call fcn.1003624a
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x10027e14
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
lea eax, [ebp - 0x30]
push eax
call fcn.10026c10
test eax, eax
jne 0x10027e31
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x30]
push edi
push eax
push 0x11
call fcn.100226e5
push dword [ebp - 0x1c]
push 0x12
call fcn.100226e5
push 0x1000c658
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor edi, edi
cmp eax, edi
je 0x10027f32
push esi
push 0x1000c638
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, edi
je 0x10027f31
lea eax, [ebp - 4]
push eax
push edi
mov dword [ebp - 4], edi
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10027f31
push dword [ebp - 4]
call fcn.1001f02c
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x10027f29
lea ecx, [ebp - 4]
push ecx
push eax
call esi
test eax, eax
je 0x10027f29
mov eax, dword [ebp - 4]
push 0x18
xor edx, edx
pop ecx
div ecx
xor esi, esi
mov dword [ebp - 8], edi
cmp eax, edi
jbe 0x10027f29
mov edx, dword [ebp - 0xc]
push ebx
mov ebx, eax
mov eax, dword [edx + 4]
sub eax, 0
je 0x10027ee0
dec eax
dec eax
jne 0x10027ef1
push dword [edx]
call fcn.10027361
pop ecx
cmp edi, eax
ja 0x10027ef1
mov edi, eax
jmp 0x10027ef1
push dword [edx]
inc dword [ebp - 8]
call fcn.10027361
pop ecx
cmp esi, eax
ja 0x10027ef1
mov esi, eax
add edx, 0x18
dec ebx
jne 0x10027ec4
pop ebx
test esi, esi
je 0x10027f07
push esi
push 0x19e1
call fcn.100226e5
test edi, edi
je 0x10027f16
push edi
push 0x19e2
call fcn.100226e5
cmp dword [ebp - 8], 0
je 0x10027f29
push dword [ebp - 8]
push 0x19e0
call fcn.100226e5
push dword [ebp - 0xc]
call fcn.1001f060
pop esi
call fcn.100216fe
pop edi
test eax, eax
jne 0x10027f45
push dword [ebp - 0x1c]
call fcn.10027d01
pop ecx
leave
ret
Function at 0x10027f47
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x10079ef8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 6
pop ecx
mov esi, 0x1000c6c0
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
xor ebx, ebx
push 0x118
lea eax, [ebp - 0x138]
push ebx
push eax
mov dword [ebp - 0x140], ebx
movsw word es:[edi], word [esi]
mov dword [ebp - 0x13c], ebx
call fcn.10035951
add esp, 0xc
lea eax, [ebp - 0x144]
push eax
push 1
push ebx
push 0x1000c694
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10028000
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x150]
push eax
push ebx
push 0x1000c684
push dword [ebp - 0x144]
mov dword [ebp - 0x14c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10027ff2
push dword [ebp - 0x148]
push 0x22df
call fcn.100226e5
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1002800b
push ebx
push 0x66397234
call fcn.1001f84f
lea eax, [ebp - 0x13c]
push eax
mov dword [ebp - 0x13c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10028095
push dword [ebp - 0x130]
push 0x1a
call fcn.100226e5
movzx eax, word [ebp - 0x28]
movzx ecx, word [ebp - 0x26]
shl eax, 0x10
or eax, ecx
push eax
push 0x43
call fcn.100226e5
movzx eax, word [ebp - 0x24]
push eax
push 0x3a5
call fcn.100226e5
push dword [ebp - 0x138]
push 0x22e1
call fcn.100226e5
push dword [ebp - 0x134]
push 0x22e2
call fcn.100226e5
movzx eax, word [ebp - 0x28]
push eax
push 0x22e4
call fcn.100226e5
movzx eax, word [ebp - 0x26]
push eax
push 0x22e5
call fcn.100226e5
call fcn.1002dc9d
test eax, eax
je 0x10028128
lea eax, [ebp - 0x20]
push eax
call fcn.10027c79
mov esi, eax
cmp esi, ebx
jne 0x100280b9
push ebx
push 0x38317137
jmp 0x10028106
push 0x1000c674
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x100280d1
push ebx
push 0x38317138
jmp 0x10028106
lea ecx, [ebp - 0x140]
push ecx
movzx ecx, word [ebp - 0x26]
push ecx
movzx ecx, word [ebp - 0x28]
push ecx
push dword [ebp - 0x134]
push dword [ebp - 0x138]
call eax
test eax, eax
jne 0x1002810d
push 0xffffffffffffffff
push 0x1af7
call fcn.100226e5
push ebx
push 0x38317139
call fcn.1001f84f
jmp 0x1002811d
push dword [ebp - 0x140]
push 0x1af7
call fcn.100226e5
cmp esi, ebx
je 0x10028128
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10035943
leave
ret
Function at 0x10028390
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
xor ebx, ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x10028400
push esi
lea eax, [ebp - 4]
push eax
call fcn.1001f191
test eax, eax
je 0x10028400
push dword [ebp - 4]
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x100283f8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x100017fc
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100283f8
cmp dword [ebp - 8], ebx
je 0x100283f8
mov esi, dword [ebp - 0xc]
push edi
mov edi, dword [ebp + 0xc]
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
mov bl, 1
pop edi
push dword [ebp - 4]
call fcn.1001f298
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x1002dcaa
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x10079ef8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1002dd7d
cmp dword [ebp - 0x90], 2
mov ecx, dword [ebp - 0x98]
mov al, byte [ebp - 6]
push esi
mov dword [0x10080578], ecx
mov byte [0x1008057e], al
jne 0x1002dd69
mov eax, dword [ebp - 0x9c]
mov dx, word [ebp - 0xc]
mov dword [0x10080574], eax
mov word [0x1008057c], dx
cmp eax, 5
jne 0x1002dd4b
mov esi, 0x10001ef4
cmp ecx, 1
jae 0x1002dd2d
push 0
push esi
push 0x3535796e
push esi
call fcn.10026b0d
cmp dword [ebp - 0x98], 1
jne 0x1002dd4b
cmp word [ebp - 0xc], 1
ja 0x1002dd4b
push 0
push esi
push 0x3535796f
push esi
call fcn.10026b0d
movzx eax, word [ebp - 8]
mov ecx, eax
and ecx, 0x110
and eax, 0x100
mov dword [0x10080584], ecx
mov dword [0x10080588], eax
jmp 0x1002dd7c
push 0
mov esi, 0x10001ef4
push esi
push 0x31343461
push esi
call fcn.10026b0d
pop esi
push 0x56
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
neg eax
xor ecx, ebp
mov dword [0x10080580], eax
call fcn.10035943
leave
ret

Function at 0x1002de77
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1002de91
test al, 0x10
je 0x1002de91
xor eax, eax
inc eax
jmp 0x1002de93
xor eax, eax
pop ebp
ret 4

Function at 0x1002df4f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x10019be0
push 0x80000002
xor edi, edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002dfc5
push esi
push esi
lea eax, [ebp - 8]
push eax
push esi
push 0x10019bc4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002dfbc
cmp dword [ebp - 8], 1
jne 0x1002dfbc
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x100020f0
call esi
test eax, eax
jne 0x1002dfb9
push 0x100020dc
call esi
test eax, eax
je 0x1002dfbc
xor edi, edi
inc edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x1002dfcb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x10079ef8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 0x224], esi
call fcn.1002dda8
test eax, eax
je 0x1002e0e6
push ebx
push edi
lea eax, [ebp - 0x218]
push eax
push 0x20019
push esi
mov ebx, 0x10019c60
push ebx
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, 0x80000002
push edi
call esi
test eax, eax
jne 0x1002e0e4
lea eax, [ebp - 0x214]
push eax
push 0x20119
push 0
push ebx
push edi
call esi
test eax, eax
jne 0x1002e0d8
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
mov edi, 0x10019c4c
push edi
push dword [ebp - 0x218]
mov ebx, 0x20a
mov dword [ebp - 0x220], ebx
call esi
test eax, eax
jne 0x1002e0cc
cmp dword [ebp - 0x21c], 1
jne 0x1002e0cc
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push edi
push dword [ebp - 0x214]
mov dword [ebp - 0x220], ebx
call esi
test eax, eax
jne 0x1002e0cc
xor esi, esi
inc esi
cmp dword [ebp - 0x21c], esi
jne 0x1002e0cc
call fcn.1002df4f
test eax, eax
jne 0x1002e0cc
mov dword [ebp - 0x224], esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x224]
xor ecx, ebp
pop esi
call fcn.10035943
leave
ret

Function at 0x1002eec4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x10045e98
call fcn.10035fb1
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
movzx edx, word [eax]
mov ecx, 0x5a4d
cmp dx, cx
jne 0x1002ef02
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov esi, 0xe0
cmp word [ecx + 0x14], si
jne 0x1002ef02
add esi, 0x2b
cmp word [ecx + 0x18], si
jne 0x1002ef02
mov eax, dword [ecx + 0x50]
jmp 0x1002ef23
mov ecx, 0x4550
cmp dx, cx
jne 0x1002ef2f
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x1002ef2f
add ecx, 0x2b
cmp word [eax + 0x18], cx
jne 0x1002ef2f
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x1c], eax
jmp 0x1002ef33
and dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
call fcn.10035ff6
ret 4