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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push 4
pop ebx
lea eax, [ebp - 8]
xor esi, esi
push eax
push 0x1004fd8
push 0x80000001
mov dword [ebp - 8], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100bca2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push 0x1005020
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
je 0x100bbb8
cmp eax, esi
jne 0x100bca2
cmp dword [ebp - 0x14], esi
je 0x100bca2
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x100bca2
mov eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 4]
push eax
call fcn.010068f5
test eax, eax
je 0x100bcb5
mov ecx, dword [ebp - 0x24]
mov edx, ecx
shr ecx, 2
push edi
mov edi, dword [ebp - 4]
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
cmp dword [ebp - 0x20], esi
jbe 0x100bc89
mov edi, 0x1005010
push dword [ebp - 0x24]
push dword [ebp - 4]
push dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
inc dword [ebp - 0x10]
cmp eax, esi
jne 0x100bc81
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100bc81
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push edi
push dword [ebp - 0xc]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100bc78
cmp dword [ebp - 0x1c], 3
jne 0x100bc78
push ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
push esi
push edi
push dword [ebp - 0xc]
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x20]
jb 0x100bc13
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push 0x1005020
push dword [ebp - 8]
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
cmp dword [ebp - 4], esi
je 0x100bcb8
mov eax, dword [0x1016cb0]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov dword [ebp - 4], esi
cmp dword [ebp - 8], esi
pop esi
pop ebx
je 0x100bcc8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x100bcdf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x101203c]
push ebx
push esi
push edi
push 2
pop edi
cmp dword [0x1016bf8], edi
mov esi, 0x104
mov dword [ebp - 4], eax
lea eax, [ebp - 0x108]
push esi
jne 0x100bd10
push 0x1005b20
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [ebp - 0x21c], edi
jmp 0x100bd21
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 0x21c], 1
xor eax, eax
xor edi, edi
cmp dword [ebp + 8], edi
setne al
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
push 0x1005b38
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
cmp dword [ebp + 8], edi
mov eax, reloc.ADVAPI32.dll_RegQueryValueExA
jne 0x100bd59
mov eax, 0x1002454
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x210]
push ecx
push edi
push 0x20006
push edi
push edi
push edi
push eax
push 0x80000000
call ebx
test eax, eax
jne 0x100beb7
push esi
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp + 8]
neg eax
sbb eax, eax
add eax, 0x40d
push eax
push dword [0x1016cac]
call dword [sym.imp.USER32.dll_LoadStringA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push edi
push edi
push dword [ebp - 0x210]
call esi
push 4
lea eax, [ebp - 0x218]
push eax
push 4
push edi
push 0x1005b14
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 2
call esi
push 1
push 0x100257c
push 1
push edi
push 0x1005b04
push dword [ebp - 0x210]
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push 0x1005af8
push dword [ebp - 0x210]
call ebx
test eax, eax
jne 0x100be56
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
push edi
push edi
push dword [ebp - 0x214]
call esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push 0x1002259
push dword [ebp - 0x210]
call ebx
test eax, eax
jne 0x100beab
cmp dword [ebp + 8], edi
je 0x100be8c
push 0x2e
push 0x1005a9c
jmp 0x100be93
push 0x2c
push 0x1005acc
push 1
push edi
push edi
push dword [ebp - 0x214]
call esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100d058
leave
ret 4
Function at 0x100bd47
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x101203c]
push ebx
push esi
push edi
push 2
pop edi
cmp dword [0x1016bf8], edi
mov esi, 0x104
mov dword [ebp - 4], eax
lea eax, [ebp - 0x108]
push esi
jne 0x100bd10
push 0x1005b20
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [ebp - 0x21c], edi
jmp 0x100bd21
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 0x21c], 1
xor eax, eax
xor edi, edi
cmp dword [ebp + 8], edi
setne al
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
push 0x1005b38
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
cmp dword [ebp + 8], edi
mov eax, reloc.ADVAPI32.dll_RegQueryValueExA
jne 0x100bd59
mov eax, 0x1002454
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x210]
push ecx
push edi
push 0x20006
push edi
push edi
push edi
push eax
push 0x80000000
call ebx
test eax, eax
jne 0x100beb7
push esi
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp + 8]
neg eax
sbb eax, eax
add eax, 0x40d
push eax
push dword [0x1016cac]
call dword [sym.imp.USER32.dll_LoadStringA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push edi
push edi
push dword [ebp - 0x210]
call esi
push 4
lea eax, [ebp - 0x218]
push eax
push 4
push edi
push 0x1005b14
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 2
call esi
push 1
push 0x100257c
push 1
push edi
push 0x1005b04
push dword [ebp - 0x210]
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push 0x1005af8
push dword [ebp - 0x210]
call ebx
test eax, eax
jne 0x100be56
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
push edi
push edi
push dword [ebp - 0x214]
call esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push 0x1002259
push dword [ebp - 0x210]
call ebx
test eax, eax
jne 0x100beab
cmp dword [ebp + 8], edi
je 0x100be8c
push 0x2e
push 0x1005a9c
jmp 0x100be93
push 0x2c
push 0x1005acc
push 1
push edi
push edi
push dword [ebp - 0x214]
call esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100d058
leave
ret 4
Function at 0x100be81
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x101203c]
push ebx
push esi
push edi
push 2
pop edi
cmp dword [0x1016bf8], edi
mov esi, 0x104
mov dword [ebp - 4], eax
lea eax, [ebp - 0x108]
push esi
jne 0x100bd10
push 0x1005b20
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [ebp - 0x21c], edi
jmp 0x100bd21
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 0x21c], 1
xor eax, eax
xor edi, edi
cmp dword [ebp + 8], edi
setne al
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
push 0x1005b38
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
cmp dword [ebp + 8], edi
mov eax, reloc.ADVAPI32.dll_RegQueryValueExA
jne 0x100bd59
mov eax, 0x1002454
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x210]
push ecx
push edi
push 0x20006
push edi
push edi
push edi
push eax
push 0x80000000
call ebx
test eax, eax
jne 0x100beb7
push esi
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp + 8]
neg eax
sbb eax, eax
add eax, 0x40d
push eax
push dword [0x1016cac]
call dword [sym.imp.USER32.dll_LoadStringA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push edi
push edi
push dword [ebp - 0x210]
call esi
push 4
lea eax, [ebp - 0x218]
push eax
push 4
push edi
push 0x1005b14
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 2
call esi
push 1
push 0x100257c
push 1
push edi
push 0x1005b04
push dword [ebp - 0x210]
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push 0x1005af8
push dword [ebp - 0x210]
call ebx
test eax, eax
jne 0x100be56
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
push edi
push edi
push dword [ebp - 0x214]
call esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push 0x1002259
push dword [ebp - 0x210]
call ebx
test eax, eax
jne 0x100beab
cmp dword [ebp + 8], edi
je 0x100be8c
push 0x2e
push 0x1005a9c
jmp 0x100be93
push 0x2c
push 0x1005acc
push 1
push edi
push edi
push dword [ebp - 0x214]
call esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100d058
leave
ret 4
Function at 0x100c098
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x101203c]
push ebx
push edi
mov dword [ebp - 4], eax
call fcn.0100ba96
xor edi, edi
test eax, eax
mov ebx, 0x104
jne 0x100c039
test byte [0x1016c7c], 2
je 0x100c02e
push ebx
push 0x30
push 0x40f
push edi
call fcn.0100cc77
sub eax, 7
neg eax
sbb eax, eax
inc eax
jmp 0x100c031
xor eax, eax
inc eax
cmp eax, edi
jne 0x100c181
mov eax, dword [0x1016c8c]
dec eax
je 0x100c04f
dec eax
jne 0x100c18d
mov eax, 0x404
jmp 0x100c054
mov eax, 0x3ee
push 0x30
push 4
push eax
push edi
call fcn.0100cc77
cmp eax, 7
je 0x100c181
call fcn.0100addc
test eax, eax
je 0x100c181
call fcn.0100ca9c
test eax, eax
jne 0x100c09d
push 1
push 0x1005d28
call fcn.0100cbd8
push edi
push 0x10
push 0x3fb
push edi
call fcn.0100cc77
jmp 0x100c18d
push esi
call fcn.0100b81f
push dword [0x1016be4]
mov esi, 0x10169d8
push esi
push 0x1005970
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_wnsprintfA]
lea eax, [ebp - 0x108]
push eax
call ebx
add esp, 0x14
cmp dword [0x1016c80], edi
jne 0x100c136
call fcn.0100b8ed
push edi
push 0xd
push edi
push 0x10167d0
push esi
push 0x10058c4
lea eax, [ebp - 0x108]
push eax
push edi
call dword [0x1016c94]
push 0x4c
push 0x100257c
push 0x1005824
lea eax, [ebp - 0x108]
push eax
push 0x100593c
lea eax, [ebp - 0x310]
push 0x208
push eax
call ebx
add esp, 0x1c
push edi
lea eax, [ebp - 0x310]
push eax
push edi
push edi
call dword [0x1016c98]
call fcn.0100ba6b
call fcn.0100b70e
jmp 0x100c153
push edi
push 0xd
push edi
push 0x10167d0
push esi
push 0x10058e0
lea eax, [ebp - 0x108]
push eax
push edi
call dword [0x1016c94]
call fcn.0100bf7a
test byte [0x1016c7c], 2
pop esi
je 0x100c169
push 1
call fcn.0100ad94
cmp dword [0x1016c80], edi
je 0x100c17c
call fcn.0100bfb0
push edi
call fcn.0100a567
xor eax, eax
inc eax
jmp 0x100c18f
push 1
push 0x1005d10
call fcn.0100cbd8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0100d058
leave
ret
Function at 0x100c1d4
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x101203c]
mov ecx, dword [ebp + 0xc]
push esi
lea edx, [ebp - 0x118]
push edx
push 0x2000000
xor esi, esi
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x124], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
mov dword [ebp - 0x120], eax
jne 0x100c2d2
push ebx
push edi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push esi
push dword [ebp - 0x118]
mov ebx, 0x105
mov dword [ebp - 0x110], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp eax, esi
mov dword [ebp - 0x120], eax
jne 0x100c25e
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x100c239
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x118]
call fcn.0100c1a0
push dword [ebp - 0x110]
dec dword [ebp - 0x114]
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x114]
push dword [ebp - 0x118]
call edi
test eax, eax
je 0x100c227
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x124], esi
je 0x100c28c
push dword [ebp - 0x124]
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 0x120], eax
jmp 0x100c2d0
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
jmp 0x100c2ab
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x100c2d0
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
push dword [ebp - 0x11c]
mov dword [ebp - 0x110], ebx
call edi
test eax, eax
je 0x100c294
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x120]
pop esi
call fcn.0100d058
leave
ret 8

Function at 0x100c2fd
Capabilities:
Create process on windows
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [0x1016bf8], 2
jne 0x100c34f
mov eax, dword [0x1012030]
cmp eax, 0xffffffff
jne 0x100c326
push 0x1005d80
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x100c31f
push 0x1005d64
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x100c321
xor eax, eax
mov dword [0x1012030], eax
test eax, eax
je 0x100c32d
pop ebp
jmp eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
pop ebp
ret 8
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
Function at 0x100c482
Capabilities:
Get common file path
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x101203c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x21c]
push eax
push 0x20019
xor edi, edi
push edi
push 0x10054b8
push 0x80000002
mov dword [ebp - 0x218], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100c522
push esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x220]
push eax
push edi
push 0x1005504
push dword [ebp - 0x21c]
mov esi, 0x104
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100c515
cmp dword [ebp - 0x220], 2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
jne 0x100c485
push 0x41
pop ecx
lea edi, [ebp - 0x108]
rep stosd dword es:[edi], eax
push esi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push esi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, 4
jmp 0x100c48e
mov eax, dword [ebp - 0x210]
sub eax, 5
mov ecx, esi
sub ecx, eax
push ecx
mov dword [ebp - 0x210], eax
push 0x1005904
lea eax, [ebp + eax - 0x20c]
push eax
call ebx
xor edi, edi
inc edi
cmp dword [0x1016bf8], edi
pop ebx
jne 0x100c4c9
push dword [ebp + 0xc]
push dword [ebp - 0x214]
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [ebp - 0x20c]
push eax
push esi
lea eax, [ebp - 0x108]
push eax
push 0x100257c
push dword [ebp - 0x214]
push 0x10058f4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, edi
jbe 0x100c515
push 0x1005a50
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 0x106], 0
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x100c515
mov dword [ebp - 0x218], edi
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
pop edi
call fcn.0100d058
leave
ret 8
Function at 0x100c79b
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x101203c]
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
cmp ebx, esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x158], edi
mov dword [ebp - 0x154], esi
je 0x100c77f
mov byte [ebx], 0
cmp edi, esi
je 0x100c787
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ecx
push 0x10053ac
push 0x100247c
lea eax, [ebp - 0x148]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
lea eax, [ebp - 0x14c]
push eax
xor edi, edi
inc edi
push edi
push esi
lea eax, [ebp - 0x148]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100c86b
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x15c]
push eax
push esi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0x1005408
push dword [ebp - 0x14c]
mov dword [ebp - 0x150], 4
call esi
test eax, eax
jne 0x100c85f
cmp dword [ebp - 0x15c], edi
jne 0x100c85f
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 0x10023a4
push dword [ebp - 0x14c]
mov dword [ebp - 0x150], 0x40
call esi
test eax, eax
jne 0x100c85f
cmp dword [ebp - 0x158], eax
je 0x100c847
push dword [ebp - 0x158]
lea eax, [ebp - 0x44]
push eax
call fcn.0100c580
test ebx, ebx
je 0x100c859
push dword [ebp + 0x14]
lea eax, [ebp - 0x44]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [ebp - 0x154], edi
push dword [ebp - 0x14c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x154]
pop edi
pop esi
pop ebx
call fcn.0100d058
leave
ret 0x10

