joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4972c8
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4a6d34], 0
jne 0x497349
cmp dword [0x4a6d54], 0
jne 0x4972f8
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4a6d54], eax
test eax, eax
jne 0x4972f8
push str.GetEnvironmentStrings_failed
call fcn.00496b48
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4a6d54]
jmp 0x49730c
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00491970
pop ecx
mov edi, eax
test eax, eax
jne 0x497304
lea edi, [ebp + 1]
push edi
call fcn.00491274
pop ecx
mov ebx, eax
mov dword [0x4a6d38], ebx
test ebx, ebx
jne 0x497336
xor eax, eax
jmp 0x49740c
push edi
mov edx, dword [0x4a6d54]
push edx
push ebx
call fcn.00491820
add esp, 0xc
jmp 0x497369
xor esi, esi
mov ebx, dword [0x4a6d34]
jmp 0x497363
push eax
call fcn.00491970
pop ecx
test eax, eax
jne 0x49735f
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x497353
lea ebx, [esi + 4]
push 4
mov dword [0x4a6d3c], ebx
inc ebx
push ebx
call fcn.00490b90
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x49738c
xor eax, eax
jmp 0x49740c
cmp dword [0x4a6d34], 0
jne 0x4973bd
xor esi, esi
mov ebx, dword [0x4a6d38]
mov eax, dword [esp]
mov ebp, eax
jmp 0x4973ae
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00491970
pop ecx
mov edi, eax
test eax, eax
jne 0x4973a4
jmp 0x4973ee
xor esi, esi
mov ebx, dword [0x4a6d34]
mov eax, dword [esp]
mov edi, eax
jmp 0x4973e8
push eax
call fcn.00491970
pop ecx
test eax, eax
je 0x4973dd
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4973e1
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4973cc
mov eax, dword [0x4a6d34]
test eax, eax
je 0x4973fe
push eax
call fcn.00491284
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4a6d34], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4015a0
Capabilities:
Terminate process

Disassembly:
call fcn.00401940
jmp fcn.004012d0

Function at 0x4015b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403008]
jne 0x4015ba
repz ret
jmp fcn.004019f0
Function at 0x409660
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7000]
push edi
jmp 0x40967a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x409681
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x409670
mov eax, 1
add ebx, ebx
jne 0x409693
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x409688
jne 0x4096a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x409688
xor ecx, ecx
sub eax, 3
jb 0x4096b8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40972a
mov ebp, eax
add ebx, ebx
jne 0x4096c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4096d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4096f4
inc ecx
add ebx, ebx
jne 0x4096e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4096d5
jne 0x4096f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4096d5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x409714
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x409705
jmp 0x409676
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x409714
add edi, ecx
jmp 0x409676
pop esi
lea edi, [esi + 0x7000]
mov eax, dword [edi]
or eax, eax
je 0x40977c
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xbb24]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xbb90]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x409731
mov ecx, edi
jns 0x409760
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xbb98]
or eax, eax
je 0x409776
mov dword [ebx], eax
add ebx, 4
jmp 0x40974e
call dword [esi + 0xbb94]
mov ebp, dword [esi + 0xbb9c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4097b0
sub esp, 0xffffff80
jmp 0x4017e0

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40ba80
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov edi, eax
mov bl, pe_nt_image_headers32
test edi, edi
je 0x40bafc
push 9
call esi
test bl, al
je 0x40bafc
push 0x11
call esi
test bl, al
jne 0x40bafc
push 0x10
call esi
test bl, al
jne 0x40bafc
push 0x12
call esi
test bl, al
jne 0x40bafc
push 5
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [esp + 0x14]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x40bafc
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x40bafc
xor eax, eax
jmp 0x40bb7e
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x40bb25
push 0x11
call esi
test bl, al
jne 0x40bb1d
push 0x10
call esi
test bl, al
jne 0x40bb1d
push 0x12
call esi
test bl, al
je 0x40bb25
push 1
push ebp
call fcn.0040ba39
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x40bb3b
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x40bb7b
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x40bb7b
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x40bb7b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x40bb7b
dec esi
push esi
push dword [0x413bc0]
call fcn.0040e9ba
test eax, eax
je 0x40bb7b
mov eax, dword [eax + 8]
jmp 0x40bb7d
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x40caf0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
cmp dword [esi + 0x14], eax
jne 0x40cb25
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x40892f
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov esi, 0x4085d8
call fcn.0040894f
xor dword [eax], esi
dec edi
inc eax
add edi, edi
sub edi, 0xd1f5f26a
cmp eax, edx
jne fcn.0040892f
add ecx, edi
ret
Function at 0x40424d
Capabilities:
Inspect section memory permissions

Disassembly:
push dword [ebp - 0xb4]
push dword [ebp + 0x10]
push esi
call fcn.00403c9c
add esp, 0xc
cmp word [edi + 6], bx
mov dword [ebp + 0xc], ebx
jbe 0x40429b
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.00403c9c
add esp, 0xc
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x404268
call fcn.00403d2b
invalid

Function at 0x4045f2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [esp + edi*8 - 1], edi
inc dword [eax + eax]
add byte [eax], al
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax

Function at 0x40605d
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x44a200], 2
jl 0x406082
movaps xmm0, xmmword [0x4347f0]
movaps xmmword [0x441040], xmm0
movaps xmm0, xmmword [0x4347e0]
movaps xmmword [0x441050], xmm0
push esi
mov esi, dword [esp + 8]
mov ecx, esi
call fcn.0040640a
xor edx, edx
mov ecx, dword [esi + 0xf4]
mov eax, dword [edx + 0x4347b8]
mov dword [edx + ecx], eax
add edx, 4
cmp edx, 0x20
jl 0x406090
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0xc]
xor dword [ecx + 8], eax
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0x10]
or eax, 0x2000
shl eax, 0x10
xor dword [ecx + 0xc], eax
pop esi
ret 0xc

Function at 0x406773
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x40679d
movzx ecx, byte [edi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x441060]
inc edi
sub esi, 1
jne 0x406785
pop edi
mov eax, edx
pop esi
ret 0xc

Function at 0x40698a
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
xor ebp, ebp
cmp dword [edi], 2
lea esi, [edi + 4]
jne 0x4069e0
mov eax, dword [esi]
push ebx
push ebp
push ebp
push ebp
push ebp
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push eax
push 4
lea eax, [esp + 0x28]
push eax
push 0x20
push dword [esp + 0x5c]
call fcn.00407074
mov edx, ebp
mov ebx, ebp
movzx eax, byte [esp + edx + 0x14]
mov ecx, edx
and ecx, 3
shl ecx, 3
shl eax, cl
xor eax, ebx
inc edx
mov ebx, eax
cmp edx, 0x20
jb 0x4069c4
mov dword [esi], eax
pop ebx
cmp dword [edi], 3
jne 0x406a0c
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
push eax
push 0x20
push esi
push 0x20
push dword [esp + 0x58]
call fcn.00407074
push 0x20
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00422c30
add esp, 0xc
pop edi
pop esi
pop ebp
add esp, 0x24
ret 8
Function at 0x401020
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x44a2a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0041a9c0
mov eax, esi
add esp, 0xc
sub eax, 0
je 0x40113b
dec eax
je 0x401131
dec eax
je 0x401122
cmp esi, 1
jg 0x401122
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x42f820
lea edx, [ebp - 0x20c]
call fcn.00401000
lea eax, [ebp - 0x20c]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4010a0
mov ecx, dword [ebp + 8]
sub eax, edx
lea edx, [ebp + 0xc]
push edx
sar eax, 1
push ecx
mov edx, 0x208
sub edx, eax
push edx
lea eax, [ebp + eax*2 - 0x20c]
push eax
call fcn.00413ad5
add esp, 0x10
cmp byte [0x461d0c], 0
jne 0x4010e5
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov byte [0x461d0d], 1
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x20c]
push ecx
call esi
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x401105
push 0x42f83c
call esi
cmp byte [0x461d0d], 0
je 0x401122
lea edx, [ebp - 0x20c]
push edx
push 0x42f840
call fcn.004137e6
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00413753
mov esp, ebp
pop ebp
ret
mov eax, 0x42f814
jmp 0x40107c
mov eax, 0x42f808
jmp 0x40107c

