joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4059fd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jge 0x405a1e
mov ecx, dword [0x42ebfc]
lea eax, [ebx*4 + 4]
sub ecx, eax
mov ebx, dword [ecx]
mov eax, dword [0x42f458]
mov ecx, dword [ebp + 8]
add ebx, eax
mov eax, 0x42e3c0
sub ecx, eax
mov edi, eax
cmp ecx, 0x800
jae 0x405bf1
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x405bf1
mov edx, edi
sub edx, eax
cmp edx, 0x400
jge 0x405bfe
inc ebx
cmp cl, 0xfc
jbe 0x405be4
movsx eax, byte [ebx + 1]
movsx ecx, byte [ebx]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, pe_overlay
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
or ecx, edx
or eax, edx
inc ebx
mov dword [ebp - 0x14], ecx
inc ebx
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 0xc], eax
jne 0x405b8f
and dword [ebp + 0xc], 0
and byte [edi], 0
push 4
pop esi
cmp dword [ebp - 0x10], esi
jne 0x405ab2
mov dword [ebp + 0xc], str.MicrosoftInternet_ExplorerQuick_Launch
jmp 0x405b2a
mov eax, dword [ebp - 0x18]
cmp eax, 0x2b
jne 0x405ad1
push edi
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.004058cf
jmp 0x405b25
cmp eax, 0x26
jne 0x405b01
push edi
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.004058cf
cmp byte [edi], 0
jne 0x405b87
push str.C:Program_Files
push edi
call fcn.004059db
jmp 0x405b25
cmp eax, 0x25
jne 0x405b14
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x405b25
cmp eax, 0x24
jne 0x405b2a
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [edi], 0
jne 0x405b87
cmp dword [0x42f4a4], 0
jne 0x405b36
push 2
pop esi
lea eax, [ebp - 4]
dec esi
push eax
push dword [ebp + esi*4 - 0x18]
push dword [0x42f424]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405b6c
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.00405238
cmp dword [ebp - 8], 0
jne 0x405b73
jmp 0x405b6f
and byte [edi], 0
test esi, esi
jne 0x405b36
cmp byte [edi], 0
je 0x405b87
cmp dword [ebp + 0xc], 0
je 0x405b87
push dword [ebp + 0xc]
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call fcn.00405c17
jmp 0x405bd5
cmp byte [ebp + 0xf], 0xfd
jne 0x405bc3
cmp esi, 0x1b
jne 0x405ba8
push dword [0x42f424]
push edi
call fcn.00405939
jmp 0x405bb9
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push edi
call fcn.004059db
add esi, 0xffffffeb
cmp esi, 6
jae 0x405bd5
jmp 0x405b87
cmp byte [ebp + 0xf], 0xff
jne 0x405bd5
or eax, 0xffffffff
sub eax, esi
push eax
push edi
call fcn.004059fd
push edi
call sub.KERNEL32.dll_lstrlenA
add edi, eax
mov eax, 0x42e3c0
jmp 0x405bf1
jne 0x405bee
mov cl, byte [ebx]
mov byte [edi], cl
inc edi
inc ebx
jmp 0x405bf1
mov byte [edi], cl
inc edi
mov cl, byte [ebx]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x405a49
and byte [edi], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x405c13
push eax
push dword [ebp + 8]
call fcn.004059db
leave
ret 8
Function at 0x49e4a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x45a640
sub eax, eax
test esi, esi
je 0x49e580
sub eax, 1
test ecx, ecx
je 0x49e57e
test esi, 3
je 0x49e4de
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x49e4c3
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x49e565
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x49e4ec
mov ecx, edx
test ecx, ecx
je 0x49e57e
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x49e56b
not eax
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x49e612
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x466d40
push 0x49ea62
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x4a525c], 0xffffffff
or dword [0x4a5260], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4a5200]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x4a51fc]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4a5264], eax
call fcn.0049ea61
cmp dword [0x45aa40], 0
jne 0x49e695
push 0x49ea5e
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0049ea4c
push 0x401204
push 0x401200
call sub.MSVCRT.dll__initterm
mov eax, dword [0x4a51f8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4a51f4]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x4011fc
push 0x4011f8
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00467b18
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret

Function at 0x4153e0
Capabilities:
Encode data using xor

Disassembly:
pop ds
rol dword [ebx], 1
xor al, 0x76
push ebp
test byte [ecx], dh
xchg edi, eax
pop esp
adc eax, 0xaf34d523
invalid
Function at 0x412edf
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov cl, byte [esi]
cmp cl, 2
je 0x412f8e
cmp byte [esi + 3], 0
jne 0x412f8e
cmp byte [esi + 4], 0
jne 0x412f8e
cmp cl, 1
jne 0x412f31
push dword [esi + 0xc]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp byte [esi + 5], 0
je 0x412f8e
push dword [esi + 0xc]
call dword [sym.imp.msvcrt.dll_fflush]
pop ecx
jmp 0x412f8e
push ebx
push edi
xor edi, edi
test cl, cl
jne 0x412f3e
mov eax, dword [esi + 0x14]
jmp 0x412f40
mov eax, edi
test eax, eax
je 0x412f93
test cl, cl
jne 0x412f4d
mov eax, dword [esi + 0x14]
jmp 0x412f4f
mov eax, edi
mov ebx, dword [ebp + 0xc]
add eax, ebx
cmp eax, dword [esi + 0x1c]
jb 0x412f70
test cl, cl
jne 0x412f62
mov eax, dword [esi + 0x10]
jmp 0x412f64
mov eax, edi
add eax, ebx
mov ecx, esi
push eax
call fcn.00413067
mov cl, byte [esi]
test cl, cl
jne 0x412f77
mov edi, dword [esi + 0x14]
push ebx
push dword [ebp + 8]
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp byte [esi], 0
jne 0x412f8c
add dword [esi + 0x14], ebx
pop edi
pop ebx
pop esi
pop ebp
ret 8
push 0x40da54
mov edx, 0xdd
mov ecx, 0x40da6c
call fcn.00412d7c
int3

Function at 0x413c64
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x417e78
call fcn.00413f28
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x413cc4
cmp eax, 0xffffffff
je 0x413cc4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x413cbd
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x413cbd
cmp edx, 0x10000000
jae 0x413cbd
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x413cba
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x413d30
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x413d6e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x413d66
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x413d70
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x413d56
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x413e40
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x413e71
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x413e71
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x413e71
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10d0990
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8a000]
push edi
jmp 0x10d09aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10d09b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10d09a0
mov eax, 1
add ebx, ebx
jne 0x10d09c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10d09d4
jne 0x10d09f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10d09f3
dec eax
add ebx, ebx
jne 0x10d09e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x10d09b8
add ebx, ebx
jne 0x10d09ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x10d0a45
xor ecx, ecx
sub eax, 3
jb 0x10d0a0b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10d0a7a
sar eax, 1
mov ebp, eax
jmp 0x10d0a16
add ebx, ebx
jne 0x10d0a16
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10d09e4
inc ecx
add ebx, ebx
jne 0x10d0a24
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10d09e4
add ebx, ebx
jne 0x10d0a31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10d0a26
jne 0x10d0a42
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10d0a26
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10d0a64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10d0a56
jmp 0x10d09a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10d0a64
add edi, ecx
jmp 0x10d09a6
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10d0a82
cmp byte [edi], 0x11
jne 0x10d0a82
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 al, bl
loop 0x10d0a87
lea edi, [esi + 0xd9000]
mov eax, dword [edi]
or eax, eax
je 0x10d0aff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe81a0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe831c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10d0ab4
mov ecx, edi
jns 0x10d0ae3
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 + 0xe8320]
or eax, eax
je 0x10d0af9
mov dword [ebx], eax
add ebx, 4
jmp 0x10d0ad1
call dword [esi + 0xe8330]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10d0b30
cmp al, 0xef
ja 0x10d0b23
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10d0b05
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10d0b12
mov ebp, dword [esi + 0xe8324]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x10d0b64
sub esp, 0xffffff80
jmp 0x1017f4a
Function at 0x40dcb4
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push ebp
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40dd69
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40dd69
movzx eax, word [ebx]
push edi
xor edi, edi
mov ecx, ebx
test ax, ax
je 0x40dd0a
movzx eax, ax
cmp ax, 0x5c
jne 0x40dcfc
mov edi, ecx
inc ecx
inc ecx
movzx eax, word [ecx]
test ax, ax
jne 0x40dcf4
test edi, edi
jne 0x40dd1e
mov esi, 0x80070003
push esi
push 0x7e
push 0x42267e
call fcn.0040e572
jmp 0x40dd68
push ebp
xor eax, eax
push ebx
mov word [edi], ax
call fcn.0040dcb4
mov esi, eax
push 0x5c
pop eax
mov word [edi], ax
test esi, esi
jl 0x40dd68
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40dd66
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40dd54
xor esi, esi
inc esi
jmp 0x40dd68
test eax, eax
jle 0x40dd62
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x40dd68
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x40dfd0
Capabilities:
Delete file
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor edi, edi
push edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call fcn.0040deb8
mov esi, eax
cmp esi, edi
jl 0x40e0bf
push ebx
push edi
push 0x80
push dword [ebp + 0x10]
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40e057
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, edi
jle 0x40e03e
and esi, 0xffff
or esi, 0x80070000
cmp esi, edi
jl 0x40e045
mov esi, 0x80004005
push esi
push 0xde
push 0x4226b2
call fcn.0040e572
jmp 0x40e0ac
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], 1
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40e0a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, edi
jle 0x40e08e
and esi, 0xffff
or esi, 0x80070000
cmp esi, edi
jl 0x40e095
mov esi, 0x80004005
push esi
push 0xe4
push 0x4226b2
call fcn.0040e572
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
pop ebx
jge 0x40e0bf
cmp dword [ebp - 0xc], edi
je 0x40e0bf
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x40e274
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [ebp - 4], esi
cmp dword [ebp + 0x10], esi
je 0x40e290
mov dword [ebp - 4], 1
cmp dword [ebp + 0x14], esi
je 0x40e299
or dword [ebp - 4], 2
push dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40e36a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x10], esi
jne 0x40e2d0
cmp eax, 0x50
je 0x40e2c8
cmp eax, 0xb7
jne 0x40e2d0
xor edi, edi
inc edi
jmp 0x40e36a
cmp eax, 3
jne 0x40e35a
movzx eax, word [ebx]
mov ecx, ebx
test ax, ax
je 0x40e353
movzx eax, ax
cmp ax, 0x5c
jne 0x40e2ee
mov esi, ecx
inc ecx
inc ecx
movzx eax, word [ecx]
test ax, ax
jne 0x40e2e6
test esi, esi
je 0x40e353
xor eax, eax
push eax
push ebx
mov word [esi], ax
call fcn.0040dcb4
mov edi, eax
push 0x5c
pop eax
mov word [esi], ax
test edi, edi
jl 0x40e36a
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40e36a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x40e33f
and edi, 0xffff
or edi, 0x80070000
test edi, edi
jge 0x40e36a
push edi
push 0x26d
push 0x4226e6
call fcn.0040e572
jmp 0x40e36a
mov edi, 0x80070003
jmp 0x40e36a
cmp eax, esi
jle 0x40e368
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40e374
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x429130]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1b0]
and dword [ebp - 0x70], 0
or dword [ebp - 0x74], 0xffffffff
push ebx
mov ebx, dword [ebp + 0x1ac]
push esi
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x1b4]
push edi
mov edi, dword [ebp + 0x1a8]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x6c]
push eax
push 0x104
mov esi, 0x80004005
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40e403
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40e3ec
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jge 0x40e403
push esi
push 0x2cc
push 0x4226e6
call fcn.0040e572
jmp 0x40e4a2
and dword [ebp - 0x78], 0
cmp dword [ebp - 0x74], 0xffffffff
jne 0x40e486
push ebx
push dword [ebp - 0x78]
lea eax, [ebp - 0x6c]
push edi
push eax
lea eax, [ebp - 0x70]
push 0x42271a
push eax
call fcn.0040dca0
mov esi, eax
add esp, 0x18
test esi, esi
jl 0x40e4bb
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x74], eax
cmp eax, 0xffffffff
jne 0x40e47a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40e468
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, 0x80070050
jne 0x40e476
xor esi, esi
jmp 0x40e47a
test esi, esi
jl 0x40e4bb
inc dword [ebp - 0x78]
cmp dword [ebp - 0x78], 0x3e8
jl 0x40e407
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x40e492
mov ecx, dword [ebp - 0x74]
mov dword [eax], ecx
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x40e4a2
mov ecx, dword [ebp - 0x70]
and dword [ebp - 0x70], 0
mov dword [eax], ecx
test esi, esi
jl 0x40e4ac
cmp dword [ebp - 0x7c], 0
jne 0x40e4bb
cmp dword [ebp - 0x74], 0xffffffff
je 0x40e4bb
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x70], 0
je 0x40e4c9
push dword [ebp - 0x70]
call fcn.0040d598
mov ecx, dword [ebp + 0x19c]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f2fd
add ebp, 0x1a0
leave
ret 0x10

Function at 0x40f2fd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x429130]
jne 0x40f307
repz ret
jmp fcn.00414de5
Function at 0x41dde3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00416256
and dword [ebp - 4], 0
cmp dword [0x42af50], 0
mov ebx, eax
jne 0x41de94
push 0x425730
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41df45
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x425724
push edi
call esi
test eax, eax
je 0x41df45
push eax
call fcn.004161e4
mov dword [esp], 0x425714
push edi
mov dword [0x42af50], eax
call esi
push eax
call fcn.004161e4
mov dword [esp], 0x425700
push edi
mov dword [0x42af54], eax
call esi
push eax
call fcn.004161e4
mov dword [esp], 0x4256e4
push edi
mov dword [0x42af58], eax
call esi
push eax
call fcn.004161e4
pop ecx
mov dword [0x42af60], eax
test eax, eax
je 0x41de94
push 0x4256cc
push edi
call esi
push eax
call fcn.004161e4
pop ecx
mov dword [0x42af5c], eax
mov eax, dword [0x42af5c]
cmp eax, ebx
je 0x41deec
cmp dword [0x42af60], ebx
je 0x41deec
push eax
call fcn.0041625f
push dword [0x42af60]
mov esi, eax
call fcn.0041625f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41deec
test edi, edi
je 0x41deec
call esi
test eax, eax
je 0x41dee3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41dee3
test byte [ebp - 0xc], 1
jne 0x41deec
or dword [ebp + 0x10], 0x200000
jmp 0x41df25
mov eax, dword [0x42af54]
cmp eax, ebx
je 0x41df25
push eax
call fcn.0041625f
pop ecx
test eax, eax
je 0x41df25
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41df25
mov eax, dword [0x42af58]
cmp eax, ebx
je 0x41df25
push eax
call fcn.0041625f
pop ecx
test eax, eax
je 0x41df25
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42af50]
call fcn.0041625f
pop ecx
test eax, eax
je 0x41df45
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41df47
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41f190
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0xffffffff
jne 0x41f1b4
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov word [ebp - 8], ax
movzx eax, word [ebp - 8]
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 0
je 0x41f1cd
mov ecx, dword [ebp + 8]
xor edx, edx
cmp ecx, dword [ebp + 0xc]
sete dl
mov dword [ebp - 4], edx
jmp 0x41f265
movzx eax, word [ebp + 8]
and eax, 0x3ff
cmp eax, 4
jne 0x41f247
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0xc04
ja 0x41f207
cmp dword [ebp - 0xc], 0xc04
je 0x41f22c
cmp dword [ebp - 0xc], 0x404
je 0x41f228
cmp dword [ebp - 0xc], 0x804
je 0x41f21b
jmp 0x41f237
cmp dword [ebp - 0xc], 0x1004
je 0x41f21f
cmp dword [ebp - 0xc], 0x1404
je 0x41f230
jmp 0x41f237
xor edx, edx
jne 0x41f21b
mov dword [ebp + 8], 0x804
jmp 0x41f237
xor eax, eax
jne 0x41f228
xor ecx, ecx
jne 0x41f22c
mov dword [ebp + 8], 0x404
mov edx, dword [ebp + 8]
xor eax, eax
cmp edx, dword [ebp + 0xc]
sete al
mov dword [ebp - 4], eax
jmp 0x41f265
movzx ecx, word [ebp + 8]
and ecx, 0x3ff
movzx edx, word [ebp + 0xc]
and edx, 0x3ff
xor eax, eax
cmp ecx, edx
sete al
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x41f770
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
mov eax, dword [0x429130]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2b4], 0
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 7
add eax, 0x1c
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x260]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x54]
or edx, 0x8000
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
jge 0x41f7d3
jmp 0x41f8ec
push 0x27
lea eax, [ebp - 0x2b0]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x8c
push ecx
call dword [sym.imp.ole32.dll_StringFromGUID2]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
jge 0x41f805
jmp 0x41f8ec
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xa0]
and eax, 0xffff
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa0]
shr edx, 0x10
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x9c]
and ecx, 0xffff
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x9c]
shr eax, 0x10
push eax
push 0x425a68
push 0x24
lea ecx, [ebp - 0x50]
push ecx
call fcn.004035a0
add esp, 0x1c
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
jge 0x41f86a
jmp 0x41f8ec
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x260]
push ecx
push str._lsApplicationsCache_lsv_ls.mst
mov edx, dword [ebp + 0x14]
push edx
call fcn.0040dca0
add esp, 0x14
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
jge 0x41f8a0
jmp 0x41f8ec
push 1
push 1
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0040e274
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
jge 0x41f8ec
cmp dword [ebp + 0x10], 1
jne 0x41f8ec
mov eax, dword [ebp + 0x14]
push eax
xor ecx, ecx
cmp dword [ebp + 0x10], 0
sete cl
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0041f770
add esp, 0x10
mov dword [ebp - 0x2b4], eax
mov eax, dword [ebp - 0x2b4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f2fd
mov esp, ebp
pop ebp
ret