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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov eax, dword [0x4ad040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov bl, 1
cmp dword [0x4b1a00], 0
je 0x485108
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00447963
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [0x4b1a04]
test esi, esi
jne 0x4851a8
push 0xc
call fcn.00446e87
add esp, 4
mov esi, eax
lea edi, [ebp - 0x218]
push 0x208
push 0xff
push edi
call fcn.0044ac40
add esp, 0xc
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
dec eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov ecx, esi
push edi
call fcn.0042f580
movsx eax, byte [esi + 0xb]
mov ecx, esi
test eax, eax
jns 0x48516b
mov eax, dword [esi + 4]
mov ecx, dword [esi]
test eax, eax
je 0x485194
add eax, eax
test eax, eax
je 0x485194
lea edx, [eax - 2]
cmp word [ecx + eax - 2], 0x5c
mov eax, edx
jne 0x485171
cmp edx, 0xfffffffe
je 0x485194
sar edx, 1
inc edx
mov ecx, esi
push 0xffffffffffffffff
push edx
call fcn.00411e70
mov ecx, esi
push 9
push str.debug.log
call fcn.004301e0
mov dword [0x4b1a04], esi
test byte [0x4aecc4], 1
je 0x4850f1
cmp byte [esi + 0xb], 0
jns 0x4851bd
mov esi, dword [esi]
sub esp, 0x1c
movaps xmm0, xmmword [0x4a0e20]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x4b1a00], eax
inc eax
cmp eax, 1
ja 0x4850f1
lea esi, [ebp - 0x216]
push 0x206
push 0xff
push esi
call fcn.0044ac40
add esp, 0xc
mov word [esi - 2], 0
lea esi, [ebp - 0x218]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jb 0x4852d1
mov ecx, dword [0x4b1a04]
push esi
call fcn.00415320
mov ecx, dword [0x4b1a04]
movsx eax, byte [ecx + 0xb]
test eax, eax
js 0x4852d8
test al, al
je 0x4852e6
mov edx, ecx
cmp word [edx + eax*2 - 2], 0x5c
je 0x485277
push 1
push 0x49efb6
call fcn.004301e0
mov ecx, dword [0x4b1a04]
push 9
push str.debug.log
call fcn.004301e0
mov eax, dword [0x4b1a04]
cmp byte [eax + 0xb], 0
jns 0x485290
mov eax, dword [eax]
sub esp, 0x1c
movaps xmm0, xmmword [0x4a0e20]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x4b1a00], eax
inc eax
cmp eax, 1
ja 0x4850f1
mov dword [0x4b1a00], 0
xor ebx, ebx
jmp 0x4850f1
mov eax, dword [ecx + 4]
test eax, eax
je 0x4852e6
mov edx, dword [ecx]
jmp 0x48525d
ud2
Function at 0x488f00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov edi, dword [ebp + 8]
mov eax, dword [0x4ad040]
xor eax, ebp
mov dword [esp + 0x48], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x10]
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov ebx, esp
push 0x235
push str....._base_files_file_util_win.cc
push str.DirectoryExists
push ebx
call fcn.00434a60
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.00435bc0
cmp byte [edi + 0xb], 0
jns 0x488f5c
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
setne al
and ebx, 0x10
shr ebx, 4
and bl, al
mov ecx, esi
call fcn.00435c30
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.00447963
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x488f90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov eax, dword [0x4ad040]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x21a]
push 0x20a
push 0xff
push ebx
call fcn.0044ac40
add esp, 0xc
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
dec esi
cmp esi, 0x102
ja 0x489013
push ebx
call fcn.0045cc68
add esp, 4
lea edi, [ebp - 0x234]
mov ecx, edi
push eax
push ebx
call fcn.004325a0
lea ebx, [ebp - 0x228]
mov ecx, edi
push ebx
call fcn.00487120
mov ecx, dword [ebp + 8]
push ebx
call fcn.00416a10
mov ecx, ebx
call fcn.00432680
mov ecx, edi
call fcn.00432680
cmp esi, 0x103
setb bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00447963
mov eax, ebx
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x489040
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x218
mov esi, dword [ebp + 8]
mov eax, dword [0x4ad040]
xor eax, ebp
mov dword [ebp - 0xc], eax
lea edi, [ebp - 0x214]
push 0x208
push 0xff
push edi
call fcn.0044ac40
sub esp, 8
mov dword [esp + 0x10], edi
movsd xmm0, qword [0x4a5a60]
movups xmmword [esp], xmm0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4890bd
cmp word [ebp - 0x214], 0
je 0x4890bd
push edi
call fcn.0045cc68
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.004325a0
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00447963
mov eax, esi
add esp, 0x218
pop esi
pop edi
pop ebp
ret
xor eax, eax
dec eax
lea edi, [ebp - 0x220]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, edi
call fcn.00432580
push edi
call fcn.00488f90
add esp, 4
mov ecx, esi
test al, al
je 0x4890ec
push edi
call fcn.00486b80
jmp 0x4890f8
push 3
push 0x4a5ac2
call fcn.004325a0
lea ecx, [ebp - 0x220]
call fcn.00432680
jmp 0x4890a7
Function at 0x489110
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x260
mov eax, dword [0x4ad040]
xor eax, ebp
mov dword [esp + 0x258], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x20]
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea ebx, [esp + 0x50]
push 0x43a
push str....._base_files_file_util_win.cc
push 0x4a5aca
push ebx
call fcn.00434a60
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.00435bc0
lea esi, [esp + 0x52]
push 0x206
push 0xff
push esi
call fcn.0044ac40
add esp, 0xc
mov word [esi - 2], 0
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
dec esi
cmp esi, 0x103
ja 0x4891d6
push ebx
call fcn.0045cc68
add esp, 4
lea edi, [esp + 8]
mov ecx, edi
push eax
push ebx
call fcn.004325a0
lea ebx, [esp + 0x14]
mov ecx, edi
push ebx
call fcn.00487120
mov ecx, dword [ebp + 8]
push ebx
call fcn.00416a10
mov ecx, ebx
call fcn.00432680
mov ecx, edi
call fcn.00432680
cmp esi, 0x104
setb bl
lea ecx, [esp + 0x20]
call fcn.00435c30
mov ecx, dword [esp + 0x258]
xor ecx, ebp
call fcn.00447963
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4031ba
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x4031e5
mov ecx, dword [0x42a2b8]
push esi
add eax, ecx
push esi
push eax
mov dword [0x418ed4], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.004032c2
cmp eax, esi
jl 0x4032bc
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00405f25
test eax, eax
je 0x4032ac
push dword [ebp + 8]
add dword [0x418ed4], 4
call fcn.004032c2
mov ebx, eax
cmp ebx, esi
jl 0x4032ba
cmp dword [ebp + 0x10], esi
jne 0x403288
cmp dword [ebp + 8], esi
jle 0x4032ba
mov esi, 0x414ed0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x40324a
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00405f25
test eax, eax
je 0x4032ac
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00405f54
test eax, eax
je 0x403284
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x418ed4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x403239
jmp 0x4032ba
push 0xfffffffffffffffe
jmp 0x4032ae
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403293
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4032b1
push 0xfffffffffffffffd
pop eax
jmp 0x4032bc
mov ebx, dword [ebp - 4]
add dword [0x418ed4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x4058e3
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f0
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e0
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405934
xor eax, eax
jmp 0x40595b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x40595b
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x405930
call esi
pop esi
leave
ret 4

Function at 0x405995
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x426730], 0x44
push eax
xor eax, eax
push 0x426730
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4059d4
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4059d8
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x405a76
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405e7d
mov edi, eax
cmp edi, 0xffffffff
je 0x405ab7
test byte [esp + 0x10], 1
push esi
je 0x405a99
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405a9f
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405aa8
xor eax, eax
inc eax
jmp 0x405ab9
test byte [esp + 0x10], 4
jne 0x405ab7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405abe
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405d89
test bl, 8
mov dword [ebp - 8], eax
je 0x405afd
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42a2e8], eax
jmp 0x405c7a
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405b17
test eax, eax
je 0x405c28
test bl, 2
je 0x405c28
mov esi, 0x425730
push edi
push esi
call fcn.004063b0
cmp dword [ebp + 8], 0
je 0x405b36
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405b3c
push edi
call fcn.00405ccd
cmp word [edi], 0
jne 0x405b4c
cmp word [0x425730], 0x5c
jne 0x405b57
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405c1d
cmp word [ebp - 0x22c], 0x2e
jne 0x405ba1
cmp word [ebp - 0x22a], 0
je 0x405c00
cmp word [ebp - 0x22a], 0x2e
jne 0x405ba1
cmp word [ebp - 0x228], 0
je 0x405c00
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.004063b0
test byte [ebp - 0x258], 0x10
je 0x405bcc
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405c00
push dword [ebp + 0xc]
push edi
call fcn.00405abe
jmp 0x405c00
push dword [ebp - 4]
push edi
call fcn.00405a76
test eax, eax
jne 0x405bf8
cmp dword [ebp - 4], eax
je 0x405bf0
push edi
push 0xfffffffffffffff1
call fcn.00405414
push 0
push edi
call fcn.00406176
jmp 0x405c00
inc dword [0x42a2e8]
jmp 0x405c00
push edi
push 0xfffffffffffffff2
call fcn.00405414
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405b79
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405c28
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405c7a
cmp dword [ebp - 8], esi
jne 0x405c3c
inc dword [0x42a2e8]
jmp 0x405c7a
push edi
call fcn.004066f3
test eax, eax
je 0x405c7a
push edi
call fcn.00405c81
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405a76
test eax, eax
jne 0x405c72
cmp dword [ebp - 4], esi
je 0x405c34
push edi
push 0xfffffffffffffff1
call fcn.00405414
push esi
push edi
call fcn.00406176
jmp 0x405c7a
push edi
push 0xffffffffffffffe5
call fcn.00405414
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405d89
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f30
push esi
call fcn.004063b0
push esi
call fcn.00405d2c
mov edi, eax
test edi, edi
jne 0x405daa
xor eax, eax
jmp 0x405e02
push edi
call fcn.00406644
test byte [0x42a25c], 0x80
je 0x405dc7
mov ax, word [edi]
test ax, ax
je 0x405da6
cmp ax, 0x5c
je 0x405da6
sub edi, esi
sar edi, 1
jmp 0x405de1
call fcn.004066f3
test eax, eax
je 0x405ddb
test byte [eax], 0x10
je 0x405da6
push esi
call fcn.00405ccd
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405dcd
call fcn.00405c81
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405e7d
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405e9c
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405ea2
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405ed1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a588]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a58c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405f21
test edi, edi
jne 0x405ede
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405f1b
Function at 0x405ffc
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x426dc8], 0x55004e
mov dword [0x426dcc], 0x4c
mov edi, 0x400
mov ebp, 0x426dc8
je 0x406052
push 1
push 0
push esi
call fcn.00405ea2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406171
cmp eax, edi
jg 0x406171
mov esi, 0x4275c8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406171
cmp eax, edi
jg 0x406171
push esi
push ebp
push str._ls_ls_r_n
push 0x4269c8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42a254]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004063d2
push 4
push 0xc0000000
push esi
call fcn.00405ea2
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x406171
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40616a
push edi
push esi
push ebp
call fcn.00405f25
test eax, eax
je 0x40616a
push str._Rename__r_n
push esi
call fcn.00405e07
test eax, eax
jne 0x406108
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40613d
add eax, 0xa
push 0x40a590
push eax
call fcn.00405e07
mov ebp, eax
test ebp, ebp
je 0x406139
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x40612a
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406124
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x40613f
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4269c8
push eax
call fcn.00405e5d
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405f54
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406176
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406199
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405ffc
pop ecx
pop ecx
inc dword [0x42a2f0]
ret 8
Function at 0x40627e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x800
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040621d
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4062ee
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x7fe], 0
test edi, edi
pop edi
jne 0x4062ee
cmp dword [ebp + 0xc], 1
je 0x4062f2
cmp dword [ebp + 0xc], 2
je 0x4062f2
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x40671a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x40673e
xor eax, eax
test eax, eax
je 0x406751
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406751
xor ecx, ecx
jmp 0x406754
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x4068b4
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40688e
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x406889
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4068e5
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x4068c7
pop edi
not eax
pop esi
ret 0xc
Function at 0x401850
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42ad70
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 4]
xor esi, esi
cmp eax, esi
je 0x4019b4
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4019b4
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov ecx, dword [ebx + 4]
push 5
mov dword [esp + 0x90], esi
mov dword [esp + 0x10], esi
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetWindow]
mov ebp, eax
cmp ebp, esi
je 0x4019b4
push edi
mov al, byte [esp + 0x9c]
test al, al
jne 0x4018f3
mov eax, ebp
xor edx, edx
shr eax, 4
div dword [ebx + 0x20]
mov eax, dword [ebx + 0x1c]
cmp eax, esi
je 0x4018f3
mov eax, dword [eax + edx*4]
cmp eax, esi
je 0x4018f3
cmp dword [eax + 8], ebp
je 0x4019ce
mov eax, dword [eax]
cmp eax, esi
jne 0x4018e4
push ebp
xor edi, edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x401984
lea eax, [esp + 0x5c]
mov dword [esp + 0x5c], 0x2c
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowPlacement]
lea ecx, [esp + 0x78]
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], edx
mov edx, dword [ecx]
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x34], edx
mov eax, dword [ebx]
lea ecx, [esp + 0x24]
push 1
push ecx
push ebp
mov ecx, ebx
mov byte [esp + 0x9c], 1
call dword [eax + 0xc]
test al, al
mov byte [esp + 0x90], 0
je 0x401984
inc dword [esp + 0x10]
push 2
push ebp
call dword [sym.imp.USER32.dll_GetWindow]
mov ebp, eax
xor esi, esi
cmp ebp, esi
jne 0x4018c1
mov eax, dword [esp + 0x10]
pop edi
cmp eax, esi
je 0x4019b4
mov al, byte [esp + 0x9c]
test al, al
je 0x4019b4
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x10]
mov ecx, dword [esp + 0x84]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x84
ret 0xc
cmp eax, esi
je 0x4018f3
lea esi, [eax + 0xc]
mov ecx, 7
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
jmp 0x401984