joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431120
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x408
mov eax, dword [0x50302c]
xor eax, esp
mov dword [esp + 0x404], eax
mov ecx, 1
call fcn.004311d0
cmp eax, 0xffffffff
je 0x4311a9
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 0x4311a2
mov eax, dword [esp]
test eax, eax
je 0x4311a2
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 0x4311a2
mov eax, dword [esp]
test eax, eax
jne 0x431180
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.0049e0f0
add esp, 0x408
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4311d0
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 [0x50302c]
xor eax, esp
mov dword [esp + 0x210], eax
push 0
push str.SoftwareSimonTathamPuTTY
push 0x80000001
push 0
push 0
call fcn.00439070
add esp, 0x14
test eax, eax
je 0x431247
mov ebx, eax
push str.RandSeedFile
push eax
call fcn.004392a0
add esp, 8
mov edi, eax
push ebx
call fcn.00439140
add esp, 4
test edi, edi
je 0x431247
mov eax, esp
mov ecx, edi
mov edx, esi
push eax
call fcn.00431870
add esp, 4
mov ebx, eax
push edi
call fcn.004362e0
add esp, 4
test bl, bl
jne 0x4313fd
cmp byte [0x5049a8], 0
je 0x43125f
mov ecx, dword [0x5049b0]
test ecx, ecx
jne 0x43129c
jmp 0x43132d
push str.shell32.dll
call fcn.00438ec0
add esp, 4
mov dword [0x5049ac], eax
test eax, eax
je 0x431285
push str.SHGetFolderPathA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
jmp 0x431287
xor ecx, ecx
mov dword [0x5049b0], ecx
mov byte [0x5049a8], 1
test ecx, ecx
je 0x43132d
lea ebp, [esp + 0x10b]
push ebp
push 0
push 0
push 0x1c
push 0
call ecx
test eax, eax
js 0x4312e6
push 0
push str.PUTTY.RND
push ebp
call fcn.00435600
add esp, 0xc
mov edi, eax
mov eax, esp
mov ecx, edi
mov edx, esi
push eax
call fcn.00431870
add esp, 4
mov ebx, eax
push edi
call fcn.004362e0
add esp, 4
test bl, bl
jne 0x4313fd
push ebp
push 0
push 0
push 0x1a
push 0
call dword [0x5049b0]
test eax, eax
js 0x43132d
push 0
push str.PUTTY.RND
push ebp
call fcn.00435600
add esp, 0xc
mov edi, eax
mov eax, esp
mov ecx, edi
mov edx, esi
push eax
call fcn.00431870
add esp, 4
mov ebx, eax
push edi
call fcn.004362e0
add esp, 4
test bl, bl
jne 0x4313fd
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 0x431366
mov byte [esp + 0x10b], 0
cmp edi, 0x103
ja 0x4313b3
cmp eax, 0x103
ja 0x4313b3
test eax, eax
je 0x4313b3
push 0
push str.PUTTY.RND
push ebx
lea ebp, [esp + 0x117]
push ebp
call fcn.00435600
add esp, 0x10
mov edi, eax
mov eax, esp
mov ecx, edi
mov edx, esi
push eax
call fcn.00431870
add esp, 4
mov ebx, eax
push edi
call fcn.004362e0
add esp, 4
test bl, bl
jne 0x4313fd
jmp 0x4313ba
lea ebp, [esp + 0x10b]
push 0x104
push ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp eax, 0x104
jae 0x431402
push 0
push str.PUTTY.RND
push ebp
call fcn.00435600
add esp, 0xc
mov edi, eax
mov eax, esp
mov ecx, edi
mov edx, esi
push eax
call fcn.00431870
add esp, 4
mov ebx, eax
push edi
call fcn.004362e0
add esp, 4
test bl, bl
je 0x431402
mov esi, dword [esp]
jmp 0x431407
mov esi, 0xffffffff
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0049e0f0
mov eax, esi
add esp, 0x214
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x431430
Capabilities:
Write file on windows

Disassembly:
push esi
sub esp, 8
mov eax, dword [0x50302c]
xor eax, esp
mov dword [esp + 4], eax
mov ecx, 2
call fcn.004311d0
cmp eax, 0xffffffff
je 0x43146b
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.0049e0f0
add esp, 8
pop esi
ret

Function at 0x431870
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 0x4318bb
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 0x4318f7
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4318ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4318ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043a050
add esp, 4
push eax
push esi
push str.Unable_to_delete__s:__s
call fcn.00406550
add esp, 0xc
mov dword [edi], 0xffffffff
xor eax, eax
pop esi
pop edi
pop ebx
ret
Function at 0x4389d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [0x50302c]
xor eax, esp
mov dword [esp + 0x10], eax
push 0
push 0x1c
push 1
call fcn.00436250
add esp, 0xc
mov edi, eax
lea ebx, [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [edi], eax
lea ecx, [edi + 0xc]
lea edx, [edi + 8]
lea esi, [esp + 0xc]
push ecx
push edx
push esi
push 1
push eax
call fcn.00466530
add esp, 0x14
mov edx, dword [esp + 0xc]
mov dword [edi + 4], edx
mov dword [edi + 0x10], 0
lea esi, [edi + 0x18]
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
xor eax, eax
mov ecx, 0
cmp edx, 2
jb 0x438b0c
mov dword [esp + 4], esi
mov esi, 1
mov dword [esp], ebx
mov eax, dword [edi + 8]
mov ebp, dword [eax + esi*4]
push 0
push 0x14
push 1
call fcn.00436250
add esp, 0xc
mov ebx, eax
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax + 0xc], 0xffffffff
add eax, 0x10
mov dword [esp + 8], eax
mov eax, dword [esp]
mov dword [ebx + 0x10], eax
push 0
push 1
push dword [edi + 0x14]
push 4
push dword [esp + 0x14]
push dword [edi + 0x10]
call fcn.004362f0
add esp, 0x18
mov dword [edi + 0x10], eax
mov ecx, dword [edi + 0x14]
lea edx, [ecx + 1]
mov dword [edi + 0x14], edx
mov edx, dword [esp + 8]
mov dword [eax + ecx*4], edx
push ebp
call fcn.00466860
add esp, 4
mov dword [ebx], eax
push 0x4f31a8
push ebp
push 0xfde9
call fcn.00435960
add esp, 0xc
mov dword [ebx + 4], eax
push 0x4f31a8
push ebp
push 0
call fcn.00435960
add esp, 0xc
mov dword [ebx + 8], eax
lea eax, [esi - 1]
mov dword [ebx + 0xc], eax
add esi, 1
cmp esi, dword [edi + 4]
jb 0x438a50
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
mov ebx, dword [esp]
mov esi, dword [esp + 4]
push 0
push 1
push ecx
push 4
push esi
push eax
call fcn.004362f0
add esp, 0x18
mov dword [edi + 0x10], eax
mov ecx, dword [edi + 0x14]
lea edx, [ecx + 1]
mov dword [edi + 0x14], edx
mov dword [eax + ecx*4], 0
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0049e0f0
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x438ce0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x2c
mov eax, dword [0x50302c]
xor eax, esp
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], 0x438da0
mov eax, dword [0x503bd0]
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], str.PuTTYTimerWindow
mov eax, esp
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0
push dword [0x503bd0]
push 0
push 0
push 0x64
push 0x64
push 0x80000000
push 0x80000000
push 0xcf0000
push str.PuTTY:_hidden_timing_window
push str.PuTTYTimerWindow
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x5050b8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0049e0f0
add esp, 0x2c
ret
Function at 0x439160
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x50302c]
xor eax, esp
mov dword [esp + 4], eax
mov dword [esp], 0x105
mov ebx, 0x105
push 0
push 1
push 0x105
call fcn.00436250
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 0x4391ce
push 0
push 1
push dword [esp + 8]
push 1
push edi
push esi
call fcn.004362f0
add esp, 0x18
mov esi, eax
mov ebx, dword [esp]
jmp 0x4391a0
test eax, eax
je 0x4391dd
push esi
call fcn.004362e0
add esp, 4
xor esi, esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0049e0f0
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x439200
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 [0x50302c]
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.0049e0f0
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
ret

Function at 0x439260
Capabilities:
Set registry value

Disassembly:
push ebx
push eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [0x50302c]
xor edx, esp
mov dword [esp], edx
lea edx, [esp + 0x14]
push 4
push edx
push 4
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete bl
mov ecx, dword [esp]
xor ecx, esp
call fcn.0049e0f0
mov eax, ebx
add esp, 4
pop ebx
ret

Function at 0x4392a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [esp + 0x20]
mov eax, dword [0x50302c]
xor eax, esp
mov dword [esp + 8], eax
mov ebx, esp
lea eax, [esp + 4]
push ebx
push 0
push eax
push 0
push dword [esp + 0x34]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor esi, esi
test eax, eax
jne 0x43933f
cmp dword [esp + 4], 1
jne 0x43933f
mov ebp, dword [esp]
add ebp, 1
push 0
push 1
push ebp
call fcn.00436250
add esp, 0xc
mov ecx, edi
mov edi, eax
push ebx
push eax
lea eax, [esp + 0xc]
push eax
push 0
push dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x439336
cmp dword [esp + 4], 1
jne 0x439336
mov eax, dword [esp]
cmp eax, ebp
jb 0x43932e
push 0x6c
push str._home_simon_mem_.build_workdirs_bob_qvbm9mtj_putty_windows_utils_registry.c
push str.size___allocsize
call fcn.004ad8b3
add esp, 0xc
mov eax, dword [esp]
mov byte [edi + eax], 0
mov esi, edi
jmp 0x43933f
push edi
call fcn.004362e0
add esp, 4
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0049e0f0
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x439360
Capabilities:
Set registry value

Disassembly:
push ebx
push edi
push esi
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
push ebx
call fcn.004b1830
add esp, 4
add eax, 1
push eax
push ebx
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete al
pop esi
pop edi
pop ebx
ret

Function at 0x4393a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x50302c]
xor eax, esp
mov dword [esp + 8], eax
mov ebp, esp
lea ebx, [esp + 4]
push ebp
push 0
push ebx
push 0
push dword [esp + 0x34]
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor esi, esi
test eax, eax
jne 0x43944c
cmp dword [esp + 4], 7
jne 0x43944c
call fcn.00436810
mov edi, eax
mov eax, dword [esp]
add eax, 2
push eax
push edi
call fcn.00436730
add esp, 8
push ebp
push eax
push ebx
push 0
push dword [esp + 0x34]
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x439443
cmp dword [esp + 4], 7
jne 0x439443
push dword [esp]
push edi
call fcn.00436770
add esp, 8
nop
nop
nop
nop
nop
nop
push 0
push edi
call fcn.004367e0
add esp, 8
test al, al
jne 0x439420
mov eax, edi
add eax, 0xc
push 0
push eax
call fcn.00435a20
add esp, 8
mov esi, edi
jmp 0x43944c
push edi
call fcn.004368d0
add esp, 4
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0049e0f0
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x439470
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 8]
add ecx, 1
push ecx
push dword [eax]
push 7
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete al
ret
Function at 0x439880
Capabilities:
Link many functions at runtime

Disassembly:
cmp byte [0x5050cc], 1
jne 0x43988f
mov al, byte [0x5050cd]
ret
mov byte [0x5050cc], 1
push str.advapi32.dll
call fcn.00438ec0
add esp, 4
mov dword [0x5050d0], eax
test eax, eax
je 0x4399d7
push str.GetSecurityInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5050d4], eax
test eax, eax
je 0x4399d7
mov eax, dword [0x5050d0]
test eax, eax
je 0x43999d
push str.SetSecurityInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5050d8], eax
test eax, eax
je 0x4399d7
mov eax, dword [0x5050d0]
test eax, eax
je 0x4399a9
push str.OpenProcessToken
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5050dc], eax
test eax, eax
je 0x4399d7
mov eax, dword [0x5050d0]
test eax, eax
je 0x4399b5
push str.GetTokenInformation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5050e0], eax
test eax, eax
je 0x4399d7
mov eax, dword [0x5050d0]
test eax, eax
je 0x4399c1
push 0x4e2ccd
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5050e4], eax
test eax, eax
je 0x4399d7
mov eax, dword [0x5050d0]
test eax, eax
je 0x4399cd
push 0x4e2fdd
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov dword [0x5050e8], eax
xor eax, eax
test ecx, ecx
je 0x4399d9
mov ecx, dword [0x5050d0]
test ecx, ecx
je 0x439991
push str.SetEntriesInAclA
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5050ec], eax
test eax, eax
setne al
jmp 0x4399d9
mov dword [0x5050d8], 0
jmp 0x4399d7
mov dword [0x5050dc], 0
jmp 0x4399d7
mov dword [0x5050e0], 0
jmp 0x4399d7
mov dword [0x5050e4], 0
jmp 0x4399d7
mov dword [0x5050e8], 0
xor eax, eax
mov byte [0x5050cd], al
ret

Function at 0x43c300
Capabilities:
Link many functions at runtime

Disassembly:
push edi
push esi
cmp byte [0x505178], 0
jne 0x43c3ee
push str.winspool.drv
call fcn.00438ec0
add esp, 4
mov esi, eax
push str.spoolss.dll
call fcn.00438ec0
add esp, 4
test esi, esi
je 0x43c39a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumPrintersA
push esi
call edi
mov dword [0x505174], eax
push str.OpenPrinterA
push esi
call edi
mov dword [0x505158], eax
push str.ClosePrinter
push esi
call edi
mov dword [0x50516c], eax
push str.StartDocPrinterA
push esi
call edi
mov dword [0x50515c], eax
push str.EndDocPrinter
push esi
call edi
mov dword [0x505168], eax
push str.StartPagePrinter
push esi
call edi
mov dword [0x505160], eax
push str.EndPagePrinter
push esi
call edi
mov dword [0x505164], eax
push str.WritePrinter
push esi
call edi
jmp 0x43c3e2
mov dword [0x505174], 0
mov dword [0x505158], 0
mov dword [0x50516c], 0
mov dword [0x50515c], 0
mov dword [0x505168], 0
mov dword [0x505160], 0
mov dword [0x505164], 0
xor eax, eax
mov dword [0x505170], eax
mov byte [0x505178], 1
pop esi
pop edi
ret
Function at 0x447840
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20c
mov esi, dword [esp + 0x224]
mov edi, dword [esp + 0x220]
mov al, byte [esp + 0x228]
mov ecx, dword [0x50302c]
xor ecx, esp
mov dword [esp + 0x208], ecx
xor ebp, ebp
mov ebx, 0
test al, al
je 0x447892
mov eax, esp
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xffffffff
cmp eax, 0x103
setb bl
mov al, byte [esp + 0x22c]
mov dword [esi], 0x58
test edi, edi
je 0x4478b6
lea ecx, [edi + 0x104]
xor ebp, ebp
cmp word [edi + 0x104], 0
cmovne ebp, ecx
mov dword [esi + 0x2c], ebp
test al, al
je 0x4478c6
push esi
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
jmp 0x4478cd
push esi
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
mov esi, eax
test edi, edi
je 0x4478f6
add edi, 0x104
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefc
cmp eax, 0xfffffefc
ja 0x4478f6
mov word [edi], 0
test bl, bl
je 0x447903
mov eax, esp
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test esi, esi
setne bl
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0049e0f0
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x44b2c0
Capabilities:
Parse credit card information

