joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008b89
Capabilities:
Check if file exists
Copy file
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x1002c294]
xor eax, ebp
mov dword [ebp + 0x39c], eax
mov eax, dword [ebp + 0x3a8]
and dword [ebp - 0x78], 0
mov dword [ebp - 0x80], eax
test eax, eax
je 0x10008caa
test ebx, ebx
je 0x10008caa
push esi
push edi
xor eax, eax
mov edi, 0x206
push edi
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.10012df0
push ebx
push 0x1002548c
mov esi, 0x103
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.1000efc3
add esp, 0x1c
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x74]
push eax
call fcn.10008da7
pop ecx
test eax, eax
je 0x10008ca3
xor eax, eax
push edi
push eax
mov word [ebp + 0x194], ax
lea eax, [ebp + 0x196]
push eax
call fcn.10012df0
push ebx
push 0x100274dc
lea eax, [ebp + 0x194]
push esi
push eax
call fcn.1000efc3
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x1c
lea eax, [ebp + 0x194]
push eax
call esi
test eax, eax
je 0x10008c58
lea ecx, [ebp + 0x194]
call fcn.10008cc1
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp + 0x194]
push eax
push ebx
call edi
push ebx
mov dword [ebp - 0x7c], eax
call esi
test eax, eax
jne 0x10008c80
push eax
push ebx
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x7c], 0
je 0x10008ca3
cmp dword [ebp - 0x78], 0
jne 0x10008c98
push ebx
lea eax, [ebp + 0x194]
push eax
call edi
jmp 0x10008ca3
lea ecx, [ebp + 0x194]
call fcn.10008cc1
mov eax, dword [ebp - 0x78]
pop edi
pop esi
jmp 0x10008cac
xor eax, eax
mov ecx, dword [ebp + 0x39c]
xor ecx, ebp
call fcn.1000e51f
add ebp, 0x3a0
leave
ret
Function at 0x10008cc1
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x1002c294]
xor eax, ebp
mov dword [ebp + 0x190], eax
and dword [ebp - 0x7c], 0
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, ecx
push ebx
mov dword [ebp - 0x80], ebx
call esi
test eax, eax
jne 0x10008cfa
inc eax
jmp 0x10008d90
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
push ebx
call edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call ebx
test eax, eax
je 0x10008d1f
mov dword [ebp - 0x7c], 1
jmp 0x10008d8c
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
call fcn.10012df0
push dword [ebp - 0x80]
lea eax, [ebp - 0x78]
push str._s.inst.del
push 0x103
push eax
call fcn.1000efc3
add esp, 0x1c
lea eax, [ebp - 0x78]
push eax
call esi
test eax, eax
je 0x10008d68
push 0x80
lea eax, [ebp - 0x78]
push eax
call edi
lea eax, [ebp - 0x78]
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call esi
test eax, eax
je 0x10008d8c
push 4
push 0
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x7c], edi
call esi
mov eax, dword [ebp - 0x7c]
pop edi
mov ecx, dword [ebp + 0x190]
pop esi
xor ecx, ebp
pop ebx
call fcn.1000e51f
add ebp, 0x194
leave
ret

Function at 0x10008da7
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1002c294]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x10008e4a
cmp word [esi], 0
je 0x10008e4a
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push esi
call edi
test eax, eax
je 0x10008ddf
xor eax, eax
inc eax
jmp 0x10008e4c
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.10012df0
push esi
push 0x1002548c
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.1000efc3
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x10008e4a
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x10008e3f
lea eax, [ebp - 0x20c]
push eax
call fcn.10008da7
pop ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x10008e4c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1000e51f
leave
ret

Function at 0x10008e5a
Capabilities:
Read .ini file

Disassembly:
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x10008e69
mov esi, eax
cmp word [eax], di
jne 0x10008e6e
mov esi, str.defaultkey
call fcn.10006d19
push eax
push 0xffffffffffffffff
push esi
push str.main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 0xffffffff
je 0x10008e90
mov ecx, dword [esp + 0xc]
xor edi, edi
mov dword [ecx], eax
inc edi
mov eax, edi
pop edi
pop esi
ret
Function at 0x10008e95
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x1002c294]
xor eax, ebp
mov dword [ebp + 0x18c], eax
mov eax, dword [ebp + 0x198]
xor ecx, ecx
mov dword [ebp - 0x80], ecx
cmp ebx, ecx
je 0x10008f3c
push esi
push edi
cmp eax, ecx
je 0x10008ecc
mov edi, eax
cmp word [eax], cx
jne 0x10008ed1
mov edi, str.defaultkey
xor eax, eax
push 0x206
mov word [ebp - 0x7c], ax
push ecx
lea eax, [ebp - 0x7a]
push eax
call fcn.10012df0
add esp, 0xc
call fcn.10006d19
push eax
push 0x103
lea eax, [ebp - 0x7c]
push eax
mov esi, str.initestvalue
push esi
push edi
push str.main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.1000ea21
pop ecx
pop ecx
pop edi
pop esi
test eax, eax
je 0x10008f37
lea eax, [ebp - 0x7c]
push eax
push 0x1002548c
push 0x3f
push ebx
call fcn.1000efc3
add esp, 0x10
mov dword [ebp - 0x80], 1
mov eax, dword [ebp - 0x80]
jmp 0x10008f3e
xor eax, eax
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
call fcn.1000e51f
add ebp, 0x190
leave
ret

Function at 0x100097be
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x100097d9
xor eax, eax
jmp 0x10009869
mov dword [ebx + 0x10], esi
xor esi, esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebx + 0x14], eax
lea eax, [ebx + 0xc]
push eax
push esi
push ebx
push 0x100098b3
push 0x200000
push esi
call fcn.1000ecf3
add esp, 0x18
cmp eax, esi
je 0x100097d2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x18]
mov dword [ebp - 0x1c], esi
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
jmp 0x10009839
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push esi
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
call edi
test eax, eax
jne 0x10009825
push 0x4ff
push 0xffffffffffffffff
push esi
lea eax, [ebx + 0x14]
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, esi
je 0x10009865
cmp eax, 0xffffffff
jne 0x10009839
mov eax, dword [ebx + 4]
pop edi
pop esi
leave
ret

Function at 0x1000986c
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetParent]
push 0xfffffffffffffff0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0x3fffffff
or eax, 0x80000000
push eax
push 0xfffffffffffffff0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push 0
push 0x12
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
ret

Function at 0x1000e51f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002c294]
jne 0x1000e529
repz ret
jmp fcn.10012c7a
Function at 0x1001e4e0
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.10014964
and dword [ebp - 4], 0
cmp dword [0x1002e6bc], 0
mov ebx, eax
jne 0x1001e591
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1001e642
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1001e642
push eax
call fcn.100148f2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1002e6bc], eax
call esi
push eax
call fcn.100148f2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1002e6c0], eax
call esi
push eax
call fcn.100148f2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1002e6c4], eax
call esi
push eax
call fcn.100148f2
pop ecx
mov dword [0x1002e6cc], eax
test eax, eax
je 0x1001e591
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100148f2
pop ecx
mov dword [0x1002e6c8], eax
mov eax, dword [0x1002e6c8]
cmp eax, ebx
je 0x1001e5e9
cmp dword [0x1002e6cc], ebx
je 0x1001e5e9
push eax
call fcn.1001496d
push dword [0x1002e6cc]
mov esi, eax
call fcn.1001496d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1001e5e9
test edi, edi
je 0x1001e5e9
call esi
test eax, eax
je 0x1001e5e0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001e5e0
test byte [ebp - 0xc], 1
jne 0x1001e5e9
or dword [ebp + 0x10], 0x200000
jmp 0x1001e622
mov eax, dword [0x1002e6c0]
cmp eax, ebx
je 0x1001e622
push eax
call fcn.1001496d
pop ecx
test eax, eax
je 0x1001e622
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1001e622
mov eax, dword [0x1002e6c4]
cmp eax, ebx
je 0x1001e622
push eax
call fcn.1001496d
pop ecx
test eax, eax
je 0x1001e622
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1002e6bc]
call fcn.1001496d
pop ecx
test eax, eax
je 0x1001e642
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1001e644
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4021a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
test eax, eax
je 0x402210
cmp byte [esi + eax - 1], 0xa
mov ebx, eax
je 0x402208
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4080c4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
xor eax, eax
jmp 0x4021cd
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x402be0
Capabilities:
Accept command line arguments
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete dl
movzx edx, dl
inc edx
mov dword [esp], edx
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop

Function at 0x402c50
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x68
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test eax, eax
je 0x402ce1
cmp eax, 9
je 0x402cd0
cmp eax, 0x20
je 0x402cd0
xor edi, edi
xor esi, esi
jmp 0x402c90
cmp eax, 0x5c
je 0x402d48
cmp eax, 0x22
je 0x402d30
xor esi, esi
movzx eax, word [ebx + 2]
add ebx, 2
test eax, eax
je 0x402ce1
cmp eax, 9
sete cl
cmp eax, 0x20
sete dl
or cl, dl
je 0x402c90
test edi, 1
jne 0x402c90
mov esi, esi
lea edi, [edi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp eax, 9
je 0x402cd0
cmp eax, 0x20
je 0x402cd0
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x402d50
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
xor edx, edx
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._wWinMain_16
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
and esi, 1
jne 0x402ca2
xor edi, 1
jmp 0x402ca4
inc esi
jmp 0x402ca4
mov word [ebp - 0x2c], 1
mov esi, 1
jmp 0x402cfa
Function at 0x401000
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov word [ebp - 0x9c], 0x31
mov word [ebp - 0x64], 0x20
mov word [ebp - 0xc4], 0x2e
mov dword [ebp - 0xd8], 0x25
mov byte [ebp - 0x19], 0x24
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0xa4], eax
movzx ecx, byte [ebp - 0x89]
sub ecx, 0x2e
and ecx, dword [ebp - 0x48]
and ecx, dword [ebp - 0x44]
mov word [ebp - 0xc4], cx
mov edx, dword [ebp - 0xa4]
mov eax, dword [ebp + 8]
mov dword [edx], eax
movzx ecx, word [ebp - 0x2c]
mov edx, 0x25
sub edx, ecx
mov dword [ebp - 0xb4], edx
movzx eax, byte [ebp - 0x72]
cmp eax, 0x12
jl 0x4010ae
movzx ecx, word [ebp - 0x9c]
add ecx, dword [ebp - 0xa0]
xor ecx, dword [ebp - 0x44]
movzx edx, word [ebp - 0x50]
add edx, 0x31
xor ecx, edx
mov byte [ebp - 0x8b], cl
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x4c]
lea edx, [ecx + eax - 0x1b]
mov dword [ebp - 0xd8], edx
jmp 0x4010e2
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x14]
xor eax, 0x43
mov ecx, dword [ebp - 0x30]
sub ecx, 0x57
xor eax, ecx
mov byte [ebp - 0x59], al
movzx edx, word [ebp - 0x90]
add edx, 0x37
movzx eax, word [ebp - 0x38]
sub edx, eax
movzx ecx, word [ebp - 0x38]
add edx, ecx
movzx eax, word [ebp - 0x38]
sub eax, edx
mov word [ebp - 0x38], ax
mov dword [ebp - 0x60], 0x53
mov byte [ebp - 0x71], 0x9a
movzx ecx, word [ebp - 0x9c]
add ecx, dword [ebp - 0x30]
xor ecx, 0x51
or ecx, 0x6c
mov byte [ebp - 0x8b], cl
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0xb8]
add edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x40]
mov word [ebp - 0x64], dx
movzx eax, byte [ebp - 0x19]
add eax, 0x14
movzx ecx, byte [ebp - 0xa9]
sub eax, ecx
sub eax, 0x1e
mov byte [ebp - 0xb9], al
mov edx, dword [ebp + 8]
xor edx, 0xffffffc9
mov dword [ebp - 0x48], edx
mov eax, dword [ebp + 8]
sub eax, dword [ebp - 0x14]
add eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0x10]
lea edx, [eax + ecx + 0xf]
mov byte [ebp - 1], dl
mov eax, dword [ebp + 8]
sub eax, dword [ebp - 0xa0]
sub eax, dword [ebp - 0xb4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x30]
mov esp, ebp
pop ebp
ret
Function at 0x403b54
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f0fc]
jne 0x403b5e
repz ret
jmp fcn.00403ec4

Function at 0x406fbf
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00405d8f
xor ebx, ebx
cmp dword [0x424720], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x407094
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x406fff
xor eax, eax
jmp 0x407158
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41cfb8
push edi
call esi
cmp eax, ebx
je 0x406ff8
push eax
call fcn.00405d2c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x424720], eax
call esi
push eax
call fcn.00405d2c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x424724], eax
call esi
push eax
call fcn.00405d2c
mov dword [0x424728], eax
lea eax, [ebp - 8]
push eax
call fcn.00404fc4
test eax, eax
pop ecx
pop ecx
je 0x407062
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00406545
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x407094
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00405d2c
cmp eax, ebx
pop ecx
mov dword [0x424730], eax
je 0x407094
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405d2c
pop ecx
mov dword [0x42472c], eax
mov eax, dword [0x42472c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40710d
cmp dword [0x424730], esi
je 0x40710d
push eax
call fcn.00405d98
pop ecx
call eax
cmp eax, ebx
je 0x4070da
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x424730]
call fcn.00405d98
pop ecx
call eax
test eax, eax
je 0x4070da
test byte [ebp - 0x18], 1
jne 0x40710d
lea eax, [ebp - 0xc]
push eax
call fcn.00404ffb
test eax, eax
pop ecx
je 0x4070f5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00406545
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x407104
or dword [ebp + 0x10], 0x200000
jmp 0x40713e
or dword [ebp + 0x10], 0x40000
jmp 0x40713e
mov eax, dword [0x424724]
cmp eax, esi
je 0x40713e
push eax
call fcn.00405d98
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40713e
mov eax, dword [0x424728]
cmp eax, esi
je 0x40713e
push dword [ebp - 4]
push eax
call fcn.00405d98
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x424720]
call fcn.00405d98
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404c70
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bed90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1774
call fcn.00591b50
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x1f4
xor eax, eax
lea edi, [ebp - 0x7e4]
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xd0c]
mov dword [ebp - 0x14], esi
test eax, eax
mov dword [ebp - 4], 0
push 0x7cf
je 0x404cf8
mov ecx, dword [esi + 0xd08]
lea eax, [ebp - 0x1784]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x404d0c
lea edx, [ebp - 0x7e4]
push 0x7d0
lea eax, [ebp - 0x1784]
push edx
push eax
call fcn.00404160
add esp, 0xc
jmp 0x404d0c
mov edx, dword [esi + 0xd08]
lea ecx, [ebp - 0x7e4]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x7e4]
mov ecx, esi
push eax
call fcn.00404920
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408280
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bf380
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1770
call fcn.00591b50
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x1f4
xor eax, eax
lea edi, [ebp - 0x7e0]
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x4f8]
mov dword [ebp - 4], 0
test eax, eax
push 0x7cf
je 0x408305
mov ecx, dword [esi + 0x4f4]
lea eax, [ebp - 0x1780]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x408319
lea edx, [ebp - 0x7e0]
push 0x7d0
lea eax, [ebp - 0x1780]
push edx
push eax
call fcn.00404160
add esp, 0xc
jmp 0x408319
mov edx, dword [esi + 0x4f4]
lea ecx, [ebp - 0x7e0]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x7e0]
lea ecx, [esi + 0x4d0]
push eax
push 0x665f68
push ecx
call fcn.005a6a18
add esp, 0xc
mov ecx, esi
call fcn.00408970
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4090b0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bf4e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x318
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov eax, dword [esi + 0x78]
push ebx
push ebx
push 0x1009
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_SendMessageA]
xor edi, edi
mov dword [ebp - 0x14], ebx
mov eax, dword [esi + 0x98]
cmp ebx, dword [eax + 0x1c]
jge 0x409247
mov ecx, dword [0x68d01c]
mov dword [ebp - 0x18], ecx
mov edx, dword [eax + 0x18]
lea ebx, [ebx + ebx*8]
shl ebx, 2
mov byte [ebp - 4], 1
mov ecx, dword [edx + ebx + 4]
mov edx, dword [eax + 4]
push ecx
push edx
lea eax, [ebp - 0x18]
push 0x6663b0
push eax
call fcn.005a6a18
mov edx, dword [ebp - 0x18]
add esp, 0x10
lea ecx, [esi + 0x5c]
push 0
push 0
push 0
push 0
push edx
push edi
push 1
call fcn.005a7d84
inc edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edi
mov ecx, 0xad
xor eax, eax
lea edi, [ebp - 0x324]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x98]
push 0x4411
lea edx, [ebp - 0x324]
push 0x160
mov ecx, dword [eax + 0x18]
push edx
push 0x80
mov eax, dword [ecx + ebx]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov edx, dword [esi + 0x78]
mov eax, dword [ebp - 0x320]
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x48]
push ecx
push 0
push 0x1006
push edx
mov dword [ebp - 0x48], 2
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x44], edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0x98]
mov ecx, dword [eax + 0x18]
mov eax, dword [ecx + ebx + 8]
test eax, eax
mov eax, 0x692330
jne 0x4091d3
mov eax, 0x69232c
mov eax, dword [eax]
lea ecx, [esi + 0x5c]
push eax
push 1
push edi
call fcn.005a7e7f
mov edx, dword [esi + 0x98]
mov dword [ebp - 0x68], 2
lea ecx, [ebp - 0x70]
mov eax, dword [edx + 0x18]
mov edx, dword [esi + 0x78]
push ecx
push edi
mov ebx, dword [eax + ebx]
push 0x1074
push edx
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x14]
lea ecx, [esi + 0x5c]
push eax
push 0
push 0
push 0
push 0
push 4
push 0
push edi
call fcn.005a7e06
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.005adc4d
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x14], eax
mov ebx, eax
jmp 0x4090f1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409570
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5bf57b
push eax
mov dword fs:[0], esp
sub esp, 0x220
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x14], edi
je 0x409688
mov eax, dword [esi + 8]
mov dword [esp + 8], edi
cmp eax, edi
mov dword [esp + 0xc], edi
jle 0x409688
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ebx, ebx
mov eax, dword [esi + 4]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
mov eax, dword [eax + ebx + 4]
push edx
push edi
push 0xf003f
push edi
push 0x691568
push edi
push eax
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40961a
lea ecx, [esp + 0x20]
call fcn.00486d60
push 1
push str.Cannot_open__create__registry_subkey_during_CBrowsersIntegration::Save__._r_n
lea ecx, [esp + 0x28]
mov dword [esp + 0x240], edi
call fcn.00486e80
lea ecx, [esp + 0x20]
mov dword [esp + 0x238], 0xffffffff
call fcn.00486e70
jmp 0x409660
mov ecx, dword [esi + 4]
xor eax, eax
mov edx, dword [ecx + ebx]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x18]
push 1
push eax
push 0x666708
push edx
call ebp
mov eax, dword [esi + 4]
lea edx, [esp + 0x18]
push 4
push edx
mov ecx, dword [eax + ebx + 8]
mov eax, dword [esp + 0x18]
push 4
push 0
push 0x666704
push eax
mov dword [esp + 0x30], ecx
call ebp
xor edi, edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 8]
inc eax
add ebx, 0xc
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4095b7
mov eax, dword [esp + 0x10]
pop ebp
cmp eax, edi
pop ebx
je 0x409688
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x228]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x22c
ret