joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403860
Capabilities:
Encode data using xor

Disassembly:
call 0x7642e4b6
add byte [ebx + 0x4117f0b3], cl
les eax, [ebx + 0xf5130c4]
xor byte [ecx + 0xf], dl
dec ebp
loopne 0x403876
jo 0x40381e
push edx
leave
mov eax, dword [ebp - 0x47]
cmc
push ecx
push eax
pop esi
jge 0x403831
add byte [edx - 0x75], dl
push ebp
fcom qword [eax - 0x5f]
test al, 0xb
inc ecx
add bl, dl
push edx
cmp dl, byte [edi + 0x57]
push eax
push str._tr__s__th__s_Total:__th__td__s__5I64d__td__td__s__5I64d__td__td__s__5I64d__td___tr__n
call esi
or ah, al
jnp 0x4038b5
mov eax, 0xff0040df
and eax, 0x5f04c483
pop esi
pop ebx
invalid
push ebp
mov ebp, esp
sub esp, 0x1f
jle 0x403810
add bl, cl
add byte [ebx + 0x40d0100d], cl
add byte [ebx + 0x56], dl
hlt
psrlw mm7, mm6
add dword [eax], eax
retf 0x758b
cmpsd dword [esi], dword es:[edi]
push ss
add al, dl
mov edx, dword [ebx]
mov eax, dword [0x7a2d17fc]
push edx
push ebx
mov ecx, dword [eax + 0x10]
lea edi, [esi + 4]
push 1
push ecx
push edi
call 0x40c919
cmp eax, ebx
lodsd eax, dword [esi]
lodsd eax, dword [esi]
push eax
push 0xf9e838
dec ebp
push cs
in eax, 0x17
inc dword [ebx + 0x5b8b08c4]
push 1
push 8
push edx
call fcn.00408cf6
cmp esp, dword [0x2b500e74]
sub byte [edi + 0x42e8004f], cl
in eax, 0xff
inc dword [ebx + 0x6ca108c4]
add dl, byte [edx]
cmp eax, ebx
je 0x40396b
push eax
mov eax, dword [edi]
push 0x40
push eax
call 0x43408db0
cmp eax, ebx
jmp 0x40392e
mov ecx, ebx
arpl word [edx], ax
inc ecx
add byte [ebx - 0x2197aee9], cl
push esp
add byte [esi], bh
sub ch, al
inc esi
push esp
add byte [esi + 0x3b], ah
ret
insd dword es:[edi], dx
pop ss
mov edx, 0x83086
add byte [ecx - 0x3fbef4f3], ah
aaa
xchg byte [eax + ecx], dh
add byte [ebx + ecx*4 + 0x5017fc0d], bh
add dh, dl
push edx
call 0x13df840
mov ebx, eax
test ebx, ebx
into
test al, cl
fild word [eax]
invalid

Function at 0x43cf72
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x43ccda
call fcn.0043cf97
xor dword [edi], ecx
add esi, eax
inc edi
sub eax, 1
sub esi, esi
cmp edi, edx
jne fcn.0043cf72
sub esi, 0x70f1ae4a
dec eax
ret
Function at 0x420b5b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x420b9a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420b9a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420b9a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x420b9a
cmp dword [ecx + 0x74], 0xe
jbe 0x420b9a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x433310
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43333d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43333d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x450590
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3e000]
push edi
or ebp, 0xffffffff
jmp 0x4505b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4505b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4505a8
mov eax, 1
add ebx, ebx
jne 0x4505cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4505dc
jne 0x4505ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4505ec
dec eax
add ebx, ebx
jne 0x4505e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4505c0
xor ecx, ecx
sub eax, 3
jb 0x450604
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x450676
sar eax, 1
mov ebp, eax
jmp 0x45060f
add ebx, ebx
jne 0x45060f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x45061c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x450640
inc ecx
add ebx, ebx
jne 0x45062c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x450621
jne 0x45063d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x450621
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x450660
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x450651
jmp 0x4505ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x450660
add edi, ecx
jmp 0x4505ae
pop esi
mov edi, esi
mov ecx, 0x36f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x45067e
cmp byte [edi], 5
jne 0x45067e
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x450683
lea edi, [esi + 0x4e000]
mov eax, dword [edi]
or eax, eax
je 0x4506fb
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x51280]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x512bc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4506b0
mov ecx, edi
jns 0x4506df
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x512c0]
or eax, eax
je 0x4506f5
mov dword [ebx], eax
add ebx, 4
jmp 0x4506cd
call dword [esi + 0x512c4]
popal
jmp 0x4015c8
Function at 0xa3b790
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xa3b7cf
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
pop esi
pop ebp
ret

Function at 0xa53d42
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a539bf

Function at 0xa5a3f5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a5a26b

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

Disassembly:
push ecx
push esi
push edi
push 0x10003010
push 0x65
push dword [0x1000313c]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x10001061
push edi
push dword [0x1000313c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10001061
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001061
push edi
push dword [0x1000313c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
jne 0x10001065
xor eax, eax
jmp 0x100010a7
push ebx
mov ebx, dword [esi]
push 0
push 4
push 2
push 0
push 2
push 0x40000000
push 0x10003038
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100010a3
lea eax, [esp + 0xc]
push 0
push eax
add esi, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop ebx
pop edi
pop esi
pop ecx
ret

Function at 0x100010ab
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push edi
xor edx, edx
xor eax, eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], edx
push 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
push edx
push edx
push 0x8000000
push edx
push edx
push edx
push 0x10003038
push edx
mov word [ebp - 0x24], dx
mov dword [ebp - 0x28], 0x81
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x10001110
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x10]
call esi
pop esi
xor eax, eax
leave
ret
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x403e59
pop dword [ebp - 8]
mov eax, 0x84f81d7c
sub eax, 0x84b7df23
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x200d3b20
sub dword [ebp - 0x18], 0xd1baf5d5
mov dword [ebp - 0x14], 0xbdebe23f
sub dword [ebp - 0x14], 0x8bb895fa
mov dword [ebp - 0x10], 0x986d3807
add dword [ebp - 0x10], 0xb3df0c27
mov dword [ebp - 0xc], 0x6910c7e9
add dword [ebp - 0xc], 0x96ef3817
lea eax, [ebp - 0x18]
push eax
mov eax, 0x38560ba3
add eax, 0xc7ea74e9
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0xe9f93ce1
add dword [ebp - 0x18], 0x8a792c75
mov dword [ebp - 0x14], 0x1054f748
sub dword [ebp - 0x14], 0xcee895d3
mov dword [ebp - 0x10], 0xdf0cc77c
sub dword [ebp - 0x10], 0x7b9d5b10
mov dword [ebp - 0xc], 0x61246d2d
sub dword [ebp - 0xc], 0x61246d2d
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x36431
push 0
call eax
mov ecx, 0xaacffe6e
sub ecx, 0xaacfb85f
mov esi, eax
mov edx, 0x4c24c180
sub edx, 0x4be3b180
add edx, dword [ebp - 8]
mov ebx, 0x2faa8329
add ebx, 0xb5b4d4dc
mov edi, dword [edx]
xor dword [ebp - 4], esi
xor edi, ebx
mov dword [ebp - 4], 0x95536999
mov dword [esi], edi
sub dword [ebp - 4], 0xd95d89ad
add esi, 4
add edx, 4
loop 0x403f76
add eax, 0x785246fd
add eax, 0x87aec412
xor ebx, ebx
add ebx, eax
add eax, 0xd809ebea
add eax, 0x27f6141b
mov ecx, 0x602db8dd
sub ecx, 0x5fedb8dd
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x403e60
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x55758c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x403f21
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00492e60
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x403f0b
push edi
push 0x104
lea edi, [ebx + 4]
push 0
push edi
call fcn.00492e60
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push 0
push 0x5198e0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x5198e4
push edi
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 4
push 0
push 7
push 0xc01200a0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx], eax
pop edi
cmp dword [ebx], 0
jne 0x403f21
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464278
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.00492e60
add esp, 0xc
mov dword [ebp - 0x314], 0
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x310]
push 0x207
push eax
call fcn.00403ff0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.004ae270
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
js 0x403f81
cmp eax, 0x207
ja 0x403f81
jne 0x403f88
mov byte [ebp - 0x109], 0
lea ecx, [ebp - 0x310]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403f91
push 0
lea eax, [ebp - 0x314]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x310]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00464278
mov esp, ebp
pop ebp
ret
Function at 0x404a50
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.004646a0
mov eax, dword [0x55758c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x404a80
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464278
mov esp, ebp
pop ebp
ret
push 0x2000
xorps xmm0, xmm0
mov dword [ebp - 0x200c], 0
lea eax, [ebp - 0x2004]
movq qword [ebp - 0x2014], xmm0
push 0
movups xmmword [ebp - 0x2024], xmm0
push eax
mov word [ebp - 0x2008], 0
mov dword [ebp - 0x2020], 3
call fcn.00492e60
push 0x1000
lea eax, [ebp - 0x2004]
push esi
push eax
call fcn.004af5d5
lea eax, [ebp - 0x2004]
add esp, 0x18
mov dword [ebp - 0x201c], eax
mov eax, 0x614
mov word [ebp - 0x2014], ax
lea eax, [ebp - 0x2024]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.00464278
mov esp, ebp
pop ebp
ret
Function at 0x404b10
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x55758c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x404d23
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404d23
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404b43
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x404d23
push ebx
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, 1
push 0
push eax
call fcn.00492e60
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00492e60
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
add esp, 0x18
push esi
push eax
call ebx
push 0x51999c
lea eax, [ebp - 0x414]
push eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404bc4
test al, 1
je 0x404bc4
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x668], eax
cmp eax, 0xffffffff
je 0x404d09
lea ecx, [ebp - 0x664]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x404cfd
nop dword [eax]
test byte [ebp - 0x664], 0x10
je 0x404c78
cmp word [ebp - 0x638], 0x2e
jne 0x404c37
mov ax, word [ebp - 0x636]
test ax, ax
je 0x404ce2
cmp ax, 0x2e
jne 0x404c37
cmp word [ebp - 0x634], 0
je 0x404ce2
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00492e60
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.00404b10
add esp, 4
jmp 0x404ce0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00492e60
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404ccf
test al, 1
je 0x404ccf
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
and edi, eax
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404c00
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
and eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464278
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00464278
mov esp, ebp
pop ebp
ret
Function at 0x404d40
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x404d98
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404d98
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x404d78
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x404d98
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404d93
test al, 0x10
je 0x404d93
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x404d98
xor eax, eax
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret
Function at 0x405880
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4058af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.delete__s_failed__error_d
call fcn.004265f0
add esp, 0xc
mov eax, 1
pop esi
pop ebp
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4058a7
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4058d5
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x405892
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4058f0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509286
mov eax, dword fs:[0]
push eax
sub esp, 0x880
mov eax, dword [0x55758c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x40592c
xor eax, eax
jmp 0x405b32
cmp word [ebx], 0
je 0x405925
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405937
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jge 0x405925
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00492e60
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x519a1c
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405992
test al, 1
je 0x405992
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, 0x5c
mov dword [ebp - 0x428], 0
mov word [ebp - 0x42c], ax
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x884]
call fcn.00404da0
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x405ae2
cmp dword [ebp - 0x424], 0
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
je 0x405a41
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x405a41
cmp word [ebp - 0x858], 0x2e
jne 0x405a41
mov ax, word [ebp - 0x856]
test ax, ax
je 0x405a1c
cmp ax, 0x2e
jne 0x405a41
cmp word [ebp - 0x854], 0
jne 0x405a41
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x405b4e
lea ecx, [ebp - 0x884]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
jmp 0x405ad4
lea eax, [ebp - 0x888]
push eax
lea ecx, [ebp - 0x884]
call fcn.00405040
cmp dword [ebp - 0x424], 0
mov byte [ebp - 4], 1
je 0x405a7c
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x405a7c
mov esi, dword [ebp - 0x888]
push esi
call fcn.004058f0
jmp 0x405a88
mov esi, dword [ebp - 0x888]
push esi
call fcn.00405880
mov eax, dword [ebp - 0x428]
add esp, 4
test eax, eax
jne 0x405a99
xor edi, edi
jmp 0x405ab8
cmp dword [ebp - 0x424], 0
jne 0x405aa6
xor edi, edi
jmp 0x405ab8
lea ecx, [ebp - 0x884]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x405ad4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x4059d9
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x424], 0
test eax, eax
je 0x405b08
cmp eax, 0xffffffff
je 0x405b08
push eax
call esi
mov dword [ebp - 0x428], 0
push ebx
call fcn.00404a50
mov eax, dword [ebp - 0x428]
add esp, 4
mov dword [ebp - 0x424], 0
test eax, eax
je 0x405b2d
cmp eax, 0xffffffff
je 0x405b2d
push eax
call esi
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00464278
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x424], 0
jmp 0x405b08
Function at 0x405c00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x405c59
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405c59
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x405c4a
cmp esi, edx
jae 0x405c59
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x405c38
cmp esi, edx
jae 0x405c59
cmp word [esi], 0
je 0x405c59
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x407240
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x55758c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x800
lea eax, [ebp - 0x804]
mov ebx, ecx
push 0
push eax
call fcn.00492e60
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push str.SmartChatInstaller
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x808], esi
test esi, esi
je 0x407327
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4072f4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x519aa8
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
je 0x4072e2
push 0
push 0
push 0x1400
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464278
mov esp, ebp
pop ebp
ret
push edi
lea edi, [ebx + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 8]
lea ecx, [ebx + 4]
cmp dword [ecx + 8], eax
je 0x407312
mov dword [eax], esi
add dword [ecx + 4], 4
jmp 0x40731f
lea edx, [ebp - 0x808]
push edx
push eax
call fcn.00406d30
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.00464278
mov esp, ebp
pop ebp
ret