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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov ebx, dword [esp + 0x2c]
mov eax, dword [0x4bf018]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x14]
test eax, eax
jle 0x403dcd
xor esi, esi
nop
mov eax, dword [ebx + 0x1c]
push 0x4b338a
push dword [eax + esi*4]
call fcn.00417b50
add esp, 8
add esi, 1
mov eax, dword [ebx + 0x14]
cmp esi, eax
jl 0x403db0
test eax, eax
je 0x403dfe
cmp byte [0x4bfc58], 0
je 0x403e05
push str.Cannot_answer_interactive_prompts_in_batch_mode
mov esi, dword [esp + 0x2c]
push esi
call fcn.00416e00
add esp, 8
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0046c040
mov eax, esi
jmp 0x4040a0
mov edi, 0xffffffff
jmp 0x403e18
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp eax, 0xffffffff
je 0x4040d2
mov al, byte [ebx + 8]
test al, al
je 0x403e25
cmp dword [ebx + 4], 0
jne 0x403e35
cmp dword [ebx + 0xc], 0
jne 0x403e35
cmp dword [ebx + 0x14], 0
je 0x4040a8
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esp], eax
cmp eax, 0xffffffff
je 0x4040bc
mov al, byte [ebx + 8]
test al, al
je 0x403ea4
mov eax, dword [esp + 0x2c]
mov esi, dword [eax + 4]
test esi, esi
je 0x403ea4
push esi
call fcn.00480220
add esp, 4
mov ebp, eax
lea ebx, [esp + 0xc]
push 0
push ebx
push eax
push esi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 1
push 0x4b3306
push ebp
push esi
call fcn.00417cf0
add esp, 0x14
test al, al
jne 0x403ea4
push 0
push ebx
push 1
push 0x4b3306
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x2c]
mov esi, dword [eax + 0xc]
test esi, esi
je 0x403ef8
push esi
invalid
invalid

Function at 0x405cc0
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 [0x4bf018]
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.00480220
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 0x405d3a
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 0x405d20
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.00405bb0
add esp, 8
test al, al
je 0x405d73
push 0x20
push esi
call edi
add esp, 8
push 0x20
push esi
call fcn.0042efd0
add esp, 8
push edi
call fcn.004176a0
add esp, 4
mov ecx, dword [esp + 0x26c]
xor ecx, esp
call fcn.0046c040
add esp, 0x270
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x405da0
Capabilities:
Get memory capacity

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [0x4bf018]
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.00416ad0
add esp, 0xc
call dword [sym.imp.USER32.dll_GetCapture]
mov dword [esp + 0x2c], eax
push 4
push esi
push 0xa
call fcn.00416ad0
add esp, 0xc
call dword [sym.imp.USER32.dll_GetClipboardOwner]
mov dword [esp + 0x2c], eax
push 4
push esi
push 0xb
call fcn.00416ad0
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.00416ad0
add esp, 0xc
lea esi, [esp + 0x20]
push esi
call dword [sym.imp.USER32.dll_GetCursorPos]
push 8
push esi
push 0xd
call fcn.00416ad0
add esp, 0xc
mov esi, esp
push esi
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push 0x20
push esi
push 6
call fcn.00416ad0
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.00416ad0
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.00416ad0
add esp, 0xc
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0046c040
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40c000
Capabilities:
Get session user name

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x3a
push esi
call fcn.004120a0
add esp, 8
cmp byte [eax], 0
je 0x40c020
push eax
call fcn.0041c440
add esp, 4
pop esi
ret
push 0x3b
push esi
call fcn.00411ea0
add esp, 8
test al, al
je 0x40c035
pop esi
jmp fcn.0042fbb0
xor eax, eax
pop esi
ret
Function at 0x4140e0
Capabilities:
Link many functions at runtime

Disassembly:
cmp byte [0x4c03b4], 1
jne 0x4140ef
mov al, byte [0x4c03b5]
ret
mov byte [0x4c03b4], 1
push str.advapi32.dll
call fcn.0042ef90
add esp, 4
mov dword [0x4c03b8], eax
test eax, eax
je 0x414237
push str.GetSecurityInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c03bc], eax
test eax, eax
je 0x414237
mov eax, dword [0x4c03b8]
test eax, eax
je 0x4141fd
push str.SetSecurityInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c03c0], eax
test eax, eax
je 0x414237
mov eax, dword [0x4c03b8]
test eax, eax
je 0x414209
push str.OpenProcessToken
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c03c4], eax
test eax, eax
je 0x414237
mov eax, dword [0x4c03b8]
test eax, eax
je 0x414215
push str.GetTokenInformation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c03c8], eax
test eax, eax
je 0x414237
mov eax, dword [0x4c03b8]
test eax, eax
je 0x414221
push 0x4a6ebf
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c03cc], eax
test eax, eax
je 0x414237
mov eax, dword [0x4c03b8]
test eax, eax
je 0x41422d
push 0x4a707b
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov dword [0x4c03d0], eax
xor eax, eax
test ecx, ecx
je 0x414239
mov ecx, dword [0x4c03b8]
test ecx, ecx
je 0x4141f1
push str.SetEntriesInAclA
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c03d4], eax
test eax, eax
setne al
jmp 0x414239
mov dword [0x4c03c0], 0
jmp 0x414237
mov dword [0x4c03c4], 0
jmp 0x414237
mov dword [0x4c03c8], 0
jmp 0x414237
mov dword [0x4c03cc], 0
jmp 0x414237
mov dword [0x4c03d0], 0
xor eax, eax
mov byte [0x4c03b5], al
ret

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

Disassembly:
push ebx
push edi
push esi
cmp dword [0x4c0400], 0
jne 0x414aeb
push 0x414c00
call fcn.00415550
add esp, 4
mov dword [0x4c0400], eax
push 0x414c60
call fcn.00415550
add esp, 4
mov dword [0x4c0404], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4c03fc], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4c03fc], eax
push 0
push dword [0x4c0400]
call fcn.00415ce0
add esp, 8
test eax, eax
je 0x414b99
mov esi, eax
mov edi, dword [esp + 0x14]
jmp 0x414b4f
push 0
push dword [0x4c0400]
call fcn.004162f0
add esp, 8
push esi
call fcn.00413460
add esp, 4
push 0
push dword [0x4c0400]
call fcn.00415ce0
add esp, 8
mov esi, eax
test eax, eax
je 0x414b99
push 0
push dword [esi + 4]
push dword [0x4c0404]
call fcn.004162b0
add esp, 0xc
test eax, eax
je 0x414b20
mov ecx, dword [0x4c03fc]
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 0x414b9d
push 0
push dword [0x4c0400]
call fcn.004162f0
add esp, 8
push dword [esi + 8]
push dword [esi + 4]
call dword [esi]
jmp 0x414b2d
xor eax, eax
jmp 0x414ba1
mov dword [edi], eax
mov al, 1
pop esi
pop edi
pop ebx
ret
Function at 0x4176a0
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x408
mov eax, dword [0x4bf018]
xor eax, esp
mov dword [esp + 0x404], eax
mov ecx, 1
call fcn.00417750
cmp eax, 0xffffffff
je 0x417729
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 0x417722
mov eax, dword [esp]
test eax, eax
je 0x417722
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 0x417722
mov eax, dword [esp]
test eax, eax
jne 0x417700
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.0046c040
add esp, 0x408
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x417750
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 [0x4bf018]
xor eax, esp
mov dword [esp + 0x210], eax
push 0
push str.SoftwareSimonTathamPuTTY
push 0x80000001
push 0
call fcn.004308b0
add esp, 0x10
test eax, eax
je 0x4177c5
mov ebx, eax
push str.RandSeedFile
push eax
call fcn.00430aa0
add esp, 8
mov edi, eax
push ebx
call fcn.00430990
add esp, 4
test edi, edi
je 0x4177c5
mov eax, esp
mov ecx, edi
mov edx, esi
push eax
call fcn.004179f0
add esp, 4
mov ebx, eax
push edi
call fcn.00413460
add esp, 4
test bl, bl
jne 0x41797b
cmp byte [0x4c0428], 0
je 0x4177dd
mov ecx, dword [0x4c0430]
test ecx, ecx
jne 0x41781a
jmp 0x4178ab
push str.shell32.dll
call fcn.0042ef90
add esp, 4
mov dword [0x4c042c], eax
test eax, eax
je 0x417803
push str.SHGetFolderPathA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
jmp 0x417805
xor ecx, ecx
mov dword [0x4c0430], ecx
mov byte [0x4c0428], 1
test ecx, ecx
je 0x4178ab
lea ebp, [esp + 0x10b]
push ebp
push 0
push 0
push 0x1c
push 0
call ecx
test eax, eax
js 0x417864
push 0
push str.PUTTY.RND
push ebp
call fcn.0042fcd0
add esp, 0xc
mov edi, eax
mov eax, esp
mov ecx, edi
mov edx, esi
push eax
call fcn.004179f0
add esp, 4
mov ebx, eax
push edi
call fcn.00413460
add esp, 4
test bl, bl
jne 0x41797b
push ebp
push 0
push 0
push 0x1a
push 0
call dword [0x4c0430]
test eax, eax
js 0x4178ab
push 0
push str.PUTTY.RND
push ebp
call fcn.0042fcd0
add esp, 0xc
mov edi, eax
mov eax, esp
mov ecx, edi
mov edx, esi
push eax
call fcn.004179f0
add esp, 4
mov ebx, eax
push edi
call fcn.00413460
add esp, 4
test bl, bl
jne 0x41797b
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 0x4178e4
mov byte [esp + 0x10b], 0
cmp edi, 0x103
ja 0x417931
cmp eax, 0x103
ja 0x417931
test eax, eax
je 0x417931
push 0
push str.PUTTY.RND
push ebx
lea ebp, [esp + 0x117]
push ebp
call fcn.0042fcd0
add esp, 0x10
mov edi, eax
mov eax, esp
mov ecx, edi
mov edx, esi
push eax
call fcn.004179f0
add esp, 4
mov ebx, eax
push edi
call fcn.00413460
add esp, 4
test bl, bl
jne 0x41797b
jmp 0x417938
lea ebp, [esp + 0x10b]
push 0x104
push ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp eax, 0x104
jae 0x417980
push 0
push str.PUTTY.RND
push ebp
call fcn.0042fcd0
add esp, 0xc
mov edi, eax
mov eax, esp
mov ecx, edi
mov edx, esi
push eax
call fcn.004179f0
add esp, 4
mov ebx, eax
push edi
call fcn.00413460
add esp, 4
test bl, bl
je 0x417980
mov esi, dword [esp]
jmp 0x417985
mov esi, 0xffffffff
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0046c040
mov eax, esi
add esp, 0x214
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4179a0
Capabilities:
Write file on windows

Disassembly:
push esi
sub esp, 8
mov eax, dword [0x4bf018]
xor eax, esp
mov dword [esp + 4], eax
mov ecx, 2
call fcn.00417750
cmp eax, 0xffffffff
je 0x4179db
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.0046c040
add esp, 8
pop esi
ret

Function at 0x4179f0
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 0x417a3b
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 0x417a77
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x417a6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x417a6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042f440
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 0x41b520
Capabilities:
Parse credit card information

Disassembly:
mov ecx, dword [esp + 0xc]
lea eax, [ecx - 1]
cmp eax, 0x15
jae 0x41b53a
mov edx, 0x18007f
bt edx, eax
jb 0x41b696
mov edx, dword [esp + 4]
cmp edx, 1
jne 0x41b54e
mov eax, str.SSH2_MSG_KEXDH_INIT
cmp ecx, 0x1e
jne 0x41b54e
ret
cmp edx, 1
jne 0x41b55d
mov eax, str.SSH2_MSG_KEXDH_REPLY
cmp ecx, 0x1f
je 0x41b54d
cmp edx, 2
jne 0x41b56c
mov eax, str.SSH2_MSG_KEX_DH_GEX_REQUEST_OLD
cmp ecx, 0x1e
je 0x41b54d
cmp edx, 2
jne 0x41b57b
mov eax, str.SSH2_MSG_KEX_DH_GEX_REQUEST
cmp ecx, 0x22
je 0x41b54d
cmp edx, 2
jne 0x41b58a
mov eax, str.SSH2_MSG_KEX_DH_GEX_GROUP
cmp ecx, 0x1f
je 0x41b54d
cmp edx, 2
jne 0x41b599
mov eax, str.SSH2_MSG_KEX_DH_GEX_INIT
cmp ecx, 0x20
je 0x41b54d
cmp edx, 2
jne 0x41b5a8
mov eax, str.SSH2_MSG_KEX_DH_GEX_REPLY
cmp ecx, 0x21
je 0x41b54d
cmp edx, 4
jne 0x41b5b7
mov eax, str.SSH2_MSG_KEXGSS_INIT
cmp ecx, 0x1e
je 0x41b54d
cmp edx, 4
jne 0x41b5c6
mov eax, str.SSH2_MSG_KEXGSS_CONTINUE
cmp ecx, 0x1f
je 0x41b54d
cmp edx, 4
jne 0x41b5d9
mov eax, str.SSH2_MSG_KEXGSS_COMPLETE
cmp ecx, 0x20
je 0x41b54d
cmp edx, 4
jne 0x41b5ec
mov eax, str.SSH2_MSG_KEXGSS_HOSTKEY
cmp ecx, 0x21
je 0x41b54d
cmp edx, 4
jne 0x41b5ff
mov eax, str.SSH2_MSG_KEXGSS_ERROR
cmp ecx, 0x22
je 0x41b54d
cmp edx, 4
jne 0x41b612
mov eax, str.SSH2_MSG_KEXGSS_GROUPREQ
cmp ecx, 0x28
je 0x41b54d
cmp edx, 4
jne 0x41b625
mov eax, str.SSH2_MSG_KEXGSS_GROUP
cmp ecx, 0x29
je 0x41b54d
cmp edx, 5
jne 0x41b638
mov eax, str.SSH2_MSG_KEXRSA_PUBKEY
cmp ecx, 0x1e
je 0x41b54d
cmp edx, 5
jne 0x41b64b
mov eax, str.SSH2_MSG_KEXRSA_SECRET
cmp ecx, 0x1f
je 0x41b54d
cmp edx, 5
jne 0x41b65e
mov eax, str.SSH2_MSG_KEXRSA_DONE
cmp ecx, 0x20
je 0x41b54d
cmp edx, 3
jne 0x41b671
mov eax, str.SSH2_MSG_KEX_ECDH_INIT
cmp ecx, 0x1e
je 0x41b54d
cmp edx, 3
jne 0x41b684
mov eax, str.SSH2_MSG_KEX_ECDH_REPLY
cmp ecx, 0x1f
je 0x41b54d
lea eax, [ecx - 0x32]
cmp eax, 4
jae 0x41b6a0
lea eax, [eax*4 + 0x49838c]
mov eax, dword [eax]
ret
lea eax, [eax*4 + 0x498338]
mov eax, dword [eax]
ret
mov edx, dword [esp + 8]
cmp edx, 1
jne 0x41b6b7
mov eax, str.SSH2_MSG_USERAUTH_PK_OK
cmp ecx, 0x3c
je 0x41b54d
cmp edx, 2
jne 0x41b6ca
mov eax, str.SSH2_MSG_USERAUTH_PASSWD_CHANGEREQ
cmp ecx, 0x3c
je 0x41b54d
cmp edx, 4
jne 0x41b6dd
mov eax, str.SSH2_MSG_USERAUTH_INFO_REQUEST
cmp ecx, 0x3c
je 0x41b54d
cmp edx, 4
jne 0x41b6f0
mov eax, str.SSH2_MSG_USERAUTH_INFO_RESPONSE
cmp ecx, 0x3d
je 0x41b54d
cmp edx, 3
jne 0x41b703
mov eax, str.SSH2_MSG_USERAUTH_GSSAPI_RESPONSE
cmp ecx, 0x3c
je 0x41b54d
cmp edx, 3
jne 0x41b716
mov eax, str.SSH2_MSG_USERAUTH_GSSAPI_TOKEN
cmp ecx, 0x3d
je 0x41b54d
cmp edx, 3
jne 0x41b729
mov eax, str.SSH2_MSG_USERAUTH_GSSAPI_EXCHANGE_COMPLETE
cmp ecx, 0x3f
je 0x41b54d
cmp edx, 3
jne 0x41b73c
mov eax, str.SSH2_MSG_USERAUTH_GSSAPI_ERROR
cmp ecx, 0x40
je 0x41b54d
cmp edx, 3
jne 0x41b74f
mov eax, str.SSH2_MSG_USERAUTH_GSSAPI_ERRTOK
cmp ecx, 0x41
je 0x41b54d
cmp edx, 3
jne 0x41b762
mov eax, str.SSH2_MSG_USERAUTH_GSSAPI_MIC
cmp ecx, 0x42
je 0x41b54d
add ecx, 0xffffffb0
mov eax, str.unknown
cmp ecx, 0x15
jae 0x41b54d
lea eax, [ecx*4 + 0x49839c]
mov eax, dword [eax]
ret
Function at 0x42fbb0
Capabilities:
Get session user name

Disassembly:
push edi
push esi
sub esp, 8
mov eax, dword [0x4bf018]
xor eax, esp
mov dword [esp + 4], eax
cmp byte [0x4c0494], 0
je 0x42fbd8
mov ecx, dword [0x4c0490]
test ecx, ecx
jne 0x42fc1b
jmp 0x42fc68
push str.secur32.dll
call fcn.0042ef90
add esp, 4
mov esi, eax
push str.sspicli.dll
call fcn.0042ef90
add esp, 4
test esi, esi
je 0x42fc08
push str.GetUserNameExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
jmp 0x42fc0a
xor ecx, ecx
mov dword [0x4c0490], ecx
mov byte [0x4c0494], 1
test ecx, ecx
je 0x42fc68
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.004133d0
add esp, 0xc
mov esi, eax
push edi
push eax
push 8
call dword [0x4c0490]
test al, al
je 0x42fc5f
push 0x40
push esi
call fcn.0046eed0
add esp, 8
test eax, eax
je 0x42fcb5
mov byte [eax], 0
jmp 0x42fcb5
push esi
call fcn.00413460
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 0x42fc83
mov eax, dword [esp]
jmp 0x42fc8f
mov dword [esp], 0x100
mov eax, 0x100
push 0
push 1
push eax
call fcn.004133d0
add esp, 0xc
mov esi, eax
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x42fcb5
push esi
call fcn.00413460
add esp, 4
xor esi, esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0046c040
mov eax, esi
add esp, 8
pop esi
pop edi
ret

Function at 0x4309a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x4bf018]
xor eax, esp
mov dword [esp + 4], eax
mov dword [esp], 0x105
mov ebx, 0x105
push 0
push 1
push 0x105
call fcn.004133d0
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 0x430a0e
push 0
push 1
push dword [esp + 8]
push 1
push edi
push esi
call fcn.00413470
add esp, 0x18
mov esi, eax
mov ebx, dword [esp]
jmp 0x4309e0
test eax, eax
je 0x430a1d
push esi
call fcn.00413460
add esp, 4
xor esi, esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0046c040
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x430a40
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 [0x4bf018]
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.0046c040
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
ret
Function at 0x430aa0
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 [0x4bf018]
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 0x430b3f
cmp dword [esp + 4], 1
jne 0x430b3f
mov ebp, dword [esp]
add ebp, 1
push 0
push 1
push ebp
call fcn.004133d0
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 0x430b36
cmp dword [esp + 4], 1
jne 0x430b36
mov eax, dword [esp]
cmp eax, ebp
jb 0x430b2e
push 0x6c
push str._home_simon_mem_.build_workdirs_bob_jmc5owxa_putty_windows_utils_registry.c
push str.size___allocsize
call fcn.0047c544
add esp, 0xc
mov eax, dword [esp]
mov byte [edi + eax], 0
mov esi, edi
jmp 0x430b3f
push edi
call fcn.00413460
add esp, 4
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0046c040
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x430b60
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.00480220
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 0x430ba0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x4bf018]
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 0x430c4c
cmp dword [esp + 4], 7
jne 0x430c4c
call fcn.00413790
mov edi, eax
mov eax, dword [esp]
add eax, 2
push eax
push edi
call fcn.004136b0
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 0x430c43
cmp dword [esp + 4], 7
jne 0x430c43
push dword [esp]
push edi
call fcn.004136f0
add esp, 8
nop
nop
nop
nop
nop
nop
push 0
push edi
call fcn.00413760
add esp, 8
test al, al
jne 0x430c20
mov eax, edi
add eax, 0xc
push 0
push eax
call fcn.00412bd0
add esp, 8
mov esi, edi
jmp 0x430c4c
push edi
call fcn.00413850
add esp, 4
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0046c040
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x432da0
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 0x432dcd
push 0xa6
push str._home_simon_mem_.build_workdirs_bob_jmc5owxa_putty_crypto_mpint.c
push str.x0__nw__x1__nw
call fcn.0047c544
add esp, 0xc
and ebx, 1
neg ebx
mov dword [esp], ebx
cmp dword [edi], 0
je 0x432e04
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 0x432de0
add esp, 4
pop esi
pop edi
pop ebx
ret