joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100405c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1006dfb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.100668f6
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.1003ff60
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.10066824
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.100630ce
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.100630ce
push 1
push 0
push 0
mov ecx, esi
call fcn.10063076
push 1
push 0
push 1
mov ecx, esi
call fcn.10063076
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.10066968
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x10040740
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1006dfd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.100668f6
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.1003ff60
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.10066824
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x10040804
cmp dword [esp + 0x40], 1
jne 0x10040802
cmp ecx, eax
jge 0x10040804
mov eax, ecx
cmp eax, 0xc8
jge 0x10040810
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.100405c0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.10066968
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x10040f80
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1006e043
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.100614ec
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.10066b9e
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.100680ba
test eax, eax
je 0x1004109c
mov ecx, dword [esp + 0x3c]
call fcn.10066bcb
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x10041060
push edi
mov ecx, esi
call fcn.10064215
mov ecx, esi
call fcn.10041200
cmp dword [esp + 0x38], 1
jne 0x10041095
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.10064350
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x10043ac0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x10043af3
push esi
call fcn.10046bb0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x10043aec
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x10043b79
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x10043b62
mov eax, dword [esi + 8]
test eax, eax
je 0x10043b17
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x10043b5e
cmp eax, 2
je 0x10043b62
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10043b0a
cmp eax, 3
je 0x10043b3d
cmp eax, 1
jne 0x10043b0a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x10043b0a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x10043b0a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.10043ba0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x10043b88
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.10043ba0
add esp, 4
pop esi
ret

Function at 0x100622e1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10062319
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.10060398
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.10060370
jmp 0x10062325
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x100639d2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x10063a14
call fcn.100694a0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x10063a14
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x10063a0b
xor eax, eax
jmp 0x10063a1c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.10063a22
pop edi
pop esi
pop ebx
ret 4
Function at 0x416113
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x416152
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x416152
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x416152
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x416152
cmp dword [ecx + 0x74], 0xe
jbe 0x416152
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x428520
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42854d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42854d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x404e30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push 0x165
push 1
push str.You_are_loading_an_SSH_2_private_key_which_has_an_nold_version_of_the_file_format._This_means_your_key_nfile_is_not_fully_tamperproof._Future_versions_of_nPuTTY_may_stop_supporting_this_private_key_format__nso_we_recommend_you_convert_your_key_to_the_new_nformat._n_nOnce_the_key_is_loaded_into_PuTTYgen__you_can_perform_nthis_conversion_simply_by_saving_it_again._n
call sub.msvcrt.dll_fwrite
add esp, 0x10
leave
ret
Function at 0x405560
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
lea ebx, [ebp - 0x10]
call sub.USER32.dll_GetForegroundWindow
push edi
push edi
push 4
push ebx
mov dword [ebp - 0x10], eax
call fcn.00411ad0
add esp, 0x10
lea edi, [ebp - 0x4c]
call sub.USER32.dll_GetCapture
push esi
push esi
push 4
push ebx
mov dword [ebp - 0x10], eax
call fcn.00411ad0
add esp, 0x10
lea esi, [ebp - 0x54]
call sub.USER32.dll_GetClipboardOwner
push ecx
push ecx
push 4
push ebx
mov dword [ebp - 0x10], eax
call fcn.00411ad0
mov dword [esp], 0xbf
call sub.USER32.dll_GetQueueStatus
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
lea ebx, [ebp - 0x1c]
mov dword [esp], 4
push eax
call fcn.00411ad0
mov dword [esp], ebx
call sub.USER32.dll_GetCursorPos
mov dword [esp], 8
push ebx
lea ebx, [ebp - 0x3c]
call fcn.00411ad0
mov dword [esp], ebx
call sub.KERNEL32.dll_GlobalMemoryStatus
mov dword [esp], 0x20
push ebx
call fcn.00411ad0
add esp, 0x10
call sub.KERNEL32.dll_GetCurrentThread
sub esp, 0xc
lea ebx, [ebp - 0x5c]
lea edx, [ebp - 0x44]
push edx
push edi
push esi
push ebx
push eax
call sub.KERNEL32.dll_GetThreadTimes
mov dword [esp], 0x20
push ebx
call fcn.00411ad0
add esp, 0x10
call sub.KERNEL32.dll_GetCurrentProcess
sub esp, 0xc
lea edx, [ebp - 0x44]
push edx
push edi
push esi
push ebx
push eax
call sub.KERNEL32.dll_GetProcessTimes
mov dword [esp], 0x20
push ebx
call fcn.00411ad0
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4056f0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x264
lea ebx, [ebp - 0x117]
mov edi, dword [ebp + 8]
push 0x107
push ebx
call sub.KERNEL32.dll_GetWindowsDirectoryA
push eax
push ebx
call sub.msvcrt.dll_strlen
pop ecx
pop esi
lea esi, [ebp - 0x258]
lea eax, [ebx + eax]
mov word [eax], 0x2a5c
mov byte [eax + 2], 0
push esi
push ebx
call sub.KERNEL32.dll_FindFirstFileA
mov ebx, eax
pop eax
cmp ebx, 0xffffffff
pop edx
je 0x405765
nop
lea esi, [esi]
push ecx
push ecx
push 0x140
push esi
call edi
pop eax
pop edx
push esi
push ebx
call sub.KERNEL32.dll_FindNextFileA
pop edx
test eax, eax
pop ecx
jne 0x405740
sub esp, 0xc
push ebx
call sub.KERNEL32.dll_FindClose
add esp, 0xc
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [ebp - 0x10], eax
push eax
push eax
lea eax, [ebp - 0x10]
push 4
push eax
call edi
mov dword [esp], edi
call fcn.00405de0
add esp, 0x10
call fcn.004056b0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x405860
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x11c
mov ebx, eax
lea esi, [ebp - 0x115]
lea edi, [ebp - 0x10]
jmp 0x40588b
push eax
push eax
push esi
push ebx
call sub.ADVAPI32.DLL_RegDeleteKeyA
pop ecx
pop eax
push 0x105
push esi
push 0
push ebx
call sub.ADVAPI32.DLL_RegEnumKeyA
test eax, eax
jne 0x4058c4
push ecx
push edi
push esi
push ebx
call sub.ADVAPI32.DLL_RegOpenKeyA
pop edx
test eax, eax
jne 0x405880
mov eax, dword [ebp - 0x10]
call fcn.00405860
sub esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0xc
jmp 0x405880
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4059b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov esi, eax
mov edi, ecx
mov eax, edx
test edx, edx
je 0x405a21
cmp edx, 2
sete dl
and edx, 0xff
dec edx
and edx, 0x40000000
add edx, 0x40000000
cmp eax, 2
setne al
xor ecx, ecx
xor ebx, ebx
mov cl, al
mov bl, al
and eax, 0xff
sub esp, 4
dec ecx
add ebx, 2
and ecx, 0x80
lea eax, [eax + eax*2]
push 0
push ecx
push ebx
push 0
push eax
push edx
push esi
call sub.KERNEL32.dll_CreateFileA
mov dword [edi], eax
inc eax
setne al
pop edx
and eax, 0xff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
push esi
call sub.msvcrt.dll_remove
mov dword [edi], 0xffffffff
xor eax, eax
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x405da0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov eax, 2
mov ebp, esp
push ebx
sub esp, 0x14
call fcn.00405a40
mov ebx, eax
cmp eax, 0xffffffff
je 0x405dd8
sub esp, 0xc
lea eax, [ebp - 8]
push 0
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
push ebx
call sub.KERNEL32.dll_WriteFile
push ebx
call sub.KERNEL32.dll_CloseHandle
add esp, 0xc
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x405de0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov eax, 1
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x41c
call fcn.00405a40
mov ebx, eax
cmp eax, 0xffffffff
je 0x405e3e
lea edi, [ebp - 0x10]
lea esi, [ebp - 0x410]
jmp 0x405e19
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x405e32
push edx
push edx
push eax
push esi
call dword [ebp + 8]
add esp, 0x10
sub esp, 0xc
push 0
push edi
push 0x400
push esi
push ebx
call sub.KERNEL32.dll_ReadFile
add esp, 0xc
test eax, eax
jne 0x405e08
sub esp, 0xc
push ebx
call sub.KERNEL32.dll_CloseHandle
add esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4061e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push 1
push ebx
call sub.msvcrt.dll_strlen
mov dword [esp], esi
mov edi, eax
call sub.msvcrt.dll_strlen
lea eax, [edi + eax]
lea eax, [eax + eax*2 + 0xf]
mov dword [esp], eax
call fcn.00408f20
mov edx, esi
mov ecx, dword [ebp + 0xc]
mov edi, eax
mov dword [esp], ebx
call fcn.00406180
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push str.SoftwareSimonTathamPuTTYSshHostKeys
push 0x80000001
call sub.ADVAPI32.DLL_RegCreateKeyA
pop esi
test eax, eax
jne 0x406269
sub esp, 0xc
mov ebx, dword [ebp + 0x14]
push ebx
call sub.msvcrt.dll_strlen
pop edx
inc eax
pop ecx
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0x10]
push 1
push 0
push edi
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0xc
sub esp, 0xc
push edi
call fcn.00408e20
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4067d0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ecx, 1
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x10
lea ebx, [ebp - 0x1c]
mov esi, dword [ebp + 8]
mov dl, byte [ecx + esi - 1]
lea eax, [edx - 0x41]
cmp al, 0x19
ja 0x406873
movsx eax, dl
sub eax, 0x41
mov dword [ebx + ecx*4 - 4], eax
inc ecx
cmp ecx, 5
jne 0x4067e4
mov ebx, dword [ebp - 0x1c]
cmp ebx, 0xffffffff
je 0x4068c0
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xffffffff
je 0x4068c0
mov esi, dword [ebp - 0x14]
cmp esi, 0xffffffff
je 0x4068cc
mov edx, dword [ebp - 0x10]
cmp edx, 0xffffffff
setne al
shl ecx, 0xc
and edx, 0x3f
shl ebx, 0x12
and esi, 0x3f
or ecx, ebx
and eax, 0xff
or ecx, edx
mov edi, eax
shl esi, 6
mov edx, dword [ebp + 0xc]
or ecx, esi
add edi, 2
mov eax, ecx
shr eax, 0x10
mov byte [edx], al
mov eax, ecx
shr eax, 8
cmp edi, 2
mov byte [edx + 1], al
jle 0x406869
mov byte [edx + 2], cl
add esp, 0x10
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [edx - 0x61]
cmp al, 0x19
ja 0x406885
movsx eax, dl
sub eax, 0x47
jmp 0x4067f9
lea eax, [edx - 0x30]
cmp al, 9
jbe 0x4068b2
mov eax, 0x3e
cmp dl, 0x2b
je 0x4067f9
mov al, 0x3f
cmp dl, 0x2f
je 0x4067f9
cmp dl, 0x3d
jne 0x4068c0
or eax, 0xffffffff
jmp 0x4067f9
movsx eax, dl
add eax, 4
jmp 0x4067f9
xor edi, edi
add esp, 0x10
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4068c0
shl ecx, 0xc
mov eax, dword [ebp + 0xc]
shl ebx, 0x12
mov edi, 1
or ecx, ebx
shr ecx, 0x10
mov byte [eax], cl
jmp 0x406869
Function at 0x406960
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ecx, 5
mov ebp, esp
push edi
cld
push esi
lea eax, [ebp - 0x2d]
push ebx
mov edi, eax
sub esp, 0x84
mov esi, str.PuTTY_User_Key_File_
mov dword [ebp - 0x84], eax
rep movsd dword es:[edi], dword [esi]
mov al, byte [0x41c6a5]
mov esi, str._____BEGIN_SSH2_ENCRYPTED_PRIVAT
mov byte [edi], al
lea eax, [ebp - 0x6e]
mov edi, eax
mov cl, 8
mov dword [ebp - 0x88], eax
rep movsd dword es:[edi], dword [esi]
mov al, byte [0x41c6c8]
mov byte [edi], al
mov eax, dword [str._____BEGIN]
mov dword [ebp - 0x18], eax
mov eax, dword [0x41c6cd]
mov dword [ebp - 0x14], eax
mov eax, dword [0x41c6d1]
mov dword [ebp - 0x10], eax
push 0x41c66c
mov eax, dword [ebp + 8]
push eax
call sub.msvcrt.dll_fopen
add esp, 0x10
mov esi, eax
test eax, eax
je 0x406a82
lea ebx, [ebp - 0x4d]
push eax
push 0x20
push 1
push ebx
call sub.msvcrt.dll_fread
mov dword [esp], esi
mov edi, eax
call sub.msvcrt.dll_fclose
add esp, 0x10
test edi, edi
js 0x406a82
cmp edi, 0x1f
jle 0x406a7b
cld
mov ecx, 0x20
mov edi, str.SSH_PRIVATE_KEY_FILE_FORMAT_1.1_n
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
mov ecx, 2
cmp dl, al
je 0x406a52
mov cl, 0x14
mov esi, ebx
mov edi, dword [ebp - 0x84]
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
mov ecx, 3
cmp dl, al
je 0x406a52
mov cl, 0xb
lea edi, [ebp - 0x18]
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
mov ecx, 4
cmp dl, al
jne 0x406a60
lea esp, [ebp - 0xc]
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
mov cl, 0x20
mov esi, ebx
mov edi, dword [ebp - 0x88]
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
mov ecx, 5
cmp dl, al
je 0x406a52
mov ecx, 1
jmp 0x406a52
xor ecx, ecx
lea esp, [ebp - 0xc]
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x408e80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
push ebx
sub esp, 0xd4
mov eax, 0x7fffffff
div dword [ebp + 0x10]
xor ebx, ebx
mov ecx, dword [ebp + 8]
cmp eax, dword [ebp + 0xc]
jb 0x408ec4
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
imul eax, edx
test ecx, ecx
je 0x408f10
push ebx
push ebx
push eax
push ecx
call sub.msvcrt.dll_realloc
add esp, 0x10
mov ebx, eax
test ebx, ebx
je 0x408ec4
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
sub esp, 0xc
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xcc], 0x2074754f
mov dword [ebp - 0xc8], 0x6d20666f
mov dword [ebp - 0xc4], 0x726f6d65
mov word [ebp - 0xc0], 0x2179
mov byte [ebp - 0xbe], 0
push eax
call fcn.00401d00
mov eax, ebx
add esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
sub esp, 0xc
push eax
call sub.msvcrt.dll_malloc
add esp, 0x10
mov ebx, eax
jmp 0x408eb9

