joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470360
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49dd90
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00495210
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x470393
xor al, al
jmp 0x4704bf
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x4703b5
xor al, al
jmp 0x4704bf
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x4703c8
xor al, al
jmp 0x4704bf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x4703dc
xor al, al
jmp 0x4704bf
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.00488fcb
test eax, eax
jne 0x470410
xor al, al
jmp 0x4704bf
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x6e5a94
mov dword [esp + 0x20], ebp
call fcn.00495210
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.00491e02
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.00491e59
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x4704a4
mov ax, word [ebx]
test ax, ax
je 0x470496
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.004704e0
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x47047a
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.00491e59
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x470a20
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.004934ee
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x470a66
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.00479928
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x703bac
push ecx
call fcn.0047b012
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x48d2e8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48d320
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.0048b38d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048b365
jmp 0x48d32c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48eae2
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 0x48eb24
call fcn.00495210
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48eb24
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48eb1b
xor eax, eax
jmp 0x48eb2c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048eb32
pop edi
pop esi
pop ebx
ret 4

Function at 0x495740
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 0x49576e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49578c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004956a6
jmp 0x49578c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49578c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004956a6
test edi, edi
mov eax, edi
jne 0x495776
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40158c
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x4015e2
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov ebx, ecx
jne 0x4015f8
push 0x80004005
call fcn.0040130d
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4015fb
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x401cc9
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [esi + 0x34], eax
jne 0x401ce5
xor al, al
jmp 0x401cff
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x401c95
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ecx
ret

Function at 0x401d98
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x430158]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
call fcn.00401557
mov edi, eax
cmp edi, esi
je 0x401e00
lea ecx, [ebp - 0x70]
call fcn.004014f2
mov eax, edi
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040dfe9
add ebp, 0x198
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x401e18
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.00401d98
cmp eax, esi
jne 0x401e4b
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
je 0x401e08
lea ecx, [ebp - 0x70]
call fcn.004014f2
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.004014f2
mov eax, esi
jmp 0x401de6
Function at 0x4055e4
Capabilities:
Read file via mapping

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x4055f2
xor eax, eax
jmp 0x405647
push edi
call fcn.004052a9
push dword [esp + 0xc]
mov edi, 0xb08
push edi
push 0
push 4
lea ecx, [esi + 0x10]
call fcn.0040106a
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [esi + 4], eax
je 0x40563c
push edi
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 8], eax
jne 0x405640
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x405646
xor eax, eax
inc eax
mov dword [esi + 0xc], eax
pop edi
pop esi
ret 4
Function at 0x407761
Capabilities:
Hide graphical window

Disassembly:
push 0xc
mov eax, 0x4237d0
call fcn.0040dff8
mov esi, ecx
push 1
lea edi, [esi + 0x30]
push edi
lea ebx, [esi + 0x20]
push 0x3ec
mov ecx, ebx
call fcn.00407618
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi]
call fcn.00407935
lea eax, [esi + 0x2c]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.004047f2
movzx eax, word [esi + 0x28]
and dword [ebp - 4], 0
push eax
push ecx
lea eax, [esi + 0x24]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.004047f2
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push ebx
mov byte [ebp - 4], 1
call fcn.004047f2
or dword [ebp - 4], 0xffffffff
call fcn.00408918
add esp, 0x10
test eax, eax
je 0x4077f5
push ecx
lea eax, [esi + 0x38]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.004047f2
push dword [esi + 0x34]
call fcn.00407a99
pop ecx
pop ecx
movzx eax, word [ebp + 0xc]
push eax
mov ecx, esi
call fcn.00406455
xor eax, eax
call fcn.0040e097
ret 0x10
Function at 0x408281
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x430158]
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [0x4316ec]
test eax, eax
jne 0x4082fc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x70], 2
jne 0x4082e7
cmp dword [ebp - 0x7c], 5
jb 0x4082e7
push str.GetUserDefaultUILanguage
push 0x424c08
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4082e7
call eax
movzx eax, ax
test ax, ax
jne 0x4082f0
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
movzx eax, ax
push eax
call fcn.00408252
pop ecx
mov dword [0x4316ec], eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.0040dfe9
add ebp, 0x98
leave
ret

Function at 0x408311
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x431704]
test eax, eax
jne 0x408386
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareBaiduBaiduToolbar
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408373
push esi
lea eax, [ebp - 8]
push eax
mov esi, 0x4316f0
push esi
push 0
push 0
push str.CurrentLanguage
push dword [ebp - 4]
mov dword [ebp - 8], 0x14
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408369
mov dword [0x431704], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, dword [0x431704]
test eax, eax
jne 0x408386
call fcn.00408281
mov dword [0x431704], eax
leave
ret
Function at 0x408918
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x10
mov eax, 0x423abe
call fcn.0040e061
xor esi, esi
push esi
lea ecx, [ebp + 0x14]
mov dword [ebp - 4], 2
mov dword [ebp - 0x14], esi
call fcn.00402baa
mov ebx, eax
cmp ebx, esi
je 0x408a33
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x408a33
lea edi, [eax + eax]
mov eax, edi
call fcn.0040ee80
mov eax, esp
push esi
push edi
push ebx
push eax
call fcn.004012a9
cmp eax, esi
je 0x408a33
push esi
push eax
call fcn.0041057e
test eax, eax
pop ecx
pop ecx
jne 0x408a33
push esi
push esi
push 3
push esi
push 1
push SysReAllocString
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x408a33
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call fcn.0040ea97
mov edi, eax
cmp edi, esi
pop ecx
je 0x408a33
push ebx
push esi
push edi
call fcn.0040ede0
add esp, 0xc
push esi
lea eax, [ebp - 0x18]
push eax
push ebx
push edi
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x4e20
push dword [ebp - 0x18]
lea ecx, [ebp + 0xc]
push edi
push esi
call fcn.00402baa
push eax
movzx eax, word [ebp + 0x10]
push eax
push esi
lea ecx, [ebp + 8]
call fcn.00402baa
push eax
call fcn.0040857a
add esp, 0x18
test eax, eax
je 0x408a0f
mov dword [ebp - 0x14], 1
push edi
call fcn.0040e99a
pop ecx
lea ecx, [ebp + 8]
call fcn.0040216b
lea ecx, [ebp + 0xc]
call fcn.0040216b
lea ecx, [ebp + 0x14]
call fcn.0040216b
mov eax, dword [ebp - 0x14]
jmp 0x408a4d
lea ecx, [ebp + 8]
call fcn.0040216b
lea ecx, [ebp + 0xc]
call fcn.0040216b
lea ecx, [ebp + 0x14]
call fcn.0040216b
xor eax, eax
lea esp, [ebp - 0x2c]
call fcn.0040e0ab
ret

Function at 0x408a56
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x430158]
xor eax, ebp
mov dword [ebp + 0x94], eax
push esi
lea eax, [ebp - 0x80]
push eax
xor esi, esi
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x70], 2
jne 0x408a92
cmp dword [ebp - 0x7c], 6
jb 0x408a92
inc esi
mov ecx, dword [ebp + 0x94]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040dfe9
add ebp, 0x98
leave
ret
Function at 0x408aaa
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x430158]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push 0x63
lea eax, [ebp - 0x67]
push ebx
push eax
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x74], ebx
xor esi, esi
mov byte [ebp - 0x68], bl
call fcn.0040ede0
lea eax, [ebp - 0x68]
add esp, 0xc
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
push eax
push 8
mov byte [ebp - 0x70], bl
mov byte [ebp - 0x6f], bl
mov byte [ebp - 0x6e], bl
mov byte [ebp - 0x6d], bl
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x408bb6
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
push ebx
push 2
push dword [ebp - 0x80]
call edi
test eax, eax
jne 0x408b3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x408bb5
push dword [ebp - 0x74]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
push esi
push 2
push dword [ebp - 0x80]
call edi
test eax, eax
je 0x408bb5
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x408bb5
xor edi, edi
cmp dword [esi], ebx
jbe 0x408bb5
lea eax, [esi + 4]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
push dword [eax]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x408ba4
add dword [ebp - 0x7c], 8
inc edi
cmp edi, dword [esi]
jb 0x408b87
jmp 0x408bb5
test byte [esi + edi*8 + 8], 4
je 0x408bb5
mov dword [ebp - 0x84], 1
pop edi
cmp dword [ebp - 0x78], ebx
je 0x408bc4
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp esi, ebx
je 0x408bcf
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x84]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040dfe9
leave
ret

Function at 0x408d08
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
jne 0x408d26
xor eax, eax
jmp 0x408d71
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0xfde9
call fcn.004094b8
add esp, 0x14
cmp dword [ebp - 4], esi
je 0x408d6f
cmp dword [ebp - 8], esi
jle 0x408d61
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
cmp dword [ebp - 4], esi
je 0x408d6f
push dword [ebp - 4]
call fcn.0040e99a
pop ecx
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x409265
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 4
mov eax, 0x423b30
call fcn.0040dff8
xor edi, edi
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
mov eax, dword [0x42f0b4]
mov dword [esi], eax
push 0x104
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 1
call fcn.00402baa
push eax
push edi
push edi
push 0x26
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004039da
push str.Internet_Exploreriexplore.exe
mov ecx, esi
call fcn.00408553
mov eax, esi
call fcn.0040e097
ret

Function at 0x4092bf
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 4
mov eax, 0x423b64
call fcn.0040dff8
xor edi, edi
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
mov eax, dword [0x42f0b4]
mov dword [esi], eax
push 0x104
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 1
call fcn.00402baa
push eax
push edi
push edi
push 0x26
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004039da
push str.BaiduToolbar_
mov ecx, esi
call fcn.00408553
mov eax, esi
call fcn.0040e097
ret

Function at 0x409357
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
or edi, 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4093aa
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp - 8], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4093a1
cmp dword [ebp - 0xc], 4
jne 0x4093a1
xor edi, edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
leave
ret

Function at 0x4093af
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0x18]
push edi
push esi
push 0
push dword [ebp + 0x14]
or edi, 0xffffffff
call fcn.0040ede0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x409410
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp - 8], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409407
cmp dword [ebp - 0xc], 1
jne 0x409407
xor edi, edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x409416
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
or esi, 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x409457
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40944e
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x40945c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
or esi, 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4094b3
mov eax, dword [ebp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x40947e
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x14]
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4094aa
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x409dcf
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push 1
mov edi, dword [esi + 4]
pop ebx
cmp edi, 2
jae 0x409e3b
test edi, edi
je 0x409dee
mov eax, dword [esi]
mov ecx, dword [esi + 0x44]
mov al, byte [eax]
mov byte [ecx], al
call fcn.0041164a
and dword [eax], 0
push dword [esi + 0x40]
mov eax, 0x4000
mov ecx, edi
sar eax, cl
push eax
mov eax, dword [esi + 0x44]
add eax, edi
push ebx
push eax
call fcn.0040fa80
add esp, 0x10
test eax, eax
jne 0x409e23
mov ecx, dword [esi + 0x40]
test byte [ecx + 0xc], 0x20
je 0x409e23
or dword [esi + 0x38], 0xffffffff
add dword [esi + 4], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x44]
cmp eax, 2
mov dword [esi], ecx
jae 0x409e3b
mov dword [esi + 0x58], eax
jmp 0x409f19
mov eax, dword [esi]
movzx ecx, byte [eax]
cmp ecx, dword [0x425994]
jne 0x409f16
movzx ecx, byte [eax + 1]
cmp ecx, dword [0x425998]
jne 0x409f16
add dword [esi + 4], 0xfffffffe
add eax, 2
push esi
mov dword [esi], eax
call fcn.00409f1d
push esi
mov edi, eax
call fcn.00409f1d
pop ecx
cmp edi, 8
pop ecx
mov ebx, eax
jne 0x409f0d
test bl, 0xe0
jne 0x409f0d
push 6
pop edi
push esi
call fcn.00409f1d
dec edi
pop ecx
jne 0x409e8c
test bl, 4
je 0x409ec3
push esi
call fcn.00409f1d
push esi
mov edi, eax
call fcn.00409f1d
pop ecx
shl eax, 8
pop ecx
add edi, eax
mov eax, edi
dec edi
test eax, eax
je 0x409ec3
push esi
call fcn.00409f1d
cmp eax, 0xffffffff
pop ecx
jne 0x409eb0
test bl, 8
je 0x409ed8
push esi
call fcn.00409f1d
test eax, eax
pop ecx
je 0x409ed8
cmp eax, 0xffffffff
jmp 0x409ec6
test bl, 0x10
je 0x409eed
push esi
call fcn.00409f1d
test eax, eax
pop ecx
je 0x409eed
cmp eax, 0xffffffff
jmp 0x409edb
test bl, 2
je 0x409eff
push 2
pop edi
push esi
call fcn.00409f1d
dec edi
pop ecx
jne 0x409ef5
mov eax, dword [esi + 0x3c]
neg eax
sbb eax, eax
and al, 0xfd
mov dword [esi + 0x38], eax
jmp 0x409f19
mov dword [esi + 0x38], 0xfffffffd
jmp 0x409f19
mov dword [esi + 0x58], ebx
pop edi
pop esi
pop ebx
ret

Function at 0x409f1d
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x3c], 0
je 0x409f2d
or eax, 0xffffffff
pop esi
ret
cmp dword [esi + 4], 0
jne 0x409f74
call fcn.0041164a
and dword [eax], 0
push dword [esi + 0x40]
push 0x4000
push 1
push dword [esi + 0x44]
call fcn.0040fa80
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
jne 0x409f6f
mov ecx, dword [esi + 0x40]
mov dword [esi + 0x3c], 1
or eax, 0xffffffff
test byte [ecx + 0xc], 0x20
je 0x409f7f
mov dword [esi + 0x38], eax
pop esi
ret
mov eax, dword [esi + 0x44]
mov dword [esi], eax
mov ecx, dword [esi]
dec dword [esi + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [esi], ecx
pop esi
ret