joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44dea0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push esi
push edi
lea eax, [ebp - 8]
mov dword [eax], 8
mov dword [eax + 4], 0x42f
push eax
call sub.COMCTL32.dll_InitCommonControlsEx
push 0
call sub.KERNEL32.dll_GetModuleHandleW
mov dword [0x47d0c0], eax
call fcn.0040636d
mov dword [0x47ea24], eax
mov esi, fcn.00406340
mov edi, 0x47d0dc
push str.ChangeWindowMessageFilterEx
push str.user32.dll
lea eax, [edi]
push eax
call esi
push str.Wow64DisableWow64FsRedirection
push str.kernel32.dll
lea eax, [edi + 4]
push eax
call esi
push str.Wow64RevertWow64FsRedirection
push str.kernel32.dll
lea eax, [edi + 8]
push eax
call esi
push str.__unDName
push str.msvcrt.dll
lea eax, [edi + 0xc]
push eax
call esi
push str.malloc
push str.msvcrt.dll
lea eax, [edi + 0x10]
push eax
call esi
push str.free
push str.msvcrt.dll
lea eax, [edi + 0x14]
push eax
call esi
push str.RegLoadMUIStringW
push str.advapi32.dll
lea eax, [edi + 0x18]
push eax
call esi
push str.MsiGetShortcutTargetW
push str.msi.dll
lea eax, [edi + 0x1c]
push eax
call esi
push str.MsiGetComponentPathW
push str.msi.dll
lea eax, [edi + 0x20]
push eax
call esi
call fcn.00403dd0
push 0x473b70
push 0x47d330
call fcn.00404623
call fcn.004035a2
push dword [0x47d3e0]
call fcn.0040381e
call fcn.00404a60
cmp eax, 0xb7
jne 0x44e056
call fcn.00404afe
or eax, eax
je 0x44e020
mov esi, dword [eax + 8]
mov dword [0x47d354], esi
mov edi, dword [eax]
call fcn.00404b45
or esi, esi
je 0x44e072
mov dword [ebp - 0x14], 0x20200831
call sub.KERNEL32.dll_GetCommandLineW
mov dword [ebp - 0xc], eax
push eax
call sub.KERNEL32.dll_lstrlenW
inc eax
add eax, eax
mov dword [ebp - 0x10], eax
push edi
call sub.USER32.dll_IsWindow
or eax, eax
je 0x44e01e
push 0
push 0x7d0
push 9
lea eax, [ebp - 0x14]
push eax
push 0
push 0x4a
push edi
call sub.USER32.dll_SendMessageTimeoutW
or eax, eax
je 0x44e020
push edi
call sub.USER32.dll_IsIconic
or eax, eax
je 0x44e014
push 9
push edi
call sub.USER32.dll_ShowWindowAsync
push edi
call sub.USER32.dll_SetForegroundWindow
xor eax, eax
jmp 0x44e075
jmp 0x44e072
push 0x104
push 0x47ea44
push 0xf240
call fcn.00403887
call sub.USER32.dll_GetForegroundWindow
push 0x24
push 0x4734d0
push 0x47ea44
push eax
call sub.USER32.dll_MessageBoxW
cmp eax, 6
je 0x44e054
xor eax, eax
jmp 0x44e075
jmp 0x44e072
or eax, eax
je 0x44e072
call fcn.00404afe
or eax, eax
je 0x44e072
mov edx, dword [0x47d354]
lock xchg dword [eax + 8], edx
call fcn.00404b45
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x44e0f1
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push esi
push edi
push 0x208
lea eax, [ebp - 0x28]
push eax
call fcn.00403940
call sub.KERNEL32.dll_GetCommandLineW
mov esi, dword [ebp - 0x28]
push 0x104
push esi
push eax
call fcn.00404f10
or eax, eax
jne 0x44e142
cmp eax, dword [0x47d37c]
je 0x44e142
push eax
push dword [0x47d340]
call fcn.00403d5b
or eax, eax
je 0x44e142
mov esi, eax
push esi
call sub.KERNEL32.dll_lstrlenW
inc eax
add eax, eax
and dword [ebp - 0x24], 0
or eax, eax
je 0x44e157
push 0
push eax
push esi
lea eax, [ebp - 0x24]
push eax
call fcn.0040204a
mov edi, eax
or eax, eax
je 0x44e164
push esi
push eax
call fcn.0041be67
push dword [ebp - 0x28]
call fcn.0040398e
or edi, edi
jne 0x44e234
push dword [ebp - 0x24]
push 0
call fcn.0043697c
or eax, eax
je 0x44e22f
mov dword [0x47d0c4], eax
push eax
call fcn.00404b51
push 0x191
push dword [0x47d0c0]
call sub.USER32.dll_LoadAcceleratorsW
mov dword [ebp - 0x20], eax
lea esi, [ebp - 0x1c]
push 0
push 0
push 0
push esi
call sub.USER32.dll_GetMessageW
or eax, eax
je 0x44e1f6
cmp eax, 0xffffffff
je 0x44e1f4
call sub.USER32.dll_GetActiveWindow
or eax, eax
je 0x44e1e8
mov edi, eax
cmp eax, dword [0x47d0c4]
jne 0x44e1dd
push esi
push dword [ebp - 0x20]
push edi
call sub.USER32.dll_TranslateAcceleratorW
or eax, eax
jne 0x44e1a7
push esi
push edi
call sub.USER32.dll_IsDialogMessageW
or eax, eax
jne 0x44e1a7
push esi
call sub.USER32.dll_TranslateMessage
push esi
call sub.USER32.dll_DispatchMessageW
jmp 0x44e1a7
push dword [ebp - 0x20]
call sub.USER32.dll_DestroyAcceleratorTable
push dword [0x47d0c4]
call fcn.00404b72
call fcn.00404b23
or eax, eax
je 0x44e220
mov edx, dword [eax + 8]
mov dword [0x47d354], edx
call fcn.00404b45
push 0x47d330
call fcn.004049c6
mov eax, dword [ebp - 0x14]
jmp 0x44e234
call sub.KERNEL32.dll_GetLastError
pop edi
pop esi
leave
ret
Function at 0x401080
Capabilities:
Copy file
Create process on windows
Delete file
Query environment variable
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x145c
call fcn.00401e90
mov eax, dword [0x403004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [ebp - 0x1004]
push 0x400
push eax
push str.APPDATA
call esi
push 0x400
lea eax, [ebp - 0x1404]
push eax
push str.SYSTEMROOT
call esi
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x404]
push str._s_slow.tmp
push eax
call fcn.00401040
lea eax, [ebp - 0x1404]
push eax
lea eax, [ebp - 0xc04]
push str._s_system32conhost.exe.pif
push eax
call fcn.00401040
add esp, 0x18
lea eax, [ebp - 0x804]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0xc04]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
lea eax, [ebp - 0x404]
jne 0x4011c9
push ebx
push edi
push 0x402164
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov ebx, eax
push 2
push 0
push ebx
mov dword [ebp - 0x145c], ebx
call esi
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push 0
push 0
push ebx
mov edi, eax
call esi
xor edx, edx
mov ecx, edi
add ecx, 1
setb dl
neg edx
or edx, ecx
push edx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea esi, [edi + 1]
mov ebx, eax
push esi
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
mov edi, dword [ebp - 0x145c]
push edi
push esi
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x44
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 4
push ebx
call esi
lea eax, [ebp - 0x404]
push eax
call esi
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401297
mov esp, ebp
pop ebp
ret
push 0x402168
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
lea eax, [ebp - 0x804]
push eax
push 0x40216c
push esi
call fcn.00401010
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x18
lea eax, [ebp - 0xc04]
push 0
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x1458]
mov dword [ebp - 0x1448], 0x44
push eax
lea eax, [ebp - 0x1448]
xorps xmm0, xmm0
push eax
push 0
push 0
push 8
push 0
push 0
push 0
lea eax, [ebp - 0xc04]
movlpd qword [ebp - 0x1444], xmm0
push eax
push 0
movlpd qword [ebp - 0x143c], xmm0
movlpd qword [ebp - 0x1434], xmm0
movlpd qword [ebp - 0x142c], xmm0
movlpd qword [ebp - 0x1424], xmm0
movlpd qword [ebp - 0x141c], xmm0
movlpd qword [ebp - 0x1414], xmm0
movlpd qword [ebp - 0x140c], xmm0
movups xmmword [ebp - 0x1458], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00401297
mov esp, ebp
pop ebp
ret
Function at 0x401ab5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44c090]
jne 0x401abf
repz ret
jmp fcn.004028f8

Function at 0x40b454
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407795
and dword [ebp - 4], 0
cmp dword [0x451bf4], 0
mov ebx, eax
jne 0x40b505
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b5b6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b5b6
push eax
call fcn.00407723
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x451bf4], eax
call esi
push eax
call fcn.00407723
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x451bf8], eax
call esi
push eax
call fcn.00407723
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x451bfc], eax
call esi
push eax
call fcn.00407723
pop ecx
mov dword [0x451c04], eax
test eax, eax
je 0x40b505
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407723
pop ecx
mov dword [0x451c00], eax
mov eax, dword [0x451c00]
cmp eax, ebx
je 0x40b55d
cmp dword [0x451c04], ebx
je 0x40b55d
push eax
call fcn.0040779e
push dword [0x451c04]
mov esi, eax
call fcn.0040779e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b55d
test edi, edi
je 0x40b55d
call esi
test eax, eax
je 0x40b554
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b554
test byte [ebp - 0xc], 1
jne 0x40b55d
or dword [ebp + 0x10], 0x200000
jmp 0x40b596
mov eax, dword [0x451bf8]
cmp eax, ebx
je 0x40b596
push eax
call fcn.0040779e
pop ecx
test eax, eax
je 0x40b596
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b596
mov eax, dword [0x451bfc]
cmp eax, ebx
je 0x40b596
push eax
call fcn.0040779e
pop ecx
test eax, eax
je 0x40b596
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x451bf4]
call fcn.0040779e
pop ecx
test eax, eax
je 0x40b5b6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b5b8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d61b
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x1bc8234], 0x930
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
jne 0x40d645
push str.wiwuberitiziwoh
push 0
call esi
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [0x1bc8234], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x1bc7f50], eax
jne 0x40d679
push str.Yawilurozuyuna_fobupinave_hiduja
push 0
call esi
lea eax, [ebp - 0x1c]
push eax
push str.dapowokayamabeloteyikexifal_disowilipuzivagazahunilikosoxuwi_memewijupexubilafibuc_haxogiyisecekocujoso_lewopanofofowivalawulemarina
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
leave
ret
Function at 0x40d68b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jle 0x40d6cb
and dword [ebp - 4], 0
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
call fcn.0040d67c
pop ecx
mov eax, dword [ebp - 8]
add eax, 0x46
mov dword [ebp - 4], eax
sub dword [ebp - 4], 0xa
sub dword [ebp - 4], 0x3c
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
add eax, esi
xor byte [eax], cl
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x40d698
cmp dword [ebp + 0xc], 0x2d
pop esi
jne 0x40d6e3
or dword [0x1bc8244], 0xffffffff
mov dword [0x1bc8240], 0xa62e7790
leave
ret
Function at 0xda3058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xda31a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xda307e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xda306a
add dl, dl
jne 0xda3089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xda30dc
xor eax, eax
add dl, dl
jne 0xda3096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xda317d
add dl, dl
jne 0xda30a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xda30b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xda30bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xda30c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xda30d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xda3075
mov eax, 1
add dl, dl
jne 0xda30ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xda30f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xda30e1
sub eax, ebx
mov ebx, 1
jne 0xda3128
mov ecx, 1
add dl, dl
jne 0xda310e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xda3119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xda3105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xda3075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xda313f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xda314a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xda3136
cmp eax, 0x7d00
jae 0xda316d
cmp eax, 0x500
jb 0xda3168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xda3075
cmp eax, 0x7f
ja 0xda3170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xda3075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xda319e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xda3075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403a20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00408fb3

Function at 0x403a60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403a75
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403ab4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x403ab0
lea ebx, [ebx]
cmp esi, edx
jae 0x403ab4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x403aa0
cmp esi, edx
jb 0x403ab9
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x4049c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5510db
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x5aa170]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ecx + 0x14]
lea edi, [ecx + 0x14]
mov dword [ebp - 0x21c], 0
mov ecx, 0x585f0c
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404a2c
test dx, dx
je 0x404a28
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404a2c
add eax, 4
add ecx, 4
test dx, dx
jne 0x404a06
xor eax, eax
jmp 0x404a31
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x404af9
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0052b410
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x258]
call fcn.00404b80
lea eax, [ebp - 0x258]
push str.ICALauncher.xml
push eax
mov dword [ebp - 4], 0
call fcn.00404d90
mov edx, dword [ebp - 0x254]
add esp, 8
test edx, edx
jne 0x404aa9
xor ecx, ecx
jmp 0x404abf
mov ecx, edx
lea esi, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404ab0
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00403ed0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x254]
add edx, 0xfffffff0
mov dword [ebp - method.CUtlCommonPath.virtual_0], vtable.CUtlCommonPath.0
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404af9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [edi]
sub ecx, 0x10
push ecx
call fcn.004040f0
add esp, 4
add eax, 0x10
mov dword [ebx], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00529711
mov esp, ebp
pop ebp
ret 4
Function at 0x4087ca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x408814
call fcn.00415b4f
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x408811
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40884d
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test edi, edi
je 0x408836
push dword [ebp + 0x10]
mov edx, dword [eax]
push edi
push dword [ebp + 8]
mov ecx, eax
call dword [edx + 0x20]
mov ebx, eax
test esi, esi
je 0x408836
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x68]
test ecx, ecx
je 0x40884b
mov eax, dword [ecx]
push dword [ebp + 0x10]
call dword [eax + 0xa0]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x408fb3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebx + 0x78], edi
test edi, 0xffff0000
jne 0x408fd5
cmp dword [ebx + 0x74], 0
jne 0x408fd5
movzx eax, di
mov dword [ebx + 0x74], eax
call fcn.00415b4f
mov esi, dword [eax + 0xc]
push 5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00409240
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40900f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.00415b4f
mov ebx, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x409046
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00409065
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x40b27f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5aa170]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5ad164]
push esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x40b2cb
push 0x554ac0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40b2e8
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x5ad164], eax
jmp 0x40b2d4
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x40b2e8
push 0x800
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x40b355
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40b303
xor eax, eax
jmp 0x40b355
lea eax, [ebp - 0x210]
push eax
call fcn.0052ab8f
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x40b334
push 0x585db4
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0052b39d
add esp, 0xc
test eax, eax
jne 0x40b2ff
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0052b39d
add esp, 0xc
test eax, eax
jne 0x40b2ff
lea eax, [ebp - 0x210]
push eax
call fcn.0040ff2d
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00529711
leave
ret

Function at 0x40baf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], esi
je 0x40bb35
call fcn.00415b4f
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40bb35
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40bb51
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0042618d
mov ebx, eax
test edi, edi
je 0x40bb4f
test esi, esi
je 0x40bb4f
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x410672
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x541d6a
call fcn.0052adb6
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x6c], esi
jne 0x410698
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4106ec
call fcn.00407e43
push eax
lea ecx, [ebp - 0x10]
call fcn.00403a30
mov ecx, dword [edi + 0x6c]
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push edx
mov dword [ebp - 4], esi
call dword [eax + 0x8c]
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0052aba8
push eax
call fcn.00403b00
add esp, 0x14
test edi, edi
je 0x4106df
push edi
call fcn.0052ab8f
pop ecx
mov esi, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00404160
mov eax, esi
call fcn.0052ad84
ret 8
Function at 0x417a89
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x417abf
push 0x554ac0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x417acd
push str.SetFileAttributesTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x417acd
push dword [esi]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x417acf
cmp dword [esi + 4], 0
je 0x417acd
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop esi
pop ebp
ret 8