joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007bd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x10007bfc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x10007c1e
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x10007c20
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x10007cc0
jg 0x10007c3d
test esi, esi
je 0x10007cc0
test ecx, ecx
jl 0x10007c8a
jg 0x10007c47
test eax, eax
je 0x10007c8a
cmp ebx, ecx
jg 0x10007c5b
jl 0x10007c51
cmp esi, eax
jae 0x10007c5b
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x10007c91
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x10007cc0
jg 0x10007c9b
test esi, esi
je 0x10007cc0
cmp dword [edi + 0x4c], 0
je 0x10007cc0
mov ecx, edi
call fcn.10008570
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10007ff0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10021008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10008020
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10016f21
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10008050
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10008050
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10016f21
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x10008125
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10008079
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10008085
movsx eax, bl
jmp 0x100080bc
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x10008125
cmp eax, 1
jle 0x100080e6
cmp eax, 3
jne 0x10008125
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10016f21
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10008104
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10008125
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x10008125
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10016f21
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10016f21
mov esp, ebp
pop ebp
ret 4
Function at 0x100085a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10021008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x10008643
cmp byte [esi + 0x3d], 0
je 0x10008643
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x100085f8
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x1000860a
sub eax, 1
je 0x1000860e
sub eax, 2
je 0x10008643
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10016f21
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1000862c
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x100085f8
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10016f21
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.10016f21
mov esp, ebp
pop ebp
ret
Function at 0x1000a7b0
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019198
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x10021008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x58], ecx
lea ecx, [ebp - 0x48]
push eax
call fcn.10009e60
push 0
push 0
push 0
push 0
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_64.0.3282.140_Safari_537.36_Edge_17.17134
mov dword [ebp - 4], 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x1000a92d
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
push 0
push dword [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edx, eax
mov dword [ebp - 0x5c], edx
test edx, edx
je 0x1000a92d
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, 0x800000
cmovae ecx, dword [ebp - 0x28]
xor esi, esi
cmp dword [ebp - 0x48], 2
cmovne eax, esi
push eax
push esi
push esi
push esi
push ecx
push 0x1001b4e4
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
test edi, edi
je 0x1000a92d
push esi
xor edx, edx
mov ecx, edi
call fcn.10009fb0
add esp, 4
test eax, eax
je 0x1000a92d
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1000a92d
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
lea eax, [ebp - 0x4c]
push eax
push edi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
call ebx
test eax, eax
je 0x1000a916
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x1000a916
push eax
call fcn.100175d7
mov esi, eax
add esp, 4
test esi, esi
je 0x1000a916
push dword [ebp - 0x4c]
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x4c]
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1000a8f5
push dword [ebp - 0x54]
mov eax, dword [ebp - 0x4c]
add eax, esi
push eax
mov eax, dword [ebp - 0x58]
mov ecx, eax
push esi
push dword [eax + 4]
call fcn.1000aab0
push esi
call fcn.100174d4
add esp, 4
cmp dword [ebp - 0x50], 0
je 0x1000a916
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
push eax
push edi
call ebx
test eax, eax
jne 0x1000a8a7
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call esi
push dword [ebp - 0x5c]
call esi
push dword [ebp - 0x54]
call esi
xor esi, esi
jmp 0x1000a930
or esi, 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.1000a710
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10016f21
mov esp, ebp
pop ebp
ret 8
Function at 0x100131c0
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.10018240
mov eax, dword [0x10021008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, ecx
push ebx
mov dword [ebp - 0x2020], ebx
call edi
test eax, eax
je 0x1001336f
push esi
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push 0x1007cfd0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x2018], esi
cmp esi, 0xffffffff
je 0x1001336e
push 0x2004
lea eax, [ebp - 0x2008]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x2024], 0
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call edi
mov esi, eax
mov dword [ebp - 0x201c], esi
cmp esi, 0x2004
jge 0x1001337f
lea edi, [ebp - 0x2008]
mov byte [ebp - 0x2009], 1
mov dword [ebp - 0x2014], edi
xor edx, edx
test esi, esi
jle 0x10013336
cmp esi, 0x40
jb 0x10013313
lea eax, [ebx - 1]
lea ecx, [esi - 1]
add eax, esi
add ecx, edi
cmp edi, eax
ja 0x1001329d
cmp ecx, ebx
jae 0x10013313
mov eax, esi
and eax, 0x8000003f
jns 0x100132ab
dec eax
or eax, 0xffffffc0
inc eax
movaps xmm1, xmmword [0x1001c1e0]
mov ecx, esi
sub ecx, eax
mov esi, ebx
sub esi, edi
mov eax, edi
mov dword [ebp - 0x2010], esi
mov esi, dword [ebp - 0x201c]
mov edi, dword [ebp - 0x2010]
nop
movups xmm0, xmmword [edi + eax]
lea eax, [eax + 0x40]
pxor xmm0, xmm1
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [ebx + edx + 0x10]
pxor xmm0, xmm1
movups xmmword [eax - 0x30], xmm0
movups xmm0, xmmword [ebx + edx + 0x20]
pxor xmm0, xmm1
movups xmmword [eax - 0x20], xmm0
movups xmm0, xmmword [ebx + edx + 0x30]
add edx, 0x40
pxor xmm0, xmm1
movups xmmword [eax - 0x10], xmm0
cmp edx, ecx
jl 0x100132d0
mov edi, dword [ebp - 0x2014]
cmp edx, esi
jge 0x10013336
sub ebx, edi
lea ecx, [edx + edi]
sub esi, edx
nop
mov al, byte [ecx + ebx]
lea ecx, [ecx + 1]
xor al, 0x60
mov byte [ecx - 1], al
sub esi, 1
jne 0x10013320
mov ebx, dword [ebp - 0x2020]
push 0
lea eax, [ebp - 0x2024]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [ebp - 0x2018]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x2009], 0
jne 0x1001336e
push edi
call fcn.100174d4
add esp, 4
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10016f21
mov esp, ebp
pop ebp
ret
push esi
call fcn.100175d7
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0x2014], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov byte [ebp - 0x2009], 0
test edi, edi
jne 0x10013278
mov esi, dword [ebp - 0x2018]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.10016f21
mov esp, ebp
pop ebp
ret
Function at 0x100133d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
push 0
lea eax, [ebp - 4]
mov edi, ecx
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10013400
sub ecx, edx
mov edx, dword [ebp - 4]
lea esi, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x10013410
sub edx, esi
lea eax, [ecx + 3]
add eax, edx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [ebp - 4]
mov esi, eax
push edi
push str._s:__s
push esi
call fcn.10001810
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push dword [ebp - 4]
call esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10013460
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x18], esi
mov edi, dword [esi]
mov ebx, dword [esi + 4]
mov dword [ebp - 4], ebx
cmp dword [edi + 0x84], 0
jbe 0x100135f6
mov edi, dword [edi + 0x80]
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
add edi, ebx
push 0x14
push edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], eax
call eax
test eax, eax
jne 0x100135f6
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x10], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], eax
nop dword [eax]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x100135f6
add eax, ebx
push eax
call ecx
mov ebx, eax
test ebx, ebx
je 0x10013573
mov eax, dword [esi + 0xc]
lea eax, [eax*4 + 4]
push eax
push dword [esi + 8]
call dword [ebp - 0x10]
mov ecx, eax
add esp, 8
mov dword [esi + 8], ecx
test ecx, ecx
je 0x100135ed
mov eax, dword [esi + 0xc]
mov dword [ecx + eax*4], ebx
inc dword [esi + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x1001350f
mov ecx, dword [edi + 0x10]
jmp 0x10013514
mov eax, dword [edi + 0x10]
mov ecx, eax
mov edx, dword [ebp - 4]
lea edi, [eax + edx]
mov eax, dword [edi]
lea esi, [ecx + edx]
test eax, eax
je 0x1001354e
jns 0x1001352a
movzx eax, ax
jmp 0x1001352f
add edx, 2
add eax, edx
push eax
push ebx
call dword [ebp - 8]
mov dword [esi], eax
test eax, eax
je 0x100135ed
mov eax, dword [edi + 4]
add edi, 4
mov edx, dword [ebp - 4]
add esi, 4
test eax, eax
jne 0x10013523
mov edi, dword [ebp - 0xc]
add edi, 0x14
push 0x14
push edi
mov dword [ebp - 0xc], edi
call dword [ebp - 0x14]
test eax, eax
jne 0x100135f6
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
jmp 0x100134c0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov ecx, dword [ebp - 8]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100135a0
sub ecx, edx
lea eax, [ecx + 0x15]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [ebp - 8]
mov esi, eax
push str.Cant_load_library
push str._s:__s
push esi
call fcn.10001810
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push dword [ebp - 8]
call esi
mov ecx, dword [edi + 0xc]
add ecx, dword [ebp - 4]
call fcn.100133d0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10013d90
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc10
mov eax, dword [0x10021008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x400
lea eax, [ebp - 0x408]
mov esi, edx
push 0
push eax
mov edi, ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xc0c], 0x200
lea eax, [ebp - 0xc0c]
push eax
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x10013df3
push str.UnKnow
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x800
lea eax, [ebp - 0xc08]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0xc08]
push str.Software_s_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
push ecx
push edi
lea edx, [ebp - 0xc08]
call fcn.10015830
mov ecx, dword [ebp - 4]
add esp, 0x14
test eax, eax
setne al
xor ecx, ebp
pop edi
pop esi
call fcn.10016f21
mov esp, ebp
pop ebp
ret

Function at 0x10013e60
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc08
mov eax, dword [0x10021008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x400
push 0
push 0x1007e310
mov esi, ecx
call sub.VCRUNTIME140.dll_memset
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0xc08], 0x200
lea eax, [ebp - 0xc08]
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x10013ed1
push str.UnKnow
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x800
lea eax, [ebp - 0xc04]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0xc04]
push str.Software_s_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea edx, [ebp - 0xc04]
push 0x400
push ecx
push 0x1007e310
push ecx
push esi
mov ecx, SysReAllocString
call fcn.100152e0
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
mov eax, 0x1007e310
pop esi
call fcn.10016f21
mov esp, ebp
pop ebp
ret
Function at 0x10016560
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push esi
push 0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x10], eax
mov al, byte [ebp + 0x18]
push 0
push 0
mov byte [ebp - 0xc], al
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push 0x100164b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100165c0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1001dd48
push 0x100175e0
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x10021008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x128], ecx
push str.user32.dll
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call edi
mov dword [ebp - 0x120], eax
push str.GetThreadDesktop
push eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov ebx, eax
push str.GetUserObjectInformationA
push dword [ebp - 0x120]
call esi
mov dword [ebp - 0x12c], eax
push str.SetThreadDesktop
push dword [ebp - 0x120]
call esi
mov dword [ebp - 0x130], eax
push str.CloseDesktop
push dword [ebp - 0x120]
call esi
mov dword [ebp - 0x134], eax
push str.kernel32.dll
call edi
mov dword [ebp - 0x138], eax
push 0x1001c040
push eax
call esi
call eax
push eax
call ebx
mov ebx, eax
mov esi, 1
mov dword [ebp - 0x124], esi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x13c]
push eax
push 0x100
lea eax, [ebp - 0x11c]
push eax
push 2
mov edi, dword [ebp - 0x128]
push edi
call dword [ebp - 0x12c]
test eax, eax
jne 0x100166b6
xor esi, esi
mov dword [ebp - 0x124], esi
jmp 0x100166c8
push edi
call dword [ebp - 0x130]
test eax, eax
je 0x100166ac
push ebx
call dword [ebp - 0x134]
mov dword [ebp - 4], 0xfffffffe
call fcn.100166f8
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10016f21
mov esp, ebp
pop ebp
ret
Function at 0x100167f0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10021008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1001be68
mov dword [ebp - 0x20], edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push str.OpenProcessToken
push ebx
call edi
push str.AdjustTokenPrivileges
push ebx
mov esi, eax
call edi
push str.LookupPrivilegeValueW
push ebx
mov dword [ebp - 0x18], eax
call edi
push str.kernel32.dll
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push 0x1001af40
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x1c]
push ecx
push 0x28
call eax
push eax
call esi
test eax, eax
jne 0x10016872
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10016f21
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
neg eax
mov dword [ebp - 0x14], 1
sbb eax, eax
and eax, 2
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
push 0x1001b9c0
push 0
call dword [ebp - 0x24]
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x1c]
call dword [ebp - 0x18]
push 0x1001c0bc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x1001c0d8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, 1
call eax
push dword [ebp - 0x1c]
xor ecx, ecx
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x100168e4
push ebx
call esi
test edi, edi
je 0x100168eb
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10016f21
mov esp, ebp
pop ebp
ret
Function at 0x10016cf0
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x10021008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1007d0dc]
push esi
test eax, eax
je 0x10016d16
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x208
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x238], eax
xorps xmm0, xmm0
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x268]
movlpd qword [ebp - 0x258], xmm0
push eax
push 0
push 0
push 0x4000010
push 0
push 0
push 0
push str._NOFOCUS__checkin
lea eax, [ebp - 0x210]
movlpd qword [ebp - 0x250], xmm0
push eax
movups xmmword [ebp - 0x220], xmm0
mov dword [ebp - 0x228], 0
movlpd qword [ebp - 0x248], xmm0
movlpd qword [ebp - 0x230], xmm0
mov dword [ebp - 0x268], 0x44
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x23c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10016e28
push dword [ebp - 0x21c]
mov esi, dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x1007d0dc]
test esi, esi
mov eax, 1
cmovne ecx, esi
mov dword [0x1007d0dc], ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10016f21
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.10016f21
mov esp, ebp
pop ebp
ret