Function at 0x100cbef
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [0x1016ca8], 0xffffffff
mov eax, dword [0x101203c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
je 0x100cc66
cmp dword [ebp + 0xc], 0
je 0x100cc17
mov byte [ebp - 0x104], 0xd
mov byte [ebp - 0x103], 0xa
mov dword [ebp - 0x108], 2
jmp 0x100cc1e
and dword [ebp - 0x108], 0
mov ecx, dword [ebp - 0x108]
mov edx, 0x100
sub edx, ecx
push edx
push eax
lea eax, [ebp + ecx - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x104]
push eax
push dword [0x1016ca8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
call fcn.0100d058
leave
ret 8
Function at 0x100d303
Capabilities:
Query environment variable

Disassembly:
push 0x60
push 0x1005e10
call fcn.0100e060
mov edi, 0x94
mov eax, edi
call fcn.0100d410
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 [0x1016ddc], ecx
mov eax, dword [esi + 4]
mov dword [0x1016de8], eax
mov edx, dword [esi + 8]
mov dword [0x1016dec], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x1016de0], esi
cmp ecx, 2
je 0x100d1ff
or esi, 0x8000
mov dword [0x1016de0], esi
shl eax, 8
add eax, edx
mov dword [0x1016de4], eax
cmp word [0x1000000], 0x5a4d
jne 0x100d23b
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x100d23b
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x100d254
cmp ecx, 0x20b
je 0x100d241
and dword [ebp - 0x1c], 0
jmp 0x100d268
cmp dword [eax + 0x84], 0xe
jbe 0x100d23b
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x100d262
cmp dword [eax + 0x74], 0xe
jbe 0x100d23b
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 0
call fcn.0100e004
pop ecx
test eax, eax
jne 0x100d295
cmp dword [0x1016dcc], 1
jne 0x100d282
call fcn.0100d7e0
push 0x1c
call fcn.0100d5f3
push 0xff
call fcn.0100d452
pop ecx
pop ecx
and dword [ebp - 4], 0
call fcn.0100de34
test eax, eax
jge 0x100d2aa
push 0x1b
call fcn.0100d170
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10173f4], eax
call fcn.0100dd07
mov dword [0x1016dc4], eax
call fcn.0100dc5e
test eax, eax
jge 0x100d2d0
push 8
call fcn.0100d170
pop ecx
call fcn.0100da04
test eax, eax
jge 0x100d2e1
push 9
call fcn.0100d170
pop ecx
call fcn.0100d4ac
mov dword [ebp - 0x28], eax
test eax, eax
je 0x100d2f4
push eax
call fcn.0100d170
pop ecx
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0100d996
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x100d316
movzx eax, word [ebp - 0x40]
jmp 0x100d319
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x1000000
call fcn.01007a18
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x100d33a
push esi
call fcn.0100d58c
call fcn.0100d5c4
jmp 0x100d36c
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x7c]
call fcn.0100e09b
ret