joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4041b5
Capabilities:
Check if file exists
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
mov dword [ebp - 4], esi
je 0x40427a
cmp word [ebx], si
je 0x40427a
lea eax, [ebp + 8]
mov dword [ebp + 8], esi
push eax
call fcn.00403e89
test eax, eax
pop ecx
je 0x404275
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20a]
mov word [ebp - 0x20c], si
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push str.System32Drivers
push eax
call esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
pop edi
je 0x40426b
lea eax, [ebp - 0x20c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], eax
lea eax, [ebp + 8]
push eax
call fcn.00403ec2
pop ecx
mov eax, dword [ebp - 4]
jmp 0x40427c
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x404aa9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, eax
je 0x404ac8
cmp dword [ebp + 0xc], eax
je 0x404ac8
jbe 0x404ac8
mov dl, byte [ebp + 0x10]
xor byte [eax + ecx], dl
inc eax
cmp eax, dword [ebp + 0xc]
jb 0x404abc
pop ebp
ret

Function at 0x404aca
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
xor edx, edx
cmp dword [ebp + 8], edx
mov dword [ebp - 0xc], edx
je 0x404bc6
cmp dword [ebp + 0xc], edx
je 0x404bc6
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x212]
mov word [ebp - 0x214], dx
push 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
pop ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push eax
lea eax, [ebp - 4]
mov edi, str.SoftwareMicrosoftWindowsCurrentVersionApp_Pathshao123JuziBrowser.exe
push eax
push edx
push edi
push SysReAllocString
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 0x206
call esi
test eax, eax
jne 0x404b4a
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404b8d
call section..text
cmp eax, 8
jge 0x404b8d
push 0x208
lea eax, [ebp - 0x214]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 0x206
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 4]
push eax
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call esi
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404bbe
lea eax, [ebp - 0x214]
mov dword [ebp - 0xc], ebx
push eax
mov eax, dword [ebp + 0xc]
dec eax
push 0x4260b8
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
leave
ret
Function at 0x404bca
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push ebx
push esi
push edi
xor edi, edi
mov eax, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], str.SOFTWAREHintsoft
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], str.SOFTWARESicent
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], str.SOFTWAREGoyoo
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], str.SOFTWARE_
xor ebx, ebx
lea esi, [ebp - 0x28]
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push 1
push edi
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x404c8b
inc ebx
add esi, 8
cmp ebx, 4
jb 0x404c0d
mov word [ebp - 0x230], di
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x22e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x230]
push 0x103
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x230]
push 0x427704
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404c83
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x404c7c

Function at 0x404c96
Capabilities:
Get common file path

Disassembly:
mov eax, 0x420124
call fcn.0041fac0
sub esp, 0x214
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x404da1
cmp dword [ebp + 0xc], ebx
je 0x404da1
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21e]
mov word [ebp - 0x220], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x103
lea eax, [ebp - 0x220]
push esi
push eax
mov dword [ebp - 0x14], ebx
call fcn.00404aca
pop ecx
test eax, eax
pop ecx
jne 0x404cff
lea eax, [ebp - 0x220]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push dword [ebp - 0x220]
mov esi, dword [sym.imp.MSVCRT.dll_iswalpha]
call esi
test eax, eax
pop ecx
jne 0x404d46
push 0x208
lea eax, [ebp - 0x220]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push dword [ebp - 0x220]
call esi
test eax, eax
pop ecx
je 0x404d4f
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x14], eax
mov eax, dword [0x426084]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
mov dword [ebp - 4], ebx
push dword [ebp - 0x14]
call fcn.00404db0
pop edi
pop esi
test eax, eax
je 0x404d91
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], ebx
je 0x404d91
push eax
mov eax, dword [ebp + 0xc]
dec eax
push 0x4260b8
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push 1
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040705c
mov eax, ebx
jmp 0x404da3
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4052c5
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x4201e8
call fcn.0041fac0
sub esp, 0x448
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x14]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002bE10318
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 0x208
mov dword [ebp - 0x14], esi
call ebx
test eax, eax
je 0x40530d
xor eax, eax
jmp 0x405478
push edi
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push esi
push eax
lea eax, [ebp - 0x454]
push eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x2c], esi
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40546b
cmp dword [ebp - 0x2c], esi
jne 0x40546b
mov eax, dword [0x426084]
inc dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x104
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x454]
mov dword [ebp - 4], esi
push eax
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002bE10318
lea eax, [ebp - 0x18]
push 0x427880
push eax
call fcn.00406ba7
add esp, 0x10
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push 0x20019
push esi
push dword [ebp - 0x18]
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x405448
mov ecx, 0x82
lea edi, [ebp - 0x246]
mov word [ebp - 0x248], si
mov dword [ebp - 0x3c], 0x208
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x38]
push eax
push esi
push str.NetCfgInstanceId
mov dword [ebp - 0x38], 1
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x40543f
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x248]
push ecx
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
jne 0x40543f
push 4
mov dword [ebp - 0x28], esi
pop eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
push eax
push esi
push str.Characteristics
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x405439
mov eax, dword [ebp - 0x28]
push 1
mov ecx, eax
pop edx
and ecx, edx
cmp ecx, edx
jne 0x40542c
mov dword [ebp - 0x24], 2
jmp 0x40543c
and eax, 4
cmp eax, 4
jne 0x40543c
mov dword [ebp - 0x24], edx
jmp 0x40543c
push 1
pop edx
mov dword [ebp - 0x2c], edx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040705c
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push esi
push eax
lea eax, [ebp - 0x454]
push eax
push dword [ebp - 0x1c]
jmp 0x405324
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x24]
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40553e
Capabilities:
Get disk information

Disassembly:
mov eax, 0x420240
call fcn.0041fac0
sub esp, 0x50
mov eax, dword [0x426084]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
movzx edi, word [ebp + 0xc]
push edi
lea eax, [ebp - 0x10]
xor ebx, ebx
push str.._c:
push eax
mov dword [ebp - 4], ebx
call fcn.00406ba7
add esp, 0xc
lea eax, [ebp - 0x5c]
mov esi, dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push 0x20
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push ebx
push eax
push ebx
push ebx
push dword [ebp - 0x10]
call esi
cmp eax, 1
jne 0x4055c6
mov eax, dword [0x426084]
mov dword [ebp + 0xc], eax
push dword [ebp - 0x14]
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 1
push str._08X
push eax
call fcn.00406ba7
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
call fcn.004069a1
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
jmp 0x405625
push edi
lea eax, [ebp - 0x10]
push str._c:_
push eax
call fcn.00406ba7
add esp, 0xc
lea eax, [ebp - 0x5c]
push 0x20
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push ebx
push eax
push ebx
push ebx
push dword [ebp - 0x10]
call esi
cmp eax, 1
jne 0x40563b
mov eax, dword [0x426084]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push str._08X
push eax
call fcn.00406ba7
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
call fcn.004069a1
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.0040705c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040705c
push 1
pop eax
jmp 0x405649
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040705c
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4074f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
push edi
xor edx, edx
mov ecx, 0x42bd20
push 8
mov eax, edx
pop esi
mov edi, eax
and edi, 1
dec edi
not edi
and edi, 0xedb88320
shr eax, 1
xor eax, edi
dec esi
jne 0x4074fe
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x42c120
jb 0x4074f9
pop edi
pop esi
ret

Function at 0x407524
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
mov ecx, edx
mov edx, dword [esp + 4]
test edx, edx
jbe 0x407551
push esi
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42bd20]
xor eax, esi
inc ecx
dec edx
jne 0x407532
pop edi
pop esi
ret 4

