joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f668
Capabilities:
Compare security identifiers

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [esp + 0x20]
mov eax, dword [0x4c1074]
xor eax, esp
mov dword [esp + 8], eax
push 9
push str..pipe_
push esi
call fcn.00485650
add esp, 0xc
test eax, eax
je 0x46f6a6
push 0x18
push str..._windows_winnpc.c
push str.strncmp_pipename___.pipe___9___0
call fcn.00481fcd
add esp, 0xc
lea eax, [esi + 9]
push 0x5c
push eax
call fcn.00478c80
add esp, 8
test eax, eax
je 0x46f6cc
push 0x19
push str..._windows_winnpc.c
push str.strchr_pipename__9_____NULL
call fcn.00481fcd
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 0x1c
movaps xmm0, xmmword [0x4a1c50]
movups xmmword [esp + 4], xmm0
mov ebp, esi
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x40000000
call edi
cmp eax, 0xffffffff
jne 0x46f733
call ebx
cmp eax, 0xe7
jne 0x46f77a
push 0
mov esi, ebp
push ebp
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
jne 0x46f6d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046cc40
add esp, 4
push eax
push esi
push str.Error_waiting_for_named_pipe__s:__s
jmp 0x46f790
mov esi, eax
call fcn.00470817
test eax, eax
je 0x46f79a
mov edi, eax
mov eax, esp
xor ecx, ecx
lea edx, [esp + 4]
push eax
push ecx
push ecx
push ecx
push edx
push 1
push 6
push esi
call dword [0x4c442c]
test eax, eax
je 0x46f7b8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046cc40
add esp, 4
push eax
push str.Unable_to_get_named_pipe_security_information:__s
jmp 0x46f7e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046cc40
add esp, 4
push eax
push ebp
push str.Unable_to_open_named_pipe__s:__s
call fcn.0045abe5
add esp, 0xc
jmp 0x46f7f0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046cc40
add esp, 4
push eax
push str.Unable_to_get_user_SID:__s
jmp 0x46f7e8
push edi
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x46f7d2
push dword [esp]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x46f7f9
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.0045abe5
add esp, 8
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
xor esi, esi
dec esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00475526
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x46f870
Capabilities:
Create pipe

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov eax, dword [0x4c1074]
xor eax, esp
mov dword [esp + 0xc], eax
xor ebx, ebx
push ebx
push 0x34
push 1
call fcn.004115d0
add esp, 0xc
mov esi, eax
mov dword [eax + 0x30], 0x4a1c60
mov dword [eax + 0x28], edi
mov dword [eax + 0x2c], ebx
mov dword [eax], ebx
push ebp
call fcn.0045ac2f
add esp, 4
mov dword [esi + 8], eax
mov dword [esi + 4], ebx
mov dword [esi + 0x24], ebx
push 9
push str..pipe_
push ebp
call fcn.00485650
add esp, 0xc
test eax, eax
je 0x46f8e7
push 0xd7
push str..._windows_winnps.c
push str.strncmp_pipename___.pipe___9___0
call fcn.00481fcd
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.00478c80
add esp, 8
test eax, eax
je 0x46f91a
push 0xd8
push str..._windows_winnps.c
push str.strchr_pipename__9_____NULL
call fcn.00481fcd
add esp, 0xc
mov edi, esi
add edi, 0x30
push ebp
push ebx
push esi
push 0xc0000000
call fcn.00470957
add esp, 0x10
test al, al
je 0x46f9e2
mov eax, esp
mov dword [eax], 0xc
mov ecx, dword [esi]
mov dword [eax + 4], ecx
xor ecx, ecx
mov dword [eax + 8], ecx
mov edx, dword [esi + 8]
sub esp, 0x20
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
movaps xmm0, xmmword [0x4a1c80]
movups xmmword [esp + 4], xmm0
mov dword [esp], edx
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
je 0x46f9be
xorps xmm0, xmm0
movups xmmword [esi + 0x10], xmm0
mov dword [esi + 0x20], 0
sub esp, 0x10
movaps xmm0, xmmword [0x49a4c0]
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x20], eax
push esi
push 0x46f9f7
push eax
call fcn.0046b4c1
add esp, 0xc
mov dword [esi + 0x24], eax
mov ecx, esi
xor edx, edx
call fcn.0046fa03
jmp 0x46f9e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046cc40
add esp, 4
push eax
push dword [esp + 0x28]
push str.unable_to_create_named_pipe__s:__s
call fcn.0045abe5
add esp, 0xc
mov dword [ebp], eax
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00475526
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x46fa03
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov ebx, edx
mov esi, ecx
mov eax, dword [0x4c1074]
xor eax, esp
mov dword [esp + 0x10], eax
lea eax, [ecx + 0x10]
mov dword [esp], eax
xor ebp, ebp
test bl, 1
jne 0x46fa4e
push dword [esp]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x46fa50
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x46fa50
mov edi, eax
cmp eax, 0x217
je 0x46fa50
jmp 0x46fb1f
xor ebx, ebx
mov edi, dword [esi + 0xc]
mov eax, dword [esi + 0x28]
mov dword [esp + 4], edi
mov ecx, dword [eax]
mov edx, dword [esp + 4]
push edx
push 0x46fbac
push eax
call dword [ecx + 0x10]
add esp, 0xc
test eax, eax
je 0x46fa78
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 4], 0xc
mov eax, dword [esi]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebp
mov eax, dword [esi + 8]
sub esp, 0x20
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ebp
movaps xmm0, xmmword [0x4a1c90]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
jne 0x46fa21
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
call fcn.0046cc40
add esp, 4
push eax
push str.Error_while_listening_to_named_pipe:__s
call fcn.0045abe5
add esp, 8
mov ebx, eax
push dword [esi + 8]
call fcn.0046dc3f
add esp, 4
mov ecx, dword [esi + 0x28]
mov edx, dword [ecx]
push edi
push ebx
push 0
push eax
push 1
push ecx
call dword [edx]
add esp, 0x18
push ebx
call fcn.00411645
add esp, 4
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00475526
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
cmp edi, 0x3e5
jne 0x46facd
jmp 0x46fb0c
Function at 0x470336
Capabilities:
Link many functions at runtime

Disassembly:
push edi
push esi
cmp byte [0x4c4420], 0
jne 0x470401
push str.winspool.drv
call fcn.0046caa4
add esp, 4
mov esi, eax
push str.spoolss.dll
call fcn.0046caa4
add esp, 4
test esi, esi
je 0x4703d0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumPrintersA
push esi
call edi
mov dword [0x4c441c], eax
push str.OpenPrinterA
push esi
call edi
mov dword [0x4c4400], eax
push str.ClosePrinter
push esi
call edi
mov dword [0x4c4414], eax
push str.StartDocPrinterA
push esi
call edi
mov dword [0x4c4404], eax
push str.EndDocPrinter
push esi
call edi
mov dword [0x4c4410], eax
push str.StartPagePrinter
push esi
call edi
mov dword [0x4c4408], eax
push str.EndPagePrinter
push esi
call edi
mov dword [0x4c440c], eax
push str.WritePrinter
push esi
call edi
jmp 0x4703f5
xor eax, eax
mov dword [0x4c441c], eax
mov dword [0x4c4400], eax
mov dword [0x4c4414], eax
mov dword [0x4c4404], eax
mov dword [0x4c4410], eax
mov dword [0x4c4408], eax
mov dword [0x4c440c], eax
mov dword [0x4c4418], eax
mov byte [0x4c4420], 1
pop esi
pop edi
ret
Function at 0x4706b8
Capabilities:
Link many functions at runtime

Disassembly:
cmp byte [0x4c4424], 1
jne 0x4706c7
mov al, byte [0x4c4425]
ret
mov byte [0x4c4424], 1
push str.advapi32.dll
call fcn.0046caa4
add esp, 4
mov dword [0x4c4428], eax
test eax, eax
je 0x47080f
push str.GetSecurityInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c442c], eax
test eax, eax
je 0x47080f
mov eax, dword [0x4c4428]
test eax, eax
je 0x4707d5
push str.SetSecurityInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c4430], eax
test eax, eax
je 0x47080f
mov eax, dword [0x4c4428]
test eax, eax
je 0x4707e1
push str.OpenProcessToken
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c4434], eax
test eax, eax
je 0x47080f
mov eax, dword [0x4c4428]
test eax, eax
je 0x4707ed
push str.GetTokenInformation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c4438], eax
test eax, eax
je 0x47080f
mov eax, dword [0x4c4428]
test eax, eax
je 0x4707f9
push 0x4aa7fe
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c443c], eax
test eax, eax
je 0x47080f
mov eax, dword [0x4c4428]
test eax, eax
je 0x470805
push 0x4aab4a
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov dword [0x4c4440], eax
xor eax, eax
test ecx, ecx
je 0x470811
mov ecx, dword [0x4c4428]
test ecx, ecx
je 0x4707c9
push str.SetEntriesInAclA
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c4444], eax
test eax, eax
setne al
jmp 0x470811
mov dword [0x4c4430], 0
jmp 0x47080f
mov dword [0x4c4434], 0
jmp 0x47080f
mov dword [0x4c4438], 0
jmp 0x47080f
mov dword [0x4c443c], 0
jmp 0x47080f
mov dword [0x4c4440], 0
xor eax, eax
mov byte [0x4c4425], al
ret
Function at 0x471726
Capabilities:
Set registry value

Disassembly:
push ebx
push edi
push esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x471752
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
push edi
call fcn.004855c0
add esp, 4
inc eax
push eax
push edi
push 1
push 0
push ebx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
pop edi
pop ebx
ret

Function at 0x471855
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, dword [esp + 0x20]
mov eax, dword [0x4c1074]
xor eax, esp
mov dword [esp + 8], eax
test ebx, ebx
je 0x4718f4
mov edi, dword [esp + 0x24]
mov eax, esp
xor esi, esi
lea ecx, [esp + 4]
push eax
push esi
push ecx
push esi
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x471901
cmp dword [esp + 4], 1
jne 0x471901
mov ebp, dword [esp]
inc ebp
xor esi, esi
push esi
push 1
push ebp
call fcn.004115d0
add esp, 0xc
mov ecx, edi
mov edi, eax
mov eax, esp
push eax
push edi
lea eax, [esp + 0xc]
push eax
push esi
push ecx
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4718f8
cmp dword [esp + 4], 1
jne 0x4718f8
mov eax, dword [esp]
cmp eax, ebp
jb 0x4718ec
push 0x92
push str..._windows_winstore.c
push str.size___allocsize
call fcn.00481fcd
add esp, 0xc
mov eax, dword [esp]
mov byte [edi + eax], 0
mov esi, edi
jmp 0x471901
xor esi, esi
jmp 0x471901
push edi
call fcn.00411645
add esp, 4
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00475526
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x471916
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push edi
push esi
sub esp, 0x10
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov ecx, dword [0x4c1074]
xor ecx, esp
mov dword [esp + 0xc], ecx
mov dword [esp], 4
test eax, eax
je 0x47196a
mov edi, esp
lea ecx, [esp + 4]
lea ebx, [esp + 8]
push edi
push ecx
push ebx
push 0
push dword [esp + 0x34]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [edi]
xor ecx, 4
mov edx, dword [ebx]
xor edx, 4
or ecx, eax
or ecx, edx
jne 0x47196a
mov esi, dword [esp + 4]
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00475526
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
ret
Function at 0x471a7d
Capabilities:
Set registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov eax, dword [0x4c1074]
xor eax, esp
mov dword [esp + 4], eax
push dword [ebx]
push ebp
push edi
call fcn.00471726
add esp, 0xc
push 0
push str.IsBold
push ebp
call fcn.0045ac65
add esp, 0xc
mov esi, eax
movzx eax, byte [ebx + 4]
mov dword [esp], eax
test edi, edi
je 0x471ad9
mov eax, 4
mov ecx, esp
push eax
push ecx
push eax
push 0
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call fcn.00411645
add esp, 4
push 0
push str.CharSet
push ebp
call fcn.0045ac65
add esp, 0xc
mov esi, eax
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
test edi, edi
je 0x471b13
mov eax, 4
mov ecx, esp
push eax
push ecx
push eax
push 0
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call fcn.00411645
add esp, 4
push 0
push 0x4a8375
push ebp
call fcn.0045ac65
add esp, 0xc
mov esi, eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
test edi, edi
je 0x471b4d
mov eax, 4
mov ecx, esp
push eax
push ecx
push eax
push 0
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call fcn.00411645
add esp, 4
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00475526
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x471bcb
Capabilities:
Delete registry key

Disassembly:
push edi
push esi
sub esp, 8
mov eax, dword [0x4c1074]
xor eax, esp
mov dword [esp + 4], eax
mov eax, esp
push eax
push str.SoftwareSimonTathamPuTTYSessions
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x471c2e
mov edi, dword [esp + 0x14]
call fcn.0045af10
mov esi, eax
push eax
push edi
call fcn.0046cf0b
add esp, 8
push dword [esi]
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push esi
call fcn.0045af73
add esp, 4
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.0046c57b
add esp, 4
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00475526
add esp, 8
pop esi
pop edi
ret
Function at 0x471c99
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov edi, dword [esp + 0x1c]
mov eax, dword [0x4c1074]
xor eax, esp
mov dword [esp + 4], eax
mov ebx, 0x105
mov dword [esp], ebx
push 0
push 1
push ebx
call fcn.004115d0
add esp, 0xc
mov esi, eax
push ebx
push eax
push dword [edi + 4]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0xea
jne 0x471d11
xor ebp, ebp
inc ebp
push 0
push ebp
push ebx
push ebp
lea eax, [esp + 0x10]
push eax
push esi
call fcn.00411651
add esp, 0x18
mov esi, eax
push dword [esp]
push eax
mov eax, dword [esp + 0x24]
push dword [eax + 4]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0xea
jne 0x471d11
mov ebx, dword [esp]
jmp 0x471cdd
mov edi, eax
test eax, eax
jne 0x471d24
push dword [esp + 0x20]
push esi
call fcn.0046cf96
add esp, 8
test edi, edi
sete bl
mov eax, dword [esp + 0x1c]
inc dword [eax + 4]
push esi
call fcn.00411645
add esp, 4
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00475526
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x471fe3
Capabilities:
Set registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov eax, dword [0x4c1074]
xor eax, esp
mov dword [esp + 4], eax
call fcn.0045af10
mov esi, eax
push ebp
push ebx
push str._s__d:
push eax
call fcn.0045aff3
add esp, 0x10
push esi
push edi
call fcn.0046cf0b
add esp, 8
mov eax, esp
push eax
push str.SoftwareSimonTathamPuTTYSshHostKeys
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x472062
mov edi, dword [esp + 0x28]
push edi
call fcn.004855c0
add esp, 4
inc eax
push eax
push edi
push 1
push 0
push dword [esi]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0045af73
add esp, 4
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00475526
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x47207e
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x408
mov eax, dword [0x4c1074]
xor eax, esp
mov dword [esp + 0x404], eax
xor ecx, ecx
inc ecx
call fcn.00472115
cmp eax, 0xffffffff
je 0x4720fc
mov esi, eax
mov eax, esp
lea ebx, [esp + 4]
push 0
push eax
push 0x400
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4720f5
mov eax, dword [esp]
test eax, eax
je 0x4720f5
mov ebp, dword [esp + 0x41c]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
push ebx
call ebp
add esp, 8
push 0
lea eax, [esp + 4]
push eax
push 0x400
push ebx
push esi
call edi
test eax, eax
je 0x4720f5
mov eax, dword [esp]
test eax, eax
jne 0x4720d3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.00475526
add esp, 0x408
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x47239c
Capabilities:
Write file on windows

Disassembly:
push esi
sub esp, 8
mov eax, dword [0x4c1074]
xor eax, esp
mov dword [esp + 4], eax
mov ecx, 2
call fcn.00472115
cmp eax, 0xffffffff
je 0x4723d7
mov esi, eax
mov eax, esp
push 0
push eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00475526
add esp, 8
pop esi
ret
Function at 0x4726d3
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push edi
push esi
sub esp, 0x110
mov eax, dword [0x4c1074]
xor eax, esp
mov dword [esp + 0x10c], eax
xor ecx, ecx
call fcn.00472115
call fcn.0046c18c
mov edi, esp
push edi
push str.SoftwareSimonTathamPuTTY
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x47271d
mov ecx, dword [esp]
call fcn.004727ac
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push str.SoftwareSimonTatham
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x472749
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00475526
add esp, 0x110
pop esi
pop edi
ret
push 0x4b0043
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea eax, [esp + 7]
push 0x105
push eax
push 0
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x472732
push edi
push str.Software
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x472732
push 0x4ac098
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x472732

Function at 0x4727ac
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x110
mov esi, ecx
mov eax, dword [0x4c1074]
xor eax, esp
mov dword [esp + 0x10c], eax
lea edi, [esp + 7]
push 0x105
push edi
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x47281c
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov eax, esp
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x472809
mov ecx, dword [esp]
call fcn.004727ac
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push esi
call ebx
push 0x105
push edi
push 0
push esi
call ebp
test eax, eax
je 0x4727e9
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00475526
add esp, 0x110
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x472835
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, ecx
mov edi, dword [esp + 0x14]
test edx, edx
je 0x472881
xor ecx, ecx
xor eax, eax
cmp edx, 2
setne cl
sete al
lea ecx, [ecx + ecx*2]
mov edx, 0x40000000
mov ebx, 0x80000000
cmove ebx, edx
mov edx, eax
shl edx, 7
xor eax, 3
xor ebp, ebp
push ebp
push edx
push eax
push ebp
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi], eax
cmp eax, 0xffffffff
setne al
jmp 0x4728bd
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4728b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4728b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046cc40
add esp, 4
push eax
push esi
push str.Unable_to_delete__s:__s
call fcn.00466839
add esp, 0xc
mov dword [edi], 0xffffffff
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x473954
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x108
mov esi, dword [esp + 0x120]
mov edi, dword [esp + 0x11c]
mov al, byte [esp + 0x124]
mov ecx, dword [0x4c1074]
xor ecx, esp
mov dword [esp + 0x104], ecx
xor ebp, ebp
mov ebx, 0
test al, al
je 0x4739a4
mov eax, esp
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
dec eax
cmp eax, 0x103
setb bl
mov al, byte [esp + 0x128]
mov dword [esi], 0x4c
test edi, edi
je 0x4739bd
xor ebp, ebp
cmp byte [edi], 0
cmovne ebp, edi
mov dword [esi + 0x2c], ebp
test al, al
je 0x4739cd
push esi
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x4739d4
push esi
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
mov esi, eax
test edi, edi
je 0x4739f1
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
dec eax
cmp eax, 0x103
jb 0x4739f1
mov byte [edi], 0
test bl, bl
je 0x4739fe
mov eax, esp
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test esi, esi
setne bl
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00475526
mov eax, ebx
add esp, 0x108
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x48b860
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048b86b

Function at 0x48cf4c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048cf57
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x5d8ade
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x5d87dc
and esi, eax
sub esi, 0x25eee670
call fcn.005d8b1a
sub esi, 1
and esi, esi
xor dword [ebx], ecx
sub esi, esi
sub esi, esi
add ebx, 2
mov eax, eax
cmp ebx, edx
jl fcn.005d8ade
and esi, esi
ret

Function at 0x4ca253
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4c9fca
and edi, ecx
mov edi, edi
sub edi, edi
call fcn.004ca28f
or ecx, ecx
and edi, ecx
xor dword [esi], eax
dec ecx
and edi, edi
push 0x3320dfa4
pop edi
inc esi
inc ecx
or edi, ecx
cmp esi, ebx
jne fcn.004ca253
and edi, ecx
inc edi
ret