Function at 0x408f20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
push ebx
sub esp, 0xd4
mov eax, 0x7fffffff
div dword [ebp + 0xc]
xor ebx, ebx
cmp eax, dword [ebp + 8]
jb 0x408f63
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
imul eax, ecx
test eax, eax
jne 0x408f4a
mov al, 1
sub esp, 0xc
push eax
call sub.msvcrt.dll_malloc
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x408f63
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
sub esp, 0xc
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xcc], 0x2074754f
mov dword [ebp - 0xc8], 0x6d20666f
mov dword [ebp - 0xc4], 0x726f6d65
mov word [ebp - 0xc0], 0x2179
mov byte [ebp - 0xbe], 0
push eax
call fcn.00401d00
mov eax, ebx
add esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x409740
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov dword [ebp - 0x48], edx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x4c], ecx
test edx, edx
jle 0x40981d
mov eax, dword [eax + 0xc]
cmp eax, 0x20
jg 0x40982c
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
cmp edi, eax
jg 0x409825
mov dword [ebp - 0x40], 0
nop
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x44]
shr eax, 0x18
mov byte [ebp - 0x10], al
mov eax, dword [ebp - 0x40]
shr eax, 0x10
mov byte [ebp - 0xf], al
mov eax, dword [ebp - 0x40]
shr eax, 8
mov byte [ebp - 0xe], al
mov al, byte [ebp - 0x40]
mov byte [ebp - 0xd], al
call dword [edx]
mov ecx, dword [ebp - 0x48]
mov ebx, eax
push eax
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x44]
push ecx
push ebx
call dword [eax + 4]
add esp, 0xc
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x10]
push 4
push edx
push ebx
call dword [eax + 4]
pop eax
mov eax, dword [ebp - 0x44]
pop edx
lea edx, [ebp - 0x30]
push edx
push ebx
call dword [eax + 8]
mov eax, dword [ebp - 0x40]
inc eax
add esp, 0x10
mov dword [ebp - 0x40], eax
test edi, edi
jle 0x4097f1
xor edx, edx
mov al, byte [edx + ebp - 0x30]
xor byte [edx + esi], al
inc edx
cmp edx, edi
jne 0x4097e5
mov eax, dword [ebp + 0xc]
sub eax, edi
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x40981d
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0xc]
cmp eax, 0x20
jg 0x40982c
mov edx, dword [ebp + 0xc]
cmp edx, eax
jle 0x409814
mov edx, eax
add esi, edi
mov edi, edx
jmp 0x409780
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, eax
jmp 0x409777
push eax
push 0x364
push str._home_nightlybuild_buildroot_packages_FileZilla3_src_putty_sshrsa.c
push str.h__hlen___SSH2_KEX_MAX_HASH_LEN
call sub.msvcrt.dll__assert
jmp fcn.00409850