joyce8/EMBER2024-capa huggingface dataset:
Function at 0x647226dc
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0x334
mov eax, 0x6474449c
call fcn.647264a8
mov esi, dword [ebp + 8]
mov eax, str.error___
test esi, esi
cmovne eax, esi
push eax
push str.MakeDirectory____s_
call fcn.64721861
xor ebx, ebx
lea eax, [ebp - 0x31b]
push 0x103
push ebx
push eax
mov dword [ebp - 0x338], ebx
mov byte [ebp - 0x31c], bl
call fcn.64725a70
add esp, 0x14
call fcn.64702df6
test eax, eax
je 0x647227ac
push ebx
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.64702936
add esp, 0xc
lea ecx, [ebp - 0x334]
push esi
call fcn.647011e6
mov edi, eax
mov dword [ebp - 4], ebx
cmp byte [ebp - 0x218], bl
jne 0x64722761
mov eax, ebx
jmp 0x6472276e
lea eax, [ebp - 0x218]
push eax
call fcn.64725b00
pop ecx
push eax
push ebx
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.64702345
cmp eax, 0xffffffff
sete bl
or dword [ebp - 4], 0xffffffff
xor edi, edi
lea ecx, [ebp - 0x334]
push 0
inc edi
push edi
call fcn.647020ab
mov eax, dword [ebp - 0x338]
test bl, bl
cmovne eax, edi
xor ebx, ebx
mov dword [ebp - 0x338], eax
push 0x104
lea eax, [ebp - 0x218]
mov dword [ebp - 0x33c], ebx
push esi
push eax
call fcn.64722cdb
lea eax, [ebp - 0x340]
mov dword [ebp - 0x340], ebx
push eax
lea eax, [ebp - 0x218]
push 0x6474b550
push eax
call fcn.64729cd8
mov edi, eax
add esp, 0x18
test edi, edi
je 0x64722951
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp - 0x33c]
test eax, eax
lea eax, [ebp - 0x114]
push 0x104
jne 0x64722819
push edi
push eax
call fcn.64722cdb
add esp, 0xc
jmp 0x6472290d
push 0x64745954
push eax
call fcn.64722c82
push 0x104
lea eax, [ebp - 0x114]
push edi
push eax
call fcn.64722c82
add esp, 0x18
call fcn.64702df6
test eax, eax
je 0x64722902
cmp dword [ebp - 0x338], 0
mov dword [ebp - 0x328], 0xc
mov dword [ebp - 0x320], 1
je 0x647228d0
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x647228b9
lea eax, [ebp - 0x31c]
push eax
call fcn.64702bb8
pop ecx
test eax, eax
je 0x6472293c
call fcn.64702ab8
mov dword [ebp - 0x324], eax
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x114]
push eax
call ebx
cmp dword [ebp - 0x324], 0
je 0x647228b9
push dword [ebp - 0x324]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x114]
push 0x104
push eax
lea eax, [ebp - 0x31c]
jmp 0x6472280b
call fcn.64702ab8
mov dword [ebp - 0x324], eax
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x114]
push eax
call ebx
cmp dword [ebp - 0x324], 0
je 0x6472290d
push dword [ebp - 0x324]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x6472290d
push 0
lea eax, [ebp - 0x114]
push eax
call ebx
lea eax, [ebp - 0x340]
push eax
push 0x6474b550
push 0
call fcn.64729cd8
mov edi, eax
add esp, 0xc
mov eax, dword [ebp - 0x33c]
inc eax
mov dword [ebp - 0x33c], eax
test edi, edi
jne 0x647227fb
jmp 0x64722951
push esi
lea eax, [ebp - 0x114]
push eax
push str.Ignore_create__s___s_
call fcn.64721861
add esp, 0xc
call fcn.64726457
ret
Function at 0x64722a26
Capabilities:
Print debug messages

Disassembly:
push 0x40c
mov eax, 0x647444d1
call fcn.647264a8
mov dword [ebp - 0x414], ecx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test ebx, ebx
jne 0x64722a7c
push 0x254
push str.npbase_win.cpp
push str.lpszName
push str.ASSERT__s_failed_at_file__s__line__d_r_n
lea eax, [ebp - 0x410]
push 0x400
push eax
call fcn.64704ee5
add esp, 0x18
lea eax, [ebp - 0x410]
push eax
call esi
test edi, edi
jne 0x64722ab1
push 0x255
push str.npbase_win.cpp
push str.lpszValue
push str.ASSERT__s_failed_at_file__s__line__d_r_n
lea eax, [ebp - 0x410]
push 0x400
push eax
call fcn.64704ee5
add esp, 0x18
lea eax, [ebp - 0x410]
push eax
call esi
test ebx, ebx
je 0x64722b26
test edi, edi
je 0x64722b26
mov ecx, dword [ebp - 0x414]
push ebx
call fcn.64721c7f
test eax, eax
je 0x64722ad7
push edi
lea ecx, [eax + 8]
call fcn.647212f5
xor eax, eax
inc eax
jmp 0x64722b28
push 0x10
call fcn.647239d2
pop ecx
mov dword [ebp - 0x418], eax
and dword [ebp - 4], 0
test eax, eax
je 0x64722af8
mov ecx, eax
call fcn.6472127a
mov esi, eax
jmp 0x64722afa
xor esi, esi
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x64722b26
push ebx
mov ecx, esi
call fcn.647212f5
push edi
lea ecx, [esi + 8]
call fcn.647212f5
mov ecx, dword [ebp - 0x414]
push 0
push esi
lea ecx, [ecx + 4]
call fcn.647214b1
jmp 0x64722ad2
xor eax, eax
call fcn.64726457
ret 8
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0xed2500
Capabilities:
Encode data using xor

Disassembly:
add byte [eax], al
jmp 0xed250a
pushal
call 0xed2510
pop ebp
sub ebp, 0x10
sub ebp, 0xad2500
jmp 0xed2526
mov eax, 0xad2500
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c9
mov edx, 0xe3355b92
xor byte [eax], dl
inc eax
dec ecx
jne 0xed253d
jmp 0xed2550
sbb dword [edi + 0x19], ebx
sbb ebp, dword [esi + 0x13929292]
push ebx
push 0xffffffffffffff92
xchg edx, eax
xchg edx, eax
xchg ecx, eax
pop edi
sub dl, byte [edx + edx*4 - 0x45d76d6e]
xchg edx, eax
xchg edx, eax
xchg edx, eax
jo 0xed24fe
pop edx
sbb dword [ebx], edx
sahf
xchg edx, eax
xchg edx, eax
xchg edx, eax
xchg ecx, eax
push edi
ret 0xf61f
Function at 0x4072ad
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x46bc7c], 0
jne 0x4072eb
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4072c1
mov dword [ecx*4 + 0x46bc78], eax
inc ecx
cmp ecx, 0x100
jl 0x4072bc
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x407318
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46bc78]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072f9
not eax
pop ebp
ret 0xc

Function at 0xc75058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00c751a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xc7507e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc7506a
add dl, dl
jne 0xc75089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc750dc
xor eax, eax
add dl, dl
jne 0xc75096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc7517d
add dl, dl
jne 0xc750a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc750b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc750bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc750c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xc750d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xc75075
mov eax, 1
add dl, dl
jne 0xc750ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc750f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc750e1
sub eax, ebx
mov ebx, 1
jne 0xc75128
mov ecx, 1
add dl, dl
jne 0xc7510e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc75119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc75105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc75075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xc7513f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc7514a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc75136
cmp eax, 0x7d00
jae 0xc7516d
cmp eax, 0x500
jb 0xc75168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc75075
cmp eax, 0x7f
ja 0xc75170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc75075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xc7519e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xc75075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x432001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x4b09413a
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x75ef3d09
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4011d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4011e7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401218
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401214
cmp esi, eax
jae 0x401218
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x401204
cmp esi, eax
jb 0x40121e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x4015f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x401600
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x401610
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x401640
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x61e69c]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x4016ba
xor eax, eax
cmp ecx, ebp
je 0x4016a2
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x4016c8
cmp ecx, ebp
je 0x40175b
push ecx
jmp 0x401755
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x40172a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00401640
mov ebx, eax
cmp ebx, ebp
jne 0x401778
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x4016f0
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40173d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.004014e0
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40175b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f673f
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x401787
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x40175d
Function at 0x401c80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x59d350
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x61e69c]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
jne 0x401cff
call fcn.004012b0
mov esi, eax
jmp 0x401de1
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x401d1b
call fcn.004012b0
jmp 0x401dd8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x401d34
call fcn.004012b0
jmp 0x401dd8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x401d68
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x401d56
lea eax, [ebp]
call fcn.00406eb0
lea esi, [ebp - 0x1c]
call fcn.00406510
mov eax, 0x8007000e
jmp 0x401df3
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.004065e0
mov dword [ebp - 4], 1
jmp 0x401d91
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x401d9f
mov esi, 0x8007000e
jmp 0x401dda
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x401dbd
call fcn.004012b0
jmp 0x401dd8
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.00402ac0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x401df1
lea eax, [ebp]
call fcn.00406eb0
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 + 0x404]
xor ecx, ebp
call fcn.004f673f
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404020
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
jne 0x404064
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40406b
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 0x404061
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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 0x40408b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
ret

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

Disassembly:
sub esp, 0x814
mov eax, dword [0x61e69c]
xor eax, esp
mov dword [esp + 0x80c], eax
push esi
push edi
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.004fe380
add esp, 0xc
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.WS2_32.dll_bind
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x404124
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x80c]
xor ecx, esp
call fcn.004f673f
add esp, 0x814
ret
push str.360ver.dll
lea edx, [esp + 0x14]
push edx
mov eax, edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404108
lea edx, [esp + 0x10]
push edx
call fcn.00404460
add esp, 4
test eax, eax
je 0x404108
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x404108
push str.IsBetaVersion
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x814]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.004f673f
add esp, 0x814
ret
Function at 0x4041a0
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1010
call fcn.00515150
mov eax, dword [0x61e69c]
xor eax, esp
mov dword [esp + 0x1008], eax
push esi
push 0x1000
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004fe380
add esp, 0xc
lea esi, [esp + 4]
lea edx, [esp + 8]
call fcn.00403f10
test eax, eax
jl 0x4041f7
mov eax, dword [esp + 4]
mov ecx, 0x800
sub ecx, eax
lea edx, [esp + eax*2 + 8]
mov eax, 0x5d75e4
call fcn.00403f50
lea esi, [esp + 4]
lea edx, [esp + 8]
call fcn.00403f10
test eax, eax
jl 0x40421e
mov eax, dword [esp + 4]
mov ecx, 0x800
sub ecx, eax
lea edx, [esp + eax*2 + 8]
mov eax, edi
call fcn.00403f50
lea esi, [esp + 4]
lea edx, [esp + 8]
call fcn.00403f10
test eax, eax
jl 0x404248
mov eax, dword [esp + 4]
mov ecx, 0x800
sub ecx, eax
lea edx, [esp + eax*2 + 8]
mov eax, 0x5d75ec
call fcn.00403f50
lea esi, [esp + 4]
lea edx, [esp + 8]
call fcn.00403f10
test eax, eax
jl 0x40426f
mov eax, dword [esp + 4]
mov ecx, 0x800
sub ecx, eax
lea edx, [esp + eax*2 + 8]
mov eax, edi
call fcn.00403f50
lea esi, [esp + 4]
lea edx, [esp + 8]
call fcn.00403f10
test eax, eax
jl 0x404299
mov eax, dword [esp + 4]
mov ecx, 0x800
sub ecx, eax
lea edx, [esp + eax*2 + 8]
mov eax, str.vL
call fcn.00403f50
lea esi, [esp + 4]
lea edx, [esp + 8]
call fcn.00403f10
test eax, eax
jl 0x4042c0
mov eax, dword [esp + 4]
mov ecx, 0x800
sub ecx, eax
lea edx, [esp + eax*2 + 8]
mov eax, ebx
call fcn.00403f50
lea esi, [esp + 4]
lea edx, [esp + 8]
call fcn.00403f10
test eax, eax
jl 0x4042ea
mov eax, dword [esp + 4]
mov ecx, 0x800
sub ecx, eax
lea edx, [esp + eax*2 + 8]
mov eax, 0x5d763c
call fcn.00403f50
push 0x14
push edi
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x40434d
push 0xc8
push 0x5d7578
push str.http:__down.360safe.com_setup.exe
call fcn.004f9ab7
add esp, 0xc
test eax, eax
jne 0x404335
call fcn.004040a0
test eax, eax
je 0x404335
push 5
push 0
push 0
push str.http:__down.360safe.com_setupbeta.exe
jmp 0x404340
push 5
push 0
push 0
push str.http:__down.360safe.com_setup.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call fcn.004f7826
int3

Function at 0x4044c0
Capabilities:
Check if file exists

Disassembly:
push ecx
push ebx
mov ebx, eax
push edi
push ebx
call fcn.00404460
add esp, 4
test eax, eax
je 0x4044db
mov eax, 1
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4044ea
pop edi
pop ebx
pop ecx
ret
mov edi, 0x624a88
call fcn.004041a0
int3