joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4062c8
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 [0x45ade8], 0x55004e
mov dword [0x45adec], 0x4c
mov edi, 0x400
mov ebp, 0x45ade8
je 0x40631e
push 1
push 0
push esi
call fcn.00406172
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40643d
cmp eax, edi
jg 0x40643d
mov esi, 0x45b5e8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40643d
cmp eax, edi
jg 0x40643d
push esi
push ebp
push str._ls_ls_r_n
push 0x45a9e8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x46c270]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004066bf
push 4
push 0xc0000000
push esi
call fcn.00406172
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x40643d
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 0x406436
push edi
push esi
push ebp
call fcn.004061f5
test eax, eax
je 0x406436
push str._Rename__r_n
push esi
call fcn.004060d7
test eax, eax
jne 0x4063d4
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406409
add eax, 0xa
push 0x40a5b0
push eax
call fcn.004060d7
mov ebp, eax
test ebp, ebp
je 0x406405
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4063f6
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4063f0
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x40640b
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x45a9e8
push eax
call fcn.0040612d
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.00406224
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 0x406442
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 0x406465
push dword [esp + 8]
push dword [esp + 8]
call fcn.004062c8
pop ecx
pop ecx
inc dword [0x46c2f0]
ret 8
Function at 0x406550
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], 0x4000
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004064ef
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4065c0
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 + 0x3ffe], 0
test edi, edi
pop edi
jne 0x4065c0
cmp dword [ebp + 0xc], 1
je 0x4065c4
cmp dword [ebp + 0xc], 2
je 0x4065c4
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x406a06
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 0x406a2a
xor eax, eax
test eax, eax
je 0x406a3d
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406a3d
xor ecx, ecx
jmp 0x406a40
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 0x406b63
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x45bdec], 0
push esi
jne 0x406b9a
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 0x406b74
mov dword [ecx*4 + 0x45bde8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b6f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406bcb
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 + 0x45bde8]
xor eax, esi
inc ecx
dec edx
jne 0x406bad
pop edi
not eax
pop esi
ret 0xc
Function at 0x402eae
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, esi
lea eax, [ebp - 4]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or al, 9
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004063c4
xor ebx, ebx
cmp eax, ebx
jne 0x402f91
test byte [ebp + 0x10], 2
je 0x402f0f
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 8], ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x402f76
lea eax, [ebp - 0x214]
push 0x105
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x402f4b
test edi, edi
jne 0x402f76
push dword [ebp + 0x10]
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 4]
call fcn.00402eae
test eax, eax
jne 0x402f54
lea eax, [ebp - 0x214]
push 0x105
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x402f24
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.0040694b
test eax, eax
jne 0x402f86
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x402f91
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x402f91
push 0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4032b9
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x4032d9
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x4032eb
mov dword [ebp - 0xc], 0x422a20
mov eax, dword [ebp + 8]
test eax, eax
jl 0x403300
mov ecx, dword [0x434758]
add ecx, eax
push ecx
call fcn.004034ea
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004034d4
test eax, eax
je 0x4034c2
test byte [ebp + 0x17], 0x80
je 0x40346d
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x40d384], 0
and dword [0x40d380], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, 0x40ea08
mov dword [0x40ce68], 8
mov dword [0x416a10], eax
mov dword [0x416a0c], eax
mov eax, dword [ebp + 0x14]
mov dword [0x416a08], 0x416a08
mov dword [ebp + 8], eax
jle 0x4034ca
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403379
mov esi, dword [ebp + 0x14]
mov edi, 0x41ea20
push esi
push edi
call fcn.004034d4
test eax, eax
je 0x4034c2
sub dword [ebp + 0x14], esi
mov dword [0x40ce58], edi
mov dword [0x40ce5c], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x40ce58
mov dword [0x40ce60], edi
mov dword [0x40ce64], eax
call fcn.00406aa6
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403465
mov esi, dword [0x40ce60]
sub esi, edi
call ebx
test byte [0x4347b4], 1
mov edi, eax
je 0x403420
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x4033e7
cmp dword [ebp + 0x14], 0
jne 0x403420
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x94]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push 0
call fcn.004055dc
mov dword [ebp - 0x10], edi
test esi, esi
je 0x403459
cmp dword [ebp + 0x10], 0
jne 0x40343f
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.004060f9
test eax, eax
je 0x403469
add dword [ebp - 4], esi
jmp 0x40344d
mov eax, dword [0x40ce60]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 1
jne 0x40339c
jmp 0x4034ca
cmp dword [ebp + 0x14], 0
jg 0x40336c
jmp 0x4034ca
push 0xfffffffffffffffc
jmp 0x4034c4
push 0xfffffffffffffffe
jmp 0x4034c4
test edi, edi
jne 0x4034af
cmp dword [ebp + 0x14], edi
jle 0x4034ca
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x403483
mov esi, ebx
mov edi, 0x41ea20
push esi
push edi
call fcn.004034d4
test eax, eax
je 0x4034c2
push esi
push edi
push dword [ebp + 0xc]
call fcn.004060f9
test eax, eax
je 0x403469
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403479
jmp 0x4034ca
cmp dword [ebp + 0x14], esi
jge 0x4034b7
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004034d4
test eax, eax
jne 0x4034c7
push 0xfffffffffffffffd
pop eax
jmp 0x4034cd
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405b3a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x42fa70], 0x44
push eax
xor eax, eax
push 0x42fa70
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 0x405b79
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405b7d
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 0x405c1b
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00406022
mov edi, eax
cmp edi, 0xffffffff
je 0x405c5c
test byte [esp + 0x10], 1
push esi
je 0x405c3e
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405c44
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405c4d
xor eax, eax
inc eax
jmp 0x405c5e
test byte [esp + 0x10], 4
jne 0x405c5c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405c63
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.00405f2e
test bl, 8
mov dword [ebp - 8], eax
je 0x405ca2
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x434788], eax
jmp 0x405e1f
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405cbc
test eax, eax
je 0x405dcd
test bl, 2
je 0x405dcd
mov esi, 0x42ea70
push edi
push esi
call fcn.00406557
cmp dword [ebp + 8], 0
je 0x405cdb
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405ce1
push edi
call fcn.00405e72
cmp word [edi], 0
jne 0x405cf1
cmp word [0x42ea70], 0x5c
jne 0x405cfc
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 0x405dc2
cmp word [ebp - 0x22c], 0x2e
jne 0x405d46
cmp word [ebp - 0x22a], 0
je 0x405da5
cmp word [ebp - 0x22a], 0x2e
jne 0x405d46
cmp word [ebp - 0x228], 0
je 0x405da5
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406557
test byte [ebp - 0x258], 0x10
je 0x405d71
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405da5
push dword [ebp + 0xc]
push edi
call fcn.00405c63
jmp 0x405da5
push dword [ebp - 4]
push edi
call fcn.00405c1b
test eax, eax
jne 0x405d9d
cmp dword [ebp - 4], eax
je 0x405d95
push edi
push 0xfffffffffffffff1
call fcn.004055dc
push 0
push edi
call fcn.00406317
jmp 0x405da5
inc dword [0x434788]
jmp 0x405da5
push edi
push 0xfffffffffffffff2
call fcn.004055dc
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405d1e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405dcd
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405e1f
cmp dword [ebp - 8], esi
jne 0x405de1
inc dword [0x434788]
jmp 0x405e1f
push edi
call fcn.004068b4
test eax, eax
je 0x405e1f
push edi
call fcn.00405e26
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405c1b
test eax, eax
jne 0x405e17
cmp dword [ebp - 4], esi
je 0x405dd9
push edi
push 0xfffffffffffffff1
call fcn.004055dc
push esi
push edi
call fcn.00406317
jmp 0x405e1f
push edi
push 0xffffffffffffffe5
call fcn.004055dc
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405f2e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42f270
push esi
call fcn.00406557
push esi
call fcn.00405ed1
mov edi, eax
test edi, edi
jne 0x405f4f
xor eax, eax
jmp 0x405fa7
push edi
call fcn.00406805
test byte [0x434718], 0x80
je 0x405f6c
mov ax, word [edi]
test ax, ax
je 0x405f4b
cmp ax, 0x5c
je 0x405f4b
sub edi, esi
sar edi, 1
jmp 0x405f86
call fcn.004068b4
test eax, eax
je 0x405f80
test byte [eax], 0x10
je 0x405f4b
push esi
call fcn.00405e72
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405f72
call fcn.00405e26
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 0x406022
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 0x406041
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 0x406047
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 0x406076
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 [0x40a578]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a57c]
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 0x4060c6
test edi, edi
jne 0x406083
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x4060c0
Function at 0x40619d
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 [0x430108], 0x55004e
mov dword [0x43010c], 0x4c
mov edi, 0x400
mov ebp, 0x430108
je 0x4061f3
push 1
push 0
push esi
call fcn.00406047
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406312
cmp eax, edi
jg 0x406312
mov esi, 0x430908
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406312
cmp eax, edi
jg 0x406312
push esi
push ebp
push str._ls_ls_r_n
push 0x42fd08
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x434710]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406594
push 4
push 0xc0000000
push esi
call fcn.00406047
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x406312
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 0x40630b
push edi
push esi
push ebp
call fcn.004060ca
test eax, eax
je 0x40630b
push str._Rename__r_n
push esi
call fcn.00405fac
test eax, eax
jne 0x4062a9
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4062de
add eax, 0xa
push 0x40a580
push eax
call fcn.00405fac
mov ebp, eax
test ebp, ebp
je 0x4062da
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4062cb
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4062c5
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x4062e0
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x42fd08
push eax
call fcn.00406002
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.004060f9
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 0x406317
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 0x40633a
push dword [esp + 8]
push dword [esp + 8]
call fcn.0040619d
pop ecx
pop ecx
inc dword [0x434790]
ret 8
Function at 0x406425
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.004063c4
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x406495
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 0x406495
cmp dword [ebp + 0xc], 1
je 0x406499
cmp dword [ebp + 0xc], 2
je 0x406499
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x4068db
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 0x4068ff
xor eax, eax
test eax, eax
je 0x406912
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406912
xor ecx, ecx
jmp 0x406915
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 0x406a38
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43110c], 0
push esi
jne 0x406a6f
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 0x406a49
mov dword [ecx*4 + 0x431108], eax
inc ecx
cmp ecx, 0x100
jl 0x406a44
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406aa0
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 + 0x431108]
xor eax, esi
inc ecx
dec edx
jne 0x406a82
pop edi
not eax
pop esi
ret 0xc
Function at 0x10001100
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0xc], 1
jne 0x10001190
mov eax, dword [ebp + 8]
push eax
push 0x1000a0cc
call fcn.10006a1e
test eax, eax
jne 0x10001129
xor eax, eax
jmp 0x100011b2
push 0x40
call fcn.10001350
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000114d
push 0
push 0x1000a0cc
mov ecx, dword [ebp - 8]
call fcn.10006a18
mov dword [ebp - 0xc], eax
jmp 0x10001154
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
push 1
push str.SeDebugPrivilege
call fcn.10001060
add esp, 8
push 0
call fcn.10001300
add esp, 4
push eax
push eax
call 0x1019dae4
add esp, 4
call fcn.10213fd7
nop
movzx edx, al
test edx, edx
jne 0x1000118e
xor eax, eax
jmp 0x100011b2
jmp 0x100011a2
cmp dword [ebp + 0xc], 0
jne 0x100011a2
push 0
push 0x1000a0cc
call fcn.10006a12
call 0x100920d2
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10001370
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 4]
mov dword [edx], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], 0x10325476
push 0x40
push 0
mov eax, dword [ebp - 4]
add eax, 0x58
push eax
mov ecx, dword [ebp - 4]
call fcn.10002560
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x58], 0x80
mov esp, ebp
pop ebp
ret

Function at 0x10004e90
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0xefcdab89
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0x98badcfe
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], 0x10325476
push 0x40
push 0
mov eax, dword [ebp - 4]
add eax, 0x5c
push eax
mov ecx, dword [ebp - 4]
call fcn.10006090
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x5c], 0x80
mov esp, ebp
pop ebp
ret
Function at 0x10012090
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x1001219c
test eax, eax
je 0x1001219c
push esi
push edi
mov ecx, 0x10
mov esi, 0x1002bf88
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x10012183
lea edi, [eax + 4]
jmp 0x100120e7
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x100120fc
mov dword [ebp - 4], 2
jmp 0x1001211d
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x10012113
mov dword [ebp - 4], 1
jmp 0x1001211d
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x10012193
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x10012156
mov byte [ecx], 0x3d
jmp 0x10012162
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x1001216d
mov byte [ecx], 0x3d
jmp 0x10012173
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x100120e4
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret