joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426d68
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0xa], 0
je 0x426d80
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [ebp - 4]
push eax
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.dll_WriteFile
test eax, eax
jne 0x426da4
push 5
push 2
call fcn.0043fb04
mov byte [ebx + 9], 1
pop ebx
pop ecx
pop ebp
ret 0xc

Function at 0x426db0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0xa], 0
je 0x426dc8
push 0xfffffffffffffff6
call sub.KERNEL32.dll_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [ebp - 4]
push eax
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.dll_ReadFile
test eax, eax
jne 0x426dec
push 2
push 3
call fcn.0043fb04
mov eax, dword [ebp - 4]
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x42ac4c
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xc504]
cmp eax, dword [ebx + 0xc500]
jge 0x42ad93
lea edx, [eax + eax*2]
mov edi, ebx
shl edx, 4
add edx, eax
lea edx, [eax + edx*4]
shl edx, 4
add edx, ebx
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 4]
mov esi, ecx
mov ecx, pe_nt_image_headers32
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
lea edi, [ebx + 0x400]
mov ecx, pe_nt_image_headers32
lea esi, [eax + 0x400]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
mov dl, byte [eax + 0xc4c]
lea eax, [ebx + 0x800]
mov byte [ebx + 0xc4c], dl
mov edx, dword [ebp - 4]
lea edi, [eax + 0x3c]
add edx, 0x800
mov cx, word [edx]
lea esi, [edx + 0x3c]
mov word [eax], cx
mov cl, byte [edx + 2]
mov byte [eax + 2], cl
mov cx, word [edx + 4]
mov word [eax + 4], cx
mov cx, word [edx + 6]
mov word [eax + 6], cx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edx + 0xc]
mov dword [eax + 0xc], ecx
mov cl, byte [edx + 0x10]
mov byte [eax + 0x10], cl
mov ecx, dword [edx + 0x14]
mov dword [eax + 0x14], ecx
mov ecx, dword [edx + 0x18]
mov dword [eax + 0x18], ecx
mov cl, byte [edx + 0x1c]
mov byte [eax + 0x1c], cl
mov cl, byte [edx + 0x1d]
mov byte [eax + 0x1d], cl
mov cx, word [edx + 0x1e]
mov word [eax + 0x1e], cx
mov ecx, dword [edx + 0x20]
mov dword [eax + 0x20], ecx
mov ecx, dword [edx + 0x24]
mov dword [eax + 0x24], ecx
mov ecx, dword [edx + 0x28]
mov dword [eax + 0x28], ecx
mov ecx, pe_nt_image_headers32
rep movsd dword es:[edi], dword [esi]
lea ecx, [edx + 0x2c]
mov dword [ebp - 8], ecx
lea ecx, [eax + 0x2c]
mov esi, dword [ebp - 8]
mov esi, dword [esi]
mov dword [ecx], esi
mov esi, dword [ebp - 8]
mov esi, dword [esi + 4]
mov dword [ecx + 4], esi
lea ecx, [edx + 0x34]
lea edx, [eax + 0x34]
lea eax, [ebx + 0xc3c]
mov esi, dword [ecx]
mov dword [edx], esi
mov ecx, dword [ecx + 4]
mov dword [edx + 4], ecx
mov edx, dword [ebp - 4]
add edx, 0xc3c
mov ecx, dword [edx]
mov dword [eax], ecx
mov edx, dword [edx + 4]
mov dword [eax + 4], edx
lea eax, [ebx + 0xc44]
mov edx, dword [ebp - 4]
add edx, 0xc44
mov ecx, dword [edx]
mov dword [eax], ecx
mov edx, dword [edx + 4]
mov dword [eax + 4], edx
mov dword [ebx + 0xc500], 1
jmp 0x42ad9b
xor eax, eax
mov dword [ebx + 0xc500], eax
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x4336b4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
xor edx, dword [eax + 0x100]
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
xor edx, dword [eax + 0x104]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ecx + 8]
mov ebx, dword [edx + 0xc]
xor ecx, dword [eax + 0x108]
xor ebx, dword [eax + 0x10c]
xor edx, edx
mov dword [ebp - 0x14], edx
mov edx, ebx
mov esi, ebx
shr esi, 0x15
shl edx, 0xb
or edx, esi
mov esi, dword [ebp - 0x14]
and esi, 3
add edx, ecx
xor edx, dword [eax + esi*4 + 0x100]
mov edi, edx
mov esi, edx
shr edi, 8
and esi, 0xff
and edi, 0xff
movzx esi, byte [eax + esi]
movzx edi, byte [eax + edi]
shl edi, 8
or esi, edi
mov edi, edx
shr edi, 0x10
shr edx, 0x18
and edi, 0xff
and edx, 0xff
movzx edi, byte [eax + edi]
movzx edx, byte [eax + edx]
shl edi, 0x10
shl edx, 0x18
or esi, edi
or esi, edx
mov edx, ecx
xor esi, dword [ebp - 4]
mov dword [ebp - 0xc], esi
mov esi, ecx
shr esi, 0xf
shl edx, 0x11
or edx, esi
mov esi, dword [ebp - 0x14]
and esi, 3
xor edx, ebx
add edx, dword [eax + esi*4 + 0x100]
mov edi, edx
mov esi, edx
shr edi, 8
and esi, 0xff
and edi, 0xff
movzx esi, byte [eax + esi]
movzx edi, byte [eax + edi]
shl edi, 8
or esi, edi
mov edi, edx
shr edi, 0x10
shr edx, 0x18
and edi, 0xff
and edx, 0xff
movzx edi, byte [eax + edi]
movzx edx, byte [eax + edx]
shl edi, 0x10
shl edx, 0x18
or esi, edi
or esi, edx
xor esi, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ebx
mov edx, esi
mov ebx, edx
mov ecx, dword [ebp - 0xc]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x20
jl 0x433700
mov edx, dword [ebp - 0x10]
xor ecx, dword [eax + 0x100]
mov dword [edx], ecx
xor ebx, dword [eax + 0x104]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], ebx
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
xor edx, dword [eax + 0x108]
mov dword [ecx + 8], edx
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, dword [eax + 0x10c]
mov dword [ecx + 0xc], edx
mov edx, dword [ebp + 0xc]
push edx
push eax
call fcn.004339bc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x433830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx]
xor ecx, dword [ebx + 0x100]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 4]
xor ecx, dword [ebx + 0x104]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x10]
mov esi, dword [edx + 8]
mov edx, dword [ebp - 0x10]
xor esi, dword [ebx + 0x108]
mov edi, dword [edx + 0xc]
xor edi, dword [ebx + 0x10c]
push 0x10
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00452dbc
add esp, 0xc
mov dword [ebp - 0x14], 0x1f
mov eax, edi
mov edx, edi
mov ecx, dword [ebp - 0x14]
shr edx, 0x15
and ecx, 3
shl eax, 0xb
or eax, edx
add eax, esi
xor eax, dword [ebx + ecx*4 + 0x100]
xor ecx, ecx
mov edx, eax
and edx, 0xff
mov cl, byte [ebx + edx]
mov edx, eax
shr edx, 8
and edx, 0xff
movzx edx, byte [ebx + edx]
shl edx, 8
or ecx, edx
mov edx, eax
shr edx, 0x10
shr eax, 0x18
and edx, 0xff
and eax, 0xff
movzx edx, byte [ebx + edx]
movzx eax, byte [ebx + eax]
shl edx, 0x10
shl eax, 0x18
or ecx, edx
or ecx, eax
mov eax, esi
xor ecx, dword [ebp - 4]
mov edx, esi
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x14]
shr edx, 0xf
and ecx, 3
shl eax, 0x11
or eax, edx
xor eax, edi
add eax, dword [ebx + ecx*4 + 0x100]
xor ecx, ecx
mov edx, eax
and edx, 0xff
mov cl, byte [ebx + edx]
mov edx, eax
shr edx, 8
and edx, 0xff
movzx edx, byte [ebx + edx]
shl edx, 8
or ecx, edx
mov edx, eax
shr edx, 0x10
shr eax, 0x18
and edx, 0xff
and eax, 0xff
movzx edx, byte [ebx + edx]
movzx eax, byte [ebx + eax]
shl edx, 0x10
shl eax, 0x18
or ecx, edx
or ecx, eax
xor ecx, dword [ebp - 8]
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
mov eax, ecx
mov edi, eax
mov esi, dword [ebp - 0xc]
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jge 0x43388d
mov eax, dword [ebp - 0x10]
xor esi, dword [ebx + 0x100]
mov dword [eax], esi
xor edi, dword [ebx + 0x104]
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, dword [ebx + 0x108]
mov dword [eax + 8], ecx
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, dword [ebx + 0x10c]
mov dword [ecx + 0xc], edx
push eax
push ebx
call fcn.004339bc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4339bc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov edx, dword [ebp + 8]
mov ebx, 0x4752bc
xor ecx, ecx
mov eax, dword [ebp + 0xc]
movzx esi, byte [eax]
mov esi, dword [ebx + esi*4]
xor dword [edx + 0x100], esi
movzx esi, byte [eax + 1]
mov esi, dword [ebx + esi*4]
xor dword [edx + 0x104], esi
movzx esi, byte [eax + 2]
mov esi, dword [ebx + esi*4]
xor dword [edx + 0x108], esi
movzx esi, byte [eax + 3]
mov esi, dword [ebx + esi*4]
xor dword [edx + 0x10c], esi
add ecx, 4
add eax, 4
cmp ecx, 0x10
jl 0x4339ce
pop esi
pop ebx
pop ebp
ret 8
Function at 0x433e1c
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor ecx, ecx
mov ebx, 0x4752bc
mov eax, ecx
xor edx, edx
test al, 1
je 0x433e39
mov esi, eax
shr esi, 1
xor esi, 0xedb88320
jmp 0x433e3d
mov esi, eax
shr esi, 1
mov eax, esi
inc edx
cmp edx, 8
jl 0x433e29
mov dword [ebx], eax
inc ecx
add ebx, 4
cmp ecx, 0x100
jl 0x433e25
pop esi
pop ebx
ret

Function at 0x433ec0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, 0x4752bc
push edi
cmp dword [esi + 4], 0
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
jne 0x433edd
call fcn.00433e1c
cmp dword [ebp + 0x10], 7
jbe 0x433f6d
xor ebx, dword [edi]
xor eax, eax
mov al, bl
xor ecx, ecx
shr ebx, 8
mov edx, dword [esi + eax*4]
xor edx, ebx
mov ebx, edx
xor edx, edx
mov cl, bl
shr ebx, 8
mov eax, dword [esi + ecx*4]
xor eax, ebx
mov ebx, eax
xor eax, eax
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
mov ebx, ecx
xor ecx, ecx
mov al, bl
shr ebx, 8
mov edx, dword [esi + eax*4]
xor edx, ebx
mov ebx, edx
xor edx, edx
xor ebx, dword [edi + 4]
add edi, 8
mov cl, bl
shr ebx, 8
mov eax, dword [esi + ecx*4]
xor eax, ebx
mov ebx, eax
xor eax, eax
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
mov ebx, ecx
xor ecx, ecx
mov al, bl
shr ebx, 8
mov edx, dword [esi + eax*4]
xor edx, ebx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov eax, dword [esi + ecx*4]
sub dword [ebp + 0x10], 8
xor eax, ebx
cmp dword [ebp + 0x10], 7
mov ebx, eax
ja 0x433ee7
xor edx, edx
mov eax, edi
mov dword [ebp - 4], edx
jmp 0x433f8c
mov edx, ebx
xor ecx, ecx
xor dl, byte [eax]
mov cl, dl
shr ebx, 8
mov edx, dword [esi + ecx*4]
xor edx, ebx
mov ebx, edx
inc dword [ebp - 4]
inc eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jb 0x433f76
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x437d78
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
cmp byte [esi], 0
jne 0x437d96
xor eax, eax
jmp 0x437eee
cmp dword [esi + 0x400], 0
je 0x437dbe
lea edx, [ebp - 0x148]
push edx
push esi
call sub.KERNEL32.dll_FindFirstFileA
mov dword [esi + 0x404], eax
cmp eax, 0xffffffff
jne 0x437ddc
xor eax, eax
jmp 0x437eee
lea edx, [ebp - 0x148]
push edx
mov ecx, dword [esi + 0x404]
push ecx
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x437ddc
xor eax, eax
jmp 0x437eee
xor eax, eax
push esi
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, ebx
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
push ebx
call fcn.0043c628
push esi
mov esi, eax
xor eax, eax
lea edi, [ebp - 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
add esp, 0xfffffff8
mov eax, dword [ebp - 0x128]
push eax
mov edx, dword [ebp - 0x12c]
push edx
lea ecx, [esp + 8]
push ecx
call fcn.004262e0
lea eax, [ebx + 0x400]
push eax
lea edx, [ebp - 8]
push edx
call fcn.004262f8
mov ecx, dword [ebp - 0x148]
mov dword [ebx + 0x408], ecx
lea eax, [ebp - 0x134]
push eax
call fcn.00425bac
mov dword [ebx + 0x40c], eax
mov edx, dword [ebx + 0x408]
push edx
call fcn.00425cdc
mov dword [ebx + 0x410], eax
xor ecx, ecx
mov dword [esi + 0x400], ecx
push ebx
call fcn.0043c628
mov edi, eax
mov edx, 0x461fc3
mov eax, edi
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x437eba
test cl, cl
je 0x437ee1
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x437eba
add eax, 2
add edx, 2
test cl, cl
jne 0x437e9e
je 0x437ee1
mov eax, edi
mov edx, 0x461fc5
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x437eec
test cl, cl
je 0x437edf
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x437eec
add eax, 2
add edx, 2
test cl, cl
jne 0x437ec3
jne 0x437eec
push 0
push ebx
push esi
call fcn.00437d78
jmp 0x437eee
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4388f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dx, word [eax]
cmp dx, word [ebx]
jae 0x438974
mov ax, 1
mov edx, dword [ebp + 8]
lea ecx, [edx + 2]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x10]
lea ecx, [edx + 2]
lea edx, [ebx + 2]
jmp 0x43893a
mov si, word [edx]
mov edi, dword [ebp - 4]
xor si, word [ecx]
inc eax
mov word [edi], si
add ecx, 2
add dword [ebp - 4], 2
add edx, 2
mov esi, dword [ebp + 0x10]
cmp ax, word [esi]
jbe 0x438923
mov esi, dword [ebp + 0x10]
movzx ecx, word [ebx]
movzx esi, word [esi]
movzx edx, ax
sub ecx, esi
add edx, edx
add ecx, ecx
push ecx
mov ecx, edx
add ecx, ebx
push ecx
add edx, dword [ebp + 8]
push edx
call fcn.00452dbc
add esp, 0xc
mov eax, dword [ebp + 8]
mov dx, word [ebx]
mov word [eax], dx
jmp 0x438a53
mov eax, dword [ebp + 0x10]
mov cx, word [eax]
cmp cx, word [ebx]
jbe 0x4389e6
mov ax, 1
mov edx, dword [ebp + 8]
lea ecx, [edx + 2]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0x10]
lea ecx, [edx + 2]
lea edx, [ebx + 2]
jmp 0x4389ae
mov si, word [edx]
mov edi, dword [ebp - 8]
xor si, word [ecx]
add ecx, 2
mov word [edi], si
inc eax
add dword [ebp - 8], 2
add edx, 2
cmp ax, word [ebx]
jbe 0x438997
mov ecx, dword [ebp + 0x10]
movzx ebx, word [ebx]
movzx ecx, word [ecx]
movzx edx, ax
sub ecx, ebx
add edx, edx
add ecx, ecx
push ecx
mov ecx, edx
add ecx, dword [ebp + 0x10]
push ecx
add edx, dword [ebp + 8]
push edx
call fcn.00452dbc
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
add esp, 0xc
mov ax, word [eax]
mov word [edx], ax
jmp 0x438a53
mov ax, word [ebx]
movzx edx, ax
mov ecx, dword [ebp + 0x10]
test ax, ax
lea ecx, [ecx + edx*2]
movzx edx, ax
lea edx, [ebx + edx*2]
jbe 0x438a11
mov si, word [edx]
xor si, word [ecx]
jne 0x438a11
dec eax
add ecx, 0xfffffffe
add edx, 0xfffffffe
test ax, ax
ja 0x4389fd
mov edx, dword [ebp + 8]
movzx ecx, ax
mov word [edx], ax
test ax, ax
mov edx, dword [ebp + 8]
lea ecx, [edx + ecx*2]
movzx edx, ax
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 0x10]
lea ecx, [ecx + edx*2]
movzx edx, ax
lea edx, [ebx + edx*2]
jbe 0x438a53
mov bx, word [edx]
mov esi, dword [ebp - 0xc]
xor bx, word [ecx]
add ecx, 0xfffffffe
mov word [esi], bx
add edx, 0xfffffffe
add dword [ebp - 0xc], 0xfffffffe
dec eax
test ax, ax
ja 0x438a37
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x438a5c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov edx, dword [ebp + 8]
movzx ecx, word [edx]
lea eax, [edx + ecx*2]
cmp ecx, 0x11
jle 0x438a8a
mov bx, word [eax]
xor word [eax - 0x22], bx
dec ecx
mov bx, word [eax]
xor word [eax - 0x1c], bx
mov word [eax], 0
add eax, 0xfffffffe
cmp ecx, 0x11
jg 0x438a6e
cmp word [edx], 0x11
jbe 0x438aac
mov word [edx], 0x11
jmp 0x438a9a
dec word [edx]
mov ax, word [edx]
test ax, ax
je 0x438aac
movzx ecx, ax
cmp word [edx + ecx*2], 0
je 0x438a97
pop ebx
pop ebp
ret 4
Function at 0x438ab4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
cmp word [eax], 0
je 0x438bc3
mov edx, dword [ebp + 0x10]
cmp word [edx], 0
je 0x438bc3
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x10]
movzx eax, word [ecx]
test eax, eax
lea ecx, [ebp + eax*2 - 0x34]
lea edx, [edx + eax*2]
je 0x438b06
movzx ebx, word [edx]
mov esi, dword [0x461b18]
add edx, 0xfffffffe
dec eax
mov bx, word [esi + ebx*2]
mov word [ecx], bx
add ecx, 0xfffffffe
test eax, eax
jne 0x438aeb
mov eax, dword [ebp + 8]
push eax
call fcn.004388bc
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
movzx ecx, word [edx]
test ecx, ecx
lea edx, [eax + ecx*2]
mov dword [ebp - 0xc], edx
je 0x438ba1
mov eax, dword [ebp - 0xc]
movzx edx, word [eax]
mov eax, dword [0x461b18]
mov dx, word [eax + edx*2]
mov word [ebp - 4], dx
cmp dx, 0x7fff
je 0x438b98
mov eax, dword [ebp + 0x10]
movzx eax, word [eax]
lea edx, [ebp + eax*2 - 0x34]
test eax, eax
je 0x438b98
mov bx, word [edx]
mov word [ebp - 6], bx
cmp bx, 0x7fff
je 0x438b90
mov bx, word [ebp - 4]
add bx, word [ebp - 6]
mov word [ebp - 2], bx
cmp bx, 0x7fff
jb 0x438b77
movzx ebx, word [ebp - 2]
sub ebx, 0x7fff
jmp 0x438b7b
movzx ebx, word [ebp - 2]
mov esi, dword [0x461b14]
mov edi, dword [ebp + 8]
mov bx, word [esi + ebx*2]
lea esi, [eax + ecx]
xor word [edi + esi*2 - 2], bx
dec eax
add edx, 0xfffffffe
test eax, eax
jne 0x438b4a
dec ecx
add dword [ebp - 0xc], 0xfffffffe
test ecx, ecx
jne 0x438b22
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dx, word [eax]
mov eax, dword [ebp + 8]
add dx, word [ecx]
add dx, 0xffff
mov word [eax], dx
mov edx, dword [ebp + 8]
push edx
call fcn.00438a5c
jmp 0x438bcb
mov ecx, dword [ebp + 8]
mov word [ecx], 0
push 0x26
push 0
lea eax, [ebp - 0x34]
push eax
call fcn.00452e2c
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x438d54
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, dword [0x461b18]
movzx ebx, word [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov bx, word [esi + ebx*2]
mov ecx, dword [ebp + 0x14]
mov word [ebp - 2], bx
movzx ebx, dx
add ebx, ebx
add ebx, eax
jmp 0x438d8d
inc word [eax]
movzx esi, word [eax]
mov word [eax + esi*2], 0
movzx esi, dx
movzx edi, word [ecx]
add esi, edi
movzx edi, word [eax]
cmp esi, edi
jg 0x438d81
mov dx, word [ecx]
movzx esi, dx
test dx, dx
lea ebx, [ebx + esi*2]
mov dword [ebp - 8], ebx
movzx ebx, dx
lea ebx, [ecx + ebx*2]
je 0x438e02
movzx ecx, word [ebx]
mov esi, dword [0x461b18]
mov cx, word [esi + ecx*2]
cmp cx, 0x7fff
je 0x438df0
add cx, word [ebp - 2]
cmp cx, 0x7fff
jb 0x438ddd
movzx esi, cx
sub esi, 0x7fff
jmp 0x438de0
movzx esi, cx
mov ecx, dword [0x461b14]
mov cx, word [ecx + esi*2]
mov esi, dword [ebp - 8]
xor word [esi], cx
add dword [ebp - 8], 0xfffffffe
dec edx
add ebx, 0xfffffffe
test dx, dx
jne 0x438db3
jmp 0x438e02
dec word [eax]
mov dx, word [eax]
test dx, dx
je 0x438e14
movzx ecx, dx
cmp word [eax + ecx*2], 0
je 0x438dff
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0x10
Function at 0x43b28c
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], edx
mov dword [eax + 0x14], edx
pop ebp
ret 4
Function at 0x440980
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
cmp dword [0x4620dc], 0
je 0x440993
mov eax, 1
pop esi
pop ebx
ret
push 0
push 1
push 0
call sub.KERNEL32.dll_CreateMutexA
mov ebx, eax
test ebx, ebx
jne 0x4409a9
xor eax, eax
pop esi
pop ebx
ret
push ebx
push 0x4620e0
call sub.KERNEL32.dll_InterlockedExchange
mov esi, eax
test esi, esi
je 0x4409e1
push esi
push 0x4620e0
call sub.KERNEL32.dll_InterlockedExchange
push ebx
call sub.KERNEL32.dll_CloseHandle
push 0xffffffffffffffff
push esi
call sub.KERNEL32.dll_WaitForSingleObject
push esi
call sub.KERNEL32.dll_ReleaseMutex
mov eax, dword [0x4620dc]
pop esi
pop ebx
ret
push 0x4757fc
call sub.KERNEL32.dll_InitializeCriticalSection
push 0x4757e4
call sub.KERNEL32.dll_InitializeCriticalSection
push 0x124
push 0
push 0x4756c0
call fcn.00452e2c
add esp, 0xc
call fcn.00441154
mov dword [0x4620dc], 1
push ebx
call sub.KERNEL32.dll_ReleaseMutex
mov eax, 1
pop esi
pop ebx
ret
Function at 0x440dac
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], 1
cmp dword [0x4620dc], 0
jne 0x440ddd
call fcn.00440980
test eax, eax
jne 0x440ddd
xor eax, eax
jmp 0x440ff7
test edi, edi
je 0x440eb3
cmp byte [edi], 0
je 0x440eb3
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
cmp ebx, 0x104
jbe 0x440e05
xor eax, eax
jmp 0x440ff7
xor eax, eax
lea esi, [ebp - 0x114]
mov edx, edi
cmp ebx, eax
jb 0x440e28
cmp byte [edx], 0x2f
jne 0x440e1d
mov byte [esi], 0x5c
jmp 0x440e21
mov cl, byte [edx]
mov byte [esi], cl
inc eax
inc esi
inc edx
cmp ebx, eax
jae 0x440e13
cmp byte [ebp - 0x114], 0x5c
jne 0x440e8c
cmp byte [ebp - 0x113], 0x5c
jne 0x440e8c
xor ecx, ecx
mov eax, 2
lea edx, [ebp - 0x112]
cmp ebx, eax
jbe 0x440e65
cmp byte [edx], 0x5c
jne 0x440e5f
inc ecx
cmp ecx, 2
jne 0x440e5f
inc eax
inc edx
mov byte [edx], 0
mov ebx, eax
jmp 0x440e65
inc eax
inc edx
cmp ebx, eax
ja 0x440e4b
cmp ecx, 1
jne 0x440eb3
cmp byte [ebp + ebx - 0x114], 0x5c
je 0x440eb3
mov al, byte [ebp - 0x114]
mov byte [ebp + ebx - 0x114], al
mov byte [ebp + ebx - 0x113], 0
inc ebx
jmp 0x440eb3
cmp byte [ebp - 0x113], 0x3a
jne 0x440eaa
mov byte [ebp - 0x112], 0x5c
mov byte [ebp - 0x111], 0
mov ebx, 3
jmp 0x440eb3
mov byte [ebp - 0x114], 0
xor ebx, ebx
push 0x4757e4
call sub.KERNEL32.dll_EnterCriticalSection
cmp dword [0x4756c0], 0
je 0x440edf
lea eax, [ebp - 0x114]
push eax
push 0x4756dc
call sub.KERNEL32.dll_lstrcmpiA
test eax, eax
je 0x440fad
xor edx, edx
mov dword [ebp - 0xc], edx
xor esi, esi
push 0x4757e4
call sub.KERNEL32.dll_LeaveCriticalSection
push 0
lea eax, [ebp - 8]
push 0
push eax
push 0
push 0
push 0
push 0
cmp byte [ebp - 0x114], 0
jne 0x440f0d
xor edx, edx
jmp 0x440f13
lea edx, [ebp - 0x114]
push edx
call sub.KERNEL32.dll_GetVolumeInformationA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x440f61
test byte [ebp - 8], 8
je 0x440f61
mov eax, dword [ebp + 0x10]
cmp dword [eax + 8], 0
je 0x440f61
cmp byte [ebp - 0x114], 0
jne 0x440f3e
xor ecx, ecx
jmp 0x440f44
lea ecx, [ebp - 0x114]
push ecx
call sub.KERNEL32.dll_GetDriveTypeA
cmp eax, 4
jne 0x440f61
mov esi, 1
lea eax, [ebp - 0xc]
push eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.00440ccc
push 0x4757e4
call sub.KERNEL32.dll_EnterCriticalSection
cmp dword [ebp - 4], 0
je 0x440fad
inc ebx
lea eax, [ebp - 0x114]
push ebx
push eax
push 0x4756dc
call sub.KERNEL32.dll_lstrcpynA
xor edx, edx
mov ecx, dword [ebp - 8]
mov dword [0x4756c4], edx
mov dword [0x4756cc], ecx
mov dword [0x4756d0], esi
mov eax, dword [ebp - 0xc]
mov dword [0x4756d4], eax
mov dword [0x4756c0], 1
cmp dword [ebp - 4], 0
je 0x440fe3
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
mov ecx, dword [edx + 8]
mov dword [0x4756c8], ecx
mov edx, dword [eax + 0x18]
push 0x124
push 0x4756c0
mov dword [0x4756d8], edx
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00452dbc
add esp, 0xc
jmp 0x440fea
xor eax, eax
mov dword [0x4756c0], eax
push 0x4757e4
call sub.KERNEL32.dll_LeaveCriticalSection
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc