joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422e70
Capabilities:
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7ada94]
sub esp, 0x2dc
push ebx
push ebp
push esi
mov esi, dword [0x42eae4]
shr eax, 3
push edi
test eax, eax
je 0x42301c
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], eax
jmp 0x422ea4
mov esi, dword [esp + 0x18]
cmp dword [0x7ada94], 0x1c
jne 0x422ec1
lea eax, [esp + 0x38]
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov edx, dword [0x428210]
mov ecx, dword [0x428214]
mov eax, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0x28], edx
mov edx, dword [0x428218]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x42821c]
mov dword [esp + 0x14], eax
mov ebx, 0xc6ef3720
mov dword [esp + 0x24], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], 0x20
jmp 0x422f05
mov eax, dword [esp + 0x14]
mov edx, eax
mov ecx, eax
shr edx, 5
add edx, dword [esp + 0x34]
shl ecx, 4
add ecx, dword [esp + 0x24]
add eax, ebx
xor edx, ecx
xor edx, eax
sub edi, edx
mov ecx, edi
shl ecx, 4
mov dword [0x7ada04], 0
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x28]
add dword [esp + 0x10], eax
cmp dword [0x7ada94], 0x1be
lea ebp, [ebx + edi]
jne 0x422f5a
lea edx, [esp + 0x30]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov esi, edi
shr esi, 5
add esi, dword [esp + 0x2c]
cmp dword [0x7ada94], 0x979
mov dword [0x7ada08], 0xff6b3619
mov dword [0x7ada0c], 0xffffffff
jne 0x422f9a
mov eax, dword [esp + 0x30]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
xor esi, ebp
xor dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
sub dword [esp + 0x14], eax
add ebx, 0x61c88647
dec dword [esp + 0x1c]
jne 0x422f01
cmp dword [0x7ada94], 0x8d4
jne 0x422fcf
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esi], edx
mov dword [esi + 4], edi
cmp dword [0x7ada94], 0x17
jne 0x42300b
push 0
push 0
push 0
push 0x404690
push 0x4046a0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea eax, [esp + 0x98]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
add esi, 8
dec dword [esp + 0x20]
mov dword [esp + 0x18], esi
jne 0x422ea0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2dc
ret
Function at 0x402550
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 [0x4c0018]
xor eax, esp
mov dword [esp + 4], eax
push 0
push 0x102c
push 1
call fcn.00413470
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 [0x4c0004], 0xffffffff
jne 0x402603
mov dword [0x4c0c30], 0x4c0c30
mov dword [0x4c0c34], 0x4c0c30
push 0x4c0c38
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x4c0004], eax
push 0
push 0x402dc0
push eax
call fcn.00414d20
add esp, 0xc
mov eax, esp
push eax
push 0
push edi
push 0x402640
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x402623
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 0x17], 1
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0046c560
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp

Function at 0x402830
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 [0x4c0018]
xor eax, esp
mov dword [esp + 4], eax
push 0
push 0x102c
push 1
call fcn.00413470
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.00414fc0
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 [0x4c0004], 0xffffffff
jne 0x4028f3
mov dword [0x4c0c30], 0x4c0c30
mov dword [0x4c0c34], 0x4c0c30
push 0x4c0c38
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x4c0004], eax
push 0
push 0x402dc0
push eax
call fcn.00414d20
add esp, 0xc
mov eax, esp
push eax
push 0
push edi
push 0x402930
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x402913
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0046c560
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
Function at 0x405d20
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x270
mov edi, dword [esp + 0x284]
mov eax, dword [0x4c0018]
xor eax, esp
mov dword [esp + 0x26c], eax
lea esi, [esp + 0x25]
push 0x107
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call fcn.00480740
add esp, 4
mov word [esp + eax + 0x25], 0x2a5c
mov byte [esp + eax + 0x27], 0
lea ebx, [esp + 0x12c]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x405d9a
mov esi, eax
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push 0x140
push ebx
call edi
add esp, 8
push ebx
push esi
call ebp
test eax, eax
jne 0x405d80
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp], eax
mov eax, esp
push 4
push eax
call edi
add esp, 8
lea esi, [esp + 5]
push 0x20
push esi
call fcn.00405c10
add esp, 8
test al, al
je 0x405dd3
push 0x20
push esi
call edi
add esp, 8
push 0x20
push esi
call fcn.0042f4b0
add esp, 8
push edi
call fcn.00417740
add esp, 4
mov ecx, dword [esp + 0x26c]
xor ecx, esp
call fcn.0046c560
add esp, 0x270
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x405e00
Capabilities:
Get memory capacity

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [0x4c0018]
xor eax, esp
mov dword [esp + 0x50], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [esp + 0x2c], eax
lea esi, [esp + 0x2c]
push 4
push esi
push 9
call fcn.00416b70
add esp, 0xc
call dword [sym.imp.USER32.dll_GetCapture]
mov dword [esp + 0x2c], eax
push 4
push esi
push 0xa
call fcn.00416b70
add esp, 0xc
call dword [sym.imp.USER32.dll_GetClipboardOwner]
mov dword [esp + 0x2c], eax
push 4
push esi
push 0xb
call fcn.00416b70
add esp, 0xc
push 0x1cbf
call dword [sym.imp.USER32.dll_GetQueueStatus]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push 4
push eax
push 0xc
call fcn.00416b70
add esp, 0xc
lea esi, [esp + 0x20]
push esi
call dword [sym.imp.USER32.dll_GetCursorPos]
push 8
push esi
push 0xd
call fcn.00416b70
add esp, 0xc
mov esi, esp
push esi
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push 0x20
push esi
push 6
call fcn.00416b70
add esp, 0xc
lea ebp, [esp + 0x48]
lea ebx, [esp + 0x40]
lea edi, [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea esi, [esp + 0x30]
push ebp
push ebx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadTimes]
push 0x20
push esi
push 0xe
call fcn.00416b70
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebp
push ebx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
push 0x20
push esi
push 0xf
call fcn.00416b70
add esp, 0xc
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0046c560
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40c060
Capabilities:
Get session user name

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x3a
push esi
call fcn.00412140
add esp, 8
cmp byte [eax], 0
je 0x40c080
push eax
call fcn.0041c540
add esp, 4
pop esi
ret
push 0x3b
push esi
call fcn.00411f40
add esp, 8
test al, al
je 0x40c095
pop esi
jmp fcn.004300c0
xor eax, eax
pop esi
ret
Function at 0x414180
Capabilities:
Link many functions at runtime

Disassembly:
cmp byte [0x4c13b4], 1
jne 0x41418f
mov al, byte [0x4c13b5]
ret
mov byte [0x4c13b4], 1
push str.advapi32.dll
call fcn.0042f470
add esp, 4
mov dword [0x4c13b8], eax
test eax, eax
je 0x4142d7
push str.GetSecurityInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c13bc], eax
test eax, eax
je 0x4142d7
mov eax, dword [0x4c13b8]
test eax, eax
je 0x41429d
push str.SetSecurityInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c13c0], eax
test eax, eax
je 0x4142d7
mov eax, dword [0x4c13b8]
test eax, eax
je 0x4142a9
push str.OpenProcessToken
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c13c4], eax
test eax, eax
je 0x4142d7
mov eax, dword [0x4c13b8]
test eax, eax
je 0x4142b5
push str.GetTokenInformation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c13c8], eax
test eax, eax
je 0x4142d7
mov eax, dword [0x4c13b8]
test eax, eax
je 0x4142c1
push 0x4a7f0f
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c13cc], eax
test eax, eax
je 0x4142d7
mov eax, dword [0x4c13b8]
test eax, eax
je 0x4142cd
push 0x4a80cb
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov dword [0x4c13d0], eax
xor eax, eax
test ecx, ecx
je 0x4142d9
mov ecx, dword [0x4c13b8]
test ecx, ecx
je 0x414291
push str.SetEntriesInAclA
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c13d4], eax
test eax, eax
setne al
jmp 0x4142d9
mov dword [0x4c13c0], 0
jmp 0x4142d7
mov dword [0x4c13c4], 0
jmp 0x4142d7
mov dword [0x4c13c8], 0
jmp 0x4142d7
mov dword [0x4c13cc], 0
jmp 0x4142d7
mov dword [0x4c13d0], 0
xor eax, eax
mov byte [0x4c13b5], al
ret

Function at 0x414b50
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push edi
push esi
cmp dword [0x4c1400], 0
jne 0x414b8b
push 0x414ca0
call fcn.004155f0
add esp, 4
mov dword [0x4c1400], eax
push 0x414d00
call fcn.004155f0
add esp, 4
mov dword [0x4c1404], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4c13fc], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4c13fc], eax
push 0
push dword [0x4c1400]
call fcn.00415d80
add esp, 8
test eax, eax
je 0x414c39
mov esi, eax
mov edi, dword [esp + 0x14]
jmp 0x414bef
push 0
push dword [0x4c1400]
call fcn.00416390
add esp, 8
push esi
call fcn.00413500
add esp, 4
push 0
push dword [0x4c1400]
call fcn.00415d80
add esp, 8
mov esi, eax
test eax, eax
je 0x414c39
push 0
push dword [esi + 4]
push dword [0x4c1404]
call fcn.00416350
add esp, 0xc
test eax, eax
je 0x414bc0
mov ecx, dword [0x4c13fc]
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
add edx, 0xfffffff6
sub ecx, edx
mov ebx, eax
sub ebx, edx
cmp ecx, ebx
jbe 0x414c3d
push 0
push dword [0x4c1400]
call fcn.00416390
add esp, 8
push dword [esi + 8]
push dword [esi + 4]
call dword [esi]
jmp 0x414bcd
xor eax, eax
jmp 0x414c41
mov dword [edi], eax
mov al, 1
pop esi
pop edi
pop ebx
ret
Function at 0x417740
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x408
mov eax, dword [0x4c0018]
xor eax, esp
mov dword [esp + 0x404], eax
mov ecx, 1
call fcn.004177f0
cmp eax, 0xffffffff
je 0x4177c9
mov esi, eax
mov eax, esp
lea ebx, [esp + 4]
push 0
push eax
push 0x400
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4177c2
mov eax, dword [esp]
test eax, eax
je 0x4177c2
mov ebp, dword [esp + 0x41c]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
push ebx
call ebp
add esp, 8
push 0
lea eax, [esp + 4]
push eax
push 0x400
push ebx
push esi
call edi
test eax, eax
je 0x4177c2
mov eax, dword [esp]
test eax, eax
jne 0x4177a0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.0046c560
add esp, 0x408
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4177f0
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x214
mov esi, ecx
mov eax, dword [0x4c0018]
xor eax, esp
mov dword [esp + 0x210], eax
push 0
push str.SoftwareSimonTathamPuTTY
push 0x80000001
push 0
call fcn.00430dc0
add esp, 0x10
test eax, eax
je 0x417865
mov ebx, eax
push str.RandSeedFile
push eax
call fcn.00430fb0
add esp, 8
mov edi, eax
push ebx
call fcn.00430ea0
add esp, 4
test edi, edi
je 0x417865
mov eax, esp
mov ecx, edi
mov edx, esi
push eax
call fcn.00417a90
add esp, 4
mov ebx, eax
push edi
call fcn.00413500
add esp, 4
test bl, bl
jne 0x417a1b
cmp byte [0x4c1428], 0
je 0x41787d
mov ecx, dword [0x4c1430]
test ecx, ecx
jne 0x4178ba
jmp 0x41794b
push str.shell32.dll
call fcn.0042f470
add esp, 4
mov dword [0x4c142c], eax
test eax, eax
je 0x4178a3
push str.SHGetFolderPathA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
jmp 0x4178a5
xor ecx, ecx
mov dword [0x4c1430], ecx
mov byte [0x4c1428], 1
test ecx, ecx
je 0x41794b
lea ebp, [esp + 0x10b]
push ebp
push 0
push 0
push 0x1c
push 0
call ecx
test eax, eax
js 0x417904
push 0
push str.PUTTY.RND
push ebp
call fcn.004301e0
add esp, 0xc
mov edi, eax
mov eax, esp
mov ecx, edi
mov edx, esi
push eax
call fcn.00417a90
add esp, 4
mov ebx, eax
push edi
call fcn.00413500
add esp, 4
test bl, bl
jne 0x417a1b
push ebp
push 0
push 0
push 0x1a
push 0
call dword [0x4c1430]
test eax, eax
js 0x41794b
push 0
push str.PUTTY.RND
push ebp
call fcn.004301e0
add esp, 0xc
mov edi, eax
mov eax, esp
mov ecx, edi
mov edx, esi
push eax
call fcn.00417a90
add esp, 4
mov ebx, eax
push edi
call fcn.00413500
add esp, 4
test bl, bl
jne 0x417a1b
lea eax, [esp + 0x10b]
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0x104
push eax
push str.HOMEDRIVE
call ebp
mov edi, eax
lea ebx, [esp + 7]
push 0x104
push ebx
push str.HOMEPATH
call ebp
test edi, edi
jne 0x417984
mov byte [esp + 0x10b], 0
cmp edi, 0x103
ja 0x4179d1
cmp eax, 0x103
ja 0x4179d1
test eax, eax
je 0x4179d1
push 0
push str.PUTTY.RND
push ebx
lea ebp, [esp + 0x117]
push ebp
call fcn.004301e0
add esp, 0x10
mov edi, eax
mov eax, esp
mov ecx, edi
mov edx, esi
push eax
call fcn.00417a90
add esp, 4
mov ebx, eax
push edi
call fcn.00413500
add esp, 4
test bl, bl
jne 0x417a1b
jmp 0x4179d8
lea ebp, [esp + 0x10b]
push 0x104
push ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp eax, 0x104
jae 0x417a20
push 0
push str.PUTTY.RND
push ebp
call fcn.004301e0
add esp, 0xc
mov edi, eax
mov eax, esp
mov ecx, edi
mov edx, esi
push eax
call fcn.00417a90
add esp, 4
mov ebx, eax
push edi
call fcn.00413500
add esp, 4
test bl, bl
je 0x417a20
mov esi, dword [esp]
jmp 0x417a25
mov esi, 0xffffffff
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0046c560
mov eax, esi
add esp, 0x214
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x417a40
Capabilities:
Write file on windows

Disassembly:
push esi
sub esp, 8
mov eax, dword [0x4c0018]
xor eax, esp
mov dword [esp + 4], eax
mov ecx, 2
call fcn.004177f0
cmp eax, 0xffffffff
je 0x417a7b
mov esi, eax
mov eax, esp
push 0
push eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0046c560
add esp, 8
pop esi
ret

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

Disassembly:
push ebx
push edi
push esi
mov esi, ecx
mov edi, dword [esp + 0x10]
test edx, edx
je 0x417adb
xor ecx, ecx
xor eax, eax
cmp edx, 2
setne cl
sete al
lea ecx, [ecx + ecx*2]
mov ebx, 0x40000000
mov edx, 0x80000000
cmove edx, ebx
mov ebx, eax
shl ebx, 7
xor eax, 3
push 0
push ebx
push eax
push 0
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi], eax
cmp eax, 0xffffffff
setne al
jmp 0x417b17
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x417b0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x417b0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042f950
add esp, 4
push eax
push esi
push str.Unable_to_delete__s:__s
call fcn.004033e0
add esp, 0xc
mov dword [edi], 0xffffffff
xor eax, eax
pop esi
pop edi
pop ebx
ret
Function at 0x41b5e0
Capabilities:
Parse credit card information

Disassembly:
mov ecx, dword [esp + 0xc]
lea eax, [ecx - 1]
cmp eax, 0x15
jae 0x41b5fa
mov edx, 0x18007f
bt edx, eax
jb 0x41b756
mov edx, dword [esp + 4]
cmp edx, 1
jne 0x41b60e
mov eax, str.SSH2_MSG_KEXDH_INIT
cmp ecx, 0x1e
jne 0x41b60e
ret
cmp edx, 1
jne 0x41b61d
mov eax, str.SSH2_MSG_KEXDH_REPLY
cmp ecx, 0x1f
je 0x41b60d
cmp edx, 2
jne 0x41b62c
mov eax, str.SSH2_MSG_KEX_DH_GEX_REQUEST_OLD
cmp ecx, 0x1e
je 0x41b60d
cmp edx, 2
jne 0x41b63b
mov eax, str.SSH2_MSG_KEX_DH_GEX_REQUEST
cmp ecx, 0x22
je 0x41b60d
cmp edx, 2
jne 0x41b64a
mov eax, str.SSH2_MSG_KEX_DH_GEX_GROUP
cmp ecx, 0x1f
je 0x41b60d
cmp edx, 2
jne 0x41b659
mov eax, str.SSH2_MSG_KEX_DH_GEX_INIT
cmp ecx, 0x20
je 0x41b60d
cmp edx, 2
jne 0x41b668
mov eax, str.SSH2_MSG_KEX_DH_GEX_REPLY
cmp ecx, 0x21
je 0x41b60d
cmp edx, 4
jne 0x41b677
mov eax, str.SSH2_MSG_KEXGSS_INIT
cmp ecx, 0x1e
je 0x41b60d
cmp edx, 4
jne 0x41b686
mov eax, str.SSH2_MSG_KEXGSS_CONTINUE
cmp ecx, 0x1f
je 0x41b60d
cmp edx, 4
jne 0x41b699
mov eax, str.SSH2_MSG_KEXGSS_COMPLETE
cmp ecx, 0x20
je 0x41b60d
cmp edx, 4
jne 0x41b6ac
mov eax, str.SSH2_MSG_KEXGSS_HOSTKEY
cmp ecx, 0x21
je 0x41b60d
cmp edx, 4
jne 0x41b6bf
mov eax, str.SSH2_MSG_KEXGSS_ERROR
cmp ecx, 0x22
je 0x41b60d
cmp edx, 4
jne 0x41b6d2
mov eax, str.SSH2_MSG_KEXGSS_GROUPREQ
cmp ecx, 0x28
je 0x41b60d
cmp edx, 4
jne 0x41b6e5
mov eax, str.SSH2_MSG_KEXGSS_GROUP
cmp ecx, 0x29
je 0x41b60d
cmp edx, 5
jne 0x41b6f8
mov eax, str.SSH2_MSG_KEXRSA_PUBKEY
cmp ecx, 0x1e
je 0x41b60d
cmp edx, 5
jne 0x41b70b
mov eax, str.SSH2_MSG_KEXRSA_SECRET
cmp ecx, 0x1f
je 0x41b60d
cmp edx, 5
jne 0x41b71e
mov eax, str.SSH2_MSG_KEXRSA_DONE
cmp ecx, 0x20
je 0x41b60d
cmp edx, 3
jne 0x41b731
mov eax, str.SSH2_MSG_KEX_ECDH_INIT
cmp ecx, 0x1e
je 0x41b60d
cmp edx, 3
jne 0x41b744
mov eax, str.SSH2_MSG_KEX_ECDH_REPLY
cmp ecx, 0x1f
je 0x41b60d
lea eax, [ecx - 0x32]
cmp eax, 4
jae 0x41b760
lea eax, [eax*4 + 0x499394]
mov eax, dword [eax]
ret
lea eax, [eax*4 + 0x499340]
mov eax, dword [eax]
ret
mov edx, dword [esp + 8]
cmp edx, 1
jne 0x41b777
mov eax, str.SSH2_MSG_USERAUTH_PK_OK
cmp ecx, 0x3c
je 0x41b60d
cmp edx, 2
jne 0x41b78a
mov eax, str.SSH2_MSG_USERAUTH_PASSWD_CHANGEREQ
cmp ecx, 0x3c
je 0x41b60d
cmp edx, 4
jne 0x41b79d
mov eax, str.SSH2_MSG_USERAUTH_INFO_REQUEST
cmp ecx, 0x3c
je 0x41b60d
cmp edx, 4
jne 0x41b7b0
mov eax, str.SSH2_MSG_USERAUTH_INFO_RESPONSE
cmp ecx, 0x3d
je 0x41b60d
cmp edx, 3
jne 0x41b7c3
mov eax, str.SSH2_MSG_USERAUTH_GSSAPI_RESPONSE
cmp ecx, 0x3c
je 0x41b60d
cmp edx, 3
jne 0x41b7d6
mov eax, str.SSH2_MSG_USERAUTH_GSSAPI_TOKEN
cmp ecx, 0x3d
je 0x41b60d
cmp edx, 3
jne 0x41b7e9
mov eax, str.SSH2_MSG_USERAUTH_GSSAPI_EXCHANGE_COMPLETE
cmp ecx, 0x3f
je 0x41b60d
cmp edx, 3
jne 0x41b7fc
mov eax, str.SSH2_MSG_USERAUTH_GSSAPI_ERROR
cmp ecx, 0x40
je 0x41b60d
cmp edx, 3
jne 0x41b80f
mov eax, str.SSH2_MSG_USERAUTH_GSSAPI_ERRTOK
cmp ecx, 0x41
je 0x41b60d
cmp edx, 3
jne 0x41b822
mov eax, str.SSH2_MSG_USERAUTH_GSSAPI_MIC
cmp ecx, 0x42
je 0x41b60d
add ecx, 0xffffffb0
mov eax, str.unknown
cmp ecx, 0x15
jae 0x41b60d
lea eax, [ecx*4 + 0x4993a4]
mov eax, dword [eax]
ret
Function at 0x4300c0
Capabilities:
Get session user name

Disassembly:
push edi
push esi
sub esp, 8
mov eax, dword [0x4c0018]
xor eax, esp
mov dword [esp + 4], eax
cmp byte [0x4c1494], 0
je 0x4300e8
mov ecx, dword [0x4c1490]
test ecx, ecx
jne 0x43012b
jmp 0x430178
push str.secur32.dll
call fcn.0042f470
add esp, 4
mov esi, eax
push str.sspicli.dll
call fcn.0042f470
add esp, 4
test esi, esi
je 0x430118
push str.GetUserNameExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
jmp 0x43011a
xor ecx, ecx
mov dword [0x4c1490], ecx
mov byte [0x4c1494], 1
test ecx, ecx
je 0x430178
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.00413470
add esp, 0xc
mov esi, eax
push edi
push eax
push 8
call dword [0x4c1490]
test al, al
je 0x43016f
push 0x40
push esi
call fcn.0046f3f0
add esp, 8
test eax, eax
je 0x4301c5
mov byte [eax], 0
jmp 0x4301c5
push esi
call fcn.00413500
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 0x430193
mov eax, dword [esp]
jmp 0x43019f
mov dword [esp], 0x100
mov eax, 0x100
push 0
push 1
push eax
call fcn.00413470
add esp, 0xc
mov esi, eax
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x4301c5
push esi
call fcn.00413500
add esp, 4
xor esi, esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0046c560
mov eax, esi
add esp, 8
pop esi
pop edi
ret

Function at 0x430eb0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x4c0018]
xor eax, esp
mov dword [esp + 4], eax
mov dword [esp], 0x105
mov ebx, 0x105
push 0
push 1
push 0x105
call fcn.00413470
add esp, 0xc
mov esi, eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, esp
nop
nop
nop
nop
nop
nop
nop
push ebx
push esi
push dword [esp + 0x28]
push dword [esp + 0x28]
call ebp
cmp eax, 0xea
jne 0x430f1e
push 0
push 1
push dword [esp + 8]
push 1
push edi
push esi
call fcn.00413510
add esp, 0x18
mov esi, eax
mov ebx, dword [esp]
jmp 0x430ef0
test eax, eax
je 0x430f2d
push esi
call fcn.00413500
add esp, 4
xor esi, esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0046c560
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x430f50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov esi, dword [0x4c0018]
xor esi, esp
mov dword [esp + 8], esi
mov dword [esp], 4
mov esi, esp
lea edi, [esp + 4]
push esi
push edx
push edi
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp]
xor ecx, 4
or ecx, eax
mov eax, dword [esp + 4]
xor eax, 4
or eax, ecx
sete bl
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0046c560
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
ret