joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40619e
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x4233a8], 0x4c554e
mov edi, 0x400
mov ebp, 0x4233a8
je 0x4061ea
push 1
push 0
push esi
call fcn.004060c8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406309
cmp eax, edi
jg 0x406309
mov esi, 0x4237a8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406309
cmp eax, edi
jg 0x406309
push esi
push ebp
push str._s_s_r_n
push 0x422fa8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x425c54]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406551
push 4
push 0xc0000000
push esi
call fcn.004060c8
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x406309
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406302
push edi
push esi
push ebp
call fcn.00406140
test eax, eax
je 0x406302
push str._Rename__r_n
push esi
call fcn.0040602d
test eax, eax
jne 0x4062a0
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4062d5
add eax, 0xa
push 0x40abc0
push eax
call fcn.0040602d
mov ebp, eax
test ebp, ebp
je 0x4062d1
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4062c2
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4062bc
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x4062d7
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x422fa8
push eax
call fcn.00406083
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.0040616f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40630e
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x406331
push dword [esp + 8]
push dword [esp + 8]
call fcn.0040619e
pop ecx
pop ecx
inc dword [0x425cf0]
ret 8

Function at 0x406416
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x400
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004063b5
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x406485
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [esi + 0x3ff], 0
test edi, edi
pop edi
jne 0x406485
cmp dword [ebp + 0xc], 1
je 0x406488
cmp dword [ebp + 0xc], 2
je 0x406488
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x406aa3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406ac7
xor eax, eax
test eax, eax
je 0x406ad9
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406ad9
xor ecx, ecx
jmp 0x406adc
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a2b4]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x406bc8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x423bac], 0
push esi
jne 0x406bff
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406bd9
mov dword [ecx*4 + 0x423ba8], eax
inc ecx
cmp ecx, 0x100
jl 0x406bd4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406c30
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x423ba8]
xor eax, esi
inc ecx
dec edx
jne 0x406c12
pop edi
not eax
pop esi
ret 0xc
Function at 0x4011d9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 4
push esi
push 0x4011c6
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
leave
ret

Function at 0x401c1e
Capabilities:
Resume thread

Disassembly:
push dword [ecx - 0x18]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
ret
Function at 0x4030e4
Capabilities:
Reference http user-agent string

Disassembly:
push 0x44
mov eax, 0x5eff26
call fcn.005c5e27
push 0xf
xor ebx, ebx
pop edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov eax, 0x400
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.004042a7
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x2c]
jae 0x403120
lea eax, [ebp - 0x2c]
mov esi, dword [sym.imp.urlmon.dll_ObtainUserAgentString]
lea ecx, [ebp - 0x50]
push ecx
push eax
push ebx
call esi
cmp eax, 0x8007000e
jne 0x40318d
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x2c]
call fcn.004042a7
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40314c
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x50]
push ecx
push eax
push ebx
call esi
cmp eax, ebx
jge 0x40319a
push str.Retry_ObtainUserAgentString_Failed
push 0x29
push 4
push dword [0x6686d0]
mov ebx, str.AppendUserAgent
mov edi, str.Launcher.cpp
call fcn.004169e0
add esp, 0x10
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402696
xor al, al
call fcn.005c5eaa
ret
cmp eax, ebx
jge 0x40319a
push str.ObtainUserAgentString_Failed
push 0x2f
jmp 0x40315f
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4031a6
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.00402342
mov esi, str._device_type:pc
push esi
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 1
call fcn.00402b5c
cmp dword [ebp - 0x34], 0x10
mov eax, dword [ebp - 0x48]
jae 0x4031d7
lea eax, [ebp - 0x48]
push ebx
push dword [ebp - 0x38]
push eax
push 0x10000001
call dword [sym.imp.urlmon.dll_UrlMkSetSessionOption]
test eax, eax
jns 0x40323e
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4031f7
lea eax, [ebp - 0x2c]
push esi
push eax
push str.UrlMkSetSessionOption_Failed_LastAgent_s_AppendInfo_s
push 0x37
push 4
push dword [0x6686d0]
mov ebx, str.AppendUserAgent
mov edi, str.Launcher.cpp
call fcn.004169e0
add esp, 0x18
mov byte [ebp - 0x49], 0
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00402696
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402696
mov al, byte [ebp - 0x49]
jmp 0x403187
mov byte [ebp - 0x49], 1
jmp 0x403220
Function at 0x403805
Capabilities:
Get common file path

Disassembly:
push 0x114
mov eax, 0x5f2723
call fcn.005c5e27
push 1
push 0x21
lea eax, [ebp - 0x118]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
call fcn.004bc495
push eax
lea ecx, [ebp - 0x11c]
call fcn.0040304f
and dword [ebp - 4], 0
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x11c]
push 0x6278a4
push eax
call fcn.00405af6
mov esi, dword [ebp - 0x11c]
add esp, 0xc
push fcn.00403559
push ecx
add esi, 0xfffffff0
mov dword [ebp - 0x120], esp
mov edi, esp
push esi
call fcn.00405bf0
add eax, 0x10
pop ecx
mov dword [edi], eax
call fcn.00403727
pop ecx
pop ecx
mov ecx, esi
call fcn.004030a5
call fcn.005c5eaa
ret
Function at 0x407c62
Capabilities:
Create process on windows

Disassembly:
push 0x10
mov eax, 0x5f1864
call fcn.005c5dbe
mov esi, ecx
call fcn.004bc495
push eax
lea ecx, [ebp - 0x14]
call fcn.0040304f
and dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x627ca0
lea edi, [ebp - 0x14]
call fcn.00405d46
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.http_shellopencommand
mov byte [ebp - 4], 1
call fcn.00405d46
mov byte [ebp - 4], 0
call fcn.004154e0
push dword [ebp - 0x14]
mov ebx, str.CLauncherDlg::OnDefaultBrowserOpenPageFromJS
push str.GetRegKey_strBrowserName___s
push 0x331
push 2
push dword [0x6686d0]
mov edi, str.LauncherDlg.cpp
mov byte [ebp - 0xd], al
call fcn.004169e0
add esp, 0x1c
cmp byte [ebp - 0xd], 0
je 0x407d43
push 0
push str..exe
lea ecx, [ebp - 0x14]
call fcn.00408e2f
add eax, 3
push eax
push 1
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040493e
push 3
xor eax, eax
push eax
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 2
push eax
push dword [esi + 0x20]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push dword [ebp + 8]
mov esi, dword [ebp - 0x18]
push esi
push str.ShellExcute_open__s__s
push 0x33b
push 2
push dword [0x6686d0]
call fcn.004169e0
add esp, 0x18
lea ecx, [esi - 0x10]
call fcn.004030a5
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004030a5
call fcn.005c5e96
ret 4
Function at 0x409109
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x5eed13
call fcn.005c5e27
mov eax, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x38], ebx
cmp eax, 0xffffffff
jne 0x40912c
xor eax, eax
call fcn.005c5eaa
ret 4
mov ecx, dword [ebx + 0x24]
mov edx, dword [ecx]
xor esi, esi
cmp edx, esi
je 0x409152
mov ecx, dword [ebx + 0x34]
mov edi, dword [ecx]
add edi, edx
cmp edx, edi
jae 0x409152
dec dword [ecx]
mov ebx, dword [ebx + 0x24]
mov ecx, dword [ebx]
lea edx, [ecx + 1]
mov dword [ebx], edx
mov byte [ecx], al
jmp 0x409124
cmp dword [ebx + 0x54], esi
jne 0x40915c
or eax, 0xffffffff
jmp 0x409124
mov eax, ebx
call fcn.00409b7e
cmp dword [ebx + 0x44], esi
jne 0x409181
movsx eax, byte [ebp + 8]
push dword [ebx + 0x54]
push eax
call fcn.005bfbad
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x409157
mov eax, dword [ebp + 8]
jmp 0x409124
mov al, byte [ebp + 8]
push esi
push 8
mov dword [ebp - 0x1c], esi
pop edi
lea esi, [ebp - 0x2c]
mov byte [ebp - 0x2d], al
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00409be0
and dword [ebp - 4], 0
lea eax, [ebx + 0x4c]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40924a
lea eax, [ebp - 0x2c]
mov edx, eax
add eax, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x34]
push edi
push eax
push edx
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x2d]
push eax
push dword [ebp - 0x40]
call dword [esi + 0x14]
test eax, eax
js 0x409272
cmp eax, 1
jg 0x409252
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4091f6
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, eax
je 0x40921c
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x409209
lea eax, [ebp - 0x2c]
push dword [ebx + 0x54]
push esi
push 1
push eax
call fcn.005c019e
add esp, 0x10
cmp esi, eax
jne 0x409272
lea eax, [ebp - 0x2d]
mov byte [ebx + 0x49], 1
cmp dword [ebp - 0x3c], eax
jne 0x40926d
test esi, esi
jne 0x4091ab
cmp dword [ebp - 0x1c], 0x20
jae 0x409272
push esi
push 8
pop ebx
lea esi, [ebp - 0x2c]
call fcn.00404b13
mov ebx, dword [ebp - 0x38]
jmp 0x4091ab
mov edx, dword [ebp - 0x2c]
jmp 0x4091bd
cmp eax, 3
jne 0x409272
movsx eax, byte [ebp - 0x2d]
push dword [ebx + 0x54]
push eax
call fcn.005bfbad
or esi, 0xffffffff
pop ecx
pop ecx
cmp eax, esi
je 0x409275
mov esi, dword [ebp + 8]
jmp 0x409275
or esi, 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402696
mov eax, esi
jmp 0x409124
Function at 0x409a78
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x5eece6
call fcn.005c5e27
mov ebx, ecx
xor esi, esi
mov dword [ebp - 0x34], ebx
cmp dword [ebx + 0x44], esi
je 0x409b76
cmp byte [ebx + 0x49], 0
je 0x409b76
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x409ab1
xor al, al
jmp 0x409b78
push esi
push 8
mov dword [ebp - 0x1c], esi
pop edi
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00409be0
and dword [ebp - 4], 0
lea eax, [ebx + 0x4c]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x409b15
lea eax, [ebp - 0x2c]
mov edx, eax
add eax, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
push eax
push edx
push dword [ebp - 0x38]
call dword [esi + 0x18]
xor edi, edi
sub eax, edi
je 0x409b1a
dec eax
je 0x409b1e
dec eax
dec eax
je 0x409b72
xor bl, bl
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402696
mov al, bl
jmp 0x409b78
mov edx, dword [ebp - 0x2c]
jmp 0x409ae3
mov byte [ebx + 0x49], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x409b2a
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, eax
je 0x409b50
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x409b3d
lea eax, [ebp - 0x2c]
push dword [ebx + 0x54]
push esi
push 1
push eax
call fcn.005c019e
add esp, 0x10
cmp esi, eax
jne 0x409b04
cmp byte [ebx + 0x49], 0
je 0x409b72
cmp esi, edi
jne 0x409ad5
push edi
push 8
pop ebx
lea esi, [ebp - 0x2c]
call fcn.00404b13
mov ebx, dword [ebp - 0x34]
jmp 0x409ad5
mov bl, 1
jmp 0x409b06
mov al, 1
call fcn.005c5eaa
ret

Function at 0x40afeb
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x65bf90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.005c2720
add esp, 0xc
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40b031
xor al, al
jmp 0x40b06f
cmp dword [ebp - 0x9c], 5
mov esi, dword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
push 0x409
ja 0x40b04b
mov esi, dword [sym.imp.KERNEL32.dll_SetThreadLocale]
call esi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
mov ecx, 0x804
cmp ax, cx
je 0x40b06a
mov ecx, 0x404
cmp ax, cx
jne 0x40b06d
push eax
call esi
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005bdb17
leave
ret
Function at 0x40b07c
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
xor edi, edi
push edi
push 4
push edi
push edi
push 0x629c5c
call fcn.004bad81
mov dword [esi], eax
cmp eax, edi
je 0x40b0bc
mov ecx, dword [ebp + 8]
mov dword [eax + 0x28], edi
mov eax, dword [esi]
mov dword [eax + 0x58], ecx
mov eax, dword [esi]
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push str.Start_UpdateThread_Success
push 0xac
push 2
jmp 0x40b0c8
push str.Start_UpdateThread_Failed
push 0xb1
push 5
push dword [0x6686d0]
mov ebx, str.CUpdateManager::Start
mov edi, str.UpdateManager.cpp
call fcn.004169e0
add esp, 0x10
pop edi
pop ebx
pop ebp
ret 4
Function at 0x410be1
Capabilities:
Write file on windows

Disassembly:
push 0x244
mov eax, 0x5f05b0
call fcn.005c5e27
mov edi, ecx
call fcn.0040ae81
push eax
push str._sgameext
lea eax, [ebp - 0x110]
push pe_nt_image_headers32
push eax
call fcn.005be145
add esp, 0x10
push 0
push 2
pop esi
push esi
push esi
push 0
push 3
push 0x40000000
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x410cce
mov ebx, 0xb4
lea eax, [ebp - 0x230]
push ebx
push eax
call fcn.00414e4b
pop ecx
pop ecx
and dword [ebp - 4], 0
cmp dword [eax + 0x14], 0x10
jb 0x410c59
mov eax, dword [eax]
mov edi, dword [edi + 0x58]
push eax
mov esi, 0x6278a4
push esi
call fcn.00414eb6
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
xor edi, edi
push 0
inc edi
push edi
lea ecx, [ebp - 0x230]
call fcn.00402696
lea eax, [ebp - 0x230]
push ebx
push eax
call fcn.00414e4b
pop ecx
pop ecx
mov dword [ebp - 4], edi
cmp dword [eax + 0x14], 0x10
jb 0x410c99
mov eax, dword [eax]
push eax
push esi
push 0x52c
push 4
push dword [0x6686d0]
mov ebx, str.CUpdateThread::CreatePathFile
mov edi, str.UpdateThread.cpp
call fcn.004169e0
lea ecx, [ebp - 0x230]
add esp, 0x14
push 0
push 1
call fcn.00402696
jmp 0x410dce
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.005c0b30
pop ecx
lea eax, [ebp - 0x214]
pop ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410cea
push 0
lea ecx, [ebp - 0x250]
push ecx
sub eax, edx
push eax
lea eax, [ebp - 0x214]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410d9d
mov ebx, 0xb4
lea eax, [ebp - 0x230]
push ebx
push eax
call fcn.00414e4b
pop ecx
pop ecx
mov dword [ebp - 4], esi
cmp dword [eax + 0x14], 0x10
jb 0x410d32
mov eax, dword [eax]
mov edi, dword [edi + 0x58]
push eax
mov esi, 0x6278a4
push esi
call fcn.00414eb6
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.00402696
lea eax, [ebp - 0x24c]
push ebx
push eax
call fcn.00414e4b
pop ecx
pop ecx
mov dword [ebp - 4], 3
cmp dword [eax + 0x14], 0x10
jb 0x410d74
mov eax, dword [eax]
push eax
push esi
push 0x537
push 4
push dword [0x6686d0]
mov ebx, str.CUpdateThread::CreatePathFile
mov edi, str.UpdateThread.cpp
call fcn.004169e0
lea ecx, [ebp - 0x24c]
jmp 0x410cbd
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x110]
push eax
push str.Create_ext_file_success_extPath_s
push 0x53b
push esi
push dword [0x6686d0]
mov ebx, str.CUpdateThread::CreatePathFile
mov edi, str.UpdateThread.cpp
call fcn.004169e0
add esp, 0x14
call fcn.005c5eaa
ret
Function at 0x414a56
Capabilities:
Create directory

Disassembly:
push 0x98
mov eax, 0x5f32c4
call fcn.005c5e27
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
push 0xf
pop esi
push 5
push str.en_us
lea ecx, [ebp - 0x64]
movzx edi, ax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
call fcn.004022cd
mov eax, edi
sub eax, 0x404
mov dword [ebp - 4], ebx
mov dword [ebp - 0xa0], 0x9e
je 0x414acb
sub eax, 0x1a
je 0x414c5f
sub eax, 0x3e6
je 0x414c41
sub eax, 0x400
jne 0x414ae4
push 5
push str.zh_tw
lea ecx, [ebp - 0x64]
call fcn.004022cd
mov dword [ebp - 0xa0], 0xa1
call fcn.0040ae81
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00402342
push str.launcherlang_
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 1
call fcn.0041654a
add esp, 0xc
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00402696
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x9c]
push eax
lea edi, [ebp - 0x64]
call fcn.00416581
push str..json
push eax
lea eax, [ebp - 0x80]
push eax
mov byte [ebp - 4], 4
call fcn.0041654a
add esp, 0x14
push ebx
push 1
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 6
call fcn.00402696
cmp dword [ebp - 0x34], 0x10
mov eax, dword [ebp - 0x48]
jae 0x414b6a
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x414bbd
cmp dword [ebp - 0x34], 0x10
mov eax, dword [ebp - 0x48]
jae 0x414b81
lea eax, [ebp - 0x48]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x414bbd
cmp dword [ebp - 0x34], 0x10
mov eax, dword [ebp - 0x48]
jae 0x414b99
lea eax, [ebp - 0x48]
push eax
push 0x62abe0
push 0x2f
push 4
push dword [0x6686d0]
mov ebx, str.GetLangAsJson
mov edi, str.Utility.cpp
call fcn.004169e0
add esp, 0x14
xor ebx, ebx
push 4
push str.json
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.004022cd
push dword [ebp - 0xa0]
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x80]
call fcn.0047b0d0
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402696
sub esp, 0x1c
lea eax, [ebp - 0x80]
mov esi, esp
mov dword [ebp - 0xa0], esp
push eax
call fcn.004020db
mov ecx, dword [ebp - 0xa4]
call fcn.004148dd
add esp, 0x1c
push ebx
push 1
lea ecx, [ebp - 0x80]
call fcn.00402696
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00402696
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.00402696
mov eax, dword [ebp - 0xa4]
call fcn.005c5eaa
ret
push 5
push str.zh_cn
lea ecx, [ebp - 0x64]
call fcn.004022cd
mov dword [ebp - 0xa0], 0xa0
jmp 0x414ae4
push 5
push str.th_th
lea ecx, [ebp - 0x64]
call fcn.004022cd
mov dword [ebp - 0xa0], 0x9f
jmp 0x414ae4
Function at 0x4154e0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x114
mov eax, 0x5f047b
call fcn.005c5e27
lea eax, [ebp - 0x118]
push eax
push 0x20019
xor ebx, ebx
push ebx
mov dword [ebp - 4], 1
push dword [ebp + 8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x415582
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x120]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x11c], 0x104
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x415576
cmp dword [ebp - 0x120], 1
jne 0x415576
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41555c
sub eax, edx
push eax
lea eax, [ebp - 0x114]
push eax
mov ecx, edi
call fcn.00405c9e
mov bl, 1
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004030a5
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004030a5
mov al, bl
call fcn.005c5eaa
ret
Function at 0x4157d2
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x65bf90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x54], eax
cmp eax, ebx
je 0x415940
push edi
push 0x3f
lea eax, [ebp - 0x43]
push ebx
push eax
mov byte [ebp - 0x44], bl
call fcn.005c2720
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
lea eax, [ebp - 0x4c]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x50], 0x40
call edi
test eax, eax
jne 0x41593f
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x44]
push eax
push ebx
push ebx
push str.svcVersion
push dword [ebp - 0x4c]
mov dword [ebp - 0x48], ebx
call esi
test eax, eax
jne 0x415871
lea eax, [ebp - 0x44]
push 0x2e
push eax
call fcn.005bf9a7
pop ecx
pop ecx
test eax, eax
je 0x415871
lea eax, [ebp - 0x44]
push eax
call fcn.005bfe3e
pop ecx
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], ebx
jne 0x4158bc
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x44]
push eax
push ebx
push ebx
push 0x62ac98
push dword [ebp - 0x4c]
call esi
test eax, eax
jne 0x4158bc
lea eax, [ebp - 0x44]
push 0x2e
push eax
call fcn.005bf9a7
pop ecx
pop ecx
cmp eax, ebx
jne 0x4158ad
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41593e
mov byte [eax], bl
lea eax, [ebp - 0x44]
push eax
call fcn.005bfe3e
pop ecx
mov dword [ebp - 0x48], eax
push dword [ebp - 0x4c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
mov eax, dword [ebp - 0x48]
sub eax, 7
je 0x4158ff
dec eax
je 0x4158f6
dec eax
je 0x4158ed
dec eax
je 0x4158e4
dec eax
jne 0x41593e
mov dword [ebp - 0x48], 0x2af9
jmp 0x415906
mov dword [ebp - 0x48], 0x2711
jmp 0x415906
mov dword [ebp - 0x48], 0x270f
jmp 0x415906
mov dword [ebp - 0x48], 0x22b8
jmp 0x415906
mov dword [ebp - 0x48], 0x1b58
lea eax, [ebp - 0x4c]
push eax
push 0x20006
push ebx
push str.SOFTWAREMicrosoftInternet_ExplorerMAINFeatureControlFEATURE_BROWSER_EMULATION
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x41593e
push 4
pop eax
push eax
lea ecx, [ebp - 0x48]
push ecx
push eax
push ebx
push dword [ebp - 0x54]
mov dword [ebp - 0x50], eax
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x4c]
call esi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.005bdb17
leave
ret