joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100cf66
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x101200c]
mov dword [ebp - 4], eax
mov eax, dword [0x1012004]
push ebx
xor ebx, ebx
cmp eax, 2
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ebx
jne 0x100d092
cmp dword [0x1016bd8], eax
je 0x100cfb5
xor eax, eax
inc eax
mov dword [0x1012004], eax
jmp 0x100d092
lea eax, [ebp - 0x14]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100d092
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x100cfff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100cfff
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
call fcn.01006d75
cmp dword [ebp - 0x10], ebx
je 0x100d072
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push 2
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x100d072
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x100d072
mov eax, dword [ebp - 0x10]
xor esi, esi
cmp dword [eax], ebx
jbe 0x100d069
push dword [ebp - 0x20]
push dword [eax + esi*8 + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x100d05e
mov eax, dword [ebp - 0x10]
inc esi
cmp esi, dword [eax]
jb 0x100d043
jmp 0x100d069
xor eax, eax
inc eax
mov dword [0x1012004], eax
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], ebx
pop esi
je 0x100d08f
mov eax, dword [0x1016c90]
push dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0100d528
leave
ret

Function at 0x100d0a2
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [0x1016c88], 0xffffffff
mov eax, dword [0x101200c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
je 0x100d130
cmp dword [ebp + 0xc], 0
je 0x100d0e1
mov byte [ebp - 0x104], 0xd
mov byte [ebp - 0x103], 0xa
mov dword [ebp - 0x108], 2
jmp 0x100d0e8
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 [0x1016c88]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
call fcn.0100d528
leave
ret 8
Function at 0x100d1cb
Capabilities:
Create process on windows
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x39c
mov eax, dword [0x101200c]
push ebx
push 1
push 0x1005da4
mov dword [ebp - 4], eax
call fcn.0100d0a2
lea eax, [ebp - 0x344]
push eax
push 1
xor ebx, ebx
push ebx
push 0x1001f48
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100d344
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x340]
push eax
push ebx
push 0x1002134
push dword [ebp - 0x344]
mov dword [ebp - 0x348], 0x104
mov byte [ebp - 8], bl
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100d338
cmp dword [ebp - 0x340], 2
push edi
jne 0x100d282
push 0x41
pop ecx
lea edi, [ebp - 0x214]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push 0x105
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x214]
jmp 0x100d288
lea eax, [ebp - 0x10c]
cmp dword [ebp + 8], ebx
mov ecx, 0x10056c0
jne 0x100d297
mov ecx, 0x10056b0
push dword [0x1005d68]
push eax
push ecx
lea eax, [ebp - 0x33c]
push 0x125
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x39c]
rep stosd dword es:[edi], eax
push ebx
lea eax, [ebp - 0x33c]
push eax
mov dword [ebp - 0x39c], 0x44
call fcn.0100d0a2
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x39c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x33c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x100d338
push esi
push 0xffffffffffffffff
push dword [ebp - 0x358]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x340]
push eax
push dword [ebp - 0x358]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x354]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x358]
call esi
pop esi
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0100d528
leave
ret 4
Function at 0x100d356
Capabilities:
Get common file path
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x101200c]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, eax
lea ebx, [ebp + esi - 0x108]
push ebx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x5c
je 0x100d39f
mov byte [ebx], 0x5c
inc esi
sub edi, esi
push edi
push 0x1005788
lea eax, [ebp + esi - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor esi, esi
push esi
push 0x8000080
push 4
push esi
push esi
push 0xc0000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x1016c88], eax
je 0x100d476
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x100d3f0
xor eax, eax
cmp eax, 0x19000
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jb 0x100d414
push esi
push esi
push esi
push dword [0x1016c88]
call edi
push dword [0x1016c88]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 2
push esi
push esi
push dword [0x1016c88]
call edi
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x10e]
push eax
movzx eax, word [ebp - 0x110]
push eax
movzx eax, word [ebp - 0x118]
push eax
movzx eax, word [ebp - 0x112]
push eax
movzx eax, word [ebp - 0x116]
push eax
push 0x1005db8
push 0x100
mov esi, 0x10164a8
push esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x20
push 1
push esi
call fcn.0100d0a2
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100d528
leave
ret

Function at 0x100d528
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101200c]
jne 0x100d539
test ecx, 0xffff0000
jne 0x100d539
ret
jmp fcn.0100d543
Function at 0x100d6b8
Capabilities:
Accept command line arguments

Disassembly:
push 0x60
push 0x1005e20
call fcn.0100e504
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or dword [ebp - 4], 0xffffffff
mov ebx, 0x94
push ebx
push 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x100d879
mov dword [esi], ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
test eax, eax
jne 0x100d714
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x100d879
mov eax, dword [esi + 0x10]
mov dword [0x10170dc], eax
mov eax, dword [esi + 4]
mov dword [0x10170e8], eax
mov eax, dword [esi + 8]
mov dword [0x10170ec], eax
mov eax, dword [esi + 0xc]
and eax, 0x7fff
mov dword [0x10170e0], eax
xor ebx, ebx
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x10170dc], 2
je 0x100d755
or byte [0x10170e1], 0x80
mov eax, dword [0x10170e8]
shl eax, 8
add eax, dword [0x10170ec]
mov dword [0x10170e4], eax
call fcn.0100d657
mov dword [ebp - 0x1c], eax
push ebx
call fcn.0100e4a5
pop ecx
test eax, eax
jne 0x100d79c
cmp dword [0x10170cc], 1
jne 0x100d789
call fcn.0100dc77
push 0x1c
call fcn.0100db11
push 0xff
call fcn.0100d970
pop ecx
pop ecx
mov dword [ebp - 4], 1
call fcn.0100e2be
test eax, eax
jge 0x100d7b4
push 0x1b
call fcn.0100d628
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1017a14], eax
call fcn.0100e191
mov dword [0x10170c4], eax
call fcn.0100e0e9
test eax, eax
jge 0x100d7da
push 8
call fcn.0100d628
pop ecx
call fcn.0100de91
test eax, eax
jge 0x100d7eb
push 9
call fcn.0100d628
pop ecx
call fcn.0100d9ca
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x100d7fe
push eax
call fcn.0100d628
pop ecx
call fcn.0100de2d
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x100d812
movzx eax, word [ebp - 0x40]
jmp 0x100d815
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push ebx
push 0x1000000
call fcn.01007eb3
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x100d834
push esi
call fcn.0100daaa
call fcn.0100dae2
jmp 0x100d866
or dword [ebp - 4], 0xffffffff
mov eax, esi
jmp 0x100d87e
mov eax, 0xff
call fcn.0100e53f
ret
Function at 0x100db11
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp ecx, dword [esi*8 + 0x1012020]
je 0x100db33
inc esi
cmp esi, 0x13
mov dword [ebp - 4], esi
jb 0x100db21
cmp esi, 0x13
je 0x100dc6f
mov eax, dword [0x10170cc]
cmp eax, 1
push ebx
je 0x100dc3e
test eax, eax
jne 0x100db5c
cmp dword [0x1012014], 1
je 0x100dc3e
cmp ecx, 0xfc
je 0x100dc6e
push edi
push 6
pop ecx
mov esi, 0x10061c0
mov edi, 0x1017120
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x101713a
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x101723e], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100dbaa
push 5
pop ecx
mov esi, 0x10061a8
mov edi, 0x101713a
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100dbaf
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x100dbe2
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100dbc3
sub eax, edx
push 3
lea eax, [eax + 0x10170ff]
push 0x10061a4
push eax
call fcn.0100e840
add esp, 0xc
mov edx, 0x1017120
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100dbea
mov eax, dword [ebp - 4]
mov eax, dword [eax*8 + 0x1012024]
mov esi, 0x10061a0
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100dc06
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100dc12
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1006178
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0100e733
add esp, 0xc
pop edi
jmp 0x100dc6e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x100dc6e
mov edx, dword [esi*8 + 0x1012024]
mov ecx, edx
lea esi, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x100dc56
push 0
sub ecx, esi
lea esi, [ebp - 8]
push esi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
leave
ret
Function at 0x100e191
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1017548]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x100e1dd
call esi
mov edi, eax
cmp edi, ebx
je 0x100e1c3
mov dword [0x1017548], 1
jmp 0x100e1e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x100e1d8
push 2
pop eax
mov dword [0x1017548], eax
jmp 0x100e1dd
mov eax, dword [0x1017548]
cmp eax, 1
jne 0x100e25a
cmp edi, ebx
jne 0x100e1ee
call esi
mov edi, eax
cmp edi, ebx
je 0x100e263
cmp word [edi], bx
mov eax, edi
je 0x100e203
inc eax
inc eax
cmp word [eax], bx
jne 0x100e1f5
inc eax
inc eax
cmp word [eax], bx
jne 0x100e1f5
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
mov ecx, eax
cmp ecx, ebx
mov dword [ebp - 8], ecx
je 0x100e251
call fcn.0100ee0f
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100e251
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x100e24e
push dword [ebp - 4]
call fcn.0100edcd
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x100e2b2
cmp eax, 2
je 0x100e267
cmp eax, ebx
je 0x100e267
xor eax, eax
jmp 0x100e2b4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x100e263
cmp byte [esi], bl
je 0x100e284
inc eax
cmp byte [eax], bl
jne 0x100e27a
inc eax
cmp byte [eax], bl
jne 0x100e27a
sub eax, esi
inc eax
mov edi, eax
mov ecx, edi
call fcn.0100ee0f
cmp eax, ebx
je 0x100e2ab
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100e733
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 [0x101754c], ebx
push esi
push edi
jne 0x100e7b5
push 0x1006250
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100e7f0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1006244
push edi
call esi
test eax, eax
mov dword [0x101754c], eax
je 0x100e7f0
push 0x1006234
push edi
call esi
push 0x1006220
push edi
mov dword [0x1017550], eax
call esi
cmp dword [0x10170dc], 2
mov dword [0x1017554], eax
jne 0x100e7b5
push 0x1006204
push edi
call esi
test eax, eax
mov dword [0x101755c], eax
je 0x100e7b5
push 0x10061ec
push edi
call esi
mov dword [0x1017558], eax
mov eax, dword [0x1017558]
test eax, eax
je 0x100e7fa
call eax
test eax, eax
je 0x100e7e1
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x101755c]
test eax, eax
je 0x100e7e1
test byte [ebp - 8], 1
jne 0x100e7fa
cmp dword [0x10170e8], 4
jb 0x100e7f4
or byte [ebp + 0x12], 0x20
jmp 0x100e819
xor eax, eax
jmp 0x100e829
or byte [ebp + 0x12], 4
jmp 0x100e819
mov eax, dword [0x1017550]
test eax, eax
je 0x100e819
call eax
mov ebx, eax
test ebx, ebx
je 0x100e819
mov eax, dword [0x1017554]
test eax, eax
je 0x100e819
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x101754c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100f826
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 0x100f857
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 0x100f85e
cmp ebx, dword [ebp + 8]
jae 0x100f85e
xor eax, eax
jmp 0x100fa4e
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x100f86f
xor eax, eax
inc eax
jmp 0x100fa4d
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x100f885
cmp ecx, edx
jae 0x100f9ca
cmp dword [eax + 4], 0
je 0x100f88e
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x100f876
cmp dword [ebp + 8], 0
je 0x100f8b0
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x100f9ca
cmp eax, esi
jae 0x100f9ca
mov eax, dword [0x1017568]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x100f8d5
cmp dword [esi*4 + 0x1017570], edi
je 0x100f9ce
inc esi
cmp esi, eax
jl 0x100f8c3
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100fa4a
cmp dword [ebp - 8], 0x1000000
jne 0x100fa4a
test byte [ebp - 0xc], 0xcc
je 0x100f953
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x100fa4a
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100fa4a
cmp word [eax + 0x18], 0x10b
jne 0x100fa4a
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x100fa4a
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x100f953
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x100f953
test byte [ecx + 0x27], 0x80
jne 0x100f9ca
push 1
push 0x10175b0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x100f867
mov ecx, dword [0x1017568]
test ecx, ecx
mov edx, ecx
jle 0x100f987
lea eax, [ecx*4 + 0x101756c]
cmp dword [eax], edi
je 0x100f987
dec edx
sub eax, 4
test edx, edx
jg 0x100f97b
test edx, edx
jne 0x100f9b8
push 0xf
pop ebx
cmp ecx, ebx
jg 0x100f994
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x100f9ac
lea eax, [edx*4 + 0x1017570]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x100f99a
cmp ecx, 0x10
jge 0x100f9b8
inc ecx
mov dword [0x1017568], ecx
push 0
push 0x10175b0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x100f867
xor eax, eax
jmp 0x100fa4d
test esi, esi
jle 0x100f867
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x10175b0
call ebx
test eax, eax
jne 0x100f867
cmp dword [esi*4 + 0x1017570], edi
je 0x100fa24
mov eax, dword [0x1017568]
lea esi, [eax - 1]
test esi, esi
jl 0x100fa12
cmp dword [esi*4 + 0x1017570], edi
je 0x100fa0e
dec esi
jns 0x100fa02
test esi, esi
jge 0x100fa22
cmp eax, 0x10
jge 0x100fa1d
inc eax
mov dword [0x1017568], eax
lea esi, [eax - 1]
jmp 0x100fa24
je 0x100fa3c
xor ecx, ecx
test esi, esi
jl 0x100fa3c
lea eax, [ecx*4 + 0x1017570]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x100fa2a
push 0
push 0x10175b0
call ebx
jmp 0x100f867
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10106ab
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.0100d920
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 0x10107a7
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 [0x10170dc], 2
jne 0x101072c
push 0x10065c4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
je 0x101072c
push 0x10065ac
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x101072c
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], esi
call eax
cmp eax, 1
pop ecx
jne 0x101072c
cmp dword [ebp - 4], esi
jbe 0x101072c
mov esi, dword [ebp - 4]
mov edx, dword [0x10170dc]
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 0x1010755
add eax, edi
mov dword [ebp - 4], eax
lea ecx, [edi + edi]
cmp eax, ecx
jae 0x1010761
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 0x1010773
push 0x11
pop edi
mov ecx, dword [ebp - 0xc]
add edi, ecx
cmp esi, edi
jb 0x10107a7
push 4
push 0x1000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x10107a7
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 0x10107a7
xor eax, eax
inc eax
jmp 0x10107a9
xor eax, eax
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1010a06
Capabilities:
Check os version
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x101200c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x21c], eax
xor eax, eax
cmp dword [0x1012280], eax
push esi
push edi
mov dword [ebp - 0x218], eax
je 0x1010a60
push 0x10175e8
mov dword [0x1012280], eax
mov dword [0x10175e8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1010a60
mov dword [0x10175f8], 1
cmp dword [0x10175f8], 2
jne 0x1010b75
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, 0x104
push esi
lea eax, [ebp - 0x110]
push eax
push 0x1006ccc
call edi
test eax, eax
je 0x1010aa9
push 0x1006cbc
lea eax, [ebp - 0x110]
push eax
push ebx
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.01010959
test eax, eax
jne 0x1010b14
cmp dword [0x10175ec], 5
jb 0x1010ae3
push esi
lea eax, [ebp - 0x110]
push eax
push 0x1006c70
call edi
test eax, eax
je 0x1010ae3
push 0x1006cac
lea eax, [ebp - 0x110]
push eax
push ebx
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.01010959
test eax, eax
jne 0x1010b14
push esi
lea eax, [ebp - 0x110]
push eax
push 0x1006ca0
call edi
test eax, eax
je 0x1010b49
push 0x1006c90
lea eax, [ebp - 0x110]
push eax
push ebx
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.01010959
test eax, eax
je 0x1010b49
mov dword [ebp - 0x218], 1
lea ebx, [ebp - 0x214]
push dword [ebp + 0x10]
push ebx
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
pop edi
pop esi
pop ebx
call fcn.0100d528
leave
ret 0xc
push 5
lea eax, [ebp - 0xc]
push eax
push 0x1006c64
call edi
test eax, eax
je 0x1010b75
push 0x1006c80
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.01010959
test eax, eax
jne 0x1010b14
cmp dword [ebp - 0x21c], ebx
je 0x1010b34
jmp 0x1010b24