joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102aa20
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [0x104453c]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.msvcrt.dll_wcscpy]
push dword [ebp + 0xc]
mov esi, dword [sym.imp.msvcrt.dll_wcscat]
push edi
call esi
push dword [0x1044540]
push edi
call esi
push dword [0x1044544]
push edi
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0x20
lea eax, [ebp - 4]
push eax
mov ebx, 0x20006
push ebx
push 0
push edi
mov edi, 0x80000001
push edi
call esi
test eax, eax
jne 0x102aad8
mov eax, dword [0x1044548]
add eax, 2
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 4]
mov dword [ebp + 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0xc], 0
jne 0x102aad8
push 0x5c
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_wcsrchr]
and word [eax], 0
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
push ebx
push 0
push dword [ebp + 8]
push edi
call esi
test eax, eax
jne 0x102aad8
mov eax, dword [0x1044544]
add eax, 2
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x102aae4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x1044924]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push 1
lea ecx, [ebp - 0x408]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
call fcn.0102ef38
mov ecx, eax
call fcn.0102ece5
lea eax, [ebp - 0x404]
push eax
xor esi, esi
push esi
push esi
push dword [ebp + 0xc]
push esi
call dword [0x10018a8]
test eax, eax
jne 0x102ac27
cmp word [ebp - 0x404], si
je 0x102ac27
lea eax, [ebp - 0x404]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
cmp word [ebp + eax*2 - 0x406], 0x5c
mov esi, dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
mov edi, 0x1002540
je 0x102ab6e
lea eax, [ebp - 0x404]
push edi
push eax
call esi
pop ecx
pop ecx
mov eax, dword [ebx]
xor ebx, ebx
cmp dword [eax - 8], ebx
je 0x102ab8e
push eax
lea eax, [ebp - 0x404]
push eax
call esi
lea eax, [ebp - 0x404]
push edi
push eax
call esi
add esp, 0x10
push 0xe72
lea ecx, [ebp - 0x40c]
call fcn.01023477
push dword [eax]
lea eax, [ebp - 0x404]
push eax
call esi
pop ecx
pop ecx
lea ecx, [ebp - 0x40c]
call sub.MFC42u.dll_CString::CString
lea eax, [ebp - 0x404]
push eax
xor esi, esi
call dword [0x100119c]
cmp eax, 0xffffffff
pop edi
je 0x102abcc
inc esi
cmp dword [ebp - 0x408], ebx
je 0x102ac16
cmp esi, ebx
jne 0x102ac27
push ebx
lea eax, [ebp - 0x450]
push eax
push ebx
push 0x1007a90
call fcn.010364de
test al, al
je 0x102ac27
mov esi, dword [ebp - 0x44c]
push ebx
lea eax, [ebp - 0x404]
push eax
push esi
call dword [0x1001138]
push esi
push 4
call dword [fcn.010011a8]
push eax
call dword [fcn.010011a0]
jmp 0x102ac27
cmp esi, ebx
je 0x102ac27
lea eax, [ebp - 0x404]
push eax
call dword [0x1001134]
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.01034945
leave
ret 0xc
Function at 0x102af5d
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov eax, 0x1039cfb
call fcn.01035f78
sub esp, 0x54
push ebx
xor ebx, ebx
cmp dword [0x1044e14], ebx
jne 0x102afa6
push ebx
lea eax, [ebp - 0x60]
push eax
push 0x1001e7c
push 0x1005a0c
call fcn.010364de
test al, al
je 0x102afa6
mov eax, dword [ebp - 0x5c]
add eax, 2
push 0x22
push eax
mov dword [0x1044e14], eax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
mov word [eax], bx
lea eax, [ebp - 0x18]
push eax
push 0x1008b74
push 3
push ebx
push 0x1008b54
call dword [0x1001c28]
test eax, eax
jge 0x102afc8
xor eax, eax
jmp 0x102b10a
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push esi
lea edx, [ebp - 0x14]
push edx
push 0x1008b44
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jl 0x102b0f9
lea ecx, [ebp - 0x10]
call sub.MFC42u.dll_CString::CString_3
cmp dword [ebp + 0x20], ebx
mov dword [ebp - 4], ebx
je 0x102b001
push 0x1007b30
lea ecx, [ebp - 0x10]
call sub.MFC42u.dll_CString::operator_1
push 0x1005a34
lea ecx, [ebp - 0x10]
call sub.MFC42u.dll_CString::operator_1
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.01034ce6
cmp dword [ebp + 0x10], ebx
je 0x102b051
push 0x1007b2c
lea ecx, [ebp + 0x20]
call sub.MFC42u.dll_CString::CString_4
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.01034ce6
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], bl
call sub.MFC42u.dll_CString::CString
push dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
call sub.MFC42u.dll_CString::operator_1
mov eax, dword [ebp - 0x14]
push dword [0x1044e14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp dword [eax - 8], ebx
je 0x102b083
push dword [ebp + 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x44]
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
cmp dword [eax - 8], ebx
je 0x102b097
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x24]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push 0x1008b84
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jl 0x102b0e4
push 0x1007b20
push dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
call sub.MFC42u.dll_operator_4
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push ebx
push dword [ebp + 0x10]
mov byte [ebp - 4], 2
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], bl
call sub.MFC42u.dll_CString::CString
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.dll_CString::CString
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
cmp esi, ebx
setge al
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret 0x1c
Function at 0x102b533
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1044924]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
push 1
lea eax, [ebp - 0x418]
push eax
push 0x1044e04
call fcn.0102ef38
mov ecx, eax
call fcn.0102ece5
push dword [0x104453c]
mov edi, dword [sym.imp.msvcrt.dll_wcscpy]
and dword [ebp - 0x410], 0
lea eax, [ebp - 0x404]
push eax
call edi
push dword [0x104457c]
mov esi, dword [sym.imp.msvcrt.dll_wcscat]
lea eax, [ebp - 0x404]
push eax
call esi
push dword [0x1044540]
lea eax, [ebp - 0x404]
push eax
call esi
push dword [0x1044544]
lea eax, [ebp - 0x404]
push eax
call esi
push dword [0x1044548]
lea eax, [ebp - 0x404]
push eax
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0x28
lea eax, [ebp - 0x408]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x404]
push eax
push 0x80000001
call ebx
test eax, eax
jne 0x102b6f3
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0
push 0
push dword [ebp - 0x408]
mov dword [ebp - 0x40c], 0x3f8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x408]
mov dword [ebp - 0x414], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x414], 0
jne 0x102b6f3
push dword [0x104453c]
lea eax, [ebp - 0x404]
push eax
call edi
push dword [0x1044578]
lea eax, [ebp - 0x404]
push eax
call esi
push dword [0x1044540]
lea eax, [ebp - 0x404]
push eax
call esi
push dword [0x1044544]
lea eax, [ebp - 0x404]
push eax
call esi
push dword [0x1044548]
lea eax, [ebp - 0x404]
push eax
call esi
add esp, 0x28
lea eax, [ebp - 0x408]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x404]
push eax
push 0x80000001
call ebx
test eax, eax
jne 0x102b6f3
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0
push 0
push dword [ebp - 0x408]
mov dword [ebp - 0x40c], 0x3f8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x408]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x102b6f3
mov dword [ebp - 0x410], 1
pop edi
xor eax, eax
cmp dword [ebp - 0x418], eax
pop esi
pop ebx
je 0x102b72e
cmp dword [ebp - 0x410], eax
jne 0x102b75a
push dword [0x104457c]
lea eax, [ebp - 0x404]
push eax
call fcn.0102a775
push dword [0x1044578]
lea eax, [ebp - 0x404]
push eax
call fcn.0102a775
jmp 0x102b75a
cmp dword [ebp - 0x410], eax
je 0x102b75a
push dword [0x104457c]
lea eax, [ebp - 0x404]
push eax
call fcn.0102aa20
push dword [0x1044578]
lea eax, [ebp - 0x404]
push eax
call fcn.0102aa20
mov ecx, dword [ebp - 4]
call fcn.01034945
leave
ret
Function at 0x102cd9d
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov ebx, ecx
xor esi, esi
cmp dword [ebx + 0xa4], esi
push edi
mov dword [ebp - 0x18], ebx
je 0x102cdd6
lea edi, [ebx + 0x98]
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call sub.MFC42u.dll_CStringList::RemoveHead
lea ecx, [ebp - 0x10]
call sub.MFC42u.dll_CString::CString
cmp dword [ebx + 0xa4], esi
jne 0x102cdbb
push 4
push esi
push esi
call dword [entry0]
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x102ce96
mov edi, 0x2800
push edi
push esi
call dword [fcn.010011a8]
push eax
call dword [fcn.010011a4]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x102ce8d
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
push dword [ebp - 8]
push 3
push 0x13f
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
cmp eax, esi
mov dword [ebp - 0x1c], eax
jne 0x102ce41
call dword [0x1001100]
cmp eax, 0xea
jne 0x102ce7c
cmp dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
jbe 0x102ce77
mov esi, dword [ebp - 8]
add ebx, 0x98
push dword [esi]
call dword [sym.imp.msvcrt.dll__wcslwr]
pop ecx
push dword [esi]
mov ecx, ebx
call sub.MFC42u.dll_CStringList::AddTail
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add esi, 0x24
cmp eax, dword [ebp - 0x10]
jb 0x102ce52
mov ebx, dword [ebp - 0x18]
xor esi, esi
cmp dword [ebp - 0x1c], esi
je 0x102ce0d
push dword [ebp - 8]
push esi
call dword [fcn.010011a8]
push eax
call dword [fcn.010011a0]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x102fda3
Capabilities:
Enumerate gui resources

Disassembly:
push esi
mov esi, ecx
inc dword [esi + 0x1c]
lea eax, [esi + 0x24]
push eax
push 0xffffffffffffffff
push 0
push 0
call fcn.010363d6
push esi
push 0x102fa3d
call dword [fcn.01001ab4]
mov ecx, esi
pop esi
jmp fcn.0102fb53

Function at 0x1032c9a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [fcn.01001950]
push 0
push 0
mov esi, ecx
push 0x476
push dword [esi + 0x20]
call edi
mov ebx, eax
push ebx
call dword [0x1001ad4]
test eax, eax
je 0x1032d07
push ebx
call dword [0x100196c]
test eax, eax
je 0x1032d07
mov eax, dword [esi + 0x20]
mov ecx, esi
mov dword [ebp - 8], 0xffffff37
mov dword [ebp - 0x10], eax
call sub.MFC42u.dll_CWnd::GetDlgCtrlID
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push ecx
push eax
push 0x4e
push ebx
mov dword [ebp - 0xc], eax
call edi
test eax, eax
je 0x1032cfe
xor eax, eax
jmp 0x1032d0a
push 0
push ebx
call dword [fcn.010019ac]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405f20
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
sub esp, 0x20
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x500034]
xor ecx, esp
mov dword [esp + 0x1c], ecx
cmp byte [eax], 0x26
jne 0x405fc2
add eax, 1
mov ecx, esp
lea edx, [esp + 4]
push ecx
push edx
push 0x4de18d
push eax
call fcn.00405ff0
add esp, 0x10
cmp eax, 2
jne 0x405fc2
push dword [esp]
push 0
push 0
push 4
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test eax, eax
je 0x405fbb
mov eax, dword [esp + 0x30]
mov ecx, dword [esp]
mov dword [esp + 8], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
lea ecx, [esp + 8]
mov dword [esp + 0x18], ecx
push ecx
push eax
call fcn.00438490
add esp, 8
test al, al
je 0x405fd7
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
setne bl
jmp 0x405fc4
xor ebx, ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0049e340
mov eax, ebx
add esp, 0x20
pop esi
pop ebx
ret
push str.Serialised_configuration_data_was_invalid
call fcn.00405390
int3

Function at 0x406150
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
push ebx
push edi
push esi
cmp dword [esp + 0x14], 2
jne 0x4061fd
mov ebp, dword [esp + 0x1c]
lea eax, [ebp + 1]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
je 0x4061fd
mov esi, eax
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4061fd
mov edi, eax
mov bl, byte [esp + 0x20]
push ebp
push dword [esp + 0x1c]
push eax
call fcn.004a0b20
add esp, 0xc
mov byte [edi + ebp], 0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test bl, bl
jne 0x4061bf
push 0
push 1
push 0x8002
push dword [0x500004]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [0x500004]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x406202
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]
test bl, bl
jne 0x4061fd
push 0
push 0
push 0x8002
push dword [0x500004]
call dword [sym.imp.USER32.dll_SendMessageA]
pop esi
pop edi
pop ebx
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test bl, bl
je 0x4061e8
jmp 0x4061fd
Function at 0x40a960
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
sub esp, 0x104
mov eax, dword [0x500034]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, esp
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x40a995
cmp byte [esp + 0x12], 0
js 0x40a999
mov bl, byte [esp + 0xa5]
shr bl, 7
jmp 0x40a99b
xor ebx, ebx
jmp 0x40a99b
mov bl, 1
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.0049e340
mov eax, ebx
add esp, 0x104
pop ebx
ret
Function at 0x40b280
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
cmp byte [0x501e34], 0
je 0x40b28c
pop esi
ret
mov byte [0x501e34], 1
push str.hhctrl.ocx
call fcn.0043baa0
add esp, 4
mov esi, eax
test eax, eax
je 0x40b2e3
push str.HtmlHelpA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x501e38], eax
test eax, eax
je 0x40b2ed
cmp byte [0x501e49], 0
jne 0x40b34a
mov byte [0x501e49], 1
cmp byte [0x501e2c], 1
jne 0x40b2f6
mov eax, dword [0x501e30]
test eax, eax
jne 0x40b318
jmp 0x40b34a
mov dword [0x501e38], 0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
ret
mov byte [0x501e2c], 1
push 0x7d0
push 0x7d0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [0x501e30], eax
test eax, eax
je 0x40b34a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [0x501e4c], eax
test eax, eax
je 0x40b34a
push dword [0x501e30]
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40b34a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x501e44], eax
jmp 0x40b34f
mov eax, dword [0x501e44]
test eax, eax
jne 0x40b28a
push 0
push str.SoftwareSimonTathamPuTTY64CHMPath
push 0x80000002
call fcn.0043c040
add esp, 0xc
test eax, eax
jne 0x40b38b
push 0
push str.SoftwareSimonTathamPuTTYCHMPath
push 0x80000002
call fcn.0043c040
add esp, 0xc
test eax, eax
je 0x40b28a
mov dword [0x501e3c], eax
mov byte [0x501e40], 0
pop esi
ret

Function at 0x40b3a0
Capabilities:
Delete file

Disassembly:
mov eax, dword [0x501e3c]
test eax, eax
je 0x40b3d3
cmp byte [0x501e40], 1
jne 0x40b3d5
push 0
push 0x12
push 0
push 0
call dword [0x501e38]
push dword [0x501e3c]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x501e3c]
jmp 0x40b3d5
xor eax, eax
push eax
call fcn.00439350
add esp, 4
mov dword [0x501e3c], 0
mov byte [0x501e40], 0
ret
Function at 0x40b400
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x114
mov eax, dword [0x500034]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [0x501e3c]
test eax, eax
jne 0x40b55a
cmp dword [0x501e44], 0
je 0x40b55a
xor esi, esi
cmp byte [0x501e50], 0
jne 0x40b54c
mov byte [0x501e50], 1
lea edi, [esp + 0xa]
push edi
push 0x106
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40b54c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebp, eax
push 0
push 0
push eax
push edi
push str._sputty__lu__llu.chm
call fcn.00438880
add esp, 0x14
mov esi, eax
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x40b506
mov dword [esp], ebp
xor ebp, ebp
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x40b54c
push esi
call fcn.00439350
add esp, 4
add ebp, 1
adc edi, 0
push edi
push ebp
push dword [esp + 8]
lea eax, [esp + 0x16]
push eax
push str._sputty__lu__llu.chm
call fcn.00438880
add esp, 0x14
mov esi, eax
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x40b4b0
mov ebx, eax
xor edi, edi
mov ebp, dword [0x501e44]
mov eax, dword [0x501e4c]
sub eax, edi
jbe 0x40b5c4
mov dword [esp + 4], 0
lea ecx, [edi + ebp]
push 0
lea edx, [esp + 8]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, dword [esp + 4]
test eax, eax
jne 0x40b510
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40b5d3
push esi
call fcn.00439350
add esp, 4
mov eax, dword [0x501e3c]
test eax, eax
je 0x40b5ab
mov ecx, dword [esp + 0x12c]
mov edi, dword [esp + 0x128]
test ecx, ecx
je 0x40b598
push ecx
push eax
push str._s::__s.html_main
call fcn.00438880
add esp, 0xc
mov esi, eax
push 0
push 0
push eax
push edi
call dword [0x501e38]
push esi
call fcn.00439350
add esp, 4
jmp 0x40b5a4
push 0
push 0
push eax
push edi
call dword [0x501e38]
mov byte [0x501e48], 1
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0049e340
add esp, 0x114
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [0x501e3c], esi
mov byte [0x501e40], 1
xor esi, esi
push esi
call fcn.00439350
add esp, 4
cmp ebx, 0xffffffff
je 0x40b555
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40b555
Function at 0x40f9b0
Capabilities:
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
xor edx, edx
test eax, eax
cmovs eax, edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
test eax, eax
cmovns edx, eax
mov eax, dword [ecx + 0x128]
mov ebx, dword [ecx + 0x12c]
cmp ebx, edi
lea ebx, [ebx - 1]
cmovg ebx, edi
mov dword [esp + 8], ebx
lea edi, [eax - 1]
cmp eax, esi
cmovg edi, esi
mov bl, byte [esp + 0x48]
mov byte [esp + 3], bl
mov dword [esp + 0x1c], edi
cmp edx, edi
jg 0x40fb35
mov ebx, dword [esp + 4]
shr ebx, 1
mov esi, dword [esp + 8]
mov edi, esi
shr edi, 0x1f
add edi, esi
sar edi, 1
add edi, 1
cmp ebx, edi
mov dword [esp + 0x18], edi
mov esi, edi
mov edi, ebx
mov dword [esp + 0xc], ebx
cmovg esi, ebx
cmp edx, eax
jge 0x40fb35
add esi, 1
mov eax, dword [esp + 0xc]
lea eax, [eax + eax*4]
lea eax, [eax*4 + 4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 8]
add eax, 1
mov edi, dword [esp + 4]
lea edi, [edi + edi*4]
lea edi, [edi*4 + 4]
mov dword [esp + 0x10], edi
nop
nop
nop
nop
mov edi, dword [ecx + 0x18]
mov edi, dword [edi + edx*4]
test byte [edi], 3
je 0x40fad0
mov edi, dword [esp + 0x18]
cmp dword [esp + 0xc], edi
jg 0x40fb20
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0xc]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp edi, dword [ecx + 0x12c]
jge 0x40fb20
mov ebx, dword [ecx + 0x18]
mov ebx, dword [ebx + edx*4]
mov ebx, dword [ebx + 0x14]
or dword [ebx + ebp], 0x3ffff
add edi, 1
add ebp, 0x14
cmp esi, edi
jne 0x40faa0
jmp 0x40fb20
mov edi, dword [esp + 8]
cmp dword [esp + 4], edi
jg 0x40fb20
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp edi, dword [ecx + 0x12c]
jge 0x40fb20
mov ebx, dword [ecx + 0x18]
mov ebx, dword [ebx + edx*4]
mov ebx, dword [ebx + 0x14]
or dword [ebx + ebp], 0x3ffff
add edi, 1
add ebp, 0x14
cmp eax, edi
jne 0x40faf0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp edx, dword [esp + 0x1c]
je 0x40fb35
add edx, 1
cmp edx, dword [ecx + 0x128]
jl 0x40fa70
cmp byte [esp + 3], 0
je 0x40fb48
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.0040b8d0
cmp byte [ecx + 0x1079], 0
je 0x40fb56
add esp, 0x20
jmp 0x40fb6b
mov byte [ecx + 0x1079], 1
push ecx
push 0x417aa0
call fcn.00425940
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x415b10
Capabilities:
Contain obfuscated stackstrings
Parse credit card information
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x112c], 2
jl 0x415b6f
mov eax, dword [esp + 0xc]
cmp dword [esi + 0x1124], eax
jne 0x415b6f
mov dword [esi + 0xe28], 0
mov dword [esi + 0xe34], 0
mov dword [esi + 0xe38], 0
mov dword [esi + 0xe3c], 0
mov dword [esi + 0xe40], 0
push esi
call fcn.0040b640
add esp, 4
mov ecx, esi
xor edx, edx
pop esi
jmp fcn.00412080
pop esi
ret

Function at 0x41d6e0
Capabilities:
Hide graphical window

Disassembly:
push esi
push 0
push 0x41d720
push 0
push 0x6f
push dword [0x500be8]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov esi, eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
pop esi
ret

Function at 0x41e240
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x501e6c]
test eax, eax
jne 0x41e275
push 0
push 0x41e280
push dword [esp + 0xc]
push 0x6e
push dword [0x500be8]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [0x501e6c], eax
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x501e6c]
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
ret