joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4575d8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x494c30]
cmp dword [eax + 0x30], 0
je 0x457682
cmp dword [ebx + 0x94], 0
jne 0x45767c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x457568
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45767c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x457642
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45767c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004143d8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x457651
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x458160
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x458195
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004043e8
jmp 0x4581a2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040434c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4591b0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4591f1
mov eax, esi
call fcn.0043f274
test al, al
je 0x4591f1
mov eax, dword [ebx + 0x84]
call fcn.0043ef70
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4591f1
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043ef70
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45f73c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004047a8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
setne al
pop ebx
ret
Function at 0x10001810
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [ebp - 0x10], 0
mov ebx, dword [ebp + 0xc]
test byte [0x1000c01c], 8
jne 0x100018c0
test ebx, ebx
je 0x100018f4
lea edi, [ebp - 0x10]
mov dword [esp], 0
mov esi, dword [sym.imp.advapi32.dll_GetUserNameW]
mov dword [esp + 4], edi
call esi
mov eax, dword [ebp - 0x10]
sub esp, 8
sub eax, 1
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [sym.imp.oleaut32.dll_SysAllocStringLen]
mov dword [ebx], eax
sub esp, 8
test eax, eax
je 0x100018fb
mov dword [esp + 4], edi
mov dword [esp], eax
call esi
xor esi, esi
sub esp, 8
test eax, eax
jne 0x100018b1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 0x34]
movzx eax, si
or eax, 0x80070000
test esi, esi
cmovg esi, eax
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_SysFreeString]
mov dword [ebx], 0
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov dword [esp + 0x14], ebx
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0x1000e033
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.WshNetwork2_get_UserName
mov dword [esp + 4], 0x1000c01c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10001830
mov esi, 0x80004003
jmp 0x100018b1
mov esi, 0x8007000e
jmp 0x100018b1

Function at 0x10001910
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [ebp - 0x10], 0
mov ebx, dword [ebp + 0xc]
test byte [0x1000c01c], 8
jne 0x100019c0
test ebx, ebx
je 0x100019f4
lea edi, [ebp - 0x10]
mov dword [esp], 0
mov esi, dword [sym.imp.kernel32.dll_GetComputerNameW]
mov dword [esp + 4], edi
call esi
mov eax, dword [ebp - 0x10]
sub esp, 8
sub eax, 1
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [sym.imp.oleaut32.dll_SysAllocStringLen]
mov dword [ebx], eax
sub esp, 8
test eax, eax
je 0x100019fb
mov dword [esp + 4], edi
mov dword [esp], eax
call esi
xor esi, esi
sub esp, 8
test eax, eax
jne 0x100019b1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 0x34]
movzx eax, si
or eax, 0x80070000
test esi, esi
cmovg esi, eax
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_SysFreeString]
mov dword [ebx], 0
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov dword [esp + 0x14], ebx
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0x1000e033
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.WshNetwork2_get_ComputerName
mov dword [esp + 4], 0x1000c01c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10001930
mov esi, 0x80004003
jmp 0x100019b1
mov esi, 0x8007000e
jmp 0x100019b1
Function at 0x10003950
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x18
mov dword [ebp - 8], 0
mov ebx, dword [ebp + 8]
test byte [0x1000c02c], 8
jne 0x100039d8
lea eax, [ebp - 8]
mov dword [esp + 4], sym._enum_thread_wnd_proc_8
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.user32.dll_EnumThreadWindows]
sub esp, 0xc
test eax, eax
mov eax, dword [ebx + 8]
je 0x10003996
mov edx, dword [ebp - 8]
test edx, edx
jne 0x100039b8
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
sub esp, 8
mov ebx, dword [ebp - 4]
xor eax, eax
leave
ret 4
mov dword [esp + 4], 0x7d0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
je 0x100039aa
mov eax, dword [ebx + 8]
jmp 0x10003996
lea eax, [ebx - 0xc]
mov dword [esp + 0xc], 0x1000ed2c
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.WshExec_Terminate
mov dword [esp + 4], 0x1000c02c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x1000396a

Function at 0x100049a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
test byte [0x1000c02c], 8
jne 0x10004a30
test ebx, ebx
je 0x10004aa8
test esi, esi
je 0x10004aa8
mov edx, dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [ebp - 0x10], edx
call edx
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.oleaut32.dll_SysAllocStringLen]
mov dword [esi], eax
sub esp, 8
test eax, eax
je 0x10004ab2
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], ebx
mov edx, dword [ebp - 0x10]
call edx
mov edx, eax
sub esp, 0xc
xor eax, eax
test edx, edx
je 0x10004a70
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__s__p__n
mov dword [esp + 8], str.WshShell3_ExpandEnvironmentStrings
mov dword [esp + 4], 0x1000c02c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x100049b8
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_SysFreeString]
mov dword [esi], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
sub esp, 4
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovg eax, edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov eax, 0x80004003
jmp 0x10004a24
mov eax, 0x8007000e
jmp 0x10004a24
Function at 0x10004ac0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14
mov esi, dword [ebp + 0xc]
test byte [0x1000c02c], 8
jne 0x10004b70
mov dword [esp + 4], 0
mov edi, dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov dword [esp], 0
call edi
sub esp, 8
mov ebx, eax
test eax, eax
jne 0x10004b20
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovg eax, edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
lea eax, [eax - 1]
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [sym.imp.oleaut32.dll_SysAllocStringLen]
mov dword [esi], eax
sub esp, 8
test eax, eax
je 0x10004b9d
mov dword [esp + 4], eax
mov dword [esp], ebx
call edi
mov edx, eax
sub esp, 8
xor eax, eax
test edx, edx
jne 0x10004b10
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_SysFreeString]
mov dword [esi], 0
sub esp, 4
jmp 0x10004af9
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x1000ed2c
mov dword [esp + 8], str.WshShell3_get_CurrentDirectory
mov dword [esp + 4], 0x1000c02c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10004ad9
mov eax, 0x8007000e
jmp 0x10004b10

Function at 0x10004bb0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 0xc]
test byte [0x1000c02c], 8
jne 0x10004c00
test ebx, ebx
je 0x10004c31
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
mov edx, eax
sub esp, 4
xor eax, eax
test edx, edx
jne 0x10004bf2
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovg eax, edx
mov ebx, dword [ebp - 4]
leave
ret 8
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0xc], str.__s__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.WshShell3_put_CurrentDirectory
mov dword [esp + 4], 0x1000c02c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10004bc3
mov eax, 0x80070057
jmp 0x10004bf2
Function at 0x100058d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 0x10]
test byte [0x1000c02c], 8
jne 0x10005988
test ebx, ebx
je 0x100059cb
mov dword [esp + 8], 0
mov edi, dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov dword [esp + 4], 0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call edi
sub esp, 0xc
mov esi, eax
test eax, eax
jne 0x10005950
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.oleaut32.dll_SysAllocStringLen]
mov dword [ebx], eax
sub esp, 8
test eax, eax
je 0x100059d5
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
lea eax, [eax - 1]
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [sym.imp.oleaut32.dll_SysAllocStringLen]
mov dword [ebx], eax
sub esp, 8
test eax, eax
je 0x100059d5
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call edi
mov eax, dword [ebx]
sub esp, 0xc
jmp 0x10005932
mov eax, dword [ebp + 0xc]
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0x1000edf3
sub eax, 0xc
mov dword [esp + 8], str.WshEnvironment_get_Item
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x1000c02c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x100058e9
mov eax, 0x80004003
jmp 0x1000593c
mov eax, 0x8007000e
jmp 0x1000593c
Function at 0x10006a70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x228
mov ebx, dword [ebp + 0xc]
test byte [0x1000c02c], 8
jne 0x10006b68
movzx eax, word [ebx]
cmp ax, 8
jne 0x10006be0
mov ebx, dword [ebx + 8]
mov esi, dword [sym.imp.ucrtbase.dll__wcsicmp]
mov dword [esp + 4], str.Desktop
mov dword [esp], ebx
call esi
test eax, eax
jne 0x10006ae8
lea edx, [ebp - 0x214]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], 0
call dword [sym.imp.shell32.dll_SHGetSpecialFolderLocation]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x10006b20
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 0xc
mov dword [esp + 4], str.AllUsersDesktop
mov dword [esp], ebx
call esi
mov edx, eax
mov eax, 0x19
test edx, edx
je 0x10006ab2
mov dword [esp + 4], str.AllUsersPrograms
mov dword [esp], ebx
call esi
test eax, eax
jne 0x10006c22
mov eax, 0x17
jmp 0x10006ab2
lea esi, [ebp - 0x210]
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x214]
mov dword [esp], eax
call dword [sym.imp.shell32.dll_SHGetPathFromIDListW]
sub esp, 8
test eax, eax
jne 0x10006bb0
mov ebx, 0x80004005
mov eax, dword [ebp - 0x214]
mov dword [esp], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0xc
mov eax, ebx
call sym._wine_dbgstr_variant_1
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0x1000edf3
sub eax, 0xc
mov dword [esp + 8], str.WshCollection_Item
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x1000c02c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10006a8b
mov eax, dword [ebp + 0x10]
mov edx, 8
mov word [eax], dx
mov dword [esp], esi
call dword [sym.imp.oleaut32.dll_SysAllocString]
mov ecx, dword [ebp + 0x10]
sub esp, 4
test eax, eax
mov dword [ecx + 8], eax
mov eax, 0x8007000e
cmove ebx, eax
jmp 0x10006b45
test byte [0x1000c02c], 1
jne 0x10006bf8
mov ebx, 0x80004001
jmp 0x10006ad6
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.only_BSTR_index_supported__got__d_n
mov dword [esp + 8], str.WshCollection_Item
mov dword [esp + 4], 0x1000c02c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.1_1
jmp 0x10006be9
test byte [0x1000c02c], 1
je 0x10006be9
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0_1
xor ecx, ecx
mov dword [esp + 0xc], str.folder_kind__s_not_supported_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.WshCollection_Item
mov dword [esp + 4], 0x1000c02c
mov dword [esp], ecx
call sym._wine_dbg_log.constprop.1_1
jmp 0x10006be9
Function at 0x1000a950
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x1000a9a8
cmp byte [esi + ebx - 1], 0xa
je 0x1000a97c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x1001c0c4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x1000b3c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x214
mov eax, dword [0x1001c0e0]
test eax, eax
je 0x1000b478
mov dword [esp], ebx
call eax
mov dword [ebx + 8], eax
sub esp, 4
test eax, eax
jns 0x1000b400
mov eax, dword [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x214]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.MODULE
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemRoot
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x1000b3ec
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x1000b4ad
mov dword [esp + 4], str.AtlCreateRegistrar
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x1001c0e0], eax
sub esp, 8
test eax, eax
jne 0x1000b3dd
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x1000b3ee
Function at 0x1000b4c0
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov dword [esp + 4], eax
mov dword [ebp - 0x10], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edx, dword [ebp - 0x10]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
sub esp, 8
test ebx, ebx
je 0x1000b641
mov eax, dword [esi]
test eax, eax
je 0x1000b630
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
mov dword [ebp - 0x1c], edx
call edx
lea ecx, [eax + 1]
sub esp, 0x18
lea eax, [ecx + ecx]
mov dword [ebp - 0x18], ecx
mov ecx, eax
mov dword [ebp - 0x14], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x1000b645
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 4]
xor edx, edx
sub esp, 0x18
mov word [edi + eax - 2], dx
mov eax, dword [esi]
test ecx, ecx
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
jne 0x1000b628
call dword [edx + 0x28]
sub esp, 8
mov dword [esi + 8], eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 8]
sub esp, 0xc
not eax
shr eax, 0x1f
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
call dword [edx + 0x24]
sub esp, 8
jmp 0x1000b5e9
mov edx, esi
mov eax, edi
call sym._create_registrar
test eax, eax
jne 0x1000b526
xor eax, eax
jmp 0x1000b618
mov dword [esi + 8], 0x8007000e
xor eax, eax
jmp 0x1000b618
Function at 0x4b956d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4b958d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.004b867a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4b95b0
test byte [esp + 8], 2
je 0x4b95b0
call fcn.004b86ed
mov dword [eax], 0xd
call fcn.004b86f6
mov dword [eax], 5
jmp 0x4b9589
xor eax, eax
ret

Function at 0x4ca2e2
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ca31a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004c836f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c8347
jmp 0x4ca326
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4cb9d4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4cba16
call fcn.004d174d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x4cba16
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x4cba0d
xor eax, eax
jmp 0x4cba1e
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004cba24
pop edi
pop esi
pop ebx
ret 4

Function at 0x4d1c7d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4d1cab
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x4d1cc9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d1be3
jmp 0x4d1cc9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d1cc9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d1be3
test edi, edi
mov eax, edi
jne 0x4d1cb3
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x6a5f0fd2
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x22cb18ef
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
jmp 0x431219