joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4012eb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x47db34], 1
mov dword [0x47db38], 1
mov dword [0x47db3c], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40132c
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40134f
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401371
cmp eax, 0x20b
je 0x401396
jmp 0x4013c1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401383
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x4013ae
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, 0
leave
ret

Function at 0x401590
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp], 0x45f004
call sym._pthread_spin_lock
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax]
cmp eax, 0xbab1feed
jne 0x4015bc
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
test eax, eax
jg 0x4015fe
mov dword [esp], 2
mov eax, dword [sym.imp.ucrtbase.dll___acrt_iob_func]
call eax
mov dword [esp + 0x10], 0x26
mov dword [esp + 0xc], str..._.._.._mingw_w64_libraries_winpthreads_src_barrier.c
mov dword [esp + 8], str.___barrier_t__barrier___valid__LIFE_BARRIER______barrier_t__barrier___busy___0_
mov dword [esp + 4], 0x4600d4
mov dword [esp], eax
call sym._fprintf
mov dword [esp], 1
call sym._exit
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [eax + 4]
sub edx, 1
mov dword [eax + 4], edx
mov dword [esp], 0x45f004
call sym._pthread_spin_unlock
mov eax, dword [ebp + 0xc]
leave
ret

Function at 0x403da4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp], 0x45f00c
call sym._pthread_spin_lock
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax]
cmp eax, 0xbab1f0ed
jne 0x403dd0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
test eax, eax
jg 0x403e12
mov dword [esp], 2
mov eax, dword [sym.imp.ucrtbase.dll___acrt_iob_func]
call eax
mov dword [esp + 0x10], 0x28
mov dword [esp + 0xc], str..._.._.._mingw_w64_libraries_winpthreads_src_rwlock.c
mov dword [esp + 8], str.___rwlock_t__rwl___valid__LIFE_RWLOCK______rwlock_t__rwl___busy___0_
mov dword [esp + 4], str.Assertion_failed:___s___file__s__line__d_n
mov dword [esp], eax
call sym._fprintf
mov dword [esp], 1
call sym._exit
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [eax + 4]
sub edx, 1
mov dword [eax + 4], edx
mov dword [esp], 0x45f00c
call sym._pthread_spin_unlock
mov eax, dword [ebp + 0xc]
leave
ret
Function at 0x4055f3
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
add esp, 0xffffff80
cmp dword [ebp + 8], 0
je 0x40570c
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._pthread_spin_destroy
cmp eax, 1
jne 0x405702
mov dword [ebp - 0x77], 0x6f727245
mov dword [ebp - 0x73], 0x6c632072
mov dword [ebp - 0x6f], 0x696e6165
mov dword [ebp - 0x6b], 0x7520676e
mov dword [ebp - 0x67], 0x70732070
mov dword [ebp - 0x63], 0x6b5f6e69
mov dword [ebp - 0x5f], 0x20737965
mov dword [ebp - 0x5b], 0x20726f66
mov dword [ebp - 0x57], 0x65726874
mov dword [ebp - 0x53], 0x206461
lea eax, [ebp - 0x4f]
mov ecx, 0x43
mov ebx, 0
mov dword [eax], ebx
mov dword [eax + ecx - 4], ebx
lea edx, [eax + 4]
and edx, 0xfffffffc
sub eax, edx
add ecx, eax
and ecx, 0xfffffffc
shr ecx, 2
mov edi, edx
mov eax, ebx
rep stosd dword es:[edi], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov dword [esp + 8], 0xa
lea edx, [ebp - 0x77]
add edx, 0x27
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll__ultoa]
call eax
mov dword [ebp - 0xc], 0x27
jmp 0x4056b8
add dword [ebp - 0xc], 1
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
test al, al
je 0x4056cf
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
jbe 0x4056b4
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
ja 0x4056ed
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
mov byte [eax], 0xa
mov eax, dword [ebp - 0xc]
add eax, 1
mov byte [ebp + eax - 0x77], 0
lea eax, [ebp - 0x77]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call eax
sub esp, 4
call sym._abort
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
jmp 0x40570d
nop
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret
Function at 0x406502
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call eax
mov dword [0x45f014], eax
mov eax, dword [0x45f014]
cmp eax, 0xffffffff
jne 0x406523
call sym._abort
nop
leave
ret

Function at 0x406693
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [ebp - 0x1c], 0xffffffff
mov dword [esp + 4], sym._pthread_tls_init
mov dword [esp], 0x47d058
call sym.__pthread_once_raw
mov eax, dword [0x45f014]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4066da
mov eax, dword [ebp - 0x20]
jmp 0x406825
call sym._pop_pthread_mem
mov dword [ebp - 0x20], eax
mov eax, dword [entry3]
test eax, eax
je 0x4066f1
cmp dword [ebp - 0x20], 0
jne 0x4066fb
mov eax, 0
jmp 0x406825
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x24], 1
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventA]
call eax
sub esp, 0x10
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x1c], 0xffffffff
mov eax, dword [ebp - 0x20]
lea edx, [eax + 0x38]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._replace_spin_keys
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x64], 0
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x20]
lea edi, [eax + 0x14]
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call eax
mov ebx, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
call eax
sub esp, 0x1c
test eax, eax
jne 0x4067cd
call sym._abort
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetThreadPriority]
call eax
sub esp, 4
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x6c], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x68], 0
mov eax, dword [ebp - 0x20]
movzx edx, byte [eax + 0x20]
and edx, 0xffffffcf
or edx, 0x10
mov byte [eax + 0x20], dl
mov eax, dword [0x45f014]
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
test eax, eax
jne 0x406822
call sym._abort
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4068e9
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
call sym.___pthread_self_lite
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xb4]
mov dword [esp], eax
call sym.__pthread_cleanup_dest
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x20]
and eax, 0x30
test al, al
jne 0x406944
mov eax, dword [ebp - 0x14]
add eax, 0x70
mov dword [esp + 4], 1
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_longjmp]
call eax
mov eax, dword [0x45f014]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x406a6e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x4069d6
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x406993
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._push_pthread_mem
mov dword [ebp - 0x10], 0
mov eax, dword [0x45f014]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
jmp 0x406a6e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x68], 1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x406a06
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
and eax, 4
test eax, eax
je 0x406a6e
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._push_pthread_mem
mov dword [ebp - 0x10], 0
mov eax, dword [0x45f014]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll__endthreadex]
call eax
Function at 0x409835
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._dupvprintf
mov dword [ebp - 0xc], eax
mov eax, dword [0x47d0ac]
mov dword [esp + 0xc], 0x1010
mov dword [esp + 8], 0x4602a0
mov edx, dword [ebp - 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_MessageBoxA]
call eax
sub esp, 0x10
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._safefree
mov dword [esp], 1
call sym._exit
Function at 0x409944
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
cmp dword [ebp + 0xc], 0x111
je 0x409a02
cmp dword [ebp + 0xc], 0x111
ja 0x409b35
cmp dword [ebp + 0xc], 0x10
je 0x409b14
cmp dword [ebp + 0xc], 0x110
jne 0x409b35
mov dword [esp], 0x4607c2
call sym._buildinfo
mov dword [ebp - 0xc], eax
mov dword [esp + 0xc], str._C_1997_2024_Simon_Tatham
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4691f4
mov dword [esp], str.cnPageant_r_n_r_n_s_r_n_r_n_s_r_n_r_n_s
call sym._dupprintf
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._safefree
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x3e8
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SetDlgItemTextA]
call eax
sub esp, 0xc
mov dword [esp + 4], 0x3e8
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._MakeDlgItemBorderless
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._safefree
mov eax, 1
jmp 0x409b3a
mov eax, dword [ebp + 0x10]
movzx eax, ax
cmp eax, 0x66
je 0x409ace
cmp eax, 0x66
jg 0x409b0d
cmp eax, 2
jg 0x409a28
test eax, eax
jg 0x409a32
jmp 0x409b0d
cmp eax, 0x65
je 0x409a56
jmp 0x409b0d
mov dword [0x47d0b4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_DestroyWindow]
call eax
sub esp, 4
mov eax, 0
jmp 0x409b3a
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_EnableWindow]
call eax
sub esp, 8
mov eax, dword [0x47d0a8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], sym._LicenceProc_16
mov edx, dword [ebp + 8]
mov dword [esp + 8], edx
mov dword [esp + 4], 0xd6
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_DialogBoxParamA]
call eax
sub esp, 0x14
mov dword [esp + 4], 1
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_EnableWindow]
call eax
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SetActiveWindow]
call eax
sub esp, 4
mov eax, 0
jmp 0x409b3a
mov dword [esp + 0x14], 0xa
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.https:__www.chiark.greenend.org.uk_sgtatham_putty_
mov dword [esp + 4], str.open
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.SHELL32.dll_ShellExecuteA]
call eax
sub esp, 0x18
mov eax, 0
jmp 0x409b3a
mov eax, 0
jmp 0x409b3a
mov dword [0x47d0b4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_DestroyWindow]
call eax
sub esp, 4
mov eax, 0
jmp 0x409b3a
mov eax, 0
leave
ret 0x10
Function at 0x40b68c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x47d0c4]
test eax, eax
je 0x40b8b0
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareSimonTathamPuTTYSessions
mov dword [esp], 0x80000001
mov eax, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
call eax
sub esp, 0xc
test eax, eax
jne 0x40b8b3
mov eax, dword [0x47d0bc]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetMenuItemCount]
call eax
sub esp, 4
mov dword [ebp - 0xc], eax
jmp 0x40b707
mov eax, dword [0x47d0bc]
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_RemoveMenu]
call eax
sub esp, 0xc
sub dword [ebp - 0xc], 1
mov eax, dword [0x47d0d0]
cmp dword [ebp - 0xc], eax
jg 0x40b6e1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
call sym._strbuf_new
mov dword [ebp - 0x18], eax
jmp 0x40b7ff
mov dword [esp + 4], str.Default_20Settings
lea eax, [ebp - 0x121]
mov dword [esp], eax
call sym._strcmp
test eax, eax
je 0x40b7fb
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._strbuf_clear
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
lea eax, [ebp - 0x121]
mov dword [esp], eax
call sym._unescape_registry_key
mov dword [esp + 8], 0x30
mov dword [esp + 4], 0
lea eax, [ebp - 0x154]
mov dword [esp], eax
call sym._memset
mov dword [ebp - 0x154], 0x30
mov dword [ebp - 0x150], 0x13
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0
mov eax, dword [ebp - 0x14]
add eax, 0x100
shl eax, 4
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x130], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [0x47d0bc]
lea ecx, [ebp - 0x154]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 1
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_InsertMenuItemA]
call eax
sub esp, 0x10
add dword [ebp - 0x14], 1
add dword [ebp - 0x10], 1
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], 0x104
lea ecx, [ebp - 0x121]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
call eax
sub esp, 0x10
test eax, eax
je 0x40b72c
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._strbuf_free
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call eax
sub esp, 4
cmp dword [ebp - 0x14], 0
jne 0x40b8b4
mov dword [ebp - 0x154], 0x30
mov dword [ebp - 0x150], 0x11
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 3
mov dword [ebp - 0x130], 0x460a27
mov edx, dword [ebp - 0x14]
mov eax, dword [0x47d0bc]
lea ecx, [ebp - 0x154]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 1
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_InsertMenuItemA]
call eax
sub esp, 0x10
jmp 0x40b8b4
nop
jmp 0x40b8b4
nop
leave
ret
Function at 0x40bf4b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x47d0b0]
test eax, eax
jne 0x40bfad
mov eax, dword [0x47d0a8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], sym._KeyListProc_16
mov dword [esp + 8], 0
mov dword [esp + 4], 0xd3
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_CreateDialogParamA]
call eax
sub esp, 0x14
mov dword [0x47d0b0], eax
mov eax, dword [0x47d0b0]
mov dword [esp + 4], 1
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
call eax
sub esp, 8
jmp 0x40bfae
nop
leave
ret
Function at 0x40c73c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov dword [esp + 0x2c], 0
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x64
mov dword [esp + 0x18], 0x64
mov dword [esp + 0x14], 0x80000000
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0xef0000
mov dword [esp + 8], 0x4608ca
mov dword [esp + 4], 0x4608ca
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_CreateWindowExA]
call eax
sub esp, 0x30
mov dword [ebp - 0x10], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
call eax
sub esp, 8
jmp 0x40c7ef
lea eax, [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_TranslateMessage]
call eax
sub esp, 4
lea eax, [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_DispatchMessageA]
call eax
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetMessageA]
call eax
sub esp, 0x10
cmp eax, 1
je 0x40c7cf
mov eax, 0
leave
ret 4

Function at 0x40c825
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], str.open
mov dword [esp], 0
mov eax, dword [sym.imp.SHELL32.dll_ShellExecuteA]
call eax
sub esp, 0x18
cmp eax, 0x20
ja 0x40c8c2
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp], eax
call sym._win_strerror
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], 0x460b88
call sym._dupprintf
mov dword [ebp - 0xc], eax
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], 0x4608ca
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_MessageBoxA]
call eax
sub esp, 0x10
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._safefree
nop
leave
ret

Function at 0x40c8fb
Capabilities:
Delete file
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._dupvprintf
mov dword [ebp - 0xc], eax
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 0x460ba4
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_MessageBoxA]
call eax
sub esp, 0x10
mov dword [esp], 1
call sym._exit
Function at 0x40dab0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
movzx eax, byte [0x47d11d]
test al, al
jne 0x40db33
mov byte [0x47d11d], 1
call sym._has_embedded_chm
test eax, eax
je 0x40db36
mov eax, dword [0x47d110]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_SizeofResource]
call eax
sub esp, 8
mov dword [0x47d114], eax
mov eax, dword [0x47d114]
test eax, eax
je 0x40db39
mov eax, dword [0x47d110]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_LoadResource]
call eax
sub esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40db3c
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LockResource]
call eax
sub esp, 4
mov dword [0x47d118], eax
jmp 0x40db3d
nop
jmp 0x40db3d
nop
jmp 0x40db3d
nop
jmp 0x40db3d
nop
mov eax, dword [0x47d118]
test eax, eax
setne al
leave
ret
Function at 0x40db49
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov byte [ebp - 9], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0xffffffff
mov byte [ebp - 0x15], 0
movzx eax, byte [0x47d11e]
test al, al
jne 0x40dcf2
mov byte [0x47d11e], 1
lea eax, [ebp - 0x136]
mov dword [esp + 4], eax
mov dword [esp], 0x106
mov eax, dword [sym.imp.KERNEL32.dll_GetTempPathA]
call eax
sub esp, 8
test eax, eax
je 0x40dcf5
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov eax, dword [ebp - 0x28]
mov dword [esp + 8], eax
lea eax, [ebp - 0x136]
mov dword [esp + 4], eax
mov dword [esp], str._sputty__lu__llu.chm
call sym._dupprintf
mov dword [ebp - 0x10], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x40000000
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
call eax
sub esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x40dc5f
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
cmp eax, 0x50
jne 0x40dcf8
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._safefree
mov dword [ebp - 0x10], 0
add dword [ebp - 0x20], 1
adc dword [ebp - 0x1c], 0
jmp 0x40dbb9
nop
mov byte [ebp - 0x15], 1
mov eax, dword [0x47d118]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0
jmp 0x40dccc
mov eax, dword [0x47d114]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x13c], 0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
add edx, eax
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x13c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
sub esp, 0x14
test eax, eax
je 0x40dcfb
mov eax, dword [ebp - 0x13c]
add dword [ebp - 0x24], eax
mov eax, dword [0x47d114]
cmp dword [ebp - 0x24], eax
jb 0x40dc75
mov eax, dword [ebp - 0x10]
mov dword [0x47d104], eax
mov dword [ebp - 0x10], 0
mov byte [0x47d108], 1
mov byte [ebp - 9], 1
jmp 0x40dcfc
nop
jmp 0x40dcfc
nop
jmp 0x40dcfc
nop
jmp 0x40dcfc
nop
cmp byte [ebp - 0x15], 0
je 0x40dd1d
movzx eax, byte [ebp - 9]
xor eax, 1
test al, al
je 0x40dd1d
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._safefree
cmp dword [ebp - 0x14], 0xffffffff
je 0x40dd3e
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
movzx eax, byte [ebp - 9]
leave
ret