Function at 0x409a2f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov edx, dword [ecx]
and edx, 7
cmp dword [ebp + 0xc], 5
jae 0x409a46
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp - 4], 0xffffffff
push ebx
push esi
push edi
mov ecx, dword [ebp + 8]
lea esi, [eax + ecx]
mov eax, dword [ebp + 0xc]
lea edi, [ecx + eax - 4]
cmp esi, edi
jae 0x409a6d
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x409a6d
inc esi
jmp 0x409a5e
mov eax, esi
sub eax, ecx
cmp esi, edi
mov dword [ebp - 8], eax
jae 0x409b5d
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x409aa2
xor edx, edx
mov cl, byte [esi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x409acf
cmp cl, 0xff
je 0x409acf
and edx, 3
shl edx, 1
or edx, 1
inc eax
jmp 0x409a51
dec ecx
shl edx, cl
and edx, 7
je 0x409a88
movzx ecx, byte [edx + 0x421604]
mov edi, esi
sub edi, ecx
cmp byte [edx + 0x4215fc], 0
mov cl, byte [edi + 4]
je 0x409aca
test cl, cl
je 0x409aca
cmp cl, 0xff
jne 0x409a88
mov dword [ebp - 4], eax
jmp 0x409a97
xor ebx, ebx
mov bh, cl
mov bl, byte [esi + 3]
movzx ecx, byte [esi + 2]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
cmp dword [ebp + 0x18], 0
je 0x409af8
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x409aff
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x409b33
movzx edi, byte [edx + 0x421604]
push 0x18
mov eax, ebx
shl edi, 3
pop ecx
sub ecx, edi
shr eax, cl
test al, al
je 0x409b1e
cmp al, 0xff
jne 0x409b30
push 0x20
mov eax, dword [ebp - 8]
pop ecx
push 1
sub ecx, edi
pop edi
shl edi, cl
dec edi
xor edi, ebx
jmp 0x409aea
mov eax, dword [ebp - 8]
mov ecx, ebx
mov byte [esi + 1], bl
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
add eax, 5
jmp 0x409a51
mov esi, eax
push 3
sub esi, dword [ebp - 4]
pop edi
lea ecx, [esi - 1]
shl edx, cl
and edx, 7
cmp edi, esi
sbb ecx, ecx
pop edi
not ecx
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
pop ebx
mov dword [edx], ecx
leave
ret
Function at 0x409d5d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x409d6d
xor eax, eax
jmp 0x409dc2
push esi
lea eax, [ebp + 0x10]
push 0
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
and dword [ebp + 0x10], 0
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov ecx, dword [ebp + 0x10]
add dword [ebp + 0xc], ecx
sub edi, ecx
mov dword [ebp - 4], ecx
test eax, eax
je 0x409dbe
test ecx, ecx
je 0x409dbe
test edi, edi
jbe 0x409dbe
lea eax, [ebp + 0x10]
push 0
and dword [ebp + 0x10], 0
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov ecx, dword [ebp + 0x10]
add dword [ebp + 0xc], ecx
sub edi, ecx
add dword [ebp - 4], ecx
jmp 0x409d92
mov eax, dword [ebp - 4]
pop esi
pop edi
leave
ret
Function at 0x40a1bb
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], ecx
test esi, esi
je 0x40a258
cmp word [esi], 0
je 0x40a258
mov ebx, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push esi
call ebx
test eax, eax
je 0x40a1ec
push 1
pop eax
jmp 0x40a25a
and word [ebp - 0x210], 0
push edi
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x20e]
push esi
rep stosd dword es:[edi], eax
push 0x4260b8
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
pop edi
je 0x40a258
lea eax, [ebp - 0x210]
push eax
call ebx
test eax, eax
jne 0x40a24d
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x210]
push eax
call fcn.0040a1bb
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x40a25a
xor eax, eax
pop esi
pop ebx
leave
ret 4

Function at 0x40c79b
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
push esi
dec eax
mov esi, ecx
je 0x40c803
dec eax
je 0x40c7d4
dec eax
je 0x40c7bb
dec eax
jne 0x40c81c
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x40c81c
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00410b4b
mov ecx, eax
call fcn.0041164e
jmp 0x40c81c
push 0
push 0
push 0x427b84
push 0x427e74
push dword [esi + 4]
call fcn.0041625c
add esp, 0x14
lea ecx, [esi + 0x5c0]
push 1
push 1
push 0x3ea
call fcn.0041860e
jmp 0x40c81c
push 0
push 0
push 0x427b84
push 0x427e44
push dword [esi + 4]
call fcn.0041625c
add esp, 0x14
xor eax, eax
pop esi
ret 0x10
Function at 0x40c9e3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421670
push 0x41faec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x8007
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, dword [ebp + 8]
mov dword [0x42b608], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0040ce1c
mov ecx, eax
call fcn.0040ce51
test eax, eax
je 0x40cad0
push ebx
push esi
push ebx
mov edi, 0x42b578
mov ecx, edi
call fcn.0040cb46
call fcn.00413ee3
mov ecx, eax
call fcn.00413f18
call fcn.0040ce1c
mov esi, dword [eax + 0xc]
mov dword [ebp - 0x1c], esi
cmp esi, ebx
jne 0x40ca75
push ebx
push 0x42b568
push 0x42b60c
call sub.gdiplus.dll_GdiplusStartup
call fcn.0041cf1e
call fcn.0040ce1c
mov ecx, eax
call fcn.0040d498
test eax, eax
je 0x40cab0
call fcn.0040ce1c
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
cmp eax, 2
je 0x40caa1
call fcn.00410b4b
mov ecx, eax
call fcn.004135e6
call fcn.0040e275
mov dword [ebp - 0x24], eax
mov dword [eax + 8], 1
cmp esi, ebx
jne 0x40cac9
mov eax, dword [0x42b60c]
cmp eax, ebx
je 0x40cac9
push eax
call sub.gdiplus.dll_GdiplusShutdown
mov dword [0x42b60c], ebx
mov ecx, edi
call fcn.0040cc58
or dword [ebp - 4], 0xffffffff
jmp 0x40caf6
call fcn.0040ce1c
cmp dword [eax + 8], 3
je 0x40cb0d
call fcn.0040ce1c
mov ecx, eax
call fcn.0040d70a
call fcn.0040e275
mov ecx, eax
call fcn.0040e2aa
call fcn.0040e275
mov ecx, eax
call fcn.0040e9a1
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40d498
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x4205c5
call fcn.0041fac0
mov eax, 0x13dc
call fcn.0041fa70
push ebx
push esi
push edi
mov edi, ecx
push 1
xor ebx, ebx
mov eax, dword [edi + 8]
pop esi
cmp eax, esi
mov dword [ebp - 0x10], ebx
jne 0x40d575
call fcn.0040df08
cmp dword [edi + 0xc], ebx
jne 0x40d527
lea ecx, [ebp - 0x13e8]
call fcn.0040bb1d
lea eax, [ebp - 0x13e8]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x13e0]
push eax
push 0x42b578
call fcn.0040e0eb
mov eax, dword [0x42b580]
push ebx
push 0x40e0a7
push ebx
push 0x831
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, esi
jne 0x40d513
mov dword [ebp - 0x10], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13e8]
call fcn.0040bcd9
jmp 0x40d6c6
push 0x7d0
lea eax, [ebp - 0x18]
push 2
push eax
mov dword [ebp - 0x18], str.hao123Juzi.exe
mov dword [ebp - 0x14], str.Uninst.exe
call fcn.00410b4b
mov ecx, eax
call fcn.004114be
test eax, eax
je 0x40d564
call fcn.00410b4b
mov ecx, eax
call fcn.00411516
mov dword [ebp - 0x10], eax
jmp 0x40d6c6
call fcn.0040e275
mov dword [eax + 0xc], 0x70
jmp 0x40d6c6
cmp eax, 3
jne 0x40d612
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x18], str.hao123Juzi.exe
neg eax
sbb eax, eax
mov dword [ebp - 0x14], str.Uninst.exe
and eax, 0x7d0
add eax, 0x3e8
push eax
lea eax, [ebp - 0x18]
push 2
push eax
call fcn.00410b4b
mov ecx, eax
call fcn.004114be
test eax, eax
je 0x40d5c5
call fcn.00410b4b
mov ecx, eax
call fcn.00411516
mov dword [ebp - 0x10], eax
jmp 0x40d5da
mov esi, dword [edi + 0x14]
neg esi
sbb esi, esi
add esi, 0xcc
call fcn.0040e275
mov dword [eax + 0xc], esi
cmp dword [ebp - 0x10], ebx
je 0x40d606
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov ebx, str.Softwarehao123JuziBrowser
push str.hasupdate
mov edi, SysReAllocString
push ebx
push edi
call esi
push str.chkupdate
push ebx
push edi
call esi
jmp 0x40d6c6
mov ecx, edi
call fcn.0040dca7
jmp 0x40d6c6
lea ecx, [ebp - 0x6a4]
call fcn.0040aec6
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.USER32.dll_GetActiveWindow]
call esi
mov edi, eax
lea eax, [ebp - 0x6a4]
push eax
lea eax, [ebp - 0x69c]
push eax
push 0x42b578
call fcn.0040e0eb
mov eax, dword [0x42b580]
push ebx
push 0x40e0a7
mov ebx, 0x831
push edi
mov edi, dword [sym.imp.USER32.dll_DialogBoxParamW]
push ebx
push eax
call edi
cmp eax, 6
jne 0x40d6b7
lea ecx, [ebp - 0xd38]
call fcn.0041435c
mov byte [ebp - 4], 2
call esi
mov esi, eax
lea eax, [ebp - 0xd38]
push eax
lea eax, [ebp - 0xd30]
push eax
push 0x42b578
call fcn.0040e0eb
mov eax, dword [0x42b580]
push 0
push 0x40e0a7
push esi
push ebx
push eax
call edi
push 1
pop ecx
cmp eax, ecx
jne 0x40d6a8
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0xd38]
mov byte [ebp - 4], 1
call fcn.0041447d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6a4]
call fcn.0040b6d0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40d6d8
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
push 1
mov esi, ecx
pop edi
push dword [esp + 0xc]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [esi + 4], eax
je 0x40d703
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40d703
xor edi, edi
mov eax, edi
pop edi
pop esi
ret 4

Function at 0x40d721
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and word [ebp - 0x210], 0
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x210]
push 0x104
push eax
push 0
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, dword [sym.imp.MSVCRT.dll__wcsicmp]
mov edi, eax
push str.Update.exe
push edi
call esi
pop ecx
test eax, eax
pop ecx
jne 0x40d78c
mov dword [ebp - 4], 3
jmp 0x40d7c1
push str.Uninst.exe
push edi
call esi
pop ecx
test eax, eax
pop ecx
je 0x40d7ba
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push str._uninst:
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.00402b7f
add esp, 0xc
test eax, eax
je 0x40d7c1
mov dword [ebp - 4], 2
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x40d7c8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, eax
cmp ebx, esi
je 0x40d853
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20a]
mov word [ebp - 0x20c], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20c]
push 0x103
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edi, eax
lea eax, [ebp - 4]
push eax
push str._silent:
push ebx
mov dword [ebp - 4], esi
call fcn.00402b7f
add esp, 0xc
test eax, eax
jne 0x40d850
lea eax, [ebp - 4]
push eax
push esi
push edi
call fcn.00410b4b
mov ecx, eax
call fcn.00412973
test eax, eax
je 0x40d853
cmp dword [ebp - 4], esi
je 0x40d853
push 1
pop esi
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret