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

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
xor edi, edi
mov ebp, edi
mov ebx, edi
mov dword [esi + 0x6af80], 2
jmp 0x616801
cmp dword [esi + 0x6af90], 3
jb 0x61668c
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
mov eax, 0x7fff
and ecx, eax
and edx, eax
mov dword [esi + 0x6af7c], ecx
mov ebp, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebp
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
test ebp, ebp
je 0x6166c8
mov eax, dword [esi + 0x6af84]
sub eax, ebp
cmp eax, 0x7efa
ja 0x6166c8
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x6166b3
mov dword [esi + 0x6afa0], eax
push ebp
push esi
call fcn.00617157
mov ebx, eax
mov eax, dword [esi + 0x6af90]
cmp ebx, eax
jbe 0x6166c8
mov ebx, eax
cmp ebx, 3
jb 0x616796
lea eax, [ebx - 3]
push eax
mov eax, dword [esi + 0x6af84]
sub eax, dword [esi + 0x6af88]
push eax
push esi
call fcn.0061619c
sub dword [esi + 0x6af90], ebx
mov dword [esp + 0x14], eax
cmp ebx, dword [esi + 0x6af98]
ja 0x61675c
cmp dword [esi + 0x6af90], 3
jb 0x61675c
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [esi + edx + 0x1af72]
xor ecx, eax
mov eax, 0x7fff
and ecx, eax
and edx, eax
mov dword [esi + 0x6af7c], ecx
mov ebp, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebp
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
dec ebx
jne 0x616704
mov eax, dword [esp + 0x14]
jmp 0x6167b2
add dword [esi + 0x6af84], ebx
mov ebx, edi
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [eax + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov eax, dword [esp + 0x14]
jmp 0x6167b8
mov eax, dword [esi + 0x6af84]
movzx eax, byte [eax + esi + 0x1af70]
push eax
push edi
push esi
call fcn.0061619c
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
test eax, eax
je 0x6167ef
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x6167d0
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x6167d2
mov edx, edi
mov eax, dword [esi + 0x6af84]
push edi
sub eax, ecx
push eax
push edx
push esi
call fcn.006169e1
mov eax, dword [esi + 0x6af84]
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x616801
push esi
call fcn.006168b9
cmp dword [esi + 0x6af90], edi
jne 0x61663a
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x61681f
lea edi, [esi + 0x1af70]
add edi, ecx
mov eax, dword [esi + 0x6af84]
push 1
sub eax, ecx
push eax
push edi
push esi
call fcn.006169e1
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x61702a
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push 7
pop ecx
lea eax, [ebx - 1]
cmp ecx, eax
push str.bad_pack_level
sbb al, al
inc al
push eax
push esi
call fcn.00615322
xor ebp, ebp
xor edi, edi
inc ebp
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x617071
mov dword [esi + 0x6af78], ebp
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
mov dword [esi + 0x6af6c], edi
push edi
push eax
call fcn.00635a30
movzx eax, word [ebx*8 + 0x6f968a]
add esp, 0xc
mov dword [esi + 0x6af98], eax
movzx eax, word [ebx*8 + 0x6f9688]
mov dword [esi + 0x6af9c], eax
movzx eax, word [ebx*8 + 0x6f968c]
push 2
mov dword [esi + 0x6afa0], eax
movzx eax, word [ebx*8 + 0x6f968e]
pop ecx
mov dword [esi + 0x6af94], eax
cmp ebx, ecx
jg 0x6170d5
mov eax, dword [esp + 0x1c]
or word [eax], 4
jmp 0x6170e1
cmp ebx, 8
jl 0x6170e1
mov eax, dword [esp + 0x1c]
or word [eax], cx
push 0x10000
lea ebx, [esi + 0x1af70]
mov dword [esi + 0x6af84], edi
push ebx
push esi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
mov dword [esi + 0x6af90], eax
test eax, eax
je 0x617144
cmp eax, 0xffffffff
je 0x617144
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x61711f
push esi
call fcn.006168b9
mov dword [esi + 0x6af7c], edi
mov ecx, edi
movzx eax, byte [ebx + edi]
shl ecx, 5
xor ecx, eax
and ecx, 0x7fff
inc edi
mov dword [esi + 0x6af7c], ecx
cmp edi, 2
jb 0x617127
jmp 0x617150
mov dword [esi + 0x6af8c], ebp
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x617f30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x84]
test ecx, ecx
je 0x617f87
mov eax, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
cmp eax, esi
jae 0x617fb2
sub esi, eax
cmp esi, dword [ebp + 0xc]
jbe 0x617f5c
mov esi, dword [ebp + 0xc]
push esi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00631810
add esp, 0xc
add dword [edi + 0x8c], esi
add dword [edi + 0x74], esi
push esi
push dword [ebp + 8]
push dword [edi + 0x78]
call fcn.00615e6b
mov dword [edi + 0x78], eax
mov eax, esi
jmp 0x617fb4
cmp dword [edi + 0x7c], 0
je 0x617fab
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x617fb2
mov esi, dword [ebp - 4]
jmp 0x617f71
mov dword [edi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x618410
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
movsx eax, al
push esi
mov ecx, dword [edx]
mov esi, 0xff
xor eax, ecx
shr ecx, 8
and eax, esi
mov eax, dword [eax*4 + 0x6f9138]
xor eax, ecx
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edx + 8]
inc ecx
mov dword [edx + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, esi
pop esi
xor eax, dword [ecx*4 + 0x6f9138]
mov dword [edx + 8], eax
ret 8

Function at 0x618460
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x14]
cmp byte [esi + 0x2d], 0
je 0x6184d5
cmp dword [esi + 0x3c], 0
je 0x618491
cmp dword [esi + 0x40], edi
jae 0x61848b
push dword [esi + 0x3c]
call fcn.0040a313
and dword [esi + 0x3c], 0
pop ecx
cmp dword [esi + 0x3c], 0
jne 0x6184a1
lea eax, [edi + edi]
push eax
call fcn.00630af1
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push ebx
push dword [esi + 0x3c]
call fcn.00631810
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x6184d2
push ebp
lea ebp, [esi + 0x30]
mov eax, dword [esi + 0x3c]
movzx eax, byte [ebx + eax]
push eax
push ebp
call fcn.00618530
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, edi
jb 0x6184b8
pop ebp
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x618504
mov edx, dword [esi + 0x24]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x28]
jb 0x6184f0
mov dword [esi + 0x14], 0x30000
jmp 0x618528
push edi
add ecx, edx
push ebx
push ecx
call fcn.00631810
add esp, 0xc
mov eax, edi
add dword [esi + 0x24], edi
jmp 0x61852a
mov eax, dword [esi + 4]
test eax, eax
je 0x618521
push 0
lea ecx, [esp + 0x14]
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [esp + 0x10]
jmp 0x61852a
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x6185fe
Capabilities:
Hide graphical window

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push ebp
push esi
push edi
mov edi, ecx
push 0x6a1
push dword [edi + 4]
call ebx
push 1
xor esi, esi
push esi
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ebp, dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [edi + 0x70], esi
jne 0x618744
push 2
push 0x172
push 0x122
push esi
push esi
push esi
push dword [edi + 4]
call ebp
mov esi, dword [edi + 4]
push 0xa6
call fcn.00582370
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_SetWindowTextW]
call esi
push 0x6a1
push dword [edi + 4]
call ebx
push 0x42
push 0x172
push 0x122
xor ecx, ecx
push ecx
push ecx
push ecx
push eax
call ebp
cmp byte [edi + 0x50], 0
push 0x6a0
push dword [edi + 4]
jne 0x618694
call ebx
push 0x40
push 0xf
push 0xc3
jmp 0x61869f
call ebx
push 0x40
push 0xf
push 0x109
push 0x13b
push 0xa
push 0
push eax
call ebp
push 0x6a2
push dword [edi + 4]
call ebx
push 0x41
xor ecx, ecx
push ecx
push ecx
push 0x136
push 0xd0
push ecx
push eax
call ebp
cmp byte [edi + 0x50], 0
jne 0x6186d6
push 0xbf
jmp 0x6186db
push 0xc0
call fcn.00582370
push 0x6a0
push dword [edi + 4]
mov dword [esp + 0x18], eax
call ebx
push dword [esp + 0x10]
push eax
call esi
push 0x6a2
push dword [edi + 4]
call ebx
push 0xa8
mov esi, eax
call fcn.00582370
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x6a2
push dword [edi + 4]
call ebx
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
xor ecx, ecx
cmp byte [edi + 0x50], cl
setne cl
dec ecx
and ecx, 5
push ecx
push eax
call esi
push 0x6b3
push dword [edi + 4]
call ebx
push 0
push eax
call esi
xor esi, esi
cmp dword [edi + 0x70], 1
jne 0x618832
push 2
push 0x64
push 0x136
push esi
push esi
push esi
push dword [edi + 4]
call ebp
mov esi, dword [edi + 4]
push 0xa7
call fcn.00582370
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x6a0
push dword [edi + 4]
call ebx
xor esi, esi
push esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x6a1
push dword [edi + 4]
call ebx
push 0x42
push 0x64
push 0x136
push esi
push esi
push esi
push eax
call ebp
push 0x6a2
push dword [edi + 4]
call ebx
push 0x41
push esi
push esi
push 0x28
push 0x98
push esi
push eax
call ebp
push 0x6a2
push dword [edi + 4]
call ebx
push 0xaa
mov esi, eax
call fcn.00582370
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, 0x6b3
push esi
push dword [edi + 4]
call ebx
push 0x41
xor ecx, ecx
push ecx
push ecx
push 0x28
push 0xe4
push ecx
push eax
call ebp
push esi
push dword [edi + 4]
call ebx
push 0xa9
mov esi, eax
call fcn.00582370
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x6a2
push dword [edi + 4]
call ebx
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push eax
call ebp
push 0x6b3
push dword [edi + 4]
call ebx
push 5
push eax
call ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x6194e2
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x638
lea eax, [ebp - 0x220]
push esi
xor esi, esi
push esi
push 0x25
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x61951c
mov ecx, esi
movzx eax, word [ecx + 0x6f9ba8]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x222], ax
test ax, ax
jne 0x619505
push 0x14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0046ca28
test al, al
jne 0x61954b
mov ecx, esi
movzx eax, word [ecx + 0x6f9ba8]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x222], ax
test ax, ax
jne 0x619534
mov ecx, 0x105
lea eax, [ebp - 0x42c]
push ecx
push eax
push esi
push esi
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
neg eax
pop esi
sbb eax, eax
and eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x658d3d
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x759e6c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0063d752
mov dword [ebp - 0x14], eax
cmp dword [0x799888], esi
jne 0x658e30
push 0x800
push esi
push 0x7035dc
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x658dbd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x57
jne 0x658f10
push esi
push esi
push 0x7035dc
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x658f10
push 0x7035f4
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x658f10
push eax
call ebx
push 0x703600
push edi
mov dword [0x799888], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
push 0x703610
push edi
mov dword [0x79988c], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
push 0x703624
push edi
mov dword [0x799890], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
mov dword [0x799898], eax
test eax, eax
je 0x658e2d
push 0x703640
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
mov dword [0x799894], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_IsDebuggerPresent]
test eax, eax
je 0x658e55
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x658e48
push eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x658e6a
push 4
pop eax
jmp 0x658f12
cmp dword [ebp - 0x14], esi
je 0x658e6a
push dword [0x799888]
call dword [sym.imp.KERNEL32.DLL_DecodePointer]
push 3
jmp 0x658e4f
mov eax, dword [0x799894]
mov ebx, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, edi
je 0x658ec8
cmp dword [0x799898], edi
je 0x658ec8
push eax
call ebx
push dword [0x799898]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x658ec8
test eax, eax
je 0x658ec8
call ecx
test eax, eax
je 0x658ebd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x658ebd
test byte [ebp - 8], 1
jne 0x658ec8
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x658ef8
mov eax, dword [0x79988c]
cmp eax, edi
je 0x658ef5
push eax
call ebx
test eax, eax
je 0x658ef5
call eax
mov esi, eax
test esi, esi
je 0x658ef5
mov eax, dword [0x799890]
cmp eax, edi
je 0x658ef5
push eax
call ebx
test eax, eax
je 0x658ef5
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x799888]
call ebx
test eax, eax
je 0x658f10
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x658f12
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00636364
mov esp, ebp
pop ebp
ret
Function at 0x65c009
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x669663
call fcn.006313fc
sub esp, 0x1c
and dword [esp], 0
push ebx
push esi
mov esi, dword [esp + 0x3c]
push edi
lea edi, [esi + 0x10]
mov ebx, dword [edi]
test bl, 3
je 0x65c043
call fcn.0065c223
mov ecx, dword [esp + 0x3c]
push eax
call fcn.0040a0c6
mov eax, dword [esp + 0x3c]
jmp 0x65c211
test ebx, ebx
je 0x65c02b
push ebp
mov ebp, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_orders.bittorrent.com
push ebp
call fcn.00409db4
pop ecx
push eax
push 0
push ebp
mov ecx, esi
call fcn.0047940b
mov ecx, eax
cmp ecx, 0xffffffff
je 0x65c0b1
cmp dword [esi + 0x14], 0x10
jb 0x65c070
mov eax, dword [esi]
jmp 0x65c072
mov eax, esi
cmp byte [eax + ecx], 0x3d
jne 0x65c099
lea eax, [ebx - 1]
cmp ecx, eax
je 0x65c0b1
lea eax, [ebx - 2]
cmp ecx, eax
jne 0x65c099
cmp dword [esi + 0x14], 0x10
jb 0x65c090
mov eax, dword [esi]
jmp 0x65c092
mov eax, esi
cmp byte [eax + ecx + 1], 0x3d
je 0x65c0b1
call fcn.0065c223
mov ecx, dword [esp + 0x40]
push eax
call fcn.0040a0c6
mov eax, dword [esp + 0x40]
jmp 0x65c210
cmp dword [esi + 0x14], 0x10
jb 0x65c0b9
mov esi, dword [esi]
mov ebp, dword [edi]
xor eax, eax
mov edi, ebx
mov dword [esp + 0x28], 0xf
add ebp, esi
shr edi, 2
mov dword [esp + 0x24], eax
mov byte [esp + 0x14], al
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x14]
imul eax, ebx, 3
shr eax, 2
push eax
call fcn.004099e1
dec edi
je 0x65c160
movzx eax, byte [esi + 1]
mov bl, byte [eax + 0x75ae45]
movzx eax, byte [esi + 2]
mov bh, byte [eax + 0x75ae45]
movzx eax, byte [esi]
mov cl, byte [eax + 0x75ae45]
mov al, bl
sar al, 4
shl cl, 2
and al, 3
add cl, al
movzx eax, cl
lea ecx, [esp + 0x14]
push eax
push 1
call fcn.004092d9
mov al, bh
shl bl, 4
sar al, 2
lea ecx, [esp + 0x14]
and al, 0xf
xor al, bl
movzx eax, al
push eax
push 1
call fcn.004092d9
movzx eax, byte [esi + 3]
lea ecx, [esp + 0x14]
shl bh, 6
add bh, byte [eax + 0x75ae45]
movzx eax, bh
push eax
push 1
call fcn.004092d9
add esi, 4
dec edi
jne 0x65c0eb
movzx eax, byte [esi + 1]
xor edi, edi
inc edi
mov bh, byte [eax + 0x75ae45]
movzx eax, byte [esi]
mov cl, byte [eax + 0x75ae45]
mov al, bh
sar al, 4
shl cl, 2
and al, 3
add cl, al
movzx eax, cl
lea ecx, [esp + 0x14]
push eax
push edi
call fcn.004092d9
add esi, 2
cmp esi, ebp
je 0x65c1e5
mov al, byte [esi]
cmp al, 0x3d
je 0x65c1e5
movzx eax, al
lea ecx, [esp + 0x14]
shl bh, 4
mov bl, byte [eax + 0x75ae45]
mov al, bl
sar al, 2
and al, 0xf
xor al, bh
movzx eax, al
push eax
push edi
call fcn.004092d9
inc esi
cmp esi, ebp
je 0x65c1e5
mov al, byte [esi]
cmp al, 0x3d
je 0x65c1e5
movzx eax, al
lea ecx, [esp + 0x14]
shl bl, 6
add bl, byte [eax + 0x75ae45]
movzx eax, bl
push eax
push edi
call fcn.004092d9
mov esi, dword [esp + 0x40]
lea eax, [esp + 0x14]
xor ebx, ebx
mov ecx, esi
push eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
call fcn.00409bd4
push ebx
push edi
lea ecx, [esp + 0x1c]
call fcn.0040a0e9
mov eax, esi
pop ebp
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x65d3c1
Capabilities:
Get common file path
Get disk information

Disassembly:
mov eax, 0x683b2a
call fcn.006313fc
sub esp, 0x678
and dword [esp + 0x680], 0
xor eax, eax
and dword [esp + 0x18], 0
push ebx
push ebp
push esi
push edi
push 8
pop ecx
lea esi, [esp + 0x14]
xor ebp, ebp
lea edi, [esp + 0x2c]
inc ebp
rep stosd dword es:[edi], eax
xor ecx, ecx
lea edi, [esp + 0x38]
cpuid
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
xor ecx, ecx
mov dword [esi + 0xc], edx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x34], eax
mov eax, ebp
cpuid
mov dword [esi], eax
lea eax, [esp + 0x270]
mov dword [esi + 4], ebx
xor ebx, ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov byte [esp + 0x1b], bl
movsd dword es:[edi], dword [esi]
push ebx
push 0x25
push eax
movsd dword es:[edi], dword [esi]
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
mov edi, 0x105
test eax, eax
je 0x65d49f
push 0xa
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x278]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumePathNameW]
test eax, eax
je 0x65d49f
push edi
lea eax, [esp + 0x68]
push eax
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
push edi
lea eax, [esp + 0x494]
push eax
lea eax, [esp + 0x30]
push eax
call esi
test eax, eax
je 0x65d49f
mov eax, dword [esp + 0x10]
mov dword [esp + 0x48], eax
jmp 0x65d4a3
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x65d4e4
push 0x6f9ba8
lea eax, [esp + 0x18]
push 0xa
push eax
call fcn.0064ea7a
add esp, 0xc
lea eax, [esp + 0x64]
push edi
push eax
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
push edi
lea eax, [esp + 0x494]
push eax
lea eax, [esp + 0x30]
push eax
call esi
test eax, eax
je 0x65d4e4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x69c]
push str.cid2_
call fcn.00409ba7
push 0x20
lea eax, [esp + 0x30]
mov dword [esp + 0x694], ebx
push eax
lea eax, [esp + 0x54]
mov dword [esp + 0x30], ebp
push eax
call fcn.0065d3a2
mov ecx, dword [esp + 0x69c]
push 0xffffffffffffffff
push ebx
push eax
mov dword [esp + 0x69c], ebp
call fcn.00409c77
push ebx
push ebp
lea ecx, [esp + 0x54]
call fcn.0040a0e9
mov eax, dword [esp + 0x69c]
mov ecx, dword [esp + 0x688]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x66234f
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x662363
test al, 0x10
jne 0x662374
xor ebx, ebx
push ebx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x662377
xor ebx, ebx
inc ebx
mov al, bl
pop ebx
ret 4
Function at 0x662f8b
Capabilities:
Terminate process

Disassembly:
mov eax, 0x68441e
call fcn.006313fc
sub esp, 0x7c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
test edi, edi
jne 0x662fb4
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
mov dword [esi + 0x48], eax
mov ecx, esi
call fcn.006621a6
cmp byte [esi + 0x24], bl
je 0x663143
test al, al
je 0x662ff3
test edi, edi
je 0x662ff3
mov ecx, dword [esi + 0x40]
lea eax, [ebp - 0x54]
push eax
call fcn.00664459
push eax
push ebx
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00662f8b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
push ebx
push 1
call fcn.0040a0e9
mov eax, dword [esi + 0x44]
test eax, eax
je 0x66308d
mov al, byte [eax + 0x74]
test al, al
je 0x66308d
push dword [ebp + 0xc]
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x88], edi
call fcn.0040a0c6
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 6
push eax
lea ecx, [ebp - 0x88]
call fcn.006643e0
mov ecx, dword [esi + 0x44]
push eax
mov byte [ebp - 4], 7
call fcn.00664c5e
push ebx
push 1
lea ecx, [ebp - 0x3c]
call fcn.0040a0e9
test edi, edi
jne 0x663082
push 0x2710
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
je 0x66307a
push 1
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push dword [esi + 0x10]
call edi
mov dword [esi + 0x10], ebx
push dword [esi + 0x48]
call edi
mov dword [esi + 0x48], ebx
lea ecx, [ebp - 0x84]
jmp 0x66313b
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x24], bl
push str.The_other_end_of_the_pipe_hung_up
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 1
call fcn.00409ba7
push str.error
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00409ba7
push ebx
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00483a6d
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.00409c77
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.0040a0e9
push ebx
push 1
lea ecx, [ebp - 0x3c]
call fcn.0040a0e9
push ebx
push 1
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.0040a0e9
push str.remote_ieprocess
lea ecx, [ebp - 0x54]
call fcn.00409ba7
push ebx
push ebx
push ebx
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x24]
push eax
push 0x2c
call fcn.00484725
push ebx
push 1
lea ecx, [ebp - 0x54]
call fcn.0040a0e9
lea ecx, [ebp - 0x24]
push ebx
push 1
call fcn.0040a0e9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8