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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x4c2010]
xor eax, esp
mov dword [esp + 8], eax
mov ebp, esp
lea ebx, [esp + 4]
push ebp
push 0
push ebx
push 0
push dword [esp + 0x34]
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor esi, esi
test eax, eax
jne 0x4330fc
cmp dword [esp + 4], 7
jne 0x4330fc
call fcn.00414720
mov edi, eax
mov eax, dword [esp]
add eax, 2
push eax
push edi
call fcn.00414640
add esp, 8
push ebp
push eax
push ebx
push 0
push dword [esp + 0x34]
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4330f3
cmp dword [esp + 4], 7
jne 0x4330f3
push dword [esp]
push edi
call fcn.00414680
add esp, 8
nop
nop
nop
nop
nop
nop
push 0
push edi
call fcn.004146f0
add esp, 8
test al, al
jne 0x4330d0
mov eax, edi
add eax, 0xc
push 0
push eax
call fcn.00413be0
add esp, 8
mov esi, edi
jmp 0x4330fc
push edi
call fcn.004147e0
add esp, 4
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0046efa0
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x435250
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
push eax
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
cmp eax, dword [esi]
je 0x43527d
push 0xa6
push str._home_simon_mem_.build_workdirs_bob_0_vdcidh_putty_crypto_mpint.c
push str.x0__nw__x1__nw
call fcn.0047f4a4
add esp, 0xc
and ebx, 1
neg ebx
mov dword [esp], ebx
cmp dword [edi], 0
je 0x4352b4
xor eax, eax
nop
nop
nop
nop
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [esp]
and ecx, edx
mov edx, dword [edi + 4]
xor dword [edx + eax*4], ecx
mov edx, dword [esi + 4]
xor dword [edx + eax*4], ecx
add eax, 1
cmp eax, dword [edi]
jb 0x435290
add esp, 4
pop esi
pop edi
pop ebx
ret
Function at 0x4361f0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov edx, 0x27
jmp 0x436200
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ebx, edx
mov dword [esp], ecx
mov edi, dword [ecx]
lea esi, [edi*8]
lea eax, [edi*8 + 1]
push 0
push 1
mov dword [esp + 0x10], eax
push eax
call fcn.004143e0
add esp, 0xc
mov ebp, eax
mov byte [eax + edi*8], 0
mov dword [esp + 4], esi
test esi, esi
mov dword [esp + 0xc], eax
je 0x436286
movzx esi, bl
xor eax, eax
mov ebx, dword [esp + 4]
xor edx, edx
mov ebp, dword [esp + 0xc]
nop
nop
mov ecx, edx
shr ecx, 3
mov edi, dword [esp]
mov edi, dword [edi + 4]
mov edi, dword [edi + ecx*4]
mov ecx, eax
and cl, 0x1c
shr edi, cl
and edi, 0xf
lea ecx, [edi + 6]
shr ecx, 4
neg ecx
and ecx, esi
add ecx, edi
add cl, 0x30
mov byte [ebp + ebx - 1], cl
add edx, 1
add eax, 4
add ebx, 0xffffffff
jne 0x436250
mov ecx, dword [esp + 4]
lea edi, [ecx - 1]
lea esi, [ecx - 2]
mov ecx, 3
mov eax, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp byte [eax + esi], 0x30
cmovne edi, esi
add esi, 0xffffffff
add ecx, 0xffffffff
jne 0x4362a0
add esi, 0xfffffffd
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp byte [eax + esi + 3], 0x30
lea ecx, [esi + 3]
cmove ecx, edi
lea edx, [esi + 2]
cmp byte [eax + esi + 2], 0x30
cmove edx, ecx
lea edi, [esi + 1]
cmp byte [eax + esi + 1], 0x30
cmove edi, edx
cmp byte [eax + esi], 0x30
cmovne edi, esi
add esi, 0xfffffffc
cmp esi, 0xfffffffc
jne 0x4362c0
mov ecx, eax
add ecx, 1
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov esi, dword [esp + 8]
mov dword [esp + 0x14], edi
jmp 0x43631f
add ecx, 1
mov edx, esi
shr edx, cl
test edx, edx
je 0x4363e0
mov ebx, 1
shl ebx, cl
mov edx, esi
sub edx, ebx
jbe 0x436310
mov dword [esp], edx
mov edx, edi
mov dword [esp + 0x1c], ecx
shr edx, cl
and dl, 1
neg dl
xor ebp, ebp
cmp dword [esp + 4], ebx
je 0x4363ac
mov esi, dword [esp]
and esi, 0xfffffffe
neg esi
xor ebp, ebp
mov edi, dword [esp + 0x10]
mov ecx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [edi - 1]
movzx edx, byte [edi + ebx - 1]
mov ah, dl
xor ah, al
and ah, cl
xor al, ah
mov byte [edi - 1], al
xor ah, dl
mov byte [edi + ebx - 1], ah
movzx eax, byte [edi]
movzx edx, byte [edi + ebx]
mov ah, dl
xor ah, al
and ah, cl
xor al, ah
mov byte [edi], al
xor ah, dl
mov byte [edi + ebx], ah
add edi, 2
add ebp, 0xfffffffe
cmp esi, ebp
jne 0x436360
sub ebx, ebp
neg ebp
mov esi, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x14]
mov edx, ecx
test byte [esp], 1
mov ecx, dword [esp + 0x1c]
je 0x436310
mov dword [esp + 0x18], edx
mov dl, byte [eax + ebp]
mov dh, byte [eax + ebx]
mov byte [esp], dh
mov dh, byte [esp]
xor dh, dl
and dh, byte [esp + 0x18]
xor dl, dh
mov byte [eax + ebp], dl
xor dh, byte [esp]
mov byte [eax + ebx], dh
jmp 0x436310
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43d4b0
Capabilities:
Create pipe
Create process on windows
Create reverse shell

Disassembly:
push edi
push esi
sub esp, 0x7c
mov eax, dword [0x4c2010]
xor eax, esp
mov dword [esp + 0x78], eax
mov dword [esp + 0x54], 0xc
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 1
lea esi, [esp + 0x54]
lea eax, [esp + 0x68]
lea ecx, [esp + 0x6c]
push 0
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x43d665
lea eax, [esp + 0x74]
lea ecx, [esp + 0x70]
push 0
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x43d635
lea eax, [esp + 0x60]
lea ecx, [esp + 0x64]
push 0
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x43d647
mov esi, dword [esp + 0x8c]
mov edi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0
push 1
push dword [esp + 0x7c]
call edi
push 0
push 1
push dword [esp + 0x74]
call edi
mov eax, dword [esp + 0x64]
test eax, eax
je 0x43d561
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov edi, dword [esp + 0x88]
mov dword [esp + 0x10], 0x44
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x3c], 0x100
mov word [esp + 0x42], 0
mov dword [esp + 0x44], 0
mov eax, dword [esp + 0x70]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x50], eax
push esi
call fcn.00413af0
add esp, 4
mov esi, eax
mov eax, esp
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0
push 0x8000020
push 1
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push esi
call fcn.00414470
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp]
call esi
push dword [esp + 4]
call esi
push dword [esp + 0x70]
call esi
push dword [esp + 0x68]
call esi
mov eax, dword [esp + 0x60]
test eax, eax
je 0x43d617
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push dword [esp + 0x68]
push dword [esp + 0x74]
push dword [esp + 0x80]
push edi
call fcn.0045e370
add esp, 0x14
xor esi, esi
jmp 0x43d684
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x6c]
call esi
push dword [esp + 0x68]
jmp 0x43d663
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x6c]
call esi
push dword [esp + 0x68]
call esi
push dword [esp + 0x74]
call esi
push dword [esp + 0x70]
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00417110
add esp, 4
push eax
push str.Unable_to_create_pipes_for_proxy_command:__s
call fcn.00413aa0
add esp, 8
mov esi, eax
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0046efa0
mov eax, esi
add esp, 0x7c
pop esi
pop edi
ret
Function at 0x445790
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, edx
mov edi, ecx
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
je 0x4457b4
mov edx, dword [edi]
xor edx, dword [ecx]
mov ebp, dword [edi + 4]
xor ebp, dword [ecx + 4]
or ebp, edx
je 0x445801
test ebx, ebx
jle 0x4457f7
add ebx, esi
mov ebp, 0x49c688
nop
mov ecx, dword [edi]
mov edx, dword [edi + 4]
xor ecx, dword [esi]
xor edx, dword [esi + 4]
or edx, ecx
mov ecx, 0x49c68c
cmove ecx, ebp
push 4
push ecx
push eax
call fcn.004479b0
add esp, 0xc
push 4
push 0x49c68c
push eax
call fcn.004479b0
add esp, 0xc
add esi, 8
cmp esi, ebx
jb 0x4457c0
test eax, eax
sete al
pop esi
pop edi
pop ebx
pop ebp
ret
push 4
push 0x49c688
push 0
call fcn.004479b0
add esp, 0xc
push 4
push 0x49c68c
push eax
call fcn.004479b0
add esp, 0xc
test ebx, ebx
jg 0x4457b8
jmp 0x4457f7

Function at 0x4479b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
test ecx, ecx
je 0x447a1b
mov edx, dword [esp + 0x18]
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [edx + esi]
xor edi, eax
mov ebx, edi
and ebx, 0xf
shr edi, 4
imul eax, ebx, 0x11111044
xor eax, edi
imul ebp, ebx, 0x8840020
imul edi, ebx, 0x4220000
xor edi, ebp
xor edi, eax
and eax, 0xf
shr edi, 4
imul ebx, eax, 0x11111044
imul ebp, eax, 0x8840020
xor ebp, ebx
imul eax, eax, 0x4220000
xor eax, edi
xor eax, ebp
add esi, 1
cmp ecx, esi
jne 0x4479d0
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x447a20
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x447a8d
mov edx, dword [esp + 0x14]
xor esi, esi
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [edx + esi]
xor edi, eax
mov ebx, edi
and ebx, 0xf
shr edi, 4
imul eax, ebx, 0x11111044
xor eax, edi
imul ebp, ebx, 0x8840020
imul edi, ebx, 0x4220000
xor edi, ebp
xor edi, eax
and eax, 0xf
shr edi, 4
imul ebx, eax, 0x11111044
imul ebp, eax, 0x8840020
xor ebp, ebx
imul eax, eax, 0x4220000
xor eax, edi
xor eax, ebp
add esi, 1
cmp ecx, esi
jne 0x447a40
jmp 0x447a8f
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x449e30
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x8c
mov dword [esp + 0xc], edx
mov ebp, dword [esp + 0xa8]
mov eax, dword [0x4c2010]
xor eax, esp
mov dword [esp + 0x88], eax
push ecx
mov dword [esp + 0xc], ecx
call dword [ecx]
add esp, 4
mov esi, eax
test eax, eax
je 0x449e6c
mov eax, dword [esi]
push esi
call dword [eax + 4]
add esp, 4
mov dword [esp], esi
test ebp, ebp
jle 0x449f83
mov esi, dword [esp + 0xa4]
mov dword [esp + 4], 0
jmp 0x449ea3
add dword [esp + 4], 1
add esi, edi
mov ebp, dword [esp + 0x10]
sub ebp, edi
jle 0x449f83
mov ebx, dword [esp + 8]
mov edi, dword [ebx + 0x14]
cmp ebp, edi
mov dword [esp + 0x10], ebp
cmovbe edi, ebp
mov ebp, dword [esp]
mov eax, dword [ebp]
push ebp
call dword [eax + 4]
add esp, 4
cmp dword [ebx + 0x14], 0x73
jb 0x449edd
push 0x3c0
push str._home_simon_mem_.build_workdirs_bob_0_vdcidh_putty_crypto_rsa.c
push str.h__hlen___MAX_HASH_LEN
call fcn.0047f4a4
add esp, 0xc
push dword [esp + 0xa0]
push dword [esp + 0x10]
push dword [ebp + 4]
call fcn.00413b60
add esp, 0xc
push dword [esp + 4]
push dword [ebp + 4]
call fcn.00413c90
add esp, 8
mov eax, dword [ebp]
lea ecx, [esp + 0x16]
push ecx
push ebp
call dword [eax + 0xc]
add esp, 8
test edi, edi
jle 0x449e90
lea edx, [edi - 1]
mov eax, edi
and eax, 3
xor ecx, ecx
cmp edx, 3
jb 0x449f5a
mov edx, edi
and edx, 0xfffffffc
xor ecx, ecx
nop
movzx ebx, byte [esp + ecx + 0x16]
xor byte [esi + ecx], bl
movzx ebx, byte [esp + ecx + 0x17]
xor byte [esi + ecx + 1], bl
movzx ebx, byte [esp + ecx + 0x18]
xor byte [esi + ecx + 2], bl
movzx ebx, byte [esp + ecx + 0x19]
xor byte [esi + ecx + 3], bl
add ecx, 4
cmp edx, ecx
jne 0x449f30
test eax, eax
je 0x449e90
lea edx, [esi + ecx]
add ecx, esp
add ecx, 0x16
xor ebp, ebp
nop
nop
nop
nop
movzx ebx, byte [ecx + ebp]
xor byte [edx + ebp], bl
add ebp, 1
cmp eax, ebp
jne 0x449f70
jmp 0x449e90
mov ecx, dword [esp]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x10]
add esp, 4
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0046efa0
add esp, 0x8c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x44a0e0
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
push 0x4ada99
push dword [eax]
call fcn.00480eb8
add esp, 8
test eax, eax
je 0x44a156
mov esi, eax
mov ebp, dword [esp + 0x14]
mov dword [ebp + 4], 0
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x44a16d
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
add eax, dword [ebp]
push esi
push ecx
push 1
push eax
call fcn.004813c9
add esp, 0x10
mov edi, eax
push esi
call fcn.00480902
add esp, 4
test eax, eax
jne 0x44a15d
mov eax, dword [ebp + 4]
test edi, edi
je 0x44a164
add eax, edi
mov dword [ebp + 4], eax
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x44a120
jmp 0x44a167
mov ebx, 2
jmp 0x44a1a7
mov ebx, 2
jmp 0x44a19e
mov ecx, dword [ebp + 8]
xor ebx, ebx
cmp eax, ecx
jne 0x44a181
push esi
call fcn.00480c97
add esp, 4
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
lea edx, [ebp + 0xc]
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], edx
push esi
call fcn.004807ad
add esp, 4
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x44e8f0
Capabilities:
Encode data using xor
Encrypt data using blowfish

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edi, dword [ecx + eax*4]
mov esi, edx
rol esi, 4
xor esi, dword [ecx + eax*4 + 0x40]
mov dword [esp + 0x1c], edx
xor edi, edx
mov eax, esi
and eax, 0xfc00fc
or eax, 0xff00ff00
mov dword [esp], eax
shr esi, 8
and esi, 0xfc00fc
or esi, 0xff00ff00
mov dword [esp + 8], esi
mov eax, edi
and eax, 0xfc00fc
or eax, 0xff00ff00
mov dword [esp + 4], eax
shr edi, 8
and edi, 0xfc00fc
or edi, 0xff00ff00
mov dword [esp + 0xc], edi
xor edi, edi
mov edx, 0x49d028
xor esi, esi
mov dword [esp + 0x10], 0
xor ecx, ecx
nop
nop
nop
mov dword [esp + 0x14], edi
mov edi, dword [edx]
mov eax, dword [esp]
and edi, eax
xor ecx, edi
mov edi, dword [edx + 4]
mov ebx, dword [esp + 8]
and edi, ebx
xor dword [esp + 0x10], edi
mov edi, dword [edx + 8]
mov ebp, dword [esp + 4]
and edi, ebp
xor esi, edi
mov dword [esp + 0x20], esi
mov edi, dword [edx + 0xc]
mov esi, dword [esp + 0xc]
and edi, esi
xor dword [esp + 0x14], edi
mov edi, dword [esp + 0x14]
add eax, 0x80008
mov dword [esp], eax
add ebx, 0x80008
mov dword [esp + 8], ebx
add ebp, 0x80008
mov dword [esp + 4], ebp
add esi, 0x80008
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x20]
add edx, 0x10
cmp edx, 0x49d228
jb 0x44e970
mov edx, ecx
shl edx, 4
mov eax, dword [esp]
and eax, 0x40004
imul ebp, eax, 0x3c00
and ebp, edx
xor ebp, ecx
mov ecx, dword [esp + 0x10]
mov eax, ecx
shl eax, 4
mov edx, dword [esp + 8]
and edx, 0x40004
imul edx, edx, 0x3c00
and edx, eax
xor edx, ecx
mov ecx, esi
shl ecx, 4
mov eax, dword [esp + 4]
and eax, 0x40004
imul eax, eax, 0x3c00
and eax, ecx
xor eax, esi
mov esi, edi
shl esi, 4
mov ecx, dword [esp + 0xc]
and ecx, 0x40004
imul ecx, ecx, 0x3c00
and ecx, esi
xor ecx, edi
shr edx, 4
and edx, 0xf000f00
shr eax, 8
and eax, 0xf000f0
or eax, edx
and ecx, 0xf000f000
shr ebp, 0xc
and ebp, 0xf000f
or eax, ecx
or ebp, eax
shr eax, 4
xor eax, ebp
and eax, 0x7030702
xor ebp, eax
shl eax, 4
xor eax, ebp
mov ecx, eax
shr ecx, 8
xor ecx, ebp
and ecx, 0x4e009e
xor eax, ecx
shl ecx, 8
xor ecx, eax
mov edx, ecx
shr edx, 0x10
xor edx, ecx
and edx, 0xd9d3
xor ecx, edx
shl edx, 0x10
xor edx, ecx
mov eax, edx
shr eax, 4
xor eax, edx
and eax, 0x5040004
mov ecx, eax
shl eax, 4
xor eax, dword [esp + 0x18]
xor ecx, edx
shr edx, 1
xor edx, ecx
xor eax, ecx
and edx, 0x4045015
xor eax, edx
add edx, edx
xor edx, eax
mov eax, dword [esp + 0x1c]
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x45d200
Capabilities:
Get common file path

Disassembly:
push esi
cmp dword [0x4c3954], 0
jne 0x45d260
push dword [0x4c3958]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, dword [0x4c3958]
jb 0x45d260
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 0
push 1
push eax
push 1
push 0x4c3958
push dword [0x4c3954]
call fcn.00414480
add esp, 0x18
mov dword [0x4c3954], eax
push dword [0x4c3958]
push eax
call esi
cmp eax, dword [0x4c3958]
jae 0x45d230
mov eax, dword [0x4c3954]
pop esi
ret

Function at 0x45d3d0
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0x18
mov edi, dword [esp + 0x2c]
mov eax, dword [0x4c2010]
xor eax, esp
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
xor esi, esi
call fcn.00415420
test al, al
je 0x45d422
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
xor esi, esi
push edi
push eax
push ecx
push 0x1f0001
call fcn.00417db0
add esp, 0x10
test al, al
je 0x45d478
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x28]
mov dword [esp], 0xc
mov dword [esp + 4], esi
mov dword [esp + 8], 0
mov eax, esp
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x45d456
mov esi, eax
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x45d478
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00417110
add esp, 4
push eax
push ebx
push str.CreateMutex___s___failed:__s
call fcn.00413aa0
add esp, 0xc
mov dword [edi], eax
xor esi, esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x45d487
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x45d496
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0046efa0
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
ret
Function at 0x45d4d0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [esp + 0x20]
mov eax, dword [0x4c2010]
xor eax, esp
mov dword [esp + 8], eax
push 9
push str..pipe_
push esi
call fcn.00483230
add esp, 0xc
test eax, eax
je 0x45d50e
push 0x16
push str._home_simon_mem_.build_workdirs_bob_0_vdcidh_putty_windows_named_pipe_client.c
push str.strncmp_pipename___.pipe___9___0
call fcn.0047f4a4
add esp, 0xc
lea eax, [esi + 9]
push 0x5c
push eax
call fcn.00471e30
add esp, 8
test eax, eax
je 0x45d534
push 0x17
push str._home_simon_mem_.build_workdirs_bob_0_vdcidh_putty_windows_named_pipe_client.c
push str.strchr_pipename__9_____NULL
call fcn.0047f4a4
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x40000000
push 3
push 0
push 0
push 0xc0000000
mov ebp, esi
push esi
call edi
cmp eax, 0xffffffff
jne 0x45d58c
call ebx
cmp eax, 0xe7
jne 0x45d5d4
push 0
mov esi, ebp
push ebp
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
jne 0x45d540
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00417110
add esp, 4
push eax
push esi
push str.Error_waiting_for_named_pipe__s:__s
jmp 0x45d5ea
mov esi, eax
call fcn.00417c60
test eax, eax
je 0x45d5f4
mov edi, eax
mov eax, esp
lea ecx, [esp + 4]
push eax
push 0
push 0
push 0
push ecx
push 1
push 6
push esi
call dword [0x4c3430]
test eax, eax
je 0x45d612
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00417110
add esp, 4
push eax
push str.Unable_to_get_named_pipe_security_information:__s
jmp 0x45d642
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00417110
add esp, 4
push eax
push ebp
push str.Unable_to_open_named_pipe__s:__s
call fcn.00413aa0
add esp, 0xc
jmp 0x45d64a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00417110
add esp, 4
push eax
push str.Unable_to_get_user_SID:__s
jmp 0x45d642
push edi
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x45d62c
push dword [esp]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x45d655
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebp
push str.Owner_of_named_pipe__s_is_not_us
call fcn.00413aa0
add esp, 8
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
mov esi, 0xffffffff
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0046efa0
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x45d6e0
Capabilities:
Create pipe

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov eax, dword [0x4c2010]
xor eax, esp
mov dword [esp + 0xc], eax
push 0
push 0x34
push 1
call fcn.004143e0
add esp, 0xc
mov esi, eax
mov dword [eax + 0x30], 0x49f804
mov dword [eax + 0x28], edi
mov dword [eax + 0x2c], 0
mov dword [eax], 0
push ebx
call fcn.00413af0
add esp, 4
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi + 0x24], 0
push 9
push str..pipe_
push ebx
call fcn.00483230
add esp, 0xc
test eax, eax
je 0x45d766
push 0xd5
push str._home_simon_mem_.build_workdirs_bob_0_vdcidh_putty_windows_named_pipe_server.c
push str.strncmp_pipename___.pipe___9___0
call fcn.0047f4a4
add esp, 0xc
lea ebp, [esi + 0x2c]
lea ebx, [esi + 4]
mov eax, dword [esp + 0x24]
add eax, 9
push 0x5c
push eax
call fcn.00471e30
add esp, 8
test eax, eax
je 0x45d799
push 0xd6
push str._home_simon_mem_.build_workdirs_bob_0_vdcidh_putty_windows_named_pipe_server.c
push str.strchr_pipename__9_____NULL
call fcn.0047f4a4
add esp, 0xc
mov edi, esi
add edi, 0x30
push ebp
push ebx
push esi
push 0xc0000000
call fcn.00417db0
add esp, 0x10
test al, al
je 0x45d86c
mov dword [esp], 0xc
mov eax, dword [esi]
mov dword [esp + 4], eax
mov dword [esp + 8], 0
mov eax, esp
push eax
push 0
push 0x1000
push 0x1000
push 0xff
push 8
push 0x40080003
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
je 0x45d848
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x20], eax
push esi
push 0x45d890
push eax
call fcn.004329a0
add esp, 0xc
mov dword [esi + 0x24], eax
mov ecx, esi
xor edx, edx
call fcn.0045d8a0
jmp 0x45d86c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00417110
add esp, 4
push eax
push dword [esp + 0x28]
push str.unable_to_create_named_pipe__s:__s
call fcn.00413aa0
add esp, 0xc
mov dword [ebp], eax
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0046efa0
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret