joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b17a
Capabilities:
Get common file path

Disassembly:
mov eax, 0x6a7705
call fcn.00664608
sub esp, 0x48
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
push 7
pop esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
mov word [ebp - 0x24], ax
push ebx
push 0x104
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.004376b9
push 8
pop edi
lea eax, [ebp - 0x24]
cmp dword [ebp - 0x10], edi
jb 0x42b1bd
mov eax, dword [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x42b1fe
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 7
mov word [esi], ax
mov eax, dword [ebp - 0x10]
cmp eax, edi
jb 0x42b327
lea eax, [eax*2 + 2]
cmp eax, 0x1000
jmp 0x42b300
lea ecx, [ebp - 0x24]
cmp dword [ebp - 0x10], edi
jb 0x42b209
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x42b20c
sub ecx, edx
sar ecx, 1
push ebx
push ecx
lea ecx, [ebp - 0x24]
call fcn.0043b088
cmp dword [ebp + 0x10], 0
je 0x42b236
push dword [ebp + 0x10]
lea ecx, [ebp - 0x24]
call fcn.00437714
xor eax, eax
mov dword [ebp - 0x3c], ebx
push 0x6cf2dc
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], esi
mov word [ebp - 0x3c], ax
call fcn.00427ba3
push 1
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 1
push eax
sub esp, 0x18
lea eax, [ebp - 0x24]
mov ecx, esp
push eax
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00427a37
lea eax, [ebp - 0x54]
push eax
call fcn.004516a9
lea ecx, [ebp - 0x24]
cmp ecx, eax
je 0x42b28e
mov byte [ebp + 0x10], bl
push dword [ebp + 0x10]
push eax
call fcn.00427ad3
lea ecx, [ebp - 0x54]
call fcn.00427afc
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], bl
mov ebx, 0x1000
cmp eax, edi
jb 0x42b2d5
mov ecx, dword [ebp - 0x3c]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x10], eax
mov dword [ebp + 0xc], ecx
cmp eax, ebx
jb 0x42b2cc
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
push str..lnk
lea ecx, [ebp - 0x24]
call fcn.00437714
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.004277f3
mov eax, dword [ebp - 0x10]
cmp eax, edi
jb 0x42b327
lea eax, [eax*2 + 2]
cmp eax, ebx
mov ecx, dword [ebp - 0x24]
mov dword [ebp + 8], ecx
mov dword [ebp + 0x10], eax
jb 0x42b31e
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
Function at 0x42ca92
Capabilities:
Delete file

Disassembly:
mov eax, 0x6a7a01
call fcn.00664608
sub esp, 0x49c
and dword [ebp - 0x10], 0
push ebx
push 2
push 0
mov bh, 1
xor bl, bl
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x38], eax
and dword [ebp - 4], 0
test eax, eax
js 0x42cc9b
push esi
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [ebp - 0x10]
push edi
push eax
push 0x6d4cf0
push 1
push 0
mov edi, 0x6d4d20
push edi
call esi
test eax, eax
js 0x42caec
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jne 0x42cb11
lea eax, [ebp - 0x10]
xor bh, bh
push eax
push 0x6d4ce0
push 1
push 0
push edi
call esi
test eax, eax
js 0x42cc99
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x42cc99
and dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
mov eax, dword [ecx]
push edx
push 0x6cdd30
push ecx
call dword [eax]
test eax, eax
js 0x42cc74
cmp dword [ebp - 0x14], 0
je 0x42cc74
and dword [ebp - 0x34], 0
lea ecx, [ebp - 0x34]
push dword [ebp + 0xc]
and dword [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
call fcn.00427ba3
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0043bb9a
mov edx, eax
cmp dword [edx + 0x14], 8
mov byte [ebp - 4], 2
jb 0x42cb74
mov edx, dword [edx]
mov eax, dword [ebp - 0x14]
push 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
lea ecx, [ebp - 0x50]
mov esi, eax
call fcn.00427afc
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 0
cmp ecx, 8
jb 0x42cbca
mov eax, dword [ebp - 0x34]
lea ecx, [ecx*2 + 2]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
cmp ecx, 0x1000
jb 0x42cbc1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004279ae
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
push ecx
push eax
call fcn.006643a9
pop ecx
pop ecx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
js 0x42cc74
mov eax, dword [ebp - 0x10]
push 4
mov ecx, dword [eax]
test bh, bh
je 0x42cc1e
lea edx, [ebp - 0x2a0]
push edx
push 0x104
lea edx, [ebp - 0x4a8]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x42cc1a
push dword [ebp + 8]
lea eax, [ebp - 0x4a8]
push eax
call fcn.00673939
pop ecx
pop ecx
test eax, eax
jne 0x42cc1a
mov bl, 1
jmp 0x42cc74
xor bl, bl
jmp 0x42cc74
lea edx, [ebp - 0x3e0]
push edx
push 0x104
lea edx, [ebp - 0x154]
push edx
push eax
call dword [ecx + 0xc]
mov esi, eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00471937
test esi, esi
js 0x42cc6a
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
jb 0x42cc57
mov eax, dword [ebp - 0x34]
push dword [ebp + 8]
push eax
call fcn.00673939
pop ecx
pop ecx
test eax, eax
jne 0x42cc6a
mov bl, 1
jmp 0x42cc6c
xor bl, bl
lea ecx, [ebp - 0x34]
call fcn.00427afc
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test bl, bl
je 0x42cc99
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push 0
push dword [ebp + 0xc]
push 5
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
pop edi
pop esi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x42dde4
Capabilities:
Get common file path
Get program files directory
Get startup folder

Disassembly:
mov eax, 0x6a7b4c
call fcn.00664608
sub esp, 0x240
push ebx
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x2c], ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esi], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor ecx, ecx
inc ecx
mov word [ebp - 0x24c], ax
push ecx
push 0x1a
lea eax, [ebp - 0x24c]
mov dword [ebp - 4], ebx
push eax
push ebx
mov dword [ebp - 0x2c], ecx
call edi
test eax, eax
je 0x42de5f
push 7
pop edi
xor eax, eax
mov dword [ebp - 0x28], ebx
push 0x6ce25c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
mov word [ebp - 0x28], ax
call fcn.00427ba3
mov dword [ebp - 4], 1
jmp 0x42decf
push ebx
push 0x26
lea eax, [ebp - 0x24c]
push eax
push ebx
call edi
test eax, eax
je 0x42df42
call fcn.0058ad45
test al, al
je 0x42de8e
cmp dword [0x7b4c98], 0x80000000
mov eax, 0x42e67a
jb 0x42de93
mov eax, 0x42e675
push 0xc0000000
lea ecx, [ebp - 0x24c]
push ecx
call eax
test al, al
je 0x42df42
push 7
pop edi
xor eax, eax
mov dword [ebp - 0x28], ebx
push 0x6ce25c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
mov word [ebp - 0x28], ax
call fcn.00427ba3
mov dword [ebp - 4], 2
push 1
lea eax, [ebp - 0x28]
push eax
sub esp, 0x18
lea eax, [ebp - 0x24c]
mov ecx, esp
push eax
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], edi
call fcn.00427ba3
lea eax, [ebp - 0x44]
push eax
call fcn.004516a9
push eax
mov ecx, esi
call fcn.00427924
lea ecx, [ebp - 0x44]
call fcn.00427afc
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x42df42
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x10], ecx
mov dword [ebp + 8], eax
cmp eax, 0x1000
jb 0x42df39
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004279ae
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4

Function at 0x42e38c
Capabilities:
Get common file path
Get program files directory

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
push edi
push 0x26
push esi
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x42e3f6
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x42e3a8
sub ecx, edx
sar ecx, 1
push 0x5c
pop edi
lea eax, [ecx + ecx]
lea ecx, [eax + esi]
je 0x42e3db
cmp word [ecx - 2], di
jne 0x42e3db
add ecx, 0xfffffffe
xor edx, edx
mov word [ecx], dx
jmp 0x42e3db
cmp word [ecx - 2], di
je 0x42e3df
add ecx, 0xfffffffe
cmp ecx, esi
jne 0x42e3d2
sub eax, ecx
add eax, 2
add eax, esi
and eax, 0xfffffffe
push eax
push ecx
push esi
call fcn.006661f0
add esp, 0xc
jmp 0x42e40c
mov ecx, str.Program_Files
sub esi, ecx
movzx eax, word [ecx]
mov word [esi + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x42e3fd
pop edi
pop esi
ret 4
Function at 0x42ff83
Capabilities:
Create directory

Disassembly:
mov eax, 0x6a7e00
call fcn.00664608
sub esp, 0x3c
push ebx
push esi
push edi
lea eax, [ebp - 0x48]
push eax
call fcn.00472c65
xor ebx, ebx
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], 8
mov dword [ebp - 4], ebx
jb 0x42ffad
mov eax, dword [ebp - 0x48]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
sub esp, 0x18
lea eax, [ebp - 0x48]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00427a37
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
mov esi, 0x7bb3c8
push eax
mov ecx, esi
call fcn.0042a2bd
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0047e18b
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.0042a2bd
mov ecx, dword [ebp - 0x18]
call fcn.0047de40
push 0xc4
call fcn.00664379
pop ecx
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x43001f
mov ecx, eax
call fcn.00458c2c
jmp 0x430021
mov eax, ebx
mov byte [ebp - 4], bl
mov dword [ebp - 0x10], eax
test eax, eax
je 0x430034
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebp - 0x10]
mov byte [eax + 0xb0], 1
mov ecx, esi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
call fcn.0042a2bd
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edi, 0x6d18d4
push edi
push eax
call fcn.0047efae
mov esi, dword [eax]
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x43006e
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
test esi, esi
jne 0x4300e5
push edi
mov byte [ebp - 0x18], bl
lea ecx, [ebp - 0x30]
push dword [ebp - 0x18]
mov dword [ebp - 0x30], ebx
push 0x3b
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], bl
call fcn.0041039b
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 5
push eax
push 1
push ebx
push 0x4321fc
lea eax, [ebp - 0x30]
push eax
call fcn.005b160f
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10
jb 0x4300e5
mov ecx, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
cmp eax, 0x1000
jb 0x4300dc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004279ae
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 6
test eax, eax
je 0x4300f6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x48]
call fcn.00427afc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x431a73
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
lea eax, [ebp - 0x410]
push esi
push edi
mov esi, 0x104
xor edi, edi
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea eax, [ebp - 0x208]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
je 0x431aed
push esi
lea eax, [ebp - 0x208]
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_GetLongPathNameW]
lea ecx, [ebp - 0x208]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x431abe
sub ecx, edx
sar ecx, 1
cmp ecx, 0xa
jbe 0x431aed
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.00471afd
test al, al
je 0x431aed
mov al, 1
jmp 0x431aef
xor al, al
pop edi
pop esi
leave
ret

Function at 0x431af3
Capabilities:
Persist via run registry key

Disassembly:
mov eax, 0x6a71ec
call fcn.00664608
sub esp, 0x440
lea eax, [ebp - 0x44c]
push ebx
push esi
push edi
push 0x208
push eax
push 0x6d2890
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_accept
call fcn.0047bf6a
test al, al
je 0x431c17
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [eax + 0x10], ebx
je 0x431c15
xor ecx, ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], cx
mov esi, dword [ebp + 0xc]
sub esp, 0x18
mov dword [ebp - 4], ebx
push 6
pop ecx
mov edi, esp
cmp dword [esi + 0x10], ebx
je 0x431b83
sub esp, 0x18
rep movsd dword es:[edi], dword [esi]
mov esi, eax
lea eax, [ebp - 0x3c]
push 6
pop ecx
mov edi, esp
push str.__s___s
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.004577f2
add esp, 0x38
jmp 0x431b98
mov esi, eax
lea eax, [ebp - 0x3c]
push str.__s_
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.004577f2
add esp, 0x20
lea ecx, [ebp - 0x24]
cmp ecx, eax
je 0x431bab
mov byte [ebp + 8], bl
push dword [ebp + 8]
push eax
call fcn.00427ad3
lea ecx, [ebp - 0x3c]
call fcn.00427afc
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
jb 0x431bbf
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x44c]
push eax
call fcn.00673939
mov ebx, eax
mov eax, dword [ebp - 0x10]
neg ebx
pop ecx
sbb bl, bl
inc bl
pop ecx
cmp eax, 8
jb 0x431c11
mov ecx, dword [ebp - 0x24]
lea eax, [eax*2 + 2]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ecx
cmp eax, 0x1000
jb 0x431c08
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.004279ae
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
mov al, bl
jmp 0x431c17
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x431f48
Capabilities:
Get common file path

Disassembly:
mov eax, 0x6a801b
call fcn.00664608
sub esp, 0x258
push esi
lea ecx, [ebp - 0x10]
call fcn.0047b7fc
push 0x20019
push 0x6ce218
xor esi, esi
lea ecx, [ebp - 0x10]
push reloc.WS2_32.dll_accept
mov dword [ebp - 4], esi
call fcn.0047babd
test al, al
je 0x432060
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
push str.StatsTesting
lea ecx, [ebp - 0x10]
call fcn.0047bb1d
cmp dword [ebp - 0x14], esi
je 0x432060
push esi
push 0x1a
lea eax, [ebp - 0x264]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x432060
push 0x6ce25c
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x44]
push str._s_stats__s.txt
push eax
call fcn.004577f2
add esp, 0x10
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
jb 0x431fe8
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0047181f
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
jb 0x431ffe
mov eax, dword [ebp - 0x2c]
push 0x6ce290
push eax
call fcn.006757a1
pop ecx
pop ecx
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00410858
test esi, esi
je 0x432058
push dword [ebp + 8]
lea eax, [ebp - 0x5c]
push eax
call fcn.00471937
cmp dword [eax + 0x14], 8
jb 0x43202d
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetCurrentProcessId
push eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
push str._u__d__S_n
push esi
call fcn.0043c383
add esp, 0x14
lea ecx, [ebp - 0x5c]
call fcn.00427afc
push esi
call fcn.006751f3
pop ecx
lea ecx, [ebp - 0x44]
call fcn.00427afc
lea ecx, [ebp - 0x10]
call fcn.0047b807
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x432077
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x208]
push esi
xor esi, esi
push esi
push 0x25
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 1
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
sub esp, 0x18
mov ecx, esp
push eax
mov dword [ecx], esi
mov dword [ecx + 0x10], esi
mov dword [ecx + 0x14], 7
call fcn.00427ba3
push dword [ebp + 8]
call fcn.004516a9
mov eax, dword [ebp + 8]
pop esi
leave
ret 8
Function at 0x435284
Capabilities:
Create pipe
Read file on windows
Read pipe

Disassembly:
mov eax, 0x6a82da
call fcn.00664608
sub esp, 0x3c
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x30]
push ebx
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], ebx
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x30], 0xc
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], 1
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
mov esi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
lea eax, [ebp - 0x10]
push 2
push ebx
push ebx
push eax
call esi
push eax
push dword [ebp - 0x1c]
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
push dword [ebp - 0x1c]
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x20]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.005afeba
mov edi, dword [ebp + 8]
xor edx, edx
xor ecx, ecx
mov dword [edi], edx
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], 7
mov word [edi], cx
mov dword [ebp - 4], edx
mov dword [ebp - 0x24], 1
test al, al
je 0x43541a
push 0x104
call fcn.004513b4
xor ecx, ecx
mov dword [ebp - 0x14], eax
push ecx
lea eax, [ebp + 0xc]
mov byte [ebp + 0x13], cl
push eax
push ecx
push ecx
push ecx
push dword [ebp - 0x10]
mov esi, ecx
call dword [sym.imp.KERNEL32.DLL_PeekNamedPipe]
test eax, eax
je 0x4353d6
mov ebx, dword [ebp - 0x14]
cmp dword [ebp + 0xc], 0
jne 0x43537b
cmp byte [ebp + 0x13], 0
jne 0x4353d0
push 0xc8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
je 0x4353b9
mov byte [ebp + 0x13], 1
jmp 0x4353b9
push 0
lea eax, [ebp + 0xc]
push eax
mov eax, 0x103
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4353a1
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4353b7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x6d
je 0x4353d0
cmp esi, 0x103
je 0x4353d0
mov eax, dword [ebp + 0xc]
add esi, eax
xor ecx, ecx
lea eax, [ebp + 0xc]
push ecx
push eax
push ecx
push ecx
push ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_PeekNamedPipe]
test eax, eax
jne 0x435354
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x14]
push eax
mov byte [esi + eax], 0
lea eax, [ebp - 0x48]
push eax
call fcn.00471937
push eax
mov ecx, edi
call fcn.00427924
lea ecx, [ebp - 0x48]
call fcn.00427afc
push 1
push dword [ebp - 0x14]
call fcn.004513a7
cmp dword [ebp + 0x18], 0
je 0x435413
push dword [ebp + 0x18]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
push dword [ebp - 0x18]
call ebx
jmp 0x435424
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x435424
or dword [ecx], 0xffffffff
push dword [ebp - 0x10]
call ebx
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14
Function at 0x435c96
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
jmp 0x435d1a
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea eax, [ebp - 8]
push eax
push 0x7530
push 1
push 0x40000000
push 1
push 0x16
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x435cf1
push dword [ebp - 4]
push eax
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test esi, esi
je 0x435d37
test edi, edi
je 0x435d37
push dword [ebp - 4]
push 0
push 0x100000
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
test esi, esi
je 0x435d1a
push 0x7530
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0
push 0x79a63c
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
jne 0x435c9f
mov al, 1
pop edi
pop esi
leave
ret
push edi
push esi
push str.TerminateSessionClientInstances_failed__hp:0x_X_result:_d_n
call fcn.00427b28
add esp, 0xc
xor al, al
jmp 0x435d33
Function at 0x436d14
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x436d65
cmp byte [esi + 0x3e], bl
je 0x436d65
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
cmp di, ax
je 0x436d94
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, ebx
je 0x436d6c
sub eax, 1
je 0x436d6f
dec eax
sub eax, 1
jne 0x436d94
mov byte [esi + 0x3e], bl
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
mov byte [esi + 0x3e], bl
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x436d8c
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00675d1b
add esp, 0x10
cmp edi, eax
jne 0x436d94
cmp byte [esi + 0x3e], bl
sete al
jmp 0x436d67
xor al, al
jmp 0x436d67