Function at 0x401150
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x44a2a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov esi, ecx
mov byte [ebp - 0x108], 0
call fcn.0041a9c0
mov eax, esi
add esp, 0xc
sub eax, 0
je 0x401265
dec eax
je 0x40125b
dec eax
je 0x40124c
cmp esi, 1
jg 0x40124c
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea ecx, [ebp - 0x108]
push str.TID:_06d__s_
push ecx
call fcn.00413762
lea eax, [ebp - 0x108]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4011d0
mov ecx, dword [ebp + 8]
sub eax, edx
lea edx, [ebp + 0xc]
push edx
push ecx
mov edx, 0x104
sub edx, eax
push edx
lea eax, [ebp + eax - 0x108]
push eax
call fcn.0041700b
add esp, 0x10
cmp byte [0x461d0c], 0
jne 0x40120f
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov byte [0x461d0d], 1
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x108]
push ecx
call esi
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40122f
push 0x42f870
call esi
cmp byte [0x461d0d], 0
je 0x40124c
lea edx, [ebp - 0x108]
push edx
push 0x42f874
call fcn.00413947
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00413753
mov esp, ebp
pop ebp
ret
mov eax, str._INFO
jmp 0x4011ab
mov eax, str.FATAL
jmp 0x4011ab
Function at 0x4013e0
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov byte [ebp - 0x24], al
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
push 1
lea eax, [ebp - 0x24]
xor esi, esi
push eax
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push esi
push esi
push 1
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea edx, [ebp - 0x24]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], 0xc
cmp dword [edi], esi
jle 0x401558
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], esi
lea eax, [ebp - 0x10]
push eax
push 0
push 0x400
push 0x400
push 0xff
push 6
push 0x40000003
push str..pipeprogramMonitor
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov ecx, dword [edi + 4]
mov dword [ecx + esi*4], eax
mov edx, dword [edi + 4]
cmp dword [edx + esi*4], 0xffffffff
jne 0x40148f
call ebx
push eax
push esi
push str.__d_pipe__CreateNamedPipe_failed__d_
xor ecx, ecx
call fcn.00401150
add esp, 0xc
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [edi + 8]
mov dword [ecx + esi*4], eax
mov edx, dword [edi + 8]
cmp dword [edx + esi*4], 0
jne 0x4014bf
call ebx
push eax
push esi
push str.__d_pipe__CreateEvent_failed__d_
xor ecx, ecx
call fcn.00401150
add esp, 0xc
mov eax, dword [edi + 8]
mov edx, dword [eax + esi*4]
mov ecx, dword [edi + 0xc]
mov eax, dword [ebp - 4]
mov dword [eax + ecx + 0x10], edx
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 4]
add ecx, eax
mov eax, dword [edx + esi*4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x4014f9
call ebx
push eax
push esi
push str.__d_pipe__ConnectNamedPipe_failed__d_
xor ecx, ecx
call fcn.00401150
add esp, 0xc
call ebx
cmp eax, 0x217
je 0x40154a
cmp eax, 0x3e5
je 0x40154a
call ebx
push eax
push esi
push str.__d_pipe__ConnectNamedPipe_BAD_Status__d_
xor ecx, ecx
call fcn.00401150
mov ecx, dword [edi + 4]
mov edx, dword [ecx + esi*4]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 8]
mov ecx, dword [eax + esi*4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [edi + 4]
mov dword [edx + esi*4], 0
mov eax, dword [edi + 8]
mov dword [eax + esi*4], 0
add dword [ebp - 4], 0x14
inc esi
cmp esi, dword [edi]
jl 0x401446
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4019c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x44a2a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 2
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x230], 0x22c
xor edi, 0x2f7
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea edx, [ebp - 0x230]
mov ebx, eax
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x401a4e
mov esi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x230]
push eax
push ebx
call esi
test eax, eax
je 0x401a64
cmp dword [ebp - 0x228], edi
je 0x401a39
lea ecx, [ebp - 0x230]
push ecx
push ebx
call esi
test eax, eax
jne 0x401a21
jmp 0x401a64
mov edi, dword [ebp - 0x234]
mov ecx, 0x82
lea esi, [ebp - 0x20c]
rep movsd dword es:[edi], dword [esi]
jmp 0x401a73
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Process32FirstW_failed__d_
xor ecx, ecx
call fcn.00401150
add esp, 8
push str.getClientExeName_failed__process_not_alive_
xor ecx, ecx
call fcn.00401150
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413753
mov esp, ebp
pop ebp
ret 4

Function at 0x401ed0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x44a2a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0
push 2
mov dword [ebp - 0x238], eax
xor bl, bl
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x230]
mov esi, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x401fe9
lea edx, [ebp - 0x230]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x401fe9
lea eax, [ebp - 0x20c]
push str.SKCertService.exe
push eax
call fcn.0041d877
add esp, 8
test eax, eax
je 0x401f61
lea ecx, [ebp - 0x230]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401f32
jmp 0x401fe9
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 0x234], 0
mov bl, 1
test edi, edi
je 0x401f79
mov dword [edi], ecx
lea edx, [ebp - 0x234]
push edx
call fcn.00402a20
add esp, 4
test eax, eax
je 0x401fb6
mov eax, dword [ebp - 0x234]
mov edx, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x238]
push eax
push edx
mov dword [ecx], eax
push str.processID__d__to_sessionid__d_
mov ecx, 2
call fcn.00401150
add esp, 0xc
jmp 0x401fe9
mov eax, dword [ebp - 0x238]
mov dword [eax], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x234]
mov edx, dword [ebp - 0x228]
push eax
push ecx
push edx
push str.processID__d__to_sessionid__d__GetLastError__d_
mov ecx, 1
call fcn.00401150
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00413753
mov esp, ebp
pop ebp
ret 4
Function at 0x402010
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
xor eax, eax
push esi
xor esi, esi
push 0x44
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x5c]
push esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call fcn.0041a9c0
add esp, 0xc
mov eax, edi
cmp edi, esi
jne 0x402047
mov eax, str.empty
push eax
push str.workingDirectory:_s
mov ecx, 2
call fcn.00401020
push ebx
push str.launch_Program:_s
mov ecx, 2
call fcn.00401020
add esp, 0x10
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402089
push str.program_file_does_not_exist__
xor ecx, ecx
call fcn.00401150
add esp, 4
jmp 0x402121
call fcn.00402c10
mov esi, eax
call fcn.00402870
lea ecx, [ebp - 4]
push ecx
push esi
call dword [0x461d24]
mov edx, dword [ebp - 4]
push 1
push edx
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x54], str.winsta0default
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4020da
call esi
push eax
push str.CreateEnvironmentBlock__d__n
xor ecx, ecx
call fcn.00401150
add esp, 8
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x5c]
push edx
push edi
push eax
push 0x420
push 0
push 0
push 0
push ebx
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x402115
call esi
push eax
push str.create_process_file__d__n
xor ecx, ecx
call fcn.00401150
add esp, 8
mov edx, dword [ebp - 0x18]
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x402131
push eax
call esi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40213b
push eax
call esi
cmp dword [ebp - 0xc], 0
je 0x402147
mov eax, dword [ebp - 0x14]
push eax
call esi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402150
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, eax
call fcn.00402c10
cmp edi, eax
je 0x4021a9
cmp eax, 0xaa
je 0x4021a9
push esi
push eax
push edi
push str.detect_a_difference_of_session__d____d__process__d__should_be_killed.
mov ecx, 1
call fcn.00401150
add esp, 0x10
push esi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4021a5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
ret
mov al, 1
pop esi
ret