Disassembly:
mov ecx, dword [esp + 0xc]
lea eax, [ecx - 1]
cmp eax, 0x15
jae 0x44b2da
mov edx, 0x18007f
bt edx, eax
jb 0x44b436
mov edx, dword [esp + 4]
cmp edx, 1
jne 0x44b2ee
mov eax, str.SSH2_MSG_KEXDH_INIT
cmp ecx, 0x1e
jne 0x44b2ee
ret
cmp edx, 1
jne 0x44b2fd
mov eax, str.SSH2_MSG_KEXDH_REPLY
cmp ecx, 0x1f
je 0x44b2ed
cmp edx, 2
jne 0x44b30c
mov eax, str.SSH2_MSG_KEX_DH_GEX_REQUEST_OLD
cmp ecx, 0x1e
je 0x44b2ed
cmp edx, 2
jne 0x44b31b
mov eax, str.SSH2_MSG_KEX_DH_GEX_REQUEST
cmp ecx, 0x22
je 0x44b2ed
cmp edx, 2
jne 0x44b32a
mov eax, str.SSH2_MSG_KEX_DH_GEX_GROUP
cmp ecx, 0x1f
je 0x44b2ed
cmp edx, 2
jne 0x44b339
mov eax, str.SSH2_MSG_KEX_DH_GEX_INIT
cmp ecx, 0x20
je 0x44b2ed
cmp edx, 2
jne 0x44b348
mov eax, str.SSH2_MSG_KEX_DH_GEX_REPLY
cmp ecx, 0x21
je 0x44b2ed
cmp edx, 4
jne 0x44b357
mov eax, str.SSH2_MSG_KEXGSS_INIT
cmp ecx, 0x1e
je 0x44b2ed
cmp edx, 4
jne 0x44b366
mov eax, str.SSH2_MSG_KEXGSS_CONTINUE
cmp ecx, 0x1f
je 0x44b2ed
cmp edx, 4
jne 0x44b379
mov eax, str.SSH2_MSG_KEXGSS_COMPLETE
cmp ecx, 0x20
je 0x44b2ed
cmp edx, 4
jne 0x44b38c
mov eax, str.SSH2_MSG_KEXGSS_HOSTKEY
cmp ecx, 0x21
je 0x44b2ed
cmp edx, 4
jne 0x44b39f
mov eax, str.SSH2_MSG_KEXGSS_ERROR
cmp ecx, 0x22
je 0x44b2ed
cmp edx, 4
jne 0x44b3b2
mov eax, str.SSH2_MSG_KEXGSS_GROUPREQ
cmp ecx, 0x28
je 0x44b2ed
cmp edx, 4
jne 0x44b3c5
mov eax, str.SSH2_MSG_KEXGSS_GROUP
cmp ecx, 0x29
je 0x44b2ed
cmp edx, 5
jne 0x44b3d8
mov eax, str.SSH2_MSG_KEXRSA_PUBKEY
cmp ecx, 0x1e
je 0x44b2ed
cmp edx, 5
jne 0x44b3eb
mov eax, str.SSH2_MSG_KEXRSA_SECRET
cmp ecx, 0x1f
je 0x44b2ed
cmp edx, 5
jne 0x44b3fe
mov eax, str.SSH2_MSG_KEXRSA_DONE
cmp ecx, 0x20
je 0x44b2ed
cmp edx, 3
jne 0x44b411
mov eax, str.SSH2_MSG_KEX_ECDH_INIT
cmp ecx, 0x1e
je 0x44b2ed
cmp edx, 3
jne 0x44b424
mov eax, str.SSH2_MSG_KEX_ECDH_REPLY
cmp ecx, 0x1f
je 0x44b2ed
lea eax, [ecx - 0x32]
cmp eax, 4
jae 0x44b440
lea eax, [eax*4 + 0x4d3e98]
mov eax, dword [eax]
ret
lea eax, [eax*4 + 0x4d3e44]
mov eax, dword [eax]
ret
mov edx, dword [esp + 8]
cmp edx, 1
jne 0x44b457
mov eax, str.SSH2_MSG_USERAUTH_PK_OK
cmp ecx, 0x3c
je 0x44b2ed
cmp edx, 2
jne 0x44b46a
mov eax, str.SSH2_MSG_USERAUTH_PASSWD_CHANGEREQ
cmp ecx, 0x3c
je 0x44b2ed
cmp edx, 4
jne 0x44b47d
mov eax, str.SSH2_MSG_USERAUTH_INFO_REQUEST
cmp ecx, 0x3c
je 0x44b2ed
cmp edx, 4
jne 0x44b490
mov eax, str.SSH2_MSG_USERAUTH_INFO_RESPONSE
cmp ecx, 0x3d
je 0x44b2ed
cmp edx, 3
jne 0x44b4a3
mov eax, str.SSH2_MSG_USERAUTH_GSSAPI_RESPONSE
cmp ecx, 0x3c
je 0x44b2ed
cmp edx, 3
jne 0x44b4b6
mov eax, str.SSH2_MSG_USERAUTH_GSSAPI_TOKEN
cmp ecx, 0x3d
je 0x44b2ed
cmp edx, 3
jne 0x44b4c9
mov eax, str.SSH2_MSG_USERAUTH_GSSAPI_EXCHANGE_COMPLETE
cmp ecx, 0x3f
je 0x44b2ed
cmp edx, 3
jne 0x44b4dc
mov eax, str.SSH2_MSG_USERAUTH_GSSAPI_ERROR
cmp ecx, 0x40
je 0x44b2ed
cmp edx, 3
jne 0x44b4ef
mov eax, str.SSH2_MSG_USERAUTH_GSSAPI_ERRTOK
cmp ecx, 0x41
je 0x44b2ed
cmp edx, 3
jne 0x44b502
mov eax, str.SSH2_MSG_USERAUTH_GSSAPI_MIC
cmp ecx, 0x42
je 0x44b2ed
add ecx, 0xffffffb0
mov eax, str.unknown
cmp ecx, 0x15
jae 0x44b2ed
lea eax, [ecx*4 + 0x4d3ea8]
mov eax, dword [eax]
ret
Function at 0x4610a0
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
push 0
push 0x4e9697
push dword [esp + 0x20]
call fcn.00447c20
add esp, 0xc
test eax, eax
je 0x461116
mov esi, eax
mov ebp, dword [esp + 0x14]
mov dword [ebp + 4], 0
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x46112d
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.004afc70
add esp, 0x10
mov edi, eax
push esi
call fcn.004af5f0
add esp, 4
test eax, eax
jne 0x46111d
mov eax, dword [ebp + 4]
test edi, edi
je 0x461124
add eax, edi
mov dword [ebp + 4], eax
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x4610e0
jmp 0x461127
mov ebx, 2
jmp 0x461167
mov ebx, 2
jmp 0x46115e
mov ecx, dword [ebp + 8]
xor ebx, ebx
cmp eax, ecx
jne 0x461141
push esi
call fcn.004af985
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.004af49b
add esp, 4
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x464fe0
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 [0x50302c]
xor eax, esp
mov dword [esp + 4], eax
push 0
push 0x102c
push 1
call fcn.00436250
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 [0x503050], 0xffffffff
jne 0x465093
mov dword [0x5051e0], 0x5051e0
mov dword [0x5051e4], 0x5051e0
push 0x5051e8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x503050], eax
push 0
push 0x465780
push eax
call fcn.00425ea0
add esp, 0xc
mov eax, esp
push eax
push 0
push edi
push 0x4650d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4650b3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 0x17], 1
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0049e0f0
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4652c0
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 [0x50302c]
xor eax, esp
mov dword [esp + 4], eax
push 0
push 0x102c
push 1
call fcn.00436250
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.0043bc40
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 [0x503050], 0xffffffff
jne 0x465383
mov dword [0x5051e0], 0x5051e0
mov dword [0x5051e4], 0x5051e0
push 0x5051e8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x503050], eax
push 0
push 0x465780
push eax
call fcn.00425ea0
add esp, 0xc
mov eax, esp
push eax
push 0
push edi
push 0x4653c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4653a3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0049e0f0
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret