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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
mov esi, ecx
push dword [esi + 4]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call edi
mov dword [esi + 0xc], eax
sub eax, ebx
je 0x100e51a
dec eax
dec eax
je 0x100e516
sub eax, 3
jne 0x100e559
push 4
pop eax
jmp 0x100e571
push 5
jmp 0x100e513
cmp dword [ebp - 8], 3
mov dword [ebp - 0x10], ebx
jne 0x100e559
push dword [ebp - 4]
call fcn.010056e5
cmp eax, ebx
pop ecx
mov dword [ebp - 0xc], eax
jne 0x100e537
push 2
jmp 0x100e513
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
push dword [esi + 4]
call edi
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x100e55e
push dword [ebp - 0xc]
call fcn.010056f5
pop ecx
xor eax, eax
inc eax
jmp 0x100e571
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x100e57d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
push edi
mov edi, dword [ebp + 0x10]
push edi
push 0
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
mov esi, ecx
push dword [esi + 4]
call ebx
test eax, eax
mov dword [esi + 0xc], eax
jne 0x100e61c
cmp dword [ebp + 0x10], 7
jne 0x100e61c
mov eax, dword [edi]
test eax, eax
jne 0x100e5c7
and dword [edi], eax
push 0x1002530
push 0xc
call sub.wbemcomn.dll_int___cdecl_DebugTrace_char__char_const__
pop ecx
pop ecx
jmp 0x100e631
push eax
call fcn.010056e5
test eax, eax
pop ecx
mov dword [ebp - 4], eax
jne 0x100e5da
push 2
pop eax
jmp 0x100e634
push edi
push eax
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [esi + 4]
call ebx
test eax, eax
mov dword [esi + 0xc], eax
je 0x100e610
push dword [ebp - 4]
call fcn.010056f5
and dword [edi], 0
push dword [esi + 0xc]
push 0x1002508
push 0xc
call sub.wbemcomn.dll_int___cdecl_DebugTrace_char__char_const__
add esp, 0x10
jmp 0x100e631
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
xor eax, eax
jmp 0x100e634
and dword [edi], 0
push dword [esi + 0xc]
push 0x1002508
push 0xc
call sub.wbemcomn.dll_int___cdecl_DebugTrace_char__char_const__
add esp, 0xc
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x100e640
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
push 4
lea eax, [ebp + 0xc]
push eax
push 4
xor edi, edi
push edi
push dword [ebp + 8]
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, edi
mov dword [esi + 0xc], eax
je 0x100e668
inc edi
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
Function at 0x100e675
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0x10]
xor edi, edi
push dword [ebp + 0xc]
mov esi, ecx
push 3
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, edi
mov dword [esi + 0xc], eax
je 0x100e69d
inc edi
mov eax, edi
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x100e6d5
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 4]
push eax
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0xea
mov dword [esi + 0xc], eax
jne 0x100e759
add dword [ebp - 4], 0x100
mov eax, dword [ebp - 4]
add eax, eax
push eax
call fcn.010056e5
pop ecx
push eax
mov ecx, ebx
call fcn.0100e6aa
cmp dword [ebx + 4], edi
je 0x100e776
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
push edi
push edi
push edi
mov dword [ecx], eax
mov eax, dword [ebx + 4]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0xea
mov dword [esi + 0xc], eax
je 0x100e70f
mov esi, dword [esi + 0xc]
xor eax, eax
cmp esi, edi
je 0x100e76f
cmp esi, 0x103
sete al
lea eax, [eax + eax + 1]
pop edi
pop esi
pop ebx
leave
ret 0xc
push 2
pop eax
jmp 0x100e76f
Function at 0x100fc78
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
mov eax, 0x1022bec
call fcn.01014f68
sub esp, 0x248
mov eax, dword [0x10309f4]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
mov dword [ebp - 0x10], eax
mov eax, ecx
mov dword [ebp - 0x22c], esi
jne 0x100fcad
mov eax, 0x80041008
jmp 0x100fe62
push edi
lea ecx, [ebp - 0x244]
push ecx
lea ecx, [ebp - 0x228]
push ecx
push 0x104
push esi
push dword [eax + 0x18]
mov dword [ebp - 0x244], esi
push esi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x100fe51
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100fcf6
mov eax, 0x80041001
jmp 0x100fe61
test ax, 0x1755
jne 0x100fcec
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x238], edi
je 0x100fe28
mov dword [ebp - 0x254], edi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x23c]
push eax
push edi
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x234], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [ebp - 0x230], eax
push esi
lea eax, [ebp - 0x24c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x100fe11
push dword [ebp - 0x230]
call fcn.010056e5
mov edi, eax
pop ecx
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x250], edi
mov byte [ebp - 4], 1
cmp edi, esi
je 0x100fdf4
push esi
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x230]
push edi
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100fde8
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x234]
push edi
call sub.wbemcomn.dll_public:_static_void___stdcall_MD5::Transform_void___unsigned_int__unsigned_char__const_
mov eax, dword [ebp - 0x24c]
lea esi, [ebp - 0x20]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x248]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x230]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x240]
mov dword [ebx + 0x18], eax
jmp 0x100fdfe
mov dword [ebp - 0x22c], 0x80041044
jmp 0x100fdfe
mov dword [ebp - 0x22c], 0x80041006
mov byte [ebp - 4], 0
push edi
call fcn.010056f5
mov edi, dword [ebp - 0x238]
pop ecx
jmp 0x100fe1b
mov dword [ebp - 0x22c], 0x80041001
or dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100fe5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x228]
push eax
push 0x10026d4
push 0xc
call sub.wbemcomn.dll_int___cdecl_ErrorTrace_char__char_const__
add esp, 0x10
mov dword [ebp - 0x22c], 0x80041001
jmp 0x100fe5b
mov dword [ebp - 0x22c], 0x80041002
mov eax, dword [ebp - 0x22c]
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01014c6a
leave
ret 4
Function at 0x1011ffe
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
mov eax, 0x10233c3
call fcn.01014f68
push ecx
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
xor edi, edi
push 0x64
push edi
lea ecx, [esi + 0x18]
mov dword [ebp - 0x10], esi
mov dword [esi], fcn.01012066
mov dword [esi + 4], eax
mov dword [esi + 0xc], edi
mov dword [esi + 0x14], edi
call sub.wbemcomn.dll_public:_void___thiscall_CFlexArray::constructor_int__int_
mov dword [ebp - 4], edi
lea ecx, [esi + 0x30]
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
call fcn.01011d79
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.01011e80
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x1012336
Capabilities:
Create thread

Disassembly:
mov eax, 0x102341f
call fcn.01014f68
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
mov esi, ecx
cmp dword [esi + 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1012423
push edi
lea eax, [esi + 0x30]
push eax
lea ecx, [ebp - 0x14]
call fcn.01011f8a
mov dword [ebp - 4], ebx
cmp dword [esi + 0xc], ebx
jne 0x10123fe
mov ecx, esi
call fcn.01011e80
test eax, eax
je 0x10123f7
mov eax, dword [esi + 0x18]
cmp eax, ebx
jle 0x101238a
push ebx
push eax
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
lea edi, [esi + 0x10]
push edi
push ebx
push esi
push 0x101228e
push ebx
push ebx
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x10123f7
push 0xea60
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
mov eax, dword [esi + 4]
je 0x10123e0
push dword [eax + 0x14]
mov dword [ebp - 0x10], 0x80041001
push 0x1002ec8
push 0xc
call sub.wbemcomn.dll_int___cdecl_ErrorTrace_char__char_const__
add esp, 0xc
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x10123fe
push dword [edi]
mov eax, dword [eax + 0x14]
push eax
push 0x1002ea8
push 0xc
call sub.wbemcomn.dll_int___cdecl_DebugTrace_char__char_const__
add esp, 0x10
jmp 0x10123fe
mov dword [ebp - 0x10], 0x80041001
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x10], ebx
pop edi
jge 0x1012423
push dword [ebp - 0x10]
push 0x1002e84
push 0xc
call sub.wbemcomn.dll_int___cdecl_ErrorTrace_char__char_const__
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x1012eab
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x1001554
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1012f02
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1003044
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret
Function at 0x1013c8d
Capabilities:
Set registry value

Disassembly:
mov eax, 0x10237ca
call fcn.01014f68
sub esp, 0x10
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
xor edi, edi
mov dword [ebp - 4], edi
push 4
call fcn.01013b47
cmp dword [esi + 0x40], edi
je 0x1013cfa
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea eax, [ebp - 0x10]
push eax
push 0x20006
push edi
push 0x1001554
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x1013cfa
push 8
lea eax, [ebp - 0x1c]
push eax
push 3
push edi
push 0x1003318
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esi + 0x3c]
cmp ecx, edi
je 0x1013d0e
call fcn.01006f48
mov ecx, dword [esi + 0x3c]
call fcn.01009c9e
push ebx
push 2
lea edi, [esi + 0x10]
pop ebx
mov ecx, dword [edi]
test ecx, ecx
je 0x1013d20
call fcn.01012d57
add edi, 4
dec ebx
jne 0x1013d15
mov ecx, dword [esi + 0x18]
test ecx, ecx
pop ebx
je 0x1013d33
call fcn.01012d57
cmp dword [esi + 0x2c], 0
je 0x1013d42
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [esi + 0x30], 0
je 0x1013d51
mov eax, dword [esi + 0x30]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x34]
test eax, eax
je 0x1013d5f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1013d6d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetEvent]
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0100e252
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x101420c
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov eax, 0x10238cc
call fcn.01014f68
sub esp, 0x1c
push ebx
push edi
lea eax, [ebp - 0x14]
push eax
push 0x10036fc
push 1
xor ebx, ebx
push ebx
push 0x10037cc
mov edi, ecx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], ebx
cmp eax, ebx
jl 0x1014302
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 0x10033cc
call esi
push 0x10033ac
mov dword [ebp - 0x1c], eax
call esi
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], ecx
mov byte [ebp - 4], 1
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 2
cmp ecx, ebx
je 0x10142d9
cmp eax, ebx
je 0x10142d9
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
lea esi, [edi + 0x2c]
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
call dword [edx + 0xc]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jl 0x10142e0
push ebx
push ebx
push ebx
push 3
push 4
push ebx
push ebx
push 0xa
push dword [esi]
call fcn.0101527c
cmp eax, ebx
mov dword [ebp - 0x10], eax
jl 0x10142e0
mov esi, dword [esi]
mov eax, dword [esi]
push ebx
lea ecx, [edi + 0x30]
push ecx
push ebx
push ebx
push dword [ebp - 0x18]
push esi
call dword [eax + 0x18]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jl 0x10142e0
push 1
mov ecx, edi
call fcn.01013b47
jmp 0x10142e0
mov dword [ebp - 0x10], 0x80041006
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], ebx
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
je 0x10142f4
push dword [ebp - 0x18]
call esi
mov byte [ebp - 4], bl
cmp dword [ebp - 0x1c], ebx
je 0x1014301
push dword [ebp - 0x1c]
call esi
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.01005807
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x101437d
Capabilities:
Create thread

Disassembly:
mov eax, 0x102391a
call fcn.01014f68
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.0101420c
push 0x101356a
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0x24], eax
jne 0x10143be
mov edi, 0x80041001
jmp 0x101446c
lea eax, [esi + 0x34]
push eax
push 0x10
push ebx
push 0x1003468
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10143b4
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0x38], eax
je 0x10143b4
push 1
push eax
push 4
push 1
push dword [esi + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
test eax, eax
jne 0x10143b4
call fcn.01012eab
mov dword [esi + 0x1c], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push 0x1012fba
push ebx
push ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.msvcrt.dll__beginthreadex]
push dword [ebp - 0x10]
mov dword [esi + 0x20], eax
push 0x1003444
push 0xc
call sub.wbemcomn.dll_int___cdecl_DebugTrace_char__char_const__
add esp, 0x24
cmp dword [esi + 0x20], 0xffffffff
je 0x10143b4
push 0x20
call fcn.010056e5
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x101444f
mov ecx, eax
call fcn.01008096
jmp 0x1014451
xor eax, eax
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
mov dword [esi + 0x18], eax
jne 0x1014463
mov edi, 0x80041006
jmp 0x101446c
mov ecx, eax
call fcn.01006c91
mov edi, eax
push 0x18
call fcn.010056e5
pop ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
cmp eax, ebx
je 0x1014490
push 0x1003430
mov ecx, eax
call fcn.01009c4c
jmp 0x1014492
xor eax, eax
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
mov dword [esi + 0x3c], eax
je 0x10144a4
mov ecx, eax
call fcn.0100956e
cmp edi, ebx
jl 0x1014548
push 0x2c
call fcn.010056e5
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 2
cmp eax, ebx
je 0x10144d1
push dword [esi + 0x3c]
mov ecx, eax
push dword [esi + 0x18]
call fcn.01007e34
jmp 0x10144d3
xor eax, eax
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
mov dword [esi + 0x10], eax
je 0x10144f4
push dword [ebp + 0xc]
mov ecx, eax
push dword [ebp + 8]
push 0x1001400
call fcn.01007376
mov edi, eax
jmp 0x10144f9
mov edi, 0x80041006
cmp edi, ebx
jl 0x1014548
push 0x2c
call fcn.010056e5
pop ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 3
cmp eax, ebx
je 0x1014522
push dword [esi + 0x3c]
mov ecx, eax
push dword [esi + 0x18]
call fcn.01007e34
jmp 0x1014524
xor eax, eax
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
mov dword [esi + 0x14], eax
je 0x1014543
push dword [ebp + 0xc]
mov ecx, eax
push dword [ebp + 8]
push 0x10013d0
call fcn.01007376
jmp 0x1014548
mov edi, 0x80041006
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x1014d82
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1003670
call fcn.01015128
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1014dbf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1014dbf
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1014dd7
cmp eax, 0x20b
je 0x1014dc4
mov dword [ebp - 0x1c], ebx
jmp 0x1014deb
cmp dword [ecx + 0x84], 0xe
jbe 0x1014dbf
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1014de5
cmp dword [ecx + 0x74], 0xe
jbe 0x1014dbf
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1031608], 0xffffffff
or dword [0x103160c], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x103157c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1031578]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1031604], eax
call fcn.01015200
cmp dword [0x1030a00], ebx
jne 0x1014e46
push fcn.01015200
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010151e9
push 0x102e034
push 0x102e030
call sub.msvcrt.dll__initterm
mov eax, dword [0x1031574]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1031570]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x102e02c
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x1014edc
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1014eb0
cmp al, 0x22
jne 0x1014ea2
cmp byte [esi], 0x22
jne 0x1014eb9
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1014ec3
cmp al, 0x20
jbe 0x1014eb5
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x1014ee7
movzx eax, word [ebp - 0x50]
jmp 0x1014eea
cmp byte [esi], 0x20
jbe 0x1014eb9
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1014edc
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1014f07
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1014f3c
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01015163
ret
Function at 0x1015b0e
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1023a17
call fcn.01014f68
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ebx
push 0x20019
push dword [0x1030b8c]
lea ecx, [ebp - 0x20]
push 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.01015568
test eax, eax
jne 0x1015c26
lea eax, [ebp - 0x24]
push eax
push dword [0x1030b90]
lea ecx, [ebp - 0x20]
push ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
call fcn.010155a4
test eax, eax
jne 0x1015c26
mov eax, dword [ebp - 0x24]
shl eax, 2
push eax
mov byte [ebp - 4], 1
call fcn.010056e5
mov esi, eax
cmp esi, ebx
pop ecx
mov dword [ebp - 0x14], esi
je 0x1015c26
lea eax, [ebp - 0x24]
push eax
push dword [0x1030b90]
lea ecx, [ebp - 0x20]
push esi
call fcn.010155a4
test eax, eax
jne 0x1015c1d
push ebx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call esi
mov edi, eax
cmp edi, ebx
je 0x1015c1d
shl eax, 2
push eax
call fcn.010056e5
mov ebx, eax
test ebx, ebx
pop ecx
mov dword [ebp - 0x1c], ebx
je 0x1015c1d
push edi
push ebx
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x1015c12
push dword [0x1030b94]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call esi
push ebx
mov edi, eax
call esi
add edi, eax
lea eax, [edi + edi + 2]
push eax
call fcn.010056e5
mov esi, eax
test esi, esi
pop ecx
mov dword [ebp - 0x18], esi
je 0x1015c12
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [0x1030b94]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
call fcn.010056f5
and dword [ebp - 0x1c], 0
pop ecx
push dword [ebp - 0x14]
call fcn.010056f5
pop ecx
lea ecx, [ebp - 0x20]
call fcn.010154f5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x1015f46
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x1023a93
call fcn.01014f68
sub esp, 0x10
push esi
push edi
xor edi, edi
push edi
lea ecx, [ebp - 0x1c]
call fcn.01015ddd
cmp dword [ebp - 0x18], edi
je 0x101603d
cmp dword [0x1031590], edi
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
jne 0x1015fb8
push dword [0x1030b30]
push edi
push dword [ebp - 0x18]
call esi
cmp eax, edi
mov dword [0x1031590], eax
jne 0x1015fb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1015fae
cmp eax, edi
jle 0x1015fa7
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x1016042
mov edi, 0x8007000e
jmp 0x1016042
cmp dword [0x1031588], edi
jne 0x1015fd5
push dword [0x1030b34]
push edi
push dword [ebp - 0x18]
call esi
cmp eax, edi
mov dword [0x1031588], eax
je 0x1015f8c
cmp dword [0x1031598], edi
jne 0x1015ff2
push dword [0x1030b38]
push edi
push dword [ebp - 0x18]
call esi
cmp eax, edi
mov dword [0x1031598], eax
je 0x1015f8c
cmp dword [0x10315cc], edi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
jne 0x1016014
push edi
push edi
push 1
push edi
call esi
cmp eax, edi
mov dword [0x10315cc], eax
je 0x1015f8c
cmp dword [0x10315d4], edi
jne 0x1016030
push edi
push edi
push 1
push edi
call esi
cmp eax, edi
mov dword [0x10315d4], eax
je 0x1015f8c
push 0x103159c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x1016042
mov edi, 0x80004005
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.01015ee3
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret