joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ab1e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov ecx, dword [edi]
cmp ecx, ebx
jae 0x4ab24b
mov esi, dword [ebp + 8]
lea eax, [esi + 0x34]
nop dword [eax + eax]
cmp dword [esi + 0x4c], 0
mov edx, dword [esi + 0x48]
jne 0x4ab222
push eax
lea eax, [ebp + 0x14]
push eax
mov eax, ebx
sub eax, ecx
push eax
mov eax, dword [ebp + 0xc]
add eax, ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x4ab230
push 0
lea ecx, [ebp + 0x14]
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ecx, eax
mov eax, dword [ebp + 0x14]
add dword [edi], eax
test ecx, ecx
je 0x4ab258
mov dword [esi + 0x4c], 0
lea eax, [esi + 0x34]
mov ecx, dword [edi]
cmp ecx, ebx
jb 0x4ab200
mov dword [edi], 0
mov eax, ecx
pop edi
pop esi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x4c], 0
jne 0x4ab273
cmp eax, 0x3e5
je 0x4ab27a
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
cmp eax, 0x3e4
jne 0x4ab26b
pop edi
mov dword [esi + 0x4c], 1
mov eax, 0xffffffdb
pop esi
pop ebx
pop ebp
ret

Function at 0x4ab290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov ecx, dword [edi]
cmp ecx, ebx
jae 0x4ab2fb
mov esi, dword [ebp + 8]
lea eax, [esi + 0x34]
nop dword [eax + eax]
cmp dword [esi + 0x4c], 0
mov edx, dword [esi + 0x48]
jne 0x4ab2d2
push eax
lea eax, [ebp + 0x14]
push eax
mov eax, ebx
sub eax, ecx
push eax
mov eax, dword [ebp + 0xc]
add eax, ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4ab2e0
push 0
lea ecx, [ebp + 0x14]
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ecx, eax
mov eax, dword [ebp + 0x14]
add dword [edi], eax
test ecx, ecx
je 0x4ab308
mov dword [esi + 0x4c], 0
lea eax, [esi + 0x34]
mov ecx, dword [edi]
cmp ecx, ebx
jb 0x4ab2b0
mov dword [edi], 0
mov eax, ecx
pop edi
pop esi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x4c], 0
jne 0x4ab323
cmp eax, 0x3e5
je 0x4ab32a
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
cmp eax, 0x3e4
jne 0x4ab31b
pop edi
mov dword [esi + 0x4c], 1
mov eax, 0xffffffdb
pop esi
pop ebx
pop ebp
ret
Function at 0x4b01c0
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x4b03a0
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4b03a0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4b03a0
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4b03a0
mov ecx, dword [ecx + 4]
mov esi, dword [eax + 4]
add ecx, 0x18
add esi, ecx
mov dword [ebp - 8], 0x18
push esi
call fcn.004bae7f
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
test edi, edi
je 0x4b03a0
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov dword [edi], 0x31415352
mov ecx, dword [eax + 4]
shl ecx, 3
mov dword [edi + 4], ecx
mov ecx, dword [edx + 4]
mov dword [edi + 8], ecx
mov eax, dword [eax + 4]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
push dword [edx + 4]
mov eax, dword [ebp - 8]
push dword [edx]
add eax, edi
push eax
call fcn.00439170
mov eax, dword [ebp + 0x14]
push dword [eax + 4]
push dword [eax]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
add eax, edi
add eax, dword [ebp - 8]
push eax
call fcn.00439170
add esp, 0x18
mov dword [ebp - 8], 0
lea eax, [ebp - 0xc]
push 0
push esi
push edi
push eax
push str.RSAPUBLICBLOB
push 0
push dword [0x5a1bcc]
call sub.bcrypt.dll_BCryptImportKeyPair
mov edi, eax
test edi, edi
js 0x4b0373
push 1
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push 0
push 0
push dword [ebx + 4]
push dword [ebx]
push dword [ebp - 0xc]
call sub.bcrypt.dll_BCryptEncrypt
mov edi, eax
test edi, edi
js 0x4b036b
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004b03b0
add esp, 8
test eax, eax
jne 0x4b0366
mov ecx, dword [ebp - 4]
cmp dword [ebx + 4], ecx
cmova ecx, dword [ebx + 4]
push ecx
mov dword [ebp - 4], ecx
call fcn.004bae7f
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
test edi, edi
je 0x4b0366
push dword [ebx + 4]
push dword [ebx]
push dword [ebp - 4]
push edi
call fcn.004b24d0
mov ebx, dword [ebp + 8]
lea eax, [ebp - 8]
add esp, 0x10
push 1
push eax
push dword [ebx + 4]
push dword [ebx]
push 0
push 0
push 0
push dword [ebp - 4]
push edi
push dword [ebp - 0xc]
call sub.bcrypt.dll_BCryptEncrypt
mov ecx, dword [ebp - 4]
mov edi, eax
mov edx, dword [ebp - 0x10]
test ecx, ecx
je 0x4b034b
mov eax, edx
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4b0340
push edx
call fcn.004bae64
add esp, 4
test edi, edi
js 0x4b036b
push dword [ebp - 8]
push ebx
call fcn.004b03b0
add esp, 8
jmp 0x4b036b
mov edi, 0xc0000017
push dword [ebp - 0xc]
call sub.bcrypt.dll_BCryptDestroyKey
mov ecx, dword [ebp - 0x14]
test esi, esi
je 0x4b038b
mov eax, ecx
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub esi, 1
jne 0x4b0380
push ecx
call fcn.004bae64
add esp, 4
sar edi, 0x1f
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b0520
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
test eax, eax
je 0x4b0537
mov ecx, dword [esi + 0xc]
jmp 0x4b053a
mov ecx, dword [ebp + 0x20]
cmp dword [ebp + 0x1c], 0
mov dword [ebp - 8], ecx
jne 0x4b0565
test eax, eax
jne 0x4b0565
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [esi + 0x14]
push dword [esi + 8]
push 0
push dword [ebp + 0x24]
push ecx
push dword [esi]
call sub.bcrypt.dll_BCryptDecrypt
jmp 0x4b0582
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [esi + 0x14]
push dword [esi + 8]
push 0
push dword [ebp + 0x24]
push ecx
push dword [esi]
call sub.bcrypt.dll_BCryptEncrypt
mov edi, eax
test edi, edi
js 0x4b0656
push ebx
push dword [ebp - 4]
call fcn.004bae7f
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4b0650
cmp dword [ebp + 0x1c], 0
jne 0x4b05cf
cmp dword [ebp + 0x18], 0
jne 0x4b05cf
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push dword [esi + 0x14]
push dword [esi + 8]
push 0
push dword [ebp + 0x24]
push dword [ebp - 8]
push dword [esi]
call sub.bcrypt.dll_BCryptDecrypt
jmp 0x4b05ee
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push dword [esi + 0x14]
push dword [esi + 8]
push 0
push dword [ebp + 0x24]
push dword [ebp - 8]
push dword [esi]
call sub.bcrypt.dll_BCryptEncrypt
mov edi, eax
test edi, edi
js 0x4b0616
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp + 0x20]
je 0x4b0640
push dword [ebp + 0x24]
push ebx
push eax
push eax
call fcn.004b30d0
push dword [esi + 0x1c]
push dword [esi + 0xc]
call fcn.004b2650
add esp, 0x18
mov esi, dword [ebp - 4]
test esi, esi
je 0x4b062b
mov eax, ebx
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub esi, 1
jne 0x4b0620
push ebx
call fcn.004bae64
add esp, 4
sar edi, 0x1f
mov eax, edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 4]
push esi
push ebx
push eax
call fcn.00439170
add esp, 0xc
jmp 0x4b0619
mov edi, 0xc0000017
pop ebx
sar edi, 0x1f
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b27f0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [eax], 0
test edi, edi
jne 0x4b281a
mov edi, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4b2811
sub edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [edi*4]
mov eax, 0xaaaaaaab
mul ecx
mov eax, dword [esi + 4]
shr edx, 1
add edx, 4
push esi
push edx
call eax
add esp, 8
mov dword [ebp - 4], eax
mov esi, eax
mov dword [ebp - 8], esi
test eax, eax
jne 0x4b284d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4b2916
xor edx, edx
xor eax, eax
nop dword [eax]
test edi, edi
je 0x4b286b
mov cl, byte [ebx]
inc edx
inc ebx
dec edi
jmp 0x4b2876
cmp eax, 3
jae 0x4b2933
xor cl, cl
mov byte [ebp + eax + 8], cl
inc eax
cmp eax, 3
jl 0x4b2860
mov ah, byte [ebp + 8]
mov cl, byte [ebp + 9]
mov al, ah
shr al, 2
and ah, 3
mov byte [ebp + 0xf], al
mov al, cl
shl ah, 4
and cl, 0xf
shr al, 4
or ah, al
shl cl, 2
mov byte [ebp + 0x13], ah
mov ah, byte [ebp + 0xa]
mov al, ah
and ah, 0x3f
shr al, 6
or cl, al
sub edx, 1
je 0x4b28dc
sub edx, 1
je 0x4b28cf
movzx eax, ah
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx eax, cl
mov ch, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x4b28e0
movzx eax, cl
mov dl, 0x3d
mov ch, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x4b28e0
mov dl, 0x3d
mov ch, dl
movzx eax, byte [ebp + 0xf]
mov esi, dword [ebp - 4]
mov cl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx eax, byte [ebp + 0x13]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], cl
mov byte [esi + 1], al
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov byte [eax + 2], ch
mov byte [eax + 3], dl
add eax, 4
mov dword [ebp - 4], eax
test edi, edi
jne 0x4b2855
mov byte [eax], 0
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
lea eax, [esi + 1]
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x4b2921
sub esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00426de5
int3
Function at 0x4b30d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x14]
xor ebx, ebx
test edi, edi
je 0x4b3193
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
cmp edi, 0x40
jb 0x4b3176
lea ecx, [esi - 1]
lea edx, [eax - 1]
add ecx, edi
add edx, edi
cmp eax, ecx
ja 0x4b3104
cmp edx, esi
jae 0x4b3176
mov edx, dword [ebp + 0xc]
lea ecx, [edx - 1]
add ecx, edi
cmp eax, ecx
ja 0x4b3119
lea ecx, [edi - 1]
add ecx, eax
cmp ecx, edx
jae 0x4b3179
mov ecx, edi
and ecx, 0xffffffc0
nop
movups xmm0, xmmword [esi]
add ebx, 0x40
movups xmm1, xmmword [edx]
pxor xmm1, xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [eax], xmm1
movups xmm1, xmmword [edx + 0x10]
pxor xmm1, xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [eax + 0x10], xmm1
movups xmm1, xmmword [edx + 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [esi + 0x30]
add esi, 0x40
movups xmmword [eax + 0x20], xmm1
movups xmm1, xmmword [edx + 0x30]
add edx, 0x40
pxor xmm1, xmm0
movups xmmword [eax + 0x30], xmm1
add eax, 0x40
cmp ebx, ecx
jb 0x4b3120
mov dword [ebp + 0x14], ebx
cmp ebx, edi
jae 0x4b3192
jmp 0x4b3179
mov edx, dword [ebp + 0xc]
sub edx, eax
sub esi, eax
sub edi, ebx
nop
mov cl, byte [esi + eax]
lea eax, [eax + 1]
xor cl, byte [edx + eax - 1]
mov byte [eax - 1], cl
sub edi, 1
jne 0x4b3180
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4ba320
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x5a17ac], 0
push ebx
push esi
mov esi, 0x5a17b4
jne 0x4ba34c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x5a17cc], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x5a17ac], 1
push dword [0x5a17cc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4ba3e9
push 0x14
push 8
push dword [0x59cd20]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x4ba413
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5a17b0]
test eax, eax
je 0x4ba38e
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x5a17b0], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x4ba418
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x5a17cc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x59cd20]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4ba413
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8
Function at 0x4ba9d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4ba9fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4ba9fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4c56fe
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004ba890
mov eax, dword [0x59c074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0043425d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4c5740
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4c589c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004bac20
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x59d678]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00435d8a
mov ecx, dword [esi*4 + 0x59d678]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4c5895
cmp eax, dword [ecx + edi + 0x24]
jne 0x4c5895
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c5895
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00435d8a
add esp, 0x14
test edx, edx
jl 0x4c5895
jg 0x4c580b
test eax, eax
jb 0x4c5895
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4c5895
jl 0x4c5825
cmp dword [ebp - 0x1008], eax
ja 0x4c5895
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4c5843
test ebx, ebx
je 0x4c587c
cmp ecx, edi
jae 0x4c587c
mov al, byte [ecx]
cmp al, 0xd
jne 0x4c585d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4c5869
cmp byte [ecx + 1], 0xa
jne 0x4c5869
inc ecx
jmp 0x4c5869
movzx eax, al
movsx eax, byte [eax + 0x59c7d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4c5843
cmp edx, ebx
jne 0x4c5843
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4c589a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00426cb5
leave
ret
Function at 0x4c7917
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x59c074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x4faac0
push esi
call fcn.0042f577
pop ecx
pop ecx
test eax, eax
jne 0x4c7945
xor al, al
jmp 0x4c79c2
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.004c764c
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x4c797f
push dword [ebp - 0x210]
call fcn.004bae64
xor al, al
jmp 0x4c79c0
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4c7985
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x4c79a5
push edx
call fcn.004c784e
pop ecx
test al, al
je 0x4c7970
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4c79b3
mov bl, 1
push dword [ebp - 0x210]
call fcn.004bae64
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00426cb5
leave
ret

Function at 0x4cfb96
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x59c074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x4cfbd9
call fcn.0042bb6c
mov dword [eax], 0xf
call fcn.0042bb7f
mov dword [eax], 0xd
call fcn.00429fdb
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00426cb5
leave
ret
test eax, eax
jne 0x4cfbe0
inc eax
jmp 0x4cfbcd
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x4cfbcb
xor eax, eax
cmp ecx, 1
setne al
jmp 0x4cfbcd
Function at 0x4d08c4
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004d0840
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4d0a33
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4d0a33
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4d09e8
jg 0x4d0920
test eax, eax
je 0x4d09de
push 1
push 0x1000
call fcn.0042a01f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4d0943
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4d09d5
push 0x8000
push ebx
call fcn.00427f61
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4d096c
jg 0x4d0967
cmp ecx, 0x1000
jb 0x4d096c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00434b6e
add esp, 0x10
cmp eax, 0xffffffff
je 0x4d09b1
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4d0967
jl 0x4d0998
test ecx, ecx
jne 0x4d0959
push dword [ebp - 0xc]
push ebx
call fcn.00427f61
push esi
call fcn.0042a07c
add esp, 0xc
xor ebx, ebx
jmp 0x4d0a41
cmp byte [edi + 0x24], 0
je 0x4d09c8
cmp dword [edi + 0x20], 5
jne 0x4d09c8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4d09d3
mov ebx, dword [edi + 0x18]
jmp 0x4d09d5
xor ebx, ebx
push esi
call fcn.0042a07c
pop ecx
jmp 0x4d0a41
test ecx, ecx
jg 0x4d09aa
jl 0x4d09e8
test eax, eax
jae 0x4d09aa
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00435da8
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4d0a08
cmp byte [edi + 0x1c], 0
je 0x4d09aa
jmp 0x4d0a39
push ebx
call fcn.0042ddfa
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4d09aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4d0a41
cmp byte [edi + 0x1c], 0
je 0x4d0a3e
mov ebx, dword [edi + 0x18]
jmp 0x4d0a41
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00435da8
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d15b8
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x188
push 8
push dword [0x59cd20]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x5a1a44]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x5a1a40], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.004d4625
mov dword [esi + 0x58], 0x4d24bd
mov eax, esi
mov dword [esi + 0x5c], 0x4d2509
mov dword [esi + 0x10], fcn.004d2017
mov dword [esi + 0x30], 0x4d1e00
mov dword [esi + 0x64], 0x4d259e
mov dword [esi + 0x60], 0x4d2552
mov dword [esi + 0x34], 0x4d1979
mov dword [esi + 0x24], 0x4d1950
mov dword [esi + 0x28], 0x4d1925
mov dword [esi + 0x2c], 0x4d1879
mov dword [esi + 0x44], 0x4d22b2
mov dword [esi + 0x68], 0x4d1679
mov dword [esi + 0x6c], 0x4d27a0
pop esi
ret 4
Function at 0x4d6a58
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
imul ecx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 4], ecx
test ebx, ebx
je 0x4d6b2a
mov eax, dword [esp + 0x18]
imul eax, dword [esp + 0x28]
imul edx, dword [esp + 0x1c], 3
push ebp
mov ebp, dword [esp + 0x24]
push esi
imul esi, dword [esp + 0x2c], 3
add eax, dword [esp + 0x1c]
push edi
mov dword [esp + 0x14], edx
add esi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], esi
mov edi, dword [eax + 0xcc]
imul edi, ebp
mov dword [esp + 0x28], esi
add edi, dword [eax + 0xc8]
add edi, edx
test ecx, ecx
jle 0x4d6afe
mov ebp, dword [esp + 0x28]
mov ebx, 0xff
sub ebx, dword [esp + 0x40]
mov esi, ecx
movzx eax, byte [ebp]
imul eax, dword [esp + 0x40]
movzx ecx, byte [edi]
imul ecx, ebx
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
inc ebp
mov byte [edi], al
inc edi
sub esi, 1
jne 0x4d6ac4
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
dec ebx
inc ebp
cmp dword [eax + 0xe8], 0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], ebp
jne 0x4d6b17
sub esi, dword [esp + 0x24]
jmp 0x4d6b1b
add esi, dword [esp + 0x24]
mov dword [esp + 0x38], esi
test ebx, ebx
jne 0x4d6a9c
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28

Function at 0x4d714c
Capabilities:
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0xd4]
mov dword [esp + 8], eax
test esi, esi
je 0x4d71f8
imul eax, dword [esp + 0x1c]
imul ecx, dword [esp + 0x24], 3
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
imul eax, dword [esp + 0x30]
add eax, dword [esp + 0x1c]
add ecx, eax
mov eax, dword [esp + 0x24]
mov edx, dword [edi + 0xcc]
mov ebp, ecx
imul edx, ebx
add edx, dword [edi + 0xc8]
add edx, eax
cmp dword [esp + 0x34], 0
jle 0x4d71d9
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [edx + 2], al
mov al, byte [ebp + 1]
xor byte [edx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 3]
xor byte [edx], al
add edx, edi
sub esi, 1
jne 0x4d71b2
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
dec esi
inc ebx
cmp dword [edi + 0xe8], 0
mov dword [esp + 0x38], esi
jne 0x4d71ee
sub ecx, dword [esp + 0x20]
jmp 0x4d71f2
add ecx, dword [esp + 0x20]
test esi, esi
jne 0x4d7190
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret 0x24