joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e574
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0x40
pop edi
push edi
lea eax, [ebp - 0x40]
push 0x36
push eax
call fcn.0042f5c0
xor ecx, ecx
add esp, 0xc
cmp dword [ebp + 0x10], ecx
jle 0x41e5b1
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x40]
sub esi, eax
cmp ecx, edi
jge 0x41e5b1
lea eax, [ebp + ecx - 0x40]
mov dl, byte [esi + eax]
xor byte [eax], dl
inc ecx
cmp ecx, dword [ebp + 0x10]
jl 0x41e59e
mov ebx, dword [ebp + 8]
push ebx
call fcn.0041e37b
push edi
lea eax, [ebp - 0x40]
push eax
push ebx
call fcn.0041e3a6
push edi
lea eax, [ebp - 0x40]
push 0x5c
push eax
call fcn.0042f5c0
xor ecx, ecx
add esp, 0x1c
cmp dword [ebp + 0x10], ecx
jle 0x41e5f6
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x40]
sub esi, eax
cmp ecx, edi
jge 0x41e5f6
lea eax, [ebp + ecx - 0x40]
mov dl, byte [esi + eax]
xor byte [eax], dl
inc ecx
cmp ecx, dword [ebp + 0x10]
jl 0x41e5e3
lea edx, [ebx + 0x5c]
push edx
call fcn.0041e37b
push edi
lea eax, [ebp - 0x40]
push eax
push edx
call fcn.0041e3a6
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.00428411
add esp, 0x18
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41edac
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor ecx, ecx
or edi, 0xffffffff
mov eax, dword [ebp + 8]
mov al, byte [ecx + eax]
cmp al, 0x41
jl 0x41edcf
cmp al, 0x5a
jg 0x41edcf
movsx eax, al
sub eax, 0x41
jmp 0x41ee06
cmp al, 0x61
jl 0x41eddf
cmp al, 0x7a
jg 0x41eddf
movsx eax, al
sub eax, 0x47
jmp 0x41ee06
cmp al, 0x30
jl 0x41edef
cmp al, 0x39
jg 0x41edef
movsx eax, al
add eax, 4
jmp 0x41ee06
cmp al, 0x2b
jne 0x41edf8
push 0x3e
pop eax
jmp 0x41ee06
cmp al, 0x2f
jne 0x41ee00
push 0x3f
jmp 0x41edf5
cmp al, 0x3d
jne 0x41ee2a
mov eax, edi
mov dword [ebp + ecx*4 - 0x10], eax
inc ecx
cmp ecx, 4
jl 0x41edb9
mov ecx, dword [ebp - 0x10]
cmp ecx, edi
je 0x41ee2a
cmp dword [ebp - 0xc], edi
je 0x41ee2a
mov esi, dword [ebp - 8]
cmp esi, edi
mov edx, dword [ebp - 4]
jne 0x41ee30
cmp edx, edi
je 0x41ee3d
xor eax, eax
pop edi
pop esi
leave
ret
xor eax, eax
cmp edx, edi
setne al
inc eax
inc eax
mov edi, eax
jmp 0x41ee40
xor edi, edi
inc edi
shl ecx, 6
or ecx, dword [ebp - 0xc]
and esi, 0x3f
shl ecx, 6
or ecx, esi
and edx, 0x3f
shl ecx, 6
or ecx, edx
mov edx, dword [ebp + 0xc]
mov eax, ecx
shr eax, 0x10
cmp edi, 1
mov byte [edx], al
jle 0x41ee6d
mov eax, ecx
shr eax, 8
mov byte [edx + 1], al
cmp edi, 2
jle 0x41ee75
mov byte [edx + 2], cl
mov eax, edi
jmp 0x41ee2c

Function at 0x41fddd
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
push 1
mov esi, 0x258
push esi
call fcn.00403bc7
mov edi, eax
call fcn.0041fbef
mov eax, dword [0x449630]
push esi
lea eax, [eax + 0x449180]
push eax
push edi
call fcn.0042df20
mov eax, dword [esp + 0x24]
mov dword [eax], esi
mov eax, dword [esp + 0x20]
add esp, 0x14
mov dword [eax], edi
pop edi
pop esi
jmp fcn.0041fbef
Function at 0x4212e8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
mov dword [ebp - 0xc], eax
jle 0x421398
push edi
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp + 0x10]
cmp ecx, eax
mov dword [ebp - 8], eax
jg 0x42130e
mov dword [ebp - 8], ecx
cmp eax, 0x20
jle 0x42132a
push 0x3d4
push str..._sshrsa.c
push str.h__hlen___SSH2_KEX_MAX_HASH_LEN
call fcn.0042db48
add esp, 0xc
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 4], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 3], al
mov eax, ebx
shr eax, 8
mov byte [ebp - 2], al
mov byte [ebp - 1], bl
call dword [esi]
push dword [ebp + 0xc]
mov edi, eax
push dword [ebp + 8]
push edi
call dword [esi + 4]
push 4
lea eax, [ebp - 4]
push eax
push edi
call dword [esi + 4]
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [esi + 8]
mov eax, dword [ebp - 8]
add esp, 0x20
inc ebx
test eax, eax
jle 0x421387
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edi, [ebp - 0x2c]
sub edi, eax
mov dl, byte [edi + eax]
xor byte [eax], dl
inc eax
dec ecx
jne 0x42137b
mov eax, dword [ebp - 8]
sub dword [ebp + 0x10], eax
add dword [ebp - 0xc], eax
cmp dword [ebp + 0x10], 0
jg 0x4212fe
pop edi
pop ebx
leave
ret

Function at 0x4215f9
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
ret
Function at 0x421ddd
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
push 0x40
pop edi
push edi
lea eax, [ebp - 0x40]
push 0x36
push eax
call fcn.0042f5c0
add esp, 0xc
xor ecx, ecx
test ebx, ebx
jle 0x421e17
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x40]
sub esi, eax
cmp ecx, edi
jge 0x421e17
lea eax, [ebp + ecx - 0x40]
mov dl, byte [esi + eax]
xor byte [eax], dl
inc ecx
cmp ecx, ebx
jl 0x421e05
push dword [ebp + 8]
call fcn.00421bdf
push edi
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 8]
call fcn.00421bf8
push edi
lea eax, [ebp - 0x40]
push 0x5c
push eax
call fcn.0042f5c0
add esp, 0x1c
xor ecx, ecx
test ebx, ebx
jle 0x421e5b
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x40]
sub esi, eax
cmp ecx, edi
jge 0x421e5b
lea eax, [ebp + ecx - 0x40]
mov dl, byte [esi + eax]
xor byte [eax], dl
inc ecx
cmp ecx, ebx
jl 0x421e49
mov edx, dword [ebp + 8]
add edx, 0x6c
push edx
call fcn.00421bdf
push edi
lea eax, [ebp - 0x40]
push eax
push edx
call fcn.00421bf8
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.00428411
add esp, 0x18
pop edi
pop esi
leave
ret
Function at 0x423697
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x54], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x58], ecx
ret

Function at 0x4238dd
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
push 0x40
pop edi
push edi
lea eax, [ebp - 0x40]
push 0x36
push eax
call fcn.0042f5c0
add esp, 0xc
xor ecx, ecx
test ebx, ebx
jle 0x423917
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x40]
sub esi, eax
cmp ecx, edi
jge 0x423917
lea eax, [ebp + ecx - 0x40]
mov dl, byte [esi + eax]
xor byte [eax], dl
inc ecx
cmp ecx, ebx
jl 0x423905
push dword [ebp + 8]
call fcn.00423697
push edi
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 8]
call fcn.004236c9
push edi
lea eax, [ebp - 0x40]
push 0x5c
push eax
call fcn.0042f5c0
add esp, 0x1c
xor ecx, ecx
test ebx, ebx
jle 0x42395b
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x40]
sub esi, eax
cmp ecx, edi
jge 0x42395b
lea eax, [ebp + ecx - 0x40]
mov dl, byte [esi + eax]
xor byte [eax], dl
inc ecx
cmp ecx, ebx
jl 0x423949
mov edx, dword [ebp + 8]
add edx, 0x60
push edx
call fcn.00423697
push edi
lea eax, [ebp - 0x40]
push eax
push edx
call fcn.004236c9
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.00428411
add esp, 0x18
pop edi
pop esi
leave
ret
Function at 0x4271dc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [0x4496a0], 0
je 0x427207
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.The_first__s_supported_by_the_server_is_n_s__which_is_below_the_configured_warning_threshold._nConnection_abandoned._n
push 0x448950
call fcn.0042ef33
add esp, 0x10
xor eax, eax
leave
ret
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov esi, 0x448950
push dword [ebp + 0xc]
push str.The_first__s_supported_by_the_server_is_n_s__which_is_below_the_configured_warning_threshold._nContinue_with_connection___y_n_
push esi
call fcn.0042ef33
push esi
call fcn.0042e440
add esp, 0x14
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, eax
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov eax, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
or eax, 7
push eax
push ebx
call edi
push 0
lea eax, [ebp - 8]
push eax
push 0x1f
lea eax, [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 4]
push ebx
call edi
cmp byte [ebp - 0x28], 0x79
je 0x427284
cmp byte [ebp - 0x28], 0x59
je 0x427284
push str.Connection_abandoned._n
push esi
call fcn.0042ef33
pop ecx
pop ecx
xor eax, eax
jmp 0x427287
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42728c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [0x4496a0], 0
mov eax, dword [ebp + 0xc]
push esi
mov esi, 0x448950
je 0x4272c3
push dword [eax]
push 0x104
push str.The_session_log_file___.s__already_exists._nLogging_will_not_be_enabled._n
push esi
call fcn.0042ef33
push esi
call fcn.0042e440
add esp, 0x14
xor eax, eax
jmp 0x427339
push edi
push dword [eax]
push 0x104
push str.The_session_log_file___.s__already_exists._nYou_can_overwrite_it_with_a_new_session_log__nappend_your_session_log_to_the_end_of_it__nor_disable_session_logging_for_this_session._nEnter__y__to_wipe_the_file___n__to_append_to_it__nor_just_press_Return_to_disable_logging._nWipe_the_log_file___y_n__Return_cancels_logging_
push esi
call fcn.0042ef33
push esi
call fcn.0042e440
add esp, 0x14
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov eax, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
or eax, 7
push eax
push edi
call esi
push 0
lea eax, [ebp - 8]
push eax
push 0x1f
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 4]
push edi
call esi
mov al, byte [ebp - 0x28]
cmp al, 0x79
pop edi
je 0x427336
cmp al, 0x59
je 0x427336
cmp al, 0x6e
je 0x427331
cmp al, 0x4e
jne 0x4272bf
xor eax, eax
inc eax
jmp 0x427339
push 2
pop eax
pop esi
leave
ret
Function at 0x427f80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x1034
push 1
call fcn.00403bc7
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 [0x4496c8]
cmp eax, edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
jne 0x427ff0
push 0x427f65
call fcn.00426250
pop ecx
mov dword [0x4496c8], eax
push esi
push eax
call fcn.004267c4
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
push edi
lea eax, [esi + 4]
push eax
push 0x427ca1
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 0x42801d
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.00403bc7
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.00403b16
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x48], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x24], eax
mov eax, dword [0x4496c8]
cmp eax, edi
pop ecx
mov dword [esi + 0x44], edi
jne 0x42809c
push 0x427f65
call fcn.00426250
pop ecx
mov dword [0x4496c8], eax
push esi
push eax
call fcn.004267c4
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
push edi
lea eax, [esi + 4]
push eax
push 0x427e01
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x428429
Capabilities:
Get common file path

Disassembly:
cmp dword [0x4496d4], 0
push esi
push edi
jne 0x428467
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 [0x4496d4]
call fcn.00403c21
add esp, 0xc
push esi
push eax
mov dword [0x4496d4], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
jge 0x428436
push 0
push dword [esp + 0x10]
push 0x4448ac
push dword [0x4496d4]
call fcn.00403e44
add esp, 0x10
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov edi, eax
call fcn.00403c87
pop ecx
mov eax, edi
pop edi
pop esi
ret
Function at 0x42a530
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 0x44535c
push eax
call fcn.0042f030
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 0x42a5a8
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 0x42a57f
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 [0x449dc4], edi
pop ecx
pop ecx
jne 0x42a639
push str.advapi32.dll
call fcn.00428429
cmp eax, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop ecx
mov dword [0x449dc4], eax
je 0x42a5f3
push str.CryptAcquireContextA
push eax
call esi
mov dword [0x449dbc], eax
mov eax, dword [0x449dc4]
jmp 0x42a5f9
mov dword [0x449dbc], edi
cmp eax, edi
je 0x42a611
push str.CryptGenRandom
push eax
call esi
mov dword [0x449db8], eax
mov eax, dword [0x449dc4]
jmp 0x42a617
mov dword [0x449db8], edi
cmp eax, edi
je 0x42a62f
push str.CryptReleaseContext
push eax
call esi
mov dword [0x449dc0], eax
mov eax, dword [0x449dc4]
jmp 0x42a635
mov dword [0x449dc0], edi
cmp eax, edi
je 0x42a68c
mov eax, dword [0x449dbc]
cmp eax, edi
je 0x42a68c
cmp dword [0x449db8], edi
je 0x42a68c
cmp dword [0x449dc0], edi
je 0x42a68c
push 0xf0000000
push 1
push edi
push edi
lea ecx, [ebp - 4]
push ecx
call eax
test eax, eax
je 0x42a68c
lea eax, [ebp - 0x28]
push eax
push 0x20
push dword [ebp - 4]
call dword [0x449db8]
test eax, eax
je 0x42a682
lea eax, [ebp - 0x28]
push 0x20
push eax
call ebx
pop ecx
pop ecx
push edi
push dword [ebp - 4]
call dword [0x449dc0]
push ebx
call fcn.0042c914
pop ecx
call fcn.0042a396
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42aaf3
Capabilities:
Terminate process

Disassembly:
push esi
push str.plink:
mov esi, 0x448950
push esi
call fcn.0042ef33
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
push esi
call fcn.00430203
push esi
push 0xa
call fcn.0042f6d6
add esp, 0x1c
push 1
call fcn.004300ff
pop esi

Function at 0x42abc1
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401060
add esp, 0xc
cmp eax, 0xffffffff
jne 0x42abe0
pop ebp
jmp fcn.00427397
pop ebp
ret
Function at 0x42ba75
Capabilities:
Create pipe
Create process on windows
Create reverse shell
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push 0xd
push dword [ebp + 0x28]
call fcn.00402036
cmp eax, 5
pop ecx
pop ecx
je 0x42ba90
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.00405ab4
push eax
push str.Starting_local_proxy_command:__s
mov dword [ebp - 4], eax
call fcn.00404045
mov esi, eax
push esi
xor edi, edi
push edi
call fcn.0042736a
push esi
call fcn.00403c87
xor ebx, ebx
push 0x20
inc ebx
push ebx
call fcn.00403bc7
mov esi, eax
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x18], eax
add esp, 0x28
push edi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
mov dword [esi], 0x445cd8
mov dword [esi + 0x14], edi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x18], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreatePipe]
push eax
mov dword [ebp - 0x20], 0xc
mov dword [ebp - 0x1c], edi
call ebx
test eax, eax
je 0x42bb28
push edi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call ebx
test eax, eax
jne 0x42bb44
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0xc]
call edi
push str.Unable_to_create_pipes_for_proxy_command
call fcn.00404045
push dword [ebp - 4]
mov dword [esi + 0x14], eax
call fcn.00403c87
pop ecx
pop ecx
jmp 0x42bc02
mov ebx, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push edi
push 1
push dword [ebp - 0x14]
call ebx
push edi
push 1
push dword [ebp - 8]
call ebx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x74]
push eax
push edi
push edi
push 0x8000020
push 1
push edi
push edi
push dword [ebp - 4]
mov dword [ebp - 0x74], 0x44
push edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x48], 0x100
mov word [ebp - 0x42], di
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x34], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x30]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [ebp - 0x2c]
call ebx
push dword [ebp - 4]
call fcn.00403c87
pop ecx
push dword [ebp - 0x10]
call ebx
push dword [ebp - 0xc]
call ebx
mov eax, dword [ebp - 0x14]
push edi
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
push esi
mov dword [esi + 8], eax
push 0x42b993
push dword [ebp - 8]
call fcn.00427f80
push edi
push esi
push 0x42b9cf
push dword [esi + 4]
mov dword [esi + 0x10], eax
call fcn.0042801d
push dword [ebp + 8]
mov dword [esi + 0xc], eax
call fcn.0042965f
add esp, 0x24
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42c5fb
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 1
push dword [ebp + 8]
call fcn.0042d810
push dword [ebp + 0x10]
mov esi, eax
call fcn.0042d810
pop ecx
lea eax, [esi + eax + 5]
pop ecx
lea eax, [eax + eax*2]
push eax
call fcn.00403bc7
push dword [ebp + 0x10]
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042c396
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 0x42c673
push dword [ebp + 0x14]
call fcn.0042d810
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.00403c87
pop ecx
pop esi
leave
ret

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

Disassembly:
test ecx, ecx
jne 0x42c6be
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x42c6b8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
je 0x42c6b7
call edi
push eax
call fcn.0042849c
push eax
push dword [esp + 0x10]
push str.Unable_to_delete__s:__s
call fcn.0042aa63
add esp, 0x10
pop edi
or dword [esi], 0xffffffff
xor eax, eax
ret
push 2
pop eax
cmp ecx, eax
jne 0x42c6cc
mov edx, 0x80
jmp 0x42c6ce
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 0x42c715
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 0x42c7b9
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 0x42c783
cmp dword [ebp - 0x10], edi
je 0x42c78a
mov byte [ebp - 0x224], 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x224], 0
je 0x42c7b9
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x224]
push eax
lea esi, [ebp - 4]
call fcn.0042c67d
test eax, eax
pop ecx
jne 0x42c907
xor esi, esi
cmp dword [0x449df4], esi
jne 0x42c7f4
push str.shell32.dll
call fcn.00428429
cmp eax, esi
pop ecx
mov dword [0x449df8], eax
je 0x42c7e8
push str.SHGetFolderPathA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x449df0], eax
jmp 0x42c7ee
mov dword [0x449df0], esi
mov dword [0x449df4], edi
mov eax, dword [0x449df0]
cmp eax, esi
mov edi, str.PUTTY.RND
je 0x42c880
lea ecx, [ebp - 0x224]
push ecx
push esi
push esi
push 0x1c
push esi
call eax
test eax, eax
jl 0x42c840
lea eax, [ebp - 0x224]
push edi
push eax
call fcn.0042f030
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x224]
push eax
lea esi, [ebp - 4]
call fcn.0042c67d
add esp, 0xc
test eax, eax
jne 0x42c907
xor esi, esi
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push 0x1a
push esi
call dword [0x449df0]
test eax, eax
jl 0x42c880
lea eax, [ebp - 0x224]
push edi
push eax
call fcn.0042f030
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x224]
push eax
lea esi, [ebp - 4]
call fcn.0042c67d
add esp, 0xc
test eax, eax
jne 0x42c907
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 0x42c8d3
lea eax, [ebp - 0x224]
push edi
push eax
call fcn.0042f030
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x224]
push eax
lea esi, [ebp - 4]
call fcn.0042c67d
add esp, 0xc
test eax, eax
jne 0x42c907
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.0042f030
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x224]
push eax
lea esi, [ebp - 4]
call fcn.0042c67d
add esp, 0xc
test eax, eax
je 0x42c90c
mov eax, dword [ebp - 4]
jmp 0x42c90f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret