joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d7c0
Capabilities:
Parse credit card information

Disassembly:
mov ecx, dword [esp + 0xc]
lea eax, [ecx - 1]
cmp eax, 0x15
jae 0x44d7da
mov edx, 0x18007f
bt edx, eax
jb 0x44d936
mov edx, dword [esp + 4]
cmp edx, 1
jne 0x44d7ee
mov eax, str.SSH2_MSG_KEXDH_INIT
cmp ecx, 0x1e
jne 0x44d7ee
ret
cmp edx, 1
jne 0x44d7fd
mov eax, str.SSH2_MSG_KEXDH_REPLY
cmp ecx, 0x1f
je 0x44d7ed
cmp edx, 2
jne 0x44d80c
mov eax, str.SSH2_MSG_KEX_DH_GEX_REQUEST_OLD
cmp ecx, 0x1e
je 0x44d7ed
cmp edx, 2
jne 0x44d81b
mov eax, str.SSH2_MSG_KEX_DH_GEX_REQUEST
cmp ecx, 0x22
je 0x44d7ed
cmp edx, 2
jne 0x44d82a
mov eax, str.SSH2_MSG_KEX_DH_GEX_GROUP
cmp ecx, 0x1f
je 0x44d7ed
cmp edx, 2
jne 0x44d839
mov eax, str.SSH2_MSG_KEX_DH_GEX_INIT
cmp ecx, 0x20
je 0x44d7ed
cmp edx, 2
jne 0x44d848
mov eax, str.SSH2_MSG_KEX_DH_GEX_REPLY
cmp ecx, 0x21
je 0x44d7ed
cmp edx, 4
jne 0x44d857
mov eax, str.SSH2_MSG_KEXGSS_INIT
cmp ecx, 0x1e
je 0x44d7ed
cmp edx, 4
jne 0x44d866
mov eax, str.SSH2_MSG_KEXGSS_CONTINUE
cmp ecx, 0x1f
je 0x44d7ed
cmp edx, 4
jne 0x44d879
mov eax, str.SSH2_MSG_KEXGSS_COMPLETE
cmp ecx, 0x20
je 0x44d7ed
cmp edx, 4
jne 0x44d88c
mov eax, str.SSH2_MSG_KEXGSS_HOSTKEY
cmp ecx, 0x21
je 0x44d7ed
cmp edx, 4
jne 0x44d89f
mov eax, str.SSH2_MSG_KEXGSS_ERROR
cmp ecx, 0x22
je 0x44d7ed
cmp edx, 4
jne 0x44d8b2
mov eax, str.SSH2_MSG_KEXGSS_GROUPREQ
cmp ecx, 0x28
je 0x44d7ed
cmp edx, 4
jne 0x44d8c5
mov eax, str.SSH2_MSG_KEXGSS_GROUP
cmp ecx, 0x29
je 0x44d7ed
cmp edx, 5
jne 0x44d8d8
mov eax, str.SSH2_MSG_KEXRSA_PUBKEY
cmp ecx, 0x1e
je 0x44d7ed
cmp edx, 5
jne 0x44d8eb
mov eax, str.SSH2_MSG_KEXRSA_SECRET
cmp ecx, 0x1f
je 0x44d7ed
cmp edx, 5
jne 0x44d8fe
mov eax, str.SSH2_MSG_KEXRSA_DONE
cmp ecx, 0x20
je 0x44d7ed
cmp edx, 3
jne 0x44d911
mov eax, str.SSH2_MSG_KEX_ECDH_INIT
cmp ecx, 0x1e
je 0x44d7ed
cmp edx, 3
jne 0x44d924
mov eax, str.SSH2_MSG_KEX_ECDH_REPLY
cmp ecx, 0x1f
je 0x44d7ed
lea eax, [ecx - 0x32]
cmp eax, 4
jae 0x44d940
lea eax, [eax*4 + 0x4d5f28]
mov eax, dword [eax]
ret
lea eax, [eax*4 + 0x4d5ed4]
mov eax, dword [eax]
ret
mov edx, dword [esp + 8]
cmp edx, 1
jne 0x44d957
mov eax, str.SSH2_MSG_USERAUTH_PK_OK
cmp ecx, 0x3c
je 0x44d7ed
cmp edx, 2
jne 0x44d96a
mov eax, str.SSH2_MSG_USERAUTH_PASSWD_CHANGEREQ
cmp ecx, 0x3c
je 0x44d7ed
cmp edx, 4
jne 0x44d97d
mov eax, str.SSH2_MSG_USERAUTH_INFO_REQUEST
cmp ecx, 0x3c
je 0x44d7ed
cmp edx, 4
jne 0x44d990
mov eax, str.SSH2_MSG_USERAUTH_INFO_RESPONSE
cmp ecx, 0x3d
je 0x44d7ed
cmp edx, 3
jne 0x44d9a3
mov eax, str.SSH2_MSG_USERAUTH_GSSAPI_RESPONSE
cmp ecx, 0x3c
je 0x44d7ed
cmp edx, 3
jne 0x44d9b6
mov eax, str.SSH2_MSG_USERAUTH_GSSAPI_TOKEN
cmp ecx, 0x3d
je 0x44d7ed
cmp edx, 3
jne 0x44d9c9
mov eax, str.SSH2_MSG_USERAUTH_GSSAPI_EXCHANGE_COMPLETE
cmp ecx, 0x3f
je 0x44d7ed
cmp edx, 3
jne 0x44d9dc
mov eax, str.SSH2_MSG_USERAUTH_GSSAPI_ERROR
cmp ecx, 0x40
je 0x44d7ed
cmp edx, 3
jne 0x44d9ef
mov eax, str.SSH2_MSG_USERAUTH_GSSAPI_ERRTOK
cmp ecx, 0x41
je 0x44d7ed
cmp edx, 3
jne 0x44da02
mov eax, str.SSH2_MSG_USERAUTH_GSSAPI_MIC
cmp ecx, 0x42
je 0x44d7ed
add ecx, 0xffffffb0
mov eax, str.unknown
cmp ecx, 0x15
jae 0x44d7ed
lea eax, [ecx*4 + 0x4d5f38]
mov eax, dword [eax]
ret
Function at 0x463530
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
push 0x4e9ba8
push dword [eax]
call fcn.004b155b
add esp, 8
test eax, eax
je 0x4635a6
mov esi, eax
mov ebp, dword [esp + 0x14]
mov dword [ebp + 4], 0
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4635bd
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
add eax, dword [ebp]
push esi
push ecx
push 1
push eax
call fcn.004b16f3
add esp, 0x10
mov edi, eax
push esi
call fcn.004b0fa5
add esp, 4
test eax, eax
jne 0x4635ad
mov eax, dword [ebp + 4]
test edi, edi
je 0x4635b4
add eax, edi
mov dword [ebp + 4], eax
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x463570
jmp 0x4635b7
mov ebx, 2
jmp 0x4635f7
mov ebx, 2
jmp 0x4635ee
mov ecx, dword [ebp + 8]
xor ebx, ebx
cmp eax, ecx
jne 0x4635d1
push esi
call fcn.004b133a
add esp, 4
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
lea edx, [ebp + 0xc]
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], edx
push esi
call fcn.004b0e50
add esp, 4
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4673c0
Capabilities:
Create thread

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov eax, dword [0x502034]
xor eax, esp
mov dword [esp + 4], eax
push 0
push 0x102c
push 1
call fcn.004397d0
add esp, 0xc
mov esi, eax
mov dword [eax], 0
lea edi, [eax + 4]
mov dword [eax + 4], ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x10], eax
mov dword [esi + 0x1028], ebx
mov byte [esi + 0x16], 0
mov word [esi + 0x14], 0
mov eax, dword [esp + 0x24]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x1c], eax
cmp dword [0x502060], 0xffffffff
jne 0x467473
mov dword [0x5053d8], 0x5053d8
mov dword [0x5053dc], 0x5053d8
push 0x5053e0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x502060], eax
push 0
push 0x467b60
push eax
call fcn.00426280
add esp, 0xc
mov eax, esp
push eax
push 0
push edi
push 0x4674b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x467493
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 0x17], 1
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0049fc40
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4676a0
Capabilities:
Create thread

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
mov eax, dword [0x502034]
xor eax, esp
mov dword [esp + 4], eax
push 0
push 0x102c
push 1
call fcn.004397d0
add esp, 0xc
mov esi, eax
mov dword [eax], 1
lea edi, [eax + 4]
mov dword [eax + 4], ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], ebx
lea eax, [esi + 0x30]
push eax
call fcn.0043ef40
add esp, 4
mov dword [esi + 0x44], 0
mov eax, dword [esp + 0x20]
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], esi
mov eax, dword [esp + 0x28]
mov dword [esi + 0x1c], eax
cmp dword [0x502060], 0xffffffff
jne 0x467763
mov dword [0x5053d8], 0x5053d8
mov dword [0x5053dc], 0x5053d8
push 0x5053e0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x502060], eax
push 0
push 0x467b60
push eax
call fcn.00426280
add esp, 0xc
mov eax, esp
push eax
push 0
push edi
push 0x4677a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x467783
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0049fc40
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x468350
Capabilities:
Get session user name

Disassembly:
push edi
push esi
sub esp, 8
mov eax, dword [0x502034]
xor eax, esp
mov dword [esp + 4], eax
cmp byte [0x5053fc], 0
je 0x468378
mov ecx, dword [0x5053f8]
test ecx, ecx
jne 0x4683bb
jmp 0x468408
push str.secur32.dll
call fcn.0043bfb0
add esp, 4
mov esi, eax
push str.sspicli.dll
call fcn.0043bfb0
add esp, 4
test esi, esi
je 0x4683a8
push str.GetUserNameExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
jmp 0x4683aa
xor ecx, ecx
mov dword [0x5053f8], ecx
mov byte [0x5053fc], 1
test ecx, ecx
je 0x468408
mov dword [esp], 0
mov edi, esp
push edi
push 0
push 8
call ecx
push 0
push 1
push dword [esp + 8]
call fcn.004397d0
add esp, 0xc
mov esi, eax
push edi
push eax
push 8
call dword [0x5053f8]
test al, al
je 0x4683ff
push 0x40
push esi
call fcn.004a2b00
add esp, 8
test eax, eax
je 0x468455
mov byte [eax], 0
jmp 0x468455
push esi
call fcn.00439860
add esp, 4
mov dword [esp], 0
mov edi, esp
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x468423
mov eax, dword [esp]
jmp 0x46842f
mov dword [esp], 0x100
mov eax, 0x100
push 0
push 1
push eax
call fcn.004397d0
add esp, 0xc
mov esi, eax
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x468455
push esi
call fcn.00439860
add esp, 4
xor esi, esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0049fc40
mov eax, esi
add esp, 8
pop esi
pop edi
ret

Function at 0x468810
Capabilities:
Get common file path

Disassembly:
push esi
cmp dword [0x505400], 0
jne 0x468870
push dword [0x505404]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, dword [0x505404]
jb 0x468870
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 0
push 1
push eax
push 1
push 0x505404
push dword [0x505400]
call fcn.00439870
add esp, 0x18
mov dword [0x505400], eax
push dword [0x505404]
push eax
call esi
cmp eax, dword [0x505404]
jae 0x468840
mov eax, dword [0x505400]
pop esi
ret

Function at 0x46a560
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
push eax
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
cmp eax, dword [esi]
je 0x46a58d
push 0xa6
push str._home_simon_mem_.build_workdirs_bob_0_vdcidh_putty_crypto_mpint.c
push str.x0__nw__x1__nw
call fcn.004af403
add esp, 0xc
and ebx, 1
neg ebx
mov dword [esp], ebx
cmp dword [edi], 0
je 0x46a5c4
xor eax, eax
nop
nop
nop
nop
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [esp]
and ecx, edx
mov edx, dword [edi + 4]
xor dword [edx + eax*4], ecx
mov edx, dword [esi + 4]
xor dword [edx + eax*4], ecx
add eax, 1
cmp eax, dword [edi]
jb 0x46a5a0
add esp, 4
pop esi
pop edi
pop ebx
ret
Function at 0x46b500
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov edx, 0x27
jmp 0x46b510
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ebx, edx
mov dword [esp], ecx
mov edi, dword [ecx]
lea esi, [edi*8]
lea eax, [edi*8 + 1]
push 0
push 1
mov dword [esp + 0x10], eax
push eax
call fcn.004397d0
add esp, 0xc
mov ebp, eax
mov byte [eax + edi*8], 0
mov dword [esp + 4], esi
test esi, esi
mov dword [esp + 0xc], eax
je 0x46b596
movzx esi, bl
xor eax, eax
mov ebx, dword [esp + 4]
xor edx, edx
mov ebp, dword [esp + 0xc]
nop
nop
mov ecx, edx
shr ecx, 3
mov edi, dword [esp]
mov edi, dword [edi + 4]
mov edi, dword [edi + ecx*4]
mov ecx, eax
and cl, 0x1c
shr edi, cl
and edi, 0xf
lea ecx, [edi + 6]
shr ecx, 4
neg ecx
and ecx, esi
add ecx, edi
add cl, 0x30
mov byte [ebp + ebx - 1], cl
add edx, 1
add eax, 4
add ebx, 0xffffffff
jne 0x46b560
mov ecx, dword [esp + 4]
lea edi, [ecx - 1]
lea esi, [ecx - 2]
mov ecx, 3
mov eax, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp byte [eax + esi], 0x30
cmovne edi, esi
add esi, 0xffffffff
add ecx, 0xffffffff
jne 0x46b5b0
add esi, 0xfffffffd
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp byte [eax + esi + 3], 0x30
lea ecx, [esi + 3]
cmove ecx, edi
lea edx, [esi + 2]
cmp byte [eax + esi + 2], 0x30
cmove edx, ecx
lea edi, [esi + 1]
cmp byte [eax + esi + 1], 0x30
cmove edi, edx
cmp byte [eax + esi], 0x30
cmovne edi, esi
add esi, 0xfffffffc
cmp esi, 0xfffffffc
jne 0x46b5d0
mov ecx, eax
add ecx, 1
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov esi, dword [esp + 8]
mov dword [esp + 0x14], edi
jmp 0x46b62f
add ecx, 1
mov edx, esi
shr edx, cl
test edx, edx
je 0x46b6f0
mov ebx, 1
shl ebx, cl
mov edx, esi
sub edx, ebx
jbe 0x46b620
mov dword [esp], edx
mov edx, edi
mov dword [esp + 0x1c], ecx
shr edx, cl
and dl, 1
neg dl
xor ebp, ebp
cmp dword [esp + 4], ebx
je 0x46b6bc
mov esi, dword [esp]
and esi, 0xfffffffe
neg esi
xor ebp, ebp
mov edi, dword [esp + 0x10]
mov ecx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [edi - 1]
movzx edx, byte [edi + ebx - 1]
mov ah, dl
xor ah, al
and ah, cl
xor al, ah
mov byte [edi - 1], al
xor ah, dl
mov byte [edi + ebx - 1], ah
movzx eax, byte [edi]
movzx edx, byte [edi + ebx]
mov ah, dl
xor ah, al
and ah, cl
xor al, ah
mov byte [edi], al
xor ah, dl
mov byte [edi + ebx], ah
add edi, 2
add ebp, 0xfffffffe
cmp esi, ebp
jne 0x46b670
sub ebx, ebp
neg ebp
mov esi, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x14]
mov edx, ecx
test byte [esp], 1
mov ecx, dword [esp + 0x1c]
je 0x46b620
mov dword [esp + 0x18], edx
mov dl, byte [eax + ebp]
mov dh, byte [eax + ebx]
mov byte [esp], dh
mov dh, byte [esp]
xor dh, dl
and dh, byte [esp + 0x18]
xor dl, dh
mov byte [eax + ebp], dl
xor dh, byte [esp]
mov byte [eax + ebx], dh
jmp 0x46b620
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x471a10
Capabilities:
Create pipe
Create process on windows
Create reverse shell

Disassembly:
push edi
push esi
sub esp, 0x7c
mov eax, dword [0x502034]
xor eax, esp
mov dword [esp + 0x78], eax
mov dword [esp + 0x54], 0xc
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 1
lea esi, [esp + 0x54]
lea eax, [esp + 0x68]
lea ecx, [esp + 0x6c]
push 0
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x471bc5
lea eax, [esp + 0x74]
lea ecx, [esp + 0x70]
push 0
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x471b95
lea eax, [esp + 0x60]
lea ecx, [esp + 0x64]
push 0
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x471ba7
mov esi, dword [esp + 0x8c]
mov edi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0
push 1
push dword [esp + 0x7c]
call edi
push 0
push 1
push dword [esp + 0x74]
call edi
mov eax, dword [esp + 0x64]
test eax, eax
je 0x471ac1
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov edi, dword [esp + 0x88]
mov dword [esp + 0x10], 0x44
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x3c], 0x100
mov word [esp + 0x42], 0
mov dword [esp + 0x44], 0
mov eax, dword [esp + 0x70]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x50], eax
push esi
call fcn.0043ef00
add esp, 4
mov esi, eax
mov eax, esp
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0
push 0x8000020
push 1
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push esi
call fcn.00439860
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp]
call esi
push dword [esp + 4]
call esi
push dword [esp + 0x70]
call esi
push dword [esp + 0x68]
call esi
mov eax, dword [esp + 0x60]
test eax, eax
je 0x471b77
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push dword [esp + 0x68]
push dword [esp + 0x74]
push dword [esp + 0x80]
push edi
call fcn.00491260
add esp, 0x14
xor esi, esi
jmp 0x471be4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x6c]
call esi
push dword [esp + 0x68]
jmp 0x471bc3
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x6c]
call esi
push dword [esp + 0x68]
call esi
push dword [esp + 0x74]
call esi
push dword [esp + 0x70]
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043d3e0
add esp, 4
push eax
push str.Unable_to_create_pipes_for_proxy_command:__s
call fcn.00438d90
add esp, 8
mov esi, eax
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0049fc40
mov eax, esi
add esp, 0x7c
pop esi
pop edi
ret
Function at 0x479de0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, edx
mov edi, ecx
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
je 0x479e04
mov edx, dword [edi]
xor edx, dword [ecx]
mov ebp, dword [edi + 4]
xor ebp, dword [ecx + 4]
or ebp, edx
je 0x479e51
test ebx, ebx
jle 0x479e47
add ebx, esi
mov ebp, 0x4d71ac
nop
mov ecx, dword [edi]
mov edx, dword [edi + 4]
xor ecx, dword [esi]
xor edx, dword [esi + 4]
or edx, ecx
mov ecx, 0x4d71b0
cmove ecx, ebp
push 4
push ecx
push eax
call fcn.0047c000
add esp, 0xc
push 4
push 0x4d71b0
push eax
call fcn.0047c000
add esp, 0xc
add esi, 8
cmp esi, ebx
jb 0x479e10
test eax, eax
sete al
pop esi
pop edi
pop ebx
pop ebp
ret
push 4
push 0x4d71ac
push 0
call fcn.0047c000
add esp, 0xc
push 4
push 0x4d71b0
push eax
call fcn.0047c000
add esp, 0xc
test ebx, ebx
jg 0x479e08
jmp 0x479e47

Function at 0x47c000
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
test ecx, ecx
je 0x47c06b
mov edx, dword [esp + 0x18]
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [edx + esi]
xor edi, eax
mov ebx, edi
and ebx, 0xf
shr edi, 4
imul eax, ebx, 0x11111044
xor eax, edi
imul ebp, ebx, 0x8840020
imul edi, ebx, 0x4220000
xor edi, ebp
xor edi, eax
and eax, 0xf
shr edi, 4
imul ebx, eax, 0x11111044
imul ebp, eax, 0x8840020
xor ebp, ebx
imul eax, eax, 0x4220000
xor eax, edi
xor eax, ebp
add esi, 1
cmp ecx, esi
jne 0x47c020
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x47c070
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x47c0dd
mov edx, dword [esp + 0x14]
xor esi, esi
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [edx + esi]
xor edi, eax
mov ebx, edi
and ebx, 0xf
shr edi, 4
imul eax, ebx, 0x11111044
xor eax, edi
imul ebp, ebx, 0x8840020
imul edi, ebx, 0x4220000
xor edi, ebp
xor edi, eax
and eax, 0xf
shr edi, 4
imul ebx, eax, 0x11111044
imul ebp, eax, 0x8840020
xor ebp, ebx
imul eax, eax, 0x4220000
xor eax, edi
xor eax, ebp
add esi, 1
cmp ecx, esi
jne 0x47c090
jmp 0x47c0df
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x47e480
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x8c
mov dword [esp + 0xc], edx
mov ebp, dword [esp + 0xa8]
mov eax, dword [0x502034]
xor eax, esp
mov dword [esp + 0x88], eax
push ecx
mov dword [esp + 0xc], ecx
call dword [ecx]
add esp, 4
mov esi, eax
test eax, eax
je 0x47e4bc
mov eax, dword [esi]
push esi
call dword [eax + 4]
add esp, 4
mov dword [esp], esi
test ebp, ebp
jle 0x47e5d3
mov esi, dword [esp + 0xa4]
mov dword [esp + 4], 0
jmp 0x47e4f3
add dword [esp + 4], 1
add esi, edi
mov ebp, dword [esp + 0x10]
sub ebp, edi
jle 0x47e5d3
mov ebx, dword [esp + 8]
mov edi, dword [ebx + 0x14]
cmp ebp, edi
mov dword [esp + 0x10], ebp
cmovbe edi, ebp
mov ebp, dword [esp]
mov eax, dword [ebp]
push ebp
call dword [eax + 4]
add esp, 4
cmp dword [ebx + 0x14], 0x73
jb 0x47e52d
push 0x3c0
push str._home_simon_mem_.build_workdirs_bob_0_vdcidh_putty_crypto_rsa.c
push str.h__hlen___MAX_HASH_LEN
call fcn.004af403
add esp, 0xc
push dword [esp + 0xa0]
push dword [esp + 0x10]
push dword [ebp + 4]
call fcn.00438f90
add esp, 0xc
push dword [esp + 4]
push dword [ebp + 4]
call fcn.004390c0
add esp, 8
mov eax, dword [ebp]
lea ecx, [esp + 0x16]
push ecx
push ebp
call dword [eax + 0xc]
add esp, 8
test edi, edi
jle 0x47e4e0
lea edx, [edi - 1]
mov eax, edi
and eax, 3
xor ecx, ecx
cmp edx, 3
jb 0x47e5aa
mov edx, edi
and edx, 0xfffffffc
xor ecx, ecx
nop
movzx ebx, byte [esp + ecx + 0x16]
xor byte [esi + ecx], bl
movzx ebx, byte [esp + ecx + 0x17]
xor byte [esi + ecx + 1], bl
movzx ebx, byte [esp + ecx + 0x18]
xor byte [esi + ecx + 2], bl
movzx ebx, byte [esp + ecx + 0x19]
xor byte [esi + ecx + 3], bl
add ecx, 4
cmp edx, ecx
jne 0x47e580
test eax, eax
je 0x47e4e0
lea edx, [esi + ecx]
add ecx, esp
add ecx, 0x16
xor ebp, ebp
nop
nop
nop
nop
movzx ebx, byte [ecx + ebp]
xor byte [edx + ebp], bl
add ebp, 1
cmp eax, ebp
jne 0x47e5c0
jmp 0x47e4e0
mov ecx, dword [esp]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x10]
add esp, 4
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0049fc40
add esp, 0x8c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x47fd10
Capabilities:
Encode data using xor
Encrypt data using blowfish

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edi, dword [ecx + eax*4]
mov esi, edx
rol esi, 4
xor esi, dword [ecx + eax*4 + 0x40]
mov dword [esp + 0x1c], edx
xor edi, edx
mov eax, esi
and eax, 0xfc00fc
or eax, 0xff00ff00
mov dword [esp], eax
shr esi, 8
and esi, 0xfc00fc
or esi, 0xff00ff00
mov dword [esp + 8], esi
mov eax, edi
and eax, 0xfc00fc
or eax, 0xff00ff00
mov dword [esp + 4], eax
shr edi, 8
and edi, 0xfc00fc
or edi, 0xff00ff00
mov dword [esp + 0xc], edi
xor edi, edi
mov edx, 0x4d7a98
xor esi, esi
mov dword [esp + 0x10], 0
xor ecx, ecx
nop
nop
nop
mov dword [esp + 0x14], edi
mov edi, dword [edx]
mov eax, dword [esp]
and edi, eax
xor ecx, edi
mov edi, dword [edx + 4]
mov ebx, dword [esp + 8]
and edi, ebx
xor dword [esp + 0x10], edi
mov edi, dword [edx + 8]
mov ebp, dword [esp + 4]
and edi, ebp
xor esi, edi
mov dword [esp + 0x20], esi
mov edi, dword [edx + 0xc]
mov esi, dword [esp + 0xc]
and edi, esi
xor dword [esp + 0x14], edi
mov edi, dword [esp + 0x14]
add eax, 0x80008
mov dword [esp], eax
add ebx, 0x80008
mov dword [esp + 8], ebx
add ebp, 0x80008
mov dword [esp + 4], ebp
add esi, 0x80008
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x20]
add edx, 0x10
cmp edx, 0x4d7c98
jb 0x47fd90
mov edx, ecx
shl edx, 4
mov eax, dword [esp]
and eax, 0x40004
imul ebp, eax, 0x3c00
and ebp, edx
xor ebp, ecx
mov ecx, dword [esp + 0x10]
mov eax, ecx
shl eax, 4
mov edx, dword [esp + 8]
and edx, 0x40004
imul edx, edx, 0x3c00
and edx, eax
xor edx, ecx
mov ecx, esi
shl ecx, 4
mov eax, dword [esp + 4]
and eax, 0x40004
imul eax, eax, 0x3c00
and eax, ecx
xor eax, esi
mov esi, edi
shl esi, 4
mov ecx, dword [esp + 0xc]
and ecx, 0x40004
imul ecx, ecx, 0x3c00
and ecx, esi
xor ecx, edi
shr edx, 4
and edx, 0xf000f00
shr eax, 8
and eax, 0xf000f0
or eax, edx
and ecx, 0xf000f000
shr ebp, 0xc
and ebp, 0xf000f
or eax, ecx
or ebp, eax
shr eax, 4
xor eax, ebp
and eax, 0x7030702
xor ebp, eax
shl eax, 4
xor eax, ebp
mov ecx, eax
shr ecx, 8
xor ecx, ebp
and ecx, 0x4e009e
xor eax, ecx
shl ecx, 8
xor ecx, eax
mov edx, ecx
shr edx, 0x10
xor edx, ecx
and edx, 0xd9d3
xor ecx, edx
shl edx, 0x10
xor edx, ecx
mov eax, edx
shr eax, 4
xor eax, edx
and eax, 0x5040004
mov ecx, eax
shl eax, 4
xor eax, dword [esp + 0x18]
xor ecx, edx
shr edx, 1
xor edx, ecx
xor eax, ecx
and edx, 0x4045015
xor eax, edx
add edx, edx
xor edx, eax
mov eax, dword [esp + 0x1c]
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x48e740
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov esi, dword [esp + 0x54]
imul eax, dword [esp + 0x24], 0x3e8
mov ecx, 0x10624dd3
mul ecx
shr edx, 6
mov dword [esp], edx
mov edi, 1
mov ebx, 1
nop
nop
nop
nop
nop
nop
mov dword [esp + 4], ebx
mov ebx, edi
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
call eax
mov edi, eax
mov ebp, esi
push esi
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push ebx
push dword [esp + 0x50]
push dword [esp + 0x50]
call fcn.0048db30
add esp, 0x38
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
mov edi, dword [esp + 4]
add edi, ebx
setb cl
cmp eax, dword [esp]
jae 0x48e7e4
test cl, cl
jne 0x48e7e4
push 0
mov esi, ebp
push ebp
call fcn.00439cf0
add esp, 8
jmp 0x48e770
mov eax, dword [esp + 0x28]
mov dword [eax], ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret