joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402369
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1428
call fcn.0041be40
mov edx, dword [ebp + 8]
push ebx
xor ebx, ebx
push edi
cmp edx, ebx
mov dword [ebp - 4], ebx
je 0x4024cf
cmp word [edx], bx
je 0x4024cf
cmp dword [ebp + 0xc], ebx
je 0x4024cf
cmp dword [ebp + 0x10], ebx
je 0x4024cf
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x426]
mov word [ebp - 0x428], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x4222dc
lea eax, [ebp - 0x428]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1428]
push 0x1000
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4024cf
mov edx, dword [ebp - 0x10]
push ebx
mov ecx, 0x82
pop eax
lea edi, [ebp - 0x21e]
mov word [ebp - 0x220], bx
shr edx, 2
rep stosd dword es:[edi], eax
mov dword [ebp - 8], ebx
je 0x4024ca
lea eax, [ebp - 0x1428]
push esi
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], edx
jmp 0x402421
xor ebx, ebx
mov eax, dword [ebp + 8]
push dword [eax]
push ebx
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x4024bc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push 4
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4024b5
lea eax, [ebp - 0x220]
push 0x104
push eax
push dword [ebp - 8]
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x4024b5
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
xor edi, edi
mov ebx, eax
cmp dword [ebp + 0x10], edi
jle 0x4024bc
mov esi, dword [ebp + 0xc]
push dword [esi]
push ebx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
je 0x4024b0
inc edi
add esi, 4
cmp edi, dword [ebp + 0x10]
jl 0x402496
jmp 0x4024bc
inc dword [ebp - 4]
jmp 0x4024bc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add dword [ebp + 8], 4
dec dword [ebp - 0xc]
jne 0x40241f
pop esi
mov eax, dword [ebp - 4]
jmp 0x4024d1
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x40291d
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
xor edi, edi
cmp eax, edi
je 0x402978
cmp word [eax], di
je 0x402978
cmp dword [ebp + 0xc], edi
je 0x402978
cmp dword [ebp + 0x10], edi
je 0x402978
lea ecx, [ebp + 8]
push esi
push ecx
push eax
mov dword [ebp + 8], edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
cmp esi, edi
je 0x402973
cmp dword [ebp + 8], edi
je 0x40296c
push dword [esi]
push 0x4220a0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push 1
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop esi
jmp 0x40297a
xor eax, eax
pop edi
pop ebp
ret

Function at 0x40297d
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x402a2b
cmp dword [ebp + 0xc], esi
je 0x402a2b
cmp dword [ebp + 0x10], esi
je 0x402a2b
push edi
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
je 0x402a26
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x402a26
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, esi
mov dword [ebp + 0x10], eax
je 0x402a1c
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402a1c
push edi
push esi
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [ebp + 0xc]
push esi
push eax
push edi
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402a15
cmp edi, dword [ebp + 0xc]
jne 0x402a15
push 1
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
mov eax, esi
pop edi
jmp 0x402a2d
xor eax, eax
pop esi
leave
ret

Function at 0x402c61
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
xor esi, esi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402ce3
push edi
mov ecx, 0x81
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x4220a0
lea eax, [ebp - 0x208]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x208]
push 5
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x4222e0
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
pop edi
jle 0x402ce1
push 1
pop esi
mov eax, esi
pop esi
leave
ret
Function at 0x402e44
Capabilities:
Create new key via cryptacquirecontext
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 8
mov ebx, str.Microsoft_Base_Cryptographic_Provider_v1.0
xor ebp, ebp
push 1
push ebx
push ebp
push esi
mov dword [esp + 0x24], ebp
call edi
cmp dword [esi], ebp
jne 0x402e77
push 0xf0000048
push 1
push ebx
push ebp
push esi
call edi
mov eax, dword [esi]
cmp eax, ebp
je 0x402ea6
push dword [esp + 0x1c]
push ebp
push ebp
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x402e9d
mov dword [esp + 0x10], 1
jmp 0x402ea6
push ebp
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x403734
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov eax, ebx
push 3
cdq
pop ecx
xor esi, esi
idiv ecx
lea eax, [ebx + 2]
mov dword [ebp - 8], edx
cdq
idiv ecx
lea eax, [eax*4 + 1]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, dword [ebp + 8]
pop ecx
mov ecx, eax
xor eax, eax
test ebx, ebx
mov dword [ebp - 4], eax
jle 0x4037e2
push 3
cdq
pop ebx
idiv ebx
test edx, edx
jne 0x403784
mov eax, dword [ebp - 4]
movzx edx, byte [eax + edi]
shr edx, 2
jmp 0x4037cd
cmp edx, 1
jne 0x4037a6
mov eax, dword [ebp - 4]
mov dl, byte [eax + edi - 1]
movzx ebx, byte [eax + edi]
and edx, 3
shl edx, 4
shr ebx, 4
mov dl, byte [edx + ebx + 0x422020]
jmp 0x4037d3
mov eax, dword [ebp - 4]
cmp edx, 2
jne 0x4037d7
movzx ebx, byte [eax + edi]
mov dl, byte [eax + edi - 1]
and edx, 0xf
shr ebx, 6
mov dl, byte [ebx + edx*4 + 0x422020]
mov byte [ecx + esi], dl
mov dl, byte [eax + edi]
inc esi
and edx, 0x3f
mov dl, byte [edx + 0x422020]
mov byte [ecx + esi], dl
inc esi
mov ebx, dword [ebp + 0xc]
inc eax
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x40376e
cmp dword [ebp - 8], 1
jne 0x403802
mov al, byte [edi + ebx - 1]
and eax, 3
shl eax, 4
mov al, byte [eax + 0x422020]
mov byte [ecx + esi], al
inc esi
mov byte [ecx + esi], 0x3d
jmp 0x403819
cmp dword [ebp - 8], 2
jne 0x40381f
mov al, byte [edi + ebx - 1]
and eax, 0xf
mov al, byte [eax*4 + 0x422020]
mov byte [ecx + esi], al
inc esi
mov byte [ecx + esi], 0x3d
inc esi
and byte [ecx + esi], 0
pop edi
pop esi
mov eax, ecx
pop ebx
leave
ret
Function at 0x40382a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6ac
xor eax, eax
cmp dword [ebp + 8], eax
mov dword [ebp - 4], eax
je 0x40395e
cmp dword [ebp + 0xc], eax
je 0x40395e
push ebx
push esi
push edi
mov ecx, 0x81
lea edi, [ebp - 0x29a]
mov word [ebp - 0x29c], ax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call section..text
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push 1
cmp eax, 8
pop ebx
jl 0x4038de
and word [ebp - 0x94], 0
push 0x1f
pop ecx
xor eax, eax
lea edi, [ebp - 0x92]
mov dword [ebp - 0x14], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x7e
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x14]
push eax
push str.Progid
push str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
push SysReAllocString
call esi
test eax, eax
jne 0x4038f8
lea eax, [ebp - 0x94]
push eax
push str._s_shellopencommand
lea eax, [ebp - 0x29c]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
jmp 0x4038f8
push str.http_shellopencommand
lea eax, [ebp - 0x29c]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0xc
and word [ebp - 0x6ac], 0
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0x6aa]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0x6ac]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x29c]
push 0
push eax
push SysReAllocString
mov dword [ebp - 8], 0x40e
call esi
pop edi
pop esi
test eax, eax
pop ebx
jne 0x403959
push dword [ebp + 0xc]
lea eax, [ebp - 0x6ac]
push dword [ebp + 8]
push eax
call fcn.0040291d
add esp, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret
xor eax, eax
leave
ret
Function at 0x403d1e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x403e32
cmp dword [ebp + 0xc], ebx
je 0x403e32
push str.NtQueryInformationProcess
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 3
je 0x403e32
xor eax, eax
lea edi, [ebp - 0x28]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x10], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 8], ebx
jle 0x403e32
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x403ddd
push eax
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x403ddd
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x2c]
push 0x18
push eax
push ebx
push edi
call dword [ebp - 0x14]
push edi
mov dword [ebp - 0xc], eax
call esi
cmp dword [ebp - 0xc], ebx
jne 0x403e32
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x403de2
mov ecx, dword [ebp - 4]
inc dword [ebp - 8]
add dword [ebp - 4], 0x24
mov dword [ecx], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0xc]
jl 0x403d91
cmp dword [ebp - 0xc], ebx
jne 0x403e32
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
cmp edi, ebx
je 0x403e2d
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x20]
push ebx
push eax
push 0x403a24
push ebx
push ebx
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call esi
push 0x493e0
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
push 1
pop eax
jmp 0x403e34
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403e76
Capabilities:
Check if file exists

Disassembly:
push esi
xor esi, esi
push dword [esp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x403e89
pop esi
ret
push edi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x403eba
push 0x422668
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403eb3
call eax
mov esi, eax
neg esi
sbb esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop edi
pop esi
ret

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

Disassembly:
push esi
push edi
xor edx, edx
mov ecx, 0x425fc0
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 0x40467d
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x4263c0
jb 0x404678
pop edi
pop esi
ret
Function at 0x4046a3
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
mov ecx, edx
mov edx, dword [esp + 4]
test edx, edx
jbe 0x4046d0
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 + 0x425fc0]
xor eax, esi
inc ecx
dec edx
jne 0x4046b1
pop edi
pop esi
ret 4

Function at 0x406bae
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 0x406bc5
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 0x406bec
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x406bec
inc esi
jmp 0x406bdd
mov eax, esi
sub eax, ecx
cmp esi, edi
mov dword [ebp - 8], eax
jae 0x406cdc
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x406c21
xor edx, edx
mov cl, byte [esi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x406c4e
cmp cl, 0xff
je 0x406c4e
and edx, 3
shl edx, 1
or edx, 1
inc eax
jmp 0x406bd0
dec ecx
shl edx, cl
and edx, 7
je 0x406c07
movzx ecx, byte [edx + 0x41d594]
mov edi, esi
sub edi, ecx
cmp byte [edx + 0x41d58c], 0
mov cl, byte [edi + 4]
je 0x406c49
test cl, cl
je 0x406c49
cmp cl, 0xff
jne 0x406c07
mov dword [ebp - 4], eax
jmp 0x406c16
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 0x406c77
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x406c7e
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x406cb2
movzx edi, byte [edx + 0x41d594]
push 0x18
mov eax, ebx
shl edi, 3
pop ecx
sub ecx, edi
shr eax, cl
test al, al
je 0x406c9d
cmp al, 0xff
jne 0x406caf
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 0x406c69
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 0x406bd0
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 0x406edc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x406eec
xor eax, eax
jmp 0x406f41
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 0x406f3d
test ecx, ecx
je 0x406f3d
test edi, edi
jbe 0x406f3d
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 0x406f11
mov eax, dword [ebp - 4]
pop esi
pop edi
leave
ret
Function at 0x40733a
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 0x4073d7
cmp word [esi], 0
je 0x4073d7
mov ebx, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push esi
call ebx
test eax, eax
je 0x40736b
push 1
pop eax
jmp 0x4073d9
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 0x4220a0
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 0x4073d7
lea eax, [ebp - 0x210]
push eax
call ebx
test eax, eax
jne 0x4073cc
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x210]
push eax
call fcn.0040733a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4073d9
xor eax, eax
pop esi
pop ebx
leave
ret 4

Function at 0x409a81
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
push esi
dec eax
mov esi, ecx
je 0x409ae7
dec eax
je 0x409aba
dec eax
je 0x409aa1
dec eax
jne 0x409afe
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x409afe
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.0040d67a
mov ecx, eax
call fcn.0040e1ae
jmp 0x409afe
push 0
push 0x422798
push 0x422a88
push dword [esi + 4]
call fcn.004125a8
add esp, 0x10
lea ecx, [esi + 0x5c0]
push 1
push 1
push 0x3ea
call fcn.004149a8
jmp 0x409afe
push 0
push 0x422798
push 0x422a58
push dword [esi + 4]
call fcn.004125a8
add esp, 0x10
xor eax, eax
pop esi
ret 0x10
Function at 0x409c99
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d600
push 0x41bef6
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 [0x425ad8], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0040a0c6
mov ecx, eax
call fcn.0040a0fb
test eax, eax
je 0x409d86
push ebx
push esi
push ebx
mov edi, 0x425a48
mov ecx, edi
call fcn.00409df0
call fcn.004104e1
mov ecx, eax
call fcn.00410516
call fcn.0040a0c6
mov esi, dword [eax + 0xc]
mov dword [ebp - 0x1c], esi
cmp esi, ebx
jne 0x409d2b
push ebx
push 0x425a38
push 0x425adc
call sub.gdiplus.dll_GdiplusStartup
call fcn.004192f5
call fcn.0040a0c6
mov ecx, eax
call fcn.0040a742
test eax, eax
je 0x409d66
call fcn.0040a0c6
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
cmp eax, 2
je 0x409d57
call fcn.0040d67a
mov ecx, eax
call fcn.0040ff34
call fcn.0040b50b
mov dword [ebp - 0x24], eax
mov dword [eax + 8], 1
cmp esi, ebx
jne 0x409d7f
mov eax, dword [0x425adc]
cmp eax, ebx
je 0x409d7f
push eax
call sub.gdiplus.dll_GdiplusShutdown
mov dword [0x425adc], ebx
mov ecx, edi
call fcn.00409f02
or dword [ebp - 4], 0xffffffff
jmp 0x409dac
call fcn.0040a0c6
cmp dword [eax + 8], 3
je 0x409dc3
call fcn.0040a0c6
mov ecx, eax
call fcn.0040a9b4
call fcn.0040b50b
mov ecx, eax
call fcn.0040b540
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 0x40a742
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x41c6a5
call fcn.0041be90
mov eax, 0x13dc
call fcn.0041be40
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 0x40a81f
call fcn.0040b1b0
cmp dword [edi + 0xc], ebx
jne 0x40a7d1
lea ecx, [ebp - 0x13e8]
call fcn.00408e06
lea eax, [ebp - 0x13e8]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x13e0]
push eax
push 0x425a48
call fcn.0040b393
mov eax, dword [0x425a50]
push ebx
push 0x40b34f
push ebx
push 0x831
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, esi
jne 0x40a7bd
mov dword [ebp - 0x10], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13e8]
call fcn.00408fc2
jmp 0x40a970
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.0040d67a
mov ecx, eax
call fcn.0040dfea
test eax, eax
je 0x40a80e
call fcn.0040d67a
mov ecx, eax
call fcn.0040e05d
mov dword [ebp - 0x10], eax
jmp 0x40a970
call fcn.0040b50b
mov dword [eax + 0xc], 0x70
jmp 0x40a970
cmp eax, 3
jne 0x40a8bc
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.0040d67a
mov ecx, eax
call fcn.0040dfea
test eax, eax
je 0x40a86f
call fcn.0040d67a
mov ecx, eax
call fcn.0040e05d
mov dword [ebp - 0x10], eax
jmp 0x40a884
mov esi, dword [edi + 0x14]
neg esi
sbb esi, esi
add esi, 0xcc
call fcn.0040b50b
mov dword [eax + 0xc], esi
cmp dword [ebp - 0x10], ebx
je 0x40a8b0
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 0x40a970
mov ecx, edi
call fcn.0040af50
jmp 0x40a970
lea ecx, [ebp - 0x6a4]
call fcn.00408045
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 0x425a48
call fcn.0040b393
mov eax, dword [0x425a50]
push ebx
push 0x40b34f
mov ebx, 0x831
push edi
mov edi, dword [sym.imp.USER32.dll_DialogBoxParamW]
push ebx
push eax
call edi
cmp eax, 6
jne 0x40a961
lea ecx, [ebp - 0xd38]
call fcn.0041095a
mov byte [ebp - 4], 2
call esi
mov esi, eax
lea eax, [ebp - 0xd38]
push eax
lea eax, [ebp - 0xd30]
push eax
push 0x425a48
call fcn.0040b393
mov eax, dword [0x425a50]
push 0
push 0x40b34f
push esi
push ebx
push eax
call edi
push 1
pop ecx
cmp eax, ecx
jne 0x40a952
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0xd38]
mov byte [ebp - 4], 1
call fcn.00410a7b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6a4]
call fcn.004088b5
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 0x40a982
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 0x40a9ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40a9ad
xor edi, edi
mov eax, edi
pop edi
pop esi
ret 4

Function at 0x40a9cb
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 0x40aa36
mov dword [ebp - 4], 3
jmp 0x40aa6b
push str.Uninst.exe
push edi
call esi
pop ecx
test eax, eax
pop ecx
je 0x40aa64
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.00402b6c
add esp, 0xc
test eax, eax
je 0x40aa6b
mov dword [ebp - 4], 2
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x40aa72
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 0x40aafd
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.00402b6c
add esp, 0xc
test eax, eax
jne 0x40aafa
lea eax, [ebp - 4]
push eax
push esi
push edi
call fcn.0040d67a
mov ecx, eax
call fcn.0040f2cc
test eax, eax
je 0x40aafd
cmp dword [ebp - 4], esi
je 0x40aafd
push 1
pop esi
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret