joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1012d784
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x1012d793
pop dword [ebp - 0x1c]
mov eax, 0xb77bd9f7
sub eax, 0xa7690264
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x5dc59
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0xbdc3e4de
sub ecx, 0xbdc3a93e
xor esi, esi
add esi, eax
mov edi, 0xc45cb356
sub edi, 0xb43e6356
add edi, dword [ebp - 0x1c]
mov edx, 0x7e3d62cb
add edx, 0xb9e3c9b2
xor dword [ebp - 0x18], edi
mov ebx, dword [edi]
xor dword [ebp - 0x14], ebx
xor ebx, edx
xor dword [ebp - 0x10], 0x5d552287
mov dword [esi], ebx
xor dword [ebp - 4], edi
add esi, 4
add edi, 4
loop 0x1012d7ef
add eax, 0x87586c2d
sub eax, 0x87578ada
mov ebx, eax
add eax, 0x34f8c231
sub eax, 0x34f8c22c
mov ecx, 0x78542395
sub ecx, 0x68542395
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x10130f00
Capabilities:
Delete file

Disassembly:
mov edi, edi
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
mov esi, ecx
push dword [esi + 0x30]
mov dword [esi], 0x10011170
call edi
push dword [esi + 0x34]
call edi
mov eax, dword [esi + 0x38]
cmp eax, 0xffffffff
je 0x10130f27
push eax
call edi
mov al, byte [esi + 0x48]
test al, 0x40
je 0x10130f3d
test al, al
js 0x10130f4a
push dword [esi + 0xc]
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x10130f4a
test al, al
js 0x10130f4a
push dword [esi + 0xc]
call dword [sym.imp.kernel32.dll_DeleteFileA]
push dword [esi + 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [esi + 8]
pop ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esi + 0x20]
call fcn.1013011f
pop edi
lea ecx, [esi + 0x10]
pop esi
jmp fcn.1012f617
Function at 0x10131c30
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
mov dword [esi], 0x100110ac
call fcn.1012d784
lea ecx, [esi + 0x30]
call fcn.1012d784
push dword [esi + 0x3c]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [esi + 0x48]
xor ebx, ebx
inc ebx
test ecx, ecx
je 0x10131c62
push ebx
call fcn.1012d784
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x10131c6f
push ebx
call fcn.1012d784
mov eax, dword [esi + 0x50]
test eax, eax
je 0x10131cb1
push edi
xor edi, edi
cmp dword [eax], edi
jbe 0x10131ca3
mov eax, dword [esi + 0x50]
mov eax, dword [eax + 0xc]
push dword [eax + edi*4]
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov eax, dword [esi + 0x50]
mov eax, dword [eax + 0xc]
push dword [eax + edi*4]
call sub.msvcrt.dll_free
mov eax, dword [esi + 0x50]
inc edi
pop ecx
cmp edi, dword [eax]
jb 0x10131c7d
mov ecx, dword [esi + 0x50]
pop edi
test ecx, ecx
je 0x10131cb1
push ebx
call fcn.1012d784
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x10131cbe
push ebx
call fcn.1012d784
cmp byte [esi + 0x5c], 0
je 0x10131cd3
cmp dword [esi + 0x44], ebx
jne 0x10131ce0
push dword [esi + 0x2c]
call fcn.1012d784
jmp 0x10131ce0
cmp dword [esi + 0x44], ebx
jne 0x10131ce0
push dword [esi + 0x2c]
call fcn.1012d784
push dword [esi + 0x2c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [esi + 8]
pop ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esi + 0x30]
call fcn.10132df4
lea ecx, [esi + 0x1c]
call fcn.101300df
lea ecx, [esi + 0xc]
pop esi
pop ebx
jmp fcn.1012f617

Function at 0x1013bb10
Capabilities:
Check for software breakpoints

Disassembly:
cmp dword [esi + 0x14], 0xcc
je 0x1013bb35
mov eax, dword [esi + 0x1a8]
mov ecx, dword [eax]
push esi
call ecx
mov dword [esi + 0x8c], 0
mov dword [esi + 0x14], 0xcc
mov edx, dword [esi + 0x1a8]
cmp dword [edx + 8], 0
je 0x1013bb5d
mov eax, dword [esi]
mov dword [eax + 0x14], 0x30
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
mov eax, dword [esi + 0x1a8]
cmp dword [eax + 8], 0
jne 0x1013bb41
xor ecx, ecx
cmp dword [esi + 0x44], ecx
mov eax, 1
setne cl
add ecx, 0xcd
mov dword [esi + 0x14], ecx
ret
Function at 0x10009220
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x1000922f
pop dword [ebp - 8]
mov eax, 0x1000922f
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xe37946f1
sub dword [ebp - 0x18], 0x952701a6
mov dword [ebp - 0x14], 0x6c3eece4
sub dword [ebp - 0x14], 0x3a0ba09f
mov dword [ebp - 0x10], 0x7a48cb79
add dword [ebp - 0x10], 0xd20378b5
mov dword [ebp - 0xc], 0xd28c19d9
sub dword [ebp - 0xc], 0xd28c19d9
lea eax, [ebp - 0x18]
push eax
mov eax, 0x5692ed59
sub eax, 0x46924ca1
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0xc7f60c99
sub dword [ebp - 0x18], 0x5383a343
mov dword [ebp - 0x14], 0x961b7d7b
sub dword [ebp - 0x14], 0x54af1c06
mov dword [ebp - 0x10], 0xf30af155
sub dword [ebp - 0x10], 0x8f9b84e9
mov dword [ebp - 0xc], 0xb88f06cf
sub dword [ebp - 0xc], 0xb88f06cf
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x347c4
push 0
call eax
mov ecx, 0x39e5
xor ebx, ebx
add ebx, eax
mov edx, 0xfe31a4a9
sub edx, 0xee3072a9
add edx, dword [ebp - 8]
mov edi, 0x50e71fe7
add edi, 0x89329b5a
add dword [ebp - 4], esi
mov esi, dword [edx]
add dword [ebp - 4], 0x67f61fbe
add esi, edi
mov dword [ebx], esi
xor dword [ebp - 4], eax
add ebx, 4
add edx, 0x74348b31
add edx, 0x8bcb74d3
loop 0x10009343
add eax, 0xfb53fb11
sub eax, 0xfb5320aa
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x405090
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x6d
push ebx
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
push 0
push 0x6e
push ebx
call edi
push eax
call esi
push 5
push 0x6b
push ebx
call edi
push eax
call esi
push 5
push 0x6c
push ebx
call edi
push eax
call esi
push str.Public_key_for_pasting_into_authorized_keys_file:
push 0x6b
push ebx
call fcn.00432d40
push dword [ebp + 0xc]
call fcn.00409620
add esp, 0x10
mov esi, eax
push esi
push 0x6c
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push esi
call fcn.00434320
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x405100
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, dword [eax]
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov eax, dword [eax]
cmp byte [eax + 0x6c], 0
je 0x40515f
push 5
push 0x6d
push ebx
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
push 5
push 0x6e
push ebx
call edi
push eax
call esi
push 0
push 0x6b
push ebx
call edi
push eax
call esi
push 0
push 0x6c
push ebx
call edi
push eax
call esi
push str.This_public_key_contains_an_OpenSSH_certificate.
push 0x6d
push ebx
call fcn.00432d40
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
ret
push 0
push 0x6d
push ebx
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
push 0
push 0x6e
push ebx
call edi
push eax
call esi
push 5
push 0x6b
push ebx
call edi
push eax
call esi
push 5
push 0x6c
push ebx
call edi
push eax
call esi
push str.Public_key_for_pasting_into_OpenSSH_authorized_keys_file:
push 0x6b
push ebx
call fcn.00432d40
push dword [ebp + 0xc]
call fcn.00409bc0
add esp, 0x10
mov esi, eax
push esi
push 0x6c
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push esi
call fcn.00434320
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x405b90
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x4747c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x12c]
push 0x107
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x12c]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x405bc1
mov ax, word [0x45cf2c]
mov word [ecx], ax
mov al, byte [0x45cf2e]
mov byte [ecx + 2], al
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405c27
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
nop
lea eax, [ebp - 0x26c]
push 0x140
push eax
call edi
add esp, 8
lea eax, [ebp - 0x26c]
push eax
push esi
call ebx
test eax, eax
jne 0x405c00
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x274]
push 4
push eax
call edi
add esp, 8
cmp dword [0x475300], 0
jne 0x405cc4
push str.advapi32.dll
call fcn.00434ff0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 4
mov dword [0x475300], eax
test eax, eax
je 0x405c77
push str.CryptAcquireContextA
push eax
call esi
mov ecx, eax
mov eax, dword [0x475300]
jmp 0x405c79
xor ecx, ecx
mov dword [0x4752f4], ecx
test eax, eax
je 0x405c94
push str.CryptGenRandom
push eax
call esi
mov ecx, eax
mov eax, dword [0x475300]
jmp 0x405c96
xor ecx, ecx
mov dword [0x4752f8], ecx
test eax, eax
je 0x405cb8
push str.CryptReleaseContext
push eax
call esi
cmp dword [0x475300], 0
mov dword [0x4752fc], eax
je 0x405d34
jmp 0x405cc9
mov dword [0x4752fc], 0
jmp 0x405d34
mov eax, dword [0x4752fc]
mov ecx, dword [0x4752f4]
test ecx, ecx
je 0x405d34
cmp dword [0x4752f8], 0
je 0x405d34
test eax, eax
je 0x405d34
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x270]
push eax
call ecx
test eax, eax
je 0x405d34
lea eax, [ebp - 0x24]
push eax
push 0x20
push dword [ebp - 0x270]
call dword [0x4752f8]
push 0
push dword [ebp - 0x270]
mov esi, eax
call dword [0x4752fc]
test esi, esi
je 0x405d34
lea eax, [ebp - 0x24]
push 0x20
push eax
call edi
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.00434d70
add esp, 0x10
push edi
call fcn.00406520
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
call fcn.00437271
mov esp, ebp
pop ebp
ret
Function at 0x405d50
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x4747c0]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push 4
push eax
push 9
call fcn.00409f30
add esp, 0xc
call dword [sym.imp.USER32.dll_GetCapture]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push 4
push eax
push 0xa
call fcn.00409f30
add esp, 0xc
call dword [sym.imp.USER32.dll_GetClipboardOwner]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push 4
push eax
push 0xb
call fcn.00409f30
add esp, 0xc
push 0x1cbf
call dword [sym.imp.USER32.dll_GetQueueStatus]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push 4
push eax
push 0xc
call fcn.00409f30
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push 8
lea eax, [ebp - 0x54]
push eax
push 0xd
call fcn.00409f30
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push 0x20
lea eax, [ebp - 0x44]
push eax
push 6
call fcn.00409f30
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadTimes]
push 0x20
lea eax, [ebp - 0x24]
push eax
push 0xe
call fcn.00409f30
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
push 0x20
lea eax, [ebp - 0x24]
push eax
push 0xf
call fcn.00409f30
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
call fcn.00437271
mov esp, ebp
pop ebp
ret

Function at 0x405fe0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
mov edi, 0x400
push 1
push edi
call fcn.004344b0
mov ebx, dword [ebp + 0x10]
add esp, 0xc
mov esi, eax
push ebx
push edi
push esi
push 0x45d094
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jne 0x40604a
push esi
call fcn.00434320
push 0
add edi, edi
push 1
push edi
call fcn.004344b0
add esp, 0x10
mov esi, eax
push ebx
push edi
push esi
push 0x45d094
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [edi - 1]
cmp eax, ecx
je 0x406018
cmp byte [esi], 0xa
je 0x406056
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
push esi
call fcn.00434320
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x406070
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4747c0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x4797e0], 0
jne 0x4061f9
push esi
push 0x208
push 0x4797e0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push 0x4797e0
call fcn.004384c0
movq xmm0, qword [str.putty.ini]
add esp, 8
test eax, eax
mov esi, 0x4797e0
mov ecx, esi
cmovne ecx, eax
push esi
push 0xa
movq qword [ecx], xmm0
mov ax, word [0x45d038]
mov word [ecx + 8], ax
movzx eax, byte [0x45d03a]
mov byte [ecx + 0xa], al
lea eax, [ebp - 0x10]
push eax
push 0x45b6a9
push str.UseIniFile
push str.Generic
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x10], 0x31
sete cl
mov byte [0x475304], cl
je 0x4061e8
push edi
push str.shell32.dll
call fcn.00434ff0
mov edi, eax
add esp, 4
test edi, edi
je 0x40612e
push str.SHGetFolderPathA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40615c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.shfolder.dll
call fcn.00434ff0
mov edi, eax
add esp, 4
test edi, edi
je 0x4061cc
push str.SHGetFolderPathA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4061cc
push 0x4797e0
push 0
push 0
push 0x1a
push 0
call eax
test eax, eax
js 0x4061cc
dec esi
mov al, byte [esi + 1]
lea esi, [esi + 1]
test al, al
jne 0x406170
mov eax, dword [str.PuTTYputty.ini]
mov dword [esi], eax
mov eax, dword [0x45d084]
mov dword [esi + 4], eax
mov eax, dword [0x45d088]
mov dword [esi + 8], eax
mov eax, dword [0x45d08c]
mov dword [esi + 0xc], eax
mov al, byte [0x45d090]
push 0x4797e0
push 0xa
mov byte [esi + 0x10], al
lea eax, [ebp - 0x10]
push eax
push 0x45b6a9
push str.UseIniFile
push str.Generic
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x10], 0x31
sete byte [0x475304]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [0x475304]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00437271
mov esp, ebp
pop ebp
ret
mov al, cl
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00437271
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, byte [0x475304]
xor ecx, ebp
call fcn.00437271
mov esp, ebp
pop ebp
ret
Function at 0x406520
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x4747c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push 1
call fcn.00406210
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x4065ab
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x408]
push 0
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call edi
test eax, eax
je 0x4065a3
nop dword [eax]
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x4065a3
push eax
lea eax, [ebp - 0x404]
push eax
call ebx
add esp, 8
lea eax, [ebp - 0x408]
push 0
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call edi
test eax, eax
jne 0x406570
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00437271
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x40660c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4065ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4065ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00435050
push eax
push dword [ebp + 8]
push str.Unable_to_delete__s:__s
call fcn.00404f80
add esp, 0x10
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xffffffff
xor al, al
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]
cmp eax, 0xffffffff
mov dword [ecx], eax
setne al
pop ebp
ret

Function at 0x406660
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
call fcn.00406210
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x406690
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406700
Capabilities:
Extract resource via kernel32 functions

Disassembly:
cmp byte [0x47532d], 0
jne 0x406813
push esi
push str.hhctrl.ocx
mov byte [0x47532d], 1
call fcn.00434ff0
mov esi, eax
add esp, 4
test esi, esi
je 0x406801
push str.HtmlHelpA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x47531c], eax
test eax, eax
je 0x40680b
cmp byte [0x47531b], 0
jne 0x4067b9
cmp byte [0x47531a], 0
mov byte [0x47531b], 1
jne 0x40677e
push 0x7d0
push 0x7d0
push 0
mov byte [0x47531a], 1
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [0x475320], eax
jmp 0x406783
mov eax, dword [0x475320]
test eax, eax
je 0x4067b9
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [0x475324], eax
test eax, eax
je 0x4067b9
push dword [0x475320]
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4067b9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x475328], eax
jmp 0x4067be
mov eax, dword [0x475328]
test eax, eax
jne 0x406812
xor esi, esi
nop dword [eax]
nop dword [eax + eax]
push 0
push dword [esi + 0x45d170]
push 0x80000002
call fcn.00435230
add esp, 0xc
test eax, eax
jne 0x4067f3
add esi, 4
cmp esi, 4
jb 0x4067d0
pop esi
ret
mov dword [0x475314], eax
mov byte [0x475318], 0
pop esi
ret
mov dword [0x47531c], 0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
ret
Function at 0x406820
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4747c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x475314]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x120], ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x118], esi
test eax, eax
jne 0x4069e5
cmp dword [0x475328], eax
je 0x406a2d
push edi
xor edi, edi
or ebx, 0xffffffff
cmp byte [0x47532c], al
jne 0x4069c0
lea eax, [ebp - 0x10c]
mov byte [0x47532c], 1
push eax
push 0x106
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4069c0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push edi
push eax
mov dword [ebp - 0x11c], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x10c]
movlpd qword [ebp - 0x114], xmm0
push eax
push str._sputty__lu__llu.chm
call fcn.00432de0
add esp, 0x14
mov edi, eax
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40695a
mov esi, dword [ebp - 0x110]
mov ecx, dword [ebp - 0x114]
mov dword [ebp - 0x110], ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x4069ba
push edi
call fcn.00434320
mov eax, dword [ebp - 0x110]
add eax, 1
mov dword [ebp - 0x110], eax
adc esi, 0
push esi
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x10c]
push eax
push str._sputty__lu__llu.chm
call fcn.00432de0
add esp, 0x18
mov edi, eax
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4068f5
mov eax, dword [0x475324]
xor esi, esi
mov ecx, dword [0x475328]
mov dword [ebp - 0x11c], ecx
test eax, eax
je 0x4069ab
push 0
lea edx, [ebp - 0x110]
mov dword [ebp - 0x110], 0
push edx
sub eax, esi
push eax
lea eax, [esi + ecx]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406a11
add esi, dword [ebp - 0x110]
mov eax, dword [0x475324]
mov ecx, dword [ebp - 0x11c]
cmp esi, eax
jb 0x406971
mov dword [0x475314], edi
xor edi, edi
mov byte [0x475318], 1
mov esi, dword [ebp - 0x118]
push edi
call fcn.00434320
add esp, 4
pop edi
cmp ebx, 0xffffffff
je 0x4069d6
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x475314]
test eax, eax
je 0x406a2d
mov ebx, dword [ebp - 0x120]
test esi, esi
je 0x406a1a
push esi
push eax
push str._s::__s.html_main
call fcn.00432de0
add esp, 0xc
mov esi, eax
push 0
push 0
push esi
push ebx
call dword [0x47531c]
push esi
call fcn.00434320
add esp, 4
jmp 0x406a26
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4069ba
push 0
push 0
push eax
push ebx
call dword [0x47531c]
mov byte [0x475319], 1
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00437271
mov esp, ebp
pop ebp
ret
Function at 0x406a80
Capabilities:
Delete file

