joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101431e
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4d4
mov eax, dword [0x10360ac]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x4c8]
push ecx
lea ecx, [ebp - 0x4b4]
push ecx
push ebx
lea ecx, [ebp - 0x4c4]
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x25c]
push ecx
mov dword [ebp - 0x4d0], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x4bc], eax
mov dword [ebp - 0x4c0], ebx
mov esi, 0x12c
push eax
jmp 0x1014467
cmp edi, ebx
jne 0x1014497
lea eax, [ebp - 0x4d4]
push eax
lea eax, [ebp - 0x4b8]
push eax
push ebx
push 0xf003f
push ebx
lea eax, [ebp - 0x4b4]
push eax
push ebx
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x4d0]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, ebx
jne 0x1014497
push dword [ebp - 0x4b8]
mov ecx, dword [ebp - 0x4bc]
lea edx, [ebp - 0x25c]
call fcn.01013fc2
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x101448b
lea eax, [ebp - 0x4cc]
push eax
push 0xf003f
push ebx
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x4bc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, ebx
jne 0x101448b
push dword [ebp - 0x4cc]
push dword [ebp - 0x4b8]
call fcn.0101431e
pop ecx
pop ecx
push dword [ebp - 0x4cc]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x4b8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
jne 0x1014497
inc dword [ebp - 0x4c0]
push ebx
lea eax, [ebp - 0x4c8]
push eax
lea eax, [ebp - 0x4b4]
push eax
push ebx
lea eax, [ebp - 0x4c4]
push eax
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x4c0]
push dword [ebp - 0x4bc]
mov dword [ebp - 0x4c8], esi
mov dword [ebp - 0x4c4], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
cmp edi, 0x103
jne 0x1014378
xor edi, edi
jmp 0x1014497
push dword [ebp - 0x4b8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.0102699e
leave
ret
Function at 0x10144ab
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [0x10360ac]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x344], eax
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x338], eax
mov dword [ebp - 0x334], edi
mov dword [ebp - 0x330], edi
mov dword [ebp - 0x32c], edi
mov dword [ebp - 0x328], edi
mov dword [ebp - 0x33c], edi
mov eax, 0x1004a30
jne 0x1014502
mov eax, 0x1004a90
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x334]
push ecx
push edi
mov esi, 0xf003f
push esi
push eax
push 0x80000002
call ebx
test eax, eax
jne 0x101467b
lea eax, [ebp - 0x330]
push eax
push edi
push esi
push dword [ebp - 0x338]
push dword [ebp - 0x334]
call ebx
test eax, eax
jne 0x101467b
cmp dword [ebp + 0x10], edi
mov eax, 0x1004a90
jne 0x1014554
mov eax, 0x1004a30
lea ecx, [ebp - 0x340]
push ecx
lea ecx, [ebp - 0x32c]
push ecx
push edi
push esi
push edi
push edi
push edi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x101467b
lea eax, [ebp - 0x328]
push eax
push edi
push esi
push dword [ebp - 0x338]
push dword [ebp - 0x32c]
call ebx
test eax, eax
jne 0x1014607
push dword [ebp - 0x328]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
lea eax, [ebp - 0xcc]
push eax
push 0x64
push edi
mov dword [ebp - 0x328], edi
call ebx
push 0x12c
lea eax, [ebp - 0x324]
push eax
push 0x898
push edi
call ebx
push 4
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x324]
push eax
push dword [ebp - 0x344]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x101467b
push dword [ebp - 0x338]
push dword [ebp - 0x32c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x328]
push eax
push edi
push esi
push edi
push edi
push edi
push dword [ebp - 0x338]
push dword [ebp - 0x32c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x101467b
push dword [ebp - 0x328]
mov ecx, dword [ebp - 0x330]
xor edx, edx
call fcn.01013fc2
test eax, eax
pop ecx
jne 0x101467b
push dword [ebp - 0x330]
push dword [ebp - 0x328]
call fcn.0101431e
test eax, eax
pop ecx
pop ecx
jne 0x101467b
push dword [ebp - 0x338]
push dword [ebp - 0x334]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x33c], 1
cmp dword [ebp - 0x334], edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x1014691
push dword [ebp - 0x334]
call esi
cmp dword [ebp - 0x330], edi
je 0x10146a1
push dword [ebp - 0x330]
call esi
cmp dword [ebp - 0x32c], edi
je 0x10146b1
push dword [ebp - 0x32c]
call esi
cmp dword [ebp - 0x328], edi
je 0x10146c1
push dword [ebp - 0x328]
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x33c]
pop edi
pop esi
pop ebx
call fcn.0102699e
leave
ret
Function at 0x101514b
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 0x14]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10151d5
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
push dword [ebp - 4]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10151ae
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 8]
jbe 0x10151cc
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret

Function at 0x10151dd
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push 0xf003f
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101524e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
push dword [ebp - 4]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1015245
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 8]
jb 0x1015245
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret
Function at 0x10152f2
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x1004c98
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1015446
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
push 4
pop edi
lea eax, [ebp - 4]
push eax
push 0x1037208
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x1004c80
push dword [ebp - 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edi
call esi
lea eax, [ebp - 4]
push eax
push 0x103720c
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x1004c68
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
lea eax, [ebp - 4]
push eax
push 0x103721c
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x1004c44
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
lea eax, [ebp - 4]
push eax
push 0x1037210
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x1004c1c
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
lea eax, [ebp - 4]
push eax
push 0x1037218
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x1004bf8
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
lea eax, [ebp - 4]
push eax
push 0x1037214
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x1004bcc
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
lea eax, [ebp - 4]
push eax
push 0x103609c
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x1004b9c
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], edi
push 0x10360a4
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x1004b68
push dword [ebp - 8]
call esi
lea eax, [ebp - 4]
push eax
push 0x10360a0
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x1004b3c
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
lea eax, [ebp - 4]
push eax
push 0x1036098
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x1004b0c
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x101572f
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push 0x1004c98
push 0x80000001
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1015782
mov eax, dword [edi + 0x10]
lea eax, [eax + eax + 2]
push eax
push dword [edi + 0xc]
push 1
push esi
push 0x1004cf0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret
Function at 0x1015ba4
Capabilities:
Check os version

Disassembly:
mov eax, 0x103389d
call fcn.01027604
sub esp, 0x248
mov eax, dword [0x10360ac]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x254]
push eax
mov dword [ebp - 0x254], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x244], 2
jne 0x1015c82
cmp dword [ebp - 0x250], 4
jne 0x1015c79
push esi
lea ecx, [ebp - 0xa8]
call fcn.0100ca41
and dword [ebp - 4], 0
lea ecx, [ebp - 0x140]
call fcn.0100ca41
mov esi, 0x104
push esi
lea eax, [ebp - 0xa8]
push eax
push 0x64
push 0
mov byte [ebp - 4], 1
call fcn.0101f429
push esi
lea eax, [ebp - 0x140]
push eax
push 0x6d
push 0
call fcn.0101f429
add esp, 0x20
push 0x10
push dword [ebp - 0x9c]
push dword [ebp - 0x134]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, 0x1001c4c
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x140], esi
call fcn.0100b71f
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xa8], esi
call fcn.0100b71f
xor eax, eax
inc eax
pop esi
jmp 0x1015c92
cmp dword [ebp - 0x250], 5
jmp 0x1015c89
cmp dword [ebp - 0x250], 4
jae 0x1015c90
xor eax, eax
inc eax
jmp 0x1015c92
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0102699e
leave
ret

Function at 0x1016ee5
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
push 0
push 0x105
mov esi, ecx
call fcn.0100b618
test eax, eax
jge 0x1016f03
mov ecx, dword [esi + 0xc]
and word [ecx], 0
jmp 0x1016f1f
push dword [esi + 8]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x1016f25
mov eax, dword [esi + 0xc]
and word [eax], 0
mov eax, 0x80004005
and dword [esi + 0x10], 0
pop esi
ret
mov ecx, esi
call fcn.0100ca60
xor eax, eax
pop esi
ret
Function at 0x10195c9
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x1033aa9
call fcn.01027604
sub esp, 0xcc
mov eax, dword [0x10360ac]
push ebx
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov esi, ecx
push edi
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xd8], esi
call fcn.0100ca41
mov eax, dword [esi + 4]
xor ecx, ecx
cmp eax, dword [esi + 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xb0], eax
je 0x10197ec
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, 0x104c
mov esi, dword [eax]
cmp dword [esi + 0x4cc], ecx
jne 0x1019638
cmp dword [esi + 0x4dc], ecx
je 0x10197d4
cmp dword [esi + 0x4d8], ecx
jne 0x10197d4
push ecx
push ecx
push 0x1004
push dword [ebp - 0xac]
mov dword [ebp - 0xd4], 0xd
call edi
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xc4], 0xffff
mov dword [ebp - 0xbc], 0x64
mov dword [ebp - 0xb4], esi
mov eax, dword [esi + 0x4dc]
neg eax
sbb eax, eax
and dword [ebp - 0xcc], 0
and eax, 0x1000
mov dword [ebp - 0xc8], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xd4]
push eax
push 0
push 0x104d
push dword [ebp - 0xac]
call edi
cmp eax, 0xffffffff
je 0x101981c
xor eax, eax
inc eax
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xcc], eax
mov eax, dword [esi + 0x13c]
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xd4]
push eax
push 0
push ebx
push dword [ebp - 0xac]
call edi
test eax, eax
je 0x101981c
mov dword [ebp - 0xcc], 2
mov eax, dword [esi + 0x43c]
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xd4]
push eax
push 0
push ebx
push dword [ebp - 0xac]
call edi
test eax, eax
je 0x101981c
mov dword [ebp - 0xcc], 3
mov eax, dword [esi + 0x26c]
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xd4]
push eax
push 0
push ebx
push dword [ebp - 0xac]
call edi
test eax, eax
je 0x101981c
mov dword [ebp - 0xcc], 4
mov eax, dword [esi + 0x3a4]
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xd4]
push eax
push 0
push ebx
push dword [ebp - 0xac]
call edi
test eax, eax
je 0x101981c
mov dword [ebp - 0xcc], 5
push dword [esi + 0x4c8]
lea eax, [ebp - 0xa8]
push 0x1004d3c
push eax
call fcn.01016e85
mov eax, dword [ebp - 0x9c]
add esp, 0xc
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xd4]
push eax
push 0
push ebx
push dword [ebp - 0xac]
call edi
test eax, eax
je 0x101981c
mov eax, dword [ebp - 0xb0]
xor ecx, ecx
mov edx, dword [ebp - 0xd8]
add eax, 4
cmp eax, dword [edx + 8]
mov dword [ebp - 0xb0], eax
jne 0x1019622
xor esi, esi
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xa8], 0x1001c4c
call fcn.0100b71f
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0102699e
leave
ret
mov esi, 0x80004005
jmp 0x10197ee
Function at 0x101a908
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x10360ac]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x18]
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0xa4], eax
call fcn.0100ca41
push 0
push ebx
lea ecx, [ebp - 0x9c]
call fcn.01016f35
push dword [ebp - 0xa4]
push dword [esi + 0xc]
push dword [ebp - 0xa0]
push 0
push dword [ebp - 0x90]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x9c]
mov esi, eax
mov dword [ebp - 0x9c], 0x1001c4c
call fcn.0100b71f
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.0102699e
leave
ret 0x14
Function at 0x101c701
Capabilities:
Persist via run registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea ecx, [ebp - 8]
push ecx
xor eax, eax
mov ebx, 0x20019
push ebx
push eax
push 0x1004c98
mov edi, 0x80000001
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
call esi
test eax, eax
jne 0x101c765
mov ecx, dword [ebp + 8]
push 0x104
push 0x1004cf0
push dword [ebp - 8]
call fcn.0101bf69
test eax, eax
jl 0x101c756
mov dword [ebp - 4], 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
jne 0x101c7a1
lea eax, [ebp - 0xc]
push eax
push ebx
push 0
push 0x1005268
push edi
call esi
test eax, eax
jne 0x101c7a1
mov ecx, dword [ebp + 8]
push 0x104
push 0x1005254
push dword [ebp - 0xc]
call fcn.0101bf69
test eax, eax
jl 0x101c798
mov dword [ebp - 4], 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101f24e
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10360ac]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
cmp dword [ebp - 0x108], 2
jne 0x101f295
cmp dword [ebp - 0x114], 5
jne 0x101f295
cmp dword [ebp - 0x110], eax
jne 0x101f295
inc eax
mov ecx, dword [ebp - 4]
call fcn.0102699e
leave
ret

Function at 0x101f34e
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10360ac]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
inc eax
cmp dword [ebp - 0x108], eax
jne 0x101f395
cmp dword [ebp - 0x114], 4
jne 0x101f395
cmp dword [ebp - 0x110], 0xa
je 0x101f397
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.0102699e
leave
ret

Function at 0x101f3a6
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10360ac]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
inc eax
cmp dword [ebp - 0x108], eax
jne 0x101f3ed
cmp dword [ebp - 0x114], 4
jne 0x101f3ed
cmp dword [ebp - 0x110], 0xa
jb 0x101f3ef
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.0102699e
leave
ret
Function at 0x1026b1d
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x1009780
call fcn.01028d7c
mov edi, 0x94
mov eax, edi
call fcn.01028ee0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x1037238], ecx
mov eax, dword [esi + 4]
mov dword [0x1037244], eax
mov edx, dword [esi + 8]
mov dword [0x1037248], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x103723c], esi
cmp ecx, 2
je 0x1026b7d
or esi, 0x8000
mov dword [0x103723c], esi
shl eax, 8
add eax, edx
mov dword [0x1037240], eax
cmp word [0x1000000], 0x5a4d
jne 0x1026bba
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x1026bba
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x1026bd3
cmp ecx, 0x20b
je 0x1026bc0
and dword [ebp - 0x1c], 0
jmp 0x1026bea
cmp dword [eax + 0x1000084], 0xe
jbe 0x1026bba
xor ecx, ecx
cmp dword [eax + 0x10000f8], ecx
jmp 0x1026be4
cmp dword [eax + 0x1000074], 0xe
jbe 0x1026bba
xor ecx, ecx
cmp dword [eax + 0x10000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 1
call fcn.01028d1f
pop ecx
test eax, eax
jne 0x1026bfe
push 0x1c
call fcn.01026aef
pop ecx
call fcn.01028c91
test eax, eax
jne 0x1026c0f
push 0x10
call fcn.01026aef
pop ecx
and dword [ebp - 4], 0
call fcn.01028864
test eax, eax
jge 0x1026c24
push 0x1b
call fcn.01026ac0
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1038a90], eax
call fcn.01028737
mov dword [0x1037220], eax
call fcn.0102868e
test eax, eax
jge 0x1026c4a
push 8
call fcn.01026ac0
pop ecx
call fcn.01028434
test eax, eax
jge 0x1026c5b
push 9
call fcn.01026ac0
pop ecx
call fcn.01027ed8
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1026c6e
push eax
call fcn.01026ac0
pop ecx
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.010283c6
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x1026c90
movzx eax, word [ebp - 0x40]
jmp 0x1026c93
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x1000000
call fcn.0101e3f5
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x1026cb4
push esi
call fcn.01027fc9
call fcn.01028001
jmp 0x1026ce6
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x7c]
call fcn.01028db7
ret
Function at 0x1027a45
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x1027a64
call fcn.0102d665
mov dword [eax], 0x16
xor eax, eax
jmp 0x1027ace
push esi
push 0x88
push 1
call fcn.0102d6fe
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1027ab9
push esi
call fcn.01028a8a
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x1027a97
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x10279ab
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x1027acd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.01027037
test ebx, ebx
pop ecx
je 0x1027acb
push ebx
call fcn.0102d681
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1028030
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x10360ac]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x10360e0]
je 0x102805a
inc eax
cmp eax, 0x12
jb 0x102804b
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10360e0]
mov dword [ebp - 0x110], esi
jne 0x1028205
mov eax, dword [0x1037228]
cmp eax, 1
je 0x10281d3
test eax, eax
jne 0x1028090
cmp dword [0x10360b4], 1
je 0x10281d3
cmp ecx, 0xfc
je 0x1028205
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10280cb
push 5
pop ecx
mov esi, 0x1009b74
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebx, [ebp - 0x10c]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10280d6
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x102810e
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10280ee
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x1009b70
push ebx
call fcn.0102e130
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1028113
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0x10360e4]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x102812d
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.01028ee0
mov edx, esp
push 6
pop ecx
mov esi, 0x1009b54
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1028159
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1028165
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x102817e
mov eax, dword [ebp - 0x110]
mov esi, 0x1009b50
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x10360e4]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x102819c
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10281a8
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1009b28
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0102e027
add esp, 0xc
jmp 0x1028205
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x1028205
mov esi, dword [esi + 0x10360e4]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x10281ea
push 0
sub ecx, edx
lea edx, [ebp - 0x114]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x120]
mov ecx, dword [ebp - 4]
call fcn.0102699e
pop edi
pop esi
pop ebx
leave
ret