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

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
je 0x4dcef7
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4dce24
dec eax
je 0x4dce19
dec eax
jne 0x4dce24
push 0xfffffffffffffff4
jmp 0x4dce1b
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
xor edi, edi
cmp dword [esi + 0xc], edi
mov dword [ebp - 4], edi
je 0x4dce73
cmp dword [ebp + 0xc], edi
jbe 0x4dce8e
mov ecx, dword [ebp + 0xc]
sub ecx, edi
mov eax, 0x4000
cmp ecx, eax
jae 0x4dce4b
mov eax, ecx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
je 0x4dce8e
add edi, 0x4000
cmp edi, dword [ebp + 0xc]
jb 0x4dce3b
jmp 0x4dce8a
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
test al, al
jne 0x4dcef1
cmp byte [esi + 0x14], 0
je 0x4dcef1
cmp dword [esi + 0xc], 0
jne 0x4dcef1
push 0
lea eax, [esi + 0x17]
mov edi, 0x51d90c
push eax
mov ecx, edi
call fcn.004e569b
test al, al
je 0x4dcee4
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x4dce2c
test eax, eax
jbe 0x4dce2c
push 0
mov ecx, esi
call fcn.004dc850
mov ecx, dword [ebp - 4]
xor edi, edi
sub eax, ecx
sbb edx, edi
push edx
push eax
mov ecx, esi
call fcn.004dcd9a
jmp 0x4dce2c
lea eax, [esi + 0x17]
push eax
push 0
mov ecx, edi
call fcn.004e572f
pop edi
mov byte [esi + 8], 1
pop ebx
pop esi
leave
ret 8

Function at 0x4e5741
Capabilities:
Get file attributes

Disassembly:
call fcn.004e5cac
test eax, eax
je 0x4e5761
mov eax, dword [esp + 8]
test eax, eax
je 0x4e5761
cmp word [eax], 0
je 0x4e5761
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x4e576b
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret

Function at 0x4e578e
Capabilities:
Get file attributes

Disassembly:
call fcn.004e5cac
test eax, eax
je 0x4e57ad
mov eax, dword [esp + 8]
test eax, eax
je 0x4e57ad
cmp word [eax], 0
je 0x4e57ad
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
ret
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret

Function at 0x4e57b8
Capabilities:
Set file attributes

Disassembly:
call fcn.004e5cac
test eax, eax
je 0x4e57dc
mov eax, dword [esp + 8]
test eax, eax
je 0x4e57dc
cmp word [eax], 0
je 0x4e57dc
push dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x4e57ea
push dword [esp + 0xc]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
ret
Function at 0x4e58fe
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.004e5cac
test eax, eax
mov esi, dword [ebp + 0xc]
je 0x4e5923
test esi, esi
je 0x4e5923
cmp word [esi], 0
je 0x4e5923
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4e592e
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4e594b
cmp byte [ebp + 0x10], 0
je 0x4e5947
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.004e57b8
add esp, 0xc
xor eax, eax
jmp 0x4e5963
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4e5960
cmp eax, 3
je 0x4e5960
xor eax, eax
inc eax
jmp 0x4e5963
push 2
pop eax
pop esi
pop ebp
ret
Function at 0x4e5d11
Capabilities:
Move file

Disassembly:
mov eax, 0x4edbaf
call fcn.004ebd20
mov eax, 0x24cc
call fcn.004ebd80
mov eax, dword [0x517ad4]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor eax, ebp
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x24d0]
mov dword [ebp - 0x10], eax
call fcn.004d9d7d
xor ebx, ebx
push ebx
lea eax, [ebp - 0x24d0]
push eax
push esi
push edi
call fcn.004e64a3
add esp, 0x10
test al, al
je 0x4e5ef6
cmp byte [ebp - 0x24d0], bl
je 0x4e5ef6
cmp byte [ebp - 0x1850], bl
je 0x4e5ef6
lea eax, [ebp - 0x1850]
push eax
lea eax, [ebp - 0x24d0]
push eax
call fcn.004df83c
pop ecx
push eax
call fcn.004dc247
test eax, eax
pop ecx
pop ecx
je 0x4e5ef6
lea eax, [ebp - 0x1850]
push eax
push edi
call fcn.004df83c
pop ecx
push eax
call fcn.004dc247
test eax, eax
pop ecx
pop ecx
jne 0x4e5ef6
mov dword [ebp - 0x24d8], ebx
mov esi, 0x400
push esi
lea eax, [ebp - 0x410]
push edi
push eax
call fcn.004dc1de
add esp, 0xc
push dword [ebp - 0x24d8]
lea eax, [ebp - 0x410]
push 0x4f7da8
push eax
call fcn.004df83c
pop ecx
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x410]
push ebx
push eax
call fcn.004e5741
add esp, 0x14
test al, al
je 0x4e5e1b
add dword [ebp - 0x24d8], 0x7b
cmp dword [ebp - 0x24d8], 0x2710
jl 0x4e5dc4
lea eax, [ebp - 0x410]
push ebx
push eax
call fcn.004e5741
test al, al
pop ecx
pop ecx
jne 0x4e5ef6
push esi
lea eax, [ebp - 0x810]
push edi
push eax
call fcn.004dc1de
lea eax, [ebp - 0x24d0]
push eax
call fcn.004df83c
add esp, 0x10
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.004df83c
pop ecx
push eax
call sub.MSVCRT.dll_strcpy
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileA]
pop ecx
pop ecx
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x810]
push eax
call esi
test eax, eax
je 0x4e5ef6
lea ecx, [ebp - 0x1430]
call fcn.004dc737
push ebx
push edi
mov dword [ebp - 4], ebx
mov byte [ebp - 0x24d1], bl
call fcn.004e5741
test al, al
pop ecx
pop ecx
jne 0x4e5eb5
push 1
push ebx
push edi
lea ecx, [ebp - 0x1430]
call fcn.004dcb8a
mov byte [ebp - 0x24d1], al
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x410]
push eax
call esi
cmp byte [ebp - 0x24d1], bl
je 0x4e5ee3
lea ecx, [ebp - 0x1430]
call fcn.004dc7a0
lea ecx, [ebp - 0x1430]
call fcn.004dc81e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1430]
call fcn.004dca4a
mov al, 1
jmp 0x4e5ef8
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.004ebd70
leave
ret
Function at 0x4e6ec6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x517ad4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x20
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x2c], ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push ebx
push esi
xor edx, edx
xor ecx, ecx
xor eax, eax
push edi
cmp edx, 0xa
jg 0x4e6fdb
cmp eax, 4
jge 0x4e6f22
lea ebx, [ebp + eax*4 - 0x24]
cmp ecx, 4
jge 0x4e6f25
mov edi, dword [ebp - 0x2c]
lea esi, [ecx + edx*4]
lea edi, [edi + esi*4 + 0x14]
mov esi, ebx
inc eax
add ebx, 4
inc ecx
cmp eax, 4
movsd dword es:[edi], dword [esi]
jl 0x4e6f06
cmp ecx, 4
jne 0x4e6f2a
inc edx
xor ecx, ecx
cmp eax, 4
jl 0x4e6ef4
cmp edx, 0xa
jg 0x4e6fdb
mov dword [ebp - 0x28], 0x51dd28
movzx esi, byte [ebp - 0x17]
mov al, byte [ebp - 0x24]
xor al, byte [esi + 0x520248]
movzx esi, byte [ebp - 0x16]
mov bl, byte [esi + 0x520248]
movzx esi, byte [ebp - 0x15]
xor byte [ebp - 0x23], bl
mov bl, byte [esi + 0x520248]
movzx esi, byte [ebp - 0x18]
xor byte [ebp - 0x22], bl
mov bl, byte [esi + 0x520248]
mov esi, dword [ebp - 0x28]
xor al, byte [esi]
xor byte [ebp - 0x21], bl
inc dword [ebp - 0x28]
push 3
mov byte [ebp - 0x24], al
lea eax, [ebp - 0x20]
pop edi
xor esi, esi
mov bl, byte [eax + esi - 4]
xor byte [eax + esi], bl
inc esi
cmp esi, 4
jl 0x4e6f86
add eax, 4
dec edi
jne 0x4e6f84
xor ebx, ebx
cmp edx, 0xa
jg 0x4e6fdb
cmp ebx, 4
jge 0x4e6fc5
lea eax, [ebp + ebx*4 - 0x24]
cmp ecx, 4
jge 0x4e6fc8
mov edi, dword [ebp - 0x2c]
lea esi, [ecx + edx*4]
lea edi, [edi + esi*4 + 0x14]
mov esi, eax
inc ebx
add eax, 4
inc ecx
cmp ebx, 4
movsd dword es:[edi], dword [esi]
jl 0x4e6fa9
cmp ecx, 4
jne 0x4e6fcd
inc edx
xor ecx, ecx
cmp ebx, 4
jl 0x4e6f9b
cmp edx, 0xa
jle 0x4e6f3f
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ebd70
leave
ret 4

Function at 0x4e6fec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x517ad4]
xor eax, ebp
push ebx
mov dword [ebp - 4], eax
push esi
mov eax, ecx
push edi
lea edi, [eax + 0x24]
mov dword [ebp - 0x18], 9
xor eax, eax
lea esi, [ebp + eax - 0x14]
lea ecx, [edi + 2]
mov dword [ebp - 0x1c], 4
movzx edx, byte [ecx + 1]
movzx ebx, byte [ecx - 1]
mov dl, byte [eax + edx*4 + 0x51ea48]
xor dl, byte [eax + ebx*4 + 0x51f248]
movzx ebx, byte [ecx - 2]
xor dl, byte [eax + ebx*4 + 0x520748]
movzx ebx, byte [ecx]
xor dl, byte [eax + ebx*4 + 0x51e648]
add ecx, 4
mov byte [esi], dl
add esi, 4
dec dword [ebp - 0x1c]
jne 0x4e701b
inc eax
cmp eax, 4
jl 0x4e700d
push 0x10
lea eax, [ebp - 0x14]
push eax
push edi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add edi, 0x10
dec dword [ebp - 0x18]
jne 0x4e700b
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ebd70
leave
ret
Function at 0x4e77b5
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x520f54], 0
jne 0x4e77c3
call fcn.004e778b
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x4e77f0
test cl, 7
je 0x4e77f0
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x520f50]
dec esi
inc ecx
jmp 0x4e77d1
cmp esi, 8
jb 0x4e7874
mov edi, esi
shr edi, 3
xor eax, dword [ecx]
add ecx, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x520f50]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x520f50]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x520f50]
mov edx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x520f50]
xor eax, dword [ecx - 4]
shr edx, 8
xor eax, edx
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x520f50]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x520f50]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x520f50]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x520f50]
dec edi
jne 0x4e77fa
xor edx, edx
test esi, esi
jbe 0x4e7894
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x520f50]
inc edx
cmp edx, esi
jb 0x4e787b
pop ebx
pop edi
pop esi
ret

Function at 0x4e7c0a
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push 4
pop edx
inc eax
push esi
movzx esi, byte [eax - 1]
mov esi, dword [esi*4 + 0x520f50]
xor dword [ecx + 0x204], esi
movzx esi, byte [eax]
mov esi, dword [esi*4 + 0x520f50]
xor dword [ecx + 0x208], esi
movzx esi, byte [eax + 1]
mov esi, dword [esi*4 + 0x520f50]
xor dword [ecx + 0x20c], esi
movzx esi, byte [eax + 2]
mov esi, dword [esi*4 + 0x520f50]
xor dword [ecx + 0x210], esi
add eax, 4
dec edx
jne 0x4e7c13
pop esi
ret 4

Function at 0x4e7c60
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
mov esi, ecx
call sub.MSVCRT.dll_strlen
push eax
push edi
push 0xffffffffffffffff
call fcn.004e77b5
xor edx, edx
mov word [esi + 0x214], ax
shr eax, 0x10
mov word [esi + 0x216], ax
mov word [esi + 0x21a], dx
mov word [esi + 0x218], dx
mov byte [esi + 0x21e], dl
mov byte [esi + 0x21d], dl
mov byte [esi + 0x21c], dl
mov al, byte [edi]
add esp, 0x10
cmp al, dl
je 0x4e7d0f
push ebx
mov cl, byte [esi + 0x21e]
add byte [esi + 0x21c], al
xor byte [esi + 0x21d], al
add cl, al
mov bl, cl
shl cl, 1
shr bl, 7
or bl, cl
mov byte [esi + 0x21e], bl
mov bx, word [esi + 0x218]
movzx ecx, al
movzx ax, al
xor bx, ax
lea ecx, [ecx*4 + 0x520f50]
xor bx, word [ecx]
mov word [esi + 0x218], bx
mov cx, word [ecx + 2]
add cx, ax
add word [esi + 0x21a], cx
inc edi
mov al, byte [edi]
cmp al, dl
jne 0x4e7cb4
pop ebx
pop edi
pop esi
ret 4
Function at 0x4e7d94
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x4e7e3f
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, 0xff
add word [ecx + 0x214], 0x1234
xor edx, edx
mov dx, word [ecx + 0x214]
mov eax, edx
shr eax, 1
and eax, esi
mov ax, word [eax*4 + 0x520f50]
xor word [ecx + 0x216], ax
mov eax, edx
shr eax, 1
and eax, esi
mov ax, word [eax*4 + 0x520f52]
sub word [ecx + 0x218], ax
xor eax, eax
mov ax, word [ecx + 0x218]
xor eax, edx
xor edx, edx
mov dx, word [ecx + 0x21a]
mov word [ecx + 0x214], ax
mov eax, edx
shr dx, 1
shl eax, 0xf
or eax, edx
xor ax, word [ecx + 0x216]
mov edx, eax
shr ax, 1
shl edx, 0xf
or edx, eax
xor word [ecx + 0x214], dx
mov ax, word [ecx + 0x214]
mov word [ecx + 0x21a], dx
xor byte [edi], ah
inc edi
dec ebx
jne 0x4e7dac
pop edi
pop esi
pop ebx
ret 8

Function at 0x4e7e43
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov edx, dword [ecx + 0x204]
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
xor eax, edx
mov dword [ebp - 0x1c], edx
mov edx, dword [esi + 0xc]
xor edx, dword [ecx + 0x210]
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 0x208]
xor eax, dword [esi + 4]
push edi
mov edi, dword [ecx + 0x20c]
xor edi, dword [esi + 8]
and dword [ebp + 8], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
and eax, 3
mov ebx, dword [ecx + eax*4 + 0x204]
mov eax, edx
shl edx, 0xb
shr eax, 0x15
or eax, edx
add eax, edi
xor eax, ebx
mov dword [ebp - 4], eax
movzx edx, byte [ebp - 2]
movzx edx, byte [edx + ecx + 0x104]
mov dword [ebp - 0x18], ebx
mov ebx, eax
shr ebx, 0x18
mov dh, byte [ebx + ecx + 0x104]
movzx ebx, ah
movzx ebx, byte [ebx + ecx + 0x104]
shl edx, 8
or edx, ebx
shl edx, 8
and eax, 0xff
movzx eax, byte [eax + ecx + 0x104]
or edx, eax
xor edx, dword [ebp - 0xc]
mov eax, edi
mov dword [ebp - 0x14], edx
shr eax, 0xf
mov edx, edi
shl edx, 0x11
or eax, edx
xor eax, dword [ebp - 8]
mov dword [ebp - 0xc], edi
add eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 4], eax
movzx edx, byte [ebp - 2]
movzx edx, byte [edx + ecx + 0x104]
mov ebx, eax
shr ebx, 0x18
mov dh, byte [ebx + ecx + 0x104]
movzx ebx, ah
movzx ebx, byte [ebx + ecx + 0x104]
shl edx, 8
or edx, ebx
mov ebx, dword [ebp - 8]
and eax, 0xff
movzx eax, byte [eax + ecx + 0x104]
shl edx, 8
or edx, eax
xor edx, dword [ebp - 0x10]
inc dword [ebp + 8]
cmp dword [ebp + 8], 0x20
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], edx
jl 0x4e7e84
mov eax, dword [ebp - 0x1c]
xor eax, edi
mov dword [esi], eax
mov eax, dword [ecx + 0x208]
xor eax, edx
mov dword [esi + 4], eax
mov eax, dword [ecx + 0x20c]
xor eax, dword [ebp - 0xc]
push esi
mov dword [esi + 8], eax
mov eax, dword [ecx + 0x210]
xor eax, ebx
mov dword [esi + 0xc], eax
call fcn.004e7c0a
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4e7f8c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x517ad4]
push ebx
xor eax, ebp
push esi
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov ebx, dword [edi + 8]
mov esi, ecx
xor eax, dword [esi + 0x204]
xor ebx, dword [esi + 0x20c]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x208]
push 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0xc]
xor eax, dword [esi + 0x210]
push edi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x24], 0x1f
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
and eax, 3
mov ecx, dword [esi + eax*4 + 0x204]
mov eax, dword [ebp - 0x18]
shr eax, 0x15
mov dword [ebp - 0x2c], ecx
shl edx, 0xb
or eax, edx
add eax, ebx
xor eax, ecx
mov dword [ebp - 0x28], eax
movzx ecx, byte [ebp - 0x26]
movzx ecx, byte [ecx + esi + 0x104]
mov edx, eax
shr edx, 0x18
mov ch, byte [edx + esi + 0x104]
movzx edx, ah
movzx edx, byte [edx + esi + 0x104]
shl ecx, 8
or ecx, edx
shl ecx, 8
and eax, 0xff
movzx eax, byte [eax + esi + 0x104]
or ecx, eax
xor ecx, dword [ebp - 0x1c]
mov eax, ebx
mov dword [ebp - 0x30], ecx
shr eax, 0xf
mov ecx, ebx
shl ecx, 0x11
or eax, ecx
xor eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
add eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
movzx ecx, byte [ebp - 0x26]
movzx ecx, byte [ecx + esi + 0x104]
mov edx, eax
shr edx, 0x18
mov ch, byte [edx + esi + 0x104]
movzx edx, ah
movzx edx, byte [edx + esi + 0x104]
shl ecx, 8
or ecx, edx
and eax, 0xff
movzx eax, byte [eax + esi + 0x104]
shl ecx, 8
or ecx, eax
xor ecx, dword [ebp - 0x20]
dec dword [ebp - 0x24]
mov eax, ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], eax
jns 0x4e7fe6
mov ecx, dword [esi + 0x204]
xor ecx, ebx
mov dword [edi], ecx
mov ecx, dword [esi + 0x208]
xor ecx, eax
mov dword [edi + 4], ecx
mov eax, dword [esi + 0x20c]
xor eax, dword [ebp - 0x1c]
mov ecx, esi
mov dword [edi + 8], eax
mov eax, dword [esi + 0x210]
xor eax, dword [ebp - 0x20]
mov dword [edi + 0xc], eax
lea eax, [ebp - 0x14]
push eax
call fcn.004e7c0a
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ebd70
leave
ret 4
Function at 0x4eb9be
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret

Function at 0x4ec020
Capabilities:
Terminate process

Disassembly:
push 0x11c
push 0x4f81a0
call fcn.004ec188
mov eax, dword [0x517ad4]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x521640]
test eax, eax
je 0x4ec063
and dword [ebp - 4], 0
push ecx
push dword [ebp + 8]
call eax
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
jmp 0x4ec16d
mov eax, dword [ebp + 8]
dec eax
je 0x4ec07f
mov ebx, str.Unknown_security_failure_detected_
mov dword [ebp - 0x12c], str.A_security_error_of_unknown_cause_has_been_detected_which_has_ncorrupted_the_programs_internal_state.__The_program_cannot_safely_ncontinue_execution_and_must_now_be_terminated._n
mov edi, 0xd4
jmp 0x4ec093
mov ebx, str.Buffer_overrun_detected_
mov dword [ebp - 0x12c], str.A_buffer_overrun_has_been_detected_which_has_corrupted_the_programs_ninternal_state.__The_program_cannot_safely_continue_execution_and_must_nnow_be_terminated._n
mov edi, 0xb9
mov byte [ebp - 0x20], 0
push 0x104
lea eax, [ebp - 0x124]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ec0c2
push str._program_name_unknown_
lea eax, [ebp - 0x124]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0x124]
mov dword [ebp - 0x128], eax
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
add eax, 0xb
cmp eax, 0x3c
jbe 0x4ec109
lea eax, [ebp - 0x124]
push eax
call esi
lea ecx, [ebp - 0x124]
sub ecx, 0x31
add eax, ecx
mov dword [ebp - 0x128], eax
push 3
push 0x4f7fec
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp - 0x128]
call esi
lea eax, [eax + edi + 0xc]
add eax, 3
and eax, 0xfffffffc
call fcn.004ebd80
mov dword [ebp - 0x18], esp
mov edi, esp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, 0x4f7fe8
push ebx
push edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call esi
push str.Program:
push edi
call esi
push dword [ebp - 0x128]
push edi
call esi
push ebx
push edi
call esi
push dword [ebp - 0x12c]
push edi
call esi
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 3
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401120
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x418040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea edx, [ecx + 2]
push edi
mov edi, ecx
mov dword [ebp - 0x234], 0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401147
sub ecx, edx
sar ecx, 1
cmp ecx, 0x40
ja 0x40139d
mov ecx, 0x24
lea eax, [ebp - 0x230]
nop word [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x401170
cmp dword [0x418d28], 2
movups xmm0, xmmword [str.s__O_OURP]
mov ax, word [0x41608c]
mov dword [ebp - 0x230], 0x24
movups xmmword [ebp - 0x270], xmm0
mov dword [ebp - 0x21c], 4
movups xmm0, xmmword [0x416064]
mov word [ebp - 0x238], ax
movups xmmword [ebp - 0x260], xmm0
movups xmm0, xmmword [0x416074]
movups xmmword [ebp - 0x250], xmm0
movq xmm0, qword [0x416084]
movq qword [ebp - 0x240], xmm0
jl 0x401300
movaps xmm4, xmmword [0x416340]
movaps xmm3, xmmword [0x4163a0]
movaps xmm5, xmmword [0x416360]
movaps xmm6, xmmword [0x416380]
nop
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm6
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x270]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + ecx*2 - 0x270], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm6
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x268]
xorps xmm1, xmm0
movq qword [ebp + ecx*2 - 0x268], xmm1
add ecx, 8
cmp ecx, 0x18
jl 0x401200
cmp ecx, 0x1d
jge 0x401334
nop word [eax + eax]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax*8]
sub edx, eax
mov eax, ecx
shl edx, 3
sub eax, edx
add eax, 0x36
xor word [ebp + ecx*2 - 0x270], ax
inc ecx
cmp ecx, 0x1d
jl 0x401300
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00406a7f
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00406ae3
add esp, 0x18
lea eax, [ebp - 0x234]
push eax
push 0x416240
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.ole32.dll_CoGetObject]
mov ecx, eax
mov eax, dword [ebp - 0x234]
mov dword [esi], eax
mov eax, ecx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403735
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x80004005
pop edi
mov dword [esi], 0
xor ecx, ebp
pop esi
call fcn.00403735
mov esp, ebp
pop ebp
ret