joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10172a0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push 4
mov esi, ecx
push 0x100357c
push dword [esi]
mov dword [ebp - 4], ebx
call edi
cmp dword [esi + 0x10], ebx
jbe 0x10172e2
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x1003800
push dword [esi]
call edi
inc ebx
cmp ebx, dword [esi + 0x10]
jb 0x10172cb
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x1017670
Capabilities:
Delete file
Set file attributes
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], 0xfeff
mov dword [ebp - 8], edi
cmp dword [ebp + 8], edi
jne 0x10176be
mov eax, dword [section..data]
cmp eax, section..data
je 0x10176b4
test byte [eax + 0x1c], 1
je 0x10176b4
push 0x10037a0
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
mov eax, 0x80070057
jmp 0x1017812
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x10176cf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
push ebx
push edi
push 0x80
push 2
push edi
xor edi, edi
inc edi
push edi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x1017727
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100968c
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x10177fc
test byte [eax + 0x1c], 1
je 0x10177fc
push esi
push 0x10037a0
push 0xb
jmp 0x10177bc
push 0x2080
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, section..data
test eax, eax
jne 0x101775f
mov eax, dword [section..data]
cmp eax, ebx
je 0x101775f
test byte [eax + 0x1c], 2
je 0x101775f
push 0x10037a0
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
push 0
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 0xc]
push eax
push dword [esi]
mov dword [ebp - 8], edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
call edi
test eax, eax
je 0x10177cd
cmp dword [ebp - 4], 2
jne 0x10177cd
push 0
lea eax, [ebp - 4]
push eax
push 0x4e
push 0x10037b0
push dword [esi]
call edi
test eax, eax
jne 0x10177c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100968c
mov esi, eax
mov eax, dword [section..data]
cmp eax, ebx
je 0x10177fc
test byte [eax + 0x1c], 1
je 0x10177fc
push esi
push 0x10037a0
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x10177fc
xor esi, esi
jmp 0x101780f
mov eax, dword [section..data]
cmp eax, ebx
je 0x10177ee
test byte [eax + 0x1c], 1
je 0x10177ee
push 0x10037a0
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100968c
mov esi, eax
test esi, esi
jge 0x101780f
cmp dword [ebp - 8], 0
je 0x101780f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x101781d
Capabilities:
Write file on windows

Disassembly:
push 0x10
mov eax, 0x1039974
call fcn.010372df
mov esi, ecx
lea ecx, [ebp - 0x1c]
call fcn.01014810
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
cmp dword [ebp + 8], ebx
jne 0x101787f
mov eax, dword [section..data]
cmp eax, section..data
je 0x1017864
test byte [eax + 0x1c], 1
je 0x1017864
push 0x10037a0
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
mov edi, 0x80070057
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.01014822
mov eax, edi
call fcn.010373cb
ret 0x10
mov ecx, esi
call fcn.010172a0
cmp dword [ebp + 0x14], ebx
jne 0x101788e
inc dword [esi + 0x10]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.010172ee
mov edi, eax
cmp edi, ebx
jge 0x10178d2
mov eax, dword [section..data]
cmp eax, section..data
je 0x1017869
test byte [eax + 0x1c], 1
je 0x1017869
push edi
push 0x10037a0
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x1017869
push ebx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0101482f
add eax, eax
push eax
lea ecx, [ebp - 0x1c]
call fcn.01015d45
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edi, edi
jmp 0x1017869

Function at 0x10178ff
Capabilities:
Write file on windows

Disassembly:
push 0x10
mov eax, 0x1039974
call fcn.010372df
mov esi, ecx
lea ecx, [ebp - 0x1c]
call fcn.01014810
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
cmp dword [ebp + 8], 0
jne 0x1017962
mov eax, dword [section..data]
cmp eax, section..data
je 0x1017947
test byte [eax + 0x1c], 1
je 0x1017947
push 0x10037a0
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
mov ebx, 0x80070057
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.01014822
mov eax, ebx
call fcn.010373cb
ret 4
dec dword [esi + 0x10]
mov ecx, esi
call fcn.010172a0
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push 0x1003804
push eax
call fcn.010157db
add esp, 0xc
mov ebx, eax
push 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0101482f
add eax, eax
push eax
lea ecx, [ebp - 0x1c]
call fcn.01015d45
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x101794c
Function at 0x1017c64
Capabilities:
Check for debugger via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push dword [ebp + 8]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1017cd1
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
test eax, eax
jne 0x1017cc8
mov eax, dword [section..data]
cmp eax, section..data
je 0x1017cc4
test byte [eax + 0x1c], 2
je 0x1017cc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [section..data]
push 0x1003860
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
and dword [ebp - 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1017d01
mov eax, dword [section..data]
cmp eax, section..data
je 0x1017d01
test byte [eax + 0x1c], 2
je 0x1017d01
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [section..data]
push 0x1003860
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
mov eax, dword [ebp - 4]
pop esi
leave
ret 4

Function at 0x1017da7
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
push ebx
push 4
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp + 8], eax
cmp eax, ebx
jne 0x1017e09
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1017de0
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1017ea4
test byte [eax + 0x1c], 1
je 0x1017ea4
push edi
push 0x1003860
push 0xe
jmp 0x1017e90
mov esi, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
push ebx
push ebx
push 4
push eax
call esi
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x1017e50
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1017e32
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1017ea4
test byte [eax + 0x1c], 1
je 0x1017ea4
push edi
push 0x1003860
push 0xf
jmp 0x1017e90
push ebx
push ebx
push ebx
push 2
push dword [eax]
call esi
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x1017e9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1017e74
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1017ea4
test byte [eax + 0x1c], 1
je 0x1017ea4
push edi
push 0x1003860
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x1017ea4
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor edi, edi
cmp edi, ebx
mov esi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jge 0x1017ebd
cmp dword [ebp - 4], ebx
je 0x1017eb8
push dword [ebp - 4]
call esi
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
cmp dword [ebp - 8], ebx
je 0x1017ec7
push dword [ebp - 8]
call esi
cmp dword [ebp + 8], ebx
je 0x1017ed5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1017f49
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x103e010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x418]
push eax
push 0x20119
xor esi, esi
push esi
push 0x1003880
push 0x80000002
call dword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10180ae
push edi
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x414]
push eax
push esi
push 2
push 0x1003768
push esi
push dword [ebp - 0x418]
mov dword [ebp - 0x41c], 0x208
call dword [sym.imp.KERNEL32.dll_RegGetValueW]
push dword [ebp - 0x418]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
cmp edi, esi
je 0x1017ff8
mov eax, dword [section..data]
cmp eax, section..data
je 0x10180ad
test byte [eax + 0x1c], 1
je 0x10180ad
push edi
push 0x1003860
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x10180ad
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x414]
push eax
push 0x1003870
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0100878d
add esp, 0x14
test eax, eax
jl 0x10180ad
mov eax, dword [section..data]
cmp eax, section..data
je 0x101804b
test byte [eax + 0x1c], 4
je 0x101804b
push 0x1003860
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
push 0x44
pop edi
push edi
lea eax, [ebp - 0x470]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x470]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
push esi
mov dword [ebp - 0x470], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, 1
jne 0x10180ad
push dword [ebp - 0x42c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x428]
call esi
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.010084d5
leave
ret
Function at 0x101a670
Capabilities:
Enumerate threads

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
cmp esi, edi
je 0x101a694
mov eax, dword [ebp + 0x14]
shl eax, 2
push eax
push edi
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [ebp + 0x18]
cmp eax, edi
je 0x101a69d
mov dword [eax], edi
push edi
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp + 0x10], eax
cmp eax, 0xffffffff
jne 0x101a6f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x101a6c1
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x101a7fa
test byte [eax + 0x1c], 1
je 0x101a7fa
push esi
push 0x1003c2c
push 0x80
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x101a7fa
push ebx
push 0x1c
pop ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x1c], ebx
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x101a75a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x101a723
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x101a7f3
test byte [eax + 0x1c], 1
je 0x101a7f3
push esi
push 0x1003c2c
push 0x81
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x101a7f3
test esi, esi
je 0x101a763
cmp edi, dword [ebp + 0x14]
jae 0x101a7d8
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x101a7c5
test esi, esi
je 0x101a7c4
push dword [ebp - 0x14]
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [esi + edi*4], eax
test eax, eax
jne 0x101a7c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x101a798
and eax, 0xffff
or eax, 0x80070000
mov ecx, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x101a75a
test byte [eax + 0x1c], 1
je 0x101a75a
push ecx
push 0x1003c2c
push 0x82
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x101a75a
inc edi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x1c], ebx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x101a75a
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x101a7e1
mov dword [eax], edi
xor eax, eax
cmp eax, edi
sbb esi, esi
and esi, 0x7ff8fb70
add esi, 0x80070490
cmp dword [ebp + 0x10], 0
pop ebx
je 0x101a803
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
leave
ret 0x14
Function at 0x101a810
Capabilities:
Enumerate processes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x103e010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebx + ebx]
push eax
push 0
push edi
call sub.msvcrt.dll_memset
mov esi, 0x22c
push esi
lea eax, [ebp - 0x230]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x234], eax
cmp eax, 0xffffffff
jne 0x101a87f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x101a873
mov esi, eax
jmp 0x101a8ed
and eax, 0xffff
or eax, 0x80070000
jmp 0x101a86f
lea ecx, [ebp - 0x230]
push ecx
push eax
mov dword [ebp - 0x230], esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x101a8ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x101a8aa
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x101a8e1
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp + 8]
je 0x101a8d1
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x234]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x101a8ae
jmp 0x101a8df
lea eax, [ebp - 0x20c]
push eax
push ebx
push edi
call fcn.0100a010
xor esi, esi
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.010084d5
leave
ret 0xc
Function at 0x101ce71
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x103e010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 0x41c], ecx
cmp dword [esi + 0x34], ecx
je 0x101cecd
mov dword [ebp - 0x418], ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x101d087
test byte [eax + 0x1c], 4
je 0x101d087
push 0x1003d30
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
jmp 0x101d072
push ebx
mov dword [esi + 0x34], 1
mov eax, dword [section..data]
mov ebx, section..data
cmp eax, ebx
je 0x101cf03
test byte [eax + 0x1c], 8
je 0x101cf03
push dword [esi + 0x69c]
push 0x1003d30
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008bcd
xor ecx, ecx
push edi
push ecx
push ecx
push ecx
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x1003dc8
push ecx
lea eax, [ebp - 0x41c]
push eax
call fcn.01016f84
mov dword [ebp - 0x418], eax
test eax, eax
jge 0x101cf59
mov eax, dword [section..data]
cmp eax, ebx
je 0x101d070
test byte [eax + 0x1c], 1
je 0x101d070
push dword [ebp - 0x418]
push 0x1003d30
push 0x12
jmp 0x101d05d
push dword [esi + 0x69c]
lea eax, [ebp - 0x414]
push 0x1003db8
push edi
push eax
call fcn.0100878d
add esp, 0x10
mov dword [ebp - 0x418], eax
test eax, eax
jge 0x101cfa7
mov eax, dword [section..data]
cmp eax, ebx
je 0x101d070
test byte [eax + 0x1c], 1
je 0x101d070
push dword [ebp - 0x418]
push 0x1003d30
push 0x13
jmp 0x101d05d
mov edi, dword [esi]
lea ecx, [esi + 0x368]
call fcn.01025549
push eax
push dword [ebp - 0x41c]
mov ecx, esi
call dword [edi + 0x3c]
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x418], eax
jge 0x101cff2
mov eax, dword [section..data]
cmp eax, ebx
je 0x101d070
test byte [eax + 0x1c], 1
je 0x101d070
push dword [ebp - 0x418]
push 0x1003d30
push 0x14
jmp 0x101d05d
cmp dword [ebp - 0x41c], edi
je 0x101d00c
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x41c], edi
push edi
lea eax, [ebp - 0x414]
push eax
push 1
push 5
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x6a0]
call sub.wer.dll_WerpAddFile
cmp eax, edi
mov dword [ebp - 0x418], eax
jge 0x101d06a
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [section..data]
cmp eax, ebx
je 0x101d070
test byte [eax + 0x1c], 1
je 0x101d070
push dword [ebp - 0x418]
push 0x1003d30
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x101d070
mov dword [ebp - 0x418], edi
pop edi
pop ebx
cmp dword [ebp - 0x41c], 0
je 0x101d087
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
xor ecx, ebp
pop esi
call fcn.010084d5
leave
ret
Function at 0x101df05
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], edi
xor ebx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
xor esi, esi
cmp dword [ebp - 4], esi
jne 0x101dffc
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push 5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x101df6a
test edi, edi
je 0x101df48
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov ebx, dword [ebp - 0xc]
add ebx, 0x2000
push ebx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ecx
test edi, edi
je 0x101e00e
inc esi
cmp esi, 0xa
jb 0x101df28
jmp 0x101dfc2
test eax, eax
jl 0x101e034
mov edx, dword [ebp + 8]
mov eax, edi
mov dword [ebp - 4], 1
cmp dword [edi + 0x44], edx
je 0x101df90
mov ecx, dword [eax]
test ecx, ecx
je 0x101dfc2
add eax, ecx
cmp dword [eax + 0x44], edx
jne 0x101df83
mov ecx, dword [eax + 4]
xor edx, edx
test ecx, ecx
jbe 0x101dfc2
add eax, 0xf0
cmp dword [eax - 4], 5
jne 0x101dfb3
cmp dword [eax], 5
jne 0x101dfb3
inc edx
add eax, 0x40
cmp edx, ecx
jb 0x101df9e
jmp 0x101dfc2
and dword [ebp - 4], 0
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 8]
cmp dword [ebp - 8], 0xa
jb 0x101df1d
cmp dword [ebp - 4], 0
jne 0x101dffc
mov eax, dword [section..data]
cmp eax, section..data
je 0x101dffc
test byte [eax + 0x1c], 1
je 0x101dffc
push dword [ebp + 8]
push 0x1003e08
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
test edi, edi
je 0x101e007
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, dword [section..data]
cmp eax, section..data
je 0x101dffc
test byte [eax + 0x1c], 1
je 0x101dffc
push 0x1003e08
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
jmp 0x101dffc
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x101dffc
test byte [ecx + 0x1c], 1
je 0x101dffc
push eax
push 0x1003e08
push 0xb
push dword [ecx + 0x14]
push dword [ecx + 0x10]
jmp 0x101dff7
Function at 0x101fd49
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
call fcn.0101c02d
test eax, eax
je 0x101fd85
mov eax, dword [section..data]
cmp eax, section..data
je 0x101fd7e
test byte [eax + 0x1c], 8
je 0x101fd7e
push 0x1003e08
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
mov eax, 0x800704c7
jmp 0x101fdf2
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
push edi
push edi
push esi
push 0x101f597
mov dword [esi + 0x6dc], eax
mov eax, dword [ebp + 8]
push edi
push edi
mov dword [esi + 0x6d8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x6a8], eax
cmp eax, edi
jne 0x101fdef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x101fdc8
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x101fdef
test byte [eax + 0x1c], 1
je 0x101fdef
push edi
push 0x1003e08
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
Function at 0x102129f
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0xc]
call fcn.01014810
and dword [ebp - 0x6c], 0
push 0x5c
lea eax, [ebp - 0x68]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor ebx, ebx
inc ebx
push ebx
push 0x1160
push dword [0x103ec44]
call sub.ntdll.dll_WinSqmSetDWORD
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.01015d45
push eax
push dword [0x103ec40]
lea eax, [ebp - 0xc]
push 0x429
push eax
call fcn.01015323
add esp, 0x10
test eax, eax
jge 0x1021335
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1021328
test byte [ecx + 0x1c], bl
je 0x1021328
push eax
push 0x1003f64
push 0x10
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01008600
push 0x100181c
lea ecx, [ebp - 0xc]
call fcn.01014c4a
mov eax, dword [0x103ec40]
mov ecx, edi
mov dword [ebp - 0x6c], 0x60
mov dword [ebp - 0x64], eax
call fcn.01015d45
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x58], eax
call fcn.01015d45
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x18], 0x1021b7f
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x60], 0xc08
mov dword [ebp - 0x5c], 8
mov dword [esi + 4], ebx
mov dword [esi + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x20], eax
lea eax, [ebp - 0x6c]
push eax
push 0
push 0x465
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esi + 0x2c]
push dword [ecx]
push 4
call fcn.01020b37
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x34]
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esi + 8]
call fcn.01020f08
lea ecx, [ebp - 0xc]
call fcn.01014822
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret