joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421d90
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x421f28
cmp ebp, ebx
jle 0x421f28
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x421dee
dec eax
or eax, 0xfffffff8
inc eax
je 0x421df5
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x421e04
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x421e0b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.0045b77d
add esp, 4
cmp eax, ebx
je 0x421e2c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.0045b77d
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x421f1e
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x421f05
mov al, byte [edx]
cmp al, 0xc0
jbe 0x421ef1
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x421ee6
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x421ef4
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x421ef4
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x421e90
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x421e81
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x401d40
Capabilities:
Terminate process

Disassembly:
mov eax, 0x500c
call fcn.0042e280
mov eax, dword [0x43b160]
mov ecx, dword [esp + 0x5014]
push ebx
push ebp
mov ebp, dword [esp + 0x5024]
push edi
mov edi, dword [esp + 0x502c]
push edi
mov dword [esp + 0x5018], eax
mov eax, dword [esp + 0x5028]
push ebp
push eax
push ecx
call fcn.0042d980
xor ebx, ebx
add esp, 0x10
cmp eax, ebx
je 0x401e90
cmp eax, 1
push esi
jne 0x401db0
mov edx, dword [esp + 0x5034]
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401da0
sub eax, esi
push edx
inc eax
push eax
push 0xd
jmp 0x401dcf
cmp eax, 2
jne 0x401de8
mov edx, dword [esp + 0x5034]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401dc1
sub eax, esi
push edx
inc eax
push eax
push 0xe
call fcn.004021b0
add esp, 0xc
test eax, eax
jne 0x401de8
call fcn.004041e0
push 1
call dword [0x42f29c]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
call fcn.004021e0
add esp, 0xc
test eax, eax
je 0x401e39
mov esi, 0xd
cmp dword [esp + 0x14], esi
je 0x401e46
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
call fcn.004021e0
add esp, 0xc
test eax, eax
jne 0x401e10
call fcn.004041e0
push 1
call dword [0x42f29c]
cmp dword [esp + 0x10], 4
je 0x401e67
push str.LB_SFTP_STC_NEWHOSTKEY__nDataLength_4
call fcn.00402210
add esp, 4
call fcn.004041e0
push 1
call dword [0x42f29c]
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x401ea6
cmp eax, 1
jne 0x401e8f
mov edx, dword [esp + 0x5028]
mov eax, dword [esp + 0x5024]
push edi
push ebp
push edx
push eax
call fcn.0042dc40
add esp, 0x10
pop esi
mov ecx, dword [esp + 0x5014]
pop edi
pop ebp
pop ebx
call fcn.0042e26b
add esp, 0x500c
ret
push str.Hostkey_not_trusted_
call fcn.00402270
add esp, 4
call fcn.004041e0
push ebx
call dword [0x42f29c]
int3
Function at 0x4062a0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
mov edx, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov ebx, edx
je 0x4062d7
test edx, edx
jbe 0x40638f
mov eax, dword [0x42f244]
add eax, 0x40
push eax
push edx
push 1
push ebp
call dword [0x42f1f4]
add esp, 0x10
pop ebp
xor eax, eax
pop ebx
ret
push edi
mov edi, dword [0x43b38c]
test edi, edi
je 0x40638e
mov eax, dword [0x43d574]
test eax, eax
push esi
jbe 0x406332
test edx, edx
jbe 0x40638d
cmp eax, edx
jbe 0x4062fe
mov eax, edx
mov ecx, eax
mov ebx, ecx
shr ecx, 2
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [0x43b38c]
mov esi, dword [0x43d574]
add edi, eax
sub esi, eax
add ebp, eax
sub edx, eax
mov dword [0x43b38c], edi
mov dword [0x43d574], esi
mov ebx, edx
test ebx, ebx
jbe 0x40638d
mov ecx, dword [0x43d580]
lea eax, [ecx + ebx]
cmp dword [0x43d584], eax
jae 0x406366
mov edx, dword [0x43d57c]
add eax, 0x1000
push eax
push edx
mov dword [0x43d584], eax
call fcn.00403e20
add esp, 8
mov dword [0x43d57c], eax
mov eax, dword [0x43d580]
mov edx, dword [0x43d57c]
lea edi, [edx + eax]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add eax, ebx
rep movsb byte es:[edi], byte [esi]
mov dword [0x43d580], eax
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x406870
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x42f244]
push esi
mov esi, dword [0x42f238]
add eax, 0x40
push str.psftp:
push eax
call esi
mov edx, dword [esp + 0x10]
mov eax, dword [0x42f244]
lea ecx, [esp + 0x14]
push ecx
push edx
add eax, 0x40
push eax
call dword [0x42f230]
mov ecx, dword [0x42f244]
add ecx, 0x40
push str._n_______try_typing__psftp__h__for_help_n
push ecx
call esi
add esp, 0x1c
push 1
call dword [0x42f29c]
pop esi
int3
Function at 0x419fc0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x38
test ecx, ecx
push esi
push edi
mov edi, dword [esp + 0x48]
lea eax, [edi + 0x3c8]
mov edx, eax
mov esi, dword [edx]
mov dword [esp + 0x10], esi
mov esi, dword [edx + 4]
mov dword [esp + 0x14], esi
mov esi, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edx
jle 0x41a0cb
mov esi, dword [esp + 0x44]
lea eax, [ecx - 1]
shr eax, 4
add esi, 2
push ebx
inc eax
push ebp
mov dword [esp + 0x10], eax
jmp 0x41a012
mov edi, dword [esp + 0x50]
mov ebx, esi
xor eax, eax
movzx edx, byte [ebx]
xor ecx, ecx
mov ch, byte [ebx - 2]
add eax, 4
add ebx, 4
mov cl, byte [ebx - 5]
shl ecx, 8
or ecx, edx
movzx edx, byte [ebx - 3]
shl ecx, 8
or ecx, edx
cmp eax, 0x10
mov dword [esp + eax + 0x34], ecx
mov dword [esp + eax + 0x24], ecx
jl 0x41a016
lea eax, [esp + 0x28]
push eax
push edi
call dword [edi + 0x3c4]
add esp, 8
mov eax, esi
xor esi, esi
jmp 0x41a060
mov cl, byte [esp + esi + 0x18]
mov dl, byte [esp + esi + 0x28]
mov ebp, dword [esp + esi + 0x18]
mov edi, dword [esp + esi + 0x28]
xor cl, dl
mov byte [eax + 1], cl
mov edx, ebp
shr edx, 8
mov ecx, edi
shr ecx, 8
xor dl, cl
mov byte [eax], dl
mov edx, ebp
shr edx, 0x10
mov ecx, edi
shr ecx, 0x10
xor dl, cl
mov byte [eax - 1], dl
mov edx, ebp
shr edx, 0x18
mov ecx, edi
shr ecx, 0x18
xor dl, cl
mov byte [eax - 2], dl
mov edx, dword [esp + esi + 0x38]
mov dword [esp + esi + 0x18], edx
add esi, 4
add eax, 4
cmp esi, 0x10
jl 0x41a060
mov eax, dword [esp + 0x10]
dec eax
mov esi, ebx
mov dword [esp + 0x10], eax
jne 0x41a00e
mov eax, dword [esp + 0x14]
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x1c]
pop edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
pop esi
add esp, 0x38
ret

Function at 0x41d330
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x41d360
push edi
movzx ecx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ecx
mov ecx, dword [edi*4 + 0x436168]
shr eax, 8
inc edx
xor eax, ecx
dec esi
jne 0x41d342
pop edi
pop esi
ret
Function at 0x41d710
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov edi, 0x436568
xor esi, esi
mov ebx, 0x1c
jmp 0x41d730
mov ecx, dword [edi]
add edi, 4
shl esi, 1
test ecx, ecx
jl 0x41d75e
mov eax, ecx
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
and ecx, 0x8000001f
jns 0x41d753
dec ecx
or ecx, 0xffffffe0
inc ecx
mov edx, dword [esp + eax*4 + 0x1c]
shr edx, cl
and edx, 1
or esi, edx
dec ebx
jne 0x41d730
mov edi, 0x4365d8
xor ebp, ebp
mov ebx, 0x1c
lea ecx, [ecx]
mov ecx, dword [edi]
add edi, 4
shl ebp, 1
test ecx, ecx
jl 0x41d79e
mov eax, ecx
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
and ecx, 0x8000001f
jns 0x41d793
dec ecx
or ecx, 0xffffffe0
inc ecx
mov eax, dword [esp + eax*4 + 0x1c]
shr eax, cl
and eax, 1
or ebp, eax
dec ebx
jne 0x41d770
mov eax, dword [esp + 0x28]
mov edi, 0x436748
sub eax, edi
mov dword [esp + 0x14], eax
jmp 0x41d7b6
mov esi, dword [esp + 0x18]
mov edx, dword [edi]
mov ebx, esi
mov eax, 0x1c
sub eax, edx
mov ecx, edx
shl ebx, cl
mov ecx, eax
shr esi, cl
mov ecx, edx
mov dword [esp + 0x10], 0x20
or ebx, esi
and ebx, 0xfffffff
mov esi, ebx
mov ebx, ebp
shl ebx, cl
mov ecx, eax
shr ebp, cl
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], esi
or ebx, ebp
and ebx, 0xfffffff
mov ebp, ebx
mov dword [esp + 0x1c], ebp
mov ebx, 0x436648
xor esi, esi
mov ecx, dword [ebx]
add ebx, 4
shl esi, 1
test ecx, ecx
jl 0x41d830
mov eax, ecx
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
and ecx, 0x8000001f
jns 0x41d825
dec ecx
or ecx, 0xffffffe0
inc ecx
mov edx, dword [esp + eax*4 + 0x1c]
shr edx, cl
and edx, 1
or esi, edx
dec dword [esp + 0x10]
jne 0x41d802
mov eax, dword [esp + 0x14]
mov dword [eax + edi], esi
mov ebx, 0x4366c8
xor esi, esi
mov dword [esp + 0x10], 0x20
lea esp, [esp]
mov ecx, dword [ebx]
add ebx, 4
shl esi, 1
test ecx, ecx
jl 0x41d87e
mov eax, ecx
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
and ecx, 0x8000001f
jns 0x41d873
dec ecx
or ecx, 0xffffffe0
inc ecx
mov edx, dword [esp + eax*4 + 0x1c]
shr edx, cl
and edx, 1
or esi, edx
dec dword [esp + 0x10]
jne 0x41d850
mov eax, dword [esp + 0x14]
mov dword [eax + edi + 0x40], esi
add edi, 4
cmp edi, 0x436788
jl 0x41d7b2
mov eax, dword [esp + 0x28]
pop edi
pop esi
xor ecx, ecx
pop ebp
mov dword [eax + 0x84], ecx
mov dword [eax + 0x80], ecx
pop ebx
add esp, 0x14
ret
Function at 0x41eba0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
test edx, edx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
mov ebp, dword [ecx + 0x80]
mov esi, eax
mov eax, dword [ecx + 0x84]
jbe 0x41ec72
dec edx
shr edx, 3
inc edx
push ebx
mov dword [esp + 0x10], edx
lea esp, [esp]
movzx ebx, byte [esi + 2]
xor edx, edx
mov dh, byte [esi]
add esi, 4
add esi, 4
mov dl, byte [esi - 7]
shl edx, 8
or edx, ebx
movzx ebx, byte [esi - 5]
shl edx, 8
or edx, ebx
movzx ebx, byte [esi - 2]
xor ebp, edx
xor edx, edx
mov dh, byte [esi - 4]
mov dl, byte [esi - 3]
shl edx, 8
or edx, ebx
movzx ebx, byte [esi - 1]
shl edx, 8
or edx, ebx
xor eax, edx
lea edx, [esp + 0x14]
push edx
mov edx, ebp
call fcn.0041d8c0
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov edx, ecx
mov byte [edi + 3], cl
shr edx, 8
mov byte [edi + 2], dl
mov edx, ecx
mov ebp, ecx
shr ecx, 0x18
mov byte [edi], cl
shr edx, 0x10
mov byte [edi + 1], dl
add edi, 4
mov ecx, ebx
shr ecx, 8
mov edx, ebx
mov byte [edi + 3], bl
mov byte [edi + 2], cl
mov ecx, dword [esp + 0x14]
mov eax, ebx
shr edx, 0x10
shr ebx, 0x18
mov byte [edi + 1], dl
mov byte [edi], bl
add esp, 4
add edi, 4
dec ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x20]
jne 0x41ebd0
pop ebx
pop edi
pop esi
mov dword [ecx + 0x80], ebp
mov dword [ecx + 0x84], eax
pop ebp
add esp, 0xc
ret
Function at 0x41ef70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
test ecx, ecx
push ebx
push esi
mov esi, eax
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x80]
push edi
mov edi, edx
mov edx, dword [eax + 0x84]
mov dword [esp + 0x10], edx
jbe 0x41f0a8
lea eax, [ecx - 1]
shr eax, 3
inc eax
mov dword [esp + 0x14], eax
movzx eax, byte [esi + 2]
movzx ecx, byte [esi + 3]
xor edx, edx
mov dh, byte [esi]
add esi, 4
add esi, 4
mov dl, byte [esi - 7]
shl edx, 8
or edx, eax
xor eax, eax
mov ah, byte [esi - 4]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi - 2]
mov dword [esp + 0x18], edx
mov al, byte [esi - 3]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi - 1]
shl eax, 8
or eax, ecx
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x110
mov dword [esp + 0x20], eax
call fcn.0041e230
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x28]
add ecx, 0x88
call fcn.0041d8c0
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x30]
call fcn.0041e230
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
xor ebx, edx
xor eax, ecx
mov byte [edi + 3], bl
mov ecx, ebx
mov edx, ebx
shr ecx, 8
mov byte [edi + 2], cl
shr edx, 0x10
mov byte [edi + 1], dl
shr ebx, 0x18
mov byte [edi], bl
mov ebx, dword [esp + 0x24]
add edi, 4
mov byte [edi + 3], al
mov ecx, eax
mov edx, eax
shr eax, 0x18
mov byte [edi], al
mov eax, dword [esp + 0x28]
shr ecx, 8
shr edx, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
mov byte [edi + 2], cl
mov byte [edi + 1], dl
add esp, 0xc
add edi, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x41efa6
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x84], ecx
mov dword [eax + 0x80], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov dword [eax + 0x80], ebx
mov dword [eax + 0x84], edx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x421b00
Capabilities:
Hash data with md5

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 + 0x50], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x54], ecx
ret
Function at 0x422c00
Capabilities:
Encode data using base64

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x10
xor ecx, ecx
lea esp, [esp]
mov al, byte [ecx + edx]
cmp al, 0x41
jl 0x422c23
cmp al, 0x5a
jg 0x422c23
movsx eax, al
sub eax, 0x41
jmp 0x422c60
cmp al, 0x61
jl 0x422c33
cmp al, 0x7a
jg 0x422c33
movsx eax, al
sub eax, 0x47
jmp 0x422c60
cmp al, 0x30
jl 0x422c43
cmp al, 0x39
jg 0x422c43
movsx eax, al
add eax, 4
jmp 0x422c60
cmp al, 0x2b
jne 0x422c4e
mov eax, 0x3e
jmp 0x422c60
cmp al, 0x2f
jne 0x422c59
mov eax, 0x3f
jmp 0x422c60
cmp al, 0x3d
jne 0x422c95
or eax, 0xffffffff
mov dword [esp + ecx*4], eax
inc ecx
cmp ecx, 4
jl 0x422c10
mov ecx, dword [esp]
cmp ecx, 0xffffffff
push edi
je 0x422ce8
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
je 0x422ce8
mov edx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
cmp esi, 0xffffffff
jne 0x422c9b
cmp edx, esi
je 0x422ca8
xor eax, eax
pop esi
pop edi
add esp, 0x10
ret
xor eax, eax
add esp, 0x10
ret
xor eax, eax
cmp edx, 0xffffffff
setne al
add eax, 2
jmp 0x422cad
mov eax, 1
shl ecx, 6
or ecx, edi
shl ecx, 6
and esi, 0x3f
or ecx, esi
mov esi, dword [esp + 0x20]
and edx, 0x3f
shl ecx, 6
or ecx, edx
mov edx, ecx
shr edx, 0x10
cmp eax, 1
mov byte [esi], dl
jle 0x422cda
mov edx, ecx
shr edx, 8
mov byte [esi + 1], dl
cmp eax, 2
jle 0x422c8f
mov byte [esi + 2], cl
pop esi
pop edi
add esp, 0x10
ret
xor eax, eax
pop edi
add esp, 0x10
ret
Function at 0x424150
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x6c
mov ecx, dword [0x437434]
mov eax, dword [0x43b160]
mov edx, dword [0x437438]
push esi
mov dword [esp + 8], ecx
mov ecx, dword [0x437440]
push edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x70], eax
mov eax, dword [str.PuTTY_User_Key_File_]
mov ecx, 8
mov esi, str._____BEGIN_SSH2_ENCRYPTED_PRIVAT
lea edi, [esp + 0x4c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x437404]
mov dword [esp + 8], eax
mov eax, dword [0x43743c]
mov dword [esp + 0x14], eax
mov eax, dword [str._____BEGIN]
mov dword [esp + 0x10], edx
mov dl, byte [0x437444]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x78]
mov byte [esp + 0x1c], dl
mov edx, dword [0x437408]
push 0x42f3d4
push eax
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
call dword [0x42f2a4]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4241f0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x68]
call fcn.0042e26b
add esp, 0x6c
ret
push esi
push 0x20
lea ecx, [esp + 0x34]
push 1
push ecx
call dword [0x42f1bc]
push esi
mov edi, eax
call dword [0x42f1b8]
add esp, 0x14
test edi, edi
jl 0x4241df
cmp edi, 0x20
jge 0x424229
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x68]
call fcn.0042e26b
add esp, 0x6c
ret
mov ecx, 8
mov edi, str.SSH_PRIVATE_KEY_FILE_FORMAT_1.1_n
lea esi, [esp + 0x2c]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x424251
pop edi
mov eax, 2
pop esi
mov ecx, dword [esp + 0x68]
call fcn.0042e26b
add esp, 0x6c
ret
mov ecx, 5
lea edi, [esp + 8]
lea esi, [esp + 0x2c]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x424278
pop edi
mov eax, 3
pop esi
mov ecx, dword [esp + 0x68]
call fcn.0042e26b
add esp, 0x6c
ret
mov ecx, 0xb
lea edi, [esp + 0x20]
lea esi, [esp + 0x2c]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x42429f
pop edi
mov eax, 4
pop esi
mov ecx, dword [esp + 0x68]
call fcn.0042e26b
add esp, 0x6c
ret
xor eax, eax
mov ecx, 8
lea edi, [esp + 0x4c]
lea esi, [esp + 0x2c]
repe cmpsd dword [esi], dword es:[edi]
mov ecx, dword [esp + 0x70]
sete al
pop edi
pop esi
lea eax, [eax*4 + 1]
call fcn.0042e26b
add esp, 0x6c
ret
Function at 0x4244d0
Capabilities:
Encode data using add xor sub operations

Disassembly:
sub esp, 0x58
push ebx
push ebp
push esi
push edi
push fcn.00424330
call fcn.00404220
push 0x43db10
push 0x43dafc
call fcn.00428150
mov ecx, dword [0x43db0c]
mov eax, dword [0x43dafc]
mov edx, dword [0x43db00]
mov ebx, dword [0x43db04]
mov ebp, dword [0x43db08]
add esp, 0xc
mov dword [0x43db50], 0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], 2
jmp 0x424530
mov ecx, 0x10
mov esi, 0x43d648
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov esi, 0x49c
jmp 0x424550
mov ecx, dword [esi + 0x43d648]
mov edi, dword [esi + 0x43d64c]
xor eax, ecx
mov ecx, dword [esi + 0x43d650]
mov dword [esp + 0x14], eax
xor ebp, dword [esi + 0x43d654]
xor edx, edi
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x18], edx
mov edx, dword [esi + 0x43d658]
xor ebx, ecx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
xor ebp, edx
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebp
call fcn.00428150
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
add esp, 8
sub esi, 0x14
mov dword [esi + 0x43d65c], eax
mov dword [esi + 0x43d660], edx
mov dword [esi + 0x43d664], ebx
mov dword [esi + 0x43d668], ebp
mov dword [esi + 0x43d66c], ecx
jns 0x424550
dec dword [esp + 0x10]
jne 0x424530
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00428150
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
add esp, 8
pop edi
pop esi
mov dword [0x43dafc], ecx
mov ecx, dword [esp + 0x18]
mov dword [0x43db00], edx
mov edx, dword [esp + 0x1c]
pop ebp
mov dword [0x43db04], eax
mov dword [0x43db08], ecx
mov dword [0x43db0c], edx
mov dword [0x43daf8], 0x14
pop ebx
add esp, 0x58
ret

Function at 0x424820
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push 0x258
call fcn.00403da0
add esp, 4
mov ebx, eax
call fcn.004244d0
mov esi, dword [0x43daf8]
mov eax, dword [esp + 0x14]
lea esi, [esi + 0x43d648]
mov edi, ebx
mov ecx, 0x96
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
pop edi
mov dword [eax], 0x258
pop esi
mov dword [ecx], ebx
pop ebx
jmp fcn.004244d0
Function at 0x428750
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 0x428a60
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x64
mov eax, dword [0x43b160]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x60], eax
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x6c]
push eax
push ecx
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
mov dword [esp + 0x1c], 0xc3d2e1f0
call fcn.00428790
mov eax, dword [esp + 0x7c]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.00428910
mov ecx, dword [esp + 0x74]
call fcn.0042e26b
add esp, 0x78
ret

Function at 0x428b00
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x44
mov eax, dword [0x43b160]
push ebx
push ebp
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x48], eax
push edi
mov eax, 0x36363636
mov ecx, 0x10
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
xor ebx, ebx
xor eax, eax
cmp ebp, ebx
jle 0x428b48
mov edi, dword [esp + 0x54]
lea ecx, [esp + 0xc]
sub edi, ecx
cmp eax, 0x40
jge 0x428b48
lea ecx, [esp + eax + 0xc]
mov dl, byte [edi + ecx]
xor byte [ecx], dl
inc eax
cmp eax, ebp
jl 0x428b35
push 0x40
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
mov dword [esi + 0x54], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x58], ebx
call fcn.00428790
mov eax, 0x5c5c5c5c
mov ecx, 0x10
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
add esp, 0xc
xor eax, eax
cmp ebp, ebx
jle 0x428bb6
mov edi, dword [esp + 0x54]
lea ecx, [esp + 0xc]
sub edi, ecx
cmp eax, 0x40
jge 0x428bb6
lea ecx, [esp + eax + 0xc]
mov dl, byte [edi + ecx]
xor byte [ecx], dl
inc eax
cmp eax, ebp
jl 0x428ba3
lea eax, [esi + 0x60]
push 0x40
lea ecx, [esp + 0x10]
push ecx
push eax
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], ebx
mov dword [eax + 0x5c], ebx
mov dword [eax + 0x58], ebx
call fcn.00428790
mov ecx, dword [esp + 0x58]
add esp, 0xc
pop edi
pop ebp
pop ebx
call fcn.0042e26b
add esp, 0x44
ret

Function at 0x42d4e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp], 4
je 0x42d523
lea ecx, [esp]
push ecx
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push 0
push edx
push eax
call dword [0x42f010]
test eax, eax
jne 0x42d523
cmp dword [esp], 4
jne 0x42d523
cmp dword [esp + 0xc], 4
mov eax, dword [esp + 4]
je 0x42d527
mov eax, dword [esp + 0x14]
add esp, 8
ret