joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4657fa
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4f2000]
push ebx
xor ebx, ebx
push edi
cmp eax, ebx
jne 0x465820
cmp dword [0x4f1ff8], ebx
jne 0x465820
push dword [ebp + 0x14]
push dword [ebp + 0x10]
jmp 0x4659df
mov ecx, dword [ebp + 0x10]
cmp ecx, 0xfffffff2
jne 0x46594b
mov edi, dword [ebp + 8]
cmp dword [edi + 0x6a0], ebx
je 0x46583e
xor eax, eax
jmp 0x4659f3
lea eax, [ebp - 8]
push esi
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push dword [ebp - 4]
mov esi, 0x4f1fd8
push dword [ebp - 8]
push esi
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x46589d
push dword [0x4f1ff8]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_KillTimer]
or dword [0x4dab58], 0xffffffff
or dword [0x4dab60], 0xffffffff
or dword [0x4dab5c], 0xffffffff
push ebx
push 1
mov dword [0x4f1ff8], ebx
push dword [ebp + 0xc]
push edi
call fcn.004643a7
add esp, 0x10
jmp 0x465943
cmp dword [0x4dab58], ebx
jne 0x4658ba
push dword [ebp - 4]
lea ebx, [edi + 8]
push dword [ebp - 8]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00464b91
jmp 0x4658d0
push dword [ebp - 4]
lea ebx, [edi + 0x354]
push dword [ebp - 8]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00464bcf
add esp, 0x14
cmp dword [0x4dab60], eax
mov dword [0x4dab5c], eax
je 0x46593e
lea edi, [ebp - 0x18]
lea eax, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
push ebx
movsd dword es:[edi], dword [esi]
call fcn.00464c0d
mov esi, dword [ebp + 0xc]
pop ecx
pop ecx
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x24]
neg eax
push eax
mov eax, dword [ebp - 0x28]
neg eax
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push esi
call dword [sym.imp.USER32.dll_GetWindowDC]
mov edi, eax
lea eax, [ebp - 0x18]
push 0xffffffffffffffff
push eax
push edi
push esi
push ebx
call fcn.00462e7a
add esp, 0x14
push edi
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x4dab5c]
mov dword [0x4dab60], eax
xor eax, eax
pop esi
jmp 0x4659f3
cmp ecx, 0xfffd
jne 0x465978
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_KillTimer]
push ebx
push 0x37
push 0xfffe
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x4f2000], eax
jmp 0x465837
cmp ecx, 0xfffe
jne 0x4659db
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ScreenToClient]
movzx eax, word [ebp - 4]
movzx ecx, word [ebp - 8]
shl eax, 0x10
or eax, ecx
push eax
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00464ddc
mov eax, dword [0x4dab64]
add esp, 0x10
cmp eax, 0xffffffff
je 0x465837
push ebx
push eax
push dword [0x4f1ffc]
push dword [ebp + 0xc]
call fcn.004649d9
add esp, 0x10
jmp 0x465837
push dword [ebp + 0x14]
push ecx
mov eax, dword [ebp + 8]
push 0x113
push dword [ebp + 0xc]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_CallWindowProcA]
pop edi
pop ebx
leave
ret
Function at 0x47014a
Capabilities:
Get process heap force flags

Disassembly:
mov eax, 0x4b3828
call fcn.0047f954
push ecx
push ebx
push esi
push edi
lea esi, [ebp + 8]
push dword [ebp + 0x1c]
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push dword [ebp + 0x18]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00447c70
mov al, byte [ebp + 0x1f]
xor esi, esi
lea ecx, [ebx + 0x30]
push esi
mov dword [ebp - 4], esi
mov byte [ecx], al
call fcn.0043688b
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 0x50], esi
mov dword [ebx + 0x58], esi
mov dword [ebx + 0x4c], esi
mov dword [ebx + 0x48], esi
mov dword [ebx + 0x44], esi
pop edi
mov dword [ebx], 0x4bba80
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x18
Function at 0x470aef
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push ebx
call fcn.0046f4ae
test al, al
jne 0x470b20
cmp word [esi + 0x16], 8
jae 0x470b27
add esi, 0x44
push str.Bit_depth_must_be_8_or_24
push esi
call fcn.00480410
pop ecx
pop ecx
xor al, al
jmp 0x470cf5
and byte [ebp - 0x18], 0
push edi
mov ecx, esi
call fcn.0046ada2
test eax, eax
setne al
mov byte [ebp - 0x17], al
mov ax, word [esi + 0x16]
cmp ax, 8
mov dx, ax
setne cl
inc ecx
sub dx, 8
mov byte [ebp - 0x16], cl
xor ecx, ecx
neg dx
sbb edx, edx
mov edi, 0x100
and dl, cl
mov word [ebp - 0x15], cx
add edx, edi
cmp ax, 8
mov word [ebp - 0x13], dx
mov word [ebp - 0x10], cx
setne dl
dec edx
and byte [ebp - 7], cl
and edx, 0x18
cmp dword [esi + 0x1a0], ecx
mov byte [ebp - 0x11], dl
mov dx, word [esi + 0xc]
mov word [ebp - 0xc], dx
mov dx, word [esi + 0x10]
mov word [ebp - 0xa], dx
mov dl, al
mov word [ebp - 0xe], cx
mov byte [ebp - 8], dl
je 0x470ba9
cmp ax, 0x18
jne 0x470ba9
mov byte [ebp - 8], 0x20
mov eax, dword [ebx]
push 1
lea ecx, [ebp - 0x18]
push 0x12
push ecx
mov ecx, ebx
call dword [eax + 0xc]
cmp word [esi + 0x16], 8
jne 0x470bfd
mov ecx, esi
call fcn.0046ada2
lea ecx, [ebp - 0x33b]
add eax, 2
mov dl, byte [eax - 2]
mov byte [ecx - 1], dl
mov dl, byte [eax - 1]
mov byte [ecx], dl
mov dl, byte [eax]
mov byte [ecx + 1], dl
add eax, 4
add ecx, 3
dec edi
jne 0x470bcf
mov eax, dword [ebx]
push 1
lea ecx, [ebp - 0x33c]
push 0x300
push ecx
mov ecx, ebx
call dword [eax + 0xc]
push esi
lea ecx, [ebp - 0x3c]
call fcn.00471037
xor edi, edi
cmp dword [esi + 0x1a0], edi
je 0x470cbf
cmp word [esi + 0x16], 8
je 0x470cbf
movzx eax, word [ebp - 0xc]
shl eax, 2
push eax
call fcn.0047f5a0
and dword [ebp - 4], 0
cmp word [ebp - 0xa], 0
mov edi, eax
pop ecx
mov dword [ebp - 0x20], edi
jbe 0x470cb6
xor ebx, ebx
cmp word [ebp - 0xc], bx
jbe 0x470c94
inc edi
push dword [ebp - 4]
lea eax, [ebp - 0x24]
mov ecx, esi
push ebx
push eax
call fcn.0046aeca
mov eax, dword [eax]
push dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov byte [edi - 1], al
mov al, byte [ebp - 0x1a]
mov byte [edi], ah
push ebx
mov ecx, esi
mov byte [edi + 1], al
call fcn.0046b2ef
movzx ecx, byte [esi + 0x17c]
movzx eax, al
imul eax, ecx
cdq
mov ecx, 0xff
add edi, 4
idiv ecx
inc ebx
mov byte [edi - 2], al
movzx eax, word [ebp - 0xc]
cmp ebx, eax
jl 0x470c46
movzx edx, word [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 0x20]
shl edx, 2
mov eax, dword [ecx]
push 1
push edx
push edi
call dword [eax + 0xc]
movzx eax, word [ebp - 0xa]
inc dword [ebp - 4]
cmp dword [ebp - 4], eax
jl 0x470c3d
push edi
call fcn.0047f323
pop ecx
jmp 0x470cf2
cmp word [ebp - 0xa], di
jbe 0x470cf2
push edi
lea ecx, [ebp - 0x3c]
call fcn.00471063
movzx ecx, word [esi + 0x16]
movzx edx, word [ebp - 0xc]
shr ecx, 3
imul ecx, edx
mov eax, dword [ebx]
push 1
push ecx
mov ecx, ebx
push dword [ebp - 0x2c]
call dword [eax + 0xc]
movzx eax, word [ebp - 0xa]
inc edi
cmp edi, eax
jl 0x470cc5
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x48fe50
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0047ee90
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x48ff1b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x48ff1b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x48fece
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x48fed9
or bh, 8
and edi, 0x8000000
je 0x48fef4
mov eax, dword [0x4f599c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x48ff1b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4902f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x49031b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x49033f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x49035a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x493dce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x493df0
cmp dword [edi + 0x3c], 0
jne 0x493df0
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004a8348
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00493e1d
pop edi
pop esi
pop ebx
ret 8

Function at 0x49543f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x495477
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004939f1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004939c9
jmp 0x495483
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x496fd4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x497016
call fcn.004a8348
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x497016
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49700d
xor eax, eax
jmp 0x49701e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00497024
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a9392
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.004a8348
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4a93cf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4a93cf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4a93d3
xor eax, eax
jmp 0x4a9451
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.00493b03
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x4a940b
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x4a93f5
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.004a9542
push ebx
mov edi, eax
call fcn.00493b2c
test edi, edi
pop ecx
je 0x4a944d
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.004a930b
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.004a9456
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x4aca66
Capabilities:
Receive data
Receive data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_recv
ret 0xc

Function at 0x4aca7d
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_send
ret 0xc
Function at 0x5836dc
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x5836f5
mov esi, edi
mov edi, eax
jmp 0x5836f7
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x583707
mov eax, ebx
jmp 0x583711
push eax
push ebx
call fcn.0056a4ac
add esp, 8
test eax, eax
jne 0x583719
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x583737
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [edi + 4]
jl 0x583720
cmp eax, dword [esi + 4]
jge 0x58374e
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [esi + 4]
jl 0x58373c
mov eax, dword [esi + 4]
test eax, eax
mov dword [ebx + 4], eax
jle 0x583771
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x58376e
sub eax, 1
test eax, eax
jg 0x58375e
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x5e740c
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
mov edx, dword [ecx]
mov ebx, 0x20
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 8], edx
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
push edi
mov edi, 0xc6ef3720
mov dword [ebp + 0xc], edx
mov dword [ebp - 0xc], ecx
mov edx, esi
dec ebx
shr edx, 5
add edx, ecx
mov ecx, esi
shl ecx, 4
add ecx, dword [ebp + 0xc]
xor edx, ecx
lea ecx, [edi + esi]
xor edx, ecx
sub eax, edx
mov edx, eax
mov ecx, eax
shr edx, 5
add edx, dword [ebp - 4]
shl ecx, 4
add ecx, dword [ebp - 8]
xor edx, ecx
lea ecx, [edi + eax]
xor edx, ecx
lea edi, [edi + 0x61c88647]
mov ecx, dword [ebp - 0xc]
sub esi, edx
test ebx, ebx
jg 0x5e7441
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx], esi
pop esi
mov dword [ecx + 4], eax
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x5e787c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
mov edx, dword [ecx]
mov ebx, 0x20
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 4], edx
mov edx, dword [ecx + 4]
mov dword [ebp + 0xc], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
push edi
xor edi, edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
mov edx, eax
lea edi, [edi - 0x61c88647]
shr edx, 5
mov ecx, eax
add edx, dword [ebp + 0xc]
dec ebx
shl ecx, 4
add ecx, dword [ebp - 4]
xor edx, ecx
lea ecx, [edi + eax]
xor edx, ecx
add esi, edx
mov edx, esi
mov ecx, esi
shr edx, 5
add edx, dword [ebp - 8]
shl ecx, 4
add ecx, dword [ebp - 0xc]
xor edx, ecx
lea ecx, [edi + esi]
xor edx, ecx
add eax, edx
test ebx, ebx
jg 0x5e78ae
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx], esi
pop esi
mov dword [ecx + 4], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5f105c
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10122324]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x28], esi
push edi
mov edi, dword [ebp + 0xc]
cmp ebx, 0x40
jle 0x5f1096
lea eax, [ebp - 0x24]
push eax
push ebx
push edi
call fcn.005f0c9c
add esp, 0xc
lea edi, [ebp - 0x24]
mov ebx, 0x20
push 0x40
lea eax, [esi + 0x68]
push 0x36
push eax
call fcn.005fd83c
push 0x40
add esi, 0xa8
push 0x5c
push esi
call fcn.005fd83c
add esp, 0x18
test ebx, ebx
jle 0x5f10d4
nop
movzx eax, byte [edi]
lea edi, [edi + 1]
xor byte [esi - 0x40], al
lea esi, [esi + 1]
movzx eax, byte [edi - 1]
xor byte [esi - 1], al
sub ebx, 1
jne 0x5f10bc
mov esi, dword [ebp - 0x28]
push 0
push esi
call fcn.005f111c
push 0x40
lea eax, [esi + 0x68]
push eax
push esi
call fcn.005f115c
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.005fa572
mov esp, ebp
pop ebp
ret

Function at 0x5f984c
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
mov edx, dword [ecx]
mov ebx, 0x20
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 8], edx
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
push edi
mov edi, 0xc6ef3720
mov dword [ebp + 0xc], edx
mov dword [ebp - 0xc], ecx
mov edx, esi
dec ebx
shr edx, 5
add edx, ecx
mov ecx, esi
shl ecx, 4
add ecx, dword [ebp + 0xc]
xor edx, ecx
lea ecx, [edi + esi]
xor edx, ecx
sub eax, edx
mov edx, eax
mov ecx, eax
shr edx, 5
add edx, dword [ebp - 4]
shl ecx, 4
add ecx, dword [ebp - 8]
xor edx, ecx
lea ecx, [edi + eax]
xor edx, ecx
lea edi, [edi + 0x61c88647]
mov ecx, dword [ebp - 0xc]
sub esi, edx
test ebx, ebx
jg 0x5f9881
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx], esi
pop esi
mov dword [ecx + 4], eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5f9a1c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
mov edx, dword [ecx]
mov ebx, 0x20
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 4], edx
mov edx, dword [ecx + 4]
mov dword [ebp + 0xc], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
push edi
xor edi, edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
mov edx, eax
lea edi, [edi - 0x61c88647]
shr edx, 5
mov ecx, eax
add edx, dword [ebp + 0xc]
dec ebx
shl ecx, 4
add ecx, dword [ebp - 4]
xor edx, ecx
lea ecx, [edi + eax]
xor edx, ecx
add esi, edx
mov edx, esi
mov ecx, esi
shr edx, 5
add edx, dword [ebp - 8]
shl ecx, 4
add ecx, dword [ebp - 0xc]
xor edx, ecx
lea ecx, [edi + esi]
xor edx, ecx
add eax, edx
test ebx, ebx
jg 0x5f9a4e
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx], esi
pop esi
mov dword [ecx + 4], eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x641eda
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00641ac1
Function at 0x641ee5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00641c50

Function at 0x659f6c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x659f99
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x659f99
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402ed0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x4c63ac]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x3c]
push 1
push eax
call fcn.00461190
lea eax, [ebp - 0x3c]
push eax
call fcn.00402a10
add esp, 0xc
test al, al
jne 0x402f10
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push ebx
lea ecx, [ebp - 0xd4]
call fcn.00403360
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xa4], 0
push eax
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 7
call fcn.004037a0
mov edx, dword [ebp - 8]
mov ebx, eax
cmp edx, 8
jb 0x402fa1
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402f97
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40311b
push edx
push ecx
call fcn.0046d9fd
add esp, 8
push esi
mov esi, dword [ebp - 0xa8]
xor eax, eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
test esi, esi
je 0x403071
push edi
mov edi, dword [ebp - 0xa4]
cmp esi, edi
je 0x403029
nop
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x403009
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x402fff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40311b
mov eax, edx
push ecx
push eax
call fcn.0046d9fd
add esp, 8
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
add esi, 0x18
cmp esi, edi
jne 0x402fd0
mov esi, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa0]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
pop edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x403067
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40311b
push ecx
push esi
call fcn.0046d9fd
add esp, 8
pop esi
cmp ebx, 0xffffffff
je 0x40307d
cmp bx, 1
jne 0x4030c7
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0x9c]
call fcn.0042b1a0
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x24]
call fcn.0042bf60
lea ecx, [ebp - 0x24]
call fcn.0042c930
test al, al
je 0x4030b4
lea ecx, [ebp - 0x24]
call fcn.0042c090
mov ebx, eax
lea ecx, [ebp - 0x24]
call fcn.0042bfa0
lea ecx, [ebp - 0x9c]
call fcn.0042b320
lea ecx, [ebp - 0xd4]
call fcn.004036e0
mov edx, dword [ebp - 0x28]
cmp edx, 8
jb 0x403108
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4030fe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403120
push edx
push ecx
call fcn.0046d9fd
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0046dc6a
mov esp, ebp
pop ebp
ret 0x10
call fcn.00478f8e
call fcn.00478f8e
int3