joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1010872
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x102e1b0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x102f240], 0
jne 0x1010897
xor al, al
jmp 0x101094d
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1010890
mov eax, dword [0x102f240]
push ebx
mov bx, word [ebp - 0xc]
movzx ecx, bx
push esi
mov esi, dword [ebp - 0x11c]
shl ecx, 8
cmp esi, dword [eax + 4]
push edi
jb 0x1010948
cmp esi, dword [eax + 8]
ja 0x1010948
mov edi, dword [ebp - 0x118]
cmp edi, dword [eax + 0x10]
jb 0x1010948
cmp edi, dword [eax + 0x14]
ja 0x1010948
mov edx, dword [ebp - 0x114]
cmp edx, dword [eax + 0x18]
jb 0x1010948
cmp edx, dword [eax + 0x1c]
ja 0x1010948
cmp ecx, dword [eax + 0x20]
jb 0x1010948
cmp ecx, dword [eax + 0xc]
ja 0x1010948
xor eax, eax
inc eax
cmp esi, 5
jne 0x101094a
cmp edi, eax
jne 0x101090f
mov byte [0x102f22b], al
cmp edi, 2
jne 0x1010919
cmp bx, di
jae 0x1010923
cmp edi, eax
jne 0x101094a
cmp bx, 3
jb 0x101094a
cmp edi, 2
mov byte [0x102e004], 0
jne 0x1010935
cmp bx, 3
jae 0x101093f
cmp edi, eax
jne 0x101094a
cmp bx, 4
jb 0x101094a
mov byte [0x102e005], 0
jmp 0x101094a
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010171cf
leave
ret

Function at 0x1010a6c
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push esi
push 0x1005cf0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x1010a91
call esi
cmp eax, 0xb7
je 0x1010a98
call esi
cmp eax, 5
jne 0x1010a9c
mov al, 1
pop esi
ret
xor al, al
pop esi
ret

Function at 0x1010aa5
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push esi
push 0x1005d3c
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x102f23c], eax
je 0x1010acf
call esi
cmp eax, 0xb7
je 0x1010ad6
call esi
cmp eax, 5
jne 0x1010af1
mov eax, dword [0x102f23c]
test eax, eax
je 0x1010aed
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [0x102f23c], 0
mov al, 1
pop esi
ret
xor al, al
pop esi
ret
Function at 0x1010afa
Capabilities:
Delete registry key
Get common file path
Get program files directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x102e1b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push edi
push 0x1005ec8
mov edi, 0x80000002
push edi
call esi
push 0x1005e48
push edi
call esi
push 0x1005e08
push edi
call esi
push 0x1005dc0
push edi
call esi
xor esi, esi
push 0x206
lea eax, [ebp - 0x20a]
push esi
push eax
mov word [ebp - 0x20c], si
call fcn.01017220
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push 0x26
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
pop edi
pop esi
jl 0x1010ba2
push 0x1005d78
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x1010ba2
lea eax, [ebp - 0x20c]
push eax
call fcn.01028253
cmp eax, 0xbc2
jne 0x1010ba2
mov byte [0x102f228], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010171cf
leave
ret
Function at 0x1011452
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x102e1b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x102f230]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x41c], ebx
je 0x10116a9
push esi
push eax
push 0x104
lea eax, [ebp - 0x414]
push eax
call fcn.0100e2f6
test eax, eax
jl 0x101167c
push 0x1006114
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x101167c
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 0x418]
push eax
mov edi, 0xf003f
push edi
push ebx
push 0x1004840
push 0x80000002
call esi
test eax, eax
jne 0x101167b
lea eax, [ebp - 0x41c]
push eax
push edi
push ebx
push 0x10060f0
push dword [ebp - 0x418]
call esi
test eax, eax
jne 0x101167b
lea eax, [ebp - 0x414]
push eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.0100e2f6
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jl 0x101157c
push 0x10060e4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x101157c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
je 0x101157c
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1011552
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push ebx
push 0x1006014
push dword [ebp - 0x418]
call esi
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.0100e2f6
test eax, eax
jl 0x10115dd
push 0x10060bc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x10115dd
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x10115b3
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push ebx
push 0x10060a8
push dword [ebp - 0x41c]
call esi
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.0100e2f6
test eax, eax
jl 0x101164f
push 0x1006084
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x101164f
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
je 0x101164f
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1011625
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push ebx
push 0x1006054
push dword [ebp - 0x41c]
call esi
mov eax, dword [0x102f244]
cmp eax, ebx
je 0x101165d
cmp dword [eax], 3
jae 0x101166f
push 0x1006030
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
push eax
call fcn.01028253
pop edi
cmp dword [ebp - 0x418], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x1011698
push dword [ebp - 0x418]
call esi
mov dword [ebp - 0x418], ebx
cmp dword [ebp - 0x41c], ebx
je 0x10116a8
push dword [ebp - 0x41c]
call esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.010171cf
leave
ret
Function at 0x10116bb
Capabilities:
Persist via com hijack
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x102e1b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x220]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push 0x1006210
push 0x80000002
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x22c], 0x10061c0
mov dword [ebp - 0x228], 0x1006170
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1011821
cmp dword [ebp - 0x220], ebx
je 0x1011821
push 0x206
lea eax, [ebp - 0x216]
push ebx
push eax
mov word [ebp - 0x218], bx
call fcn.01017220
add esp, 0xc
push esi
mov dword [ebp - 0x224], ebx
push edi
mov eax, dword [ebp - 0x224]
push dword [ebp + eax*4 - 0x22c]
mov esi, 0x104
push esi
lea eax, [ebp - 0x218]
push eax
call fcn.0100e2f6
test eax, eax
jne 0x101180c
push 0x1006150
push esi
lea eax, [ebp - 0x218]
push eax
call fcn.0100ca7e
test eax, eax
jne 0x101180c
lea eax, [ebp - 0x21c]
push eax
push 0xf003f
push ebx
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101180c
cmp dword [ebp - 0x21c], ebx
je 0x101180c
mov esi, 0x1006144
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x10]
movsw word es:[edi], word [esi]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x10117c7
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x10]
push eax
push 1
push ebx
push 0x1006124
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0x21c], ebx
je 0x101180c
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x21c], ebx
inc dword [ebp - 0x224]
cmp dword [ebp - 0x224], 2
jb 0x1011748
pop edi
pop esi
cmp dword [ebp - 0x21c], ebx
je 0x101183b
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x21c], ebx
cmp dword [ebp - 0x220], ebx
pop ebx
je 0x1011850
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010171cf
leave
ret
Function at 0x10148a1
Capabilities:
Get common file path

Disassembly:
push 0x528
mov eax, 0x102b44a
call fcn.01017f8b
lea eax, [ebp - 0x114]
push eax
xor esi, esi
push esi
push esi
push 0x24
push esi
mov byte [ebp - 0x419], 1
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x1014aa7
push 0x1006594
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
cmp eax, 1
jne 0x1014aa7
push eax
push 0x40
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x4ac]
call fcn.01014404
mov eax, dword [ebp - 0x4ac]
mov eax, dword [eax + 4]
mov eax, dword [ebp + eax - 0x4a4]
cmp eax, esi
mov dword [ebp - 4], esi
jne 0x1014a98
test al, 1
jne 0x1014a8d
mov esi, dword [sym.imp.KERNEL32.dll_CompareStringA]
mov ebx, 0x1006540
mov edi, 0x800
push 0x200
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x4ac]
call fcn.01014852
push 0xffffffffffffffff
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 0x418]
push eax
push 1
push edi
call esi
cmp eax, 2
je 0x101497c
mov eax, dword [ebp - 0x4ac]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x4a4], 1
je 0x1014937
jmp 0x1014a8d
lea eax, [ebp - 0x218]
push eax
xor eax, eax
push eax
push eax
push 0x24
push eax
mov byte [ebp - 0x419], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x1014a8d
push 0x100650c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
cmp eax, 1
jne 0x1014a8d
push eax
push 0x40
push 2
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x534]
call fcn.0101449e
mov eax, dword [ebp - 0x534]
mov eax, dword [eax + 4]
xor ecx, ecx
cmp dword [ebp + eax - 0x52c], ecx
mov byte [ebp - 4], 1
jne 0x1014a7e
sub esp, 0x18
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
lea ecx, [ebp - 0x4ac]
mov dword [ebp - 0x420], esp
call fcn.01013f62
jmp 0x1014a59
push 0x200
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x4ac]
call fcn.01014852
push 0xffffffffffffffff
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 0x418]
push eax
push 1
push edi
call esi
cmp eax, 2
je 0x1014a59
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x534]
push eax
call fcn.01014669
push eax
call fcn.01014880
add esp, 0xc
mov eax, dword [ebp - 0x4ac]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x4a4], 1
je 0x1014a10
lea ecx, [ebp - 0x534]
call fcn.01014035
mov byte [ebp - 0x419], 1
lea ecx, [ebp - 0x534]
mov byte [ebp - 4], 0
call fcn.0101376d
lea ecx, [ebp - 0x4ac]
call fcn.01014008
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4ac]
call fcn.010140e0
mov al, byte [ebp - 0x419]
call fcn.01017fdf
ret
Function at 0x1014b4a
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x102e1b0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x102fa68], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x80c], edi
mov ebx, 0x102f268
jne 0x1014b9d
push 0x400
push ebx
push 0x17f5
push dword [0x102f234]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jle 0x1014b9d
mov byte [0x102fa68], 1
cmp byte [0x102fa68], 0
mov byte [ebp - 0x805], 0
je 0x1014c5b
cmp byte [esi + 0x59], 0
je 0x1014c46
cmp byte [esi + 0x58], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x1014bd0
call edi
mov dword [esi + 0x5c], eax
mov byte [esi + 0x58], 1
call edi
sub eax, dword [esi + 0x5c]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov edi, eax
cmp edi, 0x1e
jbe 0x1014bef
push 0x1e
mov byte [ebp - 0x805], 1
pop edi
and word [ebp - 0x804], 0
push 0x7fe
lea eax, [ebp - 0x802]
push 0
push eax
call fcn.01017220
push 0x1e
pop eax
sub eax, edi
push eax
push ebx
push 0x10065e8
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.01014aea
add esp, 0x20
test eax, eax
jl 0x1014c5b
lea eax, [ebp - 0x804]
push eax
push 0
push 0xc
push 0x519
push dword [ebp - 0x80c]
jmp 0x1014c55
push 0x10049c8
push 0
push 0xc
push 0x519
push edi
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp byte [esi + 0x59], 0
pop edi
pop esi
pop ebx
je 0x1014c72
cmp byte [ebp - 0x805], 0
je 0x1014c72
xor eax, eax
inc eax
jmp 0x1014c74
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010171cf
leave
ret 4

Function at 0x1014c87
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov byte [ecx + 0x59], 0
pop ebp
jmp fcn.01014b4a
Function at 0x101573e
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
lea eax, [ebx + 8]
push eax
lea ecx, [ebp - 4]
call fcn.010155f4
cmp dword [ebx + 4], 0
je 0x1015807
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [ebx]
xor edx, edx
mov eax, ecx
mov esi, 0xea60
div esi
push dword [ebp + 8]
and word [0x1030a70], 0
mov dword [ebp - 8], eax
mov esi, edx
mov eax, ecx
mov ecx, 0x3e8
xor edx, edx
mov edi, ecx
div edi
mov eax, esi
mov edi, 0x1000
mov esi, 0x1030a70
push edx
xor edx, edx
div ecx
push eax
push dword [ebp - 8]
push 0x10066e8
push edi
push esi
call fcn.01014aea
add esp, 0x1c
test eax, eax
jl 0x1015805
push 0x102fa70
push esi
mov byte [0x102fa70], 0
call dword [sym.imp.USER32.dll_CharToOemW]
lea eax, [ebp - 8]
push eax
push edi
mov esi, 0x102fa70
push esi
call fcn.010156f3
test eax, eax
jl 0x1015805
and dword [ebp + 8], 0
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp - 8]
push esi
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jle 0x1015805
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop edi
pop esi
lea ecx, [ebp - 4]
call fcn.0101561e
lea ecx, [ebp - 4]
call fcn.0101561e
pop ebx
leave
ret 4
Function at 0x1015e05
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x102e1b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.01015d46
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.01017220
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x1015e78
cmp dword [ebp - 0x94], 5
jb 0x1015e99
jmp 0x1015e95
cmp dword [ebp - 0x88], 1
jne 0x1015e99
cmp dword [ebp - 0x94], 4
ja 0x1015e95
jne 0x1015e99
cmp dword [ebp - 0x90], 0
jbe 0x1015e99
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x10069cc
call fcn.01015bb9
test eax, eax
jge 0x1015eba
mov byte [0x102f220], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.010171cf
leave
ret

Function at 0x1018e52
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 4], ebx
jne 0x1018e83
call fcn.0101e0e8
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.010187bb
add esp, 0x14
or eax, 0xffffffff
jmp 0x1018eff
push esi
call fcn.0101c842
push 0x214
push 1
call fcn.01019737
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x1018ee7
call fcn.0101ca0f
push dword [eax + 0x6c]
push esi
call fcn.0101c8d5
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x58], eax
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
pop ecx
pop ecx
mov dword [esi + 0x54], edi
jne 0x1018ec4
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x1018dd6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
jne 0x1018efe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push esi
call fcn.01017bef
cmp dword [ebp - 4], ebx
pop ecx
je 0x1018efc
push dword [ebp - 4]
call fcn.0101e118
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret
Function at 0x10197a9
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x102e1b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
mov dword [ebp - 0xc], edi
call fcn.0101b8c2
test eax, eax
pop ecx
je 0x10197de
push edi
push edi
push edi
push edi
push edi
call fcn.01018710
add esp, 0x14
push 4
pop eax
call fcn.010171f0
mov dword [ebp - 0x14], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10198ec
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x58]
dec esi
neg esi
sbb esi, esi
and esi, 0x103
inc esi
cmp dword [ebp - 0xc], 2
mov dword [ebp - 8], edi
jne 0x1019865
push 0x10058e4
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
je 0x1019865
push 0x1006c00
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x1019865
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x10], edi
call eax
cmp eax, 1
jne 0x1019865
mov eax, dword [ebp - 0x10]
cmp eax, edi
jbe 0x1019865
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea edi, [ebx - 1]
push edi
push dword [ebp - 8]
call fcn.0101977d
add esp, 0xc
test eax, eax
jl 0x10198ec
not edi
and dword [ebp - 8], edi
je 0x1019897
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.0101977d
add esp, 0xc
test eax, eax
jl 0x10198ec
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x10198a2
mov dword [ebp - 8], eax
lea edi, [ebx - 1]
not edi
and edi, dword [ebp - 0x14]
sub edi, dword [ebp - 8]
cmp dword [ebp - 0xc], 1
jne 0x10198b6
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp edi, ebx
jb 0x10198ec
push 4
push 0x1000
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x10198ec
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10198ec
xor eax, eax
inc eax
jmp 0x10198ee
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010171cf
leave
ret
Function at 0x101bb4e
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, dword [esi*8 + 0x102e1d8]
je 0x101bb74
inc esi
cmp esi, 0x17
mov dword [ebp - 4], esi
jb 0x101bb62
cmp esi, 0x17
jae 0x101bcce
push 3
call fcn.010249bd
cmp eax, 1
pop ecx
je 0x101bc98
push 3
call fcn.010249bd
test eax, eax
pop ecx
jne 0x101bba7
cmp dword [0x102e1ac], 1
je 0x101bc98
cmp edi, 0xfc
je 0x101bcce
push 0x1007b04
mov edi, 0x314
push edi
mov esi, 0x1036ce0
push esi
call fcn.0101ec27
add esp, 0xc
test eax, eax
je 0x101bbdd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01018710
add esp, 0x14
mov byte [0x1036dfd], bl
push 0x104
mov ebx, 0x1036cf9
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x101bc20
push 0x1007aec
push 0x2fb
push ebx
call fcn.0101ec27
add esp, 0xc
test eax, eax
je 0x101bc20
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.01018710
add esp, 0x14
push ebx
push edi
push esi
call fcn.0102361f
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x101bc3e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01018710
add esp, 0x14
push 0x1007ae8
push edi
push esi
call fcn.0102361f
add esp, 0xc
test eax, eax
je 0x101bc5e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01018710
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x102e1dc]
push edi
push esi
call fcn.0102361f
add esp, 0xc
test eax, eax
je 0x101bc83
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01018710
add esp, 0x14
push 0x12010
push 0x1007ac0
push esi
call fcn.01024818
add esp, 0xc
jmp 0x101bcce
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x101bcce
cmp edi, 0xffffffff
je 0x101bcce
mov edx, dword [esi*8 + 0x102e1dc]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101bcb7
push ebx
lea eax, [ebp - 8]
push eax
sub ecx, esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101c2a1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1037204]
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp eax, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 4], ebx
jne 0x101c2f0
call edi
mov esi, eax
cmp esi, ebx
je 0x101c2d6
mov dword [0x1037204], 1
jmp 0x101c2f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x101c2eb
push 2
pop eax
mov dword [0x1037204], eax
jmp 0x101c2f0
mov eax, dword [0x1037204]
cmp eax, 1
jne 0x101c350
cmp esi, ebx
jne 0x101c308
call edi
mov esi, eax
cmp esi, ebx
jne 0x101c308
xor eax, eax
jmp 0x101c41f
cmp word [esi], bx
mov eax, esi
je 0x101c31d
inc eax
inc eax
cmp word [eax], bx
jne 0x101c30f
inc eax
inc eax
cmp word [eax], bx
jne 0x101c30f
sub eax, esi
inc eax
inc eax
push eax
mov dword [ebp - 4], eax
call fcn.010194d1
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x101c341
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x101c41f
push dword [ebp - 4]
push esi
push edi
call fcn.0101e140
add esp, 0xc
jmp 0x101c333
cmp eax, 2
je 0x101c359
cmp eax, ebx
jne 0x101c301
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x101c301
cmp byte [esi], bl
je 0x101c39a
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x101c301
add dword [ebp - 4], eax
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x101c386
sub eax, edi
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x101c36c
mov esi, dword [ebp - 8]
inc dword [ebp - 4]
push 2
push dword [ebp - 4]
call fcn.01019737
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], edi
jne 0x101c3be
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x101c301
mov eax, dword [ebp - 8]
cmp byte [eax], bl
je 0x101c410
mov ecx, dword [ebp - 4]
mov eax, edi
sub eax, dword [ebp - 0xc]
sar eax, 1
sub ecx, eax
push ecx
push edi
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x101c424
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x101c3e8
sub eax, ecx
lea esi, [esi + eax + 1]
mov eax, edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x101c3fa
sub eax, ecx
sar eax, 1
cmp byte [esi], bl
lea edi, [edi + eax*2 + 2]
jne 0x101c3c5
push dword [ebp - 8]
mov word [edi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 0xc]
call fcn.01017bef
pop ecx
push dword [ebp - 8]
jmp 0x101c3b3