joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403ac0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471870
mov eax, dword fs:[0]
push eax
sub esp, 0x208
mov eax, dword [0x48e110]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x214], 0
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x44]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push eax
push 0xff
lea eax, [ebp - 0x210]
push eax
push 0x476a60
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
lea ecx, [ebp - 0x210]
mov dword [esi + 0x40], eax
call fcn.00403080
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403b51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403b77
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045a10c
mov esp, ebp
pop ebp
ret 8
Function at 0x404560
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor edx, edx
jmp 0x404570
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x493b60], ecx
inc edx
cmp edx, 0x100
jb 0x404570
cmp edx, 0x800
jae 0x404649
lea ebx, [ebx]
mov eax, dword [edx*4 + 0x493760]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x493b60]
inc edx
mov dword [edx*4 + 0x493b5c], eax
cmp edx, 0x800
jb 0x404620
lea esi, [ebp - 0x24]
mov dword [0x492898], 0x404710
call fcn.00408130
test eax, eax
je 0x404706
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov esi, eax
shr eax, 4
shr esi, 8
and eax, 0xf00f
and esi, 0xff00f
xor edi, edi
mov dword [ebp - 4], eax
mov ecx, 0x48f920
xor edx, edx
mov eax, dword [ecx - 8]
cmp eax, dword [ebp - 0x20]
jne 0x40469c
mov eax, dword [ebp - 0x1c]
cmp dword [ecx - 4], eax
jne 0x40469c
cmp dword [ecx], ebx
je 0x4046d4
add edx, 0xc
inc edi
add ecx, 0xc
cmp edx, 0x24
jb 0x404688
or ecx, 0xffffffff
sub ecx, 0
je 0x4046ec
dec ecx
je 0x4046d8
dec ecx
jne 0x404706
cmp esi, 6
jb 0x404706
jne 0x4046fc
cmp dword [ebp - 4], 0xf
jb 0x404706
mov dword [0x492898], 0x4047c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
jmp 0x4046ab
cmp esi, 5
jb 0x404706
jne 0x4046fc
mov eax, dword [ebp - 4]
cmp eax, 6
jb 0x404706
cmp eax, 0xa
jmp 0x4046fa
cmp esi, 6
jb 0x404706
jne 0x4046fc
cmp dword [ebp - 4], 0x100c
je 0x404706
mov dword [0x492898], 0x4047c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405240
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
je 0x40529f
mov dword [edi], 0
jmp 0x405260
mov eax, 0x400000
cmp esi, 0x400000
ja 0x40526f
mov eax, esi
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x4052a7
test ecx, ecx
je 0x40529f
test esi, esi
jne 0x405260
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4052c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
je 0x40531f
mov dword [edi], 0
jmp 0x4052e0
mov eax, 0x400000
cmp esi, 0x400000
ja 0x4052ef
mov eax, esi
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x405327
test ecx, ecx
je 0x40531f
test esi, esi
jne 0x4052e0
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407f90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x407fa9
mov esp, ebp
pop ebp
ret
add dword [ebp + 0xc], 5
push ebx
push esi
mov esi, dword [ebp + 8]
lea ebx, [esi + ecx - 4]
push edi
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], ebx
mov esi, dword [ebp + 8]
lea edi, [eax + esi]
cmp edi, ebx
jae 0x407fdd
jmp 0x407fd0
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x407fdd
inc edi
cmp edi, ebx
jb 0x407fd0
mov eax, edi
sub eax, esi
mov ecx, eax
sub ecx, dword [ebp - 8]
cmp edi, ebx
jae 0x408102
cmp ecx, 3
jbe 0x407ffa
xor esi, esi
mov dword [ebp - 4], esi
jmp 0x40803d
dec ecx
shl edx, cl
and edx, 7
mov dword [ebp - 4], edx
je 0x40803a
mov ecx, edx
movzx edx, byte [ecx + 0x476cd8]
mov esi, edi
sub esi, edx
cmp byte [ecx + 0x476cd0], 0
mov dl, byte [esi + 4]
je 0x408027
test dl, dl
je 0x408027
cmp dl, 0xff
jne 0x40803a
and ecx, 3
add ecx, ecx
or ecx, 1
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
inc eax
mov edx, ecx
jmp 0x407fc1
mov esi, dword [ebp - 4]
mov cl, byte [edi + 4]
mov dword [ebp - 8], eax
test cl, cl
je 0x40805f
cmp cl, 0xff
je 0x40805f
and esi, 3
add esi, esi
or esi, 1
mov dword [ebp - 4], esi
inc eax
mov edx, esi
jmp 0x407fc1
movzx edx, cl
movzx ecx, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
lea ecx, [ecx]
cmp dword [ebp + 0x14], 0
je 0x40808e
lea ebx, [edx + eax]
add ebx, dword [ebp + 0xc]
jmp 0x408095
sub edx, eax
sub edx, dword [ebp + 0xc]
mov ebx, edx
test esi, esi
je 0x4080d2
movzx esi, byte [esi + 0x476cd8]
add esi, esi
add esi, esi
add esi, esi
mov ecx, 0x18
sub ecx, esi
mov edx, ebx
shr edx, cl
mov cl, dl
test cl, cl
je 0x4080bc
cmp cl, 0xff
jne 0x4080d2
mov ecx, 0x20
sub ecx, esi
mov esi, dword [ebp - 4]
mov edx, 1
shl edx, cl
dec edx
xor edx, ebx
jmp 0x408080
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
mov byte [edi + 3], dl
mov edx, dword [ebp - 4]
mov byte [edi + 1], bl
mov ebx, dword [ebp - 0xc]
mov byte [edi + 2], cl
add eax, 5
jmp 0x407fc1
pop edi
pop esi
pop ebx
cmp ecx, 3
jbe 0x408115
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret
dec ecx
shl edx, cl
mov ecx, dword [ebp + 0x10]
and edx, 7
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret
Function at 0x409d30
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x48e110]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x103
mov esi, ecx
lea ecx, [ebp - 0x113]
push 0
push ecx
mov dword [ebp - 0x120], eax
mov byte [ebp - 0x114], 0
call fcn.0045c960
lea edx, [ebp - 0x114]
add esp, 0xc
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x409d77
lea edi, [ebp - 0x114]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x409d88
mov eax, dword [ebp - 0x120]
mov dx, word [0x476ce0]
push eax
lea esi, [ebp - 0x11c]
mov word [edi], dx
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
call fcn.00409c80
mov eax, dword [ebp - 0x11c]
add esp, 4
mov ecx, eax
jmp 0x409dd0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409dd0
lea edi, [ebp - 0x114]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x409de2
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x11c]
push ecx
push 0x48f908
call dword [0x48f90c]
add esp, 8
push 0
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x409e32
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0045a10c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.0045a10c
mov esp, ebp
pop ebp
ret
Function at 0x40a8c0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x48e110]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40a8f5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a10c
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x18]
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.0045a10c
mov esp, ebp
pop ebp
ret

Function at 0x411240
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0045cf20
mov eax, dword [0x48e110]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x1004]
push 0x800
push edx
call fcn.0045b210
add esp, 0x10
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a10c
mov esp, ebp
pop ebp
ret

Function at 0x411310
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x48e110]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.BFVCenterSetupMutex
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x41136b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41136b
push 0
push 0x477584
push 0x477598
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a10c
mov esp, ebp
pop ebp
ret
call fcn.00411550
test eax, eax
je 0x41135a
cmp dword [0x4928b4], 0
mov eax, esi
mov edx, str.Upgrade.xml
jne 0x411389
mov edx, str.Skin.xml
call fcn.00429a30
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0045c960
add esp, 0xc
cmp word [ebp - 0x20c], 0
je 0x4113ea
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4113ea
push edi
lea edi, [ebp - 0x20c]
mov eax, esi
call fcn.00429a90
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a10c
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
mov ecx, dword [0x4928a8]
push ebx
mov dword [eax + 0x5c], 2
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], 0x8c
add eax, 0x70
push str.Theme
push eax
mov ebx, 5
call fcn.004032a0
mov ecx, dword [ebp - 4]
pop ebx
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0045a10c
mov esp, ebp
pop ebp
ret
Function at 0x412a60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472088
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push edi
mov eax, dword [0x48e110]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [0x4928b8]
test edi, edi
je 0x412ac5
mov eax, dword [edi + 0x70]
mov edx, dword [eax + 0x3c]
push 0
push 0x4907f8
push 0x4907dc
lea ecx, [edi + 0x70]
push 0
push 0xb6718b4
call edx
push eax
call fcn.0046ad48
add esp, 0x14
test eax, eax
je 0x412ac5
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x24]
push 0
call eax
mov edi, dword [edi + 0x60]
push 0
push edi
call dword [sym.imp.USER32.dll_GetSystemMenu]
test eax, eax
je 0x412ae3
push 1
push 0xf060
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov ecx, dword [esi + 0x230]
mov edx, dword [ecx - 0xc]
lea edi, [esi + 0x230]
lea eax, [edx - 1]
test eax, eax
js 0x412b76
cmp eax, edx
jg 0x412b76
cmp word [ecx + eax*2], 0x5c
je 0x412b48
lea ecx, [ebp - 0x10]
push edi
push ecx
mov ebx, 0x4768bc
call fcn.00402c10
add esp, 8
mov dword [ebp - 4], 0
call fcn.00402ab0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412b48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push 0
push esi
push 0x412b90
push 0
push 0
call fcn.0045afe3
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401950
int3
Function at 0x412ef0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x472058
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x48e110]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [0x4928ac]
mov eax, dword [ebx + 0x88]
test eax, eax
je 0x412f48
add ebx, 0x2c
cmp dword [ebx + 0x5c], 0
je 0x412f48
push ebx
call fcn.0041ae30
cmp dword [ebx + 0x60], 0
je 0x412f48
call fcn.0041f6d0
mov ecx, esi
call fcn.00412da0
mov ebx, dword [0x4928ac]
mov ecx, dword [esi + 0x230]
mov esi, dword [ebx + 0x70]
add ebx, 0x70
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x412fae
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x412fa4
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x412fa4
call fcn.004033b0
mov dword [esp + 0x14], eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x412f99
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x14]
add ecx, 0x10
mov dword [ebx], ecx
jmp 0x412fae
push ecx
push ebx
mov ebx, dword [ecx - 0xc]
call fcn.004032a0
mov edx, dword [0x4928ac]
add edx, 0x2c
push edx
call fcn.00422150
mov ecx, dword [0x4928ac]
add ecx, 0x2c
call fcn.00420600
mov ecx, dword [0x4928ac]
add ecx, 0x2c
call fcn.0041ef60
mov ecx, dword [0x4928ac]
add ecx, 0x2c
call fcn.00418b20
mov ecx, dword [0x4928ac]
add ecx, 0x2c
call fcn.00421d50
mov eax, dword [0x4928ac]
add eax, 0x2c
push eax
call fcn.00419930
mov ecx, dword [0x4928ac]
add ecx, 0x2c
push ecx
call fcn.00419320
mov edx, dword [0x4928ac]
add edx, 0x2c
push edx
call fcn.00419b90
mov ebx, dword [0x4928ac]
push 6
xor edi, edi
xor esi, esi
push edi
mov dword [esp + 0x1c], vtable.CFirewallInstall.0
mov dword [esp + 0x20], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, 0x80010106
je 0x41304b
cmp eax, edi
jl 0x413054
mov esi, 1
mov dword [esp + 0x18], esi
lea eax, [esp + 0x14]
mov dword [esp + 0x28], edi
mov ecx, dword [ebx + 0x70]
push eax
call fcn.00416280
mov dword [esp + 0x28], 0xffffffff
cmp esi, edi
je 0x413077
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [0x4928ac]
add ecx, 0x2c
push ecx
call fcn.00422620
mov ecx, dword [0x4928ac]
add ecx, 0x2c
call fcn.00419d30
mov esi, dword [0x4928ac]
lea edx, [esp + 0x14]
push edx
add esi, 0x2c
mov dword [esp + 0x18], edi
call dword [sym.imp.SensApi.dll_IsNetworkAlive]
test eax, eax
jne 0x4130d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4130dc
push edi
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x4130dc
mov al, byte [esp + 0x14]
test al, 0x20
jne 0x4130dc
test al, 7
je 0x4130dc
push esi
call fcn.0041a8c0
cmp dword [esi + 0x64], edi
je 0x4130ec
call fcn.00421aa0
push esi
call fcn.0041a740
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413100
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471cb8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x48e110]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x230]
sub eax, 0x10
call fcn.004033b0
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0xa
push str.Archive.7z
lea ebx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00402d70
mov ebx, dword [ebp - 0x10]
push ecx
lea eax, [ebx - 0x10]
mov dword [ebp - 0x14], esp
mov edi, esp
call fcn.004033b0
add eax, 0x10
mov dword [edi], eax
call fcn.004027e0
mov eax, dword [0x4928a8]
add esp, 4
push str.RESOURCE_DATA
push 0x8a
push eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41319a
push ebx
mov ecx, edi
call fcn.00401120
add esp, 4
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
cmp dword [ebx - 4], 1
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
jle 0x4131ca
mov ecx, dword [ebx - 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.00403180
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.00422ac0
push eax
lea ecx, [ebp - 0x28]
call fcn.0040a450
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x238], ecx
mov eax, dword [eax + 0x23c]
add esp, 8
test eax, eax
je 0x41320b
add ecx, 2
je 0x41320b
test ecx, ecx
jle 0x41320b
mov dword [eax + 0x234], 0
mov dword [eax + 0x238], ecx
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41322e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x414330
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ea36
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x48e110]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov edi, edx
xor esi, esi
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0xa8], esi
mov dword [ebp - 4], esi
mov eax, dword [edi]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], esi
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0x98], 0
mov byte [ebp - 4], 1
test esi, esi
jle 0x414454
lea eax, [esi + 1]
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
test ecx, ecx
jne 0x4143c6
cmp eax, 0xffffffff
jbe 0x4143d0
push 0x80070216
call fcn.00401950
cmp eax, 0x80
jbe 0x4143ff
lea edx, [ebp - 0x98]
push edx
call fcn.0042b380
jmp 0x41440b
lea eax, [ebp - 0x94]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
test eax, eax
jne 0x414434
lea ecx, [ebp - 0x94]
test ecx, ecx
je 0x414430
lea eax, [ebp - 0x98]
call fcn.0042b370
lea ebx, [ebx]
xor eax, eax
jmp 0x414492
lea edx, [esi + 1]
push edx
push eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x414454
lea ecx, [ebp - 0x94]
cmp dword [ebp - 0x98], ecx
jmp 0x41441d
mov edx, dword [ebp - 0x98]
push edx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi], eax
test esi, esi
je 0x414470
xor ecx, ecx
test eax, eax
setne cl
mov esi, ecx
lea edx, [ebp - 0x94]
cmp dword [ebp - 0x98], edx
je 0x414490
lea eax, [ebp - 0x98]
call fcn.0042b370
lea esp, [esp]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045a10c
mov esp, ebp
pop ebp
ret
Function at 0x418840
Capabilities:
Create thread
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x48e110]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0045c960
mov ebx, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
add esp, 0xc
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
push ecx
push 0x476a60
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsBFVKanDianYing.exe
mov edi, 1
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], 0x102
mov dword [ebp - 0x210], edi
call ebx
test eax, eax
jne 0x4188d3
push 0x476a60
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x4188d3
mov dword [esi + 0x5c], edi
jmp 0x418948
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0045c960
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x214]
push eax
push 0x476a60
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsBFVCenter.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x210], 0x102
mov dword [ebp - 0x214], edi
call ebx
test eax, eax
jne 0x418941
push 0x476a60
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x418941
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
jmp 0x418948
mov dword [esi + 0x5c], 0
cmp dword [esi + 0x5c], 0
je 0x41898e
lea edx, [ebp - 0x20c]
push 0x5c
push edx
call fcn.0045ac03
add esp, 8
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
lea edx, [esi + 0x68]
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418970
sub eax, edi
lea ecx, [ebp - 0x20c]
sar eax, 1
push ecx
push edx
mov ebx, eax
call fcn.004032a0
xor edi, edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push esi
push 0x41fa80
push edi
push edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
mov dword [esi + 4], edi
call fcn.0045afe3
add esp, 0x18
mov ecx, esi
mov dword [esi + 4], eax
call fcn.00418a60
call fcn.004011a0
mov ecx, dword [ebp - 4]
xor edx, edx
test al, al
setne dl
pop edi
xor ecx, ebp
pop ebx
mov dword [esi + 0x64], edx
call fcn.0045a10c
mov esp, ebp
pop ebp
ret

Function at 0x4189e0
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi + 8]
push eax
mov dword [esi + 0xc], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 4]
push 0x4e20
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x418a13
mov edx, dword [esi + 4]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x418a2b
push eax
call edi
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x418a3c
push eax
call edi
mov dword [esi + 4], 0
mov eax, dword [esi + 0x84]
pop edi
test eax, eax
je 0x418a58
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x84], 0
ret