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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [esp + 0x20]
mov eax, dword [0x4c0018]
xor eax, esp
mov dword [esp + 8], eax
mov ebx, esp
lea eax, [esp + 4]
push ebx
push 0
push eax
push 0
push dword [esp + 0x34]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor esi, esi
test eax, eax
jne 0x43104f
cmp dword [esp + 4], 1
jne 0x43104f
mov ebp, dword [esp]
add ebp, 1
push 0
push 1
push ebp
call fcn.00413470
add esp, 0xc
mov ecx, edi
mov edi, eax
push ebx
push eax
lea eax, [esp + 0xc]
push eax
push 0
push dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x431046
cmp dword [esp + 4], 1
jne 0x431046
mov eax, dword [esp]
cmp eax, ebp
jb 0x43103e
push 0x6c
push str._home_simon_mem_.build_workdirs_bob_fffbk9my_putty_windows_utils_registry.c
push str.size___allocsize
call fcn.0047ca64
add esp, 0xc
mov eax, dword [esp]
mov byte [edi + eax], 0
mov esi, edi
jmp 0x43104f
push edi
call fcn.00413500
add esp, 4
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0046c560
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x431070
Capabilities:
Set registry value

Disassembly:
push ebx
push edi
push esi
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
push ebx
call fcn.00480740
add esp, 4
add eax, 1
push eax
push ebx
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete al
pop esi
pop edi
pop ebx
ret

Function at 0x4310b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x4c0018]
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 0x43115c
cmp dword [esp + 4], 7
jne 0x43115c
call fcn.00413830
mov edi, eax
mov eax, dword [esp]
add eax, 2
push eax
push edi
call fcn.00413750
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 0x431153
cmp dword [esp + 4], 7
jne 0x431153
push dword [esp]
push edi
call fcn.00413790
add esp, 8
nop
nop
nop
nop
nop
nop
push 0
push edi
call fcn.00413800
add esp, 8
test al, al
jne 0x431130
mov eax, edi
add eax, 0xc
push 0
push eax
call fcn.00412c70
add esp, 8
mov esi, edi
jmp 0x43115c
push edi
call fcn.004138f0
add esp, 4
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0046c560
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4332b0
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 0x4332dd
push 0xa6
push str._home_simon_mem_.build_workdirs_bob_fffbk9my_putty_crypto_mpint.c
push str.x0__nw__x1__nw
call fcn.0047ca64
add esp, 0xc
and ebx, 1
neg ebx
mov dword [esp], ebx
cmp dword [edi], 0
je 0x433314
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 0x4332f0
add esp, 4
pop esi
pop edi
pop ebx
ret
Function at 0x434250
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov edx, 0x27
jmp 0x434260
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.00413470
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 0x4342e6
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 0x4342b0
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 0x434300
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 0x434320
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 0x43437f
add ecx, 1
mov edx, esi
shr edx, cl
test edx, edx
je 0x434440
mov ebx, 1
shl ebx, cl
mov edx, esi
sub edx, ebx
jbe 0x434370
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 0x43440c
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 0x4343c0
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 0x434370
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 0x434370
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43b420
Capabilities:
Create pipe
Create process on windows
Create reverse shell

Disassembly:
push edi
push esi
sub esp, 0x7c
mov eax, dword [0x4c0018]
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 0x43b5d5
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 0x43b5a5
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 0x43b5b7
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 0x43b4d1
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.0041c540
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.00413500
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 0x43b587
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.0045c470
add esp, 0x14
xor esi, esi
jmp 0x43b5f4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x6c]
call esi
push dword [esp + 0x68]
jmp 0x43b5d3
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.0042f950
add esp, 4
push eax
push str.Unable_to_create_pipes_for_proxy_command:__s
call fcn.004155a0
add esp, 8
mov esi, eax
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0046c560
mov eax, esi
add esp, 0x7c
pop esi
pop edi
ret
Function at 0x4438d0
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 0x4438f4
mov edx, dword [edi]
xor edx, dword [ecx]
mov ebp, dword [edi + 4]
xor ebp, dword [ecx + 4]
or ebp, edx
je 0x443941
test ebx, ebx
jle 0x443937
add ebx, esi
mov ebp, 0x49ba48
nop
mov ecx, dword [edi]
mov edx, dword [edi + 4]
xor ecx, dword [esi]
xor edx, dword [esi + 4]
or edx, ecx
mov ecx, 0x49ba4c
cmove ecx, ebp
push 4
push ecx
push eax
call fcn.00445af0
add esp, 0xc
push 4
push 0x49ba4c
push eax
call fcn.00445af0
add esp, 0xc
add esi, 8
cmp esi, ebx
jb 0x443900
test eax, eax
sete al
pop esi
pop edi
pop ebx
pop ebp
ret
push 4
push 0x49ba48
push 0
call fcn.00445af0
add esp, 0xc
push 4
push 0x49ba4c
push eax
call fcn.00445af0
add esp, 0xc
test ebx, ebx
jg 0x4438f8
jmp 0x443937

Function at 0x445af0
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 0x445b5b
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 0x445b10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x445b60
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x445bcd
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 0x445b80
jmp 0x445bcf
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x447f70
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 [0x4c0018]
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 0x447fac
mov eax, dword [esi]
push esi
call dword [eax + 4]
add esp, 4
mov dword [esp], esi
test ebp, ebp
jle 0x4480c3
mov esi, dword [esp + 0xa4]
mov dword [esp + 4], 0
jmp 0x447fe3
add dword [esp + 4], 1
add esi, edi
mov ebp, dword [esp + 0x10]
sub ebp, edi
jle 0x4480c3
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 0x44801d
push 0x3c0
push str._home_simon_mem_.build_workdirs_bob_fffbk9my_putty_crypto_rsa.c
push str.h__hlen___MAX_HASH_LEN
call fcn.0047ca64
add esp, 0xc
push dword [esp + 0xa0]
push dword [esp + 0x10]
push dword [ebp + 4]
call fcn.00412bf0
add esp, 0xc
push dword [esp + 4]
push dword [ebp + 4]
call fcn.00412d20
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 0x447fd0
lea edx, [edi - 1]
mov eax, edi
and eax, 3
xor ecx, ecx
cmp edx, 3
jb 0x44809a
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 0x448070
test eax, eax
je 0x447fd0
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 0x4480b0
jmp 0x447fd0
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.0046c560
add esp, 0x8c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x448220
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
push 0x4ac92c
push dword [eax]
call fcn.0047e478
add esp, 8
test eax, eax
je 0x448296
mov esi, eax
mov ebp, dword [esp + 0x14]
mov dword [ebp + 4], 0
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4482ad
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.0047e964
add esp, 0x10
mov edi, eax
push esi
call fcn.0047dec2
add esp, 4
test eax, eax
jne 0x44829d
mov eax, dword [ebp + 4]
test edi, edi
je 0x4482a4
add eax, edi
mov dword [ebp + 4], eax
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x448260
jmp 0x4482a7
mov ebx, 2
jmp 0x4482e7
mov ebx, 2
jmp 0x4482de
mov ecx, dword [ebp + 8]
xor ebx, ebx
cmp eax, ecx
jne 0x4482c1
push esi
call fcn.0047e257
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.0047dd6d
add esp, 4
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x44ca30
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, 0x49c3e8
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, 0x49c5e8
jb 0x44cab0
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 0x45a510
Capabilities:
Get common file path

Disassembly:
push esi
cmp dword [0x4c191c], 0
jne 0x45a570
push dword [0x4c1920]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, dword [0x4c1920]
jb 0x45a570
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 0x4c1920
push dword [0x4c191c]
call fcn.00413510
add esp, 0x18
mov dword [0x4c191c], eax
push dword [0x4c1920]
push eax
call esi
cmp eax, dword [0x4c1920]
jae 0x45a540
mov eax, dword [0x4c191c]
pop esi
ret

Function at 0x45b5a0
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0x18
mov edi, dword [esp + 0x2c]
mov eax, dword [0x4c0018]
xor eax, esp
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
xor esi, esi
call fcn.00409f80
test al, al
je 0x45b5f2
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
xor esi, esi
push edi
push eax
push ecx
push 0x1f0001
call fcn.00414430
add esp, 0x10
test al, al
je 0x45b648
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 0x45b626
mov esi, eax
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x45b648
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042f950
add esp, 4
push eax
push ebx
push str.CreateMutex___s___failed:__s
call fcn.004155a0
add esp, 0xc
mov dword [edi], eax
xor esi, esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x45b657
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x45b666
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0046c560
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
ret
Function at 0x45b6a0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [esp + 0x20]
mov eax, dword [0x4c0018]
xor eax, esp
mov dword [esp + 8], eax
push 9
push str..pipe_
push esi
call fcn.004807d0
add esp, 0xc
test eax, eax
je 0x45b6de
push 0x16
push str._home_simon_mem_.build_workdirs_bob_fffbk9my_putty_windows_named_pipe_client.c
push str.strncmp_pipename___.pipe___9___0
call fcn.0047ca64
add esp, 0xc
lea eax, [esi + 9]
push 0x5c
push eax
call fcn.0046f3f0
add esp, 8
test eax, eax
je 0x45b704
push 0x17
push str._home_simon_mem_.build_workdirs_bob_fffbk9my_putty_windows_named_pipe_client.c
push str.strchr_pipename__9_____NULL
call fcn.0047ca64
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 0x45b75c
call ebx
cmp eax, 0xe7
jne 0x45b7a4
push 0
mov esi, ebp
push ebp
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
jne 0x45b710
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042f950
add esp, 4
push eax
push esi
push str.Error_waiting_for_named_pipe__s:__s
jmp 0x45b7ba
mov esi, eax
call fcn.004142e0
test eax, eax
je 0x45b7c4
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 [0x4c13bc]
test eax, eax
je 0x45b7e2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042f950
add esp, 4
push eax
push str.Unable_to_get_named_pipe_security_information:__s
jmp 0x45b812
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042f950
add esp, 4
push eax
push ebp
push str.Unable_to_open_named_pipe__s:__s
call fcn.004155a0
add esp, 0xc
jmp 0x45b81a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042f950
add esp, 4
push eax
push str.Unable_to_get_user_SID:__s
jmp 0x45b812
push edi
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x45b7fc
push dword [esp]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x45b825
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.004155a0
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.0046c560
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x45b8b0
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 [0x4c0018]
xor eax, esp
mov dword [esp + 0xc], eax
push 0
push 0x34
push 1
call fcn.00413470
add esp, 0xc
mov esi, eax
mov dword [eax + 0x30], 0x49ebc4
mov dword [eax + 0x28], edi
mov dword [eax + 0x2c], 0
mov dword [eax], 0
push ebx
call fcn.0041c540
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.004807d0
add esp, 0xc
test eax, eax
je 0x45b936
push 0xd5
push str._home_simon_mem_.build_workdirs_bob_fffbk9my_putty_windows_named_pipe_server.c
push str.strncmp_pipename___.pipe___9___0
call fcn.0047ca64
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.0046f3f0
add esp, 8
test eax, eax
je 0x45b969
push 0xd6
push str._home_simon_mem_.build_workdirs_bob_fffbk9my_putty_windows_named_pipe_server.c
push str.strchr_pipename__9_____NULL
call fcn.0047ca64
add esp, 0xc
mov edi, esi
add edi, 0x30
push ebp
push ebx
push esi
push 0xc0000000
call fcn.00414430
add esp, 0x10
test al, al
je 0x45ba3c
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 0x45ba18
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 0x45ba60
push eax
call fcn.00414d20
add esp, 0xc
mov dword [esi + 0x24], eax
mov ecx, esi
xor edx, edx
call fcn.0045ba70
jmp 0x45ba3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042f950
add esp, 4
push eax
push dword [esp + 0x28]
push str.unable_to_create_named_pipe__s:__s
call fcn.004155a0
add esp, 0xc
mov dword [ebp], eax
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0046c560
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret