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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x101f5b1
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x101f5b8
cmp ebx, dword [ebp + 8]
jae 0x101f5b8
xor eax, eax
jmp 0x101f7a8
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x101f5c9
xor eax, eax
inc eax
jmp 0x101f7a7
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x101f5df
cmp ecx, edx
jae 0x101f724
cmp dword [eax + 4], 0
je 0x101f5e8
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x101f5d0
cmp dword [ebp + 8], 0
je 0x101f60a
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x101f724
cmp eax, esi
jae 0x101f724
mov eax, dword [0x10658e0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x101f62f
cmp dword [esi*4 + 0x10658e8], edi
je 0x101f728
inc esi
cmp esi, eax
jl 0x101f61d
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x101f7a4
cmp dword [ebp - 8], 0x1000000
jne 0x101f7a4
test byte [ebp - 0xc], 0xcc
je 0x101f6ad
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x101f7a4
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x101f7a4
cmp word [eax + 0x18], 0x10b
jne 0x101f7a4
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x101f7a4
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x101f6ad
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x101f6ad
test byte [ecx + 0x27], 0x80
jne 0x101f724
push 1
push 0x1065928
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x101f5c1
mov ecx, dword [0x10658e0]
test ecx, ecx
mov edx, ecx
jle 0x101f6e1
lea eax, [ecx*4 + 0x10658e4]
cmp dword [eax], edi
je 0x101f6e1
dec edx
sub eax, 4
test edx, edx
jg 0x101f6d5
test edx, edx
jne 0x101f712
push 0xf
pop ebx
cmp ecx, ebx
jg 0x101f6ee
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x101f706
lea eax, [edx*4 + 0x10658e8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x101f6f4
cmp ecx, 0x10
jge 0x101f712
inc ecx
mov dword [0x10658e0], ecx
push 0
push 0x1065928
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x101f5c1
xor eax, eax
jmp 0x101f7a7
test esi, esi
jle 0x101f5c1
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x1065928
call ebx
test eax, eax
jne 0x101f5c1
cmp dword [esi*4 + 0x10658e8], edi
je 0x101f77e
mov eax, dword [0x10658e0]
lea esi, [eax - 1]
test esi, esi
jl 0x101f76c
cmp dword [esi*4 + 0x10658e8], edi
je 0x101f768
dec esi
jns 0x101f75c
test esi, esi
jge 0x101f77c
cmp eax, 0x10
jge 0x101f777
inc eax
mov dword [0x10658e0], eax
lea esi, [eax - 1]
jmp 0x101f77e
je 0x101f796
xor ecx, ecx
test esi, esi
jl 0x101f796
lea eax, [ecx*4 + 0x10658e8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x101f784
push 0
push 0x1065928
call ebx
jmp 0x101f5c1
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1022271
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push 4
pop eax
call fcn.01022380
mov dword [ebp - 8], esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x102236d
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x4c]
xor esi, esi
cmp dword [0x1065360], 2
jne 0x10222f2
push 0x10062d0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
je 0x10222f2
push 0x10062b8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x10222f2
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], esi
call eax
cmp eax, 1
pop ecx
jne 0x10222f2
cmp dword [ebp - 4], esi
jbe 0x10222f2
mov esi, dword [ebp - 4]
mov edx, dword [0x1065360]
mov ebx, edx
dec ebx
neg ebx
sbb ebx, ebx
and ebx, 0x103
lea ecx, [edi - 1]
lea eax, [esi + edi - 1]
not ecx
inc ebx
and eax, ecx
mov dword [ebp - 4], eax
je 0x102231b
add eax, edi
mov dword [ebp - 4], eax
lea ecx, [edi + edi]
cmp eax, ecx
jae 0x1022327
mov dword [ebp - 4], ecx
mov eax, ecx
lea esi, [edi - 1]
not esi
and esi, dword [ebp - 8]
sub esi, eax
cmp edx, 1
jne 0x1022339
push 0x11
pop edi
mov ecx, dword [ebp - 0xc]
add edi, ecx
cmp esi, edi
jb 0x102236d
push 4
push 0x1000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x102236d
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x102236d
xor eax, eax
inc eax
jmp 0x102236f
xor eax, eax
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1022bbb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x106597c], ebx
push esi
push edi
jne 0x1022c3d
push 0x1006344
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1022c78
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1006338
push edi
call esi
test eax, eax
mov dword [0x106597c], eax
je 0x1022c78
push 0x1006328
push edi
call esi
push 0x1006314
push edi
mov dword [0x1065980], eax
call esi
cmp dword [0x1065360], 2
mov dword [0x1065984], eax
jne 0x1022c3d
push 0x10062f8
push edi
call esi
test eax, eax
mov dword [0x106598c], eax
je 0x1022c3d
push 0x10062e0
push edi
call esi
mov dword [0x1065988], eax
mov eax, dword [0x1065988]
test eax, eax
je 0x1022c82
call eax
test eax, eax
je 0x1022c69
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x106598c]
test eax, eax
je 0x1022c69
test byte [ebp - 8], 1
jne 0x1022c82
cmp dword [0x106536c], 4
jb 0x1022c7c
or byte [ebp + 0x12], 0x20
jmp 0x1022ca1
xor eax, eax
jmp 0x1022cb1
or byte [ebp + 0x12], 4
jmp 0x1022ca1
mov eax, dword [0x1065980]
test eax, eax
je 0x1022ca1
call eax
mov ebx, eax
test ebx, ebx
je 0x1022ca1
mov eax, dword [0x1065984]
test eax, eax
je 0x1022ca1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x106597c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10232e7
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x1066fa8]
mov eax, dword [0x106406c]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], edi
jae 0x10234cd
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x1066fc0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x424], ebx
je 0x10234cd
and dword [ebp - 0x414], 0
and dword [ebp - 0x420], 0
cmp dword [ebp + 0x10], 0
jne 0x1023358
xor eax, eax
jmp 0x10234e1
test al, 0x20
je 0x102336b
push 2
push 0
push 0
push ecx
call fcn.0102406e
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x102342b
and dword [ebp - 0x40c], 0
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x410], edi
jbe 0x10234a7
mov ecx, dword [ebp - 0x410]
xor edi, edi
sub ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0x10233da
mov edx, dword [ebp - 0x410]
inc dword [ebp - 0x410]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x10233c8
inc dword [ebp - 0x420]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x424]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x10233a4
mov edi, eax
lea eax, [ebp - 0x408]
sub edi, eax
push 0
lea eax, [ebp - 0x418]
push eax
push edi
lea eax, [ebp - 0x408]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1023459
mov eax, dword [ebp - 0x418]
add dword [ebp - 0x414], eax
cmp eax, edi
jl 0x1023465
mov eax, dword [ebp - 0x410]
sub eax, dword [ebp - 0x41c]
cmp eax, dword [ebp + 0x10]
jb 0x1023390
jmp 0x1023465
push 0
lea ecx, [ebp - 0x418]
push ecx
push dword [ebp + 0x10]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1023459
mov eax, dword [ebp - 0x418]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x414], eax
jmp 0x1023465
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x414]
test eax, eax
jne 0x10234c5
cmp dword [ebp - 0x40c], eax
je 0x10234a1
push 5
pop eax
cmp dword [ebp - 0x40c], eax
jne 0x1023493
mov dword [0x1065354], 9
mov dword [0x1065358], eax
jmp 0x10234de
push dword [ebp - 0x40c]
call fcn.01023aba
pop ecx
jmp 0x10234de
mov edi, dword [ebp - 0x41c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x10234b9
cmp byte [edi], 0x1a
je 0x1023351
mov dword [0x1065354], 0x1c
jmp 0x10234d7
sub eax, dword [ebp - 0x420]
jmp 0x10234e1
mov dword [0x1065354], 9
and dword [0x1065358], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0101cfec
leave
ret
Function at 0x102450d
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x1066fa8]
jae 0x1024668
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x1066fc0]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x1024668
push 1
push esi
push ebx
call fcn.01023253
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x1024672
push 2
push esi
push ebx
call fcn.01023253
add esp, 0xc
cmp eax, 0xffffffff
je 0x1024672
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x1024615
push 0x1000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp + 8], eax
jne 0x10245ab
mov dword [0x1065354], 0xc
or esi, 0xffffffff
jmp 0x1024655
push 0x8000
push ebx
call fcn.01024703
pop ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, 0x1000
cmp edi, eax
jge 0x10245c6
mov eax, edi
push eax
push dword [ebp + 8]
push ebx
call fcn.010232e7
add esp, 0xc
cmp eax, 0xffffffff
je 0x10245e0
sub edi, eax
test edi, edi
jg 0x10245bb
jmp 0x10245f6
cmp dword [0x1065358], 5
jne 0x10245f3
mov dword [0x1065354], 0xd
or esi, 0xffffffff
push dword [ebp - 4]
push ebx
call fcn.01024703
pop ecx
pop ecx
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1024655
jge 0x1024655
push 0
push dword [ebp + 0xc]
push ebx
call fcn.01023253
push ebx
call fcn.01023cd4
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x1024655
mov dword [0x1065354], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1065358], eax
push 0
push dword [ebp - 8]
push ebx
call fcn.01023253
add esp, 0xc
mov eax, esi
pop edi
jmp 0x1024675
mov dword [0x1065354], 9
or eax, 0xffffffff
pop esi
pop ebx
leave
ret

Function at 0x1024a5e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x106406c]
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.010249be
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x1024aad
cmp dword [ebp - 0x1c], 5
jb 0x1024ac5
jmp 0x1024ac1
cmp dword [ebp - 0x10], 1
jne 0x1024ac5
cmp dword [ebp - 0x1c], 4
ja 0x1024ac1
jne 0x1024ac5
cmp dword [ebp - 0x18], 0
jbe 0x1024ac5
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1006934
call fcn.010103d5
test eax, eax
jge 0x1024ae6
mov byte [0x1064e00], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.0101cfec
add ebp, 0x78
leave
ret
Function at 0x10258e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
call fcn.010107dc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x1025902
xor al, al
jmp 0x102590b
mov eax, dword [ebp - 4]
and eax, 0x10
setne al
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
call fcn.010107dc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x1025942
xor al, al
jmp 0x102594e
mov eax, dword [ebp - 4]
and eax, 0x10
neg eax
sbb al, al
inc al
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
call fcn.010107dc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x1025986
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1025993
mov eax, dword [ebp - 4]
and eax, 0x10
neg eax
sbb eax, eax
and eax, 2
mov esp, ebp
pop ebp
ret 4
Function at 0x10262d0
Capabilities:
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x106406c]
mov dword [ebp - 8], eax
mov byte [ebp - 1], 1
push 0x80
mov ecx, dword [ebp + 8]
call fcn.010107dc
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp + 8]
call fcn.010107dc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1026375
lea eax, [ebp - 0x210]
push eax
push 0
push 0x1006b4c
mov ecx, dword [ebp + 8]
call fcn.010107dc
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x102635e
push 1
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp + 8]
call fcn.010107dc
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x102635e
push 4
push 0
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x1026371
push 4
push 0
mov ecx, dword [ebp + 8]
call fcn.010107dc
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 8]
call fcn.0101cfec
mov esp, ebp
pop ebp
ret 4

Function at 0x1026390
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x106406c]
mov dword [ebp - 0xc], eax
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x13], 0
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], 0
mov byte [ebp - 0x10], 0
mov byte [ebp - 0xf], 5
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1026409
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x10263ff
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
call fcn.0101cfec
mov esp, ebp
pop ebp
ret
Function at 0x10267d0
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x106406c]
mov dword [ebp - 4], eax
push 0x114
push 0
lea eax, [ebp - 0x120]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x120], 0x114
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x102682d
cmp dword [ebp - 0x11c], 5
jne 0x102682d
cmp dword [ebp - 0x118], 0
jne 0x102682d
mov eax, 1
jmp 0x102682f
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.0101cfec
mov esp, ebp
pop ebp
ret

Function at 0x1026840
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x106406c]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 6
push 0x114
push 0
lea eax, [ebp - 0x120]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x120], 0x114
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1026895
mov eax, 6
jmp 0x1026941
cmp dword [ebp - 0x110], 2
jne 0x102690a
cmp dword [ebp - 0x11c], 4
ja 0x10268b0
mov dword [ebp - 4], 1
jmp 0x1026908
cmp dword [ebp - 0x11c], 5
jne 0x10268ef
cmp dword [ebp - 0x118], 0
jne 0x10268cb
mov dword [ebp - 4], 2
jmp 0x10268ed
cmp dword [ebp - 0x118], 1
jne 0x10268dd
mov dword [ebp - 4], 3
jmp 0x10268ed
cmp dword [ebp - 0x118], 2
jne 0x10268ed
mov dword [ebp - 4], 4
jmp 0x1026908
cmp dword [ebp - 0x11c], 6
jne 0x1026908
cmp dword [ebp - 0x118], 0
jne 0x1026908
mov dword [ebp - 4], 5
jmp 0x102693e
cmp dword [ebp - 0x110], 1
jne 0x102693e
cmp dword [ebp - 0x11c], 4
jne 0x102693e
cmp dword [ebp - 0x118], 0
je 0x1026937
cmp dword [ebp - 0x118], 0xa
je 0x1026937
cmp dword [ebp - 0x118], 0x5a
jne 0x102693e
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.0101cfec
mov esp, ebp
pop ebp
ret
Function at 0x1027a00
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1057b98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jne 0x1027a2d
mov eax, 0x57
jmp 0x1027aec
mov dword [ebp - 0x14], 0x105
lea ecx, [ebp - 0x18]
call fcn.01010c62
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
call fcn.01011310
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x18]
call fcn.01010a68
cmp dword [ebp - 0x14], eax
jbe 0x1027a9a
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.01010a85
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
call fcn.01011310
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x14], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.01010a85
cmp dword [ebp - 0x14], 0
jne 0x1027ac7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.01010c92
mov eax, dword [ebp - 0x1c]
jmp 0x1027aec
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
call fcn.010115e7
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.01010c92
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x1027b80
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1027bcd
jmp 0x1027c7a
mov edx, dword [ebp - 0x10]
push edx
call fcn.0101dd0b
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1027be7
jmp 0x1027c7a
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x1027c00
jmp 0x1027c7a
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x1005824
mov edx, dword [ebp - 0xc]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x1027c1c
jmp 0x1027c7a
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0xc], 0
je 0x1027c7a
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x14]
and edx, 0xffff
movzx eax, dx
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x14]
shr edx, 0x10
movzx eax, dx
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x10]
and edx, 0xffff
movzx eax, dx
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x10]
shr edx, 0x10
movzx eax, dx
push eax
push 0x1006c8c
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.01011557
add esp, 0x18
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0xc], 0
je 0x1027c93
mov edx, dword [ebp - 0xc]
push edx
call fcn.0101d9dc
add esp, 4
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0x18], 0
jne 0x1027cb8
cmp dword [ebp + 0xc], 0
je 0x1027cb8
push 0
push 0
push 0
push 0
push 0x1006c8c
mov eax, dword [ebp + 0xc]
push eax
call fcn.01011557
add esp, 0x18
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 8

Function at 0x1027e60
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006ce0
push 0x101d384
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffe0
mov eax, dword [0x106406c]
mov dword [ebp - 0x24], eax
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 6
lea eax, [ebp - 0x30]
push eax
push 0x1006ca4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x1027eb0
cmp dword [ebp - 0x1c], 6
jbe 0x1027eb4
xor eax, eax
jmp 0x1027efa
movzx ecx, word [ebp - 0x30]
cmp ecx, 0x31
je 0x1027ec1
xor eax, eax
jmp 0x1027efa
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov edx, 0x2d4
movzx eax, byte [edx + 0x7ffe0000]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x1027ef7
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x24]
call fcn.0101cfec
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10287c0
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1057c70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x18]
call fcn.01010c62
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.01010a73
movzx eax, al
test eax, eax
je 0x1028827
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.01010c92
mov eax, dword [ebp - 0x1c]
jmp 0x10288ea
push 0x1006d78
lea ecx, [ebp - 0x20]
call fcn.0101236d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.01025680
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.01010c92
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
push 0
lea ecx, [ebp - 0x18]
call fcn.010107dc
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10288cb
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
push eax
push 0x2001f
push 0
push 0x1006d78
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10288c9
mov ecx, dword [ebp + 8]
call fcn.010107dc
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x10288bf
mov dword [ebp - 0x14], 1
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10288d2
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.01010c92
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x102ecf0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 8], 0
jne 0x102ed0a
mov dword [ebp - 8], 0x1004c58
jmp 0x102ed0e
xor eax, eax
jmp 0x102ed47
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0xc]
call fcn.01030230
test eax, eax
jne 0x102ed25
xor eax, eax
jmp 0x102ed47
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb eax, eax
inc eax
mov esp, ebp
pop ebp
ret 8