joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445d8d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
push 2
push dword [0x47f55c]
call fcn.00402257
push eax
call fcn.0040f41c
xor ebx, ebx
add esp, 0xc
cmp eax, ebx
mov dword [0x47d144], eax
jne 0x445dea
push dword [0x45d510]
push str._s_Internal_Error
call fcn.0040c34a
pop ecx
pop ecx
push 0x30
mov esi, eax
push esi
push str.Unsupported_protocol_number_found
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call fcn.0040bda9
pop ecx
push 1
call fcn.00445246
push edi
push 8
push dword [0x47f55c]
call fcn.00402257
pop ecx
pop ecx
push eax
push 7
push dword [0x47f55c]
call fcn.00402257
pop ecx
pop ecx
push eax
lea eax, [ebp - 4]
push eax
push 1
push dword [0x47f55c]
call fcn.00402257
pop ecx
pop ecx
push eax
push ebx
push dword [0x47f55c]
call fcn.0040235b
pop ecx
pop ecx
push eax
push dword [0x47f55c]
mov eax, dword [0x47d144]
push 0x47ce10
push ebx
call dword [eax]
push dword [0x47f564]
mov edi, eax
push dword [0x47ce10]
mov eax, dword [0x47d144]
call dword [eax + 0x34]
add esp, 0x28
cmp edi, ebx
je 0x445eb2
push dword [0x45d510]
push str._s_Error
call fcn.0040c34a
pop ecx
pop ecx
push edi
push dword [0x47f55c]
mov esi, eax
call fcn.0040bde3
pop ecx
push eax
lea eax, [ebp - 0x404]
push str.Unable_to_open_connection_to_n_.800s_n_s
push eax
call fcn.00452d28
add esp, 0x10
push 0x10
push esi
lea eax, [ebp - 0x404]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call fcn.0040bda9
pop ecx
push ebx
call fcn.00454efa
push 0x5a
push dword [0x47f55c]
mov dword [0x47dc7c], ebx
mov dword [0x47dcbc], ebx
call fcn.0040235b
pop ecx
mov esi, eax
cmp byte [esi], bl
pop ecx
pop edi
jne 0x445ef7
push dword [0x45d510]
lea eax, [ebp - 0x404]
push dword [ebp - 4]
push str._s____s
push eax
call fcn.00452d28
add esp, 0x10
lea esi, [ebp - 0x404]
push dword [ebp - 4]
call fcn.0040bda9
push esi
push ebx
call fcn.0044401d
push esi
push ebx
call fcn.0044407d
push dword [0x47ce10]
mov eax, dword [0x47d144]
push dword [eax + 0x14]
push dword [0x47f570]
call fcn.00434dab
push ebx
push dword [0x47ce10]
push dword [0x47d144]
push dword [0x47f570]
push dword [0x47f55c]
call fcn.0040917d
add esp, 0x34
mov dword [0x47d158], eax
xor esi, esi
push ebx
push 0x40
push dword [esi + 0x47ce08]
call dword [sym.imp.USER32.dll_DeleteMenu]
add esi, 4
cmp esi, 8
jb 0x445f4e
pop esi
mov dword [0x47dca8], ebx
pop ebx
leave
ret
Function at 0x44a26e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x1034
push 1
call fcn.0040bcdf
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
pop ecx
pop ecx
xor edi, edi
push edi
push edi
mov esi, eax
mov eax, dword [ebp + 8]
push edi
push edi
mov dword [esi], edi
mov dword [esi + 4], eax
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 8], eax
call ebx
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x1030], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x24], eax
mov eax, dword [0x47e1c4]
cmp eax, edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
jne 0x44a2de
push 0x42f46f
call fcn.0043c185
pop ecx
mov dword [0x47e1c4], eax
push esi
push eax
call fcn.0043c6f9
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
push edi
lea eax, [esi + 4]
push eax
push 0x449f9c
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [esi + 0x1c], 1
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x44a30b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
push 0x1034
inc edi
push edi
call fcn.0040bcdf
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
pop ecx
mov esi, eax
mov eax, dword [ebp + 8]
pop ecx
mov dword [esi], edi
xor edi, edi
push edi
push edi
push edi
push edi
mov dword [esi + 4], eax
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 8], eax
call ebx
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x38]
push eax
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
call fcn.0040bc2e
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x48], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x24], eax
mov eax, dword [0x47e1c4]
cmp eax, edi
pop ecx
mov dword [esi + 0x44], edi
jne 0x44a38a
push 0x42f46f
call fcn.0043c185
pop ecx
mov dword [0x47e1c4], eax
push esi
push eax
call fcn.0043c6f9
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
push edi
lea eax, [esi + 4]
push eax
push 0x44a10a
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x44b3bd
Capabilities:
Get common file path

Disassembly:
cmp dword [0x47e9f0], 0
push esi
push edi
jne 0x44b3fb
xor esi, esi
lea eax, [esi + esi*2]
cdq
sub eax, edx
sar eax, 1
add eax, 0x200
mov esi, eax
push 1
push esi
push dword [0x47e9f0]
call fcn.0040bd3e
add esp, 0xc
push esi
push eax
mov dword [0x47e9f0], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
jge 0x44b3ca
push 0
push dword [esp + 0x10]
push 0x4741f4
push dword [0x47e9f0]
call fcn.0040c149
add esp, 0x10
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov edi, eax
call fcn.0040bda9
pop ecx
mov eax, edi
pop edi
pop esi
ret
Function at 0x44d7a7
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push ebx
push esi
push edi
push 0x107
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x130]
push 0x474cec
push eax
call fcn.00453ec0
pop ecx
pop ecx
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, dword [ebp + 8]
mov esi, eax
cmp esi, 0xffffffff
je 0x44d81f
lea eax, [ebp - 0x270]
push 0x140
push eax
call ebx
pop ecx
pop ecx
lea eax, [ebp - 0x270]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x44d7f6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push 4
push eax
call ebx
xor edi, edi
cmp dword [0x47f0e8], edi
pop ecx
pop ecx
jne 0x44d8b0
push str.advapi32.dll
call fcn.0044b3bd
cmp eax, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop ecx
mov dword [0x47f0e8], eax
je 0x44d86a
push str.CryptAcquireContextA
push eax
call esi
mov dword [0x47f0e0], eax
mov eax, dword [0x47f0e8]
jmp 0x44d870
mov dword [0x47f0e0], edi
cmp eax, edi
je 0x44d888
push str.CryptGenRandom
push eax
call esi
mov dword [0x47f0dc], eax
mov eax, dword [0x47f0e8]
jmp 0x44d88e
mov dword [0x47f0dc], edi
cmp eax, edi
je 0x44d8a6
push str.CryptReleaseContext
push eax
call esi
mov dword [0x47f0e4], eax
mov eax, dword [0x47f0e8]
jmp 0x44d8ac
mov dword [0x47f0e4], edi
cmp eax, edi
je 0x44d903
mov eax, dword [0x47f0e0]
cmp eax, edi
je 0x44d903
cmp dword [0x47f0dc], edi
je 0x44d903
cmp dword [0x47f0e4], edi
je 0x44d903
push 0xf0000000
push 1
push edi
push edi
lea ecx, [ebp - 4]
push ecx
call eax
test eax, eax
je 0x44d903
lea eax, [ebp - 0x28]
push eax
push 0x20
push dword [ebp - 4]
call dword [0x47f0dc]
test eax, eax
je 0x44d8f9
lea eax, [ebp - 0x28]
push 0x20
push eax
call ebx
pop ecx
pop ecx
push edi
push dword [ebp - 4]
call dword [0x47f0e4]
push ebx
call fcn.0044fc60
pop ecx
call fcn.0044d60d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44d914
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 9
push str..pipe_
push esi
call fcn.00452270
add esp, 0xc
test eax, eax
mov edi, str...windowswinnpc.c
je 0x44d949
push 0x1e
push edi
push str.strncmp_pipename___.pipe___9___0
call fcn.00452518
add esp, 0xc
lea eax, [esi + 9]
push 0x5c
push eax
call fcn.004522c0
test eax, eax
pop ecx
pop ecx
je 0x44d96a
push 0x1f
push edi
push str.strchr_pipename__9_____NULL
call fcn.00452518
add esp, 0xc
xor eax, eax
push eax
mov ebx, 0x40000000
push ebx
push 3
push eax
push eax
mov edi, 0xc0000000
push edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
jmp 0x44d9b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x44daad
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
je 0x44dac4
xor eax, eax
push eax
push ebx
push 3
push eax
push eax
push edi
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x44d986
call fcn.0044e463
mov esi, eax
xor eax, eax
cmp esi, eax
jne 0x44d9fb
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Unable_to_get_user_SID
call fcn.0040c34a
push dword [ebp + 0xc]
mov esi, eax
push esi
call fcn.004088d3
push esi
mov edi, eax
call fcn.0040bda9
add esp, 0x10
jmp 0x44daf4
mov edi, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push eax
push eax
push eax
lea eax, [ebp - 0xc]
push eax
push 1
push 6
push edi
call dword [0x47f498]
test eax, eax
je 0x44da4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0044b430
push eax
push str.Unable_to_get_named_pipe_security_information:__s
call fcn.0040c34a
push dword [ebp + 0xc]
mov esi, eax
push esi
call fcn.004088d3
push esi
mov ebx, eax
call fcn.0040bda9
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x44da8f
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x44da93
push dword [ebp + 8]
push str.Owner_of_named_pipe__s_is_not_us
call fcn.0040c34a
push dword [ebp + 0xc]
mov esi, eax
push esi
call fcn.004088d3
push esi
mov ebx, eax
call fcn.0040bda9
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
jmp 0x44daf6
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 1
push dword [ebp + 0xc]
push edi
push edi
call fcn.0044ac2f
add esp, 0x10
jmp 0x44daf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0044b430
push eax
push dword [ebp + 8]
push str.Unable_to_open_named_pipe__s:__s
jmp 0x44dad9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0044b430
push eax
push dword [ebp + 8]
push str.Error_waiting_for_named_pipe__s:__s
call fcn.0040c34a
push dword [ebp + 0xc]
mov esi, eax
push esi
call fcn.004088d3
push esi
mov edi, eax
call fcn.0040bda9
add esp, 0x1c
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44db70
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0xc
mov esi, eax
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.00452e50
mov eax, dword [edi + 4]
and dword [ebp - 4], 0
add esp, 0xc
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, 0x1000
push eax
push eax
neg esi
sbb esi, esi
push 0xff
push 0
and esi, 0x80000
or esi, 0x40000003
push esi
push dword [edi + 0xc]
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [edi + 0x10], eax
pop esi
mov eax, ecx
leave
ret

Function at 0x44dbef
Capabilities:
Connect pipe

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
mov edi, eax
cmp dword [esp + 0x14], 0
je 0x44dc09
and dword [esp + 0x14], 0
jmp 0x44dc32
lea eax, [edi + 0x14]
push eax
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x44dc32
call ebp
mov ebx, eax
cmp ebx, 0x3e5
je 0x44dc9a
test ebx, ebx
je 0x44dc32
cmp ebx, 0x217
jne 0x44dc61
mov esi, dword [edi + 0x10]
mov eax, dword [edi + 0x2c]
mov ecx, dword [eax]
push esi
push 0x44dbd8
push eax
call dword [ecx + 0x10]
add esp, 0xc
test eax, eax
je 0x44dc52
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
call fcn.0044db70
test eax, eax
jne 0x44dbfb
call ebp
mov ebx, eax
push ebx
call fcn.0044b430
push eax
push str.Error_while_listening_to_named_pipe:__s
call fcn.0040c34a
add esp, 0xc
mov ebp, eax
mov eax, dword [edi + 0x2c]
mov esi, dword [eax]
push ebx
push ebp
push 0
push dword [edi + 0xc]
call fcn.0044c3e4
pop ecx
push eax
push 1
push dword [edi + 0x2c]
call dword [esi]
push ebp
call fcn.0040bda9
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x44e1a0
Capabilities:
Create pipe
Create process on windows
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push 0xd
push dword [ebp + 0x28]
call fcn.00402257
cmp eax, 5
pop ecx
pop ecx
je 0x44e1bb
xor eax, eax
leave
ret
push ebx
push esi
push edi
push dword [ebp + 0x28]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040df4f
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0044c7b0
push dword [ebp - 4]
push str.Starting_local_proxy_command:__s
call fcn.0040c34a
mov edi, eax
push edi
xor esi, esi
push esi
call fcn.00441c0c
push edi
call fcn.0040bda9
mov edi, dword [sym.imp.KERNEL32.dll_CreatePipe]
add esp, 0x24
push esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
xor ebx, ebx
lea eax, [ebp - 0xc]
inc ebx
push eax
mov dword [ebp - 0x20], 0xc
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
call edi
test eax, eax
jne 0x44e242
push dword [ebp + 0x24]
push str.Unable_to_create_pipes_for_proxy_command
call fcn.004088d3
push dword [ebp - 4]
mov esi, eax
call fcn.0040bda9
add esp, 0xc
mov eax, esi
jmp 0x44e318
push esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call edi
test eax, eax
jne 0x44e286
push dword [ebp + 0x24]
push str.Unable_to_create_pipes_for_proxy_command
call fcn.004088d3
push dword [ebp - 4]
mov edi, eax
call fcn.0040bda9
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0xc
push dword [ebp - 0xc]
call esi
push dword [ebp - 8]
call esi
mov eax, edi
jmp 0x44e318
mov edi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push esi
push ebx
push dword [ebp - 0x14]
call edi
push esi
push ebx
push dword [ebp - 0xc]
call edi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push esi
push 0x8000020
push ebx
push esi
push esi
push dword [ebp - 4]
mov dword [ebp - 0x74], 0x44
push esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x48], pe_nt_image_headers32
mov word [ebp - 0x42], si
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x34], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x2c]
call edi
push dword [ebp - 4]
call fcn.0040bda9
pop ecx
push dword [ebp - 0x10]
call edi
push dword [ebp - 8]
call edi
push esi
push dword [ebp + 0x24]
push dword [ebp - 0xc]
push dword [ebp - 0x14]
call fcn.0044ac2f
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44f358
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
xor eax, eax
cmp dword [ebp + 8], eax
push ebx
push edi
je 0x44f3eb
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 4]
push ecx
push eax
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x44f3e8
cmp dword [ebp - 8], 1
jne 0x44f3e8
mov edi, dword [ebp - 4]
inc edi
push 1
push edi
call fcn.0040bcdf
pop ecx
pop ecx
mov ebx, eax
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x44f3e1
cmp dword [ebp - 8], 1
jne 0x44f3e1
cmp dword [ebp - 4], edi
jb 0x44f3d6
push 0xb0
push str...windowswinstore.c
push str.size___allocsize
call fcn.00452518
add esp, 0xc
mov eax, dword [ebp - 4]
mov byte [ebx + eax], 0
mov eax, ebx
jmp 0x44f3ea
push ebx
call fcn.0040bda9
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret

Function at 0x44f5da
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x47545c
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x44f63e
push esi
push 1
push dword [ebp + 8]
call fcn.004521e0
pop ecx
lea eax, [eax + eax*2 + 1]
push eax
call fcn.0040bcdf
pop ecx
mov esi, eax
pop ecx
mov ecx, dword [ebp + 8]
mov edx, esi
call fcn.0044f111
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push esi
call fcn.0040bda9
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 8]
call fcn.0044b256
pop ecx
pop esi
leave
ret
Function at 0x44f947
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 1
push dword [ebp + 8]
call fcn.004521e0
push dword [ebp + 0x10]
mov esi, eax
call fcn.004521e0
pop ecx
lea eax, [esi + eax + 5]
pop ecx
lea eax, [eax + eax*2]
push eax
call fcn.0040bcdf
push dword [ebp + 0x10]
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044f6e2
add esp, 0x14
lea eax, [ebp - 4]
push eax
push str.SoftwareSimonTathamPuTTYSshHostKeys
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x44f9bf
push dword [ebp + 0x14]
call fcn.004521e0
pop ecx
inc eax
push eax
push dword [ebp + 0x14]
push 1
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0040bda9
pop ecx
pop esi
leave
ret

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

Disassembly:
test ecx, ecx
jne 0x44fa0a
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x44fa04
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
je 0x44fa03
call edi
push eax
call fcn.0044b430
push eax
push dword [esp + 0x10]
push str.Unable_to_delete__s:__s
call fcn.00444c34
add esp, 0x10
pop edi
or dword [esi], 0xffffffff
xor eax, eax
ret
push 2
pop eax
cmp ecx, eax
jne 0x44fa18
mov edx, 0x80
jmp 0x44fa1a
xor edx, edx
push 0
push edx
xor edx, edx
cmp ecx, eax
setne dl
add edx, eax
push edx
mov edx, ecx
sub edx, eax
neg edx
sbb edx, edx
and edx, 3
push 0
push edx
xor edx, edx
cmp ecx, eax
setne dl
dec edx
and edx, 0xc0000000
add edx, 0x80000000
push edx
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
mov eax, ecx
ret
Function at 0x44fa61
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push ebx
push esi
push edi
xor eax, eax
xor esi, esi
mov word [ebp - 0x224], si
mov ecx, 0x84
lea edi, [ebp - 0x222]
rep stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
push str.SoftwareSimonTathamPuTTY
mov ebx, 0x212
push 0x80000001
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
inc edi
test eax, eax
jne 0x44fb05
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push str.RandSeedFile
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44facf
cmp dword [ebp - 0x10], edi
je 0x44fad6
mov byte [ebp - 0x224], 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x224], 0
je 0x44fb05
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x224]
push eax
lea esi, [ebp - 4]
call fcn.0044f9c9
test eax, eax
pop ecx
jne 0x44fc53
xor esi, esi
cmp dword [0x47f108], esi
jne 0x44fb40
push str.shell32.dll
call fcn.0044b3bd
cmp eax, esi
pop ecx
mov dword [0x47f10c], eax
je 0x44fb34
push str.SHGetFolderPathA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x47f104], eax
jmp 0x44fb3a
mov dword [0x47f104], esi
mov dword [0x47f108], edi
mov eax, dword [0x47f104]
cmp eax, esi
mov edi, str.PUTTY.RND
je 0x44fbcc
lea ecx, [ebp - 0x224]
push ecx
push esi
push esi
push 0x1c
push esi
call eax
test eax, eax
jl 0x44fb8c
lea eax, [ebp - 0x224]
push edi
push eax
call fcn.00453ec0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x224]
push eax
lea esi, [ebp - 4]
call fcn.0044f9c9
add esp, 0xc
test eax, eax
jne 0x44fc53
xor esi, esi
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push 0x1a
push esi
call dword [0x47f104]
test eax, eax
jl 0x44fbcc
lea eax, [ebp - 0x224]
push edi
push eax
call fcn.00453ec0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x224]
push eax
lea esi, [ebp - 4]
call fcn.0044f9c9
add esp, 0xc
test eax, eax
jne 0x44fc53
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push ebx
lea eax, [ebp - 0x224]
push eax
push str.HOMEDRIVE
call esi
mov ecx, ebx
sub ecx, eax
push ecx
lea eax, [ebp + eax - 0x224]
push eax
push str.HOMEPATH
call esi
test eax, eax
je 0x44fc1f
lea eax, [ebp - 0x224]
push edi
push eax
call fcn.00453ec0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x224]
push eax
lea esi, [ebp - 4]
call fcn.0044f9c9
add esp, 0xc
test eax, eax
jne 0x44fc53
push ebx
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x224]
push edi
push eax
call fcn.00453ec0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x224]
push eax
lea esi, [ebp - 4]
call fcn.0044f9c9
add esp, 0xc
test eax, eax
je 0x44fc58
mov eax, dword [ebp - 4]
jmp 0x44fc5b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44fc60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push 1
call fcn.0044fa61
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
je 0x44fcbb
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov edi, 0x400
jmp 0x44fc9d
cmp dword [ebp - 4], 0
je 0x44fcb2
push dword [ebp - 4]
lea eax, [ebp - 0x404]
push eax
call dword [ebp + 8]
pop ecx
pop ecx
push 0
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x404]
push eax
push ebx
call esi
test eax, eax
jne 0x44fc88
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44fcbe
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
call fcn.0044fa61
mov esi, eax
cmp esi, 0xffffffff
pop ecx
je 0x44fcec
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
leave
ret