joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4114d2
Capabilities:
Gather firefox profile information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
call dword [esi + 8]
mov ebx, eax
test ebx, ebx
je 0x411537
push 0
push 1
push ebx
call dword [esi + 0x10]
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
push 0x423494
call dword [esi + 0x20]
add esp, 0x14
test eax, eax
jne 0x411532
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 0x411258
push str.select_id__hostname__usernamefield__passwordfield__encryptedusername__encryptedpassword_from_moz_logins
push dword [ebp - 8]
call dword [esi + 0x28]
add esp, 0x14
cmp dword [ebp - 4], 0
je 0x41152b
push dword [ebp - 4]
call dword [esi + 0x2c]
pop ecx
push dword [ebp - 8]
call dword [esi + 0x24]
pop ecx
push ebx
call dword [esi + 0xc]
pop ecx
call dword [esi + 4]
mov al, 1
pop ebx
leave
ret

Function at 0x41153f
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2af4
call fcn.00419050
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x144e
push esi
push eax
mov word [esp + 0x268], ax
lea eax, [esp + 0x26a]
push eax
call fcn.004130d0
add esp, 0xc
xor eax, eax
push esi
push eax
mov word [esp + 0x16b8], ax
lea eax, [esp + 0x16ba]
push eax
call fcn.004130d0
mov edi, dword [ebp + 0x14]
mov eax, dword [edi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 0xc
push dword [ebp + 0xc]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x264]
push eax
call esi
mov eax, dword [ebp + 0x10]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add eax, 0x2c
push eax
lea eax, [esp + 0x264]
push eax
call ebx
lea eax, [esp + 0x260]
push eax
lea eax, [esp + 0x16b4]
push eax
call esi
push 0x423494
lea eax, [esp + 0x16b4]
push eax
call ebx
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x16b4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x411656
lea eax, [esp + 0x260]
push 0
push eax
lea eax, [esp + 0x18]
call fcn.00407e71
mov esi, dword [esp + 0x14]
pop ecx
pop ecx
mov ebx, eax
call fcn.00409545
test al, al
je 0x411656
mov esi, dword [edi]
lea eax, [esp + 0x260]
push eax
mov byte [edi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x423490
call dword [esi]
pop ecx
test eax, eax
jne 0x411647
push edi
call fcn.004114d2
pop ecx
cmp byte [edi + 0xc], 0
je 0x411656
mov eax, dword [esp + 0xc]
call fcn.00401872
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417f3c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427aa8]
jne 0x417f46
repz ret
jmp fcn.00418d2e

Function at 0x41894f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x427aa8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041643c
and dword [ebp - 0x14], 0
cmp dword [0x42a9d0], 0
mov dword [ebp - 0x18], eax
jne 0x418a02
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x418aaa
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x418aaa
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42a9d0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42a9d4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42a9d8], eax
call edi
push eax
call esi
mov dword [0x42a9e0], eax
test eax, eax
je 0x418a02
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42a9dc], eax
mov eax, dword [0x42a9dc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x418a5b
cmp dword [0x42a9e0], ecx
je 0x418a5b
push eax
call esi
push dword [0x42a9e0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x418a5b
test ebx, ebx
je 0x418a5b
call edi
test eax, eax
je 0x418a52
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x418a52
test byte [ebp - 8], 1
jne 0x418a5b
or dword [ebp + 0x10], 0x200000
jmp 0x418a8e
mov eax, dword [0x42a9d4]
cmp eax, dword [ebp - 0x18]
je 0x418a8e
push eax
call esi
test eax, eax
je 0x418a8e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x418a8e
mov eax, dword [0x42a9d8]
cmp eax, dword [ebp - 0x18]
je 0x418a8e
push eax
call esi
test eax, eax
je 0x418a8e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42a9d0]
call esi
test eax, eax
je 0x418aaa
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x418aac
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417f3c
leave
ret
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x54b4b05
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
nop
mov ecx, 0x403c534c
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219

Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x76961aa1
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x76c566f7
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x406128
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40614d
mov dword [0x40a0f4], eax
add esp, 0xfffffff8
push 0x4060ec
push eax
call fcn.00407c20
jmp 0x406152
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x406168
mov dword [0x409054], 0x40624c
jmp 0x406172
mov dword [0x409054], 0x406200
leave
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
nop
je 0x431072
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x1f1e0c00
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x431060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4310d2
nop
mov ebx, 0x42f3f8
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x220a1475
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x40141e
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x110
lea eax, [esp]
push ebp
push esi
mov esi, dword [esp + 0x124]
push edi
mov edi, dword [esp + 0x128]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or eax, 9
push eax
push dword [esp + 0x12c]
push dword [esp + 0x12c]
call fcn.0040600b
test eax, eax
jne 0x401527
xor ebp, ebp
test byte [esp + 0x128], 2
je 0x401493
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebp
push eax
lea eax, [esp + 0x28]
push eax
push ebp
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x401503
push 0x105
lea eax, [esp + 0x18]
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x4014ce
test edi, edi
jne 0x401503
push dword [esp + 0x128]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call fcn.0040141e
test eax, eax
jne 0x4014d8
push 0x105
lea eax, [esp + 0x18]
push eax
push edi
push dword [esp + 0x18]
call ebp
test eax, eax
je 0x4014a6
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004065a6
test eax, eax
jne 0x401514
push dword [esp + 0x124]
push dword [esp + 0x124]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x401527
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x401527
push 0
push esi
push dword [esp + 0x12c]
push dword [esp + 0x12c]
call eax
pop edi
pop esi
pop ebp
add esp, 0x110
ret 0xc
Function at 0x402f57
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x50
mov ecx, dword [esp + 0x54]
mov eax, 0x795e00
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x6c]
mov ebx, 0x8000
test edi, edi
cmovne ebx, dword [esp + 0x70]
xor esi, esi
test edi, edi
cmovne eax, edi
mov dword [esp + 0x10], eax
test ecx, ecx
js 0x402f93
mov eax, dword [0x7a2898]
add eax, ecx
push eax
call fcn.00402f40
push 4
lea eax, [esp + 0x70]
push eax
push dword [0x40a010]
call fcn.00406608
test eax, eax
je 0x403151
mov eax, dword [esp + 0x6c]
test eax, eax
jns 0x4030f9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [0x40b560], esi
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x6c]
and eax, 0x7fffffff
mov byte [0x40b548], 0xb
mov ecx, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x6c], ecx
jbe 0x4030f1
mov ebp, 0x4000
cmp ecx, ebp
cmovl ebp, ecx
push ebp
push 0x791e00
call fcn.00402f2a
test eax, eax
je 0x403151
sub dword [esp + 0x6c], ebp
mov dword [0x40b53c], ebp
mov ebp, dword [esp + 0x10]
mov dword [0x40b538], 0x791e00
push 0x40b538
mov dword [0x40b540], ebp
mov dword [0x40b544], ebx
call fcn.00406af7
mov dword [esp + 0x1c], eax
test eax, eax
js 0x4030f5
mov eax, dword [0x40b540]
sub eax, ebp
mov dword [esp + 0x64], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x7a2934], 1
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
je 0x4030ad
sub eax, dword [esp + 0x70]
cmp eax, 0xc8
ja 0x403071
test ecx, ecx
jne 0x4030ad
mov eax, dword [esp + 0x14]
push eax
push 0x64
sub eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [esp + 0x24]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push 0
call fcn.00405a65
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x64]
test eax, eax
je 0x4030e9
test edi, edi
jne 0x4030ce
push eax
push ebp
push dword [esp + 0x70]
call fcn.004066c7
test eax, eax
je 0x403139
mov eax, dword [esp + 0x64]
jmp 0x4030da
mov ebp, dword [0x40b540]
sub ebx, eax
mov dword [esp + 0x10], ebp
add esi, eax
cmp dword [esp + 0x1c], 4
jne 0x40301e
jmp 0x4030f1
test ecx, ecx
jg 0x402fe9
mov eax, esi
jmp 0x403154
push 0xfffffffffffffffc
jmp 0x403153
test edi, edi
jne 0x40313d
test eax, eax
jle 0x4030f1
mov ebp, 0x791e00
cmp eax, ebx
mov edi, ebx
cmovl edi, eax
push edi
push ebp
call fcn.00402f2a
test eax, eax
je 0x403151
push edi
push ebp
push dword [esp + 0x70]
call fcn.004066c7
test eax, eax
je 0x403139
mov eax, dword [esp + 0x6c]
add esi, edi
sub eax, edi
mov dword [esp + 0x6c], eax
test eax, eax
jg 0x403106
jmp 0x4030f1
push 0xfffffffffffffffe
jmp 0x403153
mov esi, dword [esp + 0x70]
cmp eax, esi
cmovl esi, eax
push esi
push edi
call fcn.00402f2a
test eax, eax
jne 0x4030f1
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x10
Function at 0x40315e
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 4], 0
je 0x40317d
mov eax, dword [0x40b530]
test eax, eax
je 0x403175
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x40b530], 0
ret
cmp dword [0x40b530], 0
je 0x40318e
push 0
call fcn.00405f78
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x7a2840]
jbe 0x4031c1
push 0
push 0x403424
push 0
push 0x6f
push dword [0x7a2034]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 5
push eax
mov dword [0x40b530], eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x405b8d
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x405ba7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4
Function at 0x405f0b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
lea eax, [ebp - 0x120]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
ja 0x405f45
test eax, eax
je 0x405f45
lea eax, [ebp + eax - 0x120]
cmp byte [eax - 1], 0x5c
je 0x405f4b
mov ecx, 0x408298
jmp 0x405f50
lea eax, [ebp - 0x120]
mov ecx, 0x408299
push dword [ebp + 8]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x405fa6
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x405fc9
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406039
pop ecx
pop ecx
inc dword [0x7a2910]
ret 8

Function at 0x406039
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, 0x400
mov dword [0x7a0e88], 0x4c554e
mov ebp, 0x7a0e88
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
je 0x406085
push 1
push 0
push esi
call fcn.004065db
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x406165
cmp eax, ebx
jg 0x406165
push ebx
mov esi, 0x7a0a88
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x406165
cmp eax, ebx
jg 0x406165
push esi
push ebp
push str._s_s_r_n
push 0x7a0688
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x7a2850]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.00405c08
push 4
push 0xc0000000
push esi
call fcn.004065db
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406165
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [ebp + 0xa]
add ecx, esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40615e
push esi
push edi
push ebx
call fcn.00406608
test eax, eax
je 0x40615e
push str._Rename__r_n
push edi
call fcn.004067e7
test eax, eax
jne 0x40616a
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push ebp
push 0x7a0688
lea eax, [ecx + edi]
push eax
call fcn.00406359
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + ebp]
push eax
push edi
push ebx
call fcn.004066c7
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x408704
add eax, 0xa
push eax
call fcn.004067e7
mov ecx, eax
test ecx, ecx
je 0x40612f
lea edx, [edi + esi]
jmp 0x406189
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x406183
sub ecx, edi
inc ecx
jmp 0x406131
Function at 0x406234
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.0040684e
mov edi, eax
cmp edi, 0xffffffff
je 0x406277
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x406258
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x40625e
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x406267
xor eax, eax
inc eax
jmp 0x406279
test byte [ebp + 0xc], 4
jne 0x406277
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop ebp
ret 8

Function at 0x4062e2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x7a0288
push ebx
call fcn.004067cb
push ebx
call fcn.00406876
mov esi, eax
test esi, esi
je 0x406352
push esi
call fcn.004069ae
test byte [0x7a284c], 0x80
je 0x406318
mov al, byte [esi]
test al, al
je 0x406352
cmp al, 0x5c
je 0x406352
sub esi, ebx
jmp 0x406330
call fcn.0040627e
test eax, eax
je 0x40632a
test byte [eax], 0x10
je 0x406352
push ebx
call fcn.00406983
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
cmp eax, esi
jg 0x40631c
call fcn.00406207
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406352
xor eax, eax
inc eax
jmp 0x406354
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x40637b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x79fe40], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x79fe40
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4063ba
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x4063be
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x150
push ebx
mov ebx, dword [esp + 0x15c]
push esi
mov esi, dword [esp + 0x15c]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.004062e2
mov dword [esp + 0x18], eax
test bl, 8
je 0x406400
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x7a2908], eax
jmp 0x40659a
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x18], ebp
je 0x40641d
test eax, eax
je 0x406589
test bl, 2
je 0x406553
push esi
push 0x79fe88
call fcn.004067cb
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x406440
push str..
push 0x79fe88
call ebp
jmp 0x406446
push esi
call fcn.00406983
cmp byte [esi], 0
jne 0x406454
cmp byte [0x79fe88], 0x5c
jne 0x40645c
push 0x408298
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [esi + eax]
lea eax, [esp + 0x20]
mov dword [esp + 0x10], ebp
push eax
push 0x79fe88
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x406541
lea ebp, [esp + 0x4c]
push 0x3f
mov eax, ebp
push eax
call fcn.004062a5
cmp byte [eax], 0
je 0x4064ae
cmp byte [esp + 0x150], 0
lea eax, [esp + 0x150]
cmove eax, ebp
mov ebp, eax
cmp byte [ebp], 0x2e
jne 0x4064c5
mov al, byte [ebp + 1]
test al, al
je 0x40651c
cmp al, 0x2e
jne 0x4064c5
cmp byte [ebp + 2], 0
je 0x40651c
push ebp
mov ebp, dword [esp + 0x14]
push ebp
call fcn.004067cb
test byte [esp + 0x20], 0x10
je 0x4064e9
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x406520
push ebx
push esi
call fcn.004063be
jmp 0x406520
push edi
push esi
call fcn.00406234
test eax, eax
jne 0x406512
test edi, edi
je 0x40650a
push esi
push 0xfffffffffffffff1
call fcn.00405a65
push 0
push esi
call fcn.00405fa6
jmp 0x406520
inc dword [0x7a2908]
jmp 0x406520
push esi
push 0xfffffffffffffff2
call fcn.00405a65
jmp 0x406520
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406487
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x18], 0
je 0x406599
cmp dword [esp + 0x1c], 0
mov byte [ebp - 1], 0
je 0x406589
push esi
call fcn.0040627e
test eax, eax
je 0x406599
push esi
call fcn.00406207
mov eax, edi
or eax, 1
push eax
push esi
call fcn.00406234
test eax, eax
jne 0x406591
test edi, edi
je 0x406589
push esi
push 0xfffffffffffffff1
call fcn.00405a65
push 0
push esi
call fcn.00405fa6
jmp 0x406599
inc dword [0x7a2908]
jmp 0x406599
push esi
push 0xffffffffffffffe5
call fcn.00405a65
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x150
ret 8

Function at 0x4065db
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc
Function at 0x406637
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x400
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040600b
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x4066a7
push esi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov byte [edi + 0x3ff], 0
pop esi
jne 0x4066a7
cmp dword [ebp + 0x18], 1
je 0x4066aa
cmp dword [ebp + 0x18], 2
je 0x4066aa
mov byte [edi], 0
pop edi
leave
ret 0x14

Function at 0x4066af
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_ShellExecuteExA]
ret 4

Function at 0x406712
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
add byte [ebp + 0xa], dl
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x406751
test edi, edi
jne 0x40671d
mov byte [esi], al
jmp 0x406753
mov eax, esi
pop edi
pop esi
pop ebp
ret 8

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

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406870
mov ecx, esi
and ecx, 0xfffffffe
push ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

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

Disassembly:
cmp dword [0x7a13cc], 0
push esi
jne 0x406ac5
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x406a9c
mov dword [ecx*4 + 0x7a13c8], edx
inc ecx
cmp ecx, 0x100
jl 0x406a97
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x406aef
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x7a13c8]
inc esi
sub edx, 1
jne 0x406ad7
not ecx
mov eax, ecx
pop esi
ret 0xc