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

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402f09
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402f44
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402f40
lea ebx, [ebx]
cmp esi, eax
jae 0x402f44
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402f30
cmp esi, eax
jb 0x402f4a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403c80
Capabilities:
Check if file exists
Copy file

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x18]
mov ebx, dword [eax]
push esi
mov esi, dword [ebp]
push edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], esi
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp]
test esi, esi
je 0x403cb3
cmp esi, eax
je 0x403cb8
call fcn.004394f9
cmp ebx, edi
je 0x403d9e
test esi, esi
jne 0x403d40
call fcn.004394f9
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x403cd5
call fcn.004394f9
mov eax, dword [ebx + 0xc]
lea edi, [ebx + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403d4c
or dword [esp + 0x10], 1
test esi, esi
jne 0x403d44
call fcn.004394f9
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x403d00
call fcn.004394f9
push 0x4a3618
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.00403af0
mov ebp, dword [eax]
add esp, 0xc
test esi, esi
jne 0x403d48
call fcn.004394f9
cmp ebx, dword [esi + 0x18]
jne 0x403d28
call fcn.004394f9
mov edi, dword [edi]
push 0
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebp, dword [esp + 0x14]
test eax, eax
jne 0x403d4c
mov bl, 1
jmp 0x403d4e
mov eax, dword [esi]
jmp 0x403ccb
mov eax, dword [esi]
jmp 0x403cf6
mov esi, dword [esi]
jmp 0x403d1e
xor bl, bl
test byte [esp + 0x10], 1
je 0x403d7a
mov eax, dword [esp + 0x18]
and dword [esp + 0x10], 0xfffffffe
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403d7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x403d94
lea ecx, [esp + 0x1c]
call fcn.004034a0
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
jmp 0x403ca5
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x14
ret
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x14
ret
Function at 0x403db0
Capabilities:
Copy file

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp]
push edi
mov edi, dword [eax]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
lea esp, [esp]
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp]
test esi, esi
je 0x403dde
cmp esi, eax
je 0x403de3
call fcn.004394f9
cmp edi, ebx
je 0x403e48
test esi, esi
jne 0x403e36
call fcn.004394f9
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x403dfc
call fcn.004394f9
mov ebx, dword [edi + 0xc]
test esi, esi
jne 0x403e3a
call fcn.004394f9
cmp edi, dword [esi + 0x18]
jne 0x403e12
call fcn.004394f9
mov eax, dword [edi + 0x10]
push 0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x403e3e
lea ecx, [esp + 0x10]
call fcn.004034a0
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
jmp 0x403dd0
mov eax, dword [esi]
jmp 0x403df2
mov esi, dword [esi]
jmp 0x403e08
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 8
ret

Function at 0x403e60
Capabilities:
Delete file

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp]
push edi
mov edi, dword [eax]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
lea esp, [esp]
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp]
test esi, esi
je 0x403e8e
cmp esi, eax
je 0x403e93
call fcn.004394f9
cmp edi, ebx
je 0x403f16
test esi, esi
jne 0x403f08
call fcn.004394f9
cmp edi, dword [esi + 0x18]
jne 0x403eaa
call fcn.004394f9
push 0x4a3618
add edi, 0xc
lea ecx, [esp + 0x14]
push edi
push ecx
call fcn.00403af0
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov eax, dword [esp + 0x10]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403eee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x403f0c
lea ecx, [esp + 0x14]
call fcn.004034a0
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
jmp 0x403e80
mov esi, dword [esi]
jmp 0x403ea0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xc
ret
Function at 0x403f20
Capabilities:
Check if file exists
Copy file

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x18]
mov ebx, dword [eax]
push esi
mov esi, dword [ebp]
push edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], 0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], esi
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp]
test esi, esi
je 0x403f53
cmp esi, eax
je 0x403f58
call fcn.004394f9
cmp ebx, edi
je 0x4040a1
or dword [esp + 0x14], 1
test esi, esi
jne 0x404082
call fcn.004394f9
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x403f7e
call fcn.004394f9
push 0x4a3618
lea edi, [ebx + 0xc]
lea ecx, [esp + 0x24]
push edi
push ecx
call fcn.00403af0
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404004
or dword [esp + 0x14], 2
test esi, esi
jne 0x404089
call fcn.004394f9
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x403fbf
call fcn.004394f9
mov ebp, dword [edi]
test esi, esi
jne 0x404090
call fcn.004394f9
cmp ebx, dword [esi + 0x18]
jne 0x403fd8
call fcn.004394f9
push 0x4a3618
lea edx, [esp + 0x20]
push edi
push edx
call fcn.00403af0
mov eax, dword [eax]
add esp, 0xc
push 0
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebp, dword [esp + 0x18]
mov byte [esp + 0x13], 1
test eax, eax
je 0x404009
mov byte [esp + 0x13], 0
mov ebx, dword [esp + 0x14]
test bl, 2
je 0x404039
mov eax, dword [esp + 0x1c]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404039
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, 1
je 0x404065
mov eax, dword [esp + 0x20]
and ebx, 0xfffffffe
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404065
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x13], 0
jne 0x404097
lea ecx, [esp + 0x24]
call fcn.004034a0
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
jmp 0x403f45
mov eax, dword [esi]
jmp 0x403f74
mov eax, dword [esi]
jmp 0x403fb5
mov esi, dword [esi]
jmp 0x403fce
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1c
ret
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x1c
ret
Function at 0x404810
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1194
call fcn.00439d30
mov eax, dword [0x4fa5ac]
xor eax, esp
mov dword [esp + 0x1190], eax
mov eax, dword [0x4fe3b0]
mov edx, dword [eax + 0xc]
push ebx
mov ebx, dword [esp + 0x119c]
push esi
push edi
mov edi, dword [esp + 0x11a8]
mov ecx, 0x4fe3b0
call edx
mov edi, dword [edi]
push 0
push 0x80
push 3
push 0
push 1
mov esi, eax
push 0x80000000
add esi, 0x10
push edi
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4048a5
add esi, 0xfffffff0
push esi
call fcn.00403430
add eax, 0x10
mov dword [ebx], eax
add esp, 4
lea eax, [esi + 0xc]
or ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404a46
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
jmp 0x404a46
lea ecx, [esp + 0x144]
push ebp
push ecx
call fcn.00411a60
push 0xfff
lea edx, [esp + 0x1a9]
push 0
push edx
mov dword [esp + 0x24], 0
mov byte [esp + 0x1b0], 0
call fcn.004395a0
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0x10
push 0
lea eax, [esp + 0x18]
push eax
push 0x1000
lea ecx, [esp + 0x1ac]
push ecx
push edi
call ebp
test eax, eax
je 0x404997
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x404922
push eax
lea edx, [esp + 0x1a4]
push edx
lea eax, [esp + 0x150]
push eax
call fcn.00411a90
add esp, 0xc
jmp 0x4048e0
jne 0x4048e0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x148]
push eax
lea ecx, [esp + 0x13c]
push ecx
call fcn.00411ba0
lea edx, [esp + 0x140]
push edx
lea eax, [esp + 0x128]
push eax
call fcn.00411c60
mov eax, dword [esp + 0x130]
mov edi, 0x10
add esp, 0x10
cmp dword [esp + 0x134], edi
jae 0x404974
lea eax, [esp + 0x120]
lea ecx, [esp + 0x1c]
push 0xfde9
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00403250
mov edx, dword [esp + 0x18]
test edx, edx
jne 0x4049ad
xor eax, eax
jmp 0x4049c1
add esi, 0xfffffff0
push esi
call fcn.00403430
add esp, 4
add eax, 0x10
mov dword [ebx], eax
jmp 0x404a2c
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4049b2
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00403830
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
cmp eax, edx
je 0x4049e1
push eax
call fcn.00439bda
add esp, 4
mov esi, dword [esp + 0x10]
add esi, 0xfffffff0
push esi
call fcn.00403430
add eax, edi
add esp, 4
mov dword [ebx], eax
cmp dword [esp + 0x134], edi
jb 0x404a0e
mov eax, dword [esp + 0x120]
push eax
call fcn.004390ba
add esp, 4
mov dword [esp + 0x134], 0xf
mov dword [esp + 0x130], 0
mov byte [esp + 0x120], 0
or edx, 0xffffffff
lea ecx, [esi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404a45
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
pop ebp
mov ecx, dword [esp + 0x119c]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00439589
add esp, 0x1194
ret
Function at 0x404f00
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xd4
mov eax, dword [0x4fa5ac]
xor eax, esp
mov dword [esp + 0xd0], eax
push esi
mov esi, dword [esp + 0xe0]
push edi
mov edi, dword [esp + 0xe0]
xor eax, eax
push 0xc6
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.004395a0
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.00403430
mov esi, eax
push str.bluesky.ini
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
add esi, 0x10
push eax
mov dword [esp + 0x28], esi
call fcn.00403af0
mov ecx, dword [eax]
add esp, 0x1c
push ecx
push 0x64
lea edx, [esp + 0x18]
push edx
push 0x4a3520
push str.Version
push str.Common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404fa5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x10]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404fb0
sub eax, edx
sar eax, 1
jne 0x404fdf
push 0x4a3520
mov ecx, edi
call fcn.00404a60
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x404ffb
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call fcn.00404a60
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405007
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xd8]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00439589
add esp, 0xd4
ret
Function at 0x405020
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xd8
mov eax, dword [0x4fa5ac]
xor eax, esp
mov dword [esp + 0xd4], eax
mov eax, 1
push esi
mov esi, dword [esp + 0xe0]
test byte [0x4fc760], al
jne 0x405073
or dword [0x4fc760], eax
mov eax, dword [0x4fe3b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x4fe3b0
call edx
add eax, 0x10
push 0x4a2500
mov dword [0x4fc75c], eax
call fcn.00439e82
add esp, 4
mov eax, dword [0x4fc75c]
cmp dword [eax - 0xc], 0
jne 0x4051b9
lea ecx, [esp + 4]
push 0
push ecx
call fcn.00404df0
xor edx, edx
push 0xc6
push edx
lea eax, [esp + 0x22]
push eax
mov word [esp + 0x24], dx
call fcn.004395a0
push str.bluesky.ini
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00403af0
mov eax, dword [eax]
add esp, 0x20
push eax
push 0x64
lea ecx, [esp + 0x18]
push ecx
push 0x4a3520
push str.Version
push str.Common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4050fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405102
sub eax, edx
sar eax, 1
jne 0x405124
lea ecx, [esp + 4]
push ecx
mov ecx, 0x4fc75c
call fcn.00403b80
jmp 0x405199
push 0x4a368c
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00403af0
add esp, 0xc
push eax
lea edx, [esp + 0x10]
push edx
call fcn.00403af0
add esp, 0xc
push eax
mov ecx, 0x4fc75c
call fcn.00403b80
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405179
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405199
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4051b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x4fc75c]
add eax, 0xfffffff0
push eax
call fcn.00403430
mov ecx, dword [esp + 0xdc]
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov eax, esi
pop esi
xor ecx, esp
call fcn.00439589
add esp, 0xd8
ret
Function at 0x406600
Capabilities:
Set current directory

Disassembly:
sub esp, 0x30
push esi
mov esi, dword [esp + 0x38]
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
mov dword [esp + 0x38], eax
jb 0x406617
mov eax, dword [eax]
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call fcn.0040f000
mov edi, eax
mov eax, str.bluesky.dll
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406630
sub eax, edx
sar eax, 1
push eax
push str.bluesky.dll
mov ecx, esi
call fcn.004021a0
mov eax, str.type
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406670
sub eax, edx
push eax
push str.type
lea ecx, [esp + 0x28]
call fcn.00401d20
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.0040df10
test al, al
sete bl
cmp dword [esp + 0x38], 0x10
jb 0x4066ad
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004390ba
add esp, 4
pop edi
test bl, bl
pop ebx
je 0x406793
push 1
push str.SoftwareTaoBaoChromeFrame
push 0x80000001
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x1000
mov dword [esp + 0x10], 1
call fcn.00407e90
cmp dword [esp + 0x10], 0
je 0x40672d
lea edx, [esp + 0xc]
push edx
push str.PreReadSize
lea ecx, [esp + 0x18]
call fcn.00407db0
lea eax, [esp + 8]
push eax
push str.PreReadStepSize
lea ecx, [esp + 0x18]
call fcn.00407db0
lea ecx, [esp + 4]
push ecx
push str.PreRead
lea ecx, [esp + 0x18]
call fcn.00407db0
lea ecx, [esp + 0x10]
call fcn.00407a70
cmp dword [esp + 4], 0
je 0x40678a
push 0xffffffffffffffff
push 0x4a3981
push 0
push 0
push 0xffffffffffffffff
push str.PreReadImage
call fcn.00412a30
add esp, 0x18
cmp dword [esi + 0x18], 8
jb 0x40675c
mov edx, dword [esp + 0x38]
mov eax, dword [edx]
jmp 0x406760
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
push ecx
push edx
push eax
call fcn.00413330
push 0xffffffffffffffff
push 0x4a3981
push 0
push 1
push 0xffffffffffffffff
push str.PreReadImage
call fcn.00412a30
add esp, 0x24
lea ecx, [esp + 0x10]
call fcn.00407a70
cmp dword [esi + 0x18], 8
mov eax, dword [esp + 0x38]
pop esi
jb 0x4067a0
mov eax, dword [eax]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
add esp, 0x30
ret
Function at 0x4067b0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x28
mov eax, dword [0x4fa5ac]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x40]
push esi
call fcn.004357f0
movzx eax, al
add esp, 4
neg eax
sbb eax, eax
push 1
add eax, 0x80000002
push edi
push eax
lea ecx, [esp + 0x1c]
xor ebx, ebx
call fcn.00407e90
cmp dword [esp + 0x10], ebx
je 0x4068b0
xor eax, eax
mov word [esp + 0x1c], ax
mov eax, esi
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x406814
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.00402040
mov eax, str.new_chrome.exe
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x406836
sub eax, edx
sar eax, 1
push eax
push str.new_chrome.exe
lea ecx, [esp + 0x20]
call fcn.004021a0
mov eax, dword [esp + 0x1c]
mov esi, 8
cmp dword [esp + 0x30], esi
jae 0x406867
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406889
push ebp
push 0x4bb47c
lea ecx, [esp + 0x18]
call fcn.00407c50
test eax, eax
jne 0x406889
mov bl, 1
jmp 0x40689d
push ebp
push 0x4bb4f4
lea ecx, [esp + 0x18]
call fcn.00407c50
test eax, eax
sete bl
cmp dword [esp + 0x30], esi
jb 0x4068b0
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004390ba
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00407a70
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
xor ecx, esp
call fcn.00439589
add esp, 0x28
ret

Function at 0x4068d0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
mov eax, dword [0x4fa5ac]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x108]
push esi
mov esi, dword [esp + 0x110]
push 0x80
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x40694a
cmp eax, 0x80
jae 0x40694a
lea eax, [esp + 4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406916
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.00402040
mov al, 1
pop esi
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.00439589
add esp, 0x104
ret
mov ecx, dword [esp + 0x104]
pop esi
xor ecx, esp
xor al, al
call fcn.00439589
add esp, 0x104
ret
Function at 0x406e50
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x5c
mov eax, dword [0x4fa5ac]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x64]
push ebx
push ebp
mov ebp, dword [esp + 0x68]
push esi
mov esi, ecx
xor ecx, ecx
push edi
mov dword [esp + 0x10], eax
mov word [esp + 0x50], cx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x50]
mov ebx, 7
xor edi, edi
xor edx, edx
push ecx
mov ecx, esi
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], edi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], dx
call fcn.00406970
mov dword [esi + 4], eax
cmp eax, edi
jne 0x406f01
mov esi, 8
cmp dword [esp + 0x48], esi
jb 0x406ec5
mov edx, dword [esp + 0x34]
push edx
call fcn.004390ba
add esp, 4
xor eax, eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], edi
mov word [esp + 0x34], ax
cmp dword [esp + 0x64], esi
jb 0x406ee7
mov ecx, dword [esp + 0x50]
push ecx
call fcn.004390ba
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00439589
add esp, 0x5c
ret 8
call fcn.00408560
mov edi, eax
mov ebx, dword [edi]
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x18]
push eax
add ebx, 0xc
call fcn.00408230
mov edx, dword [ebx]
add esp, 8
push eax
push str.BlueSky_VERSION
mov ecx, edi
call edx
cmp dword [esp + 0x2c], 0x10
jb 0x406f3f
mov eax, dword [esp + 0x18]
push eax
call fcn.004390ba
add esp, 4
mov edx, dword [esi]
mov edx, dword [edx + 8]
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call edx
mov eax, dword [esi + 4]
push str.ChromeMain
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
jne 0x406fc8
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
mov esi, 8
cmp dword [esp + 0x48], esi
jb 0x406f84
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004390ba
add esp, 4
xor edx, edx
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], dx
cmp dword [esp + 0x64], esi
jb 0x406fae
mov eax, dword [esp + 0x50]
push eax
call fcn.004390ba
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00439589
add esp, 0x5c
ret 8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push ebp
call ebx
mov edx, dword [esi]
mov edx, dword [edx + 0xc]
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
push eax
mov ecx, esi
call edx
mov ebx, eax
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
mov esi, 8
cmp dword [esp + 0x48], esi
jb 0x40700d
mov eax, dword [esp + 0x34]
push eax
call fcn.004390ba
add esp, 4
xor ecx, ecx
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], cx
cmp dword [esp + 0x64], esi
jb 0x407037
mov edx, dword [esp + 0x50]
push edx
call fcn.004390ba
add esp, 4
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00439589
add esp, 0x5c
ret 8