Disassembly:
mov eax, dword [0x475314]
test eax, eax
je 0x406ab1
cmp byte [0x475318], 0
je 0x406ab1
push 0
push 0x12
push 0
push 0
call dword [0x47531c]
push dword [0x475314]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x475314]
push eax
call fcn.00434320
add esp, 4
mov dword [0x475314], 0
mov byte [0x475318], 0
ret

Function at 0x407000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov dword [esi + 4], 0
test eax, eax
je 0x407052
xor ecx, ecx
nop dword [eax]
sub eax, ecx
push ebx
push eax
mov eax, dword [esi]
add eax, ecx
push 1
push eax
call fcn.0043d528
push ebx
mov edi, eax
call fcn.0043ce46
add esp, 0x14
test eax, eax
jne 0x407095
test edi, edi
je 0x407052
mov ecx, dword [esi + 4]
add ecx, edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 8]
cmp ecx, eax
jb 0x407020
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, dword [esi + 8]
jne 0x407070
push ebx
call fcn.0043ceae
add esp, 4
mov ecx, 1
cmp eax, 0xffffffff
cmovne edi, ecx
mov ecx, dword [esi]
mov eax, edi
mov edx, dword [esi + 4]
add esi, 0xc
pop edi
mov dword [esi], ecx
mov dword [esi + 8], edx
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 2
pop ebx
pop ebp
ret