joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10049ed0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x20c
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push ebp
push edi
xor ebx, ebx
push 0x207
lea eax, [esp + 0x11]
push ebx
push eax
mov byte [esp + 0x18], bl
call fcn.10116880
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
add esp, 0xc
push ebx
push ebx
push str.Path
call ebp
mov edi, eax
cmp edi, ebx
je 0x1004a033
push esi
add edi, 0xa
push edi
call fcn.1004e860
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x1004a032
push edi
push esi
push str.Path
call ebp
test eax, eax
je 0x1004a029
cmp byte [esi], bl
je 0x1004a029
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10049f50
sub eax, edx
cmp eax, edi
jae 0x10049f6c
push 0x10152cc0
call fcn.1004d280
add esp, 4
jmp 0x10049f71
mov byte [edi + esi - 1], 0x3b
push 0x3b
push esi
call fcn.1011063b
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x1004a029
push 0x208
lea ecx, [esp + 0x14]
push esi
push ecx
mov byte [ebp], bl
call fcn.1010ffa3
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10049fa1
sub eax, edx
cmp eax, 0x208
jb 0x10049fb8
mov byte [esp + 0x217], bl
cmp byte [esp + 0x10], bl
je 0x10049fe9
lea edx, [esp + 0x10]
push ebx
push edx
call fcn.10044cc0
add esp, 8
test eax, eax
je 0x10049fe9
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
lea eax, [esp + 0x28]
push eax
push 0x1019e6b0
call fcn.1004d3b0
add esp, 0x20
add ebp, 1
je 0x1004a014
cmp byte [ebp], bl
je 0x1004a014
push edi
push ebp
push esi
call fcn.1010ffa3
mov eax, ebp
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1004a003
sub eax, edx
cmp edi, eax
ja 0x1004a014
mov byte [edi + esi - 1], bl
push 0x3b
push esi
call fcn.1011063b
mov ebp, eax
add esp, 8
cmp ebp, ebx
jne 0x10049f86
push esi
call fcn.1010dc10
add esp, 4
pop esi
mov ecx, dword [esp + 0x214]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.1010d699
add esp, 0x20c
ret
Function at 0x1004b160
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x330
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x328], eax
push ebx
push ebp
push esi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x25]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x2c], bl
call fcn.10116880
add esp, 0xc
push 0x207
lea ecx, [esp + 0x12d]
push ebx
push ecx
mov byte [esp + 0x134], bl
call fcn.10116880
add esp, 0xc
cmp esi, ebx
je 0x1004b29e
cmp byte [esi], bl
je 0x1004b29e
push esi
xor eax, eax
lea edx, [esp + 0x24]
push str.SYSTEMCurrentControlSetServices_s
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.1010d6a8
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 1
push ebx
lea ecx, [esp + 0x2c]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp ebp, ebx
jne 0x1004b29e
call fcn.1003a590
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push str.DeleteFlag
push edx
mov dword [esp + 0x28], 8
call ebp
cmp byte [esp + 0x18], 1
je 0x1004b327
push 0x208
lea eax, [esp + 0x12c]
push ebx
push eax
mov dword [esp + 0x1c], 0x208
call fcn.10116880
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x12c]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push str.ImagePath
push ecx
call ebp
test eax, eax
je 0x1004b2b8
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.10048db0
cmp eax, 1
je 0x1004b29e
mov ebx, esi
call fcn.10049dc0
xor eax, eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x328]
xor ecx, esp
call fcn.1010d699
add esp, 0x330
ret
cmp edi, ebx
je 0x1004b322
lea ecx, [esp + 0x128]
call fcn.1004aa40
lea eax, [esp + 0x128]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov al, byte [edi]
cmp al, bl
je 0x1004b322
cmp al, 0x22
je 0x1004b322
push edi
call dword [sym.imp.USER32.dll_CharLowerA]
push str..exe
push edi
call fcn.1010ddc0
add esp, 8
cmp eax, ebx
jne 0x1004b30c
push str..com
push edi
call fcn.1010ddc0
add esp, 8
cmp eax, ebx
je 0x1004b311
mov byte [eax + 4], bl
jmp 0x1004b322
push 0x20
push edi
call fcn.1010d780
add esp, 8
cmp eax, ebx
je 0x1004b322
mov byte [eax], bl
mov ebx, 1
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x334]
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.1010d699
add esp, 0x330
ret
Function at 0x1004b3b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x530
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x528], eax
push ebx
push ebp
mov ebp, dword [esp + 0x53c]
push esi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x15]
push ebx
push eax
mov byte [esp + 0x1c], bl
call fcn.10116880
add esp, 0xc
push 0x207
lea ecx, [esp + 0x225]
push ebx
push ecx
mov byte [esp + 0x22c], bl
call fcn.10116880
add esp, 0xc
push 0x103
lea edx, [esp + 0x42d]
push ebx
push edx
mov byte [esp + 0x434], bl
call fcn.10116880
add esp, 0xc
push 0x103
lea eax, [esp + 0x11d]
push ebx
push eax
mov byte [esp + 0x124], bl
call fcn.10116880
add esp, 0xc
cmp ebp, ebx
je 0x1004b445
mov byte [ebp], bl
cmp edi, ebx
je 0x1004b5d3
cmp byte [edi], bl
je 0x1004b5d3
push ebx
push ebx
xor edx, edx
mov ecx, edi
call fcn.10044660
add esp, 8
test eax, eax
jne 0x1004b5d3
mov eax, edi
call fcn.10033960
test eax, eax
jne 0x1004b5d3
lea ecx, [esp + 0x118]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x1004b49a
mov byte [esp + 0x118], bl
jmp 0x1004b4a6
lea ecx, [esp + 0x118]
call fcn.10049c40
lea edx, [esp + 0x428]
push edx
mov ecx, edi
call fcn.10045a10
add esp, 4
lea eax, [esp + 0x428]
push 0x2e
push eax
call fcn.1010e930
mov ecx, eax
add esp, 8
cmp ecx, ebx
je 0x1004b4e7
inc ecx
cmp byte [ecx], bl
je 0x1004b4e7
mov eax, 0x10152cd4
call fcn.10031890
test eax, eax
je 0x1004b5d3
lea esi, [esp + 0x10]
call fcn.10045ef0
lea ecx, [esp + 0x11]
push ecx
mov edx, esi
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [esp + 0x118], bl
jne 0x1004b522
mov eax, esi
push eax
push edi
lea ecx, [esp + 0x228]
push str._s._s.mwt
push ecx
call fcn.1010d6a8
add esp, 0x10
jmp 0x1004b54c
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x42c]
push eax
lea ecx, [esp + 0x120]
push ecx
lea edx, [esp + 0x22c]
push str._s_s._s.mwt
push edx
call fcn.1010d6a8
add esp, 0x14
push ebx
lea eax, [esp + 0x224]
mov ebx, edi
call fcn.1004b670
add esp, 4
cmp eax, 1
jne 0x1004b5f0
cmp dword [esp + 0x544], 0
je 0x1004b57f
push 0
lea ecx, [esp + 0x224]
call fcn.100423c0
push 0
push 0
xor edx, edx
mov ecx, edi
call fcn.10044660
add esp, 8
test eax, eax
jne 0x1004b5d3
lea eax, [esp + 0x10]
push eax
push edi
lea ecx, [esp + 0x228]
push str._s._s.mwt
push ecx
call fcn.1010d6a8
push 0
lea eax, [esp + 0x234]
call fcn.1004b670
add esp, 0x14
cmp eax, 1
jne 0x1004b654
push 0
lea ecx, [esp + 0x224]
call fcn.100423c0
mov eax, 1
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x528]
xor ecx, esp
call fcn.1010d699
add esp, 0x530
ret
cmp byte [esp + 0x118], 0
je 0x1004b628
lea edx, [esp + 0x10]
push edx
push edi
lea eax, [esp + 0x228]
push str._s._s.mwt
push eax
call fcn.1010d6a8
push 0
lea eax, [esp + 0x234]
call fcn.1004b670
add esp, 0x14
cmp eax, 1
je 0x1004b5c5
test ebp, ebp
je 0x1004b63b
push 0x100
mov esi, ebp
call fcn.10049da0
add esp, 4
cmp dword [esp + 0x544], 0
je 0x1004b654
lea ecx, [esp + 0x220]
push ecx
mov ecx, edi
call fcn.100423c0
mov ecx, dword [esp + 0x534]
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.1010d699
add esp, 0x530
ret
Function at 0x1004b670
Capabilities:
Check if file exists
Move file

Disassembly:
push ecx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, eax
test edi, edi
je 0x1004b681
mov byte [edi], 0
test ebx, ebx
je 0x1004b79b
test esi, esi
je 0x1004b79b
cmp byte [ebx], 0
je 0x1004b79b
cmp byte [esi], 0
je 0x1004b79b
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileA]
push esi
push ebx
call ebp
cmp eax, 1
jne 0x1004b6bc
mov eax, 1
pop edi
pop esi
pop ebp
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1004b6e9
test edi, edi
je 0x1004b79b
mov esi, dword [esp + 0x14]
push 0x100
mov edi, eax
call fcn.10049ce0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret
cmp eax, 0xb7
jne 0x1004b705
mov eax, esi
call fcn.10033960
cmp eax, 1
jne 0x1004b705
push esi
push ebx
call ebp
cmp eax, 1
je 0x1004b6b2
xor ebp, ebp
push ebp
push ebp
xor edx, edx
mov ecx, esi
call fcn.10044660
add esp, 8
test eax, eax
jne 0x1004b721
lea ebp, [eax + 1]
call fcn.1006e140
push ebx
mov dword [esp + 0x10], 0x28
call sym.EncDec.dll_IsFileOnFixedDrive
test eax, eax
je 0x1004b73d
push esi
call sym.EncDec.dll_IsFileOnFixedDrive
test eax, eax
jne 0x1004b745
mov dword [esp + 0xc], 1
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1004b750
push 0x28
call edi
test ebp, ebp
je 0x1004b763
mov eax, esi
call fcn.10033960
push 0xa
call edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
cmp eax, 1
je 0x1004b6b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1004b7a2
sub dword [esp + 0xc], 1
jne 0x1004b750
mov esi, dword [esp + 0x14]
test esi, esi
je 0x1004b79b
push 0x100
call fcn.10049da0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret
mov esi, dword [esp + 0x14]
test esi, esi
je 0x1004b79b
push 0x100
mov edi, 2
call fcn.10049ce0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret

Function at 0x1004b7d0
Capabilities:
Check if file exists
Set file attributes

Disassembly:
push esi
push edi
mov edi, eax
call fcn.10033960
test eax, eax
jne 0x1004b7f2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
jne 0x1004b7fa
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 1
pop edi
pop esi
ret
mov eax, edi
call fcn.10044c10
cmp eax, 0xffffffff
je 0x1004b816
test al, 7
je 0x1004b816
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, edi
call fcn.10033960
test eax, eax
jne 0x1004b7f2
call esi
mov esi, eax
cmp esi, 2
je 0x1004b7ea
cmp dword [esp + 0xc], 0
je 0x1004b83d
push 1
push 0
call fcn.1004b3b0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
ret
Function at 0x1004b850
Capabilities:
Check if file exists

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ebx, eax
test esi, esi
je 0x1004b912
cmp byte [esi], 0
je 0x1004b912
push 0
mov eax, esi
call fcn.1004b7d0
add esp, 4
cmp eax, 1
je 0x1004b912
push 0
push 0
xor edx, edx
mov ecx, esi
call fcn.10044660
add esp, 8
test eax, eax
je 0x1004b8be
push 0x2000000
push 3
push 3
push closesocket
mov edi, esi
call fcn.10033690
add esp, 0x10
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x1004b912
lea eax, [esp + 0x10]
push eax
call fcn.100673f0
call fcn.1006e140
test ebx, ebx
jle 0x1004b8f8
lea ebx, [ebx + ebx*4]
add ebx, ebx
xor ebp, ebp
test ebx, ebx
jle 0x1004b8f8
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, esi
call fcn.10033960
cmp eax, 1
je 0x1004b912
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1004b90a
push 0x64
call edi
inc ebp
cmp ebp, ebx
jl 0x1004b8d8
push 1
mov eax, esi
call fcn.1004b7d0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x1004b960
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x9c], eax
push 0x90
lea eax, [esp + 0x10]
push 0
push eax
mov byte [ebx], 0
call fcn.10116880
add esp, 0xc
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0xc], 6
jb 0x1004ba62
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [esp]
push edx
push 0x18
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1004ba62
mov ecx, dword [esp]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x19
push ecx
call edi
test eax, eax
jne 0x1004ba57
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1004ba57
mov edx, dword [esp + 8]
push esi
push 4
push edx
call fcn.1004ead0
mov esi, eax
add esp, 8
test esi, esi
je 0x1004ba56
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push ecx
push esi
push 0x19
push edx
call edi
test eax, eax
je 0x1004ba4d
mov eax, dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
mov cl, byte [eax]
mov eax, dword [esi]
dec cl
movzx edx, cl
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov eax, dword [eax]
cmp eax, 0x2000
jae 0x1004ba41
mov byte [ebx], 1
jmp 0x1004ba4d
cmp eax, 0x3000
sbb cl, cl
add cl, 3
mov byte [ebx], cl
push esi
call fcn.1004e9c0
add esp, 4
pop esi
lea edx, [esp + 4]
push edx
call fcn.100673f0
pop edi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
xor eax, eax
call fcn.1010d699
add esp, 0xa0
ret
Function at 0x1004bbc0
Capabilities:
Check os version

Disassembly:
sub esp, 0x110
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebp
mov ebp, dword [esp + 0x120]
push esi
push edi
mov edi, dword [esp + 0x120]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
test ebp, ebp
je 0x1004bbf9
mov byte [ebp], 0
cmp dword [0x1019e748], 0
jne 0x1004bcb3
mov esi, 1
mov dword [0x1019e748], esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x1004bcb3
cmp al, 6
jb 0x1004bcb3
mov dword [0x1019e74c], esi
push ebx
xor ebx, ebx
mov ecx, str.SeSecurityPrivilege
call fcn.10048c40
call fcn.1004ba80
mov esi, eax
cmp esi, ebx
je 0x1004bcce
push 0x103
lea eax, [esp + 0x1d]
push ebx
push eax
mov byte [esp + 0x24], bl
call fcn.10116880
mov ecx, dword [esp + 0x134]
add esp, 0xc
push esi
push ecx
push edi
call fcn.1004bb50
cmp eax, ebx
je 0x1004bcc4
push eax
mov byte [esp + 0x1c], bl
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x103
mov edi, eax
lea esi, [esp + 0x1c]
call fcn.10049ce0
add esp, 4
cmp ebp, ebx
je 0x1004bce0
mov eax, dword [esp + 0x14]
mov edx, esi
push edx
push eax
push str.Unable_to_SetNamedSecurityInfo_on__s__Reason:__s.
push ebp
call fcn.1010d6a8
add esp, 0x10
jmp 0x1004bce0
cmp dword [0x1019e74c], 0
jne 0x1004bc2d
xor eax, eax
jmp 0x1004bce5
mov dword [esp + 0x10], 1
jmp 0x1004bce0
cmp ebp, ebx
je 0x1004bce0
push str.Unable_to_get_LowIntegrity_SACL_
push ebp
call fcn.1010d6a8
add esp, 8
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.1010d699
add esp, 0x110
ret 0xc
Function at 0x1004c3b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
lea eax, [esp + 8]
push eax
xor ebp, ebp
push str.SystemCurrentControlSetControlProductOptions
xor ebx, ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1004c495
mov eax, dword [esp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
push ecx
push ebp
lea edx, [esp + 0x1c]
push edx
push ebp
push str.ProductSuite
push eax
call esi
test eax, eax
jne 0x1004c494
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x1004c494
push edi
push 6
push eax
call fcn.1004ead0
mov edi, eax
add esp, 8
cmp edi, ebp
je 0x1004c493
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edi
lea edx, [esp + 0x20]
push edx
push ebp
push str.ProductSuite
push eax
call esi
test eax, eax
jne 0x1004c484
cmp dword [esp + 0x18], 7
jne 0x1004c484
mov esi, edi
cmp byte [edi], bl
je 0x1004c484
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esp, [esp]
mov ecx, dword [esp + 0x24]
push ecx
push esi
call ebp
test eax, eax
je 0x1004c47c
push esi
call ebx
cmp byte [esi + eax + 1], 0
lea esi, [esi + eax + 1]
jne 0x1004c460
jmp 0x1004c484
mov dword [esp + 0x1c], 1
push edi
call fcn.1004e9c0
mov ebx, dword [esp + 0x20]
add esp, 4
xor ebp, ebp
pop edi
pop esi
mov eax, dword [esp + 8]
cmp eax, ebp
je 0x1004c4a4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, ebx
pop ebx
add esp, 0x10
ret

Function at 0x1004c7c0
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x9c], eax
cmp dword [0x1019e6dc], 0
je 0x1004c7f7
mov eax, dword [0x1019e6e0]
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.1010d699
add esp, 0xa0
ret
push 0x9c
lea eax, [esp + 4]
push 0
push eax
call fcn.10116880
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1004c839
or eax, 0xffffffff
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.1010d699
add esp, 0xa0
ret
mov edx, 2
mov eax, 1
mov dword [0x1019e6dc], eax
cmp dword [esp + 0x10], edx
je 0x1004c86f
mov dword [0x1019e6e0], 0
xor eax, eax
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.1010d699
add esp, 0xa0
ret
mov cl, byte [esp + 0x9a]
cmp cl, al
jne 0x1004c8b3
cmp dword [esp + 4], 5
jb 0x1004c896
cmp dword [esp + 8], eax
jb 0x1004c896
mov ecx, 0x200
cmp word [esp + 0x98], cx
je 0x1004c8d0
mov dword [0x1019e6e0], edx
mov eax, edx
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.1010d699
add esp, 0xa0
ret
mov eax, 3
cmp cl, al
jne 0x1004c8d0
mov edx, 0x80
cmp word [esp + 0x98], dx
jne 0x1004c8d0
mov eax, 4
mov ecx, dword [esp + 0x9c]
xor ecx, esp
mov dword [0x1019e6e0], eax
call fcn.1010d699
add esp, 0xa0
ret
Function at 0x1004e2d0
Capabilities:
Create thread
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1016ba90
push 0x10118480
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1017455c]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor esi, esi
mov dword [ebp - 0x1c], esi
cmp ecx, esi
je 0x1004e4a4
mov al, byte [ecx]
test al, al
je 0x1004e4a4
cmp al, 0x5c
je 0x1004e4a4
mov dl, 0x3a
cmp byte [ecx + 1], dl
jne 0x1004e4a4
cmp al, 0x61
jl 0x1004e337
cmp al, 0x7a
jg 0x1004e337
sub al, 0x20
mov bl, al
mov byte [ebp - 0x24], bl
sub al, 0x41
cmp al, 0x19
ja 0x1004e4a4
mov byte [ebp - 0x20], bl
mov byte [ebp - 0x1f], dl
mov byte [ebp - 0x1e], 0x5c
mov byte [ebp - 0x1d], 0
mov dword [ebp - 4], esi
jmp 0x1004e360
push 1
push 0x101936a8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
je 0x1004e37a
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1004e360
cmp dword [0x101936a0], esi
jne 0x1004e3b2
mov dword [0x101936a0], 1
xor eax, eax
mov dword [0x101a37a0], eax
mov dword [0x101a37a4], eax
mov dword [0x101a37a8], eax
mov dword [0x101a37ac], eax
mov dword [0x101a37b0], eax
mov dword [0x101a37b4], eax
mov word [0x101a37b8], ax
movsx esi, bl
sub esi, 0x41
mov al, byte [esi + 0x101a37a0]
cmp al, 1
jne 0x1004e3d6
mov edi, 3
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xfffffffe
jmp 0x1004e45f
cmp al, 2
je 0x1004e42c
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, 2
jne 0x1004e3fd
mov byte [esi + 0x101a37a0], al
mov dword [ebp - 4], 0xfffffffe
jmp 0x1004e45f
cmp edi, 3
jne 0x1004e434
mov edx, dword [ebp - 0x24]
push edx
call sym.EncDec.dll_IsItUSBDrive
test eax, eax
setne al
inc al
mov byte [esi + 0x101a37a0], al
cmp al, 1
jne 0x1004e428
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xfffffffe
jmp 0x1004e45f
cmp al, 2
jne 0x1004e434
mov edi, 2
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xfffffffe
jmp 0x1004e45f
cmp dword [0x101936a4], 0
jne 0x1004e483
mov dword [0x101936a4], 1
push 0
push 0
push 0x1004e270
call fcn.1010d93f
add esp, 0xc
push 0
push 0x101936a8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004edb0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x150
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x14c], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
push edi
mov dword [esp + 0xc], eax
test ebx, ebx
je 0x1004eeba
cmp byte [ebx], 0
je 0x1004eeba
lea edi, [esp + 0x10]
call fcn.10065b20
cmp eax, 1
jne 0x1004ee29
test esi, esi
je 0x1004edfe
mov ecx, dword [esp + 0x30]
mov dword [esi], ecx
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1004ee13
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [eax], edx
mov dword [eax + 4], ecx
xor eax, eax
pop edi
pop ebx
mov ecx, dword [esp + 0x14c]
xor ecx, esp
call fcn.1010d699
mov esp, ebp
pop ebp
ret
push 0x80
push 3
push 1
push closesocket
mov edi, ebx
call fcn.10033690
mov edi, eax
add esp, 0x10
mov dword [esp + 8], edi
cmp edi, 0xffffffff
je 0x1004ee6a
mov edx, dword [esp + 0xc]
push edx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x1004ee8e
lea eax, [esp + 8]
push eax
call fcn.100673f0
push 1
push 0
mov edx, esi
mov ecx, ebx
call fcn.10044660
add esp, 8
pop edi
pop ebx
mov ecx, dword [esp + 0x14c]
xor ecx, esp
call fcn.1010d699
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x1004ee9d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi], eax
lea ecx, [esp + 8]
push ecx
call fcn.100673f0
test esi, esi
je 0x1004ee13
cmp dword [esi], 0xffffffff
jne 0x1004ee13
jmp 0x1004ee6a
mov ecx, dword [esp + 0x154]
pop edi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.1010d699
mov esp, ebp
pop ebp
ret

Function at 0x1004f470
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x110], eax
push esi
push 0x103
lea eax, [esp + 0x15]
push 0
push eax
mov dword [esp + 0x10], 0
mov byte [esp + 0x1c], 0
call fcn.10116880
call fcn.1004f190
mov esi, eax
neg esi
sbb esi, esi
lea ecx, [esp + 0x1c]
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
and esi, 0x100
push ecx
add esi, 0x20019
call fcn.1010d6a8
add esp, 0x14
lea edx, [esp + 8]
push edx
push esi
lea eax, [esp + 0x18]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10062150
pop esi
test eax, eax
jne 0x1004f515
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 4]
push edx
push eax
push eax
mov eax, dword [esp + 0x14]
push 0x101536a0
push eax
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
mov eax, dword [esp]
xor ecx, esp
call fcn.1010d699
add esp, 0x114
ret
Function at 0x1004f530
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
call fcn.1004f190
neg eax
sbb eax, eax
and eax, 0x100
lea ecx, [esp]
push ecx
add eax, 0x20019
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10062150
test eax, eax
jne 0x1004f58d
mov eax, dword [esp + 0xc]
mov ecx, dword [esp]
lea edx, [esp + 4]
push edx
push eax
push 0
push 0
push str.DisplayVersion
push